{"version":3,"sources":["jsdelivr-header.js","/npm/node_modules/@qlik/api/chunks/utils-COWNd3uN.js","/npm/node_modules/regenerator-runtime/runtime.js","/npm/node_modules/@qlik/api/chunks/public-runtime-modules-CE8QxhXX.js","/npm/node_modules/@qlik/api/auth.js","/npm/node_modules/react/cjs/react.production.min.js","/npm/node_modules/react/index.js","/npm/@nebula.js/locale/src/index.js","/npm/@nebula.js/locale/src/translator.js","/npm/@nebula.js/nucleus/src/locale/app-locale.js","/npm/node_modules/node-event-emitter/index.js","/npm/node_modules/d3-color/src/define.js","/npm/node_modules/d3-color/src/color.js","/npm/node_modules/extend/index.js","/npm/@nebula.js/theme/src/utils/color/css-colors.js","/npm/@nebula.js/theme/src/utils/color/color.js","/npm/@nebula.js/theme/src/color-scale.js","/npm/@nebula.js/theme/src/theme-scale-generator.js","/npm/@nebula.js/theme/src/style-resolver.js","/npm/@nebula.js/theme/src/contraster/luminance.js","/npm/@nebula.js/theme/src/index.js","/npm/@nebula.js/theme/src/set-theme.js","/npm/@nebula.js/theme/src/palette-resolver.js","/npm/@nebula.js/theme/src/contraster/contraster.js","/npm/@nebula.js/theme/src/contraster/contrast.js","/npm/@nebula.js/nucleus/src/app-theme.js","/npm/@nebula.js/nucleus/src/device-type.js","/npm/node_modules/scheduler/index.js","/npm/node_modules/scheduler/cjs/scheduler.production.min.js","/npm/node_modules/react-dom/cjs/react-dom.production.min.js","/npm/node_modules/react-dom/index.js","/npm/node_modules/react-dom/client.js","/npm/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","/npm/node_modules/@mui/material/esm/styles/identifier.js","/npm/node_modules/@babel/runtime/helpers/esm/extends.js","/npm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js","/npm/node_modules/stylis/src/Enum.js","/npm/node_modules/stylis/src/Utility.js","/npm/node_modules/stylis/src/Tokenizer.js","/npm/node_modules/stylis/src/Parser.js","/npm/node_modules/stylis/src/Serializer.js","/npm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","/npm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","/npm/node_modules/stylis/src/Middleware.js","/npm/node_modules/react-is/index.js","/npm/node_modules/react-is/cjs/react-is.production.min.js","/npm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","/npm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","/npm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","/npm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","/npm/node_modules/@emotion/hash/dist/emotion-hash.esm.js","/npm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","/npm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js","/npm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js","/npm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","/npm/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","/npm/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","/npm/node_modules/react/jsx-runtime.js","/npm/node_modules/react/cjs/react-jsx-runtime.production.min.js","/npm/node_modules/@mui/styled-engine/esm/StyledEngineProvider/StyledEngineProvider.js","/npm/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js","/npm/node_modules/@mui/styled-engine/esm/index.js","/npm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","/npm/node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js","/npm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js","/npm/node_modules/@mui/system/esm/createTheme/shape.js","/npm/node_modules/@mui/system/esm/merge/merge.js","/npm/node_modules/@mui/system/esm/breakpoints/breakpoints.js","/npm/node_modules/@mui/utils/esm/capitalize/capitalize.js","/npm/node_modules/@mui/system/esm/style/style.js","/npm/node_modules/@mui/system/esm/spacing/spacing.js","/npm/node_modules/@mui/system/esm/memoize/memoize.js","/npm/node_modules/@mui/system/esm/createTheme/createSpacing.js","/npm/node_modules/@mui/system/esm/compose/compose.js","/npm/node_modules/@mui/system/esm/borders/borders.js","/npm/node_modules/@mui/system/esm/cssGrid/cssGrid.js","/npm/node_modules/@mui/system/esm/palette/palette.js","/npm/node_modules/@mui/system/esm/sizing/sizing.js","/npm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","/npm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","/npm/node_modules/@mui/system/esm/createTheme/applyStyles.js","/npm/node_modules/@mui/system/esm/createTheme/createTheme.js","/npm/node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js","/npm/node_modules/@mui/system/esm/useTheme/useTheme.js","/npm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js","/npm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","/npm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","/npm/node_modules/clsx/dist/clsx.mjs","/npm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","/npm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","/npm/node_modules/@mui/system/esm/preprocessStyles.js","/npm/node_modules/@mui/system/esm/createStyled/createStyled.js","/npm/node_modules/@mui/system/esm/styled/styled.js","/npm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js","/npm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","/npm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js","/npm/node_modules/@mui/utils/esm/clamp/clamp.js","/npm/node_modules/@mui/private-theming/esm/useTheme/ThemeContext.js","/npm/node_modules/@mui/private-theming/esm/useTheme/useTheme.js","/npm/node_modules/@mui/private-theming/esm/ThemeProvider/nested.js","/npm/node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js","/npm/node_modules/@mui/system/esm/RtlProvider/index.js","/npm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js","/npm/node_modules/@mui/utils/esm/useId/useId.js","/npm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js","/npm/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js","/npm/node_modules/@mui/system/esm/memoTheme.js","/npm/node_modules/@mui/system/esm/InitColorSchemeScript/InitColorSchemeScript.js","/npm/node_modules/@mui/system/esm/cssVars/localStorageManager.js","/npm/node_modules/@mui/system/esm/cssVars/useCurrentColorScheme.js","/npm/node_modules/@mui/system/esm/cssVars/createGetCssVar.js","/npm/node_modules/@mui/system/esm/cssVars/cssVarsParser.js","/npm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js","/npm/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js","/npm/node_modules/@mui/system/esm/Grid/traverseBreakpoints.js","/npm/node_modules/@mui/system/esm/Grid/gridGenerator.js","/npm/node_modules/@mui/system/esm/Grid/createGrid.js","/npm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","/npm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","/npm/node_modules/@mui/material/esm/colors/common.js","/npm/node_modules/@mui/material/esm/colors/grey.js","/npm/node_modules/@mui/material/esm/colors/red.js","/npm/node_modules/@mui/material/esm/colors/blue.js","/npm/node_modules/@mui/material/esm/colors/lightBlue.js","/npm/node_modules/@mui/material/esm/styles/createPalette.js","/npm/node_modules/@mui/material/esm/colors/purple.js","/npm/node_modules/@mui/material/esm/colors/green.js","/npm/node_modules/@mui/material/esm/colors/orange.js","/npm/node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js","/npm/node_modules/@mui/material/esm/styles/createTypography.js","/npm/node_modules/@mui/material/esm/styles/shadows.js","/npm/node_modules/@mui/material/esm/styles/createTransitions.js","/npm/node_modules/@mui/material/esm/styles/zIndex.js","/npm/node_modules/@mui/material/esm/styles/stringifyTheme.js","/npm/node_modules/@mui/material/esm/styles/createThemeNoVars.js","/npm/node_modules/@mui/material/esm/styles/createMixins.js","/npm/node_modules/@mui/material/esm/styles/getOverlayAlpha.js","/npm/node_modules/@mui/material/esm/styles/createColorScheme.js","/npm/node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js","/npm/node_modules/@mui/material/esm/styles/createGetSelector.js","/npm/node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js","/npm/node_modules/@mui/material/esm/styles/createThemeWithVars.js","/npm/node_modules/@mui/material/esm/styles/createTheme.js","/npm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js","/npm/node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js","/npm/node_modules/@mui/material/esm/styles/defaultTheme.js","/npm/node_modules/@mui/material/esm/styles/useTheme.js","/npm/node_modules/@mui/material/esm/styles/rootShouldForwardProp.js","/npm/node_modules/@mui/material/esm/styles/slotShouldForwardProp.js","/npm/node_modules/@mui/material/esm/styles/styled.js","/npm/node_modules/@mui/material/esm/styles/ThemeProviderNoVars.js","/npm/node_modules/@mui/material/esm/InitColorSchemeScript/InitColorSchemeScript.js","/npm/node_modules/@mui/material/esm/styles/ThemeProviderWithVars.js","/npm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js","/npm/node_modules/@mui/material/esm/styles/ThemeProvider.js","/npm/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js","/npm/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js","/npm/node_modules/@mui/material/esm/utils/memoTheme.js","/npm/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js","/npm/node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js","/npm/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js","/npm/node_modules/@mui/material/esm/utils/createSvgIcon.js","/npm/node_modules/@mui/utils/esm/debounce/debounce.js","/npm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","/npm/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js","/npm/node_modules/@mui/utils/esm/setRef/setRef.js","/npm/node_modules/@mui/utils/esm/useControlled/useControlled.js","/npm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","/npm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js","/npm/node_modules/@mui/material/esm/utils/mergeSlotProps.js","/npm/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js","/npm/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js","/npm/node_modules/@mui/material/esm/useLazyRipple/useLazyRipple.js","/npm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","/npm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","/npm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","/npm/node_modules/react-transition-group/esm/TransitionGroupContext.js","/npm/node_modules/react-transition-group/esm/Transition.js","/npm/node_modules/react-transition-group/esm/utils/reflow.js","/npm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","/npm/node_modules/react-transition-group/esm/utils/ChildMapping.js","/npm/node_modules/react-transition-group/esm/TransitionGroup.js","/npm/node_modules/@mui/utils/esm/useOnMount/useOnMount.js","/npm/node_modules/@mui/utils/esm/useTimeout/useTimeout.js","/npm/node_modules/@mui/material/esm/ButtonBase/touchRippleClasses.js","/npm/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js","/npm/node_modules/@mui/material/esm/ButtonBase/Ripple.js","/npm/node_modules/@mui/material/esm/ButtonBase/buttonBaseClasses.js","/npm/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js","/npm/node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js","/npm/node_modules/@mui/material/esm/CircularProgress/circularProgressClasses.js","/npm/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js","/npm/node_modules/@mui/material/esm/Button/buttonClasses.js","/npm/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupContext.js","/npm/node_modules/@mui/material/esm/ButtonGroup/ButtonGroupButtonContext.js","/npm/node_modules/@mui/material/esm/Button/Button.js","/npm/packages/ui/theme/definitions/base.js","/npm/packages/ui/theme/definitions/colors.js","/npm/packages/ui/theme/definitions/light.js","/npm/packages/ui/theme/definitions/dark.js","/npm/packages/ui/theme/create.js","/npm/@nebula.js/nucleus/src/components/ClassNameSetup.js","/npm/@nebula.js/nucleus/src/contexts/InstanceContext.js","/npm/@nebula.js/nucleus/src/utils/interactions.js","/npm/@nebula.js/nucleus/src/stores/create-key-store.js","/npm/@nebula.js/nucleus/src/components/NebulaApp.jsx","/npm/node_modules/@mui/material/esm/transitions/utils.js","/npm/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","/npm/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","/npm/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","/npm/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","/npm/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","/npm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","/npm/node_modules/@mui/material/esm/utils/useSlot.js","/npm/node_modules/@mui/material/esm/Paper/paperClasses.js","/npm/node_modules/@mui/material/esm/Paper/Paper.js","/npm/node_modules/@mui/material/esm/IconButton/iconButtonClasses.js","/npm/node_modules/@mui/material/esm/IconButton/IconButton.js","/npm/node_modules/@mui/material/esm/Typography/typographyClasses.js","/npm/node_modules/@mui/material/esm/Typography/Typography.js","/npm/node_modules/@mui/material/esm/zero-styled/index.js","/npm/node_modules/@mui/utils/esm/contains/contains.js","/npm/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js","/npm/node_modules/@popperjs/core/lib/enums.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getWindow.js","/npm/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","/npm/node_modules/@popperjs/core/lib/modifiers/applyStyles.js","/npm/node_modules/@popperjs/core/lib/utils/getBasePlacement.js","/npm/node_modules/@popperjs/core/lib/utils/math.js","/npm/node_modules/@popperjs/core/lib/utils/userAgent.js","/npm/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/contains.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","/npm/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","/npm/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","/npm/node_modules/@popperjs/core/lib/utils/within.js","/npm/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","/npm/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","/npm/node_modules/@popperjs/core/lib/utils/expandToHashMap.js","/npm/node_modules/@popperjs/core/lib/modifiers/arrow.js","/npm/node_modules/@popperjs/core/lib/utils/getVariation.js","/npm/node_modules/@popperjs/core/lib/modifiers/computeStyles.js","/npm/node_modules/@popperjs/core/lib/modifiers/eventListeners.js","/npm/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","/npm/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","/npm/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","/npm/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","/npm/node_modules/@popperjs/core/lib/utils/rectToClientRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","/npm/node_modules/@popperjs/core/lib/utils/computeOffsets.js","/npm/node_modules/@popperjs/core/lib/utils/detectOverflow.js","/npm/node_modules/@popperjs/core/lib/modifiers/flip.js","/npm/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","/npm/node_modules/@popperjs/core/lib/modifiers/hide.js","/npm/node_modules/@popperjs/core/lib/modifiers/offset.js","/npm/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","/npm/node_modules/@popperjs/core/lib/utils/getAltAxis.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","/npm/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","/npm/node_modules/@popperjs/core/lib/utils/orderModifiers.js","/npm/node_modules/@popperjs/core/lib/utils/debounce.js","/npm/node_modules/@popperjs/core/lib/createPopper.js","/npm/node_modules/@popperjs/core/lib/popper.js","/npm/node_modules/@popperjs/core/lib/utils/mergeByName.js","/npm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","/npm/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js","/npm/node_modules/@mui/material/esm/Portal/Portal.js","/npm/node_modules/@mui/material/esm/Popper/popperClasses.js","/npm/node_modules/@mui/material/esm/Popper/BasePopper.js","/npm/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","/npm/node_modules/@mui/material/esm/Popper/Popper.js","/npm/node_modules/@mui/material/esm/TextareaAutosize/TextareaAutosize.js","/npm/node_modules/@mui/material/esm/FormControl/formControlState.js","/npm/node_modules/@mui/material/esm/FormControl/FormControlContext.js","/npm/node_modules/@mui/material/esm/FormControl/useFormControl.js","/npm/node_modules/@mui/utils/esm/getActiveElement/getActiveElement.js","/npm/node_modules/@mui/material/esm/InputBase/utils.js","/npm/node_modules/@mui/material/esm/InputBase/inputBaseClasses.js","/npm/node_modules/@mui/material/esm/InputBase/InputBase.js","/npm/node_modules/@mui/material/esm/OutlinedInput/outlinedInputClasses.js","/npm/node_modules/@mui/material/esm/Fade/Fade.js","/npm/node_modules/@mui/material/esm/Backdrop/backdropClasses.js","/npm/node_modules/@mui/material/esm/Backdrop/Backdrop.js","/npm/node_modules/@mui/material/esm/Badge/badgeClasses.js","/npm/node_modules/@mui/material/esm/Badge/Badge.js","/npm/node_modules/@mui/material/esm/Badge/useBadge.js","/npm/node_modules/@mui/material/esm/Box/boxClasses.js","/npm/node_modules/@mui/material/esm/Box/Box.js","/npm/node_modules/@mui/system/esm/createBox/createBox.js","/npm/node_modules/@mui/material/esm/internal/switchBaseClasses.js","/npm/node_modules/@mui/material/esm/internal/SwitchBase.js","/npm/node_modules/@mui/material/esm/internal/svg-icons/CheckBoxOutlineBlank.js","/npm/node_modules/@mui/material/esm/internal/svg-icons/CheckBox.js","/npm/node_modules/@mui/material/esm/internal/svg-icons/IndeterminateCheckBox.js","/npm/node_modules/@mui/material/esm/Checkbox/checkboxClasses.js","/npm/node_modules/@mui/material/esm/Checkbox/Checkbox.js","/npm/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js","/npm/node_modules/@mui/material/esm/Modal/ModalManager.js","/npm/node_modules/@mui/material/esm/utils/focusable.js","/npm/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js","/npm/node_modules/@mui/material/esm/Modal/useModal.js","/npm/node_modules/@mui/material/esm/Modal/modalClasses.js","/npm/node_modules/@mui/material/esm/Modal/Modal.js","/npm/node_modules/@mui/material/esm/Divider/dividerClasses.js","/npm/node_modules/@mui/material/esm/Divider/Divider.js","/npm/node_modules/@mui/material/esm/FormControlLabel/formControlLabelClasses.js","/npm/node_modules/@mui/material/esm/FormControlLabel/FormControlLabel.js","/npm/node_modules/@mui/material/esm/Grid/Grid.js","/npm/node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js","/npm/node_modules/@mui/material/esm/Grow/Grow.js","/npm/node_modules/@mui/material/esm/Icon/iconClasses.js","/npm/node_modules/@mui/material/esm/Icon/Icon.js","/npm/node_modules/@mui/material/esm/InputAdornment/inputAdornmentClasses.js","/npm/node_modules/@mui/material/esm/InputAdornment/InputAdornment.js","/npm/node_modules/@mui/material/esm/List/ListContext.js","/npm/node_modules/@mui/material/esm/List/listClasses.js","/npm/node_modules/@mui/material/esm/List/List.js","/npm/node_modules/@mui/material/esm/ListItem/listItemClasses.js","/npm/node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js","/npm/node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js","/npm/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js","/npm/node_modules/@mui/material/esm/ListItem/ListItem.js","/npm/node_modules/@mui/material/esm/ListItemIcon/listItemIconClasses.js","/npm/node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js","/npm/node_modules/@mui/material/esm/ListItemText/listItemTextClasses.js","/npm/node_modules/@mui/material/esm/MenuList/MenuList.js","/npm/node_modules/@mui/material/esm/Popover/popoverClasses.js","/npm/node_modules/@mui/material/esm/Popover/Popover.js","/npm/node_modules/@mui/material/esm/MenuItem/menuItemClasses.js","/npm/node_modules/@mui/material/esm/Select/utils/SelectFocusSourceContext.js","/npm/node_modules/@mui/material/esm/OutlinedInput/NotchedOutline.js","/npm/node_modules/@mui/material/esm/OutlinedInput/OutlinedInput.js","/npm/node_modules/@mui/material/esm/MenuItem/MenuItem.js","/npm/node_modules/@mui/material/esm/internal/svg-icons/RadioButtonUnchecked.js","/npm/node_modules/@mui/material/esm/internal/svg-icons/RadioButtonChecked.js","/npm/node_modules/@mui/material/esm/Radio/RadioButtonIcon.js","/npm/node_modules/@mui/material/esm/RadioGroup/RadioGroupContext.js","/npm/node_modules/@mui/material/esm/Radio/radioClasses.js","/npm/node_modules/@mui/material/esm/Radio/Radio.js","/npm/node_modules/@mui/material/esm/RadioGroup/useRadioGroup.js","/npm/node_modules/@mui/material/esm/Tooltip/tooltipClasses.js","/npm/node_modules/@mui/material/esm/Tooltip/Tooltip.js","/npm/@nebula.js/nucleus/src/hooks/useModelStore.js","/npm/@nebula.js/nucleus/src/hooks/useSessionModel.js","/npm/@nebula.js/nucleus/src/hooks/useCurrentSelectionsModel.js","/npm/@nebula.js/nucleus/src/hooks/useRpc.js","/npm/@nebula.js/nucleus/src/hooks/useLayout.js","/npm/@nebula.js/nucleus/src/hooks/useRect.js","/npm/@nebula.js/nucleus/src/components/selections/single-public.js","/npm/@nebula.js/nucleus/src/hooks/useModel.js","/npm/@nebula.js/nucleus/src/components/selections/hooks/useFieldList.js","/npm/@nebula.js/nucleus/src/components/selections/hooks/useDimenisonList.js","/npm/@nebula.js/nucleus/src/components/selections/utils.js","/npm/packages/ui/icons/SvgIcon.jsx","/npm/packages/ui/icons/remove.js","/npm/packages/ui/icons/lock.js","/npm/packages/ui/icons/unlock.js","/npm/node_modules/react-window-infinite-loader/dist/index.esm.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/selections/listbox-selections.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/helpers/classes.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/selections/useSelectionsInteractions.js","/npm/packages/ui/icons/tick.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/helpers/cell-states.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/helpers/operations.js","/npm/@nebula.js/nucleus/src/components/listbox/constants.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/ListBoxRoot.jsx","/npm/@nebula.js/nucleus/src/components/listbox/assets/CheckboxChecked.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/ListBoxCheckbox.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/ListBoxRadioButton.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/ValueField.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/LabelTag.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/CheckboxField.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/FieldWithRanges.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/Field.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/Histogram.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/Frequency.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/item-sizes.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/components/ItemGrid.jsx","/npm/@nebula.js/nucleus/src/keys.js","/npm/@nebula.js/nucleus/src/components/listbox/components/useTempKeyboard.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/keyboard-navigation/keyboard-nav-methods.js","/npm/@nebula.js/nucleus/src/components/listbox/components/screen-reader/value-label.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/ListBoxRowColumn.jsx","/npm/@nebula.js/nucleus/src/components/listbox/interactions/keyboard-navigation/keyboard-nav-rows.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/keyboard-navigation/find-next-item-index.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/helpers/get-cell-from-pages.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxRowColumn/helpers/get-value-text-align.js","/npm/@nebula.js/nucleus/src/components/listbox/components/listbox-highlight.js","/npm/node_modules/memoize-one/dist/memoize-one.esm.js","/npm/node_modules/react-window/dist/index.esm.js","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/styled-components.js","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/set-overflow-disclaimer.js","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/grid-list-components.jsx","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useTextWidth.jsx","/npm/@nebula.js/nucleus/src/components/listbox/assets/measure-text.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/list-sizes/item-height.js","/npm/@nebula.js/nucleus/src/stores/viz-store.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useDataStore.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxDisclaimer.jsx","/npm/node_modules/@mui/icons-material/esm/Close.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxFooter.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/frequency-allowed.js","/npm/@nebula.js/nucleus/src/utils/escape-field.js","/npm/@nebula.js/nucleus/src/components/listbox/utils/frequencyMaxUtil.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useFrequencyMax.jsx","/npm/@nebula.js/nucleus/src/components/listbox/ListBox.jsx","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useItemsLoader.js","/npm/@nebula.js/nucleus/src/components/listbox/components/list-count.js","/npm/@nebula.js/nucleus/src/components/listbox/utils/deduce-frequency-mode.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/list-sizes/use-list-sizes.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/list-sizes/row-mode.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/list-sizes/column-mode.js","/npm/@nebula.js/nucleus/src/components/listbox/components/screen-reader/assertive-screen-reader.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/listbox-get-scroll-index.js","/npm/@nebula.js/nucleus/src/components/listbox/components/grid-list-components/derive-render-options.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/horizontal-minimum-batch-size.js","/npm/packages/ui/icons/select-all.js","/npm/packages/ui/icons/select-alternative.js","/npm/packages/ui/icons/select-possible.js","/npm/packages/ui/icons/select-excluded.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/listbox-selection-toolbar.js","/npm/packages/ui/icons/more.js","/npm/@nebula.js/nucleus/src/hooks/useActionState.js","/npm/@nebula.js/nucleus/src/components/ActionsToolbarItem.jsx","/npm/packages/ui/icons/close.js","/npm/packages/ui/icons/clear-selections.js","/npm/@nebula.js/nucleus/src/components/ActionsToolbarMore.jsx","/npm/@nebula.js/nucleus/src/components/ActionsToolbar.jsx","/npm/@nebula.js/nucleus/src/hooks/useDefaultSelectionActions.js","/npm/@nebula.js/nucleus/src/components/actions-toolbar-keydown.js","/npm/packages/ui/icons/search.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxSearch.jsx","/npm/@nebula.js/nucleus/src/hooks/useAppSelections.js","/npm/@nebula.js/nucleus/src/selections/event-mixin.js","/npm/@nebula.js/nucleus/src/hooks/useObjectSelections.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/selections/selectionState.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/has-selections.js","/npm/node_modules/qlik-chart-modules/dist/qlik-chart-modules.esm.js","/npm/@nebula.js/nucleus/src/utils/style/shadow-utils.js","/npm/@nebula.js/nucleus/src/utils/style/resolve-property.js","/npm/@nebula.js/nucleus/src/utils/style/resolve-color.js","/npm/@nebula.js/nucleus/src/utils/style/styling-props.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/styling.js","/npm/@nebula.js/nucleus/src/components/listbox/ListBoxPopover.jsx","/npm/@nebula.js/nucleus/src/components/selections/PinItem.jsx","/npm/@nebula.js/nucleus/src/components/selections/OneField.jsx","/npm/packages/ui/icons/down-arrow.js","/npm/@nebula.js/nucleus/src/components/selections/MultiState.jsx","/npm/@nebula.js/nucleus/src/components/selections/More.jsx","/npm/@nebula.js/nucleus/src/components/selections/SelectedFields.jsx","/npm/@nebula.js/nucleus/src/components/selections/hooks/usePinnedList.js","/npm/@nebula.js/nucleus/src/components/selections/hooks/useSingleObject.js","/npm/packages/ui/icons/selections-back.js","/npm/packages/ui/icons/selections-forward.js","/npm/@nebula.js/nucleus/src/components/selections/Nav.jsx","/npm/@nebula.js/nucleus/src/hooks/useAppSelectionsNavigation.js","/npm/@nebula.js/nucleus/src/object/uid.js","/npm/@nebula.js/nucleus/src/components/selections/AppSelections.jsx","/npm/node_modules/react-virtualized-auto-sizer/dist/react-virtualized-auto-sizer.esm.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxError.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxHeader/ListBoxHeaderComponents.jsx","/npm/packages/ui/icons/cyclic.js","/npm/packages/ui/icons/drill-down.js","/npm/packages/ui/icons/reload.js","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxHeader/DimensionIcon.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxHeader/ListBoxHeader.jsx","/npm/@nebula.js/nucleus/src/components/listbox/components/ListBoxHeader/icon-utils.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/listbox-show-toolbar-detached.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/listbox-action-props.js","/npm/@nebula.js/nucleus/src/components/listbox/ListBoxFocusBorder.jsx","/npm/@nebula.js/nucleus/src/components/listbox/ListBoxInline.jsx","/npm/@nebula.js/nucleus/src/components/listbox/utils/is-direct-query.js","/npm/@nebula.js/nucleus/src/components/listbox/interactions/keyboard-navigation/keyboard-nav-container.js","/npm/@nebula.js/nucleus/src/components/listbox/assets/list-sizes/container-padding.js","/npm/@nebula.js/nucleus/src/components/listbox/default-properties.js","/npm/@nebula.js/nucleus/src/components/listbox/utils/get-frequency-mode-letter.js","/npm/@nebula.js/nucleus/src/components/listbox/ListBoxPortal.jsx","/npm/@nebula.js/nucleus/src/components/listbox/assets/identify.js","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useExistingModel.jsx","/npm/@nebula.js/nucleus/src/components/listbox/hooks/useOnTheFlyModel.jsx","/npm/@nebula.js/nucleus/src/components/listbox/ListBoxPopoverWrapper.jsx","/npm/@nebula.js/nucleus/src/object/hc-handler.js","/npm/@nebula.js/nucleus/src/object/lo-handler.js","/npm/@nebula.js/nucleus/src/object/filterpane-handler.js","/npm/@nebula.js/nucleus/src/object/populator.js","/npm/@nebula.js/conversion/src/utils.js","/npm/@nebula.js/conversion/src/array-util.js","/npm/@nebula.js/conversion/src/helpers/index.js","/npm/@nebula.js/conversion/src/hypercube/index.js","/npm/@nebula.js/conversion/src/hypercube/export-properties.js","/npm/@nebula.js/conversion/src/export-format.js","/npm/@nebula.js/conversion/src/hypercube/import-properties.js","/npm/@nebula.js/conversion/src/index.js","/npm/@nebula.js/supernova/src/json-patch.js","/npm/@nebula.js/supernova/src/hooks.js","/npm/@nebula.js/supernova/src/creator.js","/npm/@nebula.js/supernova/src/action-hero.js","/npm/@nebula.js/supernova/src/handler/utils/constants.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/field-utils.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/hypercube-utils.js","/npm/@nebula.js/supernova/src/handler/data-property-handler.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/remove-main-dimension.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/remove-main-measure.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/remove-alternative-dimension.js","/npm/@nebula.js/supernova/src/handler/hypercube-handler.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/add-main-dimension.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/update-dimension-orders.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/reinsert-main-dimension.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/get-sorted-library-field.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/get-sorted-field.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/find-field-in-expandedList.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/expand-field-derived-data.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/get-data-geo-field.js","/npm/@nebula.js/supernova/src/handler/utils/field-helper/get-derived-fields.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/add-main-measure.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/remove-alternative-measure.js","/npm/@nebula.js/supernova/src/handler/utils/hypercube-helper/reinsert-main-measure.js","/npm/@nebula.js/supernova/src/qae.js","/npm/@nebula.js/supernova/src/generator.js","/npm/packages/ui/icons/warning-triangle-2.js","/npm/@nebula.js/nucleus/src/components/Error.jsx","/npm/@nebula.js/nucleus/src/components/Progress.jsx","/npm/@nebula.js/nucleus/src/components/LongRunningQuery.jsx","/npm/@nebula.js/nucleus/src/components/Loading.jsx","/npm/@nebula.js/nucleus/src/utils/style/screen-reader.js","/npm/@nebula.js/nucleus/src/components/Header.jsx","/npm/@nebula.js/nucleus/src/utils/generateFiltersInfo.js","/npm/packages/ui/icons/filter.js","/npm/@nebula.js/nucleus/src/components/FiltersFooter.jsx","/npm/@nebula.js/nucleus/src/components/Footer.jsx","/npm/@nebula.js/nucleus/src/utils/render-debouncer.js","/npm/@nebula.js/nucleus/src/components/Supernova.jsx","/npm/@nebula.js/nucleus/src/hooks/useStyling.js","/npm/@nebula.js/nucleus/src/utils/render-error.js","/npm/@nebula.js/nucleus/src/utils/cell-padding.js","/npm/@nebula.js/nucleus/src/utils/extension-translation-keys.js","/npm/@nebula.js/nucleus/src/components/Cell.jsx","/npm/@nebula.js/nucleus/src/utils/patcher.js","/npm/@nebula.js/nucleus/src/plugins/plugins.js","/npm/@nebula.js/nucleus/src/utils/can-set-properties.js","/npm/@nebula.js/nucleus/src/utils/save-soft-properties.js","/npm/@nebula.js/nucleus/src/viz.js","/npm/@nebula.js/nucleus/src/object/initiate.js","/npm/@nebula.js/nucleus/src/utils/set-properties.js","/npm/@nebula.js/nucleus/src/components/glue.jsx","/npm/@nebula.js/nucleus/src/object/create-object.js","/npm/@nebula.js/nucleus/src/components/Sheet.jsx","/npm/@nebula.js/nucleus/src/object/get-object.js","/npm/@nebula.js/nucleus/src/sheet.js","/npm/@nebula.js/nucleus/src/components/sheetGlue.jsx","/npm/@nebula.js/nucleus/src/flags/flags.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/parse-options.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/constants.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/debug.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/re.js","/npm/@nebula.js/nucleus/node_modules/semver/classes/semver.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/identifiers.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/compare.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/cmp.js","/npm/@nebula.js/nucleus/node_modules/semver/classes/range.js","/npm/@nebula.js/nucleus/node_modules/semver/internal/lrucache.js","/npm/@nebula.js/nucleus/node_modules/semver/classes/comparator.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/eq.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/neq.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/gt.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/gte.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/lt.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/lte.js","/npm/@nebula.js/nucleus/node_modules/semver/functions/satisfies.js","/npm/@nebula.js/nucleus/src/sn/load.js","/npm/@nebula.js/nucleus/src/sn/types.js","/npm/@nebula.js/nucleus/src/sn/type.js","/npm/@nebula.js/nucleus/src/index.js","/npm/@nebula.js/nucleus/src/stores/new-model-store.js","/npm/@nebula.js/nucleus/src/stores/new-selections-store.js","/npm/@nebula.js/nucleus/src/object/get-generic-object.js","/npm/@nebula.js/nucleus/src/object/navigation/navigation.js","/npm/@nebula.js/nucleus/src/object/initiate-sheet.js","/npm/@nebula.js/nucleus/src/object/create-session-object.js","/npm/@nebula.js/nucleus/src/utils/abort-utils.js","/npm/@nebula.js/enigma-mocker/src/mocks/session-mock.js","/npm/@nebula.js/enigma-mocker/src/mocks/create-session-object-mock.js","/npm/@nebula.js/enigma-mocker/src/prop.js","/npm/@nebula.js/enigma-mocker/src/mocks/get-object-mock.js","/npm/@nebula.js/enigma-mocker/src/mocks/get-app-layout-mock.js","/npm/@nebula.js/enigma-mocker/src/index.js","/npm/@nebula.js/enigma-mocker/src/from-generic-objects.js","/npm/@nebula.js/stardust@7.0.1/src/index.js","/npm/node_modules/@qlik/api/chunks/dist-BmJduVUG.js","/npm/node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eAAe,GAExC,OADA,EAAe,QAAQ,GAChB,KACL,EAAe,UAAU,GACzB,EAAe,WAAW,GAC1B,EAAiB,KACjB,EAAI,YAAS,EAEjB,GAEC,CAAC,IAEG,CACT,EAAA,EAAA,OAtLO,SAAgB,GACrB,OAAO,GAAQ,MAAS,QAAS,IAAiB,GACpD,EAAA,EAAA,eAkuBO,WACL,KAAU,IACV,MAAM,EAAQ,GAAiB,QAC/B,MAAO,CACL,QAAS,KACP,EAAM,gBAER,QAAS,KACP,EAAM,gBAGZ,EAAA,EAAA,cAnbO,WACL,OAAO,GAAmB,aAC5B,EAAA,EAAA,eAxGO,WACL,MAAM,EAAS,GAAmB,UAC3B,EAAoC,EAA7B,GAAS,CAAE,QAAS,IAAS,GAAjC,GAIV,OAHK,EAAO,gBAAmB,EAAO,eAAe,gBACnD,EAAI,QAAU,GAET,EAAI,OACb,EAAA,EAAA,SAAA,GAAA,EAAA,SA6GO,WACL,OAAO,GAAmB,QAC5B,EAAA,EAAA,cA2BO,WACL,OAAO,GAAmB,aAC5B","file":"/npm/@nebula.js/stardust@7.0.1/dist/stardust.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@nebula.js/stardust@7.0.1/dist/stardust.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","//#region src/utils/utils.ts\n/**\n* Returns true if the running environment is a browser-like environment\n*/\nfunction isBrowser() {\n\tif (typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.self !== \"undefined\") return true;\n\treturn false;\n}\n/**\n* Returns true if the running environment is a node-like environment\n*/\nfunction isNode() {\n\tif (typeof process !== \"undefined\" && process.version && process.versions.node) return true;\n\treturn false;\n}\n/**\n* Checks if a value is a plain object (not an array, null, or any other type).\n* @param value The value to check\n* @returns true if the value is a plain object, false otherwise\n*/\nfunction isPlainObject(value) {\n\treturn typeof value === \"object\" && value !== null && value.constructor === Object;\n}\n/**\n* Recursively sorts the keys of an object or array of objects.\n* If the input is an array, it sorts each object in the array.\n* If the input is an object, it sorts the keys of the object.\n* If the input is neither an object nor an array, it returns the input as is.\n* @param obj Object to sort keys of\n* @template T Type of the object\n* @returns sorted object or array of objects\n* @example\n* const obj = { b: 2, a: 1, c: { d: 4, b: 3 } };\n* const sortedObj = sortKeys(obj);\n* // sortedObj will be { a: 1, b: 2, c: { b: 3, d: 4 } }\n*/\nfunction sortKeys(obj) {\n\tif (Array.isArray(obj)) return obj.map(sortKeys);\n\telse if (isPlainObject(obj)) {\n\t\tconst sortedObj = {};\n\t\tfor (const key of Object.keys(obj).sort()) sortedObj[key] = sortKeys(obj[key]);\n\t\treturn sortedObj;\n\t}\n\treturn obj;\n}\n/**\n* Cleans an object by removing all properties that are falsy (null, undefined, false, 0, \"\", NaN).\n* strings that are empty after trimming will also be removed.\n* @param obj The object to clean\n* @returns A new object with all falsy values removed\n*/\nfunction cleanFalsyValues(obj) {\n\tif (Array.isArray(obj)) return obj.map((item) => {\n\t\treturn typeof item === \"object\" && item !== null ? cleanFalsyValues(item) : item;\n\t}).filter((item) => {\n\t\tif (typeof item === \"object\" && item !== null) return Object.keys(item).length > 0;\n\t\treturn item !== null && item !== void 0 && item !== \"\";\n\t});\n\telse if (typeof obj === \"object\" && obj !== null) {\n\t\tconst cleaned = {};\n\t\tfor (const key of Object.keys(obj)) {\n\t\t\tconst value = obj[key];\n\t\t\tswitch (typeof value) {\n\t\t\t\tcase \"undefined\": break;\n\t\t\t\tcase \"boolean\":\n\t\t\t\t\tif (value) cleaned[key] = value;\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"string\": {\n\t\t\t\t\tconst trimmed = value.trim();\n\t\t\t\t\tif (trimmed !== \"\") cleaned[key] = trimmed;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"object\": {\n\t\t\t\t\tif (value === null) break;\n\t\t\t\t\tconst cleanedValue = cleanFalsyValues(value);\n\t\t\t\t\tif (cleanedValue) {\n\t\t\t\t\t\tif (Array.isArray(cleanedValue) && cleanedValue.length > 0 || typeof cleanedValue === \"object\" && Object.keys(cleanedValue).length > 0) cleaned[key] = cleanedValue;\n\t\t\t\t\t\telse if (!Array.isArray(cleanedValue) && typeof cleanedValue === \"object\") {}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"function\":\n\t\t\t\tcase \"number\":\n\t\t\t\t\tcleaned[key] = value;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tconsole.warn(`Unexpected type for key \"${key}\": ${typeof value}`);\n\t\t\t\t\tcleaned[key] = value;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (Object.keys(cleaned).length === 0) return;\n\t\treturn cleaned;\n\t}\n\treturn obj;\n}\nfunction createResolvablePromise() {\n\tlet resolve = () => {\n\t\tthrow new Error(\"Promise resolver not initialized\");\n\t};\n\tlet reject = () => {\n\t\tthrow new Error(\"Promise rejector not initialized\");\n\t};\n\treturn [\n\t\tnew Promise((res, rej) => {\n\t\t\tresolve = res;\n\t\t\treject = rej;\n\t\t}),\n\t\tresolve,\n\t\treject\n\t];\n}\n\n//#endregion\nexport { sortKeys as a, isNode as i, createResolvablePromise as n, isBrowser as r, cleanFalsyValues as t };","/**\n * Copyright (c) 2014-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\nvar runtime = (function (exports) {\n  \"use strict\";\n\n  var Op = Object.prototype;\n  var hasOwn = Op.hasOwnProperty;\n  var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; };\n  var undefined; // More compressible than void 0.\n  var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n  var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n  var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n  var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n  function define(obj, key, value) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n    return obj[key];\n  }\n  try {\n    // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n    define({}, \"\");\n  } catch (err) {\n    define = function(obj, key, value) {\n      return obj[key] = value;\n    };\n  }\n\n  function wrap(innerFn, outerFn, self, tryLocsList) {\n    // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n    var generator = Object.create(protoGenerator.prototype);\n    var context = new Context(tryLocsList || []);\n\n    // The ._invoke method unifies the implementations of the .next,\n    // .throw, and .return methods.\n    defineProperty(generator, \"_invoke\", { value: makeInvokeMethod(innerFn, self, context) });\n\n    return generator;\n  }\n  exports.wrap = wrap;\n\n  // Try/catch helper to minimize deoptimizations. Returns a completion\n  // record like context.tryEntries[i].completion. This interface could\n  // have been (and was previously) designed to take a closure to be\n  // invoked without arguments, but in all the cases we care about we\n  // already have an existing method we want to call, so there's no need\n  // to create a new function object. We can even get away with assuming\n  // the method takes exactly one argument, since that happens to be true\n  // in every case, so we don't have to touch the arguments object. The\n  // only additional allocation required is the completion record, which\n  // has a stable shape and so hopefully should be cheap to allocate.\n  function tryCatch(fn, obj, arg) {\n    try {\n      return { type: \"normal\", arg: fn.call(obj, arg) };\n    } catch (err) {\n      return { type: \"throw\", arg: err };\n    }\n  }\n\n  var GenStateSuspendedStart = \"suspendedStart\";\n  var GenStateSuspendedYield = \"suspendedYield\";\n  var GenStateExecuting = \"executing\";\n  var GenStateCompleted = \"completed\";\n\n  // Returning this object from the innerFn has the same effect as\n  // breaking out of the dispatch switch statement.\n  var ContinueSentinel = {};\n\n  // Dummy constructor functions that we use as the .constructor and\n  // .constructor.prototype properties for functions that return Generator\n  // objects. For full spec compliance, you may wish to configure your\n  // minifier not to mangle the names of these two functions.\n  function Generator() {}\n  function GeneratorFunction() {}\n  function GeneratorFunctionPrototype() {}\n\n  // This is a polyfill for %IteratorPrototype% for environments that\n  // don't natively support it.\n  var IteratorPrototype = {};\n  define(IteratorPrototype, iteratorSymbol, function () {\n    return this;\n  });\n\n  var getProto = Object.getPrototypeOf;\n  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n  if (NativeIteratorPrototype &&\n      NativeIteratorPrototype !== Op &&\n      hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n    // This environment has a native %IteratorPrototype%; use it instead\n    // of the polyfill.\n    IteratorPrototype = NativeIteratorPrototype;\n  }\n\n  var Gp = GeneratorFunctionPrototype.prototype =\n    Generator.prototype = Object.create(IteratorPrototype);\n  GeneratorFunction.prototype = GeneratorFunctionPrototype;\n  defineProperty(Gp, \"constructor\", { value: GeneratorFunctionPrototype, configurable: true });\n  defineProperty(\n    GeneratorFunctionPrototype,\n    \"constructor\",\n    { value: GeneratorFunction, configurable: true }\n  );\n  GeneratorFunction.displayName = define(\n    GeneratorFunctionPrototype,\n    toStringTagSymbol,\n    \"GeneratorFunction\"\n  );\n\n  // Helper for defining the .next, .throw, and .return methods of the\n  // Iterator interface in terms of a single ._invoke method.\n  function defineIteratorMethods(prototype) {\n    [\"next\", \"throw\", \"return\"].forEach(function(method) {\n      define(prototype, method, function(arg) {\n        return this._invoke(method, arg);\n      });\n    });\n  }\n\n  exports.isGeneratorFunction = function(genFun) {\n    var ctor = typeof genFun === \"function\" && genFun.constructor;\n    return ctor\n      ? ctor === GeneratorFunction ||\n        // For the native GeneratorFunction constructor, the best we can\n        // do is to check its .name property.\n        (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n      : false;\n  };\n\n  exports.mark = function(genFun) {\n    if (Object.setPrototypeOf) {\n      Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n    } else {\n      genFun.__proto__ = GeneratorFunctionPrototype;\n      define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n    }\n    genFun.prototype = Object.create(Gp);\n    return genFun;\n  };\n\n  // Within the body of any async function, `await x` is transformed to\n  // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n  // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n  // meant to be awaited.\n  exports.awrap = function(arg) {\n    return { __await: arg };\n  };\n\n  function AsyncIterator(generator, PromiseImpl) {\n    function invoke(method, arg, resolve, reject) {\n      var record = tryCatch(generator[method], generator, arg);\n      if (record.type === \"throw\") {\n        reject(record.arg);\n      } else {\n        var result = record.arg;\n        var value = result.value;\n        if (value &&\n            typeof value === \"object\" &&\n            hasOwn.call(value, \"__await\")) {\n          return PromiseImpl.resolve(value.__await).then(function(value) {\n            invoke(\"next\", value, resolve, reject);\n          }, function(err) {\n            invoke(\"throw\", err, resolve, reject);\n          });\n        }\n\n        return PromiseImpl.resolve(value).then(function(unwrapped) {\n          // When a yielded Promise is resolved, its final value becomes\n          // the .value of the Promise<{value,done}> result for the\n          // current iteration.\n          result.value = unwrapped;\n          resolve(result);\n        }, function(error) {\n          // If a rejected Promise was yielded, throw the rejection back\n          // into the async generator function so it can be handled there.\n          return invoke(\"throw\", error, resolve, reject);\n        });\n      }\n    }\n\n    var previousPromise;\n\n    function enqueue(method, arg) {\n      function callInvokeWithMethodAndArg() {\n        return new PromiseImpl(function(resolve, reject) {\n          invoke(method, arg, resolve, reject);\n        });\n      }\n\n      return previousPromise =\n        // If enqueue has been called before, then we want to wait until\n        // all previous Promises have been resolved before calling invoke,\n        // so that results are always delivered in the correct order. If\n        // enqueue has not been called before, then it is important to\n        // call invoke immediately, without waiting on a callback to fire,\n        // so that the async generator function has the opportunity to do\n        // any necessary setup in a predictable way. This predictability\n        // is why the Promise constructor synchronously invokes its\n        // executor callback, and why async functions synchronously\n        // execute code before the first await. Since we implement simple\n        // async functions in terms of async generators, it is especially\n        // important to get this right, even though it requires care.\n        previousPromise ? previousPromise.then(\n          callInvokeWithMethodAndArg,\n          // Avoid propagating failures to Promises returned by later\n          // invocations of the iterator.\n          callInvokeWithMethodAndArg\n        ) : callInvokeWithMethodAndArg();\n    }\n\n    // Define the unified helper method that is used to implement .next,\n    // .throw, and .return (see defineIteratorMethods).\n    defineProperty(this, \"_invoke\", { value: enqueue });\n  }\n\n  defineIteratorMethods(AsyncIterator.prototype);\n  define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n    return this;\n  });\n  exports.AsyncIterator = AsyncIterator;\n\n  // Note that simple async functions are implemented on top of\n  // AsyncIterator objects; they just return a Promise for the value of\n  // the final result produced by the iterator.\n  exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n    if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n    var iter = new AsyncIterator(\n      wrap(innerFn, outerFn, self, tryLocsList),\n      PromiseImpl\n    );\n\n    return exports.isGeneratorFunction(outerFn)\n      ? iter // If outerFn is a generator, return the full iterator.\n      : iter.next().then(function(result) {\n          return result.done ? result.value : iter.next();\n        });\n  };\n\n  function makeInvokeMethod(innerFn, self, context) {\n    var state = GenStateSuspendedStart;\n\n    return function invoke(method, arg) {\n      if (state === GenStateExecuting) {\n        throw new Error(\"Generator is already running\");\n      }\n\n      if (state === GenStateCompleted) {\n        if (method === \"throw\") {\n          throw arg;\n        }\n\n        // Be forgiving, per GeneratorResume behavior specified since ES2015:\n        // ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume\n        // Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume\n        return doneResult();\n      }\n\n      context.method = method;\n      context.arg = arg;\n\n      while (true) {\n        var delegate = context.delegate;\n        if (delegate) {\n          var delegateResult = maybeInvokeDelegate(delegate, context);\n          if (delegateResult) {\n            if (delegateResult === ContinueSentinel) continue;\n            return delegateResult;\n          }\n        }\n\n        if (context.method === \"next\") {\n          // Setting context._sent for legacy support of Babel's\n          // function.sent implementation.\n          context.sent = context._sent = context.arg;\n\n        } else if (context.method === \"throw\") {\n          if (state === GenStateSuspendedStart) {\n            state = GenStateCompleted;\n            throw context.arg;\n          }\n\n          context.dispatchException(context.arg);\n\n        } else if (context.method === \"return\") {\n          context.abrupt(\"return\", context.arg);\n        }\n\n        state = GenStateExecuting;\n\n        var record = tryCatch(innerFn, self, context);\n        if (record.type === \"normal\") {\n          // If an exception is thrown from innerFn, we leave state ===\n          // GenStateExecuting and loop back for another invocation.\n          state = context.done\n            ? GenStateCompleted\n            : GenStateSuspendedYield;\n\n          if (record.arg === ContinueSentinel) {\n            continue;\n          }\n\n          return {\n            value: record.arg,\n            done: context.done\n          };\n\n        } else if (record.type === \"throw\") {\n          state = GenStateCompleted;\n          // Dispatch the exception by looping back around to the\n          // context.dispatchException(context.arg) call above.\n          context.method = \"throw\";\n          context.arg = record.arg;\n        }\n      }\n    };\n  }\n\n  // Call delegate.iterator[context.method](context.arg) and handle the\n  // result, either by returning a { value, done } result from the\n  // delegate iterator, or by modifying context.method and context.arg,\n  // setting context.delegate to null, and returning the ContinueSentinel.\n  function maybeInvokeDelegate(delegate, context) {\n    var methodName = context.method;\n    var method = delegate.iterator[methodName];\n    if (method === undefined) {\n      // A .throw or .return when the delegate iterator has no .throw\n      // method, or a missing .next method, always terminate the\n      // yield* loop.\n      context.delegate = null;\n\n      // Note: [\"return\"] must be used for ES3 parsing compatibility.\n      if (methodName === \"throw\" && delegate.iterator[\"return\"]) {\n        // If the delegate iterator has a return method, give it a\n        // chance to clean up.\n        context.method = \"return\";\n        context.arg = undefined;\n        maybeInvokeDelegate(delegate, context);\n\n        if (context.method === \"throw\") {\n          // If maybeInvokeDelegate(context) changed context.method from\n          // \"return\" to \"throw\", let that override the TypeError below.\n          return ContinueSentinel;\n        }\n      }\n      if (methodName !== \"return\") {\n        context.method = \"throw\";\n        context.arg = new TypeError(\n          \"The iterator does not provide a '\" + methodName + \"' method\");\n      }\n\n      return ContinueSentinel;\n    }\n\n    var record = tryCatch(method, delegate.iterator, context.arg);\n\n    if (record.type === \"throw\") {\n      context.method = \"throw\";\n      context.arg = record.arg;\n      context.delegate = null;\n      return ContinueSentinel;\n    }\n\n    var info = record.arg;\n\n    if (! info) {\n      context.method = \"throw\";\n      context.arg = new TypeError(\"iterator result is not an object\");\n      context.delegate = null;\n      return ContinueSentinel;\n    }\n\n    if (info.done) {\n      // Assign the result of the finished delegate to the temporary\n      // variable specified by delegate.resultName (see delegateYield).\n      context[delegate.resultName] = info.value;\n\n      // Resume execution at the desired location (see delegateYield).\n      context.next = delegate.nextLoc;\n\n      // If context.method was \"throw\" but the delegate handled the\n      // exception, let the outer generator proceed normally. If\n      // context.method was \"next\", forget context.arg since it has been\n      // \"consumed\" by the delegate iterator. If context.method was\n      // \"return\", allow the original .return call to continue in the\n      // outer generator.\n      if (context.method !== \"return\") {\n        context.method = \"next\";\n        context.arg = undefined;\n      }\n\n    } else {\n      // Re-yield the result returned by the delegate method.\n      return info;\n    }\n\n    // The delegate iterator is finished, so forget it and continue with\n    // the outer generator.\n    context.delegate = null;\n    return ContinueSentinel;\n  }\n\n  // Define Generator.prototype.{next,throw,return} in terms of the\n  // unified ._invoke helper method.\n  defineIteratorMethods(Gp);\n\n  define(Gp, toStringTagSymbol, \"Generator\");\n\n  // A Generator should always return itself as the iterator object when the\n  // @@iterator function is called on it. Some browsers' implementations of the\n  // iterator prototype chain incorrectly implement this, causing the Generator\n  // object to not be returned from this call. This ensures that doesn't happen.\n  // See https://github.com/facebook/regenerator/issues/274 for more details.\n  define(Gp, iteratorSymbol, function() {\n    return this;\n  });\n\n  define(Gp, \"toString\", function() {\n    return \"[object Generator]\";\n  });\n\n  function pushTryEntry(locs) {\n    var entry = { tryLoc: locs[0] };\n\n    if (1 in locs) {\n      entry.catchLoc = locs[1];\n    }\n\n    if (2 in locs) {\n      entry.finallyLoc = locs[2];\n      entry.afterLoc = locs[3];\n    }\n\n    this.tryEntries.push(entry);\n  }\n\n  function resetTryEntry(entry) {\n    var record = entry.completion || {};\n    record.type = \"normal\";\n    delete record.arg;\n    entry.completion = record;\n  }\n\n  function Context(tryLocsList) {\n    // The root entry object (effectively a try statement without a catch\n    // or a finally block) gives us a place to store values thrown from\n    // locations where there is no enclosing try statement.\n    this.tryEntries = [{ tryLoc: \"root\" }];\n    tryLocsList.forEach(pushTryEntry, this);\n    this.reset(true);\n  }\n\n  exports.keys = function(val) {\n    var object = Object(val);\n    var keys = [];\n    for (var key in object) {\n      keys.push(key);\n    }\n    keys.reverse();\n\n    // Rather than returning an object with a next method, we keep\n    // things simple and return the next function itself.\n    return function next() {\n      while (keys.length) {\n        var key = keys.pop();\n        if (key in object) {\n          next.value = key;\n          next.done = false;\n          return next;\n        }\n      }\n\n      // To avoid creating an additional object, we just hang the .value\n      // and .done properties off the next function object itself. This\n      // also ensures that the minifier will not anonymize the function.\n      next.done = true;\n      return next;\n    };\n  };\n\n  function values(iterable) {\n    if (iterable != null) {\n      var iteratorMethod = iterable[iteratorSymbol];\n      if (iteratorMethod) {\n        return iteratorMethod.call(iterable);\n      }\n\n      if (typeof iterable.next === \"function\") {\n        return iterable;\n      }\n\n      if (!isNaN(iterable.length)) {\n        var i = -1, next = function next() {\n          while (++i < iterable.length) {\n            if (hasOwn.call(iterable, i)) {\n              next.value = iterable[i];\n              next.done = false;\n              return next;\n            }\n          }\n\n          next.value = undefined;\n          next.done = true;\n\n          return next;\n        };\n\n        return next.next = next;\n      }\n    }\n\n    throw new TypeError(typeof iterable + \" is not iterable\");\n  }\n  exports.values = values;\n\n  function doneResult() {\n    return { value: undefined, done: true };\n  }\n\n  Context.prototype = {\n    constructor: Context,\n\n    reset: function(skipTempReset) {\n      this.prev = 0;\n      this.next = 0;\n      // Resetting context._sent for legacy support of Babel's\n      // function.sent implementation.\n      this.sent = this._sent = undefined;\n      this.done = false;\n      this.delegate = null;\n\n      this.method = \"next\";\n      this.arg = undefined;\n\n      this.tryEntries.forEach(resetTryEntry);\n\n      if (!skipTempReset) {\n        for (var name in this) {\n          // Not sure about the optimal order of these conditions:\n          if (name.charAt(0) === \"t\" &&\n              hasOwn.call(this, name) &&\n              !isNaN(+name.slice(1))) {\n            this[name] = undefined;\n          }\n        }\n      }\n    },\n\n    stop: function() {\n      this.done = true;\n\n      var rootEntry = this.tryEntries[0];\n      var rootRecord = rootEntry.completion;\n      if (rootRecord.type === \"throw\") {\n        throw rootRecord.arg;\n      }\n\n      return this.rval;\n    },\n\n    dispatchException: function(exception) {\n      if (this.done) {\n        throw exception;\n      }\n\n      var context = this;\n      function handle(loc, caught) {\n        record.type = \"throw\";\n        record.arg = exception;\n        context.next = loc;\n\n        if (caught) {\n          // If the dispatched exception was caught by a catch block,\n          // then let that catch block handle the exception normally.\n          context.method = \"next\";\n          context.arg = undefined;\n        }\n\n        return !! caught;\n      }\n\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        var record = entry.completion;\n\n        if (entry.tryLoc === \"root\") {\n          // Exception thrown outside of any try block that could handle\n          // it, so set the completion value of the entire function to\n          // throw the exception.\n          return handle(\"end\");\n        }\n\n        if (entry.tryLoc <= this.prev) {\n          var hasCatch = hasOwn.call(entry, \"catchLoc\");\n          var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n          if (hasCatch && hasFinally) {\n            if (this.prev < entry.catchLoc) {\n              return handle(entry.catchLoc, true);\n            } else if (this.prev < entry.finallyLoc) {\n              return handle(entry.finallyLoc);\n            }\n\n          } else if (hasCatch) {\n            if (this.prev < entry.catchLoc) {\n              return handle(entry.catchLoc, true);\n            }\n\n          } else if (hasFinally) {\n            if (this.prev < entry.finallyLoc) {\n              return handle(entry.finallyLoc);\n            }\n\n          } else {\n            throw new Error(\"try statement without catch or finally\");\n          }\n        }\n      }\n    },\n\n    abrupt: function(type, arg) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.tryLoc <= this.prev &&\n            hasOwn.call(entry, \"finallyLoc\") &&\n            this.prev < entry.finallyLoc) {\n          var finallyEntry = entry;\n          break;\n        }\n      }\n\n      if (finallyEntry &&\n          (type === \"break\" ||\n           type === \"continue\") &&\n          finallyEntry.tryLoc <= arg &&\n          arg <= finallyEntry.finallyLoc) {\n        // Ignore the finally entry if control is not jumping to a\n        // location outside the try/catch block.\n        finallyEntry = null;\n      }\n\n      var record = finallyEntry ? finallyEntry.completion : {};\n      record.type = type;\n      record.arg = arg;\n\n      if (finallyEntry) {\n        this.method = \"next\";\n        this.next = finallyEntry.finallyLoc;\n        return ContinueSentinel;\n      }\n\n      return this.complete(record);\n    },\n\n    complete: function(record, afterLoc) {\n      if (record.type === \"throw\") {\n        throw record.arg;\n      }\n\n      if (record.type === \"break\" ||\n          record.type === \"continue\") {\n        this.next = record.arg;\n      } else if (record.type === \"return\") {\n        this.rval = this.arg = record.arg;\n        this.method = \"return\";\n        this.next = \"end\";\n      } else if (record.type === \"normal\" && afterLoc) {\n        this.next = afterLoc;\n      }\n\n      return ContinueSentinel;\n    },\n\n    finish: function(finallyLoc) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.finallyLoc === finallyLoc) {\n          this.complete(entry.completion, entry.afterLoc);\n          resetTryEntry(entry);\n          return ContinueSentinel;\n        }\n      }\n    },\n\n    \"catch\": function(tryLoc) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.tryLoc === tryLoc) {\n          var record = entry.completion;\n          if (record.type === \"throw\") {\n            var thrown = record.arg;\n            resetTryEntry(entry);\n          }\n          return thrown;\n        }\n      }\n\n      // The context.catch method must only be called with a location\n      // argument that corresponds to a known catch block.\n      throw new Error(\"illegal catch attempt\");\n    },\n\n    delegateYield: function(iterable, resultName, nextLoc) {\n      this.delegate = {\n        iterator: values(iterable),\n        resultName: resultName,\n        nextLoc: nextLoc\n      };\n\n      if (this.method === \"next\") {\n        // Deliberately forget the last sent value so that we don't\n        // accidentally pass it on to the delegate.\n        this.arg = undefined;\n      }\n\n      return ContinueSentinel;\n    }\n  };\n\n  // Regardless of whether this script is executing as a CommonJS module\n  // or not, return the runtime object so that we can declare the variable\n  // regeneratorRuntime in the outer scope, which allows this module to be\n  // injected easily by `bin/regenerator --include-runtime script.js`.\n  return exports;\n\n}(\n  // If this script is executing as a CommonJS module, use module.exports\n  // as the regeneratorRuntime namespace. Otherwise create a new empty\n  // object. Either way, the resulting object will be used to initialize\n  // the regeneratorRuntime variable at the top of this file.\n  typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n  regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n  // This module should not be running in strict mode, so the above\n  // assignment should always work unless something is misconfigured. Just\n  // in case runtime.js accidentally runs in strict mode, in modern engines\n  // we can explicitly access globalThis. In older engines we can escape\n  // strict mode using a global Function call. This could conceivably fail\n  // if a Content Security Policy forbids using Function, but in that case\n  // the proper solution is to fix the accidental strict mode problem. If\n  // you've misconfigured your bundler to force strict mode and applied a\n  // CSP to forbid Function, and you're not willing to fix either of those\n  // problems, please detail your unique predicament in a GitHub issue.\n  if (typeof globalThis === \"object\") {\n    globalThis.regeneratorRuntime = runtime;\n  } else {\n    Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n  }\n}\n","import { i as isNode$1 } from \"./utils-COWNd3uN.js\";\n\n//#region src/public/public-runtime-modules.ts\nconst isNode = isNode$1();\nconst importRuntimeModulePromise = (async () => {\n\tif (isNode) return () => {\n\t\tthrow new Error(\"importRuntimeModule cannot be used in a Node.js context\");\n\t};\n\treturn (await import(\"./dist-BmJduVUG.js\")).importRuntimeModule;\n})();\n/**\n* @param hostConfig\n* @returns\n*/\nasync function getAuthRuntimeModule(hostConfig) {\n\tif (isNode) return import(\"./auth-Dv-y_jy_.js\");\n\treturn (await importRuntimeModulePromise)(\"auth@v1\", hostConfig);\n}\nasync function getQixRuntimeModule(hostConfig) {\n\tawait getAuthRuntimeModule(hostConfig);\n\tif (isNode) return import(\"./qix-BBMSnpdR.js\");\n\treturn (await importRuntimeModulePromise)(\"qix@v1\", hostConfig);\n}\nasync function getInvokeFetchRuntimeModule(hostConfig) {\n\tawait getAuthRuntimeModule(hostConfig);\n\tif (isNode) return import(\"./invoke-fetch-D66-tk9N.js\");\n\treturn (await importRuntimeModulePromise)(\"invoke-fetch@v1\", hostConfig);\n}\n\n//#endregion\nexport { getInvokeFetchRuntimeModule as n, getQixRuntimeModule as r, getAuthRuntimeModule as t };","import { t as getAuthRuntimeModule } from \"./chunks/public-runtime-modules-CE8QxhXX.js\";\n\n//#region src/public/auth.ts\n/**\n* Registers an auth module that can handle authentication. An auth module is used by specifying its name as authType in the HostConfig passed in to api calls.\n* @param name the name of the module\n* @param authModule the implementation of the AuthModule interface\n*/\nfunction registerAuthModule(name, authModule) {\n\tgetAuthRuntimeModule().then((impl) => impl.registerAuthModule(name, authModule));\n}\n/**\n* Logs out the user and sets `global.loggingOut` to true.\n*\n* **NOTE**: Does not abort pending requests.\n*/\nfunction logout() {\n\tgetAuthRuntimeModule().then((impl) => impl.logout());\n}\n/**\n* Sets the default host config that will be used for all api calls that do not include a HostConfig\n* @param hostConfig the default HostConfig to use\n*/\nfunction setDefaultHostConfig(hostConfig) {\n\tgetAuthRuntimeModule(hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));\n}\n/**\n* Registers a host config with the given name.\n* @param name The name of the host config to be used to reference the host config later.\n* @param hostConfig The host config to register.\n*/\nfunction registerHostConfig(name, hostConfig) {\n\tgetAuthRuntimeModule(hostConfig).then((impl) => impl.registerHostConfig(name, hostConfig));\n}\n/**\n* Unregisters a host config with the given name.\n* @param name The name of the host config to unregister.\n*/\nfunction unregisterHostConfig(name) {\n\tgetAuthRuntimeModule().then((impl) => impl.unregisterHostConfig(name));\n}\n/**\n* Returns an access token using the supplied host config. Typically used on the backend to supply the access token to the frontend\n*/\nasync function getAccessToken({ hostConfig }) {\n\treturn getAuthRuntimeModule(hostConfig).then((impl) => impl.getAccessToken({ hostConfig }));\n}\n/**\n* Returns a record of query parameters that needs to be added to resources requests, e.g.\n* image tags, etc.\n*/\nasync function getWebResourceAuthParams({ hostConfig }) {\n\treturn getAuthRuntimeModule(hostConfig).then((impl) => impl.getWebResourceAuthParams({ hostConfig }));\n}\nvar auth_default = {\n\tregisterAuthModule,\n\tsetDefaultHostConfig,\n\tregisterHostConfig,\n\tunregisterHostConfig,\n\tgetAccessToken,\n\tgetWebResourceAuthParams\n};\n\n//#endregion\nexport { auth_default as default, getAccessToken, getWebResourceAuthParams, logout, registerAuthModule, registerHostConfig, setDefaultHostConfig, unregisterHostConfig };","/**\n * @license React\n * react.production.min.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'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\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","import translator from './translator';\n\nconst locale = ({ initial = 'en-US', fallback = 'en-US' } = {}) => {\n  const t = translator({\n    initial,\n    fallback,\n  });\n\n  return {\n    translator: t,\n  };\n};\n\nexport default locale;\n","const format = (message = '', args = []) => {\n  const arr = typeof args === 'string' || typeof args === 'number' ? [args] : args;\n\n  return message.replace(/\\{(\\d+)\\}/g, (match, number) => (typeof arr[number] !== 'undefined' ? arr[number] : match));\n};\n\nexport default function translator({ initial = 'en-US', fallback = 'en-US' } = {}) {\n  const dictionaries = {};\n  let currentLocale = initial;\n\n  /**\n   * @class Translator\n   */\n  const api = /** @lends Translator# */ {\n    /**\n     * Returns current locale.\n     * @param {string=} lang - language Locale to updated the currentLocale value\n     * @returns {string} current locale.\n     */\n    language: (lang) => {\n      if (lang) {\n        currentLocale = lang;\n      }\n      return currentLocale;\n    },\n    /**\n     * Registers a string in multiple locales\n     * @param {object} item\n     * @param {string} item.id\n     * @param {object<string,string>} item.locale\n     * @example\n     * translator.add({\n     *   id: 'company.hello_user',\n     *   locale: {\n     *     'en-US': 'Hello {0}',\n     *     'sv-SE': 'Hej {0}'\n     *   }\n     * });\n     * translator.get('company.hello_user', ['John']); // Hello John\n     */\n    add: (item) => {\n      // TODO - disallow override?\n      const { id, locale } = item;\n      Object.keys(locale).forEach((lang) => {\n        if (!dictionaries[lang]) {\n          dictionaries[lang] = {};\n        }\n        dictionaries[lang][id] = locale[lang];\n      });\n    },\n    /**\n     * Translates a string for current locale.\n     * @param {string} str - ID of the registered string.\n     * @param {Array<string>=} args - Values passed down for string interpolation.\n     * @returns {string} The translated string.\n     */\n    get(str, args) {\n      let v;\n      if (dictionaries[currentLocale] && typeof dictionaries[currentLocale][str] !== 'undefined') {\n        v = dictionaries[currentLocale][str];\n      } else if (dictionaries[fallback] && typeof dictionaries[fallback][str] !== 'undefined') {\n        v = dictionaries[fallback][str];\n      } else {\n        v = str;\n      }\n\n      return typeof args !== 'undefined' ? format(v, args) : v;\n    },\n  };\n\n  return api;\n}\n","import locale from '@nebula.js/locale';\nimport all from '@nebula.js/locale/all.json';\n\nexport default function appLocaleFn(language) {\n  const l = locale({\n    initial: language,\n  });\n\n  Object.keys(all).forEach((key) => {\n    l.translator.add(all[key]);\n  });\n\n  return {\n    translator: l.translator,\n  };\n}\n","/**\n * Utility functions\n */\n\nvar util = {};\n\nutil.isObject = function isObject(arg) {\n  return typeof arg === 'object' && arg !== null;\n}\n\nutil.isNumber = function isNumber(arg) {\n  return typeof arg === 'number';\n}\n\nutil.isUndefined = function isUndefined(arg) {\n  return arg === void 0;\n}\n\nutil.isFunction = function isFunction(arg){\n  return typeof arg === 'function';\n}\n\n\n/**\n * EventEmitter class\n */\n\nfunction EventEmitter() {\n  EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\nEventEmitter.init = function() {\n  this._events = this._events || {};\n  this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n  if (!util.isNumber(n) || n < 0 || isNaN(n))\n    throw TypeError('n must be a positive number');\n  this._maxListeners = n;\n  return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n  var er, handler, len, args, i, listeners;\n\n  if (!this._events)\n    this._events = {};\n\n  // If there is no 'error' event listener then throw.\n  if (type === 'error' && !this._events.error) {\n    er = arguments[1];\n    if (er instanceof Error) {\n      throw er; // Unhandled 'error' event\n    } else {\n      throw Error('Uncaught, unspecified \"error\" event.');\n    }\n    return false;\n  }\n\n  handler = this._events[type];\n\n  if (util.isUndefined(handler))\n    return false;\n\n  if (util.isFunction(handler)) {\n    switch (arguments.length) {\n      // fast cases\n      case 1:\n        handler.call(this);\n        break;\n      case 2:\n        handler.call(this, arguments[1]);\n        break;\n      case 3:\n        handler.call(this, arguments[1], arguments[2]);\n        break;\n      // slower\n      default:\n        len = arguments.length;\n        args = new Array(len - 1);\n        for (i = 1; i < len; i++)\n          args[i - 1] = arguments[i];\n        handler.apply(this, args);\n    }\n  } else if (util.isObject(handler)) {\n    len = arguments.length;\n    args = new Array(len - 1);\n    for (i = 1; i < len; i++)\n      args[i - 1] = arguments[i];\n\n    listeners = handler.slice();\n    len = listeners.length;\n    for (i = 0; i < len; i++)\n      listeners[i].apply(this, args);\n  }\n\n  return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n  var m;\n\n  if (!util.isFunction(listener))\n    throw TypeError('listener must be a function');\n\n  if (!this._events)\n    this._events = {};\n\n  // To avoid recursion in the case that type === \"newListener\"! Before\n  // adding it to the listeners, first emit \"newListener\".\n  if (this._events.newListener)\n    this.emit('newListener', type,\n              util.isFunction(listener.listener) ?\n              listener.listener : listener);\n\n  if (!this._events[type])\n    // Optimize the case of one listener. Don't need the extra array object.\n    this._events[type] = listener;\n  else if (util.isObject(this._events[type]))\n    // If we've already got an array, just append.\n    this._events[type].push(listener);\n  else\n    // Adding the second element, need to change to array.\n    this._events[type] = [this._events[type], listener];\n\n  // Check for listener leak\n  if (util.isObject(this._events[type]) && !this._events[type].warned) {\n    var m;\n    if (!util.isUndefined(this._maxListeners)) {\n      m = this._maxListeners;\n    } else {\n      m = EventEmitter.defaultMaxListeners;\n    }\n\n    if (m && m > 0 && this._events[type].length > m) {\n      this._events[type].warned = true;\n\n      if (util.isFunction(console.error)) {\n        console.error('(node) warning: possible EventEmitter memory ' +\n                      'leak detected. %d listeners added. ' +\n                      'Use emitter.setMaxListeners() to increase limit.',\n                      this._events[type].length);\n      }\n      if (util.isFunction(console.trace))\n        console.trace();\n    }\n  }\n\n  return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n  if (!util.isFunction(listener))\n    throw TypeError('listener must be a function');\n\n  var fired = false;\n\n  function g() {\n    this.removeListener(type, g);\n\n    if (!fired) {\n      fired = true;\n      listener.apply(this, arguments);\n    }\n  }\n\n  g.listener = listener;\n  this.on(type, g);\n\n  return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n  var list, position, length, i;\n\n  if (!util.isFunction(listener))\n    throw TypeError('listener must be a function');\n\n  if (!this._events || !this._events[type])\n    return this;\n\n  list = this._events[type];\n  length = list.length;\n  position = -1;\n\n  if (list === listener ||\n      (util.isFunction(list.listener) && list.listener === listener)) {\n    delete this._events[type];\n    if (this._events.removeListener)\n      this.emit('removeListener', type, listener);\n\n  } else if (util.isObject(list)) {\n    for (i = length; i-- > 0;) {\n      if (list[i] === listener ||\n          (list[i].listener && list[i].listener === listener)) {\n        position = i;\n        break;\n      }\n    }\n\n    if (position < 0)\n      return this;\n\n    if (list.length === 1) {\n      list.length = 0;\n      delete this._events[type];\n    } else {\n      list.splice(position, 1);\n    }\n\n    if (this._events.removeListener)\n      this.emit('removeListener', type, listener);\n  }\n\n  return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n  var key, listeners;\n\n  if (!this._events)\n    return this;\n\n  // not listening for removeListener, no need to emit\n  if (!this._events.removeListener) {\n    if (arguments.length === 0)\n      this._events = {};\n    else if (this._events[type])\n      delete this._events[type];\n    return this;\n  }\n\n  // emit removeListener for all listeners on all events\n  if (arguments.length === 0) {\n    for (key in this._events) {\n      if (key === 'removeListener') continue;\n      this.removeAllListeners(key);\n    }\n    this.removeAllListeners('removeListener');\n    this._events = {};\n    return this;\n  }\n\n  listeners = this._events[type];\n\n  if (util.isFunction(listeners)) {\n    this.removeListener(type, listeners);\n  } else if (Array.isArray(listeners)) {\n    // LIFO order\n    while (listeners.length)\n      this.removeListener(type, listeners[listeners.length - 1]);\n  }\n  delete this._events[type];\n\n  return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n  var ret;\n  if (!this._events || !this._events[type])\n    ret = [];\n  else if (util.isFunction(this._events[type]))\n    ret = [this._events[type]];\n  else\n    ret = this._events[type].slice();\n  return ret;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n  var ret;\n  if (!emitter._events || !emitter._events[type])\n    ret = 0;\n  else if (util.isFunction(emitter._events[type]))\n    ret = 1;\n  else\n    ret = emitter._events[type].length;\n  return ret;\n};\n","export default function(constructor, factory, prototype) {\n  constructor.prototype = factory.prototype = prototype;\n  prototype.constructor = constructor;\n}\n\nexport function extend(parent, definition) {\n  var prototype = Object.create(parent.prototype);\n  for (var key in definition) prototype[key] = definition[key];\n  return prototype;\n}\n","import define, {extend} from \"./define.js\";\n\nexport function Color() {}\n\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\n\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n    reN = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n    reP = \"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n    reHex = /^#([0-9a-f]{3,8})$/,\n    reRgbInteger = new RegExp(`^rgb\\\\(${reI},${reI},${reI}\\\\)$`),\n    reRgbPercent = new RegExp(`^rgb\\\\(${reP},${reP},${reP}\\\\)$`),\n    reRgbaInteger = new RegExp(`^rgba\\\\(${reI},${reI},${reI},${reN}\\\\)$`),\n    reRgbaPercent = new RegExp(`^rgba\\\\(${reP},${reP},${reP},${reN}\\\\)$`),\n    reHslPercent = new RegExp(`^hsl\\\\(${reN},${reP},${reP}\\\\)$`),\n    reHslaPercent = new RegExp(`^hsla\\\\(${reN},${reP},${reP},${reN}\\\\)$`);\n\nvar named = {\n  aliceblue: 0xf0f8ff,\n  antiquewhite: 0xfaebd7,\n  aqua: 0x00ffff,\n  aquamarine: 0x7fffd4,\n  azure: 0xf0ffff,\n  beige: 0xf5f5dc,\n  bisque: 0xffe4c4,\n  black: 0x000000,\n  blanchedalmond: 0xffebcd,\n  blue: 0x0000ff,\n  blueviolet: 0x8a2be2,\n  brown: 0xa52a2a,\n  burlywood: 0xdeb887,\n  cadetblue: 0x5f9ea0,\n  chartreuse: 0x7fff00,\n  chocolate: 0xd2691e,\n  coral: 0xff7f50,\n  cornflowerblue: 0x6495ed,\n  cornsilk: 0xfff8dc,\n  crimson: 0xdc143c,\n  cyan: 0x00ffff,\n  darkblue: 0x00008b,\n  darkcyan: 0x008b8b,\n  darkgoldenrod: 0xb8860b,\n  darkgray: 0xa9a9a9,\n  darkgreen: 0x006400,\n  darkgrey: 0xa9a9a9,\n  darkkhaki: 0xbdb76b,\n  darkmagenta: 0x8b008b,\n  darkolivegreen: 0x556b2f,\n  darkorange: 0xff8c00,\n  darkorchid: 0x9932cc,\n  darkred: 0x8b0000,\n  darksalmon: 0xe9967a,\n  darkseagreen: 0x8fbc8f,\n  darkslateblue: 0x483d8b,\n  darkslategray: 0x2f4f4f,\n  darkslategrey: 0x2f4f4f,\n  darkturquoise: 0x00ced1,\n  darkviolet: 0x9400d3,\n  deeppink: 0xff1493,\n  deepskyblue: 0x00bfff,\n  dimgray: 0x696969,\n  dimgrey: 0x696969,\n  dodgerblue: 0x1e90ff,\n  firebrick: 0xb22222,\n  floralwhite: 0xfffaf0,\n  forestgreen: 0x228b22,\n  fuchsia: 0xff00ff,\n  gainsboro: 0xdcdcdc,\n  ghostwhite: 0xf8f8ff,\n  gold: 0xffd700,\n  goldenrod: 0xdaa520,\n  gray: 0x808080,\n  green: 0x008000,\n  greenyellow: 0xadff2f,\n  grey: 0x808080,\n  honeydew: 0xf0fff0,\n  hotpink: 0xff69b4,\n  indianred: 0xcd5c5c,\n  indigo: 0x4b0082,\n  ivory: 0xfffff0,\n  khaki: 0xf0e68c,\n  lavender: 0xe6e6fa,\n  lavenderblush: 0xfff0f5,\n  lawngreen: 0x7cfc00,\n  lemonchiffon: 0xfffacd,\n  lightblue: 0xadd8e6,\n  lightcoral: 0xf08080,\n  lightcyan: 0xe0ffff,\n  lightgoldenrodyellow: 0xfafad2,\n  lightgray: 0xd3d3d3,\n  lightgreen: 0x90ee90,\n  lightgrey: 0xd3d3d3,\n  lightpink: 0xffb6c1,\n  lightsalmon: 0xffa07a,\n  lightseagreen: 0x20b2aa,\n  lightskyblue: 0x87cefa,\n  lightslategray: 0x778899,\n  lightslategrey: 0x778899,\n  lightsteelblue: 0xb0c4de,\n  lightyellow: 0xffffe0,\n  lime: 0x00ff00,\n  limegreen: 0x32cd32,\n  linen: 0xfaf0e6,\n  magenta: 0xff00ff,\n  maroon: 0x800000,\n  mediumaquamarine: 0x66cdaa,\n  mediumblue: 0x0000cd,\n  mediumorchid: 0xba55d3,\n  mediumpurple: 0x9370db,\n  mediumseagreen: 0x3cb371,\n  mediumslateblue: 0x7b68ee,\n  mediumspringgreen: 0x00fa9a,\n  mediumturquoise: 0x48d1cc,\n  mediumvioletred: 0xc71585,\n  midnightblue: 0x191970,\n  mintcream: 0xf5fffa,\n  mistyrose: 0xffe4e1,\n  moccasin: 0xffe4b5,\n  navajowhite: 0xffdead,\n  navy: 0x000080,\n  oldlace: 0xfdf5e6,\n  olive: 0x808000,\n  olivedrab: 0x6b8e23,\n  orange: 0xffa500,\n  orangered: 0xff4500,\n  orchid: 0xda70d6,\n  palegoldenrod: 0xeee8aa,\n  palegreen: 0x98fb98,\n  paleturquoise: 0xafeeee,\n  palevioletred: 0xdb7093,\n  papayawhip: 0xffefd5,\n  peachpuff: 0xffdab9,\n  peru: 0xcd853f,\n  pink: 0xffc0cb,\n  plum: 0xdda0dd,\n  powderblue: 0xb0e0e6,\n  purple: 0x800080,\n  rebeccapurple: 0x663399,\n  red: 0xff0000,\n  rosybrown: 0xbc8f8f,\n  royalblue: 0x4169e1,\n  saddlebrown: 0x8b4513,\n  salmon: 0xfa8072,\n  sandybrown: 0xf4a460,\n  seagreen: 0x2e8b57,\n  seashell: 0xfff5ee,\n  sienna: 0xa0522d,\n  silver: 0xc0c0c0,\n  skyblue: 0x87ceeb,\n  slateblue: 0x6a5acd,\n  slategray: 0x708090,\n  slategrey: 0x708090,\n  snow: 0xfffafa,\n  springgreen: 0x00ff7f,\n  steelblue: 0x4682b4,\n  tan: 0xd2b48c,\n  teal: 0x008080,\n  thistle: 0xd8bfd8,\n  tomato: 0xff6347,\n  turquoise: 0x40e0d0,\n  violet: 0xee82ee,\n  wheat: 0xf5deb3,\n  white: 0xffffff,\n  whitesmoke: 0xf5f5f5,\n  yellow: 0xffff00,\n  yellowgreen: 0x9acd32\n};\n\ndefine(Color, color, {\n  copy(channels) {\n    return Object.assign(new this.constructor, this, channels);\n  },\n  displayable() {\n    return this.rgb().displayable();\n  },\n  hex: color_formatHex, // Deprecated! Use color.formatHex.\n  formatHex: color_formatHex,\n  formatHex8: color_formatHex8,\n  formatHsl: color_formatHsl,\n  formatRgb: color_formatRgb,\n  toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n  return this.rgb().formatHex();\n}\n\nfunction color_formatHex8() {\n  return this.rgb().formatHex8();\n}\n\nfunction color_formatHsl() {\n  return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n  return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n  var m, l;\n  format = (format + \"\").trim().toLowerCase();\n  return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n      : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00\n      : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n      : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000\n      : null) // invalid hex\n      : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n      : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n      : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n      : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n      : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n      : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n      : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n      : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0)\n      : null;\n}\n\nfunction rgbn(n) {\n  return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n  if (a <= 0) r = g = b = NaN;\n  return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n  if (!(o instanceof Color)) o = color(o);\n  if (!o) return new Rgb;\n  o = o.rgb();\n  return new Rgb(o.r, o.g, o.b, o.opacity);\n}\n\nexport function rgb(r, g, b, opacity) {\n  return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\n\nexport function Rgb(r, g, b, opacity) {\n  this.r = +r;\n  this.g = +g;\n  this.b = +b;\n  this.opacity = +opacity;\n}\n\ndefine(Rgb, rgb, extend(Color, {\n  brighter(k) {\n    k = k == null ? brighter : Math.pow(brighter, k);\n    return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n  },\n  darker(k) {\n    k = k == null ? darker : Math.pow(darker, k);\n    return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n  },\n  rgb() {\n    return this;\n  },\n  clamp() {\n    return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));\n  },\n  displayable() {\n    return (-0.5 <= this.r && this.r < 255.5)\n        && (-0.5 <= this.g && this.g < 255.5)\n        && (-0.5 <= this.b && this.b < 255.5)\n        && (0 <= this.opacity && this.opacity <= 1);\n  },\n  hex: rgb_formatHex, // Deprecated! Use color.formatHex.\n  formatHex: rgb_formatHex,\n  formatHex8: rgb_formatHex8,\n  formatRgb: rgb_formatRgb,\n  toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n  return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;\n}\n\nfunction rgb_formatHex8() {\n  return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;\n}\n\nfunction rgb_formatRgb() {\n  const a = clampa(this.opacity);\n  return `${a === 1 ? \"rgb(\" : \"rgba(\"}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? \")\" : `, ${a})`}`;\n}\n\nfunction clampa(opacity) {\n  return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));\n}\n\nfunction clampi(value) {\n  return Math.max(0, Math.min(255, Math.round(value) || 0));\n}\n\nfunction hex(value) {\n  value = clampi(value);\n  return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n  if (a <= 0) h = s = l = NaN;\n  else if (l <= 0 || l >= 1) h = s = NaN;\n  else if (s <= 0) h = NaN;\n  return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n  if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n  if (!(o instanceof Color)) o = color(o);\n  if (!o) return new Hsl;\n  if (o instanceof Hsl) return o;\n  o = o.rgb();\n  var r = o.r / 255,\n      g = o.g / 255,\n      b = o.b / 255,\n      min = Math.min(r, g, b),\n      max = Math.max(r, g, b),\n      h = NaN,\n      s = max - min,\n      l = (max + min) / 2;\n  if (s) {\n    if (r === max) h = (g - b) / s + (g < b) * 6;\n    else if (g === max) h = (b - r) / s + 2;\n    else h = (r - g) / s + 4;\n    s /= l < 0.5 ? max + min : 2 - max - min;\n    h *= 60;\n  } else {\n    s = l > 0 && l < 1 ? 0 : h;\n  }\n  return new Hsl(h, s, l, o.opacity);\n}\n\nexport function hsl(h, s, l, opacity) {\n  return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n  this.h = +h;\n  this.s = +s;\n  this.l = +l;\n  this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n  brighter(k) {\n    k = k == null ? brighter : Math.pow(brighter, k);\n    return new Hsl(this.h, this.s, this.l * k, this.opacity);\n  },\n  darker(k) {\n    k = k == null ? darker : Math.pow(darker, k);\n    return new Hsl(this.h, this.s, this.l * k, this.opacity);\n  },\n  rgb() {\n    var h = this.h % 360 + (this.h < 0) * 360,\n        s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n        l = this.l,\n        m2 = l + (l < 0.5 ? l : 1 - l) * s,\n        m1 = 2 * l - m2;\n    return new Rgb(\n      hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),\n      hsl2rgb(h, m1, m2),\n      hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),\n      this.opacity\n    );\n  },\n  clamp() {\n    return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));\n  },\n  displayable() {\n    return (0 <= this.s && this.s <= 1 || isNaN(this.s))\n        && (0 <= this.l && this.l <= 1)\n        && (0 <= this.opacity && this.opacity <= 1);\n  },\n  formatHsl() {\n    const a = clampa(this.opacity);\n    return `${a === 1 ? \"hsl(\" : \"hsla(\"}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? \")\" : `, ${a})`}`;\n  }\n}));\n\nfunction clamph(value) {\n  value = (value || 0) % 360;\n  return value < 0 ? value + 360 : value;\n}\n\nfunction clampt(value) {\n  return Math.max(0, Math.min(1, value || 0));\n}\n\n/* From FvD 13.37, CSS Color Module Level 3 */\nfunction hsl2rgb(h, m1, m2) {\n  return (h < 60 ? m1 + (m2 - m1) * h / 60\n      : h < 180 ? m2\n      : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60\n      : m1) * 255;\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","const colorStruct = {\n  aliceblue: { r: 240, g: 248, b: 255 },\n  antiquewhite: { r: 250, g: 235, b: 215 },\n  aqua: { r: 0, g: 255, b: 255 },\n  aquamarine: { r: 127, g: 255, b: 212 },\n  azure: { r: 240, g: 255, b: 255 },\n  beige: { r: 245, g: 245, b: 220 },\n  bisque: { r: 255, g: 228, b: 196 },\n  black: { r: 0, g: 0, b: 0 },\n  blanchedalmond: { r: 255, g: 235, b: 205 },\n  blue: { r: 0, g: 0, b: 255 },\n  blueviolet: { r: 138, g: 43, b: 226 },\n  brown: { r: 165, g: 42, b: 42 },\n  burlywood: { r: 222, g: 184, b: 135 },\n  cadetblue: { r: 95, g: 158, b: 160 },\n  chartreuse: { r: 127, g: 255, b: 0 },\n  chocolate: { r: 210, g: 105, b: 30 },\n  coral: { r: 255, g: 127, b: 80 },\n  cornflowerblue: { r: 100, g: 149, b: 237 },\n  cornsilk: { r: 255, g: 248, b: 220 },\n  crimson: { r: 220, g: 20, b: 60 },\n  cyan: { r: 0, g: 255, b: 255 },\n  darkblue: { r: 0, g: 0, b: 139 },\n  darkcyan: { r: 0, g: 139, b: 139 },\n  darkgoldenrod: { r: 184, g: 134, b: 11 },\n  darkgray: { r: 169, g: 169, b: 169 },\n  darkgreen: { r: 0, g: 100, b: 0 },\n  darkgrey: { r: 169, g: 169, b: 169 },\n  darkkhaki: { r: 189, g: 183, b: 107 },\n  darkmagenta: { r: 139, g: 0, b: 139 },\n  darkolivegreen: { r: 85, g: 107, b: 47 },\n  darkorange: { r: 255, g: 140, b: 0 },\n  darkorchid: { r: 153, g: 50, b: 204 },\n  darkred: { r: 139, g: 0, b: 0 },\n  darksalmon: { r: 233, g: 150, b: 122 },\n  darkseagreen: { r: 143, g: 188, b: 143 },\n  darkslateblue: { r: 72, g: 61, b: 139 },\n  darkslategray: { r: 47, g: 79, b: 79 },\n  darkslategrey: { r: 47, g: 79, b: 79 },\n  darkturquoise: { r: 0, g: 206, b: 209 },\n  darkviolet: { r: 148, g: 0, b: 211 },\n  deeppink: { r: 255, g: 20, b: 147 },\n  deepskyblue: { r: 0, g: 191, b: 255 },\n  dimgray: { r: 105, g: 105, b: 105 },\n  dimgrey: { r: 105, g: 105, b: 105 },\n  dodgerblue: { r: 30, g: 144, b: 255 },\n  firebrick: { r: 178, g: 34, b: 34 },\n  floralwhite: { r: 255, g: 250, b: 240 },\n  forestgreen: { r: 34, g: 139, b: 34 },\n  fuchsia: { r: 255, g: 0, b: 255 },\n  gainsboro: { r: 220, g: 220, b: 220 },\n  ghostwhite: { r: 248, g: 248, b: 255 },\n  gold: { r: 255, g: 215, b: 0 },\n  goldenrod: { r: 218, g: 165, b: 32 },\n  gray: { r: 128, g: 128, b: 128 },\n  green: { r: 0, g: 128, b: 0 },\n  greenyellow: { r: 173, g: 255, b: 47 },\n  grey: { r: 128, g: 128, b: 128 },\n  honeydew: { r: 240, g: 255, b: 240 },\n  hotpink: { r: 255, g: 105, b: 180 },\n  indianred: { r: 205, g: 92, b: 92 },\n  indigo: { r: 75, g: 0, b: 130 },\n  ivory: { r: 255, g: 255, b: 240 },\n  khaki: { r: 240, g: 230, b: 140 },\n  lavender: { r: 230, g: 230, b: 250 },\n  lavenderblush: { r: 255, g: 240, b: 245 },\n  lawngreen: { r: 124, g: 252, b: 0 },\n  lemonchiffon: { r: 255, g: 250, b: 205 },\n  lightblue: { r: 173, g: 216, b: 230 },\n  lightcoral: { r: 240, g: 128, b: 128 },\n  lightcyan: { r: 224, g: 255, b: 255 },\n  lightgoldenrodyellow: { r: 250, g: 250, b: 210 },\n  lightgray: { r: 211, g: 211, b: 211 },\n  lightgreen: { r: 144, g: 238, b: 144 },\n  lightgrey: { r: 211, g: 211, b: 211 },\n  lightpink: { r: 255, g: 182, b: 193 },\n  lightsalmon: { r: 255, g: 160, b: 122 },\n  lightseagreen: { r: 32, g: 178, b: 170 },\n  lightskyblue: { r: 135, g: 206, b: 250 },\n  lightslategray: { r: 119, g: 136, b: 153 },\n  lightslategrey: { r: 119, g: 136, b: 153 },\n  lightsteelblue: { r: 176, g: 196, b: 222 },\n  lightyellow: { r: 255, g: 255, b: 224 },\n  lime: { r: 0, g: 255, b: 0 },\n  limegreen: { r: 50, g: 205, b: 50 },\n  linen: { r: 250, g: 240, b: 230 },\n  magenta: { r: 255, g: 0, b: 255 },\n  maroon: { r: 128, g: 0, b: 0 },\n  mediumaquamarine: { r: 102, g: 205, b: 170 },\n  mediumblue: { r: 0, g: 0, b: 205 },\n  mediumorchid: { r: 186, g: 85, b: 211 },\n  mediumpurple: { r: 147, g: 112, b: 219 },\n  mediumseagreen: { r: 60, g: 179, b: 113 },\n  mediumslateblue: { r: 123, g: 104, b: 238 },\n  mediumspringgreen: { r: 0, g: 250, b: 154 },\n  mediumturquoise: { r: 72, g: 209, b: 204 },\n  mediumvioletred: { r: 199, g: 21, b: 133 },\n  midnightblue: { r: 25, g: 25, b: 112 },\n  mintcream: { r: 245, g: 255, b: 250 },\n  mistyrose: { r: 255, g: 228, b: 225 },\n  moccasin: { r: 255, g: 228, b: 181 },\n  navajowhite: { r: 255, g: 222, b: 173 },\n  navy: { r: 0, g: 0, b: 128 },\n  oldlace: { r: 253, g: 245, b: 230 },\n  olive: { r: 128, g: 128, b: 0 },\n  olivedrab: { r: 107, g: 142, b: 35 },\n  orange: { r: 255, g: 165, b: 0 },\n  orangered: { r: 255, g: 69, b: 0 },\n  orchid: { r: 218, g: 112, b: 214 },\n  palegoldenrod: { r: 238, g: 232, b: 170 },\n  palegreen: { r: 152, g: 251, b: 152 },\n  paleturquoise: { r: 175, g: 238, b: 238 },\n  palevioletred: { r: 219, g: 112, b: 147 },\n  papayawhip: { r: 255, g: 239, b: 213 },\n  peachpuff: { r: 255, g: 218, b: 185 },\n  peru: { r: 205, g: 133, b: 63 },\n  pink: { r: 255, g: 192, b: 203 },\n  plum: { r: 221, g: 160, b: 221 },\n  powderblue: { r: 176, g: 224, b: 230 },\n  purple: { r: 128, g: 0, b: 128 },\n  red: { r: 255, g: 0, b: 0 },\n  rosybrown: { r: 188, g: 143, b: 143 },\n  royalblue: { r: 65, g: 105, b: 225 },\n  saddlebrown: { r: 139, g: 69, b: 19 },\n  salmon: { r: 250, g: 128, b: 114 },\n  sandybrown: { r: 244, g: 164, b: 96 },\n  seagreen: { r: 46, g: 139, b: 87 },\n  seashell: { r: 255, g: 245, b: 238 },\n  sienna: { r: 160, g: 82, b: 45 },\n  silver: { r: 192, g: 192, b: 192 },\n  skyblue: { r: 135, g: 206, b: 235 },\n  slateblue: { r: 106, g: 90, b: 205 },\n  slategray: { r: 112, g: 128, b: 144 },\n  slategrey: { r: 112, g: 128, b: 144 },\n  snow: { r: 255, g: 250, b: 250 },\n  springgreen: { r: 0, g: 255, b: 127 },\n  steelblue: { r: 70, g: 130, b: 180 },\n  tan: { r: 210, g: 180, b: 140 },\n  teal: { r: 0, g: 128, b: 128 },\n  thistle: { r: 216, g: 191, b: 216 },\n  tomato: { r: 255, g: 99, b: 71 },\n  transparent: {\n    r: 255,\n    g: 255,\n    b: 255,\n    a: 0,\n  },\n  turquoise: { r: 64, g: 224, b: 208 },\n  violet: { r: 238, g: 130, b: 238 },\n  wheat: { r: 245, g: 222, b: 179 },\n  white: { r: 255, g: 255, b: 255 },\n  whitesmoke: { r: 245, g: 245, b: 245 },\n  yellow: { r: 255, g: 255, b: 0 },\n  yellowgreen: { r: 154, g: 205, b: 50 },\n};\n\nexport default colorStruct;\n","/* eslint-disable no-param-reassign */\n/* eslint-disable camelcase */\n/* eslint-disable no-nested-ternary */\n/* eslint-disable no-cond-assign */\n/* eslint-disable prefer-destructuring */\n/* eslint-disable no-underscore-dangle */\n\nimport CSSColors from './css-colors';\n\n/**\n * Module which defines a color object\n * @private\n * @exports objects.views/charts/representation/color\n * @expose module:objects.views/charts/representation/color~Color\n */\n\n// color formats\nconst rgb = /^rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$/i;\nconst rgba = /^rgba\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3}),(\\d(\\.\\d+)?)\\)$/i;\nconst hex = /^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i;\nconst hexShort = /^#([A-F0-9])([A-F0-9])([A-F0-9])$/i;\nconst hsl = /^hsl\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*\\)$/i;\nconst hsla = /^hsla\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,(\\d(\\.\\d+)?)\\)$/i;\nconst { floor } = Math;\nconst { round } = Math;\n\n/**\n * @class\n * @classdesc Class which provides color transformation functionality\n * @description This is a constructor.\n * @private\n * @param {object} - Parameters to create a color from different notations\n * @example\n * // a few ways of instantiating a red color\n * var red;\n * red = new Color(255, 0, 0, 1); // rgba as parameters\n * red = new Color('#ff0000'); // hex\n * red = new Color('rgb(255,0,0)');//rgb as string\n * red = new Color('hsl(0, 100, 50)');// hsl as string\n * red = new Color(16711680);// uint\n */\nexport default class Color {\n  constructor(...args) {\n    let r = 0;\n    let g = 0;\n    let b = 0;\n    let a = 1;\n    let h;\n    let s;\n    let lcs;\n    let l;\n    let v;\n    let c;\n    let h_;\n    let x;\n    let rgb_;\n    let m;\n    let matches;\n    let colorString;\n\n    this._invalid = false;\n\n    if (args[0] instanceof Color) {\n      r = args[0]._r;\n      g = args[0]._g;\n      b = args[0]._b;\n      a = args[0]._a;\n      this._invalid = args[0]._invalid;\n    } else if (args.length < 3) {\n      if (typeof args[0] === 'string') {\n        colorString = args[0];\n\n        if ((matches = /^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(colorString))) {\n          r = parseInt(matches[1], 10);\n          g = parseInt(matches[2], 10);\n          b = parseInt(matches[3], 10);\n        } else if (\n          (matches = /^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d(\\.\\d+)?)\\s*\\)$/i.exec(colorString))\n        ) {\n          // rgba(1, 2, 3, 0.4)\n          r = parseInt(matches[1], 10);\n          g = parseInt(matches[2], 10);\n          b = parseInt(matches[3], 10);\n          a = parseFloat(matches[4]);\n        } else if (\n          (matches = /^ARGB\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(colorString))\n        ) {\n          // ARGB(255,255,255,255)\n          a = parseInt(matches[1], 10) / 255;\n          r = parseInt(matches[2], 10);\n          g = parseInt(matches[3], 10);\n          b = parseInt(matches[4], 10);\n        } else if ((matches = /^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(colorString))) {\n          // #aBc123\n          r = parseInt(matches[1], 16);\n          g = parseInt(matches[2], 16);\n          b = parseInt(matches[3], 16);\n          a = 1;\n        } else if ((matches = /^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(colorString))) {\n          // #a5F\n          r = parseInt(matches[1] + matches[1], 16);\n          g = parseInt(matches[2] + matches[2], 16);\n          b = parseInt(matches[3] + matches[3], 16);\n          a = 1;\n        } else if (\n          (matches = /^hsl\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*\\)$/i.exec(colorString))\n        ) {\n          // hsl(1, 2, 3)\n          h = parseFloat(matches[1]);\n          s = parseFloat(matches[3]);\n          l = parseFloat(matches[5]);\n\n          h %= 360;\n          s /= 100;\n          l /= 100;\n\n          h = h < 0 ? 0 : h > 360 ? 360 : h;\n          s = s < 0 ? 0 : s > 1 ? 1 : s;\n          l = l < 0 ? 0 : l > 1 ? 1 : l;\n\n          c = l <= 0.5 ? 2 * l * s : (2 - 2 * l) * s;\n          h_ = h / 60;\n          x = c * (1 - Math.abs((h_ % 2) - 1));\n\n          rgb_ = [];\n\n          h_ = Math.floor(h_);\n          switch (h_) {\n            case 0:\n              rgb_ = [c, x, 0];\n              break;\n            case 1:\n              rgb_ = [x, c, 0];\n              break;\n            case 2:\n              rgb_ = [0, c, x];\n              break;\n            case 3:\n              rgb_ = [0, x, c];\n              break;\n            case 4:\n              rgb_ = [x, 0, c];\n              break;\n            case 5:\n              rgb_ = [c, 0, x];\n              break;\n            default:\n              rgb_ = [0, 0, 0];\n          }\n\n          m = l - 0.5 * c;\n\n          r = rgb_[0] + m;\n          g = rgb_[1] + m;\n          b = rgb_[2] + m;\n\n          r = round(255 * r);\n          g = round(255 * g);\n          b = round(255 * b);\n          a = 1.0;\n        } else if (\n          (matches = /^hsla\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,(\\d(\\.\\d+)?)\\)$/i.exec(\n            colorString\n          ))\n        ) {\n          // hsla(1,2,3,0.4)\n          h = parseFloat(matches[1]);\n          s = parseFloat(matches[3]);\n          l = parseFloat(matches[5]);\n          a = parseFloat(matches[7]);\n\n          h %= 360;\n          s /= 100;\n          l /= 100;\n\n          h = h < 0 ? 0 : h > 360 ? 360 : h;\n          s = s < 0 ? 0 : s > 1 ? 1 : s;\n          l = l < 0 ? 0 : l > 1 ? 1 : l;\n\n          c = l <= 0.5 ? 2 * l * s : (2 - 2 * l) * s;\n          h_ = h / 60;\n          x = c * (1 - Math.abs((h_ % 2) - 1));\n\n          rgb_ = [];\n\n          h_ = Math.floor(h_);\n          switch (h_) {\n            case 0:\n              rgb_ = [c, x, 0];\n              break;\n            case 1:\n              rgb_ = [x, c, 0];\n              break;\n            case 2:\n              rgb_ = [0, c, x];\n              break;\n            case 3:\n              rgb_ = [0, x, c];\n              break;\n            case 4:\n              rgb_ = [x, 0, c];\n              break;\n            case 5:\n              rgb_ = [c, 0, x];\n              break;\n            default:\n              rgb_ = [0, 0, 0];\n          }\n\n          m = l - 0.5 * c;\n\n          r = rgb_[0] + m;\n          g = rgb_[1] + m;\n          b = rgb_[2] + m;\n\n          r = round(255 * r);\n          g = round(255 * g);\n          b = round(255 * b);\n        } else if (\n          (matches = /^hsv\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*\\)$/i.exec(colorString))\n        ) {\n          // hsv(1, 2, 3) {\n          h = parseFloat(matches[1]);\n          s = parseFloat(matches[3]);\n          v = parseFloat(matches[5]);\n\n          h %= 360;\n          s /= 100;\n          v /= 100;\n\n          h = h < 0 ? 0 : h > 360 ? 360 : h;\n          s = s < 0 ? 0 : s > 1 ? 1 : s;\n          v = v < 0 ? 0 : v > 1 ? 1 : v;\n\n          c = v * s;\n          h_ = h / 60;\n          x = c * (1 - Math.abs((h_ % 2) - 1));\n\n          rgb_ = [];\n\n          h_ = Math.floor(h_);\n          switch (h_) {\n            case 0:\n              rgb_ = [c, x, 0];\n              break;\n            case 1:\n              rgb_ = [x, c, 0];\n              break;\n            case 2:\n              rgb_ = [0, c, x];\n              break;\n            case 3:\n              rgb_ = [0, x, c];\n              break;\n            case 4:\n              rgb_ = [x, 0, c];\n              break;\n            case 5:\n              rgb_ = [c, 0, x];\n              break;\n            default:\n              rgb_ = [0, 0, 0];\n          }\n\n          m = v - c;\n\n          r = rgb_[0] + m;\n          g = rgb_[1] + m;\n          b = rgb_[2] + m;\n\n          r = round(255 * r);\n          g = round(255 * g);\n          b = round(255 * b);\n          a = 1.0;\n        } else if (Object.prototype.hasOwnProperty.call(CSSColors, colorString.toLowerCase())) {\n          lcs = colorString.toLowerCase();\n          r = CSSColors[lcs].r;\n          g = CSSColors[lcs].g;\n          b = CSSColors[lcs].b;\n          a = typeof CSSColors[lcs].a === 'number' ? CSSColors[lcs].a : 1.0;\n        } else {\n          this._invalid = true;\n        }\n      } else if (typeof args[0] === 'number' && args[0] >= 0 && args[1] === 'argb') {\n        a = (0xff000000 & args[0]) >>> 24;\n        a /= 255;\n        r = (0xff0000 & args[0]) >> 16;\n        g = (0x00ff00 & args[0]) >> 8;\n        b = 0x0000ff & args[0];\n      } else if (typeof args[0] === 'number' && args[0] >= 0) {\n        r = (0xff0000 & args[0]) >> 16;\n        g = (0x00ff00 & args[0]) >> 8;\n        b = 0x0000ff & args[0];\n      } else {\n        this._invalid = true;\n      }\n    } else if (args.length >= 3) {\n      r = args[0];\n      g = args[1];\n      b = args[2];\n      a = arguments.length >= 4 ? args[3] : 1;\n    } else {\n      this._invalid = true;\n    }\n\n    if (Number.isNaN(+r + g + b + a)) {\n      this._invalid = true;\n    }\n\n    this._r = floor(r);\n    this._g = floor(g);\n    this._b = floor(b);\n    this._a = a;\n\n    // object to cache string representations in various color spaces\n    this._spaces = {};\n  }\n\n  isInvalid() {\n    return this._invalid;\n  }\n\n  /**\n   * Sets alpha value of color\n   * @private\n   * @param {number} a - Alpha value of the color\n   */\n  setAlpha(a) {\n    this._a = a;\n    this._spaces = {};\n  }\n\n  /**\n   * Gets the alpha value of this color\n   * @private\n   * @returns {number}\n   */\n  getAlpha() {\n    return this._a;\n  }\n\n  /**\n   * Returns an rgb string representation of this color.\n   * @private\n   * @return {string} An rgb string representation of this color\n   */\n  toRGB() {\n    if (!this._spaces.rgb) {\n      this._spaces.rgb = Color.toRGB(this);\n    }\n    return this._spaces.rgb;\n  }\n\n  /**\n   * Returns an rgba string representation of this color.\n   * @private\n   * @return {string} An rgba string representation of this color.\n   */\n  toRGBA() {\n    if (!this._spaces.rgba) {\n      this._spaces.rgba = Color.toRGBA(this);\n    }\n    return this._spaces.rgba;\n  }\n\n  toString() {\n    if (!this._spaces.rgb) {\n      this._spaces.rgb = Color.toRGB(this);\n    }\n    return this._spaces.rgb;\n  }\n\n  /**\n   * Returns a hex string representation of this color.\n   * @private\n   * @return {string}\n   */\n  toHex() {\n    if (!this._spaces.hex) {\n      this._spaces.hex = Color.toHex(this);\n    }\n    return this._spaces.hex;\n  }\n\n  /**\n   * Returns a hsl string representation of this color using \"bi-hexcone\" model for lightness\n   * @private\n   * @param {boolean} luma - Whether to use luma calculation\n   * @return {string} In format hsl(0,0,0)\n   */\n  toHSL(luma) {\n    if (!this._spaces.hsl) {\n      this._spaces.hsl = Color.toHSL(this, luma);\n    }\n    return this._spaces.hsl;\n  }\n\n  /**\n   * Returns a hsla string representation of this color using \"bi-hexcone\" model for lightness\n   * @private\n   * @param {boolean} luma - Whether to use luma calculation\n   * @return {string} In format hsla(0,0,0,0)\n   */\n  toHSLA(luma) {\n    if (!this._spaces.hsla) {\n      this._spaces.hsla = Color.toHSLA(this, luma);\n    }\n    return this._spaces.hsla;\n  }\n\n  /**\n   * Return the color components in hsv space using \"hexcone\" model for value (lightness)\n   * @private\n   * @param {Color|string} c\n   * @returns {object} The color components in hsv space {h:0-360, s:0-100, v:0-100}\n   */\n  toHSV() {\n    const hsvComp = this.toHSVComponents();\n    return `hsv(${hsvComp.h},${hsvComp.s},${hsvComp.v})`;\n  }\n\n  /**\n   * Return the color components in hsv space using \"hexcone\" model for value (lightness)\n   * @private\n   * @param {Color|string} c\n   * @returns {object} The color components in hsv space {h:0-360, s:0-100, v:0-100}\n   */\n  toHSVComponents() {\n    if (!this._spaces.hsvComp) {\n      this._spaces.hsvComp = Color.toHSVComponents(this);\n    }\n    return this._spaces.hsvComp;\n  }\n\n  /**\n   * Returns a uint representation of this color\n   * @private\n   * @return {number}\n   */\n  toNumber() {\n    if (!this._spaces.num) {\n      this._spaces.num = Color.toNumber(this);\n    }\n    return this._spaces.num;\n  }\n\n  /**\n   * Checks if this color is perceived as dark.\n   * @private\n   * @return {string} True if the luminance is below 160, false otherwise.\n   */\n  isDark() {\n    return this.isInvalid() || this.getLuminance() < 125; // luminace calc option #2\n    // return this.getLuminance() < 160; //luminace calc option #3\n  }\n\n  /**\n   * Calculates the perceived luminance of the color.\n   * @private\n   * @return {number} A value in the range 0-255 where a low value is considered dark and vice versa.\n   */\n  getLuminance() {\n    // alpha channel is not considered\n    if (typeof this._lumi === 'undefined') {\n      // calculate luminance\n      // this._lumi = 0.2126 * this._r + 0.7152 * this._g + 0.0722 * this._b; // option 1\n      this._lumi = 0.299 * this._r + 0.587 * this._g + 0.114 * this._b; // option 2\n      // this._lumi = Math.sqrt( 0.241 * this._r * this._r + 0.691 * this._g * this._g + 0.068 * this._b * this._b ); // option 3\n    }\n\n    return this._lumi;\n  }\n\n  /**\n   * Shifts the color towards a lighter or darker shade\n   * @private\n   * @param {number} value - A value in the range -100-100 to shift the color with along the HSL lightness.\n   * @return {string} The shifted color as hsla string.\n   */\n  shiftLuminance(value) {\n    const chsla = this.toHSLA();\n    const matches = /^hsla\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,(\\d(\\.\\d+)?)\\)$/i.exec(\n      chsla\n    );\n\n    const h = parseFloat(matches[1]);\n    const s = parseFloat(matches[3]);\n    let l = parseFloat(matches[5]);\n    const a = parseFloat(matches[7]);\n    // l *= 1 + value / 100;\n    // l = Math.max( 0, l % 100 );\n    l += value;\n    l = Math.max(0, Math.min(l, 100));\n\n    // if( value > 0 ){\n    // s = s*0.2; //removing saturation to avoid the border from being too light\n    // }\n\n    return `hsla(${h},${s},${l},${a})`;\n  }\n\n  /**\n   * Compares two colors.\n   * @private\n   * @param {Color} c The color to compare with.\n   * @return {boolean} True if the rgba channels are the same, false otherwise\n   */\n  isEqual(c) {\n    if (c instanceof Color) {\n      return this._r === c._r && this._g === c._g && this._b === c._b && this._a === c._a;\n    }\n\n    c = new Color(c);\n    return this._r === c._r && this._g === c._g && this._b === c._b && this._a === c._a;\n  }\n\n  /**\n   * Linearly interpolates each channel of two colors.\n   * @private\n   * @param {Color} c2 The other color.\n   * @param {number} t The interpolation value in the range (0-1).\n   * @return {string} The blend as an rgb string.\n   */\n  blend(c2, t) {\n    const r = floor(this._r + (c2._r - this._r) * t);\n    const g = floor(this._g + (c2._g - this._g) * t);\n    const b = floor(this._b + (c2._b - this._b) * t);\n    const a = floor(this._a + (c2._a - this._a) * t);\n\n    return `rgba(${[r, g, b, a].join(',')})`;\n  }\n\n  createShiftedColor(v) {\n    if (v === undefined || Number.isNaN(+v)) {\n      v = 1;\n    }\n    const lumi = this.getLuminance();\n    const greenMultiplier = this._g < 126 ? 1 : 1 + this._g / 512;\n    const hsla_string = this.shiftLuminance(\n      (lumi * greenMultiplier < 220 ? 0.8 + 4 * (1 / (lumi + 1)) : -(0.8 + 1 * (lumi / 255))) * 20 * v\n    );\n\n    return new Color(hsla_string);\n  }\n\n  /**\n   * Returns an rgb string representation of this color\n   * @private\n   * @param {Color|string} c\n   * @returns {string} An rgb string with channel values within range 0-255.\n   */\n  static toRGB(c) {\n    if (c instanceof Color) {\n      return `rgb(${[c._r, c._g, c._b].join(',')})`;\n    }\n\n    if (typeof c === 'string') {\n      c = Color.toNumber(c);\n    }\n\n    const r = (c & 0xff0000) >> 16;\n    const g = (c & 0x00ff00) >> 8;\n    const b = c & 0x0000ff;\n\n    return `rgb(${r},${g},${b})`;\n  }\n\n  /**\n   *\n   * @private\n   * @param c\n   * @param a\n   * @returns {string} The color rgb format.\n   */\n  static toRGBA(c, a) {\n    if (c instanceof Color) {\n      return `rgba(${[c._r, c._g, c._b, typeof a !== 'undefined' ? a : c._a].join(',')})`;\n    }\n\n    if (typeof c === 'string') {\n      c = Color.toNumber(c);\n    }\n\n    const r = (c & 0xff0000) >> 16;\n    const g = (c & 0x00ff00) >> 8;\n    const b = c & 0x0000ff;\n\n    return `rgba(${r},${g},${b},${typeof a !== 'undefined' ? a : c._a})`;\n  }\n\n  /**\n   *\n   * @private\n   * @param {Color|string} c\n   * @returns {string} The color in hexadecimal space.\n   */\n  static toHex(c) {\n    let r;\n    let g;\n    let b;\n    if (c instanceof Color) {\n      r = c._r.toString(16);\n      g = c._g.toString(16);\n      b = c._b.toString(16);\n      if (r.length === 1) {\n        r = `0${r}`;\n      }\n      if (g.length === 1) {\n        g = `0${g}`;\n      }\n      if (b.length === 1) {\n        b = `0${b}`;\n      }\n      return `#${[r, g, b].join('')}`;\n    }\n\n    if (typeof c === 'string') {\n      c = Color.toNumber(c);\n    }\n\n    r = ((c & 0xff0000) >> 16).toString(16);\n    g = ((c & 0x00ff00) >> 8).toString(16);\n    b = (c & 0x0000ff).toString(16);\n\n    if (r.length === 1) {\n      r = `0${r}`;\n    }\n    if (g.length === 1) {\n      g = `0${g}`;\n    }\n    if (b.length === 1) {\n      b = `0${b}`;\n    }\n\n    return `#${r}${g}${b}`;\n  }\n\n  /**\n   * Return the color in hsl space using \"bi-hexcone\" model for lightness\n   * @private\n   * @param {Color|string} c\n   * @param {boolean} luma - Whether to use luma calculation\n   * @returns {string} The color in hsl space.\n   */\n  static toHSL(c, luma) {\n    let h = 0;\n    let s;\n    let l;\n    let ch;\n    if (typeof c === 'string') {\n      c = new Color(c);\n    }\n\n    // red, green, blue, hue, saturation, lightness/luma, max, min, chroma\n    const r = c._r / 255;\n    const g = c._g / 255;\n    const b = c._b / 255;\n\n    const max = Math.max(r, g, b);\n    const min = Math.min(r, g, b);\n    if (luma) {\n      // Y'709 http://en.wikipedia.org/wiki/Rec._709\n      // Y′709 = 0.21R + 0.72G + 0.07B\n      l = 0.21 * r + 0.72 * g + 0.07 * b;\n    } else {\n      l = (max + min) / 2;\n    }\n\n    if (max === min) {\n      // greyscale\n      s = 0;\n      h = 0;\n    } else {\n      ch = max - min;\n      s = l > 0.5 ? ch / (2 - max - min) : ch / (max + min);\n      switch (max) {\n        case r:\n          h = (g - b) / ch + (g < b ? 6 : 0);\n          break;\n        case g:\n          h = (b - r) / ch + 2;\n          break;\n        case b:\n          h = (r - g) / ch + 4;\n          break;\n        default:\n          break;\n      }\n      h /= 6;\n    }\n\n    return `hsl(${h * 360},${s * 100},${l * 100})`;\n  }\n\n  /**\n   * Return the color in hsla space using \"bi-hexcone\" model for lightness\n   * @private\n   * @param {Color|string} c\n   * @param {boolean} luma - Whether to use luma calculation\n   * @returns {string} The color in hsla space.\n   */\n  static toHSLA(c, luma) {\n    let h = 0;\n    let s;\n    let l;\n    let ch;\n    if (typeof c === 'string') {\n      c = new Color(c);\n    }\n\n    // red, green, blue, hue, saturation, lightness/luma, max, min, chroma\n    const r = c._r / 255;\n    const g = c._g / 255;\n    const b = c._b / 255;\n    const a = c._a;\n\n    const max = Math.max(r, g, b);\n    const min = Math.min(r, g, b);\n    if (luma) {\n      // Y'709 http://en.wikipedia.org/wiki/Rec._709\n      // Y′709 = 0.21R + 0.72G + 0.07B\n      l = 0.21 * r + 0.72 * g + 0.07 * b;\n    } else {\n      l = (max + min) / 2;\n    }\n\n    if (max === min) {\n      // greyscale\n      s = 0;\n      h = 0;\n    } else {\n      ch = max - min;\n      s = l > 0.5 ? ch / (2 - max - min) : ch / (max + min);\n      switch (max) {\n        case r:\n          h = (g - b) / ch + (g < b ? 6 : 0);\n          break;\n        case g:\n          h = (b - r) / ch + 2;\n          break;\n        case b:\n          h = (r - g) / ch + 4;\n          break;\n        default:\n          break;\n      }\n      h /= 6;\n    }\n\n    return `hsla(${h * 360},${s * 100},${l * 100},${a})`;\n  }\n\n  /**\n   * Return the color components in hsv space using \"hexcone\" model for value (lightness)\n   * @private\n   * @param {Color|string} c\n   * @returns {object} The color components in hsv space {h:0-360, s:0-100, v:0-100}\n   */\n  static toHSVComponents(c) {\n    let h = 0;\n    let s;\n    let ch;\n    if (typeof c === 'string') {\n      c = new Color(c);\n    }\n\n    // red, green, blue, hue, saturation, value/luma, max, min, chroma\n    const r = c._r / 255;\n    const g = c._g / 255;\n    const b = c._b / 255;\n\n    const max = Math.max(r, g, b);\n    const min = Math.min(r, g, b);\n\n    const v = max;\n\n    if (max === min) {\n      // greyscale\n      s = 0;\n      h = 0;\n    } else {\n      ch = max - min;\n      s = ch === 0 ? 0 : ch / v;\n      switch (max) {\n        case r:\n          h = (g - b) / ch + (g < b ? 6 : 0);\n          break;\n        case g:\n          h = (b - r) / ch + 2;\n          break;\n        case b:\n          h = (r - g) / ch + 4;\n          break;\n        default:\n          break;\n      }\n      h /= 6;\n    }\n\n    return { h: (h * 360) % 360, s: s * 100, v: v * 100 };\n  }\n\n  /**\n   * Returns an number representation of the color\n   * @private\n   * @param {Color|string} c\n   * @returns {Number} Unsigned integer in the range 0-16 777 216\n   */\n  static toNumber(...args) {\n    if (args.length === 1 && args[0] instanceof Color) {\n      return (args[0]._r << 16) + (args[0]._g << 8) + args[0]._b;\n    }\n\n    let r = 0;\n    let g = 0;\n    let b = 0;\n    let matches;\n    let colorString;\n\n    if (args.length === 1) {\n      if (typeof args[0] === 'string') {\n        colorString = args[0];\n\n        if ((matches = /^rgb\\((\\d{1,3}),(\\d{1,3}),(\\d{1,3})\\)$/i.exec(colorString))) {\n          r = parseInt(matches[1], 10);\n          g = parseInt(matches[2], 10);\n          b = parseInt(matches[3], 10);\n        } else if ((matches = /^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(colorString))) {\n          r = parseInt(matches[1], 16);\n          g = parseInt(matches[2], 16);\n          b = parseInt(matches[3], 16);\n        } else if ((matches = /^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(colorString))) {\n          r = parseInt(matches[1] + matches[1], 16);\n          g = parseInt(matches[2] + matches[2], 16);\n          b = parseInt(matches[3] + matches[3], 16);\n        }\n      }\n    }\n    return (r << 16) + (g << 8) + b;\n  }\n\n  static blend(c1, c2, t) {\n    c1 = Color.toNumber(c1);\n    c2 = Color.toNumber(c2);\n\n    const r1 = (c1 & 0xff0000) >> 16;\n    const g1 = (c1 & 0x00ff00) >> 8;\n    const b1 = c1 & 0x0000ff;\n    const r2 = (c2 & 0xff0000) >> 16;\n    const g2 = (c2 & 0x00ff00) >> 8;\n    const b2 = c2 & 0x0000ff;\n    const r = r1 + (r2 - r1) * t;\n    const g = g1 + (g2 - g1) * t;\n    const b = b1 + (b2 - b1) * t;\n\n    return (r << 16) + (g << 8) + b;\n  }\n\n  static getBlend(c1, c2, t) {\n    const r = c1._r + (c2._r - c1._r) * t;\n    const g = c1._g + (c2._g - c1._g) * t;\n    const b = c1._b + (c2._b - c1._b) * t;\n    const a = c1._a + (c2._a - c1._a) * t;\n\n    return new Color(r, g, b, a);\n  }\n\n  static isCSSColor(color) {\n    if (arguments.length > 1 || typeof color !== 'string') {\n      return false;\n    }\n    return (\n      rgb.test(color) ||\n      rgba.test(color) ||\n      hex.test(color) ||\n      hexShort.test(color) ||\n      hsl.test(color) ||\n      hsla.test(color) ||\n      Object.prototype.hasOwnProperty.call(CSSColors, color.toLowerCase())\n    );\n  }\n\n  static getBestContrast(color, cl, cd) {\n    const lum = color.getLuminance();\n    return Math.abs(lum - cl.getLuminance()) > Math.abs(lum - cd.getLuminance()) ? cl : cd;\n  }\n\n  static getContrast(color1, color2) {\n    if (!color1 || !color2) {\n      return undefined;\n    }\n\n    const l1 = color1.getLuminance() / 100;\n    const l2 = color2.getLuminance() / 100;\n\n    if (l1 > l2) {\n      return (l1 + 0.05) / (l2 + 0.05);\n    }\n\n    return (l2 + 0.05) / (l1 + 0.05);\n  }\n\n  static isDark(...args) {\n    const C = new Color(...args);\n    return C.isDark(...args);\n  }\n\n  static useDarkLabel(areaColor, bgIsDark) {\n    return areaColor._a > 0.5 ? !areaColor.isDark() : !bgIsDark;\n  }\n}\n","import { color, rgb } from 'd3-color';\n\n/**\n * Gets this mapping between the scaled value and the color parts\n * @ignore\n * @param {Number} scaledValue - A value between 0 and 1 representing a value in the data scaled between the max and min boundaries of the data. Values are clamped to 0 and 1.\n * @param {Number} numEdges - Number of parts that makes up this scale\n */\nfunction limitFunction(scaledValue, numParts) {\n  /*\n   *\tColor-Scale doesn't calculate exact color blends based of the scaled value. It instead shifts the value inwards to achieve\n   *\ta better color representation at the edges. Primarily this is done to allow setting custom limits to where each color begins\n   *\tand ends. If a color begins and ends at 1, it should not be visible. The simplest way to achive this is to remove 1 and 0\n   *\tfrom the possible numbers that can be used. Colors that are not equal to 1 or 0 should not be affected.\n   */\n\n  // The following is done to keep the scaled value above 0 and below 1. This shifts values that hits an exact boundary upwards.\n  // eslint-disable-next-line no-param-reassign\n  scaledValue = Math.min(Math.max(scaledValue, 0.000000000001), 0.999999999999);\n  return numParts - scaledValue * numParts;\n}\n\nfunction getLevel(scale, level) {\n  return Math.min(level || scale.startLevel, scale.colorParts.length - 1);\n}\n\nfunction blend(c1, c2, t) {\n  const r = Math.floor(c1.r + (c2.r - c1.r) * t);\n  const g = Math.floor(c1.g + (c2.g - c1.g) * t);\n  const b = Math.floor(c1.b + (c2.b - c1.b) * t);\n  const a = Math.floor(c1.opacity + (c2.opacity - c1.opacity) * t);\n  return rgb(r, g, b, a);\n}\n\nclass ColorScale {\n  constructor(nanColor) {\n    this.colorParts = [];\n    this.startLevel = 0;\n    this.max = 1;\n    this.min = 0;\n    this.nanColor = color(nanColor);\n  }\n\n  /**\n   * Adds a part to this color scale. The input colors span one part of the gradient, colors between them are interpolated. Input two equal colors for a solid scale part.\n   * @ignore\n   * @param {String|Number} color1 - First color to be used, in formats defined by Color\n   * @param {String|Number} color2 - Second color to be used, in formats defined by Color\n   * @param {Number} level - Which level of the color pyramid to add this part to.\n   */\n  addColorPart(color1, color2, level) {\n    // eslint-disable-next-line no-param-reassign\n    level = level || 0;\n    this.startLevel = Math.max(level, this.startLevel);\n    if (!this.colorParts[level]) {\n      this.colorParts[level] = [];\n    }\n    this.colorParts[level].push([color(color1), color(color2)]);\n  }\n\n  /**\n   * Gets the color which represents the input value\n   * @ignore\n   * @param {Number} scaledValue - A value between 0 and 1 representing a value in the data scaled between the max and min boundaries of the data. Values are clamped to 0 and 1.\n   */\n  getColor(value, level) {\n    const scaledValue = value - this.min;\n    if (Number.isNaN(+value) || Number.isNaN(+scaledValue)) {\n      return this.nanColor;\n    }\n    // eslint-disable-next-line no-param-reassign\n    level = getLevel(this, level);\n    const k = limitFunction(scaledValue, this.colorParts[level].length);\n    let f = Math.floor(k);\n    f = f === k ? f - 1 : f; // To fulfill equal or greater than: 329-<330\n    const part = this.colorParts[level][f];\n    const c1 = part[0];\n    const c2 = part[1];\n\n    // For absolute edges we return the colors at the limit\n    if (value === this.min) {\n      return c2;\n    }\n    if (value === this.max) {\n      return c1;\n    }\n\n    const t = k - f;\n    const uc = blend(c1, c2, t);\n    return uc;\n  }\n}\n\nexport default ColorScale;\n","import { color } from 'd3-color';\nimport ColorScale from './color-scale';\n\n/* Calculates a value that expands from 0.5 out to 0 and 1\n * Ex for size 8:\n * current -> percent\n * 0 -> 0.0625\t4 -> 0.3125\n * 1 -> 0.125\t5 -> 0.375\n * 2 -> 0.1875\t6 -> 0.4375\n * 3 -> 0.25\t\t7 -> 0.5\n */\n\nfunction getScaleValue(value, current, size) {\n  const percent = 0.25 + ((current + 1) / size) * 0.25;\n  const min = 0.5 - percent;\n  const max = 0.5 + percent;\n  const span = max - min;\n  return min + (value / 1) * span;\n}\n\nfunction setupColorScale(colors, nanColor, gradient) {\n  const newColors = [];\n  const cs = new ColorScale(nanColor);\n  newColors.push(colors[0]);\n\n  if (!gradient) {\n    newColors.push(colors[0]);\n  }\n  let i = 1;\n  for (; i < colors.length - 1; i++) {\n    newColors.push(colors[i]);\n    newColors.push(colors[i]);\n  }\n\n  newColors.push(colors[i]);\n  if (!gradient) {\n    newColors.push(colors[i]);\n  }\n\n  for (let j = 0; j < newColors.length; j += 2) {\n    cs.addColorPart(newColors[j], newColors[j + 1]);\n  }\n\n  return cs;\n}\n\nfunction generateLevel(scale, current, size) {\n  const level = [];\n  for (let j = 0; j < current + 1; j++) {\n    let c;\n    switch (current) {\n      case 0:\n        c = scale.getColor(0.5);\n        break;\n      default: {\n        const scaled = getScaleValue((1 / current) * j, current, size);\n\n        c = scale.getColor(scaled);\n        break;\n      }\n    }\n    level.push(color(c).formatHex());\n  }\n  return level;\n}\n\n/**\n * Generates a pyramid of colors from a minimum of 2 colors\n *\n * @ignore\n * @internal\n * @param {Array} colors an array of colors to generate from\n * @param {number} size the integer size of the base of the pyramid\n * @returns {Array} A 2 dimensional array containing the levels of the color pyramid\n */\nfunction createPyramidFromColors(colors, size, nanColor) {\n  const gradientScale = setupColorScale(colors, nanColor, true);\n  const baseLevel = generateLevel(gradientScale, size - 1, size);\n  const scale = setupColorScale(baseLevel, nanColor, false);\n  const pyramid = [null];\n  for (let i = 0; i < size; i++) {\n    pyramid.push(generateLevel(scale, i, size));\n  }\n  return pyramid;\n}\n\nexport default function generateOrdinalScales(scalesDef, nanColor = '#d2d2d2') {\n  scalesDef.forEach((def) => {\n    if (def.type === 'class') {\n      // generate pyramid\n      const pyramid = createPyramidFromColors(def.scale, Math.max(def.scale.length, 7), nanColor);\n      // eslint-disable-next-line no-param-reassign\n      def.scale = pyramid;\n      // eslint-disable-next-line no-param-reassign\n      def.type = 'class-pyramid';\n    }\n  });\n}\n","import extend from 'extend';\nimport generateScales from './theme-scale-generator';\n\n/**\n * Creates the following array of paths\n * object.barChart - legend.title - fontSize\n * object - legend.title - fontSize\n * legend.title - fontSize\n * object.barChart - legend - fontSize\n * object - legend - fontSize\n * legend - fontSize\n * object.barChart - fontSize\n * object - fontSize\n * fontSize\n * @ignore\n */\nfunction constructPaths(pathSteps, baseSteps) {\n  const ret = [];\n  let localBaseSteps;\n  let baseLength;\n  if (pathSteps) {\n    let pathLength = pathSteps.length;\n    while (pathLength >= 0) {\n      localBaseSteps = baseSteps.slice();\n      baseLength = localBaseSteps.length;\n      while (baseLength >= 0) {\n        ret.push(localBaseSteps.concat(pathSteps));\n        localBaseSteps.pop();\n        baseLength--;\n      }\n      pathSteps.pop();\n      pathLength--;\n    }\n  } else {\n    localBaseSteps = baseSteps.slice();\n    baseLength = localBaseSteps.length;\n    while (baseLength >= 0) {\n      ret.push(localBaseSteps.concat());\n      localBaseSteps.pop();\n      baseLength--;\n    }\n  }\n  return ret;\n}\n\nfunction getObject(root, steps) {\n  let obj = root;\n  for (let i = 0; i < steps.length; i++) {\n    if (obj[steps[i]]) {\n      obj = obj[steps[i]];\n    } else {\n      return undefined;\n    }\n  }\n  return obj;\n}\n\nfunction searchPathArray(pathArray, attribute, theme) {\n  const attributeArray = attribute.split('.');\n  for (let i = 0; i < pathArray.length; i++) {\n    const restult = getObject(theme, [...pathArray[i], ...attributeArray]);\n    if (restult !== undefined) return restult;\n  }\n\n  return undefined;\n}\n\nfunction searchValue(path, attribute, baseSteps, component) {\n  let pathArray;\n  if (path === '') {\n    pathArray = constructPaths(null, baseSteps);\n  } else {\n    const steps = path.split('.');\n    pathArray = constructPaths(steps, baseSteps);\n  }\n  return searchPathArray(pathArray, attribute, component);\n}\n\nexport default function styleResolver(basePath, themeJSON) {\n  const basePathSteps = basePath.split('.');\n\n  const api = {\n    /**\n     *\n     * Get the value of a style attribute, starting in the given base path + path\n     * Ex: Base path: \"object.barChart\", Path: \"legend.title\", Attribute: \"fontSize\"\n     * Will search in, and fall back to:\n     * object.barChart - legend.title - fontSize\n     * object - legend.title - fontSize\n     * legend.title - fontSize\n     * object.barChart - legend - fontSize\n     * object - legend - fontSize\n     * legend - fontSize\n     * object.barChart - fontSize\n     * object - fontSize\n     * fontSize\n     * When attributes separated by dots is provided, they are required in the theme JSON file\n     * Ex. Base path: \"object\" , Path: \"legend\", \", Attribute: \"title.fontSize\"\n     * title: {fontSize: ...} must be matched and the rest is the same as above\n     * If you want a exact match, you can use `getStyle('object', '', 'legend.title.fontSize');`\n     * @ignore\n     *\n     * @param {string} component String of properties separated by dots to search in\n     * @param {string} attribute Name of the style attribute\n     * @returns {string|undefined} The style value of the resolved path, undefined if not found\n     */\n    getStyle(component, attribute) {\n      // TODO - object overrides\n      // TODO - feature flag on font-family?\n      // TODO - caching\n      const baseSteps = basePathSteps.concat();\n      const result = searchValue(component, attribute, baseSteps, themeJSON);\n\n      // TODO - support functions\n      return result;\n    },\n  };\n\n  return api;\n}\n\n/**\n * Iterate the object tree and resolve variables and functions.\n * @ignore\n * @param {Object} - objTree\n * @param {Object} - variables\n */\nfunction resolveVariables(objTree, variables) {\n  Object.keys(objTree).forEach((key) => {\n    if (typeof objTree[key] === 'object' && objTree[key] !== null) {\n      resolveVariables(objTree[key], variables);\n    } else if (typeof objTree[key] === 'string' && objTree[key].charAt(0) === '@') {\n      // Resolve variables\n      objTree[key] = variables[objTree[key]]; // eslint-disable-line no-param-reassign\n    }\n  });\n}\n\nstyleResolver.resolveRawTheme = (raw) => {\n  // TODO - validate format\n  const c = extend(true, {}, raw);\n  resolveVariables(c, c._variables); // eslint-disable-line\n\n  // generate class-pyramid\n  if (c.scales) {\n    generateScales(c.scales, c.dataColors && c.dataColors.nullColor);\n  }\n\n  return c;\n};\n","import { color } from 'd3-color';\n\nexport default function luminance(colStr) {\n  const c = color(colStr); // this needs to handle bad colors\n  if (!c) return 0;\n  const { r, g, b } = c.rgb();\n\n  // https://www.w3.org/TR/WCAG20/#relativeluminancedef\n  const [sR, sG, sB] = [r, g, b].map((v) => v / 255);\n  const [R, G, B] = [sR, sG, sB].map((v) => (v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4));\n\n  return +(0.2126 * R + 0.7152 * G + 0.0722 * B).toFixed(5);\n}\n","import EventEmitter from 'node-event-emitter';\nimport { color as d3color } from 'd3-color';\n\nimport setTheme from './set-theme';\nimport paletteResolverFn from './palette-resolver';\nimport styleResolverFn from './style-resolver';\nimport contrasterFn from './contraster/contraster';\nimport luminance from './contraster/luminance';\nimport Color from './utils/color/color';\n\nexport default function theme() {\n  let resolvedThemeJSON;\n  let styleResolverInstanceCache = {};\n\n  let paletteResolver;\n\n  let contraster;\n\n  /**\n   * Returns theme name\n   *\n   * @method\n   * @name Theme#name\n   * @returns {string} Current theme.\n   * @example\n   * theme.name();\n   */\n\n  /**\n   * @class\n   * @alias Theme\n   */\n  const externalAPI = /** @lends Theme# */ {\n    /**\n     * @returns {Theme~ScalePalette[]}\n     */\n    getDataColorScales() {\n      return paletteResolver.dataScales();\n    },\n    /**\n     * @returns {Theme~DataPalette[]}\n     */\n    getDataColorPalettes() {\n      return paletteResolver.dataPalettes();\n    },\n    /**\n     * @returns {Theme~ColorPickerPalette[]}\n     */\n    getDataColorPickerPalettes() {\n      return paletteResolver.uiPalettes();\n    },\n    /**\n     * @returns {Theme~DataColorSpecials}\n     */\n    getDataColorSpecials() {\n      return paletteResolver.dataColors();\n    },\n    /**\n     * Resolve a color object using the color picker palette from the provided JSON theme.\n     * @param {object} c\n     * @param {number=} c.index\n     * @param {string=} c.color\n     * @returns {string} The resolved color.\n     *\n     * @example\n     * theme.getColorPickerColor({ index: 1 });\n     * theme.getColorPickerColor({ color: 'red' });\n     */\n    getColorPickerColor(...a) {\n      return paletteResolver.uiColor(...a);\n    },\n\n    /**\n     * Get the best contrasting color against the specified `color`.\n     * This is typically used to find a suitable text color for a label placed on an arbitrarily colored background.\n     *\n     * The returned colors are derived from the theme.\n     * @param {string} color - A color to measure the contrast against\n     * @returns {string} - The color that has the best contrast against the specified `color`.\n     * @example\n     * theme.getContrastingColorTo('#400');\n     */\n    getContrastingColorTo(color) {\n      return contraster.getBestContrastColor(color);\n    },\n\n    /**\n     * Get the value of a style attribute in the theme\n     * by searching in the theme's JSON structure.\n     * The search starts at the specified base path\n     * and continues upwards until the value is found.\n     * If possible it will get the attribute's value using the given path.\n     * When attributes separated by dots are provided, such as 'hover.color',\n     * they are required in the theme JSON file\n     *\n     * @param {string} basePath - Base path in the theme's JSON structure to start the search in (specified as a name path separated by dots).\n     * @param {string} path - Expected path for the attribute (specified as a name path separated by dots).\n     * @param {string} attribute - Name of the style attribute. (specified as a name attribute separated by dots).\n     * @returns {string|undefined} The style value or undefined if not found\n     *\n     * @example\n     * theme.getStyle('object', 'title.main', 'fontSize');\n     * theme.getStyle('object', 'title', 'main.fontSize');\n     * theme.getStyle('object', '', 'title.main.fontSize');\n     * theme.getStyle('', '', 'fontSize');\n     */\n    getStyle(basePath, path, attribute) {\n      if (!styleResolverInstanceCache[basePath]) {\n        styleResolverInstanceCache[basePath] = styleResolverFn(basePath, resolvedThemeJSON);\n      }\n\n      return styleResolverInstanceCache[basePath].getStyle(path, attribute);\n    },\n    /**\n     * Validates a color string using d3-color.\n     * See https://www.npmjs.com/package/d3-color\n     * Additionally supports the non-standard engine\n     * format ARGB(0-255,0-255,0-255,0-255)\n     * @param {string} specifier\n     * @returns {string|undefined} The resolved color or undefined\n     * @ignore\n     *\n     * @example\n     * theme.validateColor(\"red\"); // returns \"rgba(255,0,0,1)\"\n     * theme.validateColor(\"#00ff00\"); // returns \"rgba(0,255,0,1)\"\n     * theme.validateColor(\"ARGB(102,255,50,100)\"); // returns \"rgba(255,50,100,0.4)\"\n     * theme.validateColor(\"FOO\"); // returns undefined\n     */\n    validateColor(...args) {\n      /* Added this to support the non-standard ARGB format from engine */\n      const colorString = args[0];\n      let matches;\n      /* eslint-disable no-cond-assign */\n      if (\n        typeof colorString === 'string' &&\n        (matches = /^ARGB\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(colorString))\n      ) {\n        // ARGB(255,255,255,255)\n        const a = parseInt(matches[1], 10) / 255;\n        const r = parseInt(matches[2], 10);\n        const g = parseInt(matches[3], 10);\n        const b = parseInt(matches[4], 10);\n        return `rgba(${r},${g},${b},${a})`;\n      }\n      /* eslint-enable no-cond-assign */\n\n      const c = d3color(...args);\n      return c ? c.toString() : undefined;\n    },\n  };\n\n  const internalAPI = {\n    /**\n     * @private\n     * @param {object} t Raw JSON theme\n     */\n    setTheme(t, name) {\n      resolvedThemeJSON = setTheme(t, styleResolverFn.resolveRawTheme);\n      styleResolverInstanceCache = {};\n\n      paletteResolver = paletteResolverFn(resolvedThemeJSON);\n\n      // try to determine if the theme color is light or dark\n      const textColor = externalAPI.getStyle('', '', 'color');\n      const textColorLuminance = luminance(textColor);\n      // if it appears dark, create an inverse that is light and vice versa\n      const inverseTextColor = textColorLuminance < 0.2 ? '#ffffff' : '#333333';\n      // instantiate a contraster that uses those two colors when determining the best contrast for an arbitrary color\n      contraster = contrasterFn([textColor, inverseTextColor]);\n\n      externalAPI.emit('changed');\n      externalAPI.name = () => name;\n    },\n  };\n\n  Object.keys(EventEmitter.prototype).forEach((key) => {\n    externalAPI[key] = EventEmitter.prototype[key];\n  });\n  EventEmitter.init(externalAPI);\n\n  internalAPI.setTheme({}, 'light');\n\n  return {\n    externalAPI,\n    internalAPI,\n  };\n}\n\nexport { Color };\n","/* eslint no-underscore-dangle:0 */\nimport extend from 'extend';\n\nimport baseRawJSON from './themes/base.json';\nimport lightRawJSON from './themes/light.json';\nimport darkRawJSON from './themes/dark.json';\nimport baseInheritRawJSON from './themes/base_inherit.json';\n\nexport default function setTheme(t, resolve) {\n  const colorRawJSON = t.type === 'dark' ? darkRawJSON : lightRawJSON;\n  let baseInherit = baseInheritRawJSON;\n  if (t._inherit === false || t._inherit === 'false') {\n    baseInherit = {};\n  }\n  const root = extend(true, {}, baseRawJSON, baseInherit, colorRawJSON);\n  // avoid merging known array objects as it could cause issues if they are of different types (pyramid vs class) or length\n  const rawThemeJSON = extend(true, {}, root, { scales: null, palettes: { data: null, ui: null } }, t);\n  if (!rawThemeJSON.palettes.data || !rawThemeJSON.palettes.data.length) {\n    rawThemeJSON.palettes.data = root.palettes.data;\n  }\n  if (!rawThemeJSON.palettes.ui || !rawThemeJSON.palettes.ui.length) {\n    rawThemeJSON.palettes.ui = root.palettes.ui;\n  }\n  if (!rawThemeJSON.scales || !rawThemeJSON.scales.length) {\n    rawThemeJSON.scales = root.scales;\n  }\n\n  const resolvedThemeJSON = resolve(rawThemeJSON);\n\n  return resolvedThemeJSON;\n}\n","import Color from './utils/color/color';\n\n/**\n * @interface Theme~ScalePalette\n * @property {string} key\n * @property {'gradient'|'class-pyramid'} type\n * @property {string[]|Array<Array<string>>} colors\n */\n\n/**\n * @interface Theme~DataPalette\n * @property {string} key\n * @property {'pyramid'|'row'} type\n * @property {string[]|Array<Array<string>>} colors\n */\n\n/**\n * @interface Theme~ColorPickerPalette\n * @property {string} key\n * @property {string[]} colors\n */\n\nexport default function theme(resolvedTheme) {\n  let uiPalette;\n\n  return {\n    dataScales() {\n      const pals = [];\n      resolvedTheme.scales.forEach((s) => {\n        pals.push({\n          key: s.propertyValue,\n          name: s.name,\n          translation: s.translation,\n          scheme: true, // indicate that this is scheme that can be used to generate more colors\n          type: s.type, // gradient, class, pyramid, row\n          colors: s.scale,\n        });\n      });\n\n      return pals;\n    },\n    dataPalettes() {\n      const pals = [];\n      resolvedTheme.palettes.data.forEach((s) => {\n        pals.push({\n          key: s.propertyValue,\n          name: s.name,\n          translation: s.translation,\n          type: s.type,\n          colors: s.scale,\n        });\n      });\n\n      return pals;\n    },\n    uiPalettes() {\n      const pals = [];\n      resolvedTheme.palettes.ui.forEach((s) => {\n        const colors = s.colors && s.colors[0] !== 'none' ? ['none', ...s.colors] : s.colors;\n        pals.push({\n          key: 'ui',\n          name: s.name,\n          translation: s.translation,\n          type: 'row',\n          colors: colors || [],\n        });\n      });\n      return pals;\n    },\n    dataColors() {\n      /** @interface Theme~DataColorSpecials */\n      return /** @lends Theme~DataColorSpecials */ {\n        /** @type {string} */\n        primary: resolvedTheme.dataColors.primaryColor,\n        /** @type {string} */\n        nil: resolvedTheme.dataColors.nullColor,\n        /** @type {string} */\n        others: resolvedTheme.dataColors.othersColor,\n      };\n    },\n    uiColor(c) {\n      const indexIsValid = typeof c?.index === 'number' && !Number.isNaN(c?.index);\n      const colorIsValid = typeof c?.color === 'string';\n      const somethingIsValid = indexIsValid || colorIsValid;\n      if (!somethingIsValid) {\n        return undefined;\n      }\n      const getColor = () => {\n        if (c?.index < 0 || typeof c?.index === 'undefined') {\n          return c.color;\n        }\n        if (typeof uiPalette === 'undefined') {\n          uiPalette = this.uiPalettes()[0] || false;\n        }\n        if (!uiPalette) {\n          return c.color;\n        }\n        if (typeof uiPalette.colors[c.index] === 'undefined') {\n          return c.color;\n        }\n        return uiPalette.colors[c.index];\n      };\n      const color = getColor();\n      if (c.alpha === undefined || c.alpha >= 1 || c.alpha < 0) {\n        return color;\n      }\n      const rgbaColor = new Color(color);\n      rgbaColor.setAlpha(c.alpha);\n      if (rgbaColor.isInvalid()) {\n        return color;\n      }\n      return rgbaColor.toRGBA();\n    },\n  };\n}\n","/* eslint no-cond-assign: 0 */\nimport luminance from './luminance';\nimport contrast from './contrast';\n\nconst MAX_SIZE = 1000;\n\nexport default function colorFn(colors = ['#333333', '#ffffff']) {\n  let cache = {};\n  let n = 0;\n\n  const luminances = colors.map(luminance);\n\n  return {\n    getBestContrastColor(colorString) {\n      if (!cache[colorString]) {\n        if (n > MAX_SIZE) {\n          cache = {};\n          n = 0;\n        }\n        const L = luminance(colorString);\n\n        const contrasts = luminances.map((lum) => contrast(L, lum));\n        const c = colors[contrasts.indexOf(Math.max(...contrasts))];\n\n        cache[colorString] = c;\n        n++;\n      }\n      return cache[colorString];\n    },\n  };\n}\n","// https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html#contrast-ratiodef\nexport default function contrast(L1, L2) {\n  return +((Math.max(L1, L2) + 0.05) / (Math.min(L1, L2) + 0.05)).toFixed(5);\n}\n","/* eslint no-underscore-dangle:0 */\nimport themeFn from '@nebula.js/theme';\n\nconst timed = (t, v) =>\n  new Promise((resolve) => {\n    setTimeout(() => resolve(v), t);\n  });\n\nconst LOAD_THEME_TIMEOUT = 5000;\n\nexport default function appTheme({ themes = [], loadTheme, root } = {}) {\n  const wrappedTheme = themeFn();\n\n  const setTheme = async (themeId) => {\n    let found = themes.filter((t) => t.id === themeId)[0];\n    let muiTheme = themeId === 'dark' ? 'dark' : 'light';\n    if (!found && loadTheme) {\n      found = { load: loadTheme };\n    }\n    if (found && found.load) {\n      try {\n        const raw = await Promise.race([found.load(themeId), timed(LOAD_THEME_TIMEOUT, { __timedOut: true })]);\n        if (raw.__timedOut) {\n          if (__NEBULA_DEV__) {\n            console.warn(`Timeout when loading theme '${themeId}'`); // eslint-disable-line no-console\n          }\n        } else {\n          muiTheme = raw.type === 'dark' ? 'dark' : 'light';\n          wrappedTheme.internalAPI.setTheme(raw, themeId);\n          root.setMuiThemeName(muiTheme);\n        }\n      } catch (e) {\n        if (__NEBULA_DEV__) {\n          console.error(e); // eslint-disable-line no-console\n        }\n      }\n    } else {\n      wrappedTheme.internalAPI.setTheme(\n        {\n          type: muiTheme,\n        },\n        themeId\n      );\n      root.setMuiThemeName(muiTheme);\n    }\n  };\n\n  return {\n    setTheme,\n    externalAPI: wrappedTheme.externalAPI,\n  };\n}\n","// from https://patrickhlauke.github.io/touch/touchscreen-detection/ (MIT License)\nfunction detectTouchscreen() {\n  let result = false;\n  if (window.PointerEvent && 'maxTouchPoints' in navigator) {\n    // if Pointer Events are supported, just check maxTouchPoints\n    if (navigator.maxTouchPoints > 0) {\n      result = true;\n    }\n  } else if (window.matchMedia && window.matchMedia('(any-pointer:coarse)').matches) {\n    // check for any-pointer:coarse which mostly means touchscreen\n    result = true;\n  } else if (window.TouchEvent || 'ontouchstart' in window) {\n    // last resort - check for exposed touch events API / event handler\n    result = true;\n  }\n  return result;\n}\n\nexport default function deviceTypeFn(deviceType) {\n  if (deviceType !== 'auto') {\n    return deviceType;\n  }\n\n  return detectTouchscreen() ? 'touch' : 'desktop';\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","/**\n * @license React\n * scheduler.production.min.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'use strict';function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a)}finally{b?S():(N=!1,O=null)}}else N=!1}var S;if(\"function\"===typeof F)S=function(){F(R)};else if(\"undefined\"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a){O=a;N||(N=!0,S())}function K(a,b){L=D(function(){a(exports.unstable_now())},b)}\nexports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J))};\nexports.unstable_forceFrameRate=function(a){0>a||125<a?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<a?Math.floor(1E3/a):5};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c=y;y=b;try{return a()}finally{y=c}};exports.unstable_pauseExecution=function(){};\nexports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=y;y=a;try{return b()}finally{y=c}};\nexports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();\"object\"===typeof c&&null!==c?(c=c.delay,c=\"number\"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","/**\n * @license React\n * react-dom.production.min.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 Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;c<arguments.length;c++)b+=\"&args[]=\"+encodeURIComponent(arguments[c]);return\"Minified React error #\"+a+\"; visit \"+b+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var da=new Set,ea={};function fa(a,b){ha(a,b);ha(a+\"Capture\",b)}\nfunction ha(a,b){ea[a]=b;for(a=0;a<b.length;a++)da.add(b[a])}\nvar ia=!(\"undefined\"===typeof window||\"undefined\"===typeof window.document||\"undefined\"===typeof window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la=\n{},ma={};function oa(a){if(ja.call(ma,a))return!0;if(ja.call(la,a))return!1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return!1}function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction qa(a,b,c,d){if(null===b||\"undefined\"===typeof b||pa(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\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(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2<b.length)||\"o\"!==b[0]&&\"O\"!==b[0]||\"n\"!==b[1]&&\"N\"!==b[1])qa(b,c,e,d)&&(c=null),d||null===e?oa(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,\"\"+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:\"\":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?\"\":\"\"+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)))}\nvar ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for(\"react.element\"),wa=Symbol.for(\"react.portal\"),ya=Symbol.for(\"react.fragment\"),za=Symbol.for(\"react.strict_mode\"),Aa=Symbol.for(\"react.profiler\"),Ba=Symbol.for(\"react.provider\"),Ca=Symbol.for(\"react.context\"),Da=Symbol.for(\"react.forward_ref\"),Ea=Symbol.for(\"react.suspense\"),Fa=Symbol.for(\"react.suspense_list\"),Ga=Symbol.for(\"react.memo\"),Ha=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\");Symbol.for(\"react.debug_trace_mode\");\nvar Ia=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\");Symbol.for(\"react.cache\");Symbol.for(\"react.tracing_marker\");var Ja=Symbol.iterator;function Ka(a){if(null===a||\"object\"!==typeof a)return null;a=Ja&&a[Ja]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}var A=Object.assign,La;function Ma(a){if(void 0===La)try{throw Error();}catch(c){var b=c.stack.trim().match(/\\n( *(at )?)/);La=b&&b[1]||\"\"}return\"\\n\"+La+a}var Na=!1;\nfunction Oa(a,b){if(!a||Na)return\"\";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error();},Object.defineProperty(b.prototype,\"props\",{set:function(){throw Error();}}),\"object\"===typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a,[],b)}else{try{b.call()}catch(l){d=l}a.call(b.prototype)}else{try{throw Error();}catch(l){d=l}a()}}catch(l){if(l&&d&&\"string\"===typeof l.stack){for(var e=l.stack.split(\"\\n\"),\nf=d.stack.split(\"\\n\"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h){do if(g--,h--,0>h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"<anonymous>\")&&(k=k.replace(\"<anonymous>\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 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 b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b[\"$\"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty(\"$\"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=\"\"+Sa(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}\nfunction gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:\"\"+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(p(92));if(eb(c)){if(1<c.length)throw Error(p(93));c=c[0]}b=c}null==b&&(b=\"\");c=b}a._wrapperState={initialValue:Sa(c)}}\nfunction ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&(c=\"\"+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=\"\"+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&\"\"!==b&&null!==b&&(a.value=b)}function kb(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}\nfunction lb(a,b){return null==a||\"http://www.w3.org/1999/xhtml\"===a?kb(b):\"http://www.w3.org/2000/svg\"===a&&\"foreignObject\"===b?\"http://www.w3.org/1999/xhtml\":a}\nvar mb,nb=function(a){return\"undefined\"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(\"http://www.w3.org/2000/svg\"!==a.namespaceURI||\"innerHTML\"in a)a.innerHTML=b;else{mb=mb||document.createElement(\"div\");mb.innerHTML=\"<svg>\"+b.valueOf().toString()+\"</svg>\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={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,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({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});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a<b.length;a++)Bb(b[a])}}function Gb(a,b){return a(b)}function Hb(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{if(Ib=!1,null!==zb||null!==Ab)Hb(),Fb()}}\nfunction Kb(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case \"onClick\":case \"onClickCapture\":case \"onDoubleClick\":case \"onDoubleClickCapture\":case \"onMouseDown\":case \"onMouseDownCapture\":case \"onMouseMove\":case \"onMouseMoveCapture\":case \"onMouseUp\":case \"onMouseUpCapture\":case \"onMouseEnter\":(d=!d.disabled)||(a=a.type,d=!(\"button\"===a||\"input\"===a||\"select\"===a||\"textarea\"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&\"function\"!==\ntypeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,\"passive\",{get:function(){Lb=!0}});window.addEventListener(\"test\",Mb,Mb);window.removeEventListener(\"test\",Mb,Mb)}catch(a){Lb=!1}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0;Pb=a}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1;Pb=null;Nb.apply(Sb,arguments)}\nfunction Ub(a,b,c,d,e,f,g,h,k){Tb.apply(this,arguments);if(Ob){if(Ob){var l=Pb;Ob=!1;Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=l)}}function Vb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.flags&4098)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function Wb(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p(188));}\nfunction Yb(a){var b=a.alternate;if(!b){b=Vb(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===\nc){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(p(189));}}if(c.alternate!==d)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function Zb(a){a=Yb(a);return null!==a?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling}return null}\nvar ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(a){if(lc&&\"function\"===typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,128===(a.current.flags&128))}catch(b){}}\nvar oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(a){a>>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0<b;)c=31-oc(b),e=1<<c,d|=a[c],b&=~e;return d}\nfunction vc(a,b){switch(a){case 1:case 2:case 4:return b+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 b+5E3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}\nfunction wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];if(-1===k){if(0===(h&c)||0!==(h&d))e[g]=vc(h,b)}else k<=b&&(a.expiredLanes|=h);f&=~h}}function xc(a){a=a.pendingLanes&-1073741825;return 0!==a?a:a&1073741824?1073741824:0}function yc(){var a=rc;rc<<=1;0===(rc&4194240)&&(rc=64);return a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0;d[e]=-1;a[e]=-1;c&=~f}}\nfunction Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b);c&=~e}}var C=0;function Dc(a){a&=-a;return 1<a?4<a?0!==(a&268435455)?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc=\"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(\" \");\nfunction Sc(a,b){switch(a){case \"focusin\":case \"focusout\":Lc=null;break;case \"dragenter\":case \"dragleave\":Mc=null;break;case \"mouseover\":case \"mouseout\":Nc=null;break;case \"pointerover\":case \"pointerout\":Oc.delete(b.pointerId);break;case \"gotpointercapture\":case \"lostpointercapture\":Pc.delete(b.pointerId)}}\nfunction Tc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(b=Cb(b),null!==b&&Fc(b)),a;a.eventSystemFlags|=d;b=a.targetContainers;null!==e&&-1===b.indexOf(e)&&b.push(e);return a}\nfunction Uc(a,b,c,d,e){switch(b){case \"focusin\":return Lc=Tc(Lc,a,b,c,d,e),!0;case \"dragenter\":return Mc=Tc(Mc,a,b,c,d,e),!0;case \"mouseover\":return Nc=Tc(Nc,a,b,c,d,e),!0;case \"pointerover\":var f=e.pointerId;Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e));return!0;case \"gotpointercapture\":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return!1}\nfunction Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(b=c.tag,13===b){if(b=Wb(c),null!==b){a.blockedOn=b;Ic(a.priority,function(){Gc(c)});return}}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}\nfunction Xc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null===c){c=a.nativeEvent;var d=new c.constructor(c.type,c);wb=d;c.target.dispatchEvent(d);wb=null}else return b=Cb(c),null!==b&&Fc(b),a.blockedOn=c,!1;b.shift()}return!0}function Zc(a,b,c){Xc(a)&&c.delete(b)}function $c(){Jc=!1;null!==Lc&&Xc(Lc)&&(Lc=null);null!==Mc&&Xc(Mc)&&(Mc=null);null!==Nc&&Xc(Nc)&&(Nc=null);Oc.forEach(Zc);Pc.forEach(Zc)}\nfunction ad(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}\nfunction bd(a){function b(b){return ad(b,a)}if(0<Kc.length){ad(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==Lc&&ad(Lc,a);null!==Mc&&ad(Mc,a);null!==Nc&&ad(Nc,a);Oc.forEach(b);Pc.forEach(b);for(c=0;c<Qc.length;c++)d=Qc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&(c=Qc[0],null===c.blockedOn);)Vc(c),null===c.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;\nfunction ed(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function gd(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a,b,c,d)}finally{C=e,cd.transition=f}}\nfunction fd(a,b,c,d){if(dd){var e=Yc(a,b,c,d);if(null===e)hd(a,b,d,id,c),Sc(a,d);else if(Uc(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),b&4&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb(e);null!==f&&Ec(f);f=Yc(a,b,c,d);null===f&&hd(a,b,d,id,c);if(f===e)break;e=f}null!==e&&d.stopPropagation()}else hd(a,b,d,null,c)}}var id=null;\nfunction Yc(a,b,c,d){id=null;a=xb(d);a=Wc(a);if(null!==a)if(b=Vb(a),null===b)a=null;else if(c=b.tag,13===c){a=Wb(b);if(null!==a)return a;a=null}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null}else b!==a&&(a=null);id=a;return null}\nfunction jd(a){switch(a){case \"cancel\":case \"click\":case \"close\":case \"contextmenu\":case \"copy\":case \"cut\":case \"auxclick\":case \"dblclick\":case \"dragend\":case \"dragstart\":case \"drop\":case \"focusin\":case \"focusout\":case \"input\":case \"invalid\":case \"keydown\":case \"keypress\":case \"keyup\":case \"mousedown\":case \"mouseup\":case \"paste\":case \"pause\":case \"play\":case \"pointercancel\":case \"pointerdown\":case \"pointerup\":case \"ratechange\":case \"reset\":case \"resize\":case \"seeked\":case \"submit\":case \"touchcancel\":case \"touchend\":case \"touchstart\":case \"volumechange\":case \"change\":case \"selectionchange\":case \"textInput\":case \"compositionstart\":case \"compositionend\":case \"compositionupdate\":case \"beforeblur\":case \"afterblur\":case \"beforeinput\":case \"blur\":case \"fullscreenchange\":case \"focus\":case \"hashchange\":case \"popstate\":case \"select\":case \"selectstart\":return 1;case \"drag\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"mousemove\":case \"mouseout\":case \"mouseover\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"scroll\":case \"toggle\":case \"touchmove\":case \"wheel\":case \"mouseenter\":case \"mouseleave\":case \"pointerenter\":case \"pointerleave\":return 4;\ncase \"message\":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,b=ld,c=b.length,d,e=\"value\"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}\nfunction od(a){var b=a.keyCode;\"charCode\"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}function pd(){return!0}function qd(){return!1}\nfunction rd(a){function b(b,d,e,f,g){this._reactName=b;this._targetInst=e;this.type=d;this.nativeEvent=f;this.target=g;this.currentTarget=null;for(var c in a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd;this.isPropagationStopped=qd;return this}A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():\"unknown\"!==typeof a.returnValue&&\n(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():\"unknown\"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd});return b}\nvar sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if(\"movementX\"in\na)return a.movementX;a!==yd&&(yd&&\"mousemove\"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a);return wd},movementY:function(a){return\"movementY\"in a?a.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(a){return\"clipboardData\"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:\"Escape\",\nSpacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Nd={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\",\n119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Od={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Od[a])?!!b[a]:!1}function zd(){return Pd}\nvar Qd=A({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if(\"Unidentified\"!==b)return b}return\"keypress\"===a.type?(a=od(a),13===a?\"Enter\":String.fromCharCode(a)):\"keydown\"===a.type||\"keyup\"===a.type?Nd[a.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return\"keypress\"===a.type?od(a):0},keyCode:function(a){return\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0},which:function(a){return\"keypress\"===\na.type?od(a):\"keydown\"===a.type||\"keyup\"===a.type?a.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(a){return\"deltaX\"in a?a.deltaX:\"wheelDeltaX\"in a?-a.wheelDeltaX:0},\ndeltaY:function(a){return\"deltaY\"in a?a.deltaY:\"wheelDeltaY\"in a?-a.wheelDeltaY:\"wheelDelta\"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&\"CompositionEvent\"in window,be=null;ia&&\"documentMode\"in document&&(be=document.documentMode);var ce=ia&&\"TextEvent\"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case \"compositionend\":return de&&\"ko\"!==b.locale?null:b.data;default:return null}}\nvar le={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 me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return\"input\"===b?!!le[a.type]:\"textarea\"===b?!0:!1}function ne(a,b,c,d){Eb(d);b=oe(b,\"onChange\");0<b.length&&(c=new td(\"onChange\",\"change\",null,c,d),a.push({event:c,listeners:b}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){var b=ue(a);if(Wa(b))return a}\nfunction ve(a,b){if(\"change\"===a)return b}var we=!1;if(ia){var xe;if(ia){var ye=\"oninput\"in document;if(!ye){var ze=document.createElement(\"div\");ze.setAttribute(\"oninput\",\"return;\");ye=\"function\"===typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent(\"onpropertychange\",Be),qe=pe=null)}function Be(a){if(\"value\"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a));Jb(re,b)}}\nfunction Ce(a,b,c){\"focusin\"===a?(Ae(),pe=b,qe=c,pe.attachEvent(\"onpropertychange\",Be)):\"focusout\"===a&&Ae()}function De(a){if(\"selectionchange\"===a||\"keyup\"===a||\"keydown\"===a)return te(qe)}function Ee(a,b){if(\"click\"===a)return te(b)}function Fe(a,b){if(\"input\"===a||\"change\"===a)return te(b)}function Ge(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var He=\"function\"===typeof Object.is?Object.is:Ge;\nfunction Ie(a,b){if(He(a,b))return!0;if(\"object\"!==typeof a||null===a||\"object\"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!ja.call(b,e)||!He(a[e],b[e]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}\nfunction Ke(a,b){var c=Je(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c<b.length;c++)a=b[c],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}\nvar Pe=ia&&\"documentMode\"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0<d.length&&(b=new td(\"onSelect\",\"select\",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)))}\nfunction Ve(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c[\"Webkit\"+a]=\"webkit\"+b;c[\"Moz\"+a]=\"moz\"+b;return c}var We={animationend:Ve(\"Animation\",\"AnimationEnd\"),animationiteration:Ve(\"Animation\",\"AnimationIteration\"),animationstart:Ve(\"Animation\",\"AnimationStart\"),transitionend:Ve(\"Transition\",\"TransitionEnd\")},Xe={},Ye={};\nia&&(Ye=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),\"TransitionEvent\"in window||delete We.transitionend.transition);function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var b=We[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Ye)return Xe[a]=b[c];return a}var $e=Ze(\"animationend\"),af=Ze(\"animationiteration\"),bf=Ze(\"animationstart\"),cf=Ze(\"transitionend\"),df=new Map,ef=\"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(\" \");\nfunction ff(a,b){df.set(a,b);fa(b,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,\"on\"+kf)}ff($e,\"onAnimationEnd\");ff(af,\"onAnimationIteration\");ff(bf,\"onAnimationStart\");ff(\"dblclick\",\"onDoubleClick\");ff(\"focusin\",\"onFocus\");ff(\"focusout\",\"onBlur\");ff(cf,\"onTransitionEnd\");ha(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]);ha(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]);ha(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]);\nha(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]);fa(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \"));fa(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \"));fa(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]);fa(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \"));fa(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \"));\nfa(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var lf=\"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(\" \"),mf=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(lf));\nfunction nf(a,b,c){var d=a.type||\"unknown-event\";a.currentTarget=c;Ub(d,b,void 0,a);a.currentTarget=null}\nfunction se(a,b){b=0!==(b&4);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}else for(g=0;g<d.length;g++){h=d[g];k=h.instance;l=h.currentTarget;h=h.listener;if(k!==f&&e.isPropagationStopped())break a;nf(e,h,l);f=k}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a;}\nfunction D(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+\"__bubble\";c.has(d)||(pf(b,a,2,!1),c.add(d))}function qf(a,b,c){var d=0;b&&(d|=4);pf(c,a,d,b)}var rf=\"_reactListening\"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0;da.forEach(function(b){\"selectionchange\"!==b&&(mf.has(b)||qf(b,!1,a),qf(b,!0,a))});var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf(\"selectionchange\",!1,b))}}\nfunction pf(a,b,c,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c=e.bind(null,b,c,a);e=void 0;!Lb||\"touchstart\"!==b&&\"touchmove\"!==b&&\"wheel\"!==b||(e=!0);d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}\nfunction hd(a,b,c,d,e){var f=d;if(0===(b&1)&&0===(b&2)&&null!==d)a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if(3===k||4===k)if(k=g.stateNode.containerInfo,k===e||8===k.nodeType&&k.parentNode===e)return;g=g.return}for(;null!==h;){g=Wc(h);if(null===g)return;k=g.tag;if(5===k||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb(function(){var d=f,e=xb(c),g=[];\na:{var h=df.get(a);if(void 0!==h){var k=td,n=a;switch(a){case \"keypress\":if(0===od(c))break a;case \"keydown\":case \"keyup\":k=Rd;break;case \"focusin\":n=\"focus\";k=Fd;break;case \"focusout\":n=\"blur\";k=Fd;break;case \"beforeblur\":case \"afterblur\":k=Fd;break;case \"click\":if(2===c.button)break a;case \"auxclick\":case \"dblclick\":case \"mousedown\":case \"mousemove\":case \"mouseup\":case \"mouseout\":case \"mouseover\":case \"contextmenu\":k=Bd;break;case \"drag\":case \"dragend\":case \"dragenter\":case \"dragexit\":case \"dragleave\":case \"dragover\":case \"dragstart\":case \"drop\":k=\nDd;break;case \"touchcancel\":case \"touchend\":case \"touchmove\":case \"touchstart\":k=Vd;break;case $e:case af:case bf:k=Hd;break;case cf:k=Xd;break;case \"scroll\":k=vd;break;case \"wheel\":k=Zd;break;case \"copy\":case \"cut\":case \"paste\":k=Jd;break;case \"gotpointercapture\":case \"lostpointercapture\":case \"pointercancel\":case \"pointerdown\":case \"pointermove\":case \"pointerout\":case \"pointerover\":case \"pointerup\":k=Td}var t=0!==(b&4),J=!t&&\"scroll\"===a,x=t?null!==h?h+\"Capture\":null:h;t=[];for(var w=d,u;null!==\nw;){u=w;var F=u.stateNode;5===u.tag&&null!==F&&(u=F,null!==x&&(F=Kb(w,x),null!=F&&t.push(tf(w,F,u))));if(J)break;w=w.return}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}))}}if(0===(b&7)){a:{h=\"mouseover\"===a||\"pointerover\"===a;k=\"mouseout\"===a||\"pointerout\"===a;if(h&&c!==wb&&(n=c.relatedTarget||c.fromElement)&&(Wc(n)||n[uf]))break a;if(k||h){h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window;if(k){if(n=c.relatedTarget||c.toElement,k=d,n=n?Wc(n):null,null!==\nn&&(J=Vb(n),n!==J||5!==n.tag&&6!==n.tag))n=null}else k=null,n=d;if(k!==n){t=Bd;F=\"onMouseLeave\";x=\"onMouseEnter\";w=\"mouse\";if(\"pointerout\"===a||\"pointerover\"===a)t=Td,F=\"onPointerLeave\",x=\"onPointerEnter\",w=\"pointer\";J=null==k?h:ue(k);u=null==n?h:ue(n);h=new t(F,w+\"leave\",k,c,e);h.target=J;h.relatedTarget=u;F=null;Wc(e)===d&&(t=new t(x,w+\"enter\",n,c,e),t.target=u,t.relatedTarget=J,F=t);J=F;if(k&&n)b:{t=k;x=n;w=0;for(u=t;u;u=vf(u))w++;u=0;for(F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=\nvf(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf(t);x=vf(x)}t=null}else t=null;null!==k&&wf(g,h,k,t,!1);null!==n&&null!==J&&wf(g,J,n,t,!0)}}}a:{h=d?ue(d):window;k=h.nodeName&&h.nodeName.toLowerCase();if(\"select\"===k||\"input\"===k&&\"file\"===h.type)var na=ve;else if(me(h))if(we)na=Fe;else{na=De;var xa=Ce}else(k=h.nodeName)&&\"input\"===k.toLowerCase()&&(\"checkbox\"===h.type||\"radio\"===h.type)&&(na=Ee);if(na&&(na=na(a,d))){ne(g,na,c,e);break a}xa&&xa(a,h,d);\"focusout\"===a&&(xa=h._wrapperState)&&\nxa.controlled&&\"number\"===h.type&&cb(h,\"number\",h.value)}xa=d?ue(d):window;switch(a){case \"focusin\":if(me(xa)||\"true\"===xa.contentEditable)Qe=xa,Re=d,Se=null;break;case \"focusout\":Se=Re=Qe=null;break;case \"mousedown\":Te=!0;break;case \"contextmenu\":case \"mouseup\":case \"dragend\":Te=!1;Ue(g,c,e);break;case \"selectionchange\":if(Pe)break;case \"keydown\":case \"keyup\":Ue(g,c,e)}var $a;if(ae)b:{switch(a){case \"compositionstart\":var ba=\"onCompositionStart\";break b;case \"compositionend\":ba=\"onCompositionEnd\";\nbreak b;case \"compositionupdate\":ba=\"onCompositionUpdate\";break b}ba=void 0}else ie?ge(a,c)&&(ba=\"onCompositionEnd\"):\"keydown\"===a&&229===c.keyCode&&(ba=\"onCompositionStart\");ba&&(de&&\"ko\"!==c.locale&&(ie||\"onCompositionStart\"!==ba?\"onCompositionEnd\"===ba&&ie&&($a=nd()):(kd=e,ld=\"value\"in kd?kd.value:kd.textContent,ie=!0)),xa=oe(d,ba),0<xa.length&&(ba=new Ld(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:($a=he(c),null!==$a&&(ba.data=$a))));if($a=ce?je(a,c):ke(a,c))d=oe(d,\"onBeforeInput\"),\n0<d.length&&(e=new Ld(\"onBeforeInput\",\"beforeinput\",null,c,e),g.push({event:e,listeners:d}),e.data=$a)}se(g,b)})}function tf(a,b,c){return{instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+\"Capture\",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,f=Kb(a,c),null!=f&&d.unshift(tf(a,f,e)),f=Kb(a,b),null!=f&&d.push(tf(a,f,e)));a=a.return}return d}function vf(a){if(null===a)return null;do a=a.return;while(a&&5!==a.tag);return a?a:null}\nfunction wf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?(k=Kb(c,f),null!=k&&g.unshift(tf(c,k,h))):e||(k=Kb(c,f),null!=k&&g.push(tf(c,k,h))));c=c.return}0!==g.length&&a.push({event:b,listeners:g})}var xf=/\\r\\n?/g,yf=/\\u0000|\\uFFFD/g;function zf(a){return(\"string\"===typeof a?a:\"\"+a).replace(xf,\"\\n\").replace(yf,\"\")}function Af(a,b,c){b=zf(b);if(zf(a)!==b&&c)throw Error(p(425));}function Bf(){}\nvar Cf=null,Df=null;function Ef(a,b){return\"textarea\"===a||\"noscript\"===a||\"string\"===typeof b.children||\"number\"===typeof b.children||\"object\"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}\nvar Ff=\"function\"===typeof setTimeout?setTimeout:void 0,Gf=\"function\"===typeof clearTimeout?clearTimeout:void 0,Hf=\"function\"===typeof Promise?Promise:void 0,Jf=\"function\"===typeof queueMicrotask?queueMicrotask:\"undefined\"!==typeof Hf?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout(function(){throw a;})}\nfunction Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;a.removeChild(c);if(e&&8===e.nodeType)if(c=e.data,\"/$\"===c){if(0===d){a.removeChild(e);bd(b);return}d--}else\"$\"!==c&&\"$?\"!==c&&\"$!\"!==c||d++;c=e}while(c);bd(b)}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){b=a.data;if(\"$\"===b||\"$!\"===b||\"$?\"===b)break;if(\"/$\"===b)return null}}return a}\nfunction Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(\"$\"===c||\"$!\"===c||\"$?\"===c){if(0===b)return a;b--}else\"/$\"===c&&b++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of=\"__reactFiber$\"+Nf,Pf=\"__reactProps$\"+Nf,uf=\"__reactContainer$\"+Nf,of=\"__reactEvents$\"+Nf,Qf=\"__reactListeners$\"+Nf,Rf=\"__reactHandles$\"+Nf;\nfunction Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a)}return b}a=c;c=a.parentNode}return null}function Cb(a){a=a[Of]||a[uf];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p(33));}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}\nfunction E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do d=d(!0);while(null!==d)}eg=null;fg=!1}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e;}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg=\"\";function tg(a,b){kg[lg++]=ng;kg[lg++]=mg;mg=a;ng=b}\nfunction ug(a,b,c){og[pg++]=rg;og[pg++]=sg;og[pg++]=qg;qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e);c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32);d>>=g;e-=g;rg=1<<32-oc(b)+e|c<<e|d;sg=f+a}else rg=1<<f|c<<e|d,sg=a}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;\nfunction Ag(a,b){var c=Bg(5,null,null,0);c.elementType=\"DELETED\";c.stateNode=b;c.return=a;b=a.deletions;null===b?(a.deletions=[c],a.flags|=16):b.push(c)}\nfunction Cg(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,xg=a,yg=Lf(b.firstChild),!0):!1;case 6:return b=\"\"===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,xg=a,yg=null,!0):!1;case 13:return b=8!==b.nodeType?null:b,null!==b?(c=null!==qg?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},c=Bg(18,null,null,0),c.stateNode=b,c.return=a,a.child=c,xg=a,yg=\nnull,!0):!1;default:return!1}}function Dg(a){return 0!==(a.mode&1)&&0===(a.flags&128)}function Eg(a){if(I){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p(418));b=Lf(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag(d,c):(a.flags=a.flags&-4097|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p(418));a.flags=a.flags&-4097|2;I=!1;xg=a}}}function Fg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a}\nfunction Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var b;(b=3!==a.tag)&&!(b=5!==a.tag)&&(b=a.type,b=\"head\"!==b&&\"body\"!==b&&!Ef(a.type,a.memoizedProps));if(b&&(b=yg)){if(Dg(a))throw Hg(),Error(p(418));for(;b;)Ag(a,b),b=Lf(b.nextSibling)}Fg(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(p(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(\"/$\"===c){if(0===b){yg=Lf(a.nextSibling);break a}b--}else\"$\"!==c&&\"$!\"!==c&&\"$?\"!==c||b++}a=a.nextSibling}yg=\nnull}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null;I=!1}function Jg(a){null===zg?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;\nfunction Lg(a,b,c){a=c.ref;if(null!==a&&\"function\"!==typeof a&&\"object\"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(p(309));var d=c.stateNode}if(!d)throw Error(p(147,a));var e=d,f=\"\"+a;if(null!==b&&null!==b.ref&&\"function\"===typeof b.ref&&b.ref._stringRef===f)return b.ref;b=function(a){var b=e.refs;null===a?delete b[f]:b[f]=a};b._stringRef=f;return b}if(\"string\"!==typeof a)throw Error(p(284));if(!c._owner)throw Error(p(290,a));}return a}\nfunction Mg(a,b){a=Object.prototype.toString.call(b);throw Error(p(31,\"[object Object]\"===a?\"object with keys {\"+Object.keys(b).join(\", \")+\"}\":a));}function Ng(a){var b=a._init;return b(a._payload)}\nfunction Og(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c)}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){a=Pg(a,b);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return b.flags|=1048576,c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.flags|=2,c):d;b.flags|=2;return c}function g(b){a&&\nnull===b.alternate&&(b.flags|=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=Qg(c,a.mode,d),b.return=a,b;b=e(b,c);b.return=a;return b}function k(a,b,c,d){var f=c.type;if(f===ya)return m(a,b,c.props.children,d,c.key);if(null!==b&&(b.elementType===f||\"object\"===typeof f&&null!==f&&f.$$typeof===Ha&&Ng(f)===b.type))return d=e(b,c.props),d.ref=Lg(a,b,c),d.return=a,d;d=Rg(c.type,c.key,c.props,null,a.mode,d);d.ref=Lg(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||\nb.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation)return b=Sg(c,a.mode,d),b.return=a,b;b=e(b,c.children||[]);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=Tg(c,a.mode,d,f),b.return=a,b;b=e(b,c);b.return=a;return b}function q(a,b,c){if(\"string\"===typeof b&&\"\"!==b||\"number\"===typeof b)return b=Qg(\"\"+b,a.mode,c),b.return=a,b;if(\"object\"===typeof b&&null!==b){switch(b.$$typeof){case va:return c=Rg(b.type,b.key,b.props,null,a.mode,c),\nc.ref=Lg(a,null,b),c.return=a,c;case wa:return b=Sg(b,a.mode,c),b.return=a,b;case Ha:var d=b._init;return q(a,d(b._payload),c)}if(eb(b)||Ka(b))return b=Tg(b,a.mode,c,null),b.return=a,b;Mg(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if(\"string\"===typeof c&&\"\"!==c||\"number\"===typeof c)return null!==e?null:h(a,b,\"\"+c,d);if(\"object\"===typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return e=c._init,r(a,\nb,e(c._payload),d)}if(eb(c)||Ka(c))return null!==e?null:m(a,b,c,d,null);Mg(a,c)}return null}function y(a,b,c,d,e){if(\"string\"===typeof d&&\"\"!==d||\"number\"===typeof d)return a=a.get(c)||null,h(b,a,\"\"+d,e);if(\"object\"===typeof d&&null!==d){switch(d.$$typeof){case va:return a=a.get(null===d.key?c:d.key)||null,k(b,a,d,e);case wa:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e);case Ha:var f=d._init;return y(a,b,c,f(d._payload),e)}if(eb(d)||Ka(d))return a=a.get(c)||null,m(b,a,d,e,null);Mg(b,d)}return null}\nfunction n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;w<h.length;w++)u=q(e,h[w],k),null!==u&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);I&&tg(e,w);return l}for(u=d(e,u);w<h.length;w++)x=y(u,e,w,h[w],k),null!==x&&(a&&null!==x.alternate&&u.delete(null===\nx.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);a&&u.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function t(e,g,h,k){var l=Ka(h);if(\"function\"!==typeof l)throw Error(p(150));h=l.call(h);if(null==h)throw Error(p(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&Ng(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=Lg(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Tg(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=Rg(f.type,f.key,f.props,null,a.mode,h),h.ref=Lg(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=Sg(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);Mg(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=Qg(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(a){var b=Wg.current;E(Wg);a._currentValue=b}function bh(a,b,c){for(;null!==a;){var d=a.alternate;(a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b);if(a===c)break;a=a.return}}\nfunction ch(a,b){Xg=a;Zg=Yg=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(0!==(a.lanes&b)&&(dh=!0),a.firstContext=null)}function eh(a){var b=a._currentValue;if(Zg!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg){if(null===Xg)throw Error(p(308));Yg=a;Xg.dependencies={lanes:0,firstContext:a}}else Yg=Yg.next=a;return b}var fh=null;function gh(a){null===fh?fh=[a]:fh.push(a)}\nfunction hh(a,b,c,d){var e=b.interleaved;null===e?(c.next=c,gh(b)):(c.next=e.next,e.next=c);b.interleaved=c;return ih(a,d)}function ih(a,b){a.lanes|=b;var c=a.alternate;null!==c&&(c.lanes|=b);c=a;for(a=a.return;null!==a;)a.childLanes|=b,c=a.alternate,null!==c&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh=!1;function kh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}\nfunction lh(a,b){a=a.updateQueue;b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function mh(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}\nfunction nh(a,b,c){var d=a.updateQueue;if(null===d)return null;d=d.shared;if(0!==(K&2)){var e=d.pending;null===e?b.next=b:(b.next=e.next,e.next=b);d.pending=b;return ih(a,c)}e=d.interleaved;null===e?(b.next=b,gh(d)):(b.next=e.next,e.next=b);d.interleaved=b;return ih(a,c)}function oh(a,b,c){b=b.updateQueue;if(null!==b&&(b=b.shared,0!==(c&4194240))){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nfunction ph(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&(d=d.updateQueue,c===d)){var e=null,f=null;c=c.firstBaseUpdate;if(null!==c){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g;c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects};a.updateQueue=c;return}a=c.lastBaseUpdate;null===a?c.firstBaseUpdate=b:a.next=\nb;c.lastBaseUpdate=b}\nfunction qh(a,b,c,d){var e=a.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null;null===g?f=l:g.next=l;g=k;var m=a.alternate;null!==m&&(m=m.updateQueue,h=m.lastBaseUpdate,h!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;g=0;m=l=k=null;h=f;do{var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,\nnext:null});a:{var n=a,t=h;r=b;y=c;switch(t.tag){case 1:n=t.payload;if(\"function\"===typeof n){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=n.flags&-65537|128;case 0:n=t.payload;r=\"function\"===typeof n?n.call(y,q,r):n;if(null===r||void 0===r)break a;q=A({},q,r);break a;case 2:jh=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,r=e.effects,null===r?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;\nh=h.next;if(null===h)if(h=e.shared.pending,null===h)break;else r=h,h=r.next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}while(1);null===m&&(k=q);e.baseState=k;e.firstBaseUpdate=l;e.lastBaseUpdate=m;b=e.shared.interleaved;if(null!==b){e=b;do g|=e.lane,e=e.next;while(e!==b)}else null===f&&(e.shared.lanes=0);rh|=g;a.lanes=g;a.memoizedState=q}}\nfunction sh(a,b,c){a=b.effects;b.effects=null;if(null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){d.callback=null;d=c;if(\"function\"!==typeof e)throw Error(p(191,e));e.call(d)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(a){if(a===th)throw Error(p(174));return a}\nfunction yh(a,b){G(wh,b);G(vh,a);G(uh,th);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(uh);G(uh,b)}function zh(){E(uh);E(vh);E(wh)}function Ah(a){xh(wh.current);var b=xh(uh.current);var c=lb(b,a.type);b!==c&&(G(vh,a),G(uh,c))}function Bh(a){vh.current===a&&(E(uh),E(vh))}var L=Uf(0);\nfunction Ch(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Dh=[];\nfunction Eh(){for(var a=0;a<Dh.length;a++)Dh[a]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p(321));}function Mh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return!1;return!0}\nfunction Nh(a,b,c,d,e,f){Hh=f;M=b;b.memoizedState=null;b.updateQueue=null;b.lanes=0;Fh.current=null===a||null===a.memoizedState?Oh:Ph;a=c(d,e);if(Jh){f=0;do{Jh=!1;Kh=0;if(25<=f)throw Error(p(301));f+=1;O=N=null;b.updateQueue=null;Fh.current=Qh;a=c(d,e)}while(Jh)}Fh.current=Rh;b=null!==N&&null!==N.next;Hh=0;O=N=M=null;Ih=!1;if(b)throw Error(p(300));return a}function Sh(){var a=0!==Kh;Kh=0;return a}\nfunction Th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===O?M.memoizedState=O=a:O=O.next=a;return O}function Uh(){if(null===N){var a=M.alternate;a=null!==a?a.memoizedState:null}else a=N.next;var b=null===O?M.memoizedState:O.next;if(null!==b)O=b,N=a;else{if(null===a)throw Error(p(310));N=a;a={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null};null===O?M.memoizedState=O=a:O=O.next=a}return O}\nfunction Vh(a,b){return\"function\"===typeof b?b(a):b}\nfunction Wh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=N,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next;f.next=g}d.baseQueue=e=f;c.pending=null}if(null!==e){f=e.next;d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Hh&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,\neagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q;M.lanes|=m;rh|=m}l=l.next}while(null!==l&&l!==f);null===k?g=d:k.next=h;He(d,b.memoizedState)||(dh=!0);b.memoizedState=d;b.baseState=g;b.baseQueue=k;c.lastRenderedState=d}a=c.interleaved;if(null!==a){e=a;do f=e.lane,M.lanes|=f,rh|=f,e=e.next;while(e!==a)}else null===e&&(c.lanes=0);return[b.memoizedState,c.dispatch]}\nfunction Xh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do f=a(f,g.action),g=g.next;while(g!==e);He(f,b.memoizedState)||(dh=!0);b.memoizedState=f;null===b.baseQueue&&(b.baseState=f);c.lastRenderedState=f}return[f,d]}function Yh(){}\nfunction Zh(a,b){var c=M,d=Uh(),e=b(),f=!He(d.memoizedState,e);f&&(d.memoizedState=e,dh=!0);d=d.queue;$h(ai.bind(null,c,d,a),[a]);if(d.getSnapshot!==b||f||null!==O&&O.memoizedState.tag&1){c.flags|=2048;bi(9,ci.bind(null,c,d,e,b),void 0,null);if(null===Q)throw Error(p(349));0!==(Hh&30)||di(c,b,e)}return e}function di(a,b,c){a.flags|=16384;a={getSnapshot:b,value:c};b=M.updateQueue;null===b?(b={lastEffect:null,stores:null},M.updateQueue=b,b.stores=[a]):(c=b.stores,null===c?b.stores=[a]:c.push(a))}\nfunction ci(a,b,c,d){b.value=c;b.getSnapshot=d;ei(b)&&fi(a)}function ai(a,b,c){return c(function(){ei(b)&&fi(a)})}function ei(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!He(a,c)}catch(d){return!0}}function fi(a){var b=ih(a,1);null!==b&&gi(b,a,1,-1)}\nfunction hi(a){var b=Th();\"function\"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:a};b.queue=a;a=a.dispatch=ii.bind(null,M,a);return[b.memoizedState,a]}\nfunction bi(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};b=M.updateQueue;null===b?(b={lastEffect:null,stores:null},M.updateQueue=b,b.lastEffect=a.next=a):(c=b.lastEffect,null===c?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a));return a}function ji(){return Uh().memoizedState}function ki(a,b,c,d){var e=Th();M.flags|=a;e.memoizedState=bi(1|b,c,void 0,void 0===d?null:d)}\nfunction li(a,b,c,d){var e=Uh();d=void 0===d?null:d;var f=void 0;if(null!==N){var g=N.memoizedState;f=g.destroy;if(null!==d&&Mh(d,g.deps)){e.memoizedState=bi(b,c,f,d);return}}M.flags|=a;e.memoizedState=bi(1|b,c,f,d)}function mi(a,b){return ki(8390656,8,a,b)}function $h(a,b){return li(2048,8,a,b)}function ni(a,b){return li(4,2,a,b)}function oi(a,b){return li(4,4,a,b)}\nfunction pi(a,b){if(\"function\"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function qi(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return li(4,4,pi.bind(null,b,a),c)}function ri(){}function si(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}\nfunction ti(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Mh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a}function ui(a,b,c){if(0===(Hh&21))return a.baseState&&(a.baseState=!1,dh=!0),a.memoizedState=c;He(c,b)||(c=yc(),M.lanes|=c,rh|=c,a.baseState=!0);return b}function vi(a,b){var c=C;C=0!==c&&4>c?c:4;a(!0);var d=Gh.transition;Gh.transition={};try{a(!1),b()}finally{C=c,Gh.transition=d}}function wi(){return Uh().memoizedState}\nfunction xi(a,b,c){var d=yi(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,c);else if(c=hh(a,b,c,d),null!==c){var e=R();gi(c,a,d,e);Bi(c,b,d)}}\nfunction ii(a,b,c){var d=yi(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,gh(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=hh(a,b,e,d);null!==c&&(e=R(),gi(c,a,d,e),Bi(c,b,d))}}\nfunction zi(a){var b=a.alternate;return a===M||null!==b&&b===M}function Ai(a,b){Jh=Ih=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Bi(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(a,b){Th().memoizedState=[a,void 0===b?null:b];return a},useContext:eh,useEffect:mi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ki(4194308,\n4,pi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki(4,2,a,b)},useMemo:function(a,b){var c=Th();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=Th();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=xi.bind(null,M,a);return[d.memoizedState,a]},useRef:function(a){var b=\nTh();a={current:a};return b.memoizedState=a},useState:hi,useDebugValue:ri,useDeferredValue:function(a){return Th().memoizedState=a},useTransition:function(){var a=hi(!1),b=a[0];a=vi.bind(null,a[1]);Th().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M,e=Th();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===Q)throw Error(p(349));0!==(Hh&30)||di(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;mi(ai.bind(null,d,\nf,a),[a]);d.flags|=2048;bi(9,ci.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=Th(),b=Q.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Kh++;0<c&&(b+=\"H\"+c.toString(32));b+=\":\"}else c=Lh++,b=\":\"+b+\"r\"+c.toString(32)+\":\";return a.memoizedState=b},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},\nuseDebugValue:ri,useDeferredValue:function(a){var b=Uh();return ui(b,N.memoizedState,a)},useTransition:function(){var a=Wh(Vh)[0],b=Uh().memoizedState;return[a,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(a){var b=Uh();return null===\nN?b.memoizedState=a:ui(b,N.memoizedState,a)},useTransition:function(){var a=Xh(Vh)[0],b=Uh().memoizedState;return[a,b]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(a,b){if(a&&a.defaultProps){b=A({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c]);return b}return b}function Di(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:A({},b,c);a.memoizedState=c;0===a.lanes&&(a.updateQueue.baseState=c)}\nvar Ei={isMounted:function(a){return(a=a._reactInternals)?Vb(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh(a,f,e);null!==b&&(gi(b,a,e,d),oh(b,a,e))},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.tag=1;f.payload=b;void 0!==c&&null!==c&&(f.callback=c);b=nh(a,f,e);null!==b&&(gi(b,a,e,d),oh(b,a,e))},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=R(),d=\nyi(a),e=mh(c,d);e.tag=2;void 0!==b&&null!==b&&(e.callback=b);b=nh(a,e,d);null!==b&&(gi(b,a,d,c),oh(b,a,d))}};function Fi(a,b,c,d,e,f,g){a=a.stateNode;return\"function\"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!Ie(c,d)||!Ie(e,f):!0}\nfunction Gi(a,b,c){var d=!1,e=Vf;var f=b.contextType;\"object\"===typeof f&&null!==f?f=eh(f):(e=Zf(b)?Xf:H.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Yf(a,e):Vf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=Ei;a.stateNode=b;b._reactInternals=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}\nfunction Hi(a,b,c,d){a=b.state;\"function\"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);\"function\"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&Ei.enqueueReplaceState(b,b.state,null)}\nfunction Ii(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs={};kh(a);var f=b.contextType;\"object\"===typeof f&&null!==f?e.context=eh(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a,f));e.state=a.memoizedState;f=b.getDerivedStateFromProps;\"function\"===typeof f&&(Di(a,b,f,c),e.state=a.memoizedState);\"function\"===typeof b.getDerivedStateFromProps||\"function\"===typeof e.getSnapshotBeforeUpdate||\"function\"!==typeof e.UNSAFE_componentWillMount&&\"function\"!==typeof e.componentWillMount||(b=e.state,\n\"function\"===typeof e.componentWillMount&&e.componentWillMount(),\"function\"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Ei.enqueueReplaceState(e,e.state,null),qh(a,c,e,d),e.state=a.memoizedState);\"function\"===typeof e.componentDidMount&&(a.flags|=4194308)}function Ji(a,b){try{var c=\"\",d=b;do c+=Pa(d),d=d.return;while(d);var e=c}catch(f){e=\"\\nError generating stack: \"+f.message+\"\\n\"+f.stack}return{value:a,source:b,stack:e,digest:null}}\nfunction Ki(a,b,c){return{value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}function Li(a,b){try{console.error(b.value)}catch(c){setTimeout(function(){throw c;})}}var Mi=\"function\"===typeof WeakMap?WeakMap:Map;function Ni(a,b,c){c=mh(-1,c);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){Oi||(Oi=!0,Pi=d);Li(a,b)};return c}\nfunction Qi(a,b,c){c=mh(-1,c);c.tag=3;var d=a.type.getDerivedStateFromError;if(\"function\"===typeof d){var e=b.value;c.payload=function(){return d(e)};c.callback=function(){Li(a,b)}}var f=a.stateNode;null!==f&&\"function\"===typeof f.componentDidCatch&&(c.callback=function(){Li(a,b);\"function\"!==typeof d&&(null===Ri?Ri=new Set([this]):Ri.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:\"\"})});return c}\nfunction Si(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Mi;var e=new Set;d.set(b,e)}else e=d.get(b),void 0===e&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ti.bind(null,a,b,c),b.then(a,a))}function Ui(a){do{var b;if(b=13===a.tag)b=a.memoizedState,b=null!==b?null!==b.dehydrated?!0:!1:!0;if(b)return a;a=a.return}while(null!==a);return null}\nfunction Vi(a,b,c,d,e){if(0===(a.mode&1))return a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:(b=mh(-1,1),b.tag=2,nh(c,b,1))),c.lanes|=1),a;a.flags|=65536;a.lanes=e;return a}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(a,b,c,d){b.child=null===a?Vg(b,null,c,d):Ug(b,a.child,c,d)}\nfunction Yi(a,b,c,d,e){c=c.render;var f=b.ref;ch(b,e);d=Nh(a,b,c,d,f,e);c=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&c&&vg(b);b.flags|=1;Xi(a,b,d,e);return b.child}\nfunction $i(a,b,c,d,e){if(null===a){var f=c.type;if(\"function\"===typeof f&&!aj(f)&&void 0===f.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=f,bj(a,b,f,d,e);a=Rg(c.type,null,d,b,b.mode,e);a.ref=b.ref;a.return=b;return b.child=a}f=a.child;if(0===(a.lanes&e)){var g=f.memoizedProps;c=c.compare;c=null!==c?c:Ie;if(c(g,d)&&a.ref===b.ref)return Zi(a,b,e)}b.flags|=1;a=Pg(f,d);a.ref=b.ref;a.return=b;return b.child=a}\nfunction bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref)if(dh=!1,b.pendingProps=d=f,0!==(a.lanes&e))0!==(a.flags&131072)&&(dh=!0);else return b.lanes=a.lanes,Zi(a,b,e)}return cj(a,b,c,d,e)}\nfunction dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if(\"hidden\"===d.mode)if(0===(b.mode&1))b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=c;else{if(0===(c&1073741824))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null};d=null!==f?f.baseLanes:c;G(ej,fj);fj|=d}else null!==\nf?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(ej,fj),fj|=d;Xi(a,b,e,c);return b.child}function gj(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.flags|=512,b.flags|=2097152}function cj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;f=Yf(b,f);ch(b,e);c=Nh(a,b,c,d,f,e);d=Sh();if(null!==a&&!dh)return b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e);I&&d&&vg(b);b.flags|=1;Xi(a,b,c,e);return b.child}\nfunction hj(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b)}else f=!1;ch(b,e);if(null===b.stateNode)ij(a,b),Gi(b,c,d),Ii(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;\"object\"===typeof l&&null!==l?l=eh(l):(l=Zf(c)?Xf:H.current,l=Yf(b,l));var m=c.getDerivedStateFromProps,q=\"function\"===typeof m||\"function\"===typeof g.getSnapshotBeforeUpdate;q||\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||\n(h!==d||k!==l)&&Hi(b,g,d,l);jh=!1;var r=b.memoizedState;g.state=r;qh(b,d,g,e);k=b.memoizedState;h!==d||r!==k||Wf.current||jh?(\"function\"===typeof m&&(Di(b,c,m,d),k=b.memoizedState),(h=jh||Fi(b,c,h,d,r,k,l))?(q||\"function\"!==typeof g.UNSAFE_componentWillMount&&\"function\"!==typeof g.componentWillMount||(\"function\"===typeof g.componentWillMount&&g.componentWillMount(),\"function\"===typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),\"function\"===typeof g.componentDidMount&&(b.flags|=4194308)):\n(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):(\"function\"===typeof g.componentDidMount&&(b.flags|=4194308),d=!1)}else{g=b.stateNode;lh(a,b);h=b.memoizedProps;l=b.type===b.elementType?h:Ci(b.type,h);g.props=l;q=b.pendingProps;r=g.context;k=c.contextType;\"object\"===typeof k&&null!==k?k=eh(k):(k=Zf(c)?Xf:H.current,k=Yf(b,k));var y=c.getDerivedStateFromProps;(m=\"function\"===typeof y||\"function\"===typeof g.getSnapshotBeforeUpdate)||\n\"function\"!==typeof g.UNSAFE_componentWillReceiveProps&&\"function\"!==typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi(b,g,d,k);jh=!1;r=b.memoizedState;g.state=r;qh(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf.current||jh?(\"function\"===typeof y&&(Di(b,c,y,d),n=b.memoizedState),(l=jh||Fi(b,c,l,d,r,n,k)||!1)?(m||\"function\"!==typeof g.UNSAFE_componentWillUpdate&&\"function\"!==typeof g.componentWillUpdate||(\"function\"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),\"function\"===typeof g.UNSAFE_componentWillUpdate&&\ng.UNSAFE_componentWillUpdate(d,n,k)),\"function\"===typeof g.componentDidUpdate&&(b.flags|=4),\"function\"===typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):(\"function\"!==typeof g.componentDidUpdate||h===a.memoizedProps&&r===\na.memoizedState||(b.flags|=4),\"function\"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1)}return jj(a,b,c,d,f,e)}\nfunction jj(a,b,c,d,e,f){gj(a,b);var g=0!==(b.flags&128);if(!d&&!g)return e&&dg(b,c,!1),Zi(a,b,f);d=b.stateNode;Wi.current=b;var h=g&&\"function\"!==typeof c.getDerivedStateFromError?null:d.render();b.flags|=1;null!==a&&g?(b.child=Ug(b,a.child,null,f),b.child=Ug(b,null,h,f)):Xi(a,b,h,f);b.memoizedState=d.state;e&&dg(b,c,!0);return b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag(a,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(a,b.context,!1);yh(a,b.containerInfo)}\nfunction lj(a,b,c,d,e){Ig();Jg(e);b.flags|=256;Xi(a,b,c,d);return b.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return{baseLanes:a,cachePool:null,transitions:null}}\nfunction oj(a,b,c){var d=b.pendingProps,e=L.current,f=!1,g=0!==(b.flags&128),h;(h=g)||(h=null!==a&&null===a.memoizedState?!1:0!==(e&2));if(h)f=!0,b.flags&=-129;else if(null===a||null!==a.memoizedState)e|=1;G(L,e&1);if(null===a){Eg(b);a=b.memoizedState;if(null!==a&&(a=a.dehydrated,null!==a))return 0===(b.mode&1)?b.lanes=1:\"$!\"===a.data?b.lanes=8:b.lanes=1073741824,null;g=d.children;a=d.fallback;return f?(d=b.mode,f=b.child,g={mode:\"hidden\",children:g},0===(d&1)&&null!==f?(f.childLanes=0,f.pendingProps=\ng):f=pj(g,d,0,null),a=Tg(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g)}e=a.memoizedState;if(null!==e&&(h=e.dehydrated,null!==h))return rj(a,b,g,d,h,e,c);if(f){f=d.fallback;g=b.mode;e=a.child;h=e.sibling;var k={mode:\"hidden\",children:d.children};0===(g&1)&&b.child!==e?(d=b.child,d.childLanes=0,d.pendingProps=k,b.deletions=null):(d=Pg(e,k),d.subtreeFlags=e.subtreeFlags&14680064);null!==h?f=Pg(h,f):(f=Tg(f,g,c,null),f.flags|=2);f.return=\nb;d.return=b;d.sibling=f;b.child=d;d=f;f=b.child;g=a.child.memoizedState;g=null===g?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions};f.memoizedState=g;f.childLanes=a.childLanes&~c;b.memoizedState=mj;return d}f=a.child;a=f.sibling;d=Pg(f,{mode:\"visible\",children:d.children});0===(b.mode&1)&&(d.lanes=c);d.return=b;d.sibling=null;null!==a&&(c=b.deletions,null===c?(b.deletions=[a],b.flags|=16):c.push(a));b.child=d;b.memoizedState=null;return d}\nfunction qj(a,b){b=pj({mode:\"visible\",children:b},a.mode,0,null);b.return=a;return a.child=b}function sj(a,b,c,d){null!==d&&Jg(d);Ug(b,a.child,null,c);a=qj(b,b.pendingProps.children);a.flags|=2;b.memoizedState=null;return a}\nfunction rj(a,b,c,d,e,f,g){if(c){if(b.flags&256)return b.flags&=-257,d=Ki(Error(p(422))),sj(a,b,g,d);if(null!==b.memoizedState)return b.child=a.child,b.flags|=128,null;f=d.fallback;e=b.mode;d=pj({mode:\"visible\",children:d.children},e,0,null);f=Tg(f,e,g,null);f.flags|=2;d.return=b;f.return=b;d.sibling=f;b.child=d;0!==(b.mode&1)&&Ug(b,a.child,null,g);b.child.memoizedState=nj(g);b.memoizedState=mj;return f}if(0===(b.mode&1))return sj(a,b,g,null);if(\"$!\"===e.data){d=e.nextSibling&&e.nextSibling.dataset;\nif(d)var h=d.dgst;d=h;f=Error(p(419));d=Ki(f,d,void 0);return sj(a,b,g,d)}h=0!==(g&a.childLanes);if(dh||h){d=Q;if(null!==d){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0}e=0!==(e&(d.suspendedLanes|g))?0:e;\n0!==e&&e!==f.retryLane&&(f.retryLane=e,ih(a,e),gi(d,a,e,-1))}tj();d=Ki(Error(p(421)));return sj(a,b,g,d)}if(\"$?\"===e.data)return b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null;a=f.treeContext;yg=Lf(e.nextSibling);xg=b;I=!0;zg=null;null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b);b=qj(b,d.children);b.flags|=4096;return b}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b);bh(a.return,b,c)}\nfunction wj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e)}\nfunction xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;Xi(a,b,d.children,c);d=L.current;if(0!==(d&2))d=d&1|2,b.flags|=128;else{if(null!==a&&0!==(a.flags&128))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}G(L,d);if(0===(b.mode&1))b.memoizedState=\nnull;else switch(e){case \"forwards\":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===Ch(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);wj(b,!1,e,c,f);break;case \"backwards\":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===Ch(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}wj(b,!0,c,null,f);break;case \"together\":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null}return b.child}\nfunction ij(a,b){0===(b.mode&1)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2)}function Zi(a,b,c){null!==a&&(b.dependencies=a.dependencies);rh|=b.lanes;if(0===(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p(153));if(null!==b.child){a=b.child;c=Pg(a,a.pendingProps);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=Pg(a,a.pendingProps),c.return=b;c.sibling=null}return b.child}\nfunction yj(a,b,c){switch(b.tag){case 3:kj(b);Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Wg,d._currentValue);d._currentValue=e;break;case 13:d=b.memoizedState;if(null!==d){if(null!==d.dehydrated)return G(L,L.current&1),b.flags|=128,null;if(0!==(c&b.child.childLanes))return oj(a,b,c);G(L,L.current&1);a=Zi(a,b,c);return null!==a?a.sibling:null}G(L,L.current&1);break;case 19:d=0!==(c&\nb.childLanes);if(0!==(a.flags&128)){if(d)return xj(a,b,c);b.flags|=128}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null,e.lastEffect=null);G(L,L.current);if(d)break;else return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi(a,b,c)}var zj,Aj,Bj,Cj;\nzj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Aj=function(){};\nBj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode;xh(uh.current);var f=null;switch(c){case \"input\":e=Ya(a,e);d=Ya(a,d);f=[];break;case \"select\":e=A({},e,{value:void 0});d=A({},d,{value:void 0});f=[];break;case \"textarea\":e=gb(a,e);d=gb(a,d);f=[];break;default:\"function\"!==typeof e.onClick&&\"function\"===typeof d.onClick&&(a.onclick=Bf)}ub(c,d);var g;c=null;for(l in e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if(\"style\"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&\n(c||(c={}),c[g]=\"\")}else\"dangerouslySetInnerHTML\"!==l&&\"children\"!==l&&\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&\"autoFocus\"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];h=null!=e?e[l]:void 0;if(d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if(\"style\"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]=\"\");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(f||(f=[]),f.push(l,\nc)),c=k;else\"dangerouslySetInnerHTML\"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):\"children\"===l?\"string\"!==typeof k&&\"number\"!==typeof k||(f=f||[]).push(l,\"\"+k):\"suppressContentEditableWarning\"!==l&&\"suppressHydrationWarning\"!==l&&(ea.hasOwnProperty(l)?(null!=k&&\"onScroll\"===l&&D(\"scroll\",a),f||h===k||(f=[])):(f=f||[]).push(l,k))}c&&(f=f||[]).push(\"style\",c);var l=f;if(b.updateQueue=l)b.flags|=4}};Cj=function(a,b,c,d){c!==d&&(b.flags|=4)};\nfunction Dj(a,b){if(!I)switch(a.tailMode){case \"hidden\":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case \"collapsed\":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}\nfunction S(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags&14680064,d|=e.flags&14680064,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;a.subtreeFlags|=d;a.childLanes=c;return b}\nfunction Ej(a,b,c){var d=b.pendingProps;wg(b);switch(b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:return Zf(b.type)&&$f(),S(b),null;case 3:d=b.stateNode;zh();E(Wf);E(H);Eh();d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null);if(null===a||null===a.child)Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&0===(b.flags&256)||(b.flags|=1024,null!==zg&&(Fj(zg),zg=null));Aj(a,b);S(b);return null;case 5:Bh(b);var e=xh(wh.current);\nc=b.type;if(null!==a&&null!=b.stateNode)Bj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(null===b.stateNode)throw Error(p(166));S(b);return null}a=xh(uh.current);if(Gg(b)){d=b.stateNode;c=b.type;var f=b.memoizedProps;d[Of]=b;d[Pf]=f;a=0!==(b.mode&1);switch(c){case \"dialog\":D(\"cancel\",d);D(\"close\",d);break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",d);break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],d);break;case \"source\":D(\"error\",d);break;case \"img\":case \"image\":case \"link\":D(\"error\",\nd);D(\"load\",d);break;case \"details\":D(\"toggle\",d);break;case \"input\":Za(d,f);D(\"invalid\",d);break;case \"select\":d._wrapperState={wasMultiple:!!f.multiple};D(\"invalid\",d);break;case \"textarea\":hb(d,f),D(\"invalid\",d)}ub(c,f);e=null;for(var g in f)if(f.hasOwnProperty(g)){var h=f[g];\"children\"===g?\"string\"===typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=[\"children\",h]):\"number\"===typeof h&&d.textContent!==\"\"+h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,\nh,a),e=[\"children\",\"\"+h]):ea.hasOwnProperty(g)&&null!=h&&\"onScroll\"===g&&D(\"scroll\",d)}switch(c){case \"input\":Va(d);db(d,f,!0);break;case \"textarea\":Va(d);jb(d);break;case \"select\":case \"option\":break;default:\"function\"===typeof f.onClick&&(d.onclick=Bf)}d=e;b.updateQueue=d;null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument;\"http://www.w3.org/1999/xhtml\"===a&&(a=kb(c));\"http://www.w3.org/1999/xhtml\"===a?\"script\"===c?(a=g.createElement(\"div\"),a.innerHTML=\"<script>\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;zj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;e<lf.length;e++)D(lf[e],a);e=d;break;case \"source\":D(\"error\",a);e=d;break;case \"img\":case \"image\":case \"link\":D(\"error\",\na);D(\"load\",a);e=d;break;case \"details\":D(\"toggle\",a);e=d;break;case \"input\":Za(a,d);e=Ya(a,d);D(\"invalid\",a);break;case \"option\":e=d;break;case \"select\":a._wrapperState={wasMultiple:!!d.multiple};e=A({},d,{value:void 0});D(\"invalid\",a);break;case \"textarea\":hb(a,d);e=gb(a,d);D(\"invalid\",a);break;default:e=d}ub(c,e);h=e;for(f in h)if(h.hasOwnProperty(f)){var k=h[f];\"style\"===f?sb(a,k):\"dangerouslySetInnerHTML\"===f?(k=k?k.__html:void 0,null!=k&&nb(a,k)):\"children\"===f?\"string\"===typeof k?(\"textarea\"!==\nc||\"\"!==k)&&ob(a,k):\"number\"===typeof k&&ob(a,\"\"+k):\"suppressContentEditableWarning\"!==f&&\"suppressHydrationWarning\"!==f&&\"autoFocus\"!==f&&(ea.hasOwnProperty(f)?null!=k&&\"onScroll\"===f&&D(\"scroll\",a):null!=k&&ta(a,f,k,g))}switch(c){case \"input\":Va(a);db(a,d,!1);break;case \"textarea\":Va(a);jb(a);break;case \"option\":null!=d.value&&a.setAttribute(\"value\",\"\"+Sa(d.value));break;case \"select\":a.multiple=!!d.multiple;f=d.value;null!=f?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,\n!0);break;default:\"function\"===typeof e.onClick&&(a.onclick=Bf)}switch(c){case \"button\":case \"input\":case \"select\":case \"textarea\":d=!!d.autoFocus;break a;case \"img\":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}null!==b.ref&&(b.flags|=512,b.flags|=2097152)}S(b);return null;case 6:if(a&&null!=b.stateNode)Cj(a,b,a.memoizedProps,d);else{if(\"string\"!==typeof d&&null===b.stateNode)throw Error(p(166));c=xh(wh.current);xh(uh.current);if(Gg(b)){d=b.stateNode;c=b.memoizedProps;d[Of]=b;if(f=d.nodeValue!==c)if(a=\nxg,null!==a)switch(a.tag){case 3:Af(d.nodeValue,c,0!==(a.mode&1));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,0!==(a.mode&1))}f&&(b.flags|=4)}else d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d),d[Of]=b,b.stateNode=d}S(b);return null;case 13:E(L);d=b.memoizedState;if(null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&0!==(b.mode&1)&&0===(b.flags&128))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===\na){if(!f)throw Error(p(318));f=b.memoizedState;f=null!==f?f.dehydrated:null;if(!f)throw Error(p(317));f[Of]=b}else Ig(),0===(b.flags&128)&&(b.memoizedState=null),b.flags|=4;S(b);f=!1}else null!==zg&&(Fj(zg),zg=null),f=!0;if(!f)return b.flags&65536?b:null}if(0!==(b.flags&128))return b.lanes=c,b;d=null!==d;d!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,0!==(b.mode&1)&&(null===a||0!==(L.current&1)?0===T&&(T=3):tj()));null!==b.updateQueue&&(b.flags|=4);S(b);return null;case 4:return zh(),\nAj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return ah(b.type._context),S(b),null;case 17:return Zf(b.type)&&$f(),S(b),null;case 19:E(L);f=b.memoizedState;if(null===f)return S(b),null;d=0!==(b.flags&128);g=f.rendering;if(null===g)if(d)Dj(f,!1);else{if(0!==T||null!==a&&0!==(a.flags&128))for(a=b.child;null!==a;){g=Ch(a);if(null!==g){b.flags|=128;Dj(f,!1);d=g.updateQueue;null!==d&&(b.updateQueue=d,b.flags|=4);b.subtreeFlags=0;d=c;for(c=b.child;null!==c;)f=c,a=d,f.flags&=14680066,\ng=f.alternate,null===g?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;G(L,L.current&1|2);return b.child}a=\na.sibling}null!==f.tail&&B()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304)}else{if(!d)if(a=Ch(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G(L,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(fj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Ij(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Bh(b),null;case 13:E(L);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),\nnull;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Lj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Mj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Nj=!1;\nfunction Oj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Nj;Nj=!1;return n}\nfunction Pj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Mj(b,c,f)}e=e.next}while(e!==d)}}function Qj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Rj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Uj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Tj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Vj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Vj(a,b,c),a=a.sibling;null!==a;)Vj(a,b,c),a=a.sibling}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}var X=null,Xj=!1;function Yj(a,b,c){for(c=c.child;null!==c;)Zj(a,b,c),c=c.sibling}\nfunction Zj(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Lj(c,b);case 6:var d=X,e=Xj;X=null;Yj(a,b,c);X=d;Xj=e;null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Xj;X=c.stateNode.containerInfo;Xj=!0;\nYj(a,b,c);X=d;Xj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Mj(c,b,g):0!==(f&4)&&Mj(c,b,g));e=e.next}while(e!==d)}Yj(a,b,c);break;case 1:if(!U&&(Lj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Yj(a,b,c);break;case 21:Yj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Yj(a,b,c),U=d):Yj(a,b,c);break;default:Yj(a,b,c)}}function ak(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Kj);b.forEach(function(b){var d=bk.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction ck(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X=h.stateNode;Xj=!1;break a;case 3:X=h.stateNode.containerInfo;Xj=!0;break a;case 4:X=h.stateNode.containerInfo;Xj=!0;break a}h=h.return}if(null===X)throw Error(p(160));Zj(f,g,e);X=null;Xj=!1;var k=e.alternate;null!==k&&(k.return=null);e.return=null}catch(l){W(e,b,l)}}if(b.subtreeFlags&12854)for(b=b.child;null!==b;)dk(b,a),b=b.sibling}\nfunction dk(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ck(b,a);ek(a);if(d&4){try{Pj(3,a,a.return),Qj(3,a)}catch(t){W(a,a.return,t)}try{Pj(5,a,a.return)}catch(t){W(a,a.return,t)}}break;case 1:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);break;case 5:ck(b,a);ek(a);d&512&&null!==c&&Lj(c,c.return);if(a.flags&32){var e=a.stateNode;try{ob(e,\"\")}catch(t){W(a,a.return,t)}}if(d&4&&(e=a.stateNode,null!=e)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;\na.updateQueue=null;if(null!==k)try{\"input\"===h&&\"radio\"===f.type&&null!=f.name&&ab(e,f);vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];\"style\"===m?sb(e,q):\"dangerouslySetInnerHTML\"===m?nb(e,q):\"children\"===m?ob(e,q):ta(e,m,q,l)}switch(h){case \"input\":bb(e,f);break;case \"textarea\":ib(e,f);break;case \"select\":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,\nf.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:\"\",!1))}e[Pf]=f}catch(t){W(a,a.return,t)}}break;case 6:ck(b,a);ek(a);if(d&4){if(null===a.stateNode)throw Error(p(162));e=a.stateNode;f=a.memoizedProps;try{e.nodeValue=f}catch(t){W(a,a.return,t)}}break;case 3:ck(b,a);ek(a);if(d&4&&null!==c&&c.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a,a.return,t)}break;case 4:ck(b,a);ek(a);break;case 13:ck(b,a);ek(a);e=a.child;e.flags&8192&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||\nnull!==e.alternate&&null!==e.alternate.memoizedState||(fk=B()));d&4&&ak(a);break;case 22:m=null!==c&&null!==c.memoizedState;a.mode&1?(U=(l=U)||m,ck(b,a),U=l):ck(b,a);ek(a);if(d&8192){l=null!==a.memoizedState;if((a.stateNode.isHidden=l)&&!m&&0!==(a.mode&1))for(V=a,m=a.child;null!==m;){for(q=V=m;null!==V;){r=V;y=r.child;switch(r.tag){case 0:case 11:case 14:case 15:Pj(4,r,r.return);break;case 1:Lj(r,r.return);var n=r.stateNode;if(\"function\"===typeof n.componentWillUnmount){d=r;c=r.return;try{b=d,n.props=\nb.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c,t)}}break;case 5:Lj(r,r.return);break;case 22:if(null!==r.memoizedState){gk(q);continue}}null!==y?(y.return=r,V=y):gk(q)}m=m.sibling}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?(f=e.style,\"function\"===typeof f.setProperty?f.setProperty(\"display\",\"none\",\"important\"):f.display=\"none\"):(h=q.stateNode,k=q.memoizedProps.style,g=void 0!==k&&null!==k&&k.hasOwnProperty(\"display\")?k.display:null,h.style.display=\nrb(\"display\",g))}catch(t){W(a,a.return,t)}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?\"\":q.memoizedProps}catch(t){W(a,a.return,t)}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q;q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null);q=q.return}m===q&&(m=null);q.sibling.return=q.return;q=q.sibling}}break;case 19:ck(b,a);ek(a);d&4&&ak(a);break;case 21:break;default:ck(b,\na),ek(a)}}function ek(a){var b=a.flags;if(b&2){try{a:{for(var c=a.return;null!==c;){if(Tj(c)){var d=c;break a}c=c.return}throw Error(p(160));}switch(d.tag){case 5:var e=d.stateNode;d.flags&32&&(ob(e,\"\"),d.flags&=-33);var f=Uj(a);Wj(a,f,e);break;case 3:case 4:var g=d.stateNode.containerInfo,h=Uj(a);Vj(a,h,g);break;default:throw Error(p(161));}}catch(k){W(a,a.return,k)}a.flags&=-3}b&4096&&(a.flags&=-4097)}function hk(a,b,c){V=a;ik(a,b,c)}\nfunction ik(a,b,c){for(var d=0!==(a.mode&1);null!==V;){var e=V,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Jj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U;h=Jj;var l=U;Jj=g;if((U=k)&&!l)for(V=e;null!==V;)g=V,k=g.child,22===g.tag&&null!==g.memoizedState?jk(e):null!==k?(k.return=g,V=k):jk(e);for(;null!==f;)V=f,ik(f,b,c),f=f.sibling;V=e;Jj=h;U=l}kk(a,b,c)}else 0!==(e.subtreeFlags&8772)&&null!==f?(f.return=e,V=f):kk(a,b,c)}}\nfunction kk(a){for(;null!==V;){var b=V;if(0!==(b.flags&8772)){var c=b.alternate;try{if(0!==(b.flags&8772))switch(b.tag){case 0:case 11:case 15:U||Qj(5,b);break;case 1:var d=b.stateNode;if(b.flags&4&&!U)if(null===c)d.componentDidMount();else{var e=b.elementType===b.type?c.memoizedProps:Ci(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;null!==f&&sh(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){c=null;if(null!==b.child)switch(b.child.tag){case 5:c=\nb.child.stateNode;break;case 1:c=b.child.stateNode}sh(b,g,c)}break;case 5:var h=b.stateNode;if(null===c&&b.flags&4){c=h;var k=b.memoizedProps;switch(b.type){case \"button\":case \"input\":case \"select\":case \"textarea\":k.autoFocus&&c.focus();break;case \"img\":k.src&&(c.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd(q)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;\ndefault:throw Error(p(163));}U||b.flags&512&&Rj(b)}catch(r){W(b,b.return,r)}}if(b===a){V=null;break}c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}function gk(a){for(;null!==V;){var b=V;if(b===a){V=null;break}var c=b.sibling;if(null!==c){c.return=b.return;V=c;break}V=b.return}}\nfunction jk(a){for(;null!==V;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Qj(4,b)}catch(k){W(b,c,k)}break;case 1:var d=b.stateNode;if(\"function\"===typeof d.componentDidMount){var e=b.return;try{d.componentDidMount()}catch(k){W(b,e,k)}}var f=b.return;try{Rj(b)}catch(k){W(b,f,k)}break;case 5:var g=b.return;try{Rj(b)}catch(k){W(b,g,k)}}}catch(k){W(b,b.return,k)}if(b===a){V=null;break}var h=b.sibling;if(null!==h){h.return=b.return;V=h;break}V=b.return}}\nvar lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=Infinity,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return 0!==(K&6)?B():-1!==Ak?Ak:Ak=B()}\nfunction yi(a){if(0===(a.mode&1))return 1;if(0!==(K&2)&&0!==Z)return Z&-Z;if(null!==Kg.transition)return 0===Bk&&(Bk=yc()),Bk;a=C;if(0!==a)return a;a=window.event;a=void 0===a?16:jd(a.type);return a}function gi(a,b,c,d){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(a,c,d);if(0===(K&2)||a!==Q)a===Q&&(0===(K&2)&&(qk|=c),4===T&&Ck(a,Z)),Dk(a,d),1===c&&0===K&&0===(b.mode&1)&&(Gj=B()+500,fg&&jg())}\nfunction Dk(a,b){var c=a.callbackNode;wc(a,b);var d=uc(a,a===Q?Z:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){null!=c&&bc(c);if(1===b)0===a.tag?ig(Ek.bind(null,a)):hg(Ek.bind(null,a)),Jf(function(){0===(K&6)&&jg()}),c=null;else{switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:c=hc;break;case 536870912:c=jc;break;default:c=hc}c=Fk(c,Gk.bind(null,a))}a.callbackPriority=b;a.callbackNode=c}}\nfunction Gk(a,b){Ak=-1;Bk=0;if(0!==(K&6))throw Error(p(327));var c=a.callbackNode;if(Hk()&&a.callbackNode!==c)return null;var d=uc(a,a===Q?Z:0);if(0===d)return null;if(0!==(d&30)||0!==(d&a.expiredLanes)||b)b=Ik(a,d);else{b=d;var e=K;K|=2;var f=Jk();if(Q!==a||Z!==b)uk=null,Gj=B()+500,Kk(a,b);do try{Lk();break}catch(h){Mk(a,h)}while(1);$g();mk.current=f;K=e;null!==Y?b=0:(Q=null,Z=0,b=T)}if(0!==b){2===b&&(e=xc(a),0!==e&&(d=e,b=Nk(a,e)));if(1===b)throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;if(6===b)Ck(a,d);\nelse{e=a.current.alternate;if(0===(d&30)&&!Ok(e)&&(b=Ik(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Nk(a,f))),1===b))throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;a.finishedWork=e;a.finishedLanes=d;switch(b){case 0:case 1:throw Error(p(345));case 2:Pk(a,tk,uk);break;case 3:Ck(a,d);if((d&130023424)===d&&(b=fk+500-B(),10<b)){if(0!==uc(a,0))break;e=a.suspendedLanes;if((e&d)!==d){R();a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),b);break}Pk(a,tk,uk);break;case 4:Ck(a,d);if((d&4194240)===\nd)break;b=a.eventTimes;for(e=-1;0<d;){var g=31-oc(d);f=1<<g;g=b[g];g>e&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*lk(d/1960))-d;if(10<d){a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),d);break}Pk(a,tk,uk);break;case 5:Pk(a,tk,uk);break;default:throw Error(p(329));}}}Dk(a,B());return a.callbackNode===c?Gk.bind(null,a):null}\nfunction Nk(a,b){var c=sk;a.current.memoizedState.isDehydrated&&(Kk(a,b).flags|=256);a=Ik(a,b);2!==a&&(b=tk,tk=c,null!==b&&Fj(b));return a}function Fj(a){null===tk?tk=a:tk.push.apply(tk,a)}\nfunction Ok(a){for(var b=a;;){if(b.flags&16384){var c=b.updateQueue;if(null!==c&&(c=c.stores,null!==c))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch(g){return!1}}}c=b.child;if(b.subtreeFlags&16384&&null!==c)c.return=b,b=c;else{if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return!0;b=b.return}b.sibling.return=b.return;b=b.sibling}}return!0}\nfunction Ck(a,b){b&=~rk;b&=~qk;a.suspendedLanes|=b;a.pingedLanes&=~b;for(a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1;b&=~d}}function Ek(a){if(0!==(K&6))throw Error(p(327));Hk();var b=uc(a,0);if(0===(b&1))return Dk(a,B()),null;var c=Ik(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Nk(a,d))}if(1===c)throw c=pk,Kk(a,0),Ck(a,b),Dk(a,B()),c;if(6===c)throw Error(p(345));a.finishedWork=a.current.alternate;a.finishedLanes=b;Pk(a,tk,uk);Dk(a,B());return null}\nfunction Qk(a,b){var c=K;K|=1;try{return a(b)}finally{K=c,0===K&&(Gj=B()+500,fg&&jg())}}function Rk(a){null!==wk&&0===wk.tag&&0===(K&6)&&Hk();var b=K;K|=1;var c=ok.transition,d=C;try{if(ok.transition=null,C=1,a)return a()}finally{C=d,ok.transition=c,K=b,0===(K&6)&&jg()}}function Hj(){fj=ej.current;E(ej)}\nfunction Kk(a,b){a.finishedWork=null;a.finishedLanes=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,Gf(c));if(null!==Y)for(c=Y.return;null!==c;){var d=c;wg(d);switch(d.tag){case 1:d=d.type.childContextTypes;null!==d&&void 0!==d&&$f();break;case 3:zh();E(Wf);E(H);Eh();break;case 5:Bh(d);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(d.type._context);break;case 22:case 23:Hj()}c=c.return}Q=a;Y=a=Pg(a.current,null);Z=fj=b;T=0;pk=null;rk=qk=rh=0;tk=sk=null;if(null!==fh){for(b=\n0;b<fh.length;b++)if(c=fh[b],d=c.interleaved,null!==d){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e;d.next=g}c.pending=d}fh=null}return a}\nfunction Mk(a,b){do{var c=Y;try{$g();Fh.current=Rh;if(Ih){for(var d=M.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null);d=d.next}Ih=!1}Hh=0;O=N=M=null;Jh=!1;Kh=0;nk.current=null;if(null===c||null===c.return){T=1;pk=b;Y=null;break}a:{var f=a,g=c.return,h=c,k=b;b=Z;h.flags|=32768;if(null!==k&&\"object\"===typeof k&&\"function\"===typeof k.then){var l=k,m=h,q=m.tag;if(0===(m.mode&1)&&(0===q||11===q||15===q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,\nm.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ui(g);if(null!==y){y.flags&=-257;Vi(y,g,h,f,b);y.mode&1&&Si(f,l,b);b=y;k=l;var n=b.updateQueue;if(null===n){var t=new Set;t.add(k);b.updateQueue=t}else n.add(k);break a}else{if(0===(b&1)){Si(f,l,b);tj();break a}k=Error(p(426))}}else if(I&&h.mode&1){var J=Ui(g);if(null!==J){0===(J.flags&65536)&&(J.flags|=256);Vi(J,g,h,f,b);Jg(Ji(k,h));break a}}f=k=Ji(k,h);4!==T&&(T=2);null===sk?sk=[f]:sk.push(f);f=g;do{switch(f.tag){case 3:f.flags|=65536;\nb&=-b;f.lanes|=b;var x=Ni(f,k,b);ph(f,x);break a;case 1:h=k;var w=f.type,u=f.stateNode;if(0===(f.flags&128)&&(\"function\"===typeof w.getDerivedStateFromError||null!==u&&\"function\"===typeof u.componentDidCatch&&(null===Ri||!Ri.has(u)))){f.flags|=65536;b&=-b;f.lanes|=b;var F=Qi(f,h,b);ph(f,F);break a}}f=f.return}while(null!==f)}Sk(c)}catch(na){b=na;Y===c&&null!==c&&(Y=c=c.return);continue}break}while(1)}function Jk(){var a=mk.current;mk.current=Rh;return null===a?Rh:a}\nfunction tj(){if(0===T||3===T||2===T)T=4;null===Q||0===(rh&268435455)&&0===(qk&268435455)||Ck(Q,Z)}function Ik(a,b){var c=K;K|=2;var d=Jk();if(Q!==a||Z!==b)uk=null,Kk(a,b);do try{Tk();break}catch(e){Mk(a,e)}while(1);$g();K=c;mk.current=d;if(null!==Y)throw Error(p(261));Q=null;Z=0;return T}function Tk(){for(;null!==Y;)Uk(Y)}function Lk(){for(;null!==Y&&!cc();)Uk(Y)}function Uk(a){var b=Vk(a.alternate,a,fj);a.memoizedProps=a.pendingProps;null===b?Sk(a):Y=b;nk.current=null}\nfunction Sk(a){var b=a;do{var c=b.alternate;a=b.return;if(0===(b.flags&32768)){if(c=Ej(c,b,fj),null!==c){Y=c;return}}else{c=Ij(c,b);if(null!==c){c.flags&=32767;Y=c;return}if(null!==a)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{T=6;Y=null;return}}b=b.sibling;if(null!==b){Y=b;return}Y=b=a}while(null!==b);0===T&&(T=5)}function Pk(a,b,c){var d=C,e=ok.transition;try{ok.transition=null,C=1,Wk(a,b,c,d)}finally{ok.transition=e,C=d}return null}\nfunction Wk(a,b,c,d){do Hk();while(null!==wk);if(0!==(K&6))throw Error(p(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;a.finishedWork=null;a.finishedLanes=0;if(c===a.current)throw Error(p(177));a.callbackNode=null;a.callbackPriority=0;var f=c.lanes|c.childLanes;Bc(a,f);a===Q&&(Y=Q=null,Z=0);0===(c.subtreeFlags&2064)&&0===(c.flags&2064)||vk||(vk=!0,Fk(hc,function(){Hk();return null}));f=0!==(c.flags&15990);if(0!==(c.subtreeFlags&15990)||f){f=ok.transition;ok.transition=null;\nvar g=C;C=1;var h=K;K|=4;nk.current=null;Oj(a,c);dk(c,a);Oe(Df);dd=!!Cf;Df=Cf=null;a.current=c;hk(c,a,e);dc();K=h;C=g;ok.transition=f}else a.current=c;vk&&(vk=!1,wk=a,xk=e);f=a.pendingLanes;0===f&&(Ri=null);mc(c.stateNode,d);Dk(a,B());if(null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi)throw Oi=!1,a=Pi,Pi=null,a;0!==(xk&1)&&0!==a.tag&&Hk();f=a.pendingLanes;0!==(f&1)?a===zk?yk++:(yk=0,zk=a):yk=0;jg();return null}\nfunction Hk(){if(null!==wk){var a=Dc(xk),b=ok.transition,c=C;try{ok.transition=null;C=16>a?16:a;if(null===wk)var d=!1;else{a=wk;wk=null;xk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V=l;null!==V;){var m=V;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f)}var q=m.child;if(null!==q)q.return=m,V=q;else for(;null!==V;){m=V;var r=m.sibling,y=m.return;Sj(m);if(m===\nl){V=null;break}if(null!==r){r.return=y;V=r;break}V=y}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null;t=J}while(null!==t)}}V=f}}if(0!==(f.subtreeFlags&2064)&&null!==g)g.return=f,V=g;else b:for(;null!==V;){f=V;if(0!==(f.flags&2048))switch(f.tag){case 0:case 11:case 15:Pj(9,f,f.return)}var x=f.sibling;if(null!==x){x.return=f.return;V=x;break b}V=f.return}}var w=a.current;for(V=w;null!==V;){g=V;var u=g.child;if(0!==(g.subtreeFlags&2064)&&null!==\nu)u.return=g,V=u;else b:for(g=w;null!==V;){h=V;if(0!==(h.flags&2048))try{switch(h.tag){case 0:case 11:case 15:Qj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(null!==F){F.return=h.return;V=F;break b}V=h.return}}K=e;jg();if(lc&&\"function\"===typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a)}catch(na){}d=!0}return d}finally{C=c,ok.transition=b}}return!1}function Xk(a,b,c){b=Ji(c,b);b=Ni(a,b,1);a=nh(a,b,1);b=R();null!==a&&(Ac(a,1,b),Dk(a,b))}\nfunction W(a,b,c){if(3===a.tag)Xk(a,a,c);else for(;null!==b;){if(3===b.tag){Xk(b,a,c);break}else if(1===b.tag){var d=b.stateNode;if(\"function\"===typeof b.type.getDerivedStateFromError||\"function\"===typeof d.componentDidCatch&&(null===Ri||!Ri.has(d))){a=Ji(c,a);a=Qi(b,a,1);b=nh(b,a,1);a=R();null!==b&&(Ac(b,1,a),Dk(b,a));break}}b=b.return}}\nfunction Ti(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);b=R();a.pingedLanes|=a.suspendedLanes&c;Q===a&&(Z&c)===c&&(4===T||3===T&&(Z&130023424)===Z&&500>B()-fk?Kk(a,0):rk|=c);Dk(a,b)}function Yk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=R();a=ih(a,b);null!==a&&(Ac(a,b,c),Dk(a,c))}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Yk(a,c)}\nfunction bk(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Yk(a,c)}var Vk;\nVk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return dh=!1,yj(a,b,c);dh=0!==(a.flags&131072)?!0:!1}else dh=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;ij(a,b);a=b.pendingProps;var e=Yf(b,H.current);ch(b,c);e=Nh(null,b,d,a,e,c);var f=Sh();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh(b),e.updater=Ei,b.stateNode=e,e._reactInternals=b,Ii(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Xi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{ij(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=Zk(d);a=Ci(d,a);switch(e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi(null,b,d,a,c);break a;case 14:b=$i(null,b,d,Ci(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),cj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),hj(a,b,d,e,c);case 3:a:{kj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;lh(a,b);qh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ji(Error(p(423)),b);b=lj(a,b,d,c,e);break a}else if(d!==e){e=Ji(Error(p(424)),b);b=lj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Vg(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=Zi(a,b,c);break a}Xi(a,b,d,c)}b=b.child}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\ngj(a,b),Xi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),Yi(a,b,d,e,c);case 7:return Xi(a,b,b.pendingProps,c),b.child;case 8:return Xi(a,b,b.pendingProps.children,c),b.child;case 12:return Xi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Wg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=mh(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);bh(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);bh(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Xi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),e=eh(e),d=d(e),b.flags|=1,Xi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Ci(d,b.pendingProps),e=Ci(d.type,e),$i(a,b,d,e,c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,ch(b,c),Gi(b,d,e),Ii(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p(156,b.tag));};function Fk(a,b){return ac(a,b)}\nfunction $k(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction Zk(a){if(\"function\"===typeof a)return aj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction Pg(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction Rg(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)aj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Tg(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Tg(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function pj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function Qg(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction Sg(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction al(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function bl(a,b,c,d,e,f,g,h,k){a=new al(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};kh(f);return a}function cl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==d?null:\"\"+d,children:a,containerInfo:b,implementation:c}}\nfunction dl(a){if(!a)return Vf;a=a._reactInternals;a:{if(Vb(a)!==a||1!==a.tag)throw Error(p(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(null!==b);throw Error(p(171));}if(1===a.tag){var c=a.type;if(Zf(c))return bg(a,c,b)}return b}\nfunction el(a,b,c,d,e,f,g,h,k){a=bl(c,d,!0,a,e,f,g,h,k);a.context=dl(null);c=a.current;d=R();e=yi(c);f=mh(d,e);f.callback=void 0!==b&&null!==b?b:null;nh(c,f,e);a.current.lanes=e;Ac(a,e,d);Dk(a,d);return a}function fl(a,b,c,d){var e=b.current,f=R(),g=yi(e);c=dl(c);null===b.context?b.context=c:b.pendingContext=c;b=mh(f,g);b.payload={element:a};d=void 0===d?null:d;null!==d&&(b.callback=d);a=nh(e,b,g);null!==a&&(gi(a,e,g,f),oh(a,e,g));return g}\nfunction gl(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function hl(a,b){a=a.memoizedState;if(null!==a&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function il(a,b){hl(a,b);(a=a.alternate)&&hl(a,b)}function jl(){return null}var kl=\"function\"===typeof reportError?reportError:function(a){console.error(a)};function ll(a){this._internalRoot=a}\nml.prototype.render=ll.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p(409));fl(a,b,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Rk(function(){fl(null,a,null,null)});b[uf]=null}};function ml(a){this._internalRoot=a}\nml.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a);0===c&&Vc(a)}};function nl(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function ol(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||\" react-mount-point-unstable \"!==a.nodeValue))}function pl(){}\nfunction ql(a,b,c,d,e){if(e){if(\"function\"===typeof d){var f=d;d=function(){var a=gl(g);f.call(a)}}var g=el(b,d,a,0,null,!1,!1,\"\",pl);a._reactRootContainer=g;a[uf]=g.current;sf(8===a.nodeType?a.parentNode:a);Rk();return g}for(;e=a.lastChild;)a.removeChild(e);if(\"function\"===typeof d){var h=d;d=function(){var a=gl(k);h.call(a)}}var k=bl(a,0,!1,null,null,!1,!1,\"\",pl);a._reactRootContainer=k;a[uf]=k.current;sf(8===a.nodeType?a.parentNode:a);Rk(function(){fl(b,k,c,d)});return k}\nfunction rl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if(\"function\"===typeof e){var h=e;e=function(){var a=gl(g);h.call(a)}}fl(b,g,a,e)}else g=ql(c,b,a,e,d);return gl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Dk(b,B()),0===(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var b=ih(a,1);if(null!==b){var c=R();gi(b,a,1,c)}}),il(a,1)}};\nFc=function(a){if(13===a.tag){var b=ih(a,134217728);if(null!==b){var c=R();gi(b,a,134217728,c)}il(a,134217728)}};Gc=function(a){if(13===a.tag){var b=yi(a),c=ih(a,b);if(null!==c){var d=R();gi(c,a,b,d)}il(a,b)}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c}};\nyb=function(a,b,c){switch(b){case \"input\":bb(a,c);b=c.name;if(\"radio\"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+b)+'][type=\"radio\"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d);bb(d,e)}}}break;case \"textarea\":ib(a,c);break;case \"select\":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1)}};Gb=Qk;Hb=Rk;\nvar sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:\"18.3.1\",rendererPackageName:\"react-dom\"};\nvar ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||\njl,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 vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;\nexports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(b))throw Error(p(200));return cl(a,b,null,c)};exports.createRoot=function(a,b){if(!nl(a))throw Error(p(299));var c=!1,d=\"\",e=kl;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=bl(a,1,!1,null,null,c,!1,d,e);a[uf]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ll(b)};\nexports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if(\"function\"===typeof a.render)throw Error(p(188));a=Object.keys(a).join(\",\");throw Error(p(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};exports.flushSync=function(a){return Rk(a)};exports.hydrate=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!0,c)};\nexports.hydrateRoot=function(a,b,c){if(!nl(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f=\"\",g=kl;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=el(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,\ne);return new ml(b)};exports.render=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!1,c)};exports.unmountComponentAtNode=function(a){if(!ol(a))throw Error(p(40));return a._reactRootContainer?(Rk(function(){rl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf]=null})}),!0):!1};exports.unstable_batchedUpdates=Qk;\nexports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return rl(a,b,c,!1,d)};exports.version=\"18.3.1-next-f1338f8080-20240426\";\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 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","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n *   throw new Error('My message');\n *   throw new Error(`My message: ${foo}`);\n *   throw new Error(`My message: ${foo}` + 'another string');\n *   ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n  const url = new URL(`https://mui.com/production-error/?code=${code}`);\n  args.forEach(arg => url.searchParams.append('args[]', arg));\n  return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","export default '$$material';","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 };","var isDevelopment = false;\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    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      }\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  return StyleSheet;\n}();\n\nexport { StyleSheet };\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","/**\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","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 {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","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 { 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, stringify, rulesheet, middleware, 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};\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];\n\nvar createCache = function createCache(options) {\n  var key = options.key;\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  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    var currentSheet;\n    var finalizingPlugins = [stringify, rulesheet(function (rule) {\n      currentSheet.insert(rule);\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      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","'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 * @license React\n * react-is.production.min.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'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\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","'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","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 = false;\n\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\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\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        }\n\n        break;\n      }\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\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    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      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  return {\n    name: name,\n    styles: styles,\n    next: cursor\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","import { h as hasOwn, E as Emotion, c as createEmotionProps, w as withEmotionCache, T as ThemeContext, i as isDevelopment } from './emotion-element-f0de968e.browser.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-f0de968e.browser.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.esm.js';\nimport 'hoist-non-react-statics';\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\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\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\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\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\nexport { ClassNames, Global, jsx as createElement, css, jsx, keyframes };\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.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 isDevelopment = false;\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\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\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    return mergedTheme;\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 typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';\nvar createEmotionProps = function createEmotionProps(type, props) {\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\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  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 && (!isDevelopment )) {\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\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, isDevelopment as i, useTheme as u, withEmotionCache as w };\n","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 = false;\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 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  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      styles.push(templateStringsArr[0]);\n      var len = args.length;\n      var i = 1;\n\n      for (; i < len; i++) {\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.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 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","/**\n * @license React\n * react-jsx-runtime.production.min.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'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\nimport { StyleSheet } from '@emotion/sheet';\n\n// To fix [Jest performance](https://github.com/mui/material-ui/issues/45638).\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst cacheMap = new Map();\n\n// Need to add a private variable to test the generated CSS from Emotion, this is the simplest way to do it.\n// We can't test the CSS from `style` tag easily because the `speedy: true` (produce empty text content) is enabled by Emotion.\n// Even if we disable it, JSDOM needs extra configuration to be able to parse `@layer` CSS.\nexport const TEST_INTERNALS_DO_NOT_USE = {\n  /**\n   * to intercept the generated CSS before inserting to the style tag, so that we can check the generated CSS.\n   *\n   * let rule;\n   * TEST_INTERNALS_DO_NOT_USE.insert = (...args) => {\n   *    rule = args[0];\n   * };\n   *\n   * expect(rule).to.equal(...);\n   */\n  insert: undefined\n};\n\n// We might be able to remove this when this issue is fixed:\n// https://github.com/emotion-js/emotion/issues/2790\nconst createEmotionCache = (options, CustomSheet) => {\n  const cache = createCache(options);\n\n  // Do the same as https://github.com/emotion-js/emotion/blob/main/packages/cache/src/index.js#L238-L245\n  cache.sheet = new CustomSheet({\n    key: cache.key,\n    nonce: cache.sheet.nonce,\n    container: cache.sheet.container,\n    speedy: cache.sheet.isSpeedy,\n    prepend: cache.sheet.prepend,\n    insertionPoint: cache.sheet.insertionPoint\n  });\n  return cache;\n};\nlet insertionPoint;\nif (typeof document === 'object') {\n  // Use `insertionPoint` over `prepend`(deprecated) because it can be controlled for GlobalStyles injection order\n  // For more information, see https://github.com/mui/material-ui/issues/44597\n  insertionPoint = document.querySelector('[name=\"emotion-insertion-point\"]');\n  if (!insertionPoint) {\n    insertionPoint = document.createElement('meta');\n    insertionPoint.setAttribute('name', 'emotion-insertion-point');\n    insertionPoint.setAttribute('content', '');\n    const head = document.querySelector('head');\n    if (head) {\n      head.prepend(insertionPoint);\n    }\n  }\n}\nfunction getCache(injectFirst, enableCssLayer) {\n  if (injectFirst || enableCssLayer) {\n    /**\n     * This is for client-side apps only.\n     * A custom sheet is required to make the GlobalStyles API injected above the insertion point.\n     * This is because the [sheet](https://github.com/emotion-js/emotion/blob/main/packages/react/src/global.js#L94-L99) does not consume the options.\n     */\n    class MyStyleSheet extends StyleSheet {\n      insert(rule, options) {\n        if (TEST_INTERNALS_DO_NOT_USE.insert) {\n          return TEST_INTERNALS_DO_NOT_USE.insert(rule, options);\n        }\n        if (this.key && this.key.endsWith('global')) {\n          this.before = insertionPoint;\n        }\n        return super.insert(rule, options);\n      }\n    }\n    const emotionCache = createEmotionCache({\n      key: 'css',\n      insertionPoint: injectFirst ? insertionPoint : undefined\n    }, MyStyleSheet);\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  }\n  return undefined;\n}\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  return cache ? /*#__PURE__*/_jsx(CacheProvider, {\n    value: cache,\n    children: children\n  }) : children;\n}\nprocess.env.NODE_ENV !== \"production\" ? StyledEngineProvider.propTypes = {\n  /**\n   * Your component tree.\n   */\n  children: PropTypes.node,\n  /**\n   * If `true`, the styles are wrapped in `@layer mui`.\n   * Learn more about [Cascade layers](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Cascade_layers).\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;","'use client';\n\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;","/**\n * @mui/styled-engine v7.3.10\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 function internal_mutateStyles(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/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\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) || isValidElementType(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}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n  clone: true\n}) {\n  const output = options.clone ? {\n    ...target\n  } : target;\n  if (isPlainObject(target) && isPlainObject(source)) {\n    Object.keys(source).forEach(key => {\n      if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(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}","// 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 {\n      ...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    ...other\n  } = breakpoints;\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 {\n    keys,\n    values: sortedValues,\n    up,\n    down,\n    between,\n    only,\n    not,\n    unit,\n    ...other\n  };\n}","/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n *       e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n *            output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 even though 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n  if (!theme.containerQueries) {\n    return css;\n  }\n  const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n    const regex = /min-width:\\s*([0-9.]+)/;\n    return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n  });\n  if (!sorted.length) {\n    return css;\n  }\n  return sorted.reduce((acc, key) => {\n    const value = css[key];\n    delete acc[key];\n    acc[key] = value;\n    return acc;\n  }, {\n    ...css\n  });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n  return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n  const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n  if (!matches) {\n    if (process.env.NODE_ENV !== 'production') {\n      throw /* minify-error */new Error(`MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.');\n    }\n    return null;\n  }\n  const [, containerQuery, containerName] = matches;\n  const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n  return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n  const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n  function attachCq(node, name) {\n    node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n    node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n    node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n    node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n    node.not = (...args) => {\n      const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n      if (result.includes('not all and')) {\n        // `@container` does not work with `not all and`, so need to invert the logic\n        return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n      }\n      return result;\n    };\n  }\n  const node = {};\n  const containerQueries = name => {\n    attachCq(node, name);\n    return node;\n  };\n  attachCq(containerQueries);\n  return {\n    ...themeInput,\n    containerQueries\n  };\n}","const shape = {\n  borderRadius: 4\n};\nexport default shape;","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';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\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};\nconst defaultContainerQueries = {\n  containerQueries: containerName => ({\n    up: key => {\n      let result = typeof key === 'number' ? key : values[key] || key;\n      if (typeof result === 'number') {\n        result = `${result}px`;\n      }\n      return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n    }\n  })\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      if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n        const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n        if (containerKey) {\n          acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n        }\n      }\n      // key is breakpoint\n      else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\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({\n          theme,\n          ...props[key]\n        });\n      }\n      return acc;\n    }, null);\n    return merge(base, extended);\n  };\n  newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n    ...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  const breakpointsInOrder = breakpointsInput.keys?.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;","import _formatErrorMessage 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.' : _formatErrorMessage(7));\n  }\n  return string.charAt(0).toUpperCase() + string.slice(1);\n}","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\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 responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\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  const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n  if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n    return val => {\n      if (typeof val === 'string') {\n        return val;\n      }\n      if (process.env.NODE_ENV !== 'production') {\n        if (typeof val !== 'number') {\n          console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n        }\n      }\n      if (typeof themeSpacing === 'string') {\n        if (themeSpacing.startsWith('var(') && val === 0) {\n          return 0;\n        }\n        if (themeSpacing.startsWith('var(') && val === 1) {\n          return themeSpacing;\n        }\n        return `calc(${val} * ${themeSpacing})`;\n      }\n      return themeSpacing * val;\n    };\n  }\n  if (Array.isArray(themeSpacing)) {\n    return val => {\n      if (typeof val === 'string') {\n        return val;\n      }\n      const abs = Math.abs(val);\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      const transformed = themeSpacing[abs];\n      if (val >= 0) {\n        return transformed;\n      }\n      if (typeof transformed === 'number') {\n        return -transformed;\n      }\n      if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n        return `calc(-1 * ${transformed})`;\n      }\n      return `-${transformed}`;\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  return transformer(propValue);\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.includes(prop)) {\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 { createUnarySpacing } from \"../spacing/index.js\";\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// 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\ntransform = createUnarySpacing({\n  spacing: spacingInput\n})) {\n  // Already transformed.\n  if (spacingInput.mui) {\n    return 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 merge from \"../merge/index.js\";\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/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\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/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\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/index.js\";\nimport compose from \"../compose/index.js\";\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/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\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      const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n      if (!breakpoint) {\n        return {\n          maxWidth: sizingTransform(propValue)\n        };\n      }\n      if (props.theme?.breakpoints?.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/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\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  font: {\n    themeKey: 'font'\n  },\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 capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\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    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_sxConfig ?? 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': sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css))\n        };\n      }\n      return sortContainerQueries(theme, 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;","/**\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/customization/css-theme-variables/overview/)\n *  - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => 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={[\n *     { background: '#e5e5e5' },\n *     theme => 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) {\n    if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n      return {};\n    }\n    // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n    let selector = theme.getColorSchemeSelector(key);\n    if (selector === '&') {\n      return styles;\n    }\n    if (selector.includes('data-') || selector.includes('.')) {\n      // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n      selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n    }\n    return {\n      [selector]: styles\n    };\n  }\n  if (theme.palette.mode === key) {\n    return styles;\n  }\n  return {};\n}","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n  const {\n    breakpoints: breakpointsInput = {},\n    palette: paletteInput = {},\n    spacing: spacingInput,\n    shape: shapeInput = {},\n    ...other\n  } = options;\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: {\n      mode: 'light',\n      ...paletteInput\n    },\n    spacing,\n    shape: {\n      ...shape,\n      ...shapeInput\n    }\n  }, other);\n  muiTheme = cssContainerQueries(muiTheme);\n  muiTheme.applyStyles = applyStyles;\n  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n  muiTheme.unstable_sxConfig = {\n    ...defaultSxConfig,\n    ...other?.unstable_sxConfig\n  };\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;","'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;","'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n  return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as MuiGlobalStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport useTheme from \"../useTheme/index.js\";\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 { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n  const result = {\n    systemProps: {},\n    otherProps: {}\n  };\n  const config = props?.theme?.unstable_sxConfig ?? 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    ...other\n  } = props;\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 {\n        ...systemProps,\n        ...result\n      };\n    };\n  } else {\n    finalSx = {\n      ...systemProps,\n      ...inSx\n    };\n  }\n  return {\n    ...otherProps,\n    sx: finalSx\n  };\n}","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;","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;","import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\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/index.js\";\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 { internal_serializeStyles } from '@mui/styled-engine';\nexport default function preprocessStyles(input) {\n  const {\n    variants,\n    ...style\n  } = input;\n  const result = {\n    variants,\n    style: internal_serializeStyles(style),\n    isProcessed: true\n  };\n\n  // Not supported on styled-components\n  if (result.style === style) {\n    return result;\n  }\n  if (variants) {\n    variants.forEach(variant => {\n      if (typeof variant.style !== 'function') {\n        variant.style = internal_serializeStyles(variant.style);\n      }\n    });\n  }\n  return result;\n}","import styledEngineStyled, { internal_mutateStyles as mutateStyles, 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/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\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}\nfunction defaultOverridesResolver(slot) {\n  if (!slot) {\n    return null;\n  }\n  return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n  props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n  /*\n   * Style types:\n   *  - null/undefined\n   *  - string\n   *  - CSS style object: { [cssKey]: [cssValue], variants }\n   *  - Processed style object: { style, variants, isProcessed: true }\n   *  - Array of any of the above\n   */\n\n  const resolvedStyle = typeof style === 'function' ? style(props) : style;\n  if (Array.isArray(resolvedStyle)) {\n    return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n  }\n  if (Array.isArray(resolvedStyle?.variants)) {\n    let rootStyle;\n    if (resolvedStyle.isProcessed) {\n      rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n    } else {\n      const {\n        variants,\n        ...otherStyles\n      } = resolvedStyle;\n      rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n    }\n    return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n  }\n  if (resolvedStyle?.isProcessed) {\n    return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n  }\n  return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n  let mergedState; // We might not need it, initialized lazily\n\n  variantLoop: for (let i = 0; i < variants.length; i += 1) {\n    const variant = variants[i];\n    if (typeof variant.props === 'function') {\n      mergedState ??= {\n        ...props,\n        ...props.ownerState,\n        ownerState: props.ownerState\n      };\n      if (!variant.props(mergedState)) {\n        continue;\n      }\n    } else {\n      for (const key in variant.props) {\n        if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n          continue variantLoop;\n        }\n      }\n    }\n    if (typeof variant.style === 'function') {\n      mergedState ??= {\n        ...props,\n        ...props.ownerState,\n        ownerState: props.ownerState\n      };\n      results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n    } else {\n      results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n    }\n  }\n  return results;\n}\nexport default function createStyled(input = {}) {\n  const {\n    themeId,\n    defaultTheme = systemDefaultTheme,\n    rootShouldForwardProp = shouldForwardProp,\n    slotShouldForwardProp = shouldForwardProp\n  } = input;\n  function styleAttachTheme(props) {\n    attachTheme(props, themeId, defaultTheme);\n  }\n  const styled = (tag, inputOptions = {}) => {\n    // If `tag` is already a styled component, filter out the `sx` style function\n    // to prevent unnecessary styles generated by the composite components.\n    mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\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      ...options\n    } = inputOptions;\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 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, {\n      shouldForwardProp: shouldForwardPropOption,\n      label: generateStyledLabel(componentName, componentSlot),\n      ...options\n    });\n    const transformStyle = style => {\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      // - `style` could be a styled component from a babel plugin for component selectors, This condition\n      //   makes sure that we do not interpolate them.\n      if (style.__emotion_real === style) {\n        return style;\n      }\n      if (typeof style === 'function') {\n        return function styleFunctionProcessor(props) {\n          return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n        };\n      }\n      if (isPlainObject(style)) {\n        const serialized = preprocessStyles(style);\n        return function styleObjectProcessor(props) {\n          if (!serialized.variants) {\n            return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n          }\n          return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n        };\n      }\n      return style;\n    };\n    const muiStyledResolver = (...expressionsInput) => {\n      const expressionsHead = [];\n      const expressionsBody = expressionsInput.map(transformStyle);\n      const expressionsTail = [];\n\n      // Preprocess `props` to set the scoped theme value.\n      // This must run before any other expression.\n      expressionsHead.push(styleAttachTheme);\n      if (componentName && overridesResolver) {\n        expressionsTail.push(function styleThemeOverrides(props) {\n          const theme = props.theme;\n          const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n          if (!styleOverrides) {\n            return null;\n          }\n          const resolvedStyleOverrides = {};\n\n          // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n          // eslint-disable-next-line guard-for-in\n          for (const slotKey in styleOverrides) {\n            resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n          }\n          return overridesResolver(props, resolvedStyleOverrides);\n        });\n      }\n      if (componentName && !skipVariantsResolver) {\n        expressionsTail.push(function styleThemeVariants(props) {\n          const theme = props.theme;\n          const themeVariants = theme?.components?.[componentName]?.variants;\n          if (!themeVariants) {\n            return null;\n          }\n          return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n        });\n      }\n      if (!skipSx) {\n        expressionsTail.push(styleFunctionSx);\n      }\n\n      // This function can be called as a tagged template, so the first argument would contain\n      // CSS `string[]` values.\n      if (Array.isArray(expressionsBody[0])) {\n        const inputStrings = expressionsBody.shift();\n\n        // We need to add placeholders in the tagged template for the custom functions we have\n        // possibly added (attachTheme, overrides, variants, and sx).\n        const placeholdersHead = new Array(expressionsHead.length).fill('');\n        const placeholdersTail = new Array(expressionsTail.length).fill('');\n        let outputStrings;\n        // prettier-ignore\n        {\n          outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n          outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n        }\n\n        // The only case where we put something before `attachTheme`\n        expressionsHead.unshift(outputStrings);\n      }\n      const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n      const Component = defaultStyledResolver(...expressions);\n      if (tag.muiName) {\n        Component.muiName = tag.muiName;\n      }\n      if (process.env.NODE_ENV !== 'production') {\n        Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n      }\n      return Component;\n    };\n    if (defaultStyledResolver.withConfig) {\n      muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n    }\n    return muiStyledResolver;\n  };\n  return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n  if (componentName) {\n    return `${componentName}${capitalize(componentSlot || '')}`;\n  }\n  return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\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  return label;\n}\nfunction isObjectEmpty(object) {\n  // eslint-disable-next-line\n  for (const _ in object) {\n    return false;\n  }\n  return true;\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}\nfunction lowercaseFirstLetter(string) {\n  if (!string) {\n    return string;\n  }\n  return string.charAt(0).toLowerCase() + string.slice(1);\n}","import createStyled from \"../createStyled/index.js\";\nconst styled = createStyled();\nexport default styled;","import clsx from 'clsx';\n\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.\n *   When `false` (default), props override defaultProps. When `true`, `className` values are concatenated\n *   and `style` objects are merged with props taking precedence.\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {\n  const output = {\n    ...props\n  };\n  for (const key in defaultProps) {\n    if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n      const propName = key;\n      if (propName === 'components' || propName === 'slots') {\n        output[propName] = {\n          ...defaultProps[propName],\n          ...output[propName]\n        };\n      } else if (propName === 'componentsProps' || propName === 'slotProps') {\n        const defaultSlotProps = defaultProps[propName];\n        const slotProps = props[propName];\n        if (!slotProps) {\n          output[propName] = defaultSlotProps || {};\n        } else if (!defaultSlotProps) {\n          output[propName] = slotProps;\n        } else {\n          output[propName] = {\n            ...slotProps\n          };\n          for (const slotKey in defaultSlotProps) {\n            if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n              const slotPropName = slotKey;\n              output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);\n            }\n          }\n        }\n      } else if (propName === 'className' && mergeClassNameAndStyle && props.className) {\n        output.className = clsx(defaultProps?.className, props?.className);\n      } else if (propName === 'style' && mergeClassNameAndStyle && props.style) {\n        output.style = {\n          ...defaultProps?.style,\n          ...props?.style\n        };\n      } else if (output[propName] === undefined) {\n        output[propName] = defaultProps[propName];\n      }\n    }\n  }\n  return output;\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;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\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 clamp(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 */\nexport function 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  if (process.env.NODE_ENV !== 'production') {\n    if (color.length !== color.trim().length) {\n      console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\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 */\nexport function 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'].includes(type)) {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(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'].includes(colorSpace)) {\n      throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(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 */\nexport const colorChannel = color => {\n  const decomposedColor = decomposeColor(color);\n  return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const 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 */\nexport function recomposeColor(color) {\n  const {\n    type,\n    colorSpace\n  } = color;\n  let {\n    values\n  } = color;\n  if (type.includes('rgb')) {\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.includes('hsl')) {\n    values[1] = `${values[1]}%`;\n    values[2] = `${values[2]}%`;\n  }\n  if (type.includes('color')) {\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 */\nexport function rgbToHex(color) {\n  // Idempotent\n  if (color.startsWith('#')) {\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 */\nexport function 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 */\nexport function 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 */\nexport function 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 */\nexport function 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}\nexport function 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 */\nexport function darken(color, coefficient) {\n  color = decomposeColor(color);\n  coefficient = clampWrapper(coefficient);\n  if (color.type.includes('hsl')) {\n    color.values[2] *= 1 - coefficient;\n  } else if (color.type.includes('rgb') || color.type.includes('color')) {\n    for (let i = 0; i < 3; i += 1) {\n      color.values[i] *= 1 - coefficient;\n    }\n  }\n  return recomposeColor(color);\n}\nexport function 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 */\nexport function lighten(color, coefficient) {\n  color = decomposeColor(color);\n  coefficient = clampWrapper(coefficient);\n  if (color.type.includes('hsl')) {\n    color.values[2] += (100 - color.values[2]) * coefficient;\n  } else if (color.type.includes('rgb')) {\n    for (let i = 0; i < 3; i += 1) {\n      color.values[i] += (255 - color.values[i]) * coefficient;\n    }\n  } else if (color.type.includes('color')) {\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}\nexport function 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 */\nexport function emphasize(color, coefficient = 0.15) {\n  return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function 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 */\nexport function 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}","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;","'use client';\n\nimport * as React from 'react';\nconst ThemeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n  ThemeContext.displayName = 'ThemeContext';\n}\nexport default ThemeContext;","'use client';\n\nimport * as React from 'react';\nimport ThemeContext from \"./ThemeContext.js\";\nexport default function useTheme() {\n  const theme = React.useContext(ThemeContext);\n  if (process.env.NODE_ENV !== 'production') {\n    // TODO: uncomment once we enable eslint-plugin-react-compiler eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- It's not required to run React.useDebugValue in production\n    React.useDebugValue(theme);\n  }\n  return theme;\n}","const hasSymbol = typeof Symbol === 'function' && Symbol.for;\nexport default hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport exactProp from '@mui/utils/exactProp';\nimport ThemeContext from \"../useTheme/ThemeContext.js\";\nimport useTheme from \"../useTheme/index.js\";\nimport nested from \"./nested.js\";\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 {\n    ...outerTheme,\n    ...localTheme\n  };\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 ? {\n      ...localTheme\n    } : 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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst RtlContext = /*#__PURE__*/React.createContext();\nfunction RtlProvider({\n  value,\n  ...props\n}) {\n  return /*#__PURE__*/_jsx(RtlContext.Provider, {\n    value: value ?? true,\n    ...props\n  });\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 ?? false;\n};\nexport default RtlProvider;","'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, theme.components.mergeClassNameAndStyle);\n  }\n  if (!config.styleOverrides && !config.variants) {\n    // v6 signature, no property 'defaultProps'\n    return resolveProps(config, props, theme.components.mergeClassNameAndStyle);\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';\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\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// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n  ...React\n};\nconst maybeReactUseId = safeReact.useId;\n\n/**\n *\n * @example <div id={useId()} />\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n  // React.useId() is only available from React 17.0.0.\n  if (maybeReactUseId !== undefined) {\n    const reactId = maybeReactUseId();\n    return idOverride ?? reactId;\n  }\n\n  // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\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 * 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/index.js\";\nimport RtlProvider from \"../RtlProvider/index.js\";\nimport DefaultPropsProvider from \"../DefaultPropsProvider/index.js\";\nimport useLayerOrder from \"./useLayerOrder.js\";\nimport { jsxs as _jsxs, 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 ? {\n        ...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 ? {\n      ...upperTheme,\n      [themeId]: localTheme\n    } : {\n      ...upperTheme,\n      ...localTheme\n    };\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 = (themeId ? engineTheme[themeId] : 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: themeId ? engineTheme[themeId].components : 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;","import useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport GlobalStyles from \"../GlobalStyles/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\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      // Only insert if first child doesn't have data-mui-layer-order attribute\n      if (firstChild && firstChild.hasAttribute?.('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      head.querySelector(`style[data-mui-layer-order=\"${id}\"]`)?.remove();\n    }\n  }, [layerOrder, id]);\n  if (!layerOrder) {\n    return null;\n  }\n  return /*#__PURE__*/_jsx(GlobalStyles, {\n    styles: layerOrder\n  });\n}","import preprocessStyles from \"./preprocessStyles.js\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n  theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n  let lastValue;\n  let lastTheme;\n  return function styleMemoized(props) {\n    let value = lastValue;\n    if (value === undefined || props.theme !== lastTheme) {\n      arg.theme = props.theme;\n      value = preprocessStyles(styleFn(arg));\n      lastValue = value;\n      lastTheme = props.theme;\n    }\n    return value;\n  };\n}","import { jsx as _jsx } from \"react/jsx-runtime\";\nexport const DEFAULT_MODE_STORAGE_KEY = 'mode';\nexport const DEFAULT_COLOR_SCHEME_STORAGE_KEY = 'color-scheme';\nexport const DEFAULT_ATTRIBUTE = 'data-color-scheme';\nexport default function InitColorSchemeScript(options) {\n  const {\n    defaultMode = 'system',\n    defaultLightColorScheme = 'light',\n    defaultDarkColorScheme = 'dark',\n    modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n    colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n    attribute: initialAttribute = DEFAULT_ATTRIBUTE,\n    colorSchemeNode = 'document.documentElement',\n    nonce\n  } = options || {};\n  let setter = '';\n  let attribute = initialAttribute;\n  if (initialAttribute === 'class') {\n    attribute = '.%s';\n  }\n  if (initialAttribute === 'data') {\n    attribute = '[data-%s]';\n  }\n  if (attribute.startsWith('.')) {\n    const selector = attribute.substring(1);\n    setter += `${colorSchemeNode}.classList.remove('${selector}'.replace('%s', light), '${selector}'.replace('%s', dark));\n      ${colorSchemeNode}.classList.add('${selector}'.replace('%s', colorScheme));`;\n  }\n  const matches = attribute.match(/\\[([^[\\]]+)\\]/); // case [data-color-scheme='%s'] or [data-color-scheme]\n  if (matches) {\n    const [attr, value] = matches[1].split('=');\n    if (!value) {\n      setter += `${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', light));\n      ${colorSchemeNode}.removeAttribute('${attr}'.replace('%s', dark));`;\n    }\n    setter += `\n      ${colorSchemeNode}.setAttribute('${attr}'.replace('%s', colorScheme), ${value ? `${value}.replace('%s', colorScheme)` : '\"\"'});`;\n  } else if (attribute !== '.%s') {\n    setter += `${colorSchemeNode}.setAttribute('${attribute}', colorScheme);`;\n  }\n  return /*#__PURE__*/_jsx(\"script\", {\n    suppressHydrationWarning: true,\n    nonce: typeof window === 'undefined' ? nonce : ''\n    // eslint-disable-next-line react/no-danger\n    ,\n    dangerouslySetInnerHTML: {\n      __html: `(function() {\ntry {\n  let colorScheme = '';\n  const mode = localStorage.getItem('${modeStorageKey}') || '${defaultMode}';\n  const dark = localStorage.getItem('${colorSchemeStorageKey}-dark') || '${defaultDarkColorScheme}';\n  const light = localStorage.getItem('${colorSchemeStorageKey}-light') || '${defaultLightColorScheme}';\n  if (mode === 'system') {\n    // handle system mode\n    const mql = window.matchMedia('(prefers-color-scheme: dark)');\n    if (mql.matches) {\n      colorScheme = dark\n    } else {\n      colorScheme = light\n    }\n  }\n  if (mode === 'light') {\n    colorScheme = light;\n  }\n  if (mode === 'dark') {\n    colorScheme = dark;\n  }\n  if (colorScheme) {\n    ${setter}\n  }\n} catch(e){}})();`\n    }\n  }, \"mui-color-scheme-init\");\n}","function noop() {}\nconst localStorageManager = ({\n  key,\n  storageWindow\n}) => {\n  if (!storageWindow && typeof window !== 'undefined') {\n    storageWindow = window;\n  }\n  return {\n    get(defaultValue) {\n      if (typeof window === 'undefined') {\n        return undefined;\n      }\n      if (!storageWindow) {\n        return defaultValue;\n      }\n      let value;\n      try {\n        value = storageWindow.localStorage.getItem(key);\n      } catch {\n        // Unsupported\n      }\n      return value || defaultValue;\n    },\n    set: value => {\n      if (storageWindow) {\n        try {\n          storageWindow.localStorage.setItem(key, value);\n        } catch {\n          // Unsupported\n        }\n      }\n    },\n    subscribe: handler => {\n      if (!storageWindow) {\n        return noop;\n      }\n      const listener = event => {\n        const value = event.newValue;\n        if (event.key === key) {\n          handler(value);\n        }\n      };\n      storageWindow.addEventListener('storage', listener);\n      return () => {\n        storageWindow.removeEventListener('storage', listener);\n      };\n    }\n  };\n};\nexport default localStorageManager;","'use client';\n\nimport * as React from 'react';\nimport { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport localStorageManager from \"./localStorageManager.js\";\nfunction noop() {}\nexport function getSystemMode(mode) {\n  if (typeof window !== 'undefined' && typeof window.matchMedia === 'function' && mode === 'system') {\n    const mql = window.matchMedia('(prefers-color-scheme: dark)');\n    if (mql.matches) {\n      return 'dark';\n    }\n    return 'light';\n  }\n  return undefined;\n}\nfunction processState(state, callback) {\n  if (state.mode === 'light' || state.mode === 'system' && state.systemMode === 'light') {\n    return callback('light');\n  }\n  if (state.mode === 'dark' || state.mode === 'system' && state.systemMode === 'dark') {\n    return callback('dark');\n  }\n  return undefined;\n}\nexport function getColorScheme(state) {\n  return processState(state, mode => {\n    if (mode === 'light') {\n      return state.lightColorScheme;\n    }\n    if (mode === 'dark') {\n      return state.darkColorScheme;\n    }\n    return undefined;\n  });\n}\nexport default function useCurrentColorScheme(options) {\n  const {\n    defaultMode = 'light',\n    defaultLightColorScheme,\n    defaultDarkColorScheme,\n    supportedColorSchemes = [],\n    modeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n    colorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n    storageWindow = typeof window === 'undefined' ? undefined : window,\n    storageManager = localStorageManager,\n    noSsr = false\n  } = options;\n  const joinedColorSchemes = supportedColorSchemes.join(',');\n  const isMultiSchemes = supportedColorSchemes.length > 1;\n  const modeStorage = React.useMemo(() => storageManager?.({\n    key: modeStorageKey,\n    storageWindow\n  }), [storageManager, modeStorageKey, storageWindow]);\n  const lightStorage = React.useMemo(() => storageManager?.({\n    key: `${colorSchemeStorageKey}-light`,\n    storageWindow\n  }), [storageManager, colorSchemeStorageKey, storageWindow]);\n  const darkStorage = React.useMemo(() => storageManager?.({\n    key: `${colorSchemeStorageKey}-dark`,\n    storageWindow\n  }), [storageManager, colorSchemeStorageKey, storageWindow]);\n  const [state, setState] = React.useState(() => {\n    const initialMode = modeStorage?.get(defaultMode) || defaultMode;\n    const lightColorScheme = lightStorage?.get(defaultLightColorScheme) || defaultLightColorScheme;\n    const darkColorScheme = darkStorage?.get(defaultDarkColorScheme) || defaultDarkColorScheme;\n    return {\n      mode: initialMode,\n      systemMode: getSystemMode(initialMode),\n      lightColorScheme,\n      darkColorScheme\n    };\n  });\n  const [isClient, setIsClient] = React.useState(noSsr || !isMultiSchemes);\n  React.useEffect(() => {\n    setIsClient(true); // to rerender the component after hydration\n  }, []);\n  const colorScheme = getColorScheme(state);\n  const setMode = React.useCallback(mode => {\n    setState(currentState => {\n      if (mode === currentState.mode) {\n        // do nothing if mode does not change\n        return currentState;\n      }\n      const newMode = mode ?? defaultMode;\n      modeStorage?.set(newMode);\n      return {\n        ...currentState,\n        mode: newMode,\n        systemMode: getSystemMode(newMode)\n      };\n    });\n  }, [modeStorage, defaultMode]);\n  const setColorScheme = React.useCallback(value => {\n    if (!value) {\n      setState(currentState => {\n        lightStorage?.set(defaultLightColorScheme);\n        darkStorage?.set(defaultDarkColorScheme);\n        return {\n          ...currentState,\n          lightColorScheme: defaultLightColorScheme,\n          darkColorScheme: defaultDarkColorScheme\n        };\n      });\n    } else if (typeof value === 'string') {\n      if (value && !joinedColorSchemes.includes(value)) {\n        console.error(`\\`${value}\\` does not exist in \\`theme.colorSchemes\\`.`);\n      } else {\n        setState(currentState => {\n          const newState = {\n            ...currentState\n          };\n          processState(currentState, mode => {\n            if (mode === 'light') {\n              lightStorage?.set(value);\n              newState.lightColorScheme = value;\n            }\n            if (mode === 'dark') {\n              darkStorage?.set(value);\n              newState.darkColorScheme = value;\n            }\n          });\n          return newState;\n        });\n      }\n    } else {\n      setState(currentState => {\n        const newState = {\n          ...currentState\n        };\n        const newLightColorScheme = value.light === null ? defaultLightColorScheme : value.light;\n        const newDarkColorScheme = value.dark === null ? defaultDarkColorScheme : value.dark;\n        if (newLightColorScheme) {\n          if (!joinedColorSchemes.includes(newLightColorScheme)) {\n            console.error(`\\`${newLightColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n          } else {\n            newState.lightColorScheme = newLightColorScheme;\n            lightStorage?.set(newLightColorScheme);\n          }\n        }\n        if (newDarkColorScheme) {\n          if (!joinedColorSchemes.includes(newDarkColorScheme)) {\n            console.error(`\\`${newDarkColorScheme}\\` does not exist in \\`theme.colorSchemes\\`.`);\n          } else {\n            newState.darkColorScheme = newDarkColorScheme;\n            darkStorage?.set(newDarkColorScheme);\n          }\n        }\n        return newState;\n      });\n    }\n  }, [joinedColorSchemes, lightStorage, darkStorage, defaultLightColorScheme, defaultDarkColorScheme]);\n  const handleMediaQuery = React.useCallback(event => {\n    if (state.mode === 'system') {\n      setState(currentState => {\n        const systemMode = event?.matches ? 'dark' : 'light';\n\n        // Early exit, nothing changed.\n        if (currentState.systemMode === systemMode) {\n          return currentState;\n        }\n        return {\n          ...currentState,\n          systemMode\n        };\n      });\n    }\n  }, [state.mode]);\n\n  // Ref hack to avoid adding handleMediaQuery as a dep\n  const mediaListener = React.useRef(handleMediaQuery);\n  mediaListener.current = handleMediaQuery;\n  React.useEffect(() => {\n    if (typeof window.matchMedia !== 'function' || !isMultiSchemes) {\n      return undefined;\n    }\n    const handler = (...args) => mediaListener.current(...args);\n\n    // Always listen to System preference\n    const media = window.matchMedia('(prefers-color-scheme: dark)');\n\n    // Intentionally use deprecated listener methods to support iOS & old browsers\n    media.addListener(handler);\n    handler(media);\n    return () => {\n      media.removeListener(handler);\n    };\n  }, [isMultiSchemes]);\n\n  // Handle when localStorage has changed\n  React.useEffect(() => {\n    if (isMultiSchemes) {\n      const unsubscribeMode = modeStorage?.subscribe(value => {\n        if (!value || ['light', 'dark', 'system'].includes(value)) {\n          setMode(value || defaultMode);\n        }\n      }) || noop;\n      const unsubscribeLight = lightStorage?.subscribe(value => {\n        if (!value || joinedColorSchemes.match(value)) {\n          setColorScheme({\n            light: value\n          });\n        }\n      }) || noop;\n      const unsubscribeDark = darkStorage?.subscribe(value => {\n        if (!value || joinedColorSchemes.match(value)) {\n          setColorScheme({\n            dark: value\n          });\n        }\n      }) || noop;\n      return () => {\n        unsubscribeMode();\n        unsubscribeLight();\n        unsubscribeDark();\n      };\n    }\n    return undefined;\n  }, [setColorScheme, setMode, joinedColorSchemes, defaultMode, storageWindow, isMultiSchemes, modeStorage, lightStorage, darkStorage]);\n  return {\n    ...state,\n    mode: isClient ? state.mode : undefined,\n    systemMode: isClient ? state.systemMode : undefined,\n    colorScheme: isClient ? colorScheme : undefined,\n    setMode,\n    setColorScheme\n  };\n}","/**\n * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable\n * and they does not need to remember the prefix (defined once).\n */\nexport default function createGetCssVar(prefix = '') {\n  function appendVar(...vars) {\n    if (!vars.length) {\n      return '';\n    }\n    const value = vars[0];\n    if (typeof value === 'string' && !value.match(/(#|\\(|\\)|(-?(\\d*\\.)?\\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\\d*\\.)?\\d+)$|(\\d+ \\d+ \\d+)/)) {\n      return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;\n    }\n    return `, ${value}`;\n  }\n\n  // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.\n  const getCssVar = (field, ...fallbacks) => {\n    return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;\n  };\n  return getCssVar;\n}","/**\n * This function create an object from keys, value and then assign to target\n *\n * @param {Object} obj : the target object to be assigned\n * @param {string[]} keys\n * @param {string | number} value\n *\n * @example\n * const source = {}\n * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }\n *\n * @example\n * const source = { palette: { primary: 'var(--palette-primary)' } }\n * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }\n */\nexport const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {\n  let temp = obj;\n  keys.forEach((k, index) => {\n    if (index === keys.length - 1) {\n      if (Array.isArray(temp)) {\n        temp[Number(k)] = value;\n      } else if (temp && typeof temp === 'object') {\n        temp[k] = value;\n      }\n    } else if (temp && typeof temp === 'object') {\n      if (!temp[k]) {\n        temp[k] = arrayKeys.includes(k) ? [] : {};\n      }\n      temp = temp[k];\n    }\n  });\n};\n\n/**\n *\n * @param {Object} obj : source object\n * @param {Function} callback : a function that will be called when\n *                   - the deepest key in source object is reached\n *                   - the value of the deepest key is NOT `undefined` | `null`\n *\n * @example\n * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)\n * // ['palette', 'primary', 'main'] '#000000'\n */\nexport const walkObjectDeep = (obj, callback, shouldSkipPaths) => {\n  function recurse(object, parentKeys = [], arrayKeys = []) {\n    Object.entries(object).forEach(([key, value]) => {\n      if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {\n        if (value !== undefined && value !== null) {\n          if (typeof value === 'object' && Object.keys(value).length > 0) {\n            recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);\n          } else {\n            callback([...parentKeys, key], value, arrayKeys);\n          }\n        }\n      }\n    });\n  }\n  recurse(obj);\n};\nconst getCssValue = (keys, value) => {\n  if (typeof value === 'number') {\n    if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {\n      // CSS property that are unitless\n      return value;\n    }\n    const lastKey = keys[keys.length - 1];\n    if (lastKey.toLowerCase().includes('opacity')) {\n      // opacity values are unitless\n      return value;\n    }\n    return `${value}px`;\n  }\n  return value;\n};\n\n/**\n * a function that parse theme and return { css, vars }\n *\n * @param {Object} theme\n * @param {{\n *  prefix?: string,\n *  shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean\n * }} options.\n *  `prefix`: The prefix of the generated CSS variables. This function does not change the value.\n *\n * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).\n *\n * @example\n * const { css, vars } = parser({\n *   fontSize: 12,\n *   lineHeight: 1.2,\n *   palette: { primary: { 500: 'var(--color)' } }\n * }, { prefix: 'foo' })\n *\n * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }\n * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }\n */\nexport default function cssVarsParser(theme, options) {\n  const {\n    prefix,\n    shouldSkipGeneratingVar\n  } = options || {};\n  const css = {};\n  const vars = {};\n  const varsWithDefaults = {};\n  walkObjectDeep(theme, (keys, value, arrayKeys) => {\n    if (typeof value === 'string' || typeof value === 'number') {\n      if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {\n        // only create css & var if `shouldSkipGeneratingVar` return false\n        const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;\n        const resolvedValue = getCssValue(keys, value);\n        Object.assign(css, {\n          [cssVar]: resolvedValue\n        });\n        assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);\n        assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);\n      }\n    }\n  }, keys => keys[0] === 'vars' // skip 'vars/*' paths\n  );\n  return {\n    css,\n    vars,\n    varsWithDefaults\n  };\n}","/* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0\n   ---\n   These rules are preventing the performance optimizations below.\n */\n\n/**\n * Compose classes from multiple sources.\n *\n * @example\n * ```tsx\n * const slots = {\n *  root: ['root', 'primary'],\n *  label: ['label'],\n * };\n *\n * const getUtilityClass = (slot) => `MuiButton-${slot}`;\n *\n * const classes = {\n *   root: 'my-root-class',\n * };\n *\n * const output = composeClasses(slots, getUtilityClass, classes);\n * // {\n * //   root: 'MuiButton-root MuiButton-primary my-root-class',\n * //   label: 'MuiButton-label',\n * // }\n * ```\n *\n * @param slots a list of classes for each possible slot\n * @param getUtilityClass a function to resolve the class based on the slot name\n * @param classes the input classes from props\n * @returns the resolved classes for all slots\n */\nexport default function composeClasses(slots, getUtilityClass, classes = undefined) {\n  const output = {};\n  for (const slotName in slots) {\n    const slot = slots[slotName];\n    let buffer = '';\n    let start = true;\n    for (let i = 0; i < slot.length; i += 1) {\n      const value = slot[i];\n      if (value) {\n        buffer += (start === true ? '' : ' ') + getUtilityClass(value);\n        start = false;\n        if (classes && classes[value]) {\n          buffer += ' ' + classes[value];\n        }\n      }\n    }\n    output[slotName] = buffer;\n  }\n  return output;\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n  return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(\n  // For server components `muiName` is available 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  element.type.muiName ?? element.type?._payload?.value?.muiName) !== -1;\n}","export const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));\nexport const traverseBreakpoints = (breakpoints, responsive, iterator) => {\n  const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.\n\n  if (Array.isArray(responsive)) {\n    responsive.forEach((breakpointValue, index) => {\n      iterator((responsiveStyles, style) => {\n        if (index <= breakpoints.keys.length - 1) {\n          if (index === 0) {\n            Object.assign(responsiveStyles, style);\n          } else {\n            responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;\n          }\n        }\n      }, breakpointValue);\n    });\n  } else if (responsive && typeof responsive === 'object') {\n    // prevent null\n    // responsive could be a very big object, pick the smallest responsive values\n\n    const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));\n    keys.forEach(key => {\n      if (breakpoints.keys.includes(key)) {\n        // @ts-ignore already checked that responsive is an object\n        const breakpointValue = responsive[key];\n        if (breakpointValue !== undefined) {\n          iterator((responsiveStyles, style) => {\n            if (smallestBreakpoint === key) {\n              Object.assign(responsiveStyles, style);\n            } else {\n              responsiveStyles[breakpoints.up(key)] = style;\n            }\n          }, breakpointValue);\n        }\n      }\n    });\n  } else if (typeof responsive === 'number' || typeof responsive === 'string') {\n    iterator((responsiveStyles, style) => {\n      Object.assign(responsiveStyles, style);\n    }, responsive);\n  }\n};","import { traverseBreakpoints } from \"./traverseBreakpoints.js\";\nfunction getSelfSpacingVar(axis) {\n  return `--Grid-${axis}Spacing`;\n}\nfunction getParentSpacingVar(axis) {\n  return `--Grid-parent-${axis}Spacing`;\n}\nconst selfColumnsVar = '--Grid-columns';\nconst parentColumnsVar = '--Grid-parent-columns';\nexport const generateGridSizeStyles = ({\n  theme,\n  ownerState\n}) => {\n  const styles = {};\n  traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {\n    let style = {};\n    if (value === 'grow') {\n      style = {\n        flexBasis: 0,\n        flexGrow: 1,\n        maxWidth: '100%'\n      };\n    }\n    if (value === 'auto') {\n      style = {\n        flexBasis: 'auto',\n        flexGrow: 0,\n        flexShrink: 0,\n        maxWidth: 'none',\n        width: 'auto'\n      };\n    }\n    if (typeof value === 'number') {\n      style = {\n        flexGrow: 0,\n        flexBasis: 'auto',\n        width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar('column')}) / var(${parentColumnsVar})))`\n      };\n    }\n    appendStyle(styles, style);\n  });\n  return styles;\n};\nexport const generateGridOffsetStyles = ({\n  theme,\n  ownerState\n}) => {\n  const styles = {};\n  traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {\n    let style = {};\n    if (value === 'auto') {\n      style = {\n        marginLeft: 'auto'\n      };\n    }\n    if (typeof value === 'number') {\n      style = {\n        marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar('column')}) * ${value} / var(${parentColumnsVar}))`\n      };\n    }\n    appendStyle(styles, style);\n  });\n  return styles;\n};\nexport const generateGridColumnsStyles = ({\n  theme,\n  ownerState\n}) => {\n  if (!ownerState.container) {\n    return {};\n  }\n  const styles = {\n    [selfColumnsVar]: 12\n  };\n  traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {\n    const columns = value ?? 12;\n    appendStyle(styles, {\n      [selfColumnsVar]: columns,\n      '> *': {\n        [parentColumnsVar]: columns\n      }\n    });\n  });\n  return styles;\n};\nexport const generateGridRowSpacingStyles = ({\n  theme,\n  ownerState\n}) => {\n  if (!ownerState.container) {\n    return {};\n  }\n  const styles = {};\n  traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {\n    const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n    appendStyle(styles, {\n      [getSelfSpacingVar('row')]: spacing,\n      '> *': {\n        [getParentSpacingVar('row')]: spacing\n      }\n    });\n  });\n  return styles;\n};\nexport const generateGridColumnSpacingStyles = ({\n  theme,\n  ownerState\n}) => {\n  if (!ownerState.container) {\n    return {};\n  }\n  const styles = {};\n  traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {\n    const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n    appendStyle(styles, {\n      [getSelfSpacingVar('column')]: spacing,\n      '> *': {\n        [getParentSpacingVar('column')]: spacing\n      }\n    });\n  });\n  return styles;\n};\nexport const generateGridDirectionStyles = ({\n  theme,\n  ownerState\n}) => {\n  if (!ownerState.container) {\n    return {};\n  }\n  const styles = {};\n  traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {\n    appendStyle(styles, {\n      flexDirection: value\n    });\n  });\n  return styles;\n};\nexport const generateGridStyles = ({\n  ownerState\n}) => {\n  return {\n    minWidth: 0,\n    boxSizing: 'border-box',\n    ...(ownerState.container && {\n      display: 'flex',\n      flexWrap: 'wrap',\n      ...(ownerState.wrap && ownerState.wrap !== 'wrap' && {\n        flexWrap: ownerState.wrap\n      }),\n      gap: `var(${getSelfSpacingVar('row')}) var(${getSelfSpacingVar('column')})`\n    })\n  };\n};\nexport const generateSizeClassNames = size => {\n  const classNames = [];\n  Object.entries(size).forEach(([key, value]) => {\n    if (value !== false && value !== undefined) {\n      classNames.push(`grid-${key}-${String(value)}`);\n    }\n  });\n  return classNames;\n};\nexport const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {\n  function isValidSpacing(val) {\n    if (val === undefined) {\n      return false;\n    }\n    return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;\n  }\n  if (isValidSpacing(spacing)) {\n    return [`spacing-${smallestBreakpoint}-${String(spacing)}`];\n  }\n  if (typeof spacing === 'object' && !Array.isArray(spacing)) {\n    const classNames = [];\n    Object.entries(spacing).forEach(([key, value]) => {\n      if (isValidSpacing(value)) {\n        classNames.push(`spacing-${key}-${String(value)}`);\n      }\n    });\n    return classNames;\n  }\n  return [];\n};\nexport const generateDirectionClasses = direction => {\n  if (direction === undefined) {\n    return [];\n  }\n  if (typeof direction === 'object') {\n    return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);\n  }\n  return [`direction-xs-${String(direction)}`];\n};","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport isMuiElement from '@mui/utils/isMuiElement';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport useThemeSystem from \"../useTheme/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from \"./gridGenerator.js\";\nimport deleteLegacyGridProps from \"./deleteLegacyGridProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n  name: 'MuiGrid',\n  slot: 'Root'\n});\nfunction useThemePropsDefault(props) {\n  return useThemePropsSystem({\n    props,\n    name: 'MuiGrid',\n    defaultTheme\n  });\n}\nexport default function createGrid(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    useTheme = useThemeSystem,\n    componentName = 'MuiGrid'\n  } = options;\n  const useUtilityClasses = (ownerState, theme) => {\n    const {\n      container,\n      direction,\n      spacing,\n      wrap,\n      size\n    } = ownerState;\n    const slots = {\n      root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]\n    };\n    return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n  };\n  function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) {\n    const parsedProp = {};\n    if (propValue === null) {\n      return parsedProp;\n    }\n    if (Array.isArray(propValue)) {\n      propValue.forEach((value, index) => {\n        if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) {\n          parsedProp[breakpoints.keys[index]] = value;\n        }\n      });\n    } else if (typeof propValue === 'object') {\n      Object.keys(propValue).forEach(key => {\n        const value = propValue[key];\n        if (value !== null && value !== undefined && shouldUseValue(value)) {\n          parsedProp[key] = value;\n        }\n      });\n    } else {\n      parsedProp[breakpoints.keys[0]] = propValue;\n    }\n    return parsedProp;\n  }\n  const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);\n  const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n    const theme = useTheme();\n    const themeProps = useThemeProps(inProps);\n    const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n\n    // TODO v8: Remove when removing the legacy Grid component\n    deleteLegacyGridProps(props, theme.breakpoints);\n    const {\n      className,\n      children,\n      columns: columnsProp = 12,\n      container = false,\n      component = 'div',\n      direction = 'row',\n      wrap = 'wrap',\n      size: sizeProp = {},\n      offset: offsetProp = {},\n      spacing: spacingProp = 0,\n      rowSpacing: rowSpacingProp = spacingProp,\n      columnSpacing: columnSpacingProp = spacingProp,\n      unstable_level: level = 0,\n      ...other\n    } = props;\n    const size = parseResponsiveProp(sizeProp, theme.breakpoints, val => val !== false);\n    const offset = parseResponsiveProp(offsetProp, theme.breakpoints);\n    const columns = inProps.columns ?? (level ? undefined : columnsProp);\n    const spacing = inProps.spacing ?? (level ? undefined : spacingProp);\n    const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? undefined : rowSpacingProp);\n    const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? undefined : columnSpacingProp);\n    const ownerState = {\n      ...props,\n      level,\n      columns,\n      container,\n      direction,\n      wrap,\n      spacing,\n      rowSpacing,\n      columnSpacing,\n      size,\n      offset\n    };\n    const classes = useUtilityClasses(ownerState, theme);\n    return /*#__PURE__*/_jsx(GridRoot, {\n      ref: ref,\n      as: component,\n      ownerState: ownerState,\n      className: clsx(classes.root, className),\n      ...other,\n      children: React.Children.map(children, child => {\n        if (/*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid']) && container && child.props.container) {\n          return /*#__PURE__*/React.cloneElement(child, {\n            unstable_level: child.props?.unstable_level ?? level + 1\n          });\n        }\n        return child;\n      })\n    });\n  });\n  process.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n    children: PropTypes.node,\n    className: PropTypes.string,\n    columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n    columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n    component: PropTypes.elementType,\n    container: PropTypes.bool,\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    offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n    rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n    size: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\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    wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n  } : void 0;\n\n  // @ts-ignore internal logic for nested grid\n  Grid.muiName = 'Grid';\n  return Grid;\n}","'use client';\n\nimport getThemeProps from \"./getThemeProps.js\";\nimport useTheme from \"../useTheme/index.js\";\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  return getThemeProps({\n    theme,\n    name,\n    props\n  });\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}","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 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 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;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n  return {\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  };\n}\nexport const light = getLight();\nfunction getDark() {\n  return {\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  };\n}\nexport const dark = getDark();\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 mixLightOrDark(colorSpace, 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 = `color-mix(in ${colorSpace}, ${intent.main}, #fff ${(tonalOffsetLight * 100).toFixed(0)}%)`;\n    } else if (direction === 'dark') {\n      intent.dark = `color-mix(in ${colorSpace}, ${intent.main}, #000 ${(tonalOffsetDark * 100).toFixed(0)}%)`;\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}\n\n// Use the same name as the experimental CSS `contrast-color` function.\nexport function contrastColor(background) {\n  return `oklch(from ${background} var(--__l) 0 h / var(--__a))`;\n}\nexport default function createPalette(palette) {\n  const {\n    mode = 'light',\n    contrastThreshold = 3,\n    tonalOffset = 0.2,\n    colorSpace,\n    ...other\n  } = palette;\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    if (colorSpace) {\n      return contrastColor(background);\n    }\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 = {\n      ...color\n    };\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.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(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` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + '  primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + '  primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n    }\n    if (colorSpace) {\n      mixLightOrDark(colorSpace, color, 'light', lightShade, tonalOffset);\n      mixLightOrDark(colorSpace, color, 'dark', darkShade, tonalOffset);\n    } else {\n      addLightOrDark(color, 'light', lightShade, tonalOffset);\n      addLightOrDark(color, 'dark', darkShade, tonalOffset);\n    }\n    if (!color.contrastText) {\n      color.contrastText = getContrastText(color.main);\n    }\n    return color;\n  };\n  let modeHydrated;\n  if (mode === 'light') {\n    modeHydrated = getLight();\n  } else if (mode === 'dark') {\n    modeHydrated = getDark();\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    if (!modeHydrated) {\n      console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n    }\n  }\n  const paletteOutput = deepmerge({\n    // A collection of common colors.\n    common: {\n      ...common\n    },\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    // The light and dark mode object.\n    ...modeHydrated\n  }, other);\n  return paletteOutput;\n}","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 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;","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;","export default function prepareTypographyVars(typography) {\n  const vars = {};\n  const entries = Object.entries(typography);\n  entries.forEach(entry => {\n    const [key, value] = entry;\n    if (typeof value === 'object') {\n      vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;\n    }\n  });\n  return vars;\n}","import 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 {\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    ...other\n  } = typeof typography === 'function' ? typography(palette) : typography;\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) => ({\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    // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing\n    // across font-families can cause issues with the kerning.\n    ...(fontFamily === defaultFontFamily ? {\n      letterSpacing: `${round(letterSpacing / size)}em`\n    } : {}),\n    ...casing,\n    ...allVariants\n  });\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({\n    htmlFontSize,\n    pxToRem,\n    fontFamily,\n    fontSize,\n    fontWeightLight,\n    fontWeightRegular,\n    fontWeightMedium,\n    fontWeightBold,\n    ...variants\n  }, 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;","// 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.desmos.com/calculator/vbrp3ggqet\n  return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);\n}\nexport default function createTransitions(inputTransitions) {\n  const mergedEasing = {\n    ...easing,\n    ...inputTransitions.easing\n  };\n  const mergedDuration = {\n    ...duration,\n    ...inputTransitions.duration\n  };\n  const create = (props = ['all'], options = {}) => {\n    const {\n      duration: durationOption = mergedDuration.standard,\n      easing: easingOption = mergedEasing.easeInOut,\n      delay = 0,\n      ...other\n    } = options;\n    if (process.env.NODE_ENV !== 'production') {\n      const isString = value => typeof value === 'string';\n      const isNumber = value => !Number.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 {\n    getAutoHeightDuration,\n    create,\n    ...inputTransitions,\n    easing: mergedEasing,\n    duration: mergedDuration\n  };\n}","// 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;","/* eslint-disable import/prefer-default-export */\nimport { isPlainObject } from '@mui/utils/deepmerge';\nfunction isSerializable(val) {\n  return isPlainObject(val) || typeof val === 'undefined' || typeof val === 'string' || typeof val === 'boolean' || typeof val === 'number' || Array.isArray(val);\n}\n\n/**\n * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.\n *\n * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS\n * For example, in a Next.js project:\n *\n * ```js\n * // next.config.js\n * const { extendTheme } = require('@mui/material/styles');\n *\n * const theme = extendTheme();\n * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.\n * theme.toRuntimeSource = stringifyTheme;\n *\n * module.exports = withPigment({\n *  theme,\n * });\n * ```\n */\nexport function stringifyTheme(baseTheme = {}) {\n  const serializableTheme = {\n    ...baseTheme\n  };\n  function serializeTheme(object) {\n    const array = Object.entries(object);\n    // eslint-disable-next-line no-plusplus\n    for (let index = 0; index < array.length; index++) {\n      const [key, value] = array[index];\n      if (!isSerializable(value) || key.startsWith('unstable_')) {\n        delete object[key];\n      } else if (isPlainObject(value)) {\n        object[key] = {\n          ...value\n        };\n        serializeTheme(object[key]);\n      }\n    }\n  }\n  serializeTheme(serializableTheme);\n  return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(serializableTheme, null, 2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport { alpha as systemAlpha, lighten as systemLighten, darken as systemDarken } from '@mui/system/colorManipulator';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.js\";\nimport createPalette from \"./createPalette.js\";\nimport createTypography from \"./createTypography.js\";\nimport shadows from \"./shadows.js\";\nimport createTransitions from \"./createTransitions.js\";\nimport zIndex from \"./zIndex.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction coefficientToPercentage(coefficient) {\n  if (typeof coefficient === 'number') {\n    return `${(coefficient * 100).toFixed(0)}%`;\n  }\n  return `calc((${coefficient}) * 100%)`;\n}\n\n// This can be removed when moved to `color-mix()` entirely.\nconst parseAddition = str => {\n  if (!Number.isNaN(+str)) {\n    return +str;\n  }\n  const numbers = str.match(/\\d*\\.?\\d+/g);\n  if (!numbers) {\n    return 0;\n  }\n  let sum = 0;\n  for (let i = 0; i < numbers.length; i += 1) {\n    sum += +numbers[i];\n  }\n  return sum;\n};\nfunction attachColorManipulators(theme) {\n  Object.assign(theme, {\n    alpha(color, coefficient) {\n      const obj = this || theme;\n      if (obj.colorSpace) {\n        return `oklch(from ${color} l c h / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n      }\n      if (obj.vars) {\n        // To preserve the behavior of the CSS theme variables\n        // In the future, this could be replaced by `color-mix` (when https://caniuse.com/?search=color-mix reaches 95%).\n        return `rgba(${color.replace(/var\\(--([^,\\s)]+)(?:,[^)]+)?\\)+/g, 'var(--$1Channel)')} / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n      }\n      return systemAlpha(color, parseAddition(coefficient));\n    },\n    lighten(color, coefficient) {\n      const obj = this || theme;\n      if (obj.colorSpace) {\n        return `color-mix(in ${obj.colorSpace}, ${color}, #fff ${coefficientToPercentage(coefficient)})`;\n      }\n      return systemLighten(color, coefficient);\n    },\n    darken(color, coefficient) {\n      const obj = this || theme;\n      if (obj.colorSpace) {\n        return `color-mix(in ${obj.colorSpace}, ${color}, #000 ${coefficientToPercentage(coefficient)})`;\n      }\n      return systemDarken(color, coefficient);\n    }\n  });\n}\nfunction createThemeNoVars(options = {}, ...args) {\n  const {\n    breakpoints: breakpointsInput,\n    mixins: mixinsInput = {},\n    spacing: spacingInput,\n    palette: paletteInput = {},\n    transitions: transitionsInput = {},\n    typography: typographyInput = {},\n    shape: shapeInput,\n    colorSpace,\n    ...other\n  } = options;\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  // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n  options.generateThemeVars === undefined) {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n    // #host-reference\n    'Please use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(20));\n  }\n  const palette = createPalette({\n    ...paletteInput,\n    colorSpace\n  });\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: {\n      ...zIndex\n    }\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\n      for (key in node) {\n        const child = node[key];\n        if (stateClasses.includes(key) && 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.startsWith('Mui')) {\n        traverse(styleOverrides, component);\n      }\n    });\n  }\n  muiTheme.unstable_sxConfig = {\n    ...defaultSxConfig,\n    ...other?.unstable_sxConfig\n  };\n  muiTheme.unstable_sx = function sx(props) {\n    return styleFunctionSx({\n      sx: props,\n      theme: this\n    });\n  };\n  muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n  attachColorManipulators(muiTheme);\n  return muiTheme;\n}\nexport default createThemeNoVars;","export default function createMixins(breakpoints, mixins) {\n  return {\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  };\n}","// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function 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 Math.round(alphaValue * 10) / 1000;\n}","import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n  if (index === 0) {\n    return 'none';\n  }\n  const overlay = getOverlayAlpha(index);\n  return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n  return {\n    inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n    inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n    switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n    switchTrack: mode === 'dark' ? 0.3 : 0.38\n  };\n}\nexport function getOverlays(mode) {\n  return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n  const {\n    palette: paletteInput = {\n      mode: 'light'\n    },\n    // need to cast to avoid module augmentation test\n    opacity,\n    overlays,\n    colorSpace,\n    ...other\n  } = options;\n  // need to cast because `colorSpace` is considered internal at the moment.\n  const palette = createPalette({\n    ...paletteInput,\n    colorSpace\n  });\n  return {\n    palette,\n    opacity: {\n      ...getOpacity(palette.mode),\n      ...opacity\n    },\n    overlays: overlays || getOverlays(palette.mode),\n    ...other\n  };\n}","export default function shouldSkipGeneratingVar(keys) {\n  return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n  // ends with sxConfig\n  keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}","import excludeVariablesFromRoot from \"./excludeVariablesFromRoot.js\";\nexport default theme => (colorScheme, css) => {\n  const root = theme.rootSelector || ':root';\n  const selector = theme.colorSchemeSelector;\n  let rule = selector;\n  if (selector === 'class') {\n    rule = '.%s';\n  }\n  if (selector === 'data') {\n    rule = '[data-%s]';\n  }\n  if (selector?.startsWith('data-') && !selector.includes('%s')) {\n    // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n    rule = `[${selector}=\"%s\"]`;\n  }\n  if (theme.defaultColorScheme === colorScheme) {\n    if (colorScheme === 'dark') {\n      const excludedVariables = {};\n      excludeVariablesFromRoot(theme.cssVarPrefix).forEach(cssVar => {\n        excludedVariables[cssVar] = css[cssVar];\n        delete css[cssVar];\n      });\n      if (rule === 'media') {\n        return {\n          [root]: css,\n          [`@media (prefers-color-scheme: dark)`]: {\n            [root]: excludedVariables\n          }\n        };\n      }\n      if (rule) {\n        return {\n          [rule.replace('%s', colorScheme)]: excludedVariables,\n          [`${root}, ${rule.replace('%s', colorScheme)}`]: css\n        };\n      }\n      return {\n        [root]: {\n          ...css,\n          ...excludedVariables\n        }\n      };\n    }\n    if (rule && rule !== 'media') {\n      return `${root}, ${rule.replace('%s', String(colorScheme))}`;\n    }\n  } else if (colorScheme) {\n    if (rule === 'media') {\n      return {\n        [`@media (prefers-color-scheme: ${String(colorScheme)})`]: {\n          [root]: css\n        }\n      };\n    }\n    if (rule) {\n      return rule.replace('%s', String(colorScheme));\n    }\n  }\n  return root;\n};","/**\n * @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme=\"dark\"`\n */\nconst excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];\nexport default excludeVariablesFromRoot;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { unstable_createGetCssVar as systemCreateGetCssVar, createSpacing } from '@mui/system';\nimport { createUnarySpacing } from '@mui/system/spacing';\nimport { prepareCssVars, prepareTypographyVars, createGetColorSchemeSelector } from '@mui/system/cssVars';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, hslToRgb } from '@mui/system/colorManipulator';\nimport createThemeNoVars from \"./createThemeNoVars.js\";\nimport createColorScheme, { getOpacity, getOverlays } from \"./createColorScheme.js\";\nimport defaultShouldSkipGeneratingVar from \"./shouldSkipGeneratingVar.js\";\nimport defaultGetSelector from \"./createGetSelector.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nimport { light, dark } from \"./createPalette.js\";\nfunction assignNode(obj, keys) {\n  keys.forEach(k => {\n    if (!obj[k]) {\n      obj[k] = {};\n    }\n  });\n}\nfunction setColor(obj, key, defaultValue) {\n  if (!obj[key] && defaultValue) {\n    obj[key] = defaultValue;\n  }\n}\nfunction toRgb(color) {\n  if (typeof color !== 'string' || !color.startsWith('hsl')) {\n    return color;\n  }\n  return hslToRgb(color);\n}\nfunction setColorChannel(obj, key) {\n  if (!(`${key}Channel` in obj)) {\n    // custom channel token is not provided, generate one.\n    // if channel token can't be generated, show a warning.\n    obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \\`palette.${key}Channel\\` because \\`palette.${key}\\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\\n' + `To suppress this warning, you need to explicitly provide the \\`palette.${key}Channel\\` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token.`);\n  }\n}\nfunction getSpacingVal(spacingInput) {\n  if (typeof spacingInput === 'number') {\n    return `${spacingInput}px`;\n  }\n  if (typeof spacingInput === 'string' || typeof spacingInput === 'function' || Array.isArray(spacingInput)) {\n    return spacingInput;\n  }\n  return '8px';\n}\nconst silent = fn => {\n  try {\n    return fn();\n  } catch (error) {\n    // ignore error\n  }\n  return undefined;\n};\nexport const createGetCssVar = (cssVarPrefix = 'mui') => systemCreateGetCssVar(cssVarPrefix);\nfunction attachColorScheme(colorSpace, colorSchemes, scheme, restTheme, colorScheme) {\n  if (!scheme) {\n    return undefined;\n  }\n  scheme = scheme === true ? {} : scheme;\n  const mode = colorScheme === 'dark' ? 'dark' : 'light';\n  if (!restTheme) {\n    colorSchemes[colorScheme] = createColorScheme({\n      ...scheme,\n      palette: {\n        mode,\n        ...scheme?.palette\n      },\n      colorSpace\n    });\n    return undefined;\n  }\n  const {\n    palette,\n    ...muiTheme\n  } = createThemeNoVars({\n    ...restTheme,\n    palette: {\n      mode,\n      ...scheme?.palette\n    },\n    colorSpace\n  });\n  colorSchemes[colorScheme] = {\n    ...scheme,\n    palette,\n    opacity: {\n      ...getOpacity(mode),\n      ...scheme?.opacity\n    },\n    overlays: scheme?.overlays || getOverlays(mode)\n  };\n  return muiTheme;\n}\n\n/**\n * A default `createThemeWithVars` comes with a single color scheme, either `light` or `dark` based on the `defaultColorScheme`.\n * This is better suited for apps that only need a single color scheme.\n *\n * To enable built-in `light` and `dark` color schemes, either:\n * 1. provide a `colorSchemeSelector` to define how the color schemes will change.\n * 2. provide `colorSchemes.dark` will set `colorSchemeSelector: 'media'` by default.\n */\nexport default function createThemeWithVars(options = {}, ...args) {\n  const {\n    colorSchemes: colorSchemesInput = {\n      light: true\n    },\n    defaultColorScheme: defaultColorSchemeInput,\n    disableCssColorScheme = false,\n    cssVarPrefix = 'mui',\n    nativeColor = false,\n    shouldSkipGeneratingVar = defaultShouldSkipGeneratingVar,\n    colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? 'media' : undefined,\n    rootSelector = ':root',\n    ...input\n  } = options;\n  const firstColorScheme = Object.keys(colorSchemesInput)[0];\n  const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== 'light' ? 'light' : firstColorScheme);\n  const getCssVar = createGetCssVar(cssVarPrefix);\n  const {\n    [defaultColorScheme]: defaultSchemeInput,\n    light: builtInLight,\n    dark: builtInDark,\n    ...customColorSchemes\n  } = colorSchemesInput;\n  const colorSchemes = {\n    ...customColorSchemes\n  };\n  let defaultScheme = defaultSchemeInput;\n\n  // For built-in light and dark color schemes, ensure that the value is valid if they are the default color scheme.\n  if (defaultColorScheme === 'dark' && !('dark' in colorSchemesInput) || defaultColorScheme === 'light' && !('light' in colorSchemesInput)) {\n    defaultScheme = true;\n  }\n  if (!defaultScheme) {\n    throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`colorSchemes.${defaultColorScheme}\\` option is either missing or invalid.` : _formatErrorMessage(21, defaultColorScheme));\n  }\n\n  // The reason to use `oklch` is that it is the most perceptually uniform color space and widely supported.\n  let colorSpace;\n  if (nativeColor) {\n    colorSpace = 'oklch';\n  }\n\n  // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.\n  const muiTheme = attachColorScheme(colorSpace, colorSchemes, defaultScheme, input, defaultColorScheme);\n  if (builtInLight && !colorSchemes.light) {\n    attachColorScheme(colorSpace, colorSchemes, builtInLight, undefined, 'light');\n  }\n  if (builtInDark && !colorSchemes.dark) {\n    attachColorScheme(colorSpace, colorSchemes, builtInDark, undefined, 'dark');\n  }\n  let theme = {\n    defaultColorScheme,\n    ...muiTheme,\n    cssVarPrefix,\n    colorSchemeSelector: selector,\n    rootSelector,\n    getCssVar,\n    colorSchemes,\n    font: {\n      ...prepareTypographyVars(muiTheme.typography),\n      ...muiTheme.font\n    },\n    spacing: getSpacingVal(input.spacing)\n  };\n  Object.keys(theme.colorSchemes).forEach(key => {\n    const palette = theme.colorSchemes[key].palette;\n    const setCssVarColor = cssVar => {\n      const tokens = cssVar.split('-');\n      const color = tokens[1];\n      const colorToken = tokens[2];\n      return getCssVar(cssVar, palette[color][colorToken]);\n    };\n\n    // attach black & white channels to common node\n    if (palette.mode === 'light') {\n      setColor(palette.common, 'background', '#fff');\n      setColor(palette.common, 'onBackground', '#000');\n    }\n    if (palette.mode === 'dark') {\n      setColor(palette.common, 'background', '#000');\n      setColor(palette.common, 'onBackground', '#fff');\n    }\n    function colorMix(method, color, coefficient) {\n      if (colorSpace) {\n        let mixer;\n        if (method === safeAlpha) {\n          mixer = `transparent ${((1 - coefficient) * 100).toFixed(0)}%`;\n        }\n        if (method === safeDarken) {\n          mixer = `#000 ${(coefficient * 100).toFixed(0)}%`;\n        }\n        if (method === safeLighten) {\n          mixer = `#fff ${(coefficient * 100).toFixed(0)}%`;\n        }\n        return `color-mix(in ${colorSpace}, ${color}, ${mixer})`;\n      }\n      return method(color, coefficient);\n    }\n\n    // assign component variables\n    assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);\n    if (palette.mode === 'light') {\n      setColor(palette.Alert, 'errorColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.6));\n      setColor(palette.Alert, 'infoColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.6));\n      setColor(palette.Alert, 'successColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.6));\n      setColor(palette.Alert, 'warningColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.6));\n      setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));\n      setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));\n      setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));\n      setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));\n      setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.main)));\n      setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.main)));\n      setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.main)));\n      setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.main)));\n      setColor(palette.Alert, 'errorStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.9));\n      setColor(palette.Alert, 'infoStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.9));\n      setColor(palette.Alert, 'successStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.9));\n      setColor(palette.Alert, 'warningStandardBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.9));\n      setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n      setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n      setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n      setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n      setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));\n      setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));\n      setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));\n      setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));\n      setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));\n      setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));\n      setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));\n      setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');\n      setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');\n      setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');\n      setColor(palette.LinearProgress, 'primaryBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n      setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n      setColor(palette.LinearProgress, 'errorBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n      setColor(palette.LinearProgress, 'infoBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n      setColor(palette.LinearProgress, 'successBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n      setColor(palette.LinearProgress, 'warningBg', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.62));\n      setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, nativeColor ? getCssVar('palette-text-primary') : palette.text.primary, 0.11) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);\n      setColor(palette.Slider, 'primaryTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n      setColor(palette.Slider, 'secondaryTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n      setColor(palette.Slider, 'errorTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n      setColor(palette.Slider, 'infoTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n      setColor(palette.Slider, 'successTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n      setColor(palette.Slider, 'warningTrack', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.62));\n      const snackbarContentBackground = colorSpace ? colorMix(safeDarken, nativeColor ? getCssVar('palette-background-default') : palette.background.default, 0.6825) // use `0.6825` instead of `0.8` to match the contrast ratio of JS implementation\n      : safeEmphasize(palette.background.default, 0.8);\n      setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n      setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? dark.text.primary : palette.getContrastText(snackbarContentBackground)));\n      setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n      setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));\n      setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));\n      setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));\n      setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));\n      setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.62));\n      setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.62));\n      setColor(palette.Switch, 'errorDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.62));\n      setColor(palette.Switch, 'infoDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.62));\n      setColor(palette.Switch, 'successDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.62));\n      setColor(palette.Switch, 'warningDisabledColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.62));\n      setColor(palette.TableCell, 'border', colorMix(safeLighten, safeAlpha(nativeColor ? getCssVar('palette-divider') : palette.divider, 1), 0.88));\n      setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, nativeColor ? getCssVar('palette-grey-700') : palette.grey[700], 0.92));\n    }\n    if (palette.mode === 'dark') {\n      setColor(palette.Alert, 'errorColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.6));\n      setColor(palette.Alert, 'infoColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.6));\n      setColor(palette.Alert, 'successColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.6));\n      setColor(palette.Alert, 'warningColor', colorMix(safeLighten, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.6));\n      setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));\n      setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));\n      setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));\n      setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));\n      setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.dark)));\n      setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.dark)));\n      setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.dark)));\n      setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.dark)));\n      setColor(palette.Alert, 'errorStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-light') : palette.error.light, 0.9));\n      setColor(palette.Alert, 'infoStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-light') : palette.info.light, 0.9));\n      setColor(palette.Alert, 'successStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-light') : palette.success.light, 0.9));\n      setColor(palette.Alert, 'warningStandardBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.light, 0.9));\n      setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n      setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n      setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n      setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n      setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));\n      setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode\n      setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode\n      setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));\n      setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));\n      setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));\n      setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));\n      setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));\n      setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));\n      setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');\n      setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');\n      setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');\n      setColor(palette.LinearProgress, 'primaryBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.5));\n      setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.5));\n      setColor(palette.LinearProgress, 'errorBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.5));\n      setColor(palette.LinearProgress, 'infoBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.5));\n      setColor(palette.LinearProgress, 'successBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.5));\n      setColor(palette.LinearProgress, 'warningBg', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-main') : palette.warning.main, 0.5));\n      setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, nativeColor ? getCssVar('palette-text-primary') : palette.text.primary, 0.13) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);\n      setColor(palette.Slider, 'primaryTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.5));\n      setColor(palette.Slider, 'secondaryTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.5));\n      setColor(palette.Slider, 'errorTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.5));\n      setColor(palette.Slider, 'infoTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.5));\n      setColor(palette.Slider, 'successTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.5));\n      setColor(palette.Slider, 'warningTrack', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.5));\n      const snackbarContentBackground = colorSpace ? colorMix(safeLighten, nativeColor ? getCssVar('palette-background-default') : palette.background.default, 0.985) // use `0.985` instead of `0.98` to match the contrast ratio of JS implementation\n      : safeEmphasize(palette.background.default, 0.98);\n      setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n      setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? light.text.primary : palette.getContrastText(snackbarContentBackground)));\n      setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n      setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));\n      setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));\n      setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));\n      setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));\n      setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-primary-main') : palette.primary.main, 0.55));\n      setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-secondary-main') : palette.secondary.main, 0.55));\n      setColor(palette.Switch, 'errorDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-error-main') : palette.error.main, 0.55));\n      setColor(palette.Switch, 'infoDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-info-main') : palette.info.main, 0.55));\n      setColor(palette.Switch, 'successDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-success-main') : palette.success.main, 0.55));\n      setColor(palette.Switch, 'warningDisabledColor', colorMix(safeDarken, nativeColor ? getCssVar('palette-warning-light') : palette.warning.main, 0.55));\n      setColor(palette.TableCell, 'border', colorMix(safeDarken, safeAlpha(nativeColor ? getCssVar('palette-divider') : palette.divider, 1), 0.68));\n      setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, nativeColor ? getCssVar('palette-grey-700') : palette.grey[700], 0.92));\n    }\n    if (!nativeColor) {\n      setColorChannel(palette.background, 'default');\n\n      // added for consistency with the `background.default` token\n      setColorChannel(palette.background, 'paper');\n      setColorChannel(palette.common, 'background');\n      setColorChannel(palette.common, 'onBackground');\n      setColorChannel(palette, 'divider');\n    }\n    Object.keys(palette).forEach(color => {\n      const colors = palette[color];\n\n      // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.\n\n      if (color !== 'tonalOffset' && !nativeColor && colors && typeof colors === 'object') {\n        // Silent the error for custom palettes.\n        if (colors.main) {\n          setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));\n        }\n        if (colors.light) {\n          setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));\n        }\n        if (colors.dark) {\n          setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));\n        }\n        if (colors.contrastText) {\n          setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));\n        }\n        if (color === 'text') {\n          // Text colors: text.primary, text.secondary\n          setColorChannel(palette[color], 'primary');\n          setColorChannel(palette[color], 'secondary');\n        }\n        if (color === 'action') {\n          // Action colors: action.active, action.selected\n          if (colors.active) {\n            setColorChannel(palette[color], 'active');\n          }\n          if (colors.selected) {\n            setColorChannel(palette[color], 'selected');\n          }\n        }\n      }\n    });\n  });\n  theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);\n  const parserConfig = {\n    prefix: cssVarPrefix,\n    disableCssColorScheme,\n    shouldSkipGeneratingVar,\n    getSelector: defaultGetSelector(theme),\n    enableContrastVars: nativeColor\n  };\n  const {\n    vars,\n    generateThemeVars,\n    generateStyleSheets\n  } = prepareCssVars(theme, parserConfig);\n  theme.vars = vars;\n  Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {\n    theme[key] = value;\n  });\n  theme.generateThemeVars = generateThemeVars;\n  theme.generateStyleSheets = generateStyleSheets;\n  theme.generateSpacing = function generateSpacing() {\n    return createSpacing(input.spacing, createUnarySpacing(this));\n  };\n  theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);\n  theme.spacing = theme.generateSpacing();\n  theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar;\n  theme.unstable_sxConfig = {\n    ...defaultSxConfig,\n    ...input?.unstable_sxConfig\n  };\n  theme.unstable_sx = function sx(props) {\n    return styleFunctionSx({\n      sx: props,\n      theme: this\n    });\n  };\n  theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n  return theme;\n}","import createPalette from \"./createPalette.js\";\nimport createThemeWithVars from \"./createThemeWithVars.js\";\nimport createThemeNoVars from \"./createThemeNoVars.js\";\n// eslint-disable-next-line consistent-return\nfunction attachColorScheme(theme, scheme, colorScheme) {\n  if (!theme.colorSchemes) {\n    return undefined;\n  }\n  if (colorScheme) {\n    theme.colorSchemes[scheme] = {\n      ...(colorScheme !== true && colorScheme),\n      palette: createPalette({\n        ...(colorScheme === true ? {} : colorScheme.palette),\n        mode: scheme\n      }) // cast type to skip module augmentation test\n    };\n  }\n}\n\n/**\n * Generate a theme base on the options received.\n * @param options Takes an incomplete theme object and adds the missing parts.\n * @param args Deep merge the arguments with the about to be returned theme.\n * @returns A complete, ready-to-use theme object.\n */\nexport default function createTheme(options = {},\n// cast type to skip module augmentation test\n...args) {\n  const {\n    palette,\n    cssVariables = false,\n    colorSchemes: initialColorSchemes = !palette ? {\n      light: true\n    } : undefined,\n    defaultColorScheme: initialDefaultColorScheme = palette?.mode,\n    ...other\n  } = options;\n  const defaultColorSchemeInput = initialDefaultColorScheme || 'light';\n  const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];\n  const colorSchemesInput = {\n    ...initialColorSchemes,\n    ...(palette ? {\n      [defaultColorSchemeInput]: {\n        ...(typeof defaultScheme !== 'boolean' && defaultScheme),\n        palette\n      }\n    } : undefined)\n  };\n  if (cssVariables === false) {\n    if (!('colorSchemes' in options)) {\n      // Behaves exactly as v5\n      return createThemeNoVars(options, ...args);\n    }\n    let paletteOptions = palette;\n    if (!('palette' in options)) {\n      if (colorSchemesInput[defaultColorSchemeInput]) {\n        if (colorSchemesInput[defaultColorSchemeInput] !== true) {\n          paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette;\n        } else if (defaultColorSchemeInput === 'dark') {\n          // @ts-ignore to prevent the module augmentation test from failing\n          paletteOptions = {\n            mode: 'dark'\n          };\n        }\n      }\n    }\n    const theme = createThemeNoVars({\n      ...options,\n      palette: paletteOptions\n    }, ...args);\n    theme.defaultColorScheme = defaultColorSchemeInput;\n    theme.colorSchemes = colorSchemesInput;\n    if (theme.palette.mode === 'light') {\n      theme.colorSchemes.light = {\n        ...(colorSchemesInput.light !== true && colorSchemesInput.light),\n        palette: theme.palette\n      };\n      attachColorScheme(theme, 'dark', colorSchemesInput.dark);\n    }\n    if (theme.palette.mode === 'dark') {\n      theme.colorSchemes.dark = {\n        ...(colorSchemesInput.dark !== true && colorSchemesInput.dark),\n        palette: theme.palette\n      };\n      attachColorScheme(theme, 'light', colorSchemesInput.light);\n    }\n    return theme;\n  }\n  if (!palette && !('light' in colorSchemesInput) && defaultColorSchemeInput === 'light') {\n    colorSchemesInput.light = true;\n  }\n  return createThemeWithVars({\n    ...other,\n    colorSchemes: colorSchemesInput,\n    defaultColorScheme: defaultColorSchemeInput,\n    ...(typeof cssVariables !== 'boolean' && cssVariables)\n  }, ...args);\n}","import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n  const {\n    getSelector = defaultGetSelector,\n    disableCssColorScheme,\n    colorSchemeSelector: selector,\n    enableContrastVars\n  } = parserConfig;\n  // @ts-ignore - ignore components do not exist\n  const {\n    colorSchemes = {},\n    components,\n    defaultColorScheme = 'light',\n    ...otherTheme\n  } = theme;\n  const {\n    vars: rootVars,\n    css: rootCss,\n    varsWithDefaults: rootVarsWithDefaults\n  } = cssVarsParser(otherTheme, parserConfig);\n  let themeVars = rootVarsWithDefaults;\n  const colorSchemesMap = {};\n  const {\n    [defaultColorScheme]: defaultScheme,\n    ...otherColorSchemes\n  } = colorSchemes;\n  Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n    const {\n      vars,\n      css,\n      varsWithDefaults\n    } = cssVarsParser(scheme, parserConfig);\n    themeVars = deepmerge(themeVars, varsWithDefaults);\n    colorSchemesMap[key] = {\n      css,\n      vars\n    };\n  });\n  if (defaultScheme) {\n    // default color scheme vars should be merged last to set as default\n    const {\n      css,\n      vars,\n      varsWithDefaults\n    } = cssVarsParser(defaultScheme, parserConfig);\n    themeVars = deepmerge(themeVars, varsWithDefaults);\n    colorSchemesMap[defaultColorScheme] = {\n      css,\n      vars\n    };\n  }\n  function defaultGetSelector(colorScheme, cssObject) {\n    let rule = selector;\n    if (selector === 'class') {\n      rule = '.%s';\n    }\n    if (selector === 'data') {\n      rule = '[data-%s]';\n    }\n    if (selector?.startsWith('data-') && !selector.includes('%s')) {\n      // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n      rule = `[${selector}=\"%s\"]`;\n    }\n    if (colorScheme) {\n      if (rule === 'media') {\n        if (theme.defaultColorScheme === colorScheme) {\n          return ':root';\n        }\n        const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n        return {\n          [`@media (prefers-color-scheme: ${mode})`]: {\n            ':root': cssObject\n          }\n        };\n      }\n      if (rule) {\n        if (theme.defaultColorScheme === colorScheme) {\n          return `:root, ${rule.replace('%s', String(colorScheme))}`;\n        }\n        return rule.replace('%s', String(colorScheme));\n      }\n    }\n    return ':root';\n  }\n  const generateThemeVars = () => {\n    let vars = {\n      ...rootVars\n    };\n    Object.entries(colorSchemesMap).forEach(([, {\n      vars: schemeVars\n    }]) => {\n      vars = deepmerge(vars, schemeVars);\n    });\n    return vars;\n  };\n  const generateStyleSheets = () => {\n    const stylesheets = [];\n    const colorScheme = theme.defaultColorScheme || 'light';\n    function insertStyleSheet(key, css) {\n      if (Object.keys(css).length) {\n        stylesheets.push(typeof key === 'string' ? {\n          [key]: {\n            ...css\n          }\n        } : key);\n      }\n    }\n    insertStyleSheet(getSelector(undefined, {\n      ...rootCss\n    }), rootCss);\n    const {\n      [colorScheme]: defaultSchemeVal,\n      ...other\n    } = colorSchemesMap;\n    if (defaultSchemeVal) {\n      // default color scheme has to come before other color schemes\n      const {\n        css\n      } = defaultSchemeVal;\n      const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n      const finalCss = !disableCssColorScheme && cssColorSheme ? {\n        colorScheme: cssColorSheme,\n        ...css\n      } : {\n        ...css\n      };\n      insertStyleSheet(getSelector(colorScheme, {\n        ...finalCss\n      }), finalCss);\n    }\n    Object.entries(other).forEach(([key, {\n      css\n    }]) => {\n      const cssColorSheme = colorSchemes[key]?.palette?.mode;\n      const finalCss = !disableCssColorScheme && cssColorSheme ? {\n        colorScheme: cssColorSheme,\n        ...css\n      } : {\n        ...css\n      };\n      insertStyleSheet(getSelector(key, {\n        ...finalCss\n      }), finalCss);\n    });\n    if (enableContrastVars) {\n      stylesheets.push({\n        ':root': {\n          // use double underscore to indicate that these are private variables\n          '--__l-threshold': '0.7',\n          '--__l': 'clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)',\n          '--__a': 'clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)' // 0.87 is the default alpha value for black text.\n        }\n      });\n    }\n    return stylesheets;\n  };\n  return {\n    vars: themeVars,\n    generateThemeVars,\n    generateStyleSheets\n  };\n}\nexport default prepareCssVars;","/* eslint-disable import/prefer-default-export */\nexport function createGetColorSchemeSelector(selector) {\n  return function getColorSchemeSelector(colorScheme) {\n    if (selector === 'media') {\n      if (process.env.NODE_ENV !== 'production') {\n        if (colorScheme !== 'light' && colorScheme !== 'dark') {\n          console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`);\n        }\n      }\n      return `@media (prefers-color-scheme: ${colorScheme})`;\n    }\n    if (selector) {\n      if (selector.startsWith('data-') && !selector.includes('%s')) {\n        return `[${selector}=\"${colorScheme}\"] &`;\n      }\n      if (selector === 'class') {\n        return `.${colorScheme} &`;\n      }\n      if (selector === 'data') {\n        return `[data-${colorScheme}] &`;\n      }\n      return `${selector.replace('%s', colorScheme)} &`;\n    }\n    return '&';\n  };\n}","'use client';\n\nimport createTheme from \"./createTheme.js\";\nconst defaultTheme = createTheme();\nexport default defaultTheme;","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nexport default function useTheme() {\n  const theme = useThemeSystem(defaultTheme);\n  if (process.env.NODE_ENV !== 'production') {\n    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/rules-of-hooks\n    React.useDebugValue(theme);\n  }\n  return theme[THEME_ID] || theme;\n}","import slotShouldForwardProp from \"./slotShouldForwardProp.js\";\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.js\";\nimport THEME_ID from \"./identifier.js\";\nimport rootShouldForwardProp from \"./rootShouldForwardProp.js\";\nexport { default as slotShouldForwardProp } from \"./slotShouldForwardProp.js\";\nexport { default as rootShouldForwardProp } from \"./rootShouldForwardProp.js\";\nconst styled = createStyled({\n  themeId: THEME_ID,\n  defaultTheme,\n  rootShouldForwardProp\n});\nexport default styled;","'use client';\n\nimport * as React from 'react';\nimport { ThemeProvider as SystemThemeProvider } from '@mui/system';\nimport THEME_ID from \"./identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function ThemeProviderNoVars({\n  theme: themeInput,\n  ...props\n}) {\n  const scopedTheme = THEME_ID in themeInput ? themeInput[THEME_ID] : undefined;\n  return /*#__PURE__*/_jsx(SystemThemeProvider, {\n    ...props,\n    themeId: scopedTheme ? THEME_ID : undefined,\n    theme: scopedTheme || themeInput\n  });\n}","import PropTypes from 'prop-types';\nimport SystemInitColorSchemeScript from '@mui/system/InitColorSchemeScript';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const defaultConfig = {\n  attribute: 'data-mui-color-scheme',\n  colorSchemeStorageKey: 'mui-color-scheme',\n  defaultLightColorScheme: 'light',\n  defaultDarkColorScheme: 'dark',\n  modeStorageKey: 'mui-mode'\n};\n/**\n *\n * Demos:\n *\n * - [InitColorSchemeScript](https://v7.mui.com/material-ui/react-init-color-scheme-script/)\n *\n * API:\n *\n * - [InitColorSchemeScript API](https://v7.mui.com/material-ui/api/init-color-scheme-script/)\n */\nfunction InitColorSchemeScript(props) {\n  const {\n    defaultMode = 'system',\n    defaultLightColorScheme = defaultConfig.defaultLightColorScheme,\n    defaultDarkColorScheme = defaultConfig.defaultDarkColorScheme,\n    modeStorageKey = defaultConfig.modeStorageKey,\n    colorSchemeStorageKey = defaultConfig.colorSchemeStorageKey,\n    attribute: initialAttribute = defaultConfig.attribute,\n    colorSchemeNode = 'document.documentElement',\n    nonce\n  } = props;\n  return /*#__PURE__*/_jsx(SystemInitColorSchemeScript, {\n    defaultMode: defaultMode,\n    defaultLightColorScheme: defaultLightColorScheme,\n    defaultDarkColorScheme: defaultDarkColorScheme,\n    modeStorageKey: modeStorageKey,\n    colorSchemeStorageKey: colorSchemeStorageKey,\n    attribute: initialAttribute,\n    colorSchemeNode: colorSchemeNode,\n    nonce: nonce\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? InitColorSchemeScript.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   * DOM attribute for applying a color scheme.\n   * @default 'data-mui-color-scheme'\n   * @example '.mode-%s' // for class based color scheme\n   * @example '[data-mode-%s]' // for data-attribute without '='\n   */\n  attribute: PropTypes.string,\n  /**\n   * The node (provided as string) used to attach the color-scheme attribute.\n   * @default 'document.documentElement'\n   */\n  colorSchemeNode: PropTypes.string,\n  /**\n   * localStorage key used to store `colorScheme`.\n   * @default 'mui-color-scheme'\n   */\n  colorSchemeStorageKey: PropTypes.string,\n  /**\n   * The default color scheme to be used in dark mode.\n   * @default 'dark'\n   */\n  defaultDarkColorScheme: PropTypes.string,\n  /**\n   * The default color scheme to be used in light mode.\n   * @default 'light'\n   */\n  defaultLightColorScheme: PropTypes.string,\n  /**\n   * The default mode when the storage is empty (user's first visit).\n   * @default 'system'\n   */\n  defaultMode: PropTypes.oneOf(['dark', 'light', 'system']),\n  /**\n   * localStorage key used to store `mode`.\n   * @default 'mui-mode'\n   */\n  modeStorageKey: PropTypes.string,\n  /**\n   * Nonce string to pass to the inline script for CSP headers.\n   */\n  nonce: PropTypes.string\n} : void 0;\nexport default InitColorSchemeScript;","'use client';\n\nimport styleFunctionSx from '@mui/system/styleFunctionSx';\nimport { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';\nimport createTheme from \"./createTheme.js\";\nimport createTypography from \"./createTypography.js\";\nimport THEME_ID from \"./identifier.js\";\nimport { defaultConfig } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst {\n  CssVarsProvider: InternalCssVarsProvider,\n  useColorScheme,\n  getInitColorSchemeScript: deprecatedGetInitColorSchemeScript\n} = createCssVarsProvider({\n  themeId: THEME_ID,\n  // @ts-ignore ignore module augmentation tests\n  theme: () => createTheme({\n    cssVariables: true\n  }),\n  colorSchemeStorageKey: defaultConfig.colorSchemeStorageKey,\n  modeStorageKey: defaultConfig.modeStorageKey,\n  defaultColorScheme: {\n    light: defaultConfig.defaultLightColorScheme,\n    dark: defaultConfig.defaultDarkColorScheme\n  },\n  resolveTheme: theme => {\n    const newTheme = {\n      ...theme,\n      typography: createTypography(theme.palette, theme.typography)\n    };\n    newTheme.unstable_sx = function sx(props) {\n      return styleFunctionSx({\n        sx: props,\n        theme: this\n      });\n    };\n    return newTheme;\n  }\n});\nlet warnedOnce = false;\n\n// TODO: remove in v7\n// eslint-disable-next-line @typescript-eslint/naming-convention\nfunction Experimental_CssVarsProvider(props) {\n  if (process.env.NODE_ENV !== 'production') {\n    if (!warnedOnce) {\n      console.warn(['MUI: The Experimental_CssVarsProvider component has been ported into ThemeProvider.', '', \"You should use `import { ThemeProvider } from '@mui/material/styles'` instead.\", 'For more details, check out https://mui.com/material-ui/customization/css-theme-variables/usage/'].join('\\n'));\n      warnedOnce = true;\n    }\n  }\n  return /*#__PURE__*/_jsx(InternalCssVarsProvider, {\n    ...props\n  });\n}\nlet warnedInitScriptOnce = false;\n\n// TODO: remove in v7\nconst getInitColorSchemeScript = params => {\n  if (!warnedInitScriptOnce) {\n    console.warn(['MUI: The getInitColorSchemeScript function has been deprecated.', '', \"You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`\", 'and replace the function call with `<InitColorSchemeScript />` instead.'].join('\\n'));\n    warnedInitScriptOnce = true;\n  }\n  return deprecatedGetInitColorSchemeScript(params);\n};\n\n/**\n * TODO: remove this export in v7\n * @deprecated\n * The `CssVarsProvider` component has been deprecated and ported into `ThemeProvider`.\n *\n * You should use `ThemeProvider` and `createTheme()` instead:\n *\n * ```diff\n * - import { CssVarsProvider, extendTheme } from '@mui/material/styles';\n * + import { ThemeProvider, createTheme } from '@mui/material/styles';\n *\n * - const theme = extendTheme();\n * + const theme = createTheme({\n * +   cssVariables: true,\n * +   colorSchemes: { light: true, dark: true },\n * + });\n *\n * - <CssVarsProvider theme={theme}>\n * + <ThemeProvider theme={theme}>\n * ```\n *\n * To see the full documentation, check out https://mui.com/material-ui/customization/css-theme-variables/usage/.\n */\nexport const CssVarsProvider = InternalCssVarsProvider;\nexport { useColorScheme, getInitColorSchemeScript, Experimental_CssVarsProvider };","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { GlobalStyles } from '@mui/styled-engine';\nimport { useTheme as muiUseTheme } from '@mui/private-theming';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport ThemeProvider from \"../ThemeProvider/index.js\";\nimport InitColorSchemeScript, { DEFAULT_COLOR_SCHEME_STORAGE_KEY, DEFAULT_MODE_STORAGE_KEY } from \"../InitColorSchemeScript/InitColorSchemeScript.js\";\nimport useCurrentColorScheme from \"./useCurrentColorScheme.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';\nexport default function createCssVarsProvider(options) {\n  const {\n    themeId,\n    /**\n     * This `theme` object needs to follow a certain structure to\n     * be used correctly by the finel `CssVarsProvider`. It should have a\n     * `colorSchemes` key with the light and dark (and any other) palette.\n     * It should also ideally have a vars object created using `prepareCssVars`.\n     */\n    theme: defaultTheme = {},\n    modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,\n    colorSchemeStorageKey: defaultColorSchemeStorageKey = DEFAULT_COLOR_SCHEME_STORAGE_KEY,\n    disableTransitionOnChange: designSystemTransitionOnChange = false,\n    defaultColorScheme,\n    resolveTheme\n  } = options;\n  const defaultContext = {\n    allColorSchemes: [],\n    colorScheme: undefined,\n    darkColorScheme: undefined,\n    lightColorScheme: undefined,\n    mode: undefined,\n    setColorScheme: () => {},\n    setMode: () => {},\n    systemMode: undefined\n  };\n  const ColorSchemeContext = /*#__PURE__*/React.createContext(undefined);\n  if (process.env.NODE_ENV !== 'production') {\n    ColorSchemeContext.displayName = 'ColorSchemeContext';\n  }\n  const useColorScheme = () => React.useContext(ColorSchemeContext) || defaultContext;\n  const defaultColorSchemes = {};\n  const defaultComponents = {};\n  function CssVarsProvider(props) {\n    const {\n      children,\n      theme: themeProp,\n      modeStorageKey = defaultModeStorageKey,\n      colorSchemeStorageKey = defaultColorSchemeStorageKey,\n      disableTransitionOnChange = designSystemTransitionOnChange,\n      storageManager,\n      storageWindow = typeof window === 'undefined' ? undefined : window,\n      documentNode = typeof document === 'undefined' ? undefined : document,\n      colorSchemeNode = typeof document === 'undefined' ? undefined : document.documentElement,\n      disableNestedContext = false,\n      disableStyleSheetGeneration = false,\n      defaultMode: initialMode = 'system',\n      forceThemeRerender = false,\n      noSsr\n    } = props;\n    const hasMounted = React.useRef(false);\n    const upperTheme = muiUseTheme();\n    const ctx = React.useContext(ColorSchemeContext);\n    const nested = !!ctx && !disableNestedContext;\n    const initialTheme = React.useMemo(() => {\n      if (themeProp) {\n        return themeProp;\n      }\n      return typeof defaultTheme === 'function' ? defaultTheme() : defaultTheme;\n    }, [themeProp]);\n    const scopedTheme = initialTheme[themeId];\n    const restThemeProp = scopedTheme || initialTheme;\n    const {\n      colorSchemes = defaultColorSchemes,\n      components = defaultComponents,\n      cssVarPrefix\n    } = restThemeProp;\n    const joinedColorSchemes = Object.keys(colorSchemes).filter(k => !!colorSchemes[k]).join(',');\n    const allColorSchemes = React.useMemo(() => joinedColorSchemes.split(','), [joinedColorSchemes]);\n    const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n    const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n    const defaultMode = colorSchemes[defaultLightColorScheme] && colorSchemes[defaultDarkColorScheme] ? initialMode : colorSchemes[restThemeProp.defaultColorScheme]?.palette?.mode || restThemeProp.palette?.mode;\n\n    // 1. Get the data about the `mode`, `colorScheme`, and setter functions.\n    const {\n      mode: stateMode,\n      setMode,\n      systemMode,\n      lightColorScheme,\n      darkColorScheme,\n      colorScheme: stateColorScheme,\n      setColorScheme\n    } = useCurrentColorScheme({\n      supportedColorSchemes: allColorSchemes,\n      defaultLightColorScheme,\n      defaultDarkColorScheme,\n      modeStorageKey,\n      colorSchemeStorageKey,\n      defaultMode,\n      storageManager,\n      storageWindow,\n      noSsr\n    });\n    let mode = stateMode;\n    let colorScheme = stateColorScheme;\n    if (nested) {\n      mode = ctx.mode;\n      colorScheme = ctx.colorScheme;\n    }\n    if (process.env.NODE_ENV !== 'production') {\n      if (forceThemeRerender && !restThemeProp.vars) {\n        console.warn(['MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.', 'Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution.'].join('\\n'));\n      }\n    }\n\n    // `colorScheme` is undefined on the server and hydration phase\n    let calculatedColorScheme = colorScheme || restThemeProp.defaultColorScheme;\n    if (restThemeProp.vars && !forceThemeRerender) {\n      calculatedColorScheme = restThemeProp.defaultColorScheme;\n    }\n    const memoTheme = React.useMemo(() => {\n      // 2. get the `vars` object that refers to the CSS custom properties\n      const themeVars = restThemeProp.generateThemeVars?.() || restThemeProp.vars;\n\n      // 3. Start composing the theme object\n      const theme = {\n        ...restThemeProp,\n        components,\n        colorSchemes,\n        cssVarPrefix,\n        vars: themeVars\n      };\n      if (typeof theme.generateSpacing === 'function') {\n        theme.spacing = theme.generateSpacing();\n      }\n\n      // 4. Resolve the color scheme and merge it to the theme\n      if (calculatedColorScheme) {\n        const scheme = colorSchemes[calculatedColorScheme];\n        if (scheme && typeof scheme === 'object') {\n          // 4.1 Merge the selected color scheme to the theme\n          Object.keys(scheme).forEach(schemeKey => {\n            if (scheme[schemeKey] && typeof scheme[schemeKey] === 'object') {\n              // shallow merge the 1st level structure of the theme.\n              theme[schemeKey] = {\n                ...theme[schemeKey],\n                ...scheme[schemeKey]\n              };\n            } else {\n              theme[schemeKey] = scheme[schemeKey];\n            }\n          });\n        }\n      }\n      return resolveTheme ? resolveTheme(theme) : theme;\n    }, [restThemeProp, calculatedColorScheme, components, colorSchemes, cssVarPrefix]);\n\n    // 5. Declaring effects\n    // 5.1 Updates the selector value to use the current color scheme which tells CSS to use the proper stylesheet.\n    const colorSchemeSelector = restThemeProp.colorSchemeSelector;\n    useEnhancedEffect(() => {\n      if (colorScheme && colorSchemeNode && colorSchemeSelector && colorSchemeSelector !== 'media') {\n        const selector = colorSchemeSelector;\n        let rule = colorSchemeSelector;\n        if (selector === 'class') {\n          rule = `.%s`;\n        }\n        if (selector === 'data') {\n          rule = `[data-%s]`;\n        }\n        if (selector?.startsWith('data-') && !selector.includes('%s')) {\n          // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n          rule = `[${selector}=\"%s\"]`;\n        }\n        if (rule.startsWith('.')) {\n          colorSchemeNode.classList.remove(...allColorSchemes.map(scheme => rule.substring(1).replace('%s', scheme)));\n          colorSchemeNode.classList.add(rule.substring(1).replace('%s', colorScheme));\n        } else {\n          const matches = rule.replace('%s', colorScheme).match(/\\[([^\\]]+)\\]/);\n          if (matches) {\n            const [attr, value] = matches[1].split('=');\n            if (!value) {\n              // for attributes like `data-theme-dark`, `data-theme-light`\n              // remove all the existing data attributes before setting the new one\n              allColorSchemes.forEach(scheme => {\n                colorSchemeNode.removeAttribute(attr.replace(colorScheme, scheme));\n              });\n            }\n            colorSchemeNode.setAttribute(attr, value ? value.replace(/\"|'/g, '') : '');\n          } else {\n            colorSchemeNode.setAttribute(rule, colorScheme);\n          }\n        }\n      }\n    }, [colorScheme, colorSchemeSelector, colorSchemeNode, allColorSchemes]);\n\n    // 5.2 Remove the CSS transition when color scheme changes to create instant experience.\n    // credit: https://github.com/pacocoursey/next-themes/blob/b5c2bad50de2d61ad7b52a9c5cdc801a78507d7a/index.tsx#L313\n    React.useEffect(() => {\n      let timer;\n      if (disableTransitionOnChange && hasMounted.current && documentNode) {\n        const css = documentNode.createElement('style');\n        css.appendChild(documentNode.createTextNode(DISABLE_CSS_TRANSITION));\n        documentNode.head.appendChild(css);\n\n        // Force browser repaint\n        (() => window.getComputedStyle(documentNode.body))();\n        timer = setTimeout(() => {\n          documentNode.head.removeChild(css);\n        }, 1);\n      }\n      return () => {\n        clearTimeout(timer);\n      };\n    }, [colorScheme, disableTransitionOnChange, documentNode]);\n    React.useEffect(() => {\n      hasMounted.current = true;\n      return () => {\n        hasMounted.current = false;\n      };\n    }, []);\n    const contextValue = React.useMemo(() => ({\n      allColorSchemes,\n      colorScheme,\n      darkColorScheme,\n      lightColorScheme,\n      mode,\n      setColorScheme,\n      setMode: process.env.NODE_ENV === 'production' ? setMode : newMode => {\n        if (memoTheme.colorSchemeSelector === 'media') {\n          // #host-reference\n          console.error(['MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).', 'To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.', 'To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually'].join('\\n'));\n        }\n        setMode(newMode);\n      },\n      systemMode\n    }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode, memoTheme.colorSchemeSelector]);\n    let shouldGenerateStyleSheet = true;\n    if (disableStyleSheetGeneration || restThemeProp.cssVariables === false || nested && upperTheme?.cssVarPrefix === cssVarPrefix) {\n      shouldGenerateStyleSheet = false;\n    }\n    const element = /*#__PURE__*/_jsxs(React.Fragment, {\n      children: [/*#__PURE__*/_jsx(ThemeProvider, {\n        themeId: scopedTheme ? themeId : undefined,\n        theme: memoTheme,\n        children: children\n      }), shouldGenerateStyleSheet && /*#__PURE__*/_jsx(GlobalStyles, {\n        styles: memoTheme.generateStyleSheets?.() || []\n      })]\n    });\n    if (nested) {\n      return element;\n    }\n    return /*#__PURE__*/_jsx(ColorSchemeContext.Provider, {\n      value: contextValue,\n      children: element\n    });\n  }\n  process.env.NODE_ENV !== \"production\" ? CssVarsProvider.propTypes = {\n    /**\n     * The component tree.\n     */\n    children: PropTypes.node,\n    /**\n     * The node used to attach the color-scheme attribute\n     */\n    colorSchemeNode: PropTypes.any,\n    /**\n     * localStorage key used to store `colorScheme`\n     */\n    colorSchemeStorageKey: PropTypes.string,\n    /**\n     * The default mode when the storage is empty,\n     * require the theme to have `colorSchemes` with light and dark.\n     */\n    defaultMode: PropTypes.string,\n    /**\n     * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`.\n     */\n    disableNestedContext: PropTypes.bool,\n    /**\n     * If `true`, the style sheet won't be generated.\n     *\n     * This is useful for controlling nested CssVarsProvider behavior.\n     */\n    disableStyleSheetGeneration: PropTypes.bool,\n    /**\n     * Disable CSS transitions when switching between modes or color schemes.\n     */\n    disableTransitionOnChange: PropTypes.bool,\n    /**\n     * The document to attach the attribute to.\n     */\n    documentNode: PropTypes.any,\n    /**\n     * If `true`, theme values are recalculated when the mode changes.\n     */\n    forceThemeRerender: PropTypes.bool,\n    /**\n     * The key in the local storage used to store current color scheme.\n     */\n    modeStorageKey: PropTypes.string,\n    /**\n     * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration.\n     * You should use this option in conjunction with `InitColorSchemeScript` component.\n     */\n    noSsr: PropTypes.bool,\n    /**\n     * The storage manager to be used for storing the mode and color scheme\n     * @default using `window.localStorage`\n     */\n    storageManager: PropTypes.func,\n    /**\n     * The window that attaches the 'storage' event listener.\n     * @default window\n     */\n    storageWindow: PropTypes.any,\n    /**\n     * The calculated theme object that will be passed through context.\n     */\n    theme: PropTypes.object\n  } : void 0;\n  const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;\n  const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;\n  const getInitColorSchemeScript = params => InitColorSchemeScript({\n    colorSchemeStorageKey: defaultColorSchemeStorageKey,\n    defaultLightColorScheme,\n    defaultDarkColorScheme,\n    modeStorageKey: defaultModeStorageKey,\n    ...params\n  });\n  return {\n    CssVarsProvider,\n    useColorScheme,\n    getInitColorSchemeScript\n  };\n}","'use client';\n\nimport * as React from 'react';\nimport ThemeProviderNoVars from \"./ThemeProviderNoVars.js\";\nimport { CssVarsProvider } from \"./ThemeProviderWithVars.js\";\nimport THEME_ID from \"./identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function ThemeProvider({\n  theme,\n  ...props\n}) {\n  const noVarsTheme = React.useMemo(() => {\n    if (typeof theme === 'function') {\n      return theme;\n    }\n    const muiTheme = THEME_ID in theme ? theme[THEME_ID] : theme;\n    if (!('colorSchemes' in muiTheme)) {\n      if (!('vars' in muiTheme)) {\n        // For non-CSS variables themes, set `vars` to null to prevent theme inheritance from the upper theme.\n        // The example use case is the docs demo that uses ThemeProvider to customize the theme while the upper theme is using CSS variables.\n        return {\n          ...theme,\n          vars: null\n        };\n      }\n      return theme;\n    }\n    return null;\n  }, [theme]);\n  if (noVarsTheme) {\n    return /*#__PURE__*/_jsx(ThemeProviderNoVars, {\n      theme: noVarsTheme,\n      ...props\n    });\n  }\n  return /*#__PURE__*/_jsx(CssVarsProvider, {\n    theme: theme,\n    ...props\n  });\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}","'use client';\n\nimport PropTypes from 'prop-types';\nimport { GlobalStyles as SystemGlobalStyles } from '@mui/system';\nimport defaultTheme from \"../styles/defaultTheme.js\";\nimport THEME_ID from \"../styles/identifier.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GlobalStyles(props) {\n  return /*#__PURE__*/_jsx(SystemGlobalStyles, {\n    ...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;","import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;","'use client';\n\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, {\n    ...props\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.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n  return useSystemDefaultProps(params);\n}","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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.js\";\nimport { jsx as _jsx, 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})(memoTheme(({\n  theme\n}) => ({\n  userSelect: 'none',\n  width: '1em',\n  height: '1em',\n  display: 'inline-block',\n  flexShrink: 0,\n  transition: theme.transitions?.create?.('fill', {\n    duration: (theme.vars ?? theme).transitions?.duration?.shorter\n  }),\n  variants: [{\n    props: props => !props.hasSvgAsChild,\n    style: {\n      // the <svg> will define the property that has `currentColor`\n      // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n      fill: 'currentColor'\n    }\n  }, {\n    props: {\n      fontSize: 'inherit'\n    },\n    style: {\n      fontSize: 'inherit'\n    }\n  }, {\n    props: {\n      fontSize: 'small'\n    },\n    style: {\n      fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n    }\n  }, {\n    props: {\n      fontSize: 'medium'\n    },\n    style: {\n      fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n    }\n  }, {\n    props: {\n      fontSize: 'large'\n    },\n    style: {\n      fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n    }\n  },\n  // TODO v5 deprecate color prop, v6 remove for sx\n  ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      color: (theme.vars ?? theme).palette?.[color]?.main\n    }\n  })), {\n    props: {\n      color: 'action'\n    },\n    style: {\n      color: (theme.vars ?? theme).palette?.action?.active\n    }\n  }, {\n    props: {\n      color: 'disabled'\n    },\n    style: {\n      color: (theme.vars ?? theme).palette?.action?.disabled\n    }\n  }, {\n    props: {\n      color: 'inherit'\n    },\n    style: {\n      color: undefined\n    }\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    ...other\n  } = props;\n  const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n  const ownerState = {\n    ...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, {\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,\n    ...other,\n    ...(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/Reference/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 * as React from 'react';\nimport SvgIcon from \"../SvgIcon/index.js\";\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, {\n      \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\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}","// 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}","export default function ownerDocument(node) {\n  return node && node.ownerDocument || document;\n}","import ownerDocument from \"../ownerDocument/index.js\";\nexport default function ownerWindow(node) {\n  const doc = ownerDocument(node);\n  return doc.defaultView || window;\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\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled(props) {\n  const {\n    controlled,\n    default: defaultProp,\n    name,\n    state = 'value'\n  } = props;\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 && JSON.stringify(defaultProp) !== JSON.stringify(defaultValue)) {\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\n  // TODO: provide overloads for the useControlled function to account for the case where either\n  // controlled or default is not undefined.\n  // In that case the return type should be [T, React.Dispatch<React.SetStateAction<T>>]\n  // otherwise it should be [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>]\n  return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from \"../useEnhancedEffect/index.js\";\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';\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n *\n * ```tsx\n * const rootRef = React.useRef<Instance>(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n *   <Root {...props} ref={refFork} />\n * );\n * ```\n *\n * @param {Array<React.Ref<Instance> | undefined>} refs The ref array.\n * @returns {React.RefCallback<Instance> | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n  const cleanupRef = React.useRef(undefined);\n  const refEffect = React.useCallback(instance => {\n    const cleanups = refs.map(ref => {\n      if (ref == null) {\n        return null;\n      }\n      if (typeof ref === 'function') {\n        const refCallback = ref;\n        const refCleanup = refCallback(instance);\n        return typeof refCleanup === 'function' ? refCleanup : () => {\n          refCallback(null);\n        };\n      }\n      ref.current = instance;\n      return () => {\n        ref.current = null;\n      };\n    });\n    return () => {\n      cleanups.forEach(refCleanup => refCleanup?.());\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n  return React.useMemo(() => {\n    if (refs.every(ref => ref == null)) {\n      return null;\n    }\n    return value => {\n      if (cleanupRef.current) {\n        cleanupRef.current();\n        cleanupRef.current = undefined;\n      }\n      if (value != null) {\n        cleanupRef.current = refEffect(value);\n      }\n    };\n    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, refs);\n}","import clsx from 'clsx';\n\n// Brought from [Base UI](https://github.com/mui/base-ui/blob/master/packages/react/src/merge-props/mergeProps.ts#L119)\n// Use it directly from Base UI once it's a package dependency.\nfunction isEventHandler(key, value) {\n  // This approach is more efficient than using a regex.\n  const thirdCharCode = key.charCodeAt(2);\n  return key[0] === 'o' && key[1] === 'n' && thirdCharCode >= 65 /* A */ && thirdCharCode <= 90 /* Z */ && typeof value === 'function';\n}\nexport default function mergeSlotProps(externalSlotProps, defaultSlotProps) {\n  if (!externalSlotProps) {\n    return defaultSlotProps;\n  }\n  function extractHandlers(externalSlotPropsValue, defaultSlotPropsValue) {\n    const handlers = {};\n    Object.keys(defaultSlotPropsValue).forEach(key => {\n      if (isEventHandler(key, defaultSlotPropsValue[key]) && typeof externalSlotPropsValue[key] === 'function') {\n        // only compose the handlers if both default and external slot props match the event handler\n        handlers[key] = (...args) => {\n          externalSlotPropsValue[key](...args);\n          defaultSlotPropsValue[key](...args);\n        };\n      }\n    });\n    return handlers;\n  }\n  if (typeof externalSlotProps === 'function' || typeof defaultSlotProps === 'function') {\n    return ownerState => {\n      const defaultSlotPropsValue = typeof defaultSlotProps === 'function' ? defaultSlotProps(ownerState) : defaultSlotProps;\n      const externalSlotPropsValue = typeof externalSlotProps === 'function' ? externalSlotProps({\n        ...ownerState,\n        ...defaultSlotPropsValue\n      }) : externalSlotProps;\n      const className = clsx(ownerState?.className, defaultSlotPropsValue?.className, externalSlotPropsValue?.className);\n      const handlers = extractHandlers(externalSlotPropsValue, defaultSlotPropsValue);\n      return {\n        ...defaultSlotPropsValue,\n        ...externalSlotPropsValue,\n        ...handlers,\n        ...(!!className && {\n          className\n        }),\n        ...(defaultSlotPropsValue?.style && externalSlotPropsValue?.style && {\n          style: {\n            ...defaultSlotPropsValue.style,\n            ...externalSlotPropsValue.style\n          }\n        }),\n        ...(defaultSlotPropsValue?.sx && externalSlotPropsValue?.sx && {\n          sx: [...(Array.isArray(defaultSlotPropsValue.sx) ? defaultSlotPropsValue.sx : [defaultSlotPropsValue.sx]), ...(Array.isArray(externalSlotPropsValue.sx) ? externalSlotPropsValue.sx : [externalSlotPropsValue.sx])]\n        })\n      };\n    };\n  }\n  const typedDefaultSlotProps = defaultSlotProps;\n  const handlers = extractHandlers(externalSlotProps, typedDefaultSlotProps);\n  const className = clsx(typedDefaultSlotProps?.className, externalSlotProps?.className);\n  return {\n    ...defaultSlotProps,\n    ...externalSlotProps,\n    ...handlers,\n    ...(!!className && {\n      className\n    }),\n    ...(typedDefaultSlotProps?.style && externalSlotProps?.style && {\n      style: {\n        ...typedDefaultSlotProps.style,\n        ...externalSlotProps.style\n      }\n    }),\n    ...(typedDefaultSlotProps?.sx && externalSlotProps?.sx && {\n      sx: [...(Array.isArray(typedDefaultSlotProps.sx) ? typedDefaultSlotProps.sx : [typedDefaultSlotProps.sx]), ...(Array.isArray(externalSlotProps.sx) ? externalSlotProps.sx : [externalSlotProps.sx])]\n    })\n  };\n}","/**\n * Returns a boolean indicating if the event's target has :focus-visible\n */\nexport default function isFocusVisible(element) {\n  try {\n    return element.matches(':focus-visible');\n  } catch (error) {\n    // Do not warn on jsdom tests, otherwise all tests that rely on focus have to be skipped\n    // Tests that rely on `:focus-visible` will still have to be skipped in jsdom\n    if (process.env.NODE_ENV !== 'production' && !window.navigator.userAgent.includes('jsdom')) {\n      console.warn(['MUI: The `:focus-visible` pseudo class is not supported in this browser.', 'Some components rely on this feature to work properly.'].join('\\n'));\n    }\n  }\n  return false;\n}","'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';\nimport useLazyRef from '@mui/utils/useLazyRef';\n/**\n * Lazy initialization container for the Ripple instance. This improves\n * performance by delaying mounting the ripple until it's needed.\n */\nexport class LazyRipple {\n  /** React ref to the ripple instance */\n\n  /** If the ripple component should be mounted */\n\n  /** Promise that resolves when the ripple component is mounted */\n\n  /** If the ripple component has been mounted */\n\n  /** React state hook setter */\n\n  static create() {\n    return new LazyRipple();\n  }\n  static use() {\n    /* eslint-disable */\n    const ripple = useLazyRef(LazyRipple.create).current;\n    const [shouldMount, setShouldMount] = React.useState(false);\n    ripple.shouldMount = shouldMount;\n    ripple.setShouldMount = setShouldMount;\n    React.useEffect(ripple.mountEffect, [shouldMount]);\n    /* eslint-enable */\n\n    return ripple;\n  }\n  constructor() {\n    this.ref = {\n      current: null\n    };\n    this.mounted = null;\n    this.didMount = false;\n    this.shouldMount = false;\n    this.setShouldMount = null;\n  }\n  mount() {\n    if (!this.mounted) {\n      this.mounted = createControlledPromise();\n      this.shouldMount = true;\n      this.setShouldMount(this.shouldMount);\n    }\n    return this.mounted;\n  }\n  mountEffect = () => {\n    if (this.shouldMount && !this.didMount) {\n      if (this.ref.current !== null) {\n        this.didMount = true;\n        this.mounted.resolve();\n      }\n    }\n  };\n\n  /* Ripple API */\n\n  start(...args) {\n    this.mount().then(() => this.ref.current?.start(...args));\n  }\n  stop(...args) {\n    this.mount().then(() => this.ref.current?.stop(...args));\n  }\n  pulsate(...args) {\n    this.mount().then(() => this.ref.current?.pulsate(...args));\n  }\n}\nexport default function useLazyRipple() {\n  return LazyRipple.use();\n}\nfunction createControlledPromise() {\n  let resolve;\n  let reject;\n  const p = new Promise((resolveFn, rejectFn) => {\n    resolve = resolveFn;\n    reject = rejectFn;\n  });\n  p.resolve = resolve;\n  p.reject = reject;\n  return p;\n}","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 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 };","import React from 'react';\nexport default React.createContext(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};","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 };","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';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n  // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\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.js\";\nimport useOnMount from \"../useOnMount/useOnMount.js\";\nexport class Timeout {\n  static create() {\n    return new Timeout();\n  }\n  currentId = null;\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  clear = () => {\n    if (this.currentId !== null) {\n      clearTimeout(this.currentId);\n      this.currentId = null;\n    }\n  };\n  disposeEffect = () => {\n    return this.clear;\n  };\n}\nexport default function useTimeout() {\n  const timeout = useLazyRef(Timeout.create).current;\n  useOnMount(timeout.disposeEffect);\n  return timeout;\n}","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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\nimport useTimeout from '@mui/utils/useTimeout';\nimport { keyframes, styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Ripple from \"./Ripple.js\";\nimport touchRippleClasses from \"./touchRippleClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst DURATION = 550;\nexport const DELAY_RIPPLE = 80;\nconst enterKeyframe = keyframes`\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`\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n`;\nconst pulsateKeyframe = keyframes`\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})`\n  opacity: 0;\n  position: absolute;\n\n  &.${touchRippleClasses.rippleVisible} {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ${enterKeyframe};\n    animation-duration: ${DURATION}ms;\n    animation-timing-function: ${({\n  theme\n}) => theme.transitions.easing.easeInOut};\n  }\n\n  &.${touchRippleClasses.ripplePulsate} {\n    animation-duration: ${({\n  theme\n}) => theme.transitions.duration.shorter}ms;\n  }\n\n  & .${touchRippleClasses.child} {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & .${touchRippleClasses.childLeaving} {\n    opacity: 0;\n    animation-name: ${exitKeyframe};\n    animation-duration: ${DURATION}ms;\n    animation-timing-function: ${({\n  theme\n}) => theme.transitions.easing.easeInOut};\n  }\n\n  & .${touchRippleClasses.childPulsate} {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ${pulsateKeyframe};\n    animation-duration: 2500ms;\n    animation-timing-function: ${({\n  theme\n}) => theme.transitions.easing.easeInOut};\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n`;\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    ...other\n  } = props;\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?.type === 'mousedown' && ignoringMouseDown.current) {\n      ignoringMouseDown.current = false;\n      return;\n    }\n    if (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    // Touch devices\n    if (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?.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, {\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 /* remove-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;","'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 /* remove-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 getButtonBaseUtilityClass(slot) {\n  return generateUtilityClass('MuiButtonBase', slot);\n}\nconst buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);\nexport default buttonBaseClasses;","'use client';\n\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 isFocusVisible from '@mui/utils/isFocusVisible';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEventCallback from \"../utils/useEventCallback.js\";\nimport useLazyRipple from \"../useLazyRipple/index.js\";\nimport TouchRipple from \"./TouchRipple.js\";\nimport buttonBaseClasses, { getButtonBaseUtilityClass } from \"./buttonBaseClasses.js\";\nimport { jsx as _jsx, 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})({\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    focusVisibleClassName,\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    ...other\n  } = props;\n  const buttonRef = React.useRef(null);\n  const ripple = useLazyRipple();\n  const handleRippleRef = useForkRef(ripple.ref, touchRippleRef);\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 enableTouchRipple = ripple.shouldMount && !disableRipple && !disabled;\n  React.useEffect(() => {\n    if (focusVisible && focusRipple && !disableRipple) {\n      ripple.pulsate();\n    }\n  }, [disableRipple, focusRipple, focusVisible, ripple]);\n  const handleMouseDown = useRippleHandler(ripple, 'start', onMouseDown, disableTouchRipple);\n  const handleContextMenu = useRippleHandler(ripple, 'stop', onContextMenu, disableTouchRipple);\n  const handleDragLeave = useRippleHandler(ripple, 'stop', onDragLeave, disableTouchRipple);\n  const handleMouseUp = useRippleHandler(ripple, 'stop', onMouseUp, disableTouchRipple);\n  const handleMouseLeave = useRippleHandler(ripple, 'stop', event => {\n    if (focusVisible) {\n      event.preventDefault();\n    }\n    if (onMouseLeave) {\n      onMouseLeave(event);\n    }\n  }, disableTouchRipple);\n  const handleTouchStart = useRippleHandler(ripple, 'start', onTouchStart, disableTouchRipple);\n  const handleTouchEnd = useRippleHandler(ripple, 'stop', onTouchEnd, disableTouchRipple);\n  const handleTouchMove = useRippleHandler(ripple, 'stop', onTouchMove, disableTouchRipple);\n  const handleBlur = useRippleHandler(ripple, 'stop', event => {\n    if (!isFocusVisible(event.target)) {\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    if (isFocusVisible(event.target)) {\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    if (!button) {\n      return component && component !== 'button';\n    }\n    if (button.tagName === 'BUTTON') {\n      return false;\n    }\n    return !(button.tagName === 'A' && button.href);\n  };\n  const handleKeyDown = useEventCallback(event => {\n    // Check if key is already down to avoid repeats being counted as multiple activations\n    if (focusRipple && !event.repeat && focusVisible && event.key === ' ') {\n      ripple.stop(event, () => {\n        ripple.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 === ' ' && focusVisible && !event.defaultPrevented) {\n      ripple.stop(event, () => {\n        ripple.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 && !disabled) {\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    const hasFormAttributes = !!other.formAction;\n    // ButtonBase was defaulting to type=\"button\" when no type prop was provided, which prevented form submission and broke formAction functionality.\n    // The fix checks for form-related attributes and skips the default type to allow the browser's natural submit behavior (type=\"submit\").\n    buttonProps.type = type === undefined && !hasFormAttributes ? '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, buttonRef);\n  const ownerState = {\n    ...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, {\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,\n    ...other,\n    children: [children, enableTouchRipple ? /*#__PURE__*/_jsx(TouchRipple, {\n      ref: handleRippleRef,\n      center: centerRipple,\n      ...TouchRippleProps\n    }) : null]\n  });\n});\nfunction useRippleHandler(ripple, rippleAction, eventCallback, skipRippleAction = false) {\n  return useEventCallback(event => {\n    if (eventCallback) {\n      eventCallback(event);\n    }\n    if (!skipRippleAction) {\n      ripple[rippleAction](event);\n    }\n    return true;\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  formAction: PropTypes.oneOfType([PropTypes.func, 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;","/**\n * Type guard to check if the object has a \"main\" property of type string.\n *\n * @param obj - the object to check\n * @returns boolean\n */\nfunction hasCorrectMainProperty(obj) {\n  return typeof obj.main === 'string';\n}\n/**\n * Checks if the object conforms to the SimplePaletteColorOptions type.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param obj - The object to check\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns boolean\n */\nfunction checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {\n  if (!hasCorrectMainProperty(obj)) {\n    return false;\n  }\n  for (const value of additionalPropertiesToCheck) {\n    if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {\n      return false;\n    }\n  }\n  return true;\n}\n\n/**\n * Creates a filter function used to filter simple palette color options.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns ([, value]: [any, PaletteColorOptions]) => boolean\n */\nexport default function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {\n  return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCircularProgressUtilityClass(slot) {\n  return generateUtilityClass('MuiCircularProgress', slot);\n}\nconst circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'track', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);\nexport default circularProgressClasses;","'use client';\n\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 { keyframes, css, styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { getCircularProgressUtilityClass } from \"./circularProgressClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SIZE = 44;\nconst circularRotateKeyframe = keyframes`\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n`;\nconst circularDashKeyframe = keyframes`\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: 1px, 200px;\n    stroke-dashoffset: -126px;\n  }\n`;\n\n// This implementation is for supporting both Styled-components v4+ and Pigment CSS.\n// A global animation has to be created here for Styled-components v4+ (https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#12).\n// which can be done by checking typeof indeterminate1Keyframe !== 'string' (at runtime, Pigment CSS transform keyframes`` to a string).\nconst rotateAnimation = typeof circularRotateKeyframe !== 'string' ? css`\n        animation: ${circularRotateKeyframe} 1.4s linear infinite;\n      ` : null;\nconst dashAnimation = typeof circularDashKeyframe !== 'string' ? css`\n        animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;\n      ` : null;\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    variant,\n    color,\n    disableShrink\n  } = ownerState;\n  const slots = {\n    root: ['root', variant, `color${capitalize(color)}`],\n    svg: ['svg'],\n    track: ['track'],\n    circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']\n  };\n  return composeClasses(slots, getCircularProgressUtilityClass, classes);\n};\nconst CircularProgressRoot = styled('span', {\n  name: 'MuiCircularProgress',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, styles[ownerState.variant], styles[`color${capitalize(ownerState.color)}`]];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  display: 'inline-block',\n  variants: [{\n    props: {\n      variant: 'determinate'\n    },\n    style: {\n      transition: theme.transitions.create('transform')\n    }\n  }, {\n    props: {\n      variant: 'indeterminate'\n    },\n    style: rotateAnimation || {\n      animation: `${circularRotateKeyframe} 1.4s linear infinite`\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      color: (theme.vars || theme).palette[color].main\n    }\n  }))]\n})));\nconst CircularProgressSVG = styled('svg', {\n  name: 'MuiCircularProgress',\n  slot: 'Svg'\n})({\n  display: 'block' // Keeps the progress centered\n});\nconst CircularProgressCircle = styled('circle', {\n  name: 'MuiCircularProgress',\n  slot: 'Circle',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.circle, styles[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  stroke: 'currentColor',\n  variants: [{\n    props: {\n      variant: 'determinate'\n    },\n    style: {\n      transition: theme.transitions.create('stroke-dashoffset')\n    }\n  }, {\n    props: {\n      variant: 'indeterminate'\n    },\n    style: {\n      // Some default value that looks fine waiting for the animation to kicks in.\n      strokeDasharray: '80px, 200px',\n      strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink,\n    style: dashAnimation || {\n      // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.\n      animation: `${circularDashKeyframe} 1.4s ease-in-out infinite`\n    }\n  }]\n})));\nconst CircularProgressTrack = styled('circle', {\n  name: 'MuiCircularProgress',\n  slot: 'Track'\n})(memoTheme(({\n  theme\n}) => ({\n  stroke: 'currentColor',\n  opacity: (theme.vars || theme).palette.action.activatedOpacity\n})));\n\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\nconst CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiCircularProgress'\n  });\n  const {\n    className,\n    color = 'primary',\n    disableShrink = false,\n    enableTrackSlot = false,\n    size = 40,\n    style,\n    thickness = 3.6,\n    value = 0,\n    variant = 'indeterminate',\n    ...other\n  } = props;\n  const ownerState = {\n    ...props,\n    color,\n    disableShrink,\n    size,\n    thickness,\n    value,\n    variant,\n    enableTrackSlot\n  };\n  const classes = useUtilityClasses(ownerState);\n  const circleStyle = {};\n  const rootStyle = {};\n  const rootProps = {};\n  if (variant === 'determinate') {\n    const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);\n    circleStyle.strokeDasharray = circumference.toFixed(3);\n    rootProps['aria-valuenow'] = Math.round(value);\n    circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;\n    rootStyle.transform = 'rotate(-90deg)';\n  }\n  return /*#__PURE__*/_jsx(CircularProgressRoot, {\n    className: clsx(classes.root, className),\n    style: {\n      width: size,\n      height: size,\n      ...rootStyle,\n      ...style\n    },\n    ownerState: ownerState,\n    ref: ref,\n    role: \"progressbar\",\n    ...rootProps,\n    ...other,\n    children: /*#__PURE__*/_jsxs(CircularProgressSVG, {\n      className: classes.svg,\n      ownerState: ownerState,\n      viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,\n      children: [enableTrackSlot ? /*#__PURE__*/_jsx(CircularProgressTrack, {\n        className: classes.track,\n        ownerState: ownerState,\n        cx: SIZE,\n        cy: SIZE,\n        r: (SIZE - thickness) / 2,\n        fill: \"none\",\n        strokeWidth: thickness,\n        \"aria-hidden\": \"true\"\n      }) : null, /*#__PURE__*/_jsx(CircularProgressCircle, {\n        className: classes.circle,\n        style: circleStyle,\n        ownerState: ownerState,\n        cx: SIZE,\n        cy: SIZE,\n        r: (SIZE - thickness) / 2,\n        fill: \"none\",\n        strokeWidth: thickness\n      })]\n    })\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? CircularProgress.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   * 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   * If `true`, the shrink animation is disabled.\n   * This only works if variant is `indeterminate`.\n   * @default false\n   */\n  disableShrink: chainPropTypes(PropTypes.bool, props => {\n    if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {\n      return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');\n    }\n    return null;\n  }),\n  /**\n   * If `true`, a track circle slot is mounted to show a subtle background for the progress.\n   * The `size` and `thickness` apply to the track slot to be consistent with the progress circle.\n   * @default false\n   */\n  enableTrackSlot: PropTypes.bool,\n  /**\n   * The size of the component.\n   * If using a number, the pixel unit is assumed.\n   * If using a string, you need to provide the CSS unit, for example '3rem'.\n   * @default 40\n   */\n  size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\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 thickness of the circle.\n   * @default 3.6\n   */\n  thickness: PropTypes.number,\n  /**\n   * The value of the progress indicator for the determinate variant.\n   * Value between 0 and 100.\n   * @default 0\n   */\n  value: PropTypes.number,\n  /**\n   * The variant to use.\n   * Use indeterminate when there is no progress value.\n   * @default 'indeterminate'\n   */\n  variant: PropTypes.oneOf(['determinate', 'indeterminate'])\n} : void 0;\nexport default CircularProgress;","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', 'loading', 'loadingWrapper', 'loadingIconPlaceholder', 'loadingIndicator', 'loadingPositionCenter', 'loadingPositionStart', 'loadingPositionEnd']);\nexport default buttonClasses;","'use client';\n\nimport * 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';\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;","'use client';\n\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 { unstable_useId as useId } from \"../utils/index.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport buttonClasses, { getButtonUtilityClass } from \"./buttonClasses.js\";\nimport ButtonGroupContext from \"../ButtonGroup/ButtonGroupContext.js\";\nimport ButtonGroupButtonContext from \"../ButtonGroup/ButtonGroupButtonContext.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    color,\n    disableElevation,\n    fullWidth,\n    size,\n    variant,\n    loading,\n    loadingPosition,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],\n    startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n    endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],\n    loadingIndicator: ['loadingIndicator'],\n    loadingWrapper: ['loadingWrapper']\n  };\n  const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n  return {\n    ...classes,\n    // forward the focused, disabled, etc. classes to the ButtonBase\n    ...composedClasses\n  };\n};\nconst commonIconStyles = [{\n  props: {\n    size: 'small'\n  },\n  style: {\n    '& > *:nth-of-type(1)': {\n      fontSize: 18\n    }\n  }\n}, {\n  props: {\n    size: 'medium'\n  },\n  style: {\n    '& > *:nth-of-type(1)': {\n      fontSize: 20\n    }\n  }\n}, {\n  props: {\n    size: 'large'\n  },\n  style: {\n    '& > *:nth-of-type(1)': {\n      fontSize: 22\n    }\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, ownerState.loading && styles.loading];\n  }\n})(memoTheme(({\n  theme\n}) => {\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 {\n    ...theme.typography.button,\n    minWidth: 64,\n    padding: '6px 16px',\n    border: 0,\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': {\n      textDecoration: 'none'\n    },\n    [`&.${buttonClasses.disabled}`]: {\n      color: (theme.vars || theme).palette.action.disabled\n    },\n    variants: [{\n      props: ({\n        ownerState\n      }) => ownerState.startIcon || ownerState.loading && ownerState.loadingPosition === 'start',\n      style: {\n        '&::before': {\n          content: '\"\\\\200b\"',\n          width: 0,\n          overflow: 'hidden'\n        }\n      }\n    }, {\n      props: {\n        variant: 'contained'\n      },\n      style: {\n        color: `var(--variant-containedColor)`,\n        backgroundColor: `var(--variant-containedBg)`,\n        boxShadow: (theme.vars || theme).shadows[2],\n        '&:hover': {\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          }\n        },\n        '&:active': {\n          boxShadow: (theme.vars || theme).shadows[8]\n        },\n        [`&.${buttonClasses.focusVisible}`]: {\n          boxShadow: (theme.vars || theme).shadows[6]\n        },\n        [`&.${buttonClasses.disabled}`]: {\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      }\n    }, {\n      props: {\n        variant: 'outlined'\n      },\n      style: {\n        padding: '5px 15px',\n        border: '1px solid currentColor',\n        borderColor: `var(--variant-outlinedBorder, currentColor)`,\n        backgroundColor: `var(--variant-outlinedBg)`,\n        color: `var(--variant-outlinedColor)`,\n        [`&.${buttonClasses.disabled}`]: {\n          border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n        }\n      }\n    }, {\n      props: {\n        variant: 'text'\n      },\n      style: {\n        padding: '6px 8px',\n        color: `var(--variant-textColor)`,\n        backgroundColor: `var(--variant-textBg)`\n      }\n    }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n      props: {\n        color\n      },\n      style: {\n        '--variant-textColor': (theme.vars || theme).palette[color].main,\n        '--variant-outlinedColor': (theme.vars || theme).palette[color].main,\n        '--variant-outlinedBorder': theme.alpha((theme.vars || theme).palette[color].main, 0.5),\n        '--variant-containedColor': (theme.vars || theme).palette[color].contrastText,\n        '--variant-containedBg': (theme.vars || theme).palette[color].main,\n        '@media (hover: hover)': {\n          '&:hover': {\n            '--variant-containedBg': (theme.vars || theme).palette[color].dark,\n            '--variant-textBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity),\n            '--variant-outlinedBorder': (theme.vars || theme).palette[color].main,\n            '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n          }\n        }\n      }\n    })), {\n      props: {\n        color: 'inherit'\n      },\n      style: {\n        color: 'inherit',\n        borderColor: 'currentColor',\n        '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n        '@media (hover: hover)': {\n          '&:hover': {\n            '--variant-containedBg': theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n            '--variant-textBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity),\n            '--variant-outlinedBg': theme.alpha((theme.vars || theme).palette.text.primary, (theme.vars || theme).palette.action.hoverOpacity)\n          }\n        }\n      }\n    }, {\n      props: {\n        size: 'small',\n        variant: 'text'\n      },\n      style: {\n        padding: '4px 5px',\n        fontSize: theme.typography.pxToRem(13)\n      }\n    }, {\n      props: {\n        size: 'large',\n        variant: 'text'\n      },\n      style: {\n        padding: '8px 11px',\n        fontSize: theme.typography.pxToRem(15)\n      }\n    }, {\n      props: {\n        size: 'small',\n        variant: 'outlined'\n      },\n      style: {\n        padding: '3px 9px',\n        fontSize: theme.typography.pxToRem(13)\n      }\n    }, {\n      props: {\n        size: 'large',\n        variant: 'outlined'\n      },\n      style: {\n        padding: '7px 21px',\n        fontSize: theme.typography.pxToRem(15)\n      }\n    }, {\n      props: {\n        size: 'small',\n        variant: 'contained'\n      },\n      style: {\n        padding: '4px 10px',\n        fontSize: theme.typography.pxToRem(13)\n      }\n    }, {\n      props: {\n        size: 'large',\n        variant: 'contained'\n      },\n      style: {\n        padding: '8px 22px',\n        fontSize: theme.typography.pxToRem(15)\n      }\n    }, {\n      props: {\n        disableElevation: true\n      },\n      style: {\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      }\n    }, {\n      props: {\n        fullWidth: true\n      },\n      style: {\n        width: '100%'\n      }\n    }, {\n      props: {\n        loadingPosition: 'center'\n      },\n      style: {\n        transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {\n          duration: theme.transitions.duration.short\n        }),\n        [`&.${buttonClasses.loading}`]: {\n          color: 'transparent'\n        }\n      }\n    }]\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, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];\n  }\n})(({\n  theme\n}) => ({\n  display: 'inherit',\n  marginRight: 8,\n  marginLeft: -4,\n  variants: [{\n    props: {\n      size: 'small'\n    },\n    style: {\n      marginLeft: -2\n    }\n  }, {\n    props: {\n      loadingPosition: 'start',\n      loading: true\n    },\n    style: {\n      transition: theme.transitions.create(['opacity'], {\n        duration: theme.transitions.duration.short\n      }),\n      opacity: 0\n    }\n  }, {\n    props: {\n      loadingPosition: 'start',\n      loading: true,\n      fullWidth: true\n    },\n    style: {\n      marginRight: -8\n    }\n  }, ...commonIconStyles]\n}));\nconst ButtonEndIcon = styled('span', {\n  name: 'MuiButton',\n  slot: 'EndIcon',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];\n  }\n})(({\n  theme\n}) => ({\n  display: 'inherit',\n  marginRight: -4,\n  marginLeft: 8,\n  variants: [{\n    props: {\n      size: 'small'\n    },\n    style: {\n      marginRight: -2\n    }\n  }, {\n    props: {\n      loadingPosition: 'end',\n      loading: true\n    },\n    style: {\n      transition: theme.transitions.create(['opacity'], {\n        duration: theme.transitions.duration.short\n      }),\n      opacity: 0\n    }\n  }, {\n    props: {\n      loadingPosition: 'end',\n      loading: true,\n      fullWidth: true\n    },\n    style: {\n      marginLeft: -8\n    }\n  }, ...commonIconStyles]\n}));\nconst ButtonLoadingIndicator = styled('span', {\n  name: 'MuiButton',\n  slot: 'LoadingIndicator'\n})(({\n  theme\n}) => ({\n  display: 'none',\n  position: 'absolute',\n  visibility: 'visible',\n  variants: [{\n    props: {\n      loading: true\n    },\n    style: {\n      display: 'flex'\n    }\n  }, {\n    props: {\n      loadingPosition: 'start'\n    },\n    style: {\n      left: 14\n    }\n  }, {\n    props: {\n      loadingPosition: 'start',\n      size: 'small'\n    },\n    style: {\n      left: 10\n    }\n  }, {\n    props: {\n      variant: 'text',\n      loadingPosition: 'start'\n    },\n    style: {\n      left: 6\n    }\n  }, {\n    props: {\n      loadingPosition: 'center'\n    },\n    style: {\n      left: '50%',\n      transform: 'translate(-50%)',\n      color: (theme.vars || theme).palette.action.disabled\n    }\n  }, {\n    props: {\n      loadingPosition: 'end'\n    },\n    style: {\n      right: 14\n    }\n  }, {\n    props: {\n      loadingPosition: 'end',\n      size: 'small'\n    },\n    style: {\n      right: 10\n    }\n  }, {\n    props: {\n      variant: 'text',\n      loadingPosition: 'end'\n    },\n    style: {\n      right: 6\n    }\n  }, {\n    props: {\n      loadingPosition: 'start',\n      fullWidth: true\n    },\n    style: {\n      position: 'relative',\n      left: -10\n    }\n  }, {\n    props: {\n      loadingPosition: 'end',\n      fullWidth: true\n    },\n    style: {\n      position: 'relative',\n      right: -10\n    }\n  }]\n}));\nconst ButtonLoadingIconPlaceholder = styled('span', {\n  name: 'MuiButton',\n  slot: 'LoadingIconPlaceholder'\n})({\n  display: 'inline-block',\n  width: '1em',\n  height: '1em'\n});\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    id: idProp,\n    loading = null,\n    loadingIndicator: loadingIndicatorProp,\n    loadingPosition = 'center',\n    size = 'medium',\n    startIcon: startIconProp,\n    type,\n    variant = 'text',\n    ...other\n  } = props;\n  const loadingId = useId(idProp);\n  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n    \"aria-labelledby\": loadingId,\n    color: \"inherit\",\n    size: 16\n  });\n  const ownerState = {\n    ...props,\n    color,\n    component,\n    disabled,\n    disableElevation,\n    disableFocusRipple,\n    fullWidth,\n    loading,\n    loadingIndicator,\n    loadingPosition,\n    size,\n    type,\n    variant\n  };\n  const classes = useUtilityClasses(ownerState);\n  const startIcon = (startIconProp || loading && loadingPosition === 'start') && /*#__PURE__*/_jsx(ButtonStartIcon, {\n    className: classes.startIcon,\n    ownerState: ownerState,\n    children: startIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n      className: classes.loadingIconPlaceholder,\n      ownerState: ownerState\n    })\n  });\n  const endIcon = (endIconProp || loading && loadingPosition === 'end') && /*#__PURE__*/_jsx(ButtonEndIcon, {\n    className: classes.endIcon,\n    ownerState: ownerState,\n    children: endIconProp || /*#__PURE__*/_jsx(ButtonLoadingIconPlaceholder, {\n      className: classes.loadingIconPlaceholder,\n      ownerState: ownerState\n    })\n  });\n  const positionClassName = buttonGroupButtonContextPositionClassName || '';\n  const loader = typeof loading === 'boolean' ?\n  /*#__PURE__*/\n  // use plain HTML span to minimize the runtime overhead\n  _jsx(\"span\", {\n    className: classes.loadingWrapper,\n    style: {\n      display: 'contents'\n    },\n    children: loading && /*#__PURE__*/_jsx(ButtonLoadingIndicator, {\n      className: classes.loadingIndicator,\n      ownerState: ownerState,\n      children: loadingIndicator\n    })\n  }) : null;\n\n  // Don't forward the 'root' classes to the ButtonBase, as they will get duplicated with the one passed to the className prop.\n  const {\n    root,\n    ...forwardedClasses\n  } = classes;\n  return /*#__PURE__*/_jsxs(ButtonRoot, {\n    ownerState: ownerState,\n    className: clsx(contextProps.className, classes.root, className, positionClassName),\n    component: component,\n    disabled: disabled || loading,\n    focusRipple: !disableFocusRipple,\n    focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n    ref: ref,\n    type: type,\n    id: loading ? loadingId : idProp,\n    ...other,\n    classes: forwardedClasses,\n    children: [startIcon, loadingPosition !== 'end' && loader, children, loadingPosition === 'end' && loader, 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   * @ignore\n   */\n  id: PropTypes.string,\n  /**\n   * If `true`, the loading indicator is visible and the button is disabled.\n   * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n   * @default null\n   */\n  loading: PropTypes.bool,\n  /**\n   * Element placed before the children if the button is in loading state.\n   * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n   * By default, it renders a `CircularProgress` that is labeled by the button itself.\n   * @default <CircularProgress color=\"inherit\" size={16} />\n   */\n  loadingIndicator: PropTypes.node,\n  /**\n   * The loading indicator can be positioned on the start, end, or the center of the button.\n   * @default 'center'\n   */\n  loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),\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;","export default {\n  typography: {\n    fontSize: 14,\n    htmlFontSize: 16,\n    fontWeightLight: 300,\n    fontWeightRegular: 400,\n    fontWeightMedium: 600,\n    fontFamily: ['\"Source Sans Pro\"', '\"Segoe UI\"', '\"Helvetica Neue\"', '-apple-system', 'Arial', 'sans-serif'].join(\n      ','\n    ),\n    button: {\n      textTransform: 'initial',\n      fontWeight: 400,\n    },\n  },\n  shape: {\n    borderRadius: 2,\n  },\n  shadows: [\n    'none',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n    '0px 1px 2px 0px rgba(0,0,0,0.15)',\n\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n    '0px 2px 4px 0px rgba(0,0,0,0.15)',\n\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n    '0px 4px 10px 0px rgba(0,0,0,0.15)',\n\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n    '0px 6px 20px 0px rgba(0,0,0,0.15)',\n  ],\n};\n","const colors = {\n  green: '#00873D',\n  greenPale: '#0AAF54',\n  red: '#DC423F',\n  redPale: '#F05551',\n  blue: '#3F8AB3',\n  bluePale: '#469DCD',\n  blueDark: '#005DB9',\n\n  // greyscale\n  grey100: '#ffffff',\n  grey98: '#FBFBFB',\n  grey95: '#F2F2F2',\n  grey90: '#E6E6E6',\n  grey85: '#D9D9D9',\n\n  grey55: '#8C8C8C',\n\n  grey45: '#737373',\n  grey30: '#4D4D4D',\n  grey25: '#404040',\n  grey20: '#333333',\n  grey15: '#262626',\n  grey10: '#1A1A1A',\n  grey5: '#0E0E0E',\n  grey0: '#000000',\n};\n\nexport default colors;\n","import colors from './colors';\n\nconst light = {\n  mode: 'light',\n  palette: {\n    primary: {\n      main: colors.grey25,\n      contrastText: colors.grey100,\n    },\n    secondary: {\n      light: '#0AAF54',\n      main: '#009845',\n      dark: '#006937',\n    },\n    text: {\n      primary: colors.grey25,\n      secondary: 'rgba(0, 0, 0, 0.55)',\n      disabled: 'rgba(0, 0, 0, 0.3)',\n      light: colors.grey100,\n      dark: colors.grey0,\n    },\n    action: {\n      active: '#545454', // color for actionable things like icon buttons\n      hover: 'rgba(0, 0, 0, 0.03)', // color for hoverable things like list items\n      hoverOpacity: 0.08, // used to fade primary/secondary colors\n      selected: 'rgba(0, 0, 0, 0.05)', // focused things like list items\n      disabled: 'rgba(0, 0, 0, 0.3)', // usually text\n      disabledBackground: 'rgba(0, 0, 0, 0.12)',\n    },\n    background: {\n      paper: colors.grey100,\n      default: colors.grey100,\n      // -- custom properties --\n      lightest: colors.grey100,\n      lighter: colors.grey98,\n      darker: colors.grey95,\n      darkest: colors.grey90,\n    },\n    // --- custom stuff ---\n    custom: {\n      whiteBorder: 'rgb(255, 255, 255)',\n      newFocusBorder: colors.blueDark,\n      focusBorder: colors.blue,\n      focusOutline: 'rgba(70, 157, 205, 0.3)',\n      inputBackground: 'rgba(255, 255, 255, 1)',\n      disabledBackground: colors.grey45,\n      disabledContrastText: colors.grey100,\n    },\n    selected: {\n      main: colors.green,\n      alternative: '#E4E4E4',\n      excluded: '#BEBEBE',\n      selectedExcluded: '#BEBEBE',\n      possible: colors.grey100,\n      selectedContrastText: colors.grey100,\n      mainContrastText: colors.grey100,\n      alternativeContrastText: colors.grey25,\n      excludedContrastText: colors.grey25,\n      selectedExcludedContrastText: colors.grey100,\n      possibleContrastText: colors.grey0,\n    },\n    btn: {\n      normal: 'rgba(255, 255, 255, 0.6)',\n      hover: 'rgba(0, 0, 0, 0.03)',\n      active: 'rgba(0, 0, 0, 0.1)',\n      disabled: 'rgba(255, 255, 255, 0.6)',\n      border: 'rgba(0, 0, 0, 0.15)',\n      borderHover: 'rgba(0, 0, 0, 0.15)',\n    },\n  },\n};\n\nexport default light;\n","import colors from './colors';\n\nconst dark = {\n  mode: 'dark',\n  palette: {\n    primary: {\n      main: colors.grey20,\n      contrastText: colors.grey100,\n    },\n    secondary: {\n      light: '#0AAF54',\n      main: '#009845',\n      dark: '#006937',\n    },\n    text: {\n      primary: colors.grey100,\n      secondary: 'rgba(255, 255, 255, 0.6)',\n      disabled: 'rgba(255, 255, 255, 0.3)',\n      light: colors.grey100,\n      dark: colors.grey0,\n    },\n    action: {\n      // active: 'rgba(0, 0, 0, 0.55)',\n      active: colors.grey100,\n      hover: 'rgba(255, 255, 255, 0.05)',\n      hoverOpacity: 0.08,\n      selected: 'rgba(0, 0, 0, 0.03)',\n      disabled: 'rgba(255, 255, 255, 0.3)',\n      disabledBackground: 'rgba(0, 0, 0, 0.12)',\n    },\n    divider: 'rgba(0,0,0,0.3)',\n    background: {\n      default: '#323232',\n      paper: '#323232',\n      // -- custom properties --\n      lightest: colors.grey25,\n      lighter: colors.grey20,\n      darker: colors.grey15,\n      darkest: colors.grey10,\n    },\n    // -- custom --\n    custom: {\n      whiteBorder: 'rgb(255, 255, 255)',\n      newFocusBorder: colors.blueDark,\n      focusBorder: colors.blue,\n      focusOutline: 'rgba(70, 157, 205, 0.3)',\n      inputBackground: 'rgba(0, 0, 0, 0.2)',\n      disabledBackground: colors.grey45,\n      disabledContrastText: colors.grey100,\n    },\n    selected: {\n      main: colors.green,\n      alternative: colors.grey20,\n      excluded: colors.grey10,\n      selectedExcluded: colors.grey10,\n      possible: colors.grey80,\n      selectedContrastText: colors.grey100,\n      mainContrastText: colors.grey100,\n      alternativeContrastText: colors.grey100,\n      excludedContrastText: colors.grey100,\n      selectedExcludedContrastText: colors.grey100,\n      possibleContrastText: colors.grey0,\n    },\n    btn: {\n      normal: 'rgba(255, 255, 255, 0.15)',\n      hover: 'rgba(255, 255, 255, 0.25)',\n      active: 'rgba(0, 0, 0, 0.6)',\n      disabled: 'rgba(255, 255, 255, 0.15)',\n      border: 'rgba(0, 0, 0, 0.15)',\n      borderHover: 'rgba(0, 0, 0, 0.30)',\n    },\n  },\n};\n\nexport default dark;\n","import { createTheme } from '@mui/material/styles';\nimport { buttonClasses } from '@mui/material/Button';\n\nimport base from './definitions/base';\nimport light from './definitions/light';\nimport dark from './definitions/dark';\n\nconst cache = {};\n\nconst componentOverrides = (theme) => ({\n  MuiCheckbox: {\n    defaultProps: {\n      color: 'secondary',\n    },\n  },\n  MuiRadio: {\n    defaultProps: {\n      color: 'secondary',\n    },\n  },\n  MuiTabs: {\n    defaultProps: {\n      indicatorColor: 'secondary',\n    },\n  },\n  MuiTypography: {\n    styleOverrides: {\n      root: {\n        color: theme.palette.text.primary,\n      },\n    },\n  },\n  MuiGrid: {\n    styleOverrides: {\n      variants: [\n        {\n          props: { alignItems: 'center' },\n          style: {\n            'align-items': 'center',\n          },\n        },\n      ],\n    },\n  },\n  MuiButtonBase: {\n    defaultProps: {\n      disableRipple: true,\n      disableTouchRipple: true,\n      focusRipple: false,\n    },\n    styleOverrides: {\n      root: {\n        borderRadius: 2,\n        border: '1px solid transparent',\n        // should ideally use $focusVisible, but that messes up focus in all other places where Iconbutton is used (Checkbox, Switch etc)\n        '&.Mui-focused': {\n          borderColor: theme.palette.custom.focusBorder,\n          boxShadow: `0 0 0 2px ${theme.palette.custom.focusOutline}`,\n        },\n      },\n    },\n  },\n  MuiIconButton: {\n    styleOverrides: {\n      root: {\n        padding: 7,\n        borderRadius: 2,\n        border: '1px solid transparent',\n        '&:hover': {\n          backgroundColor: theme.palette.btn.hover,\n        },\n        '&.Mui-focusVisible': {\n          borderColor: theme.palette.custom.focusBorder,\n          boxShadow: `0 0 0 2px ${theme.palette.custom.focusOutline}`,\n        },\n        '&.Mui-active': {\n          borderColor: 'transparent',\n          boxShadow: 'none',\n          backgroundColor: theme.palette.btn.active,\n        },\n        '&:not(.Mui-active):not(.Mui-focusVisible)': {\n          borderColor: 'transparent',\n          boxShadow: 'none',\n        },\n      },\n    },\n  },\n  MuiOutlinedInput: {\n    styleOverrides: {\n      root: {\n        backgroundColor: theme.palette.custom.inputBackground,\n        '&:hover .MuiOutlinedInput-notchedOutline': {\n          borderColor: theme.palette.btn.border,\n        },\n        '&.Mui-focused .MuiOutlinedInput-notchedOutline': {\n          borderColor: theme.palette.custom.focusBorder,\n          borderWidth: 2,\n        },\n      },\n    },\n  },\n  MuiButton: {\n    styleOverrides: {\n      outlined: {\n        padding: '3px 11px',\n        [`&.${buttonClasses.focusVisible}`]: {\n          borderColor: theme.palette.custom.focusBorder,\n          boxShadow: `0 0 0 2px ${theme.palette.custom.focusOutline}`,\n        },\n      },\n      contained: {\n        color: theme.palette.text.primary,\n        padding: '3px 11px',\n        border: `1px solid ${theme.palette.btn.border}`,\n        backgroundColor: theme.palette.btn.normal,\n        boxShadow: 'none',\n        [`&.${buttonClasses.focusVisible}`]: {\n          borderColor: theme.palette.custom.focusBorder,\n          boxShadow: `0 0 0 2px ${theme.palette.custom.focusOutline}`,\n        },\n        '&:hover': {\n          backgroundColor: theme.palette.btn.hover,\n          borderColor: theme.palette.btn.borderHover,\n          boxShadow: 'none',\n          [`&.${buttonClasses.disabled}`]: {\n            backgroundColor: theme.palette.btn.disabled,\n          },\n        },\n        '&.Mui-active': {\n          boxShadow: 'none',\n          backgroundColor: theme.palette.btn.active,\n        },\n        [`&.${buttonClasses.disabled}`]: {\n          backgroundColor: theme.palette.btn.disabled,\n        },\n      },\n    },\n  },\n  MuiAccordionSummary: {\n    styleOverrides: {\n      content: {\n        margin: '8px 0',\n      },\n    },\n  },\n});\n\nexport default function create(definition) {\n  let def = light;\n  let name = '';\n  if (typeof definition === 'string') {\n    name = definition;\n    if (definition !== 'light' && definition !== 'dark') {\n      console.warn(`Invalid theme: '${definition}'`);\n    } else if (definition === 'dark') {\n      def = dark;\n    }\n  }\n\n  const key = JSON.stringify(def);\n  if (cache[key]) {\n    return cache[key];\n  }\n\n  const withDefaults = {\n    palette: {\n      type: def.mode,\n      ...base.palette,\n      ...def.palette,\n    },\n    typography: {\n      ...base.typography,\n    },\n    shadows: base.shadows,\n    shape: {\n      ...base.shape,\n    },\n  };\n\n  const adaptedTheme = {\n    ...withDefaults,\n    components: componentOverrides(withDefaults),\n  };\n\n  cache[key] = createTheme(adaptedTheme);\n\n  cache[key].name = name;\n\n  return cache[key];\n}\n","import { ClassNameGenerator } from '@nebula.js/ui/theme';\n\nconst NEBULA_VERSION_HASH = process.env.NEBULA_VERSION_HASH || '';\nlet counter = 0;\n\nClassNameGenerator.configure((componentName) => {\n  if (process.env.NODE_ENV !== 'production') {\n    return `njs-${counter++}-${componentName.replace('Mui', '')}`;\n  }\n  return `njs-${NEBULA_VERSION_HASH}-${componentName.replace('Mui', '')}`;\n});\n","import React from 'react';\n\nexport default React.createContext({\n  language: null,\n  theme: null,\n  translator: null,\n  constraints: {},\n  interactions: {},\n  themeApi: null,\n  modelStore: {},\n  selectionStore: {},\n  hostConfig: null,\n  queryParams: null,\n});\n","const DEFAULT_INTERACTIONS = {\n  active: true,\n  select: true,\n  passive: true,\n  edit: false,\n};\n\nfunction pickConstraintsOrInteractions(context) {\n  const { constraints = {}, interactions = {} } = context;\n  // If some interaction is defined, then we use that\n  if (Object.keys(interactions).length > 0) {\n    return interactions;\n  }\n  const ret = {};\n  Object.keys(constraints).forEach((state) => {\n    ret[state] = !constraints[state];\n  });\n  return ret;\n}\n\nexport default function unifyContraintsAndInteractions(context) {\n  const interactions = {};\n  const constraints = {};\n  const definedSettings = pickConstraintsOrInteractions(context);\n  Object.keys(DEFAULT_INTERACTIONS).forEach((state) => {\n    if (definedSettings[state] !== undefined) {\n      interactions[state] = definedSettings[state];\n      constraints[state] = !definedSettings[state];\n    } else {\n      interactions[state] = DEFAULT_INTERACTIONS[state];\n      constraints[state] = !DEFAULT_INTERACTIONS[state];\n    }\n  });\n  context.constraints = constraints;\n  context.interactions = interactions;\n}\n","import { useState, useEffect } from 'react';\n\nexport default (initialState = {}, applyMiddleware = () => {}) => {\n  const sharedState = initialState;\n  const hookListeners = [];\n  const subscribedListeners = {};\n\n  const store = {\n    get: (key) => sharedState[key],\n    set: (key, value) => {\n      if (typeof key === 'undefined' || typeof key === 'object') {\n        throw new Error(`Invalid key: ${JSON.stringify(key)}`);\n      }\n      sharedState[key] = value;\n      subscribedListeners[key] = applyMiddleware({ type: 'SET', value });\n      return value;\n    },\n    clear: (key) => {\n      if (typeof key === 'undefined' || typeof key === 'object') {\n        throw new Error(`Invalid key: ${JSON.stringify(key)}`);\n      }\n      sharedState[key] = null;\n    },\n    dispatch: (forceNewState) => {\n      hookListeners.forEach((listener) => listener(forceNewState ? {} : sharedState));\n    },\n    destroy: () => {\n      Object.keys(subscribedListeners).forEach((key) => {\n        subscribedListeners[key] && subscribedListeners[key]();\n      });\n    },\n  };\n\n  const useKeyStore = () => {\n    const [, setState] = useState(sharedState);\n\n    useEffect(() => {\n      hookListeners.push(setState);\n      return () => {\n        const ix = hookListeners.indexOf(setState);\n        hookListeners.splice(ix, 1);\n      };\n    }, [setState]);\n\n    return [store];\n  };\n\n  return [useKeyStore, store];\n};\n","import React, { useState, useMemo, forwardRef, useImperativeHandle, useEffect } from 'react';\nimport ReactDOM from 'react-dom/client';\nimport './ClassNameSetup';\n\nimport { createTheme, ThemeProvider, StyledEngineProvider } from '@nebula.js/ui/theme';\n\nimport InstanceContext from '../contexts/InstanceContext';\nimport unifyContraintsAndInteractions from '../utils/interactions';\nimport initModelStore from '../stores/new-model-store';\nimport initSelectionStore from '../stores/new-selections-store';\n\nconst NebulaApp = forwardRef(({ initialContext, renderCallback, modelStore, selectionStore }, ref) => {\n  const [context, setContext] = useState(initialContext);\n  const [muiThemeName, setMuiThemeName] = useState();\n\n  const { theme } = useMemo(\n    () => ({\n      theme: createTheme(muiThemeName),\n    }),\n    [muiThemeName]\n  );\n\n  const [components, setComponents] = useState([]);\n\n  // Will be called directly after the first render pass\n  // See: https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html\n  useEffect(() => {\n    renderCallback && renderCallback();\n  }, []);\n\n  useImperativeHandle(\n    ref,\n    () => ({\n      setComps(comps) {\n        setComponents([...comps]);\n      },\n      setMuiThemeName,\n      setContext: (ctx) =>\n        setContext((oldContext) => (JSON.stringify(oldContext) !== JSON.stringify(ctx) ? ctx : oldContext)),\n    }),\n    []\n  );\n  if (context) {\n    context.modelStore = modelStore;\n    context.selectionStore = selectionStore;\n  }\n\n  return (\n    <StyledEngineProvider injectFirst>\n      <ThemeProvider theme={theme}>\n        <InstanceContext.Provider value={context}>{components}</InstanceContext.Provider>\n      </ThemeProvider>\n    </StyledEngineProvider>\n  );\n});\n\nexport { NebulaApp };\n\nexport default function boot({ app, context }) {\n  let resolveRender;\n  let destroyed = false;\n  const rendered = new Promise((resolve) => {\n    resolveRender = resolve;\n  });\n  const appRef = React.createRef();\n  const element = document.createElement('div');\n  element.style.display = 'none';\n  element.setAttribute('data-nebulajs-version', process.env.NEBULA_VERSION || '');\n  element.setAttribute('data-app-id', app.id);\n  document.body.appendChild(element);\n\n  if (context) {\n    unifyContraintsAndInteractions(context);\n  }\n\n  const modelStore = initModelStore(app.id);\n  const selectionStore = initSelectionStore(app.id);\n\n  const root = ReactDOM.createRoot(element);\n  root.render(\n    <NebulaApp\n      ref={appRef}\n      initialContext={context}\n      renderCallback={resolveRender}\n      modelStore={modelStore}\n      selectionStore={selectionStore}\n    />\n  );\n\n  const cells = {};\n  const componentsUnmount = [];\n  const components = [];\n\n  return [\n    {\n      toggleFocusOfCells(cellIdToFocus) {\n        Object.keys(cells).forEach((i) => {\n          cells[i].current?.toggleFocus(i === cellIdToFocus);\n        });\n      },\n      cells,\n      addCell(id, cell) {\n        cells[id] = cell;\n      },\n      removeCell(id) {\n        delete cells[id];\n      },\n      add(component, unmount) {\n        return (async () => {\n          await rendered;\n          components.push(component);\n          componentsUnmount.push(unmount);\n          appRef?.current?.setComps(components);\n        })();\n      },\n      remove(component) {\n        if (!destroyed) {\n          (async () => {\n            await rendered;\n            const ix = components.indexOf(component);\n            if (ix !== -1) {\n              componentsUnmount[ix]?.();\n              components.splice(ix, 1);\n              componentsUnmount.splice(ix, 1);\n            }\n            appRef?.current?.setComps(components);\n          })();\n        }\n      },\n      setMuiThemeName(themeName) {\n        (async () => {\n          await rendered;\n          appRef?.current?.setMuiThemeName(themeName);\n        })();\n      },\n      context(ctx) {\n        (async () => {\n          await rendered;\n          // Should be done here, unify contraints and interactions\n          if (ctx) {\n            unifyContraintsAndInteractions(ctx);\n          }\n          appRef?.current?.setContext(ctx);\n        })();\n      },\n      destroy() {\n        destroyed = true;\n        componentsUnmount.forEach((c) => {\n          c && c();\n        });\n        modelStore.destroy();\n        root.unmount();\n        document.body.removeChild(element);\n      },\n    },\n    modelStore,\n    selectionStore,\n    appRef,\n    rendered,\n  ];\n}\n","export const reflow = node => node.scrollTop;\nexport function normalizedTransitionCallback(nodeRef, callback) {\n  return maybeIsAppearing => {\n    if (callback) {\n      const node = nodeRef.current;\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}\n/**\n * Computes the child style for a transition component, reusing existing\n * references when possible to preserve referential equality for React.memo.\n */\nexport function getTransitionChildStyle(state, inProp, baseStyles, hiddenStyles, styleProp, childStyle) {\n  const base = state === 'exited' && !inProp ? hiddenStyles : baseStyles[state] || baseStyles.exited;\n  return styleProp || childStyle ? {\n    ...base,\n    ...styleProp,\n    ...childStyle\n  } : base;\n}\nexport function getTransitionProps(props, options) {\n  const {\n    timeout,\n    easing,\n    style = {}\n  } = props;\n  return {\n    duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),\n    easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),\n    delay: style.transitionDelay\n  };\n}","/**\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;","import isHostComponent from \"../isHostComponent/index.js\";\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 {\n    ...otherProps,\n    ownerState: {\n      ...otherProps.ownerState,\n      ...ownerState\n    }\n  };\n}\nexport default appendOwnerState;","/**\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;","/**\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 * 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 clsx from 'clsx';\nimport extractEventHandlers from \"../extractEventHandlers/index.js\";\nimport omitEventHandlers from \"../omitEventHandlers/index.js\";\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?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n    const mergedStyle = {\n      ...additionalProps?.style,\n      ...externalForwardedProps?.style,\n      ...externalSlotProps?.style\n    };\n    const props = {\n      ...additionalProps,\n      ...externalForwardedProps,\n      ...externalSlotProps\n    };\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({\n    ...externalForwardedProps,\n    ...externalSlotProps\n  });\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?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n  const mergedStyle = {\n    ...internalSlotProps?.style,\n    ...additionalProps?.style,\n    ...externalForwardedProps?.style,\n    ...externalSlotProps?.style\n  };\n  const props = {\n    ...internalSlotProps,\n    ...additionalProps,\n    ...otherPropsWithoutEventHandlers,\n    ...componentsPropsWithoutEventHandlers\n  };\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;","'use client';\n\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    internalForwardedProps,\n    shouldForwardComponentProp = false,\n    ...useSlotPropsParams\n  } = parameters;\n  const {\n    component: rootComponent,\n    slots = {\n      [name]: undefined\n    },\n    slotProps = {\n      [name]: undefined\n    },\n    ...other\n  } = externalForwardedProps;\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 {\n    props: {\n      component: slotComponent,\n      ...mergedProps\n    },\n    internalRef\n  } = mergeSlotProps({\n    className,\n    ...useSlotPropsParams,\n    externalForwardedProps: name === 'root' ? other : undefined,\n    externalSlotProps: resolvedComponentsProps\n  });\n  const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);\n  const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n  const props = appendOwnerState(elementType, {\n    ...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),\n    ...(name !== 'root' && !slots[name] && internalForwardedProps),\n    ...mergedProps,\n    ...(LeafComponent && !shouldForwardComponentProp && {\n      as: LeafComponent\n    }),\n    ...(LeafComponent && shouldForwardComponentProp && {\n      component: LeafComponent\n    }),\n    ref\n  }, ownerState);\n  return [elementType, props];\n}","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 * 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, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport getOverlayAlpha from \"../styles/getOverlayAlpha.js\";\nimport { getPaperUtilityClass } from \"./paperClasses.js\";\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})(memoTheme(({\n  theme\n}) => ({\n  backgroundColor: (theme.vars || theme).palette.background.paper,\n  color: (theme.vars || theme).palette.text.primary,\n  transition: theme.transitions.create('box-shadow'),\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.square,\n    style: {\n      borderRadius: theme.shape.borderRadius\n    }\n  }, {\n    props: {\n      variant: 'outlined'\n    },\n    style: {\n      border: `1px solid ${(theme.vars || theme).palette.divider}`\n    }\n  }, {\n    props: {\n      variant: 'elevation'\n    },\n    style: {\n      boxShadow: 'var(--Paper-shadow)',\n      backgroundImage: 'var(--Paper-overlay)'\n    }\n  }]\n})));\nconst Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiPaper'\n  });\n  const theme = useTheme();\n  const {\n    className,\n    component = 'div',\n    elevation = 1,\n    square = false,\n    variant = 'elevation',\n    ...other\n  } = props;\n  const ownerState = {\n    ...props,\n    component,\n    elevation,\n    square,\n    variant\n  };\n  const classes = useUtilityClasses(ownerState);\n  if (process.env.NODE_ENV !== 'production') {\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, {\n    as: component,\n    ownerState: ownerState,\n    className: clsx(classes.root, className),\n    ref: ref,\n    ...other,\n    style: {\n      ...(variant === 'elevation' && {\n        '--Paper-shadow': (theme.vars || theme).shadows[elevation],\n        ...(theme.vars && {\n          '--Paper-overlay': theme.vars.overlays?.[elevation]\n        }),\n        ...(!theme.vars && theme.palette.mode === 'dark' && {\n          '--Paper-overlay': `linear-gradient(${alpha('#fff', getOverlayAlpha(elevation))}, ${alpha('#fff', getOverlayAlpha(elevation))})`\n        })\n      }),\n      ...other.style\n    }\n  });\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   * @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 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;","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', 'loading', 'loadingIndicator', 'loadingWrapper']);\nexport default iconButtonClasses;","'use client';\n\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 { unstable_useId as useId } from \"../utils/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport CircularProgress from \"../CircularProgress/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport iconButtonClasses, { getIconButtonUtilityClass } from \"./iconButtonClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disabled,\n    color,\n    edge,\n    size,\n    loading\n  } = ownerState;\n  const slots = {\n    root: ['root', loading && 'loading', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n    loadingIndicator: ['loadingIndicator'],\n    loadingWrapper: ['loadingWrapper']\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.loading && styles.loading, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  textAlign: 'center',\n  flex: '0 0 auto',\n  fontSize: theme.typography.pxToRem(24),\n  padding: 8,\n  borderRadius: '50%',\n  color: (theme.vars || theme).palette.action.active,\n  transition: theme.transitions.create('background-color', {\n    duration: theme.transitions.duration.shortest\n  }),\n  variants: [{\n    props: props => !props.disableRipple,\n    style: {\n      '--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity),\n      '&:hover': {\n        backgroundColor: 'var(--IconButton-hoverBg)',\n        // Reset on touch devices, it doesn't add specificity\n        '@media (hover: none)': {\n          backgroundColor: 'transparent'\n        }\n      }\n    }\n  }, {\n    props: {\n      edge: 'start'\n    },\n    style: {\n      marginLeft: -12\n    }\n  }, {\n    props: {\n      edge: 'start',\n      size: 'small'\n    },\n    style: {\n      marginLeft: -3\n    }\n  }, {\n    props: {\n      edge: 'end'\n    },\n    style: {\n      marginRight: -12\n    }\n  }, {\n    props: {\n      edge: 'end',\n      size: 'small'\n    },\n    style: {\n      marginRight: -3\n    }\n  }]\n})), memoTheme(({\n  theme\n}) => ({\n  variants: [{\n    props: {\n      color: 'inherit'\n    },\n    style: {\n      color: 'inherit'\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // check all the used fields in the style below\n  .map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      color: (theme.vars || theme).palette[color].main\n    }\n  })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()) // check all the used fields in the style below\n  .map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      '--IconButton-hoverBg': theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n    }\n  })), {\n    props: {\n      size: 'small'\n    },\n    style: {\n      padding: 5,\n      fontSize: theme.typography.pxToRem(18)\n    }\n  }, {\n    props: {\n      size: 'large'\n    },\n    style: {\n      padding: 12,\n      fontSize: theme.typography.pxToRem(28)\n    }\n  }],\n  [`&.${iconButtonClasses.disabled}`]: {\n    backgroundColor: 'transparent',\n    color: (theme.vars || theme).palette.action.disabled\n  },\n  [`&.${iconButtonClasses.loading}`]: {\n    color: 'transparent'\n  }\n})));\nconst IconButtonLoadingIndicator = styled('span', {\n  name: 'MuiIconButton',\n  slot: 'LoadingIndicator'\n})(({\n  theme\n}) => ({\n  display: 'none',\n  position: 'absolute',\n  visibility: 'visible',\n  top: '50%',\n  left: '50%',\n  transform: 'translate(-50%, -50%)',\n  color: (theme.vars || theme).palette.action.disabled,\n  variants: [{\n    props: {\n      loading: true\n    },\n    style: {\n      display: 'flex'\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    id: idProp,\n    loading = null,\n    loadingIndicator: loadingIndicatorProp,\n    ...other\n  } = props;\n  const loadingId = useId(idProp);\n  const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {\n    \"aria-labelledby\": loadingId,\n    color: \"inherit\",\n    size: 16\n  });\n  const ownerState = {\n    ...props,\n    edge,\n    color,\n    disabled,\n    disableFocusRipple,\n    loading,\n    loadingIndicator,\n    size\n  };\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsxs(IconButtonRoot, {\n    id: loading ? loadingId : idProp,\n    className: clsx(classes.root, className),\n    centerRipple: true,\n    focusRipple: !disableFocusRipple,\n    disabled: disabled || loading,\n    ref: ref,\n    ...other,\n    ownerState: ownerState,\n    children: [typeof loading === 'boolean' &&\n    /*#__PURE__*/\n    // use plain HTML span to minimize the runtime overhead\n    _jsx(\"span\", {\n      className: classes.loadingWrapper,\n      style: {\n        display: 'contents'\n      },\n      children: /*#__PURE__*/_jsx(IconButtonLoadingIndicator, {\n        className: classes.loadingIndicator,\n        ownerState: ownerState,\n        children: loading && loadingIndicator\n      })\n    }), 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   * @ignore\n   */\n  id: PropTypes.string,\n  /**\n   * If `true`, the loading indicator is visible and the button is disabled.\n   * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).\n   * @default null\n   */\n  loading: PropTypes.bool,\n  /**\n   * Element placed before the children if the button is in loading state.\n   * The node should contain an element with `role=\"progressbar\"` with an accessible name.\n   * By default, it renders a `CircularProgress` that is labeled by the button itself.\n   * @default <CircularProgress color=\"inherit\" size={16} />\n   */\n  loadingIndicator: PropTypes.node,\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 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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled, internal_createExtendSxProp } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { getTypographyUtilityClass } from \"./typographyClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n  primary: true,\n  secondary: true,\n  error: true,\n  info: true,\n  success: true,\n  warning: true,\n  textPrimary: true,\n  textSecondary: true,\n  textDisabled: true\n};\nconst extendSxProp = internal_createExtendSxProp();\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})(memoTheme(({\n  theme\n}) => ({\n  margin: 0,\n  variants: [{\n    props: {\n      variant: 'inherit'\n    },\n    style: {\n      // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.\n      font: 'inherit',\n      lineHeight: 'inherit',\n      letterSpacing: 'inherit'\n    }\n  }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== 'inherit' && value && typeof value === 'object').map(([variant, value]) => ({\n    props: {\n      variant\n    },\n    style: value\n  })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      color: (theme.vars || theme).palette[color].main\n    }\n  })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === 'string').map(([color]) => ({\n    props: {\n      color: `text${capitalize(color)}`\n    },\n    style: {\n      color: (theme.vars || theme).palette.text[color]\n    }\n  })), {\n    props: ({\n      ownerState\n    }) => ownerState.align !== 'inherit',\n    style: {\n      textAlign: 'var(--Typography-textAlign)'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.noWrap,\n    style: {\n      overflow: 'hidden',\n      textOverflow: 'ellipsis',\n      whiteSpace: 'nowrap'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.gutterBottom,\n    style: {\n      marginBottom: '0.35em'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.paragraph,\n    style: {\n      marginBottom: 16\n    }\n  }]\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};\nconst Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {\n  const {\n    color,\n    ...themeProps\n  } = useDefaultProps({\n    props: inProps,\n    name: 'MuiTypography'\n  });\n  const isSxColor = !v6Colors[color];\n  // TODO: Remove `extendSxProp` in v7\n  const props = extendSxProp({\n    ...themeProps,\n    ...(isSxColor && {\n      color\n    })\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    ...other\n  } = props;\n  const ownerState = {\n    ...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, {\n    as: Component,\n    ref: ref,\n    className: clsx(classes.root, className),\n    ...other,\n    ownerState: ownerState,\n    style: {\n      ...(align !== 'inherit' && {\n        '--Typography-textAlign': align\n      }),\n      ...other.style\n    }\n  });\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 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(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), 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   * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  paragraph: PropTypes.bool,\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   * 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 { extendSxProp } from '@mui/system/styleFunctionSx';\nimport useTheme from \"../styles/useTheme.js\";\nimport GlobalStyles from \"../GlobalStyles/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport { css, keyframes } from '@mui/system';\nexport { default as styled } from \"../styles/styled.js\";\nexport function globalCss(styles) {\n  return function GlobalStylesWrapper(props) {\n    return (\n      /*#__PURE__*/\n      // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.\n      _jsx(GlobalStyles, {\n        styles: typeof styles === 'function' ? theme => styles({\n          theme,\n          ...props\n        }) : styles\n      })\n    );\n  };\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_createExtendSxProp() {\n  return extendSxProp;\n}\nexport { useTheme };","/**\n * Copied from @base-ui/utils\n *\n * Shadow DOM-aware containment check.\n *\n * Native `parent.contains(child)` returns `false` when the child is inside a\n * shadow root that is a descendant of the parent. This function handles that\n * case by traversing up through shadow root hosts.\n *\n * @param parent - The potential ancestor element.\n * @param child - The potential descendant element.\n * @returns Whether `parent` contains `child`, even across shadow root boundaries.\n */\nexport default function contains(parent, child) {\n  if (!parent || !child) {\n    return false;\n  }\n\n  // First, attempt with the faster native method.\n  if (parent.contains(child)) {\n    return true;\n  }\n\n  // Then fall back to traversing out of shadow roots when needed.\n  const rootNode = child.getRootNode?.();\n  if (rootNode && rootNode instanceof ShadowRoot) {\n    let next = child;\n    while (next) {\n      if (parent === next) {\n        return true;\n      }\n      next = next.parentNode ?? next.host ?? null;\n    }\n  }\n  return false;\n}","'use client';\n\nimport * as React from 'react';\nfunction usePreviousProps(value) {\n  const ref = React.useRef({});\n  React.useEffect(() => {\n    ref.current = value;\n  });\n  return ref.current;\n}\nexport default usePreviousProps;","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];","export default function getNodeName(element) {\n  return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n  if (node == null) {\n    return window;\n  }\n\n  if (node.toString() !== '[object Window]') {\n    var ownerDocument = node.ownerDocument;\n    return ownerDocument ? ownerDocument.defaultView || window : window;\n  }\n\n  return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n  var OwnElement = getWindow(node).Element;\n  return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n  var OwnElement = getWindow(node).HTMLElement;\n  return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n  // IE 11 has no ShadowRoot\n  if (typeof ShadowRoot === 'undefined') {\n    return false;\n  }\n\n  var OwnElement = getWindow(node).ShadowRoot;\n  return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n  var state = _ref.state;\n  Object.keys(state.elements).forEach(function (name) {\n    var style = state.styles[name] || {};\n    var attributes = state.attributes[name] || {};\n    var element = state.elements[name]; // arrow is optional + virtual elements\n\n    if (!isHTMLElement(element) || !getNodeName(element)) {\n      return;\n    } // Flow doesn't support to extend this property, but it's the most\n    // effective way to apply styles to an HTMLElement\n    // $FlowFixMe[cannot-write]\n\n\n    Object.assign(element.style, style);\n    Object.keys(attributes).forEach(function (name) {\n      var value = attributes[name];\n\n      if (value === false) {\n        element.removeAttribute(name);\n      } else {\n        element.setAttribute(name, value === true ? '' : value);\n      }\n    });\n  });\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state;\n  var initialStyles = {\n    popper: {\n      position: state.options.strategy,\n      left: '0',\n      top: '0',\n      margin: '0'\n    },\n    arrow: {\n      position: 'absolute'\n    },\n    reference: {}\n  };\n  Object.assign(state.elements.popper.style, initialStyles.popper);\n  state.styles = initialStyles;\n\n  if (state.elements.arrow) {\n    Object.assign(state.elements.arrow.style, initialStyles.arrow);\n  }\n\n  return function () {\n    Object.keys(state.elements).forEach(function (name) {\n      var element = state.elements[name];\n      var attributes = state.attributes[name] || {};\n      var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n      var style = styleProperties.reduce(function (style, property) {\n        style[property] = '';\n        return style;\n      }, {}); // arrow is optional + virtual elements\n\n      if (!isHTMLElement(element) || !getNodeName(element)) {\n        return;\n      }\n\n      Object.assign(element.style, style);\n      Object.keys(attributes).forEach(function (attribute) {\n        element.removeAttribute(attribute);\n      });\n    });\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'applyStyles',\n  enabled: true,\n  phase: 'write',\n  fn: applyStyles,\n  effect: effect,\n  requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n  return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n  var uaData = navigator.userAgentData;\n\n  if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n    return uaData.brands.map(function (item) {\n      return item.brand + \"/\" + item.version;\n    }).join(' ');\n  }\n\n  return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n  return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n  if (includeScale === void 0) {\n    includeScale = false;\n  }\n\n  if (isFixedStrategy === void 0) {\n    isFixedStrategy = false;\n  }\n\n  var clientRect = element.getBoundingClientRect();\n  var scaleX = 1;\n  var scaleY = 1;\n\n  if (includeScale && isHTMLElement(element)) {\n    scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n    scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n  }\n\n  var _ref = isElement(element) ? getWindow(element) : window,\n      visualViewport = _ref.visualViewport;\n\n  var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n  var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n  var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n  var width = clientRect.width / scaleX;\n  var height = clientRect.height / scaleY;\n  return {\n    width: width,\n    height: height,\n    top: y,\n    right: x + width,\n    bottom: y + height,\n    left: x,\n    x: x,\n    y: y\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n  var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n  // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n  var width = element.offsetWidth;\n  var height = element.offsetHeight;\n\n  if (Math.abs(clientRect.width - width) <= 1) {\n    width = clientRect.width;\n  }\n\n  if (Math.abs(clientRect.height - height) <= 1) {\n    height = clientRect.height;\n  }\n\n  return {\n    x: element.offsetLeft,\n    y: element.offsetTop,\n    width: width,\n    height: height\n  };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n  var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n  if (parent.contains(child)) {\n    return true;\n  } // then fallback to custom implementation with Shadow DOM support\n  else if (rootNode && isShadowRoot(rootNode)) {\n      var next = child;\n\n      do {\n        if (next && parent.isSameNode(next)) {\n          return true;\n        } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n        next = next.parentNode || next.host;\n      } while (next);\n    } // Give up, the result is false\n\n\n  return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n  return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n  return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n  // $FlowFixMe[incompatible-return]: assume body is always available\n  return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n  element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n  if (getNodeName(element) === 'html') {\n    return element;\n  }\n\n  return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n    // $FlowFixMe[incompatible-return]\n    // $FlowFixMe[prop-missing]\n    element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n    element.parentNode || ( // DOM Element detected\n    isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n    // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n    getDocumentElement(element) // fallback\n\n  );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n  if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n  getComputedStyle(element).position === 'fixed') {\n    return null;\n  }\n\n  return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n  var isFirefox = /firefox/i.test(getUAString());\n  var isIE = /Trident/i.test(getUAString());\n\n  if (isIE && isHTMLElement(element)) {\n    // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n    var elementCss = getComputedStyle(element);\n\n    if (elementCss.position === 'fixed') {\n      return null;\n    }\n  }\n\n  var currentNode = getParentNode(element);\n\n  if (isShadowRoot(currentNode)) {\n    currentNode = currentNode.host;\n  }\n\n  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n    var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n    // create a containing block.\n    // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n    if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n      return currentNode;\n    } else {\n      currentNode = currentNode.parentNode;\n    }\n  }\n\n  return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n  var window = getWindow(element);\n  var offsetParent = getTrueOffsetParent(element);\n\n  while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n    offsetParent = getTrueOffsetParent(offsetParent);\n  }\n\n  if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n    return window;\n  }\n\n  return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n  return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n  var v = within(min, value, max);\n  return v > max ? max : v;\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n  return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function getFreshSideObject() {\n  return {\n    top: 0,\n    right: 0,\n    bottom: 0,\n    left: 0\n  };\n}","export default function expandToHashMap(value, keys) {\n  return keys.reduce(function (hashMap, key) {\n    hashMap[key] = value;\n    return hashMap;\n  }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n  padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : padding;\n  return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n  var _state$modifiersData$;\n\n  var state = _ref.state,\n      name = _ref.name,\n      options = _ref.options;\n  var arrowElement = state.elements.arrow;\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var basePlacement = getBasePlacement(state.placement);\n  var axis = getMainAxisFromPlacement(basePlacement);\n  var isVertical = [left, right].indexOf(basePlacement) >= 0;\n  var len = isVertical ? 'height' : 'width';\n\n  if (!arrowElement || !popperOffsets) {\n    return;\n  }\n\n  var paddingObject = toPaddingObject(options.padding, state);\n  var arrowRect = getLayoutRect(arrowElement);\n  var minProp = axis === 'y' ? top : left;\n  var maxProp = axis === 'y' ? bottom : right;\n  var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n  var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n  var arrowOffsetParent = getOffsetParent(arrowElement);\n  var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n  var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n  // outside of the popper bounds\n\n  var min = paddingObject[minProp];\n  var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n  var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n  var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n  var axisProp = axis;\n  state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options;\n  var _options$element = options.element,\n      arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n  if (arrowElement == null) {\n    return;\n  } // CSS selector\n\n\n  if (typeof arrowElement === 'string') {\n    arrowElement = state.elements.popper.querySelector(arrowElement);\n\n    if (!arrowElement) {\n      return;\n    }\n  }\n\n  if (!contains(state.elements.popper, arrowElement)) {\n    return;\n  }\n\n  state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'arrow',\n  enabled: true,\n  phase: 'main',\n  fn: arrow,\n  effect: effect,\n  requires: ['popperOffsets'],\n  requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n  return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n  top: 'auto',\n  right: 'auto',\n  bottom: 'auto',\n  left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n  var x = _ref.x,\n      y = _ref.y;\n  var dpr = win.devicePixelRatio || 1;\n  return {\n    x: round(x * dpr) / dpr || 0,\n    y: round(y * dpr) / dpr || 0\n  };\n}\n\nexport function mapToStyles(_ref2) {\n  var _Object$assign2;\n\n  var popper = _ref2.popper,\n      popperRect = _ref2.popperRect,\n      placement = _ref2.placement,\n      variation = _ref2.variation,\n      offsets = _ref2.offsets,\n      position = _ref2.position,\n      gpuAcceleration = _ref2.gpuAcceleration,\n      adaptive = _ref2.adaptive,\n      roundOffsets = _ref2.roundOffsets,\n      isFixed = _ref2.isFixed;\n  var _offsets$x = offsets.x,\n      x = _offsets$x === void 0 ? 0 : _offsets$x,\n      _offsets$y = offsets.y,\n      y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n  var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n    x: x,\n    y: y\n  }) : {\n    x: x,\n    y: y\n  };\n\n  x = _ref3.x;\n  y = _ref3.y;\n  var hasX = offsets.hasOwnProperty('x');\n  var hasY = offsets.hasOwnProperty('y');\n  var sideX = left;\n  var sideY = top;\n  var win = window;\n\n  if (adaptive) {\n    var offsetParent = getOffsetParent(popper);\n    var heightProp = 'clientHeight';\n    var widthProp = 'clientWidth';\n\n    if (offsetParent === getWindow(popper)) {\n      offsetParent = getDocumentElement(popper);\n\n      if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n        heightProp = 'scrollHeight';\n        widthProp = 'scrollWidth';\n      }\n    } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n    offsetParent = offsetParent;\n\n    if (placement === top || (placement === left || placement === right) && variation === end) {\n      sideY = bottom;\n      var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n      offsetParent[heightProp];\n      y -= offsetY - popperRect.height;\n      y *= gpuAcceleration ? 1 : -1;\n    }\n\n    if (placement === left || (placement === top || placement === bottom) && variation === end) {\n      sideX = right;\n      var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n      offsetParent[widthProp];\n      x -= offsetX - popperRect.width;\n      x *= gpuAcceleration ? 1 : -1;\n    }\n  }\n\n  var commonStyles = Object.assign({\n    position: position\n  }, adaptive && unsetSides);\n\n  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n    x: x,\n    y: y\n  }, getWindow(popper)) : {\n    x: x,\n    y: y\n  };\n\n  x = _ref4.x;\n  y = _ref4.y;\n\n  if (gpuAcceleration) {\n    var _Object$assign;\n\n    return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n  }\n\n  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n  var state = _ref5.state,\n      options = _ref5.options;\n  var _options$gpuAccelerat = options.gpuAcceleration,\n      gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n      _options$adaptive = options.adaptive,\n      adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n      _options$roundOffsets = options.roundOffsets,\n      roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n  var commonStyles = {\n    placement: getBasePlacement(state.placement),\n    variation: getVariation(state.placement),\n    popper: state.elements.popper,\n    popperRect: state.rects.popper,\n    gpuAcceleration: gpuAcceleration,\n    isFixed: state.options.strategy === 'fixed'\n  };\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.popperOffsets,\n      position: state.options.strategy,\n      adaptive: adaptive,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  if (state.modifiersData.arrow != null) {\n    state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n      offsets: state.modifiersData.arrow,\n      position: 'absolute',\n      adaptive: false,\n      roundOffsets: roundOffsets\n    })));\n  }\n\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-placement': state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'computeStyles',\n  enabled: true,\n  phase: 'beforeWrite',\n  fn: computeStyles,\n  data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n  passive: true\n};\n\nfunction effect(_ref) {\n  var state = _ref.state,\n      instance = _ref.instance,\n      options = _ref.options;\n  var _options$scroll = options.scroll,\n      scroll = _options$scroll === void 0 ? true : _options$scroll,\n      _options$resize = options.resize,\n      resize = _options$resize === void 0 ? true : _options$resize;\n  var window = getWindow(state.elements.popper);\n  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n  if (scroll) {\n    scrollParents.forEach(function (scrollParent) {\n      scrollParent.addEventListener('scroll', instance.update, passive);\n    });\n  }\n\n  if (resize) {\n    window.addEventListener('resize', instance.update, passive);\n  }\n\n  return function () {\n    if (scroll) {\n      scrollParents.forEach(function (scrollParent) {\n        scrollParent.removeEventListener('scroll', instance.update, passive);\n      });\n    }\n\n    if (resize) {\n      window.removeEventListener('resize', instance.update, passive);\n    }\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'eventListeners',\n  enabled: true,\n  phase: 'write',\n  fn: function fn() {},\n  effect: effect,\n  data: {}\n};","var hash = {\n  left: 'right',\n  right: 'left',\n  bottom: 'top',\n  top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n  return placement.replace(/left|right|bottom|top/g, function (matched) {\n    return hash[matched];\n  });\n}","var hash = {\n  start: 'end',\n  end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n  return placement.replace(/start|end/g, function (matched) {\n    return hash[matched];\n  });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n  var win = getWindow(node);\n  var scrollLeft = win.pageXOffset;\n  var scrollTop = win.pageYOffset;\n  return {\n    scrollLeft: scrollLeft,\n    scrollTop: scrollTop\n  };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n  // If <html> has a CSS width greater than the viewport, then this will be\n  // incorrect for RTL.\n  // Popper 1 is broken in this case and never had a bug report so let's assume\n  // it's not an issue. I don't think anyone ever specifies width on <html>\n  // anyway.\n  // Browsers where the left scrollbar doesn't cause an issue report `0` for\n  // this (e.g. Edge 2019, IE11, Safari)\n  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n  // Firefox wants us to check `-x` and `-y` variations as well\n  var _getComputedStyle = getComputedStyle(element),\n      overflow = _getComputedStyle.overflow,\n      overflowX = _getComputedStyle.overflowX,\n      overflowY = _getComputedStyle.overflowY;\n\n  return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n  if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n    // $FlowFixMe[incompatible-return]: assume body is always available\n    return node.ownerDocument.body;\n  }\n\n  if (isHTMLElement(node) && isScrollParent(node)) {\n    return node;\n  }\n\n  return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n  var _element$ownerDocumen;\n\n  if (list === void 0) {\n    list = [];\n  }\n\n  var scrollParent = getScrollParent(element);\n  var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n  var win = getWindow(scrollParent);\n  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n  var updatedList = list.concat(target);\n  return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n  updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n  return Object.assign({}, rect, {\n    left: rect.x,\n    top: rect.y,\n    right: rect.x + rect.width,\n    bottom: rect.y + rect.height\n  });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n  var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n  rect.top = rect.top + element.clientTop;\n  rect.left = rect.left + element.clientLeft;\n  rect.bottom = rect.top + element.clientHeight;\n  rect.right = rect.left + element.clientWidth;\n  rect.width = element.clientWidth;\n  rect.height = element.clientHeight;\n  rect.x = rect.left;\n  rect.y = rect.top;\n  return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n  return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n  var clippingParents = listScrollParents(getParentNode(element));\n  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n  var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n  if (!isElement(clipperElement)) {\n    return [];\n  } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n  return clippingParents.filter(function (clippingParent) {\n    return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n  });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n  var firstClippingParent = clippingParents[0];\n  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n    var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n    accRect.top = max(rect.top, accRect.top);\n    accRect.right = min(rect.right, accRect.right);\n    accRect.bottom = min(rect.bottom, accRect.bottom);\n    accRect.left = max(rect.left, accRect.left);\n    return accRect;\n  }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n  clippingRect.width = clippingRect.right - clippingRect.left;\n  clippingRect.height = clippingRect.bottom - clippingRect.top;\n  clippingRect.x = clippingRect.left;\n  clippingRect.y = clippingRect.top;\n  return clippingRect;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n  var win = getWindow(element);\n  var html = getDocumentElement(element);\n  var visualViewport = win.visualViewport;\n  var width = html.clientWidth;\n  var height = html.clientHeight;\n  var x = 0;\n  var y = 0;\n\n  if (visualViewport) {\n    width = visualViewport.width;\n    height = visualViewport.height;\n    var layoutViewport = isLayoutViewport();\n\n    if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n      x = visualViewport.offsetLeft;\n      y = visualViewport.offsetTop;\n    }\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x + getWindowScrollBarX(element),\n    y: y\n  };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n  var _element$ownerDocumen;\n\n  var html = getDocumentElement(element);\n  var winScroll = getWindowScroll(element);\n  var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n  var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n  var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n  var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n  var y = -winScroll.scrollTop;\n\n  if (getComputedStyle(body || html).direction === 'rtl') {\n    x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n  }\n\n  return {\n    width: width,\n    height: height,\n    x: x,\n    y: y\n  };\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n  var reference = _ref.reference,\n      element = _ref.element,\n      placement = _ref.placement;\n  var basePlacement = placement ? getBasePlacement(placement) : null;\n  var variation = placement ? getVariation(placement) : null;\n  var commonX = reference.x + reference.width / 2 - element.width / 2;\n  var commonY = reference.y + reference.height / 2 - element.height / 2;\n  var offsets;\n\n  switch (basePlacement) {\n    case top:\n      offsets = {\n        x: commonX,\n        y: reference.y - element.height\n      };\n      break;\n\n    case bottom:\n      offsets = {\n        x: commonX,\n        y: reference.y + reference.height\n      };\n      break;\n\n    case right:\n      offsets = {\n        x: reference.x + reference.width,\n        y: commonY\n      };\n      break;\n\n    case left:\n      offsets = {\n        x: reference.x - element.width,\n        y: commonY\n      };\n      break;\n\n    default:\n      offsets = {\n        x: reference.x,\n        y: reference.y\n      };\n  }\n\n  var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n  if (mainAxis != null) {\n    var len = mainAxis === 'y' ? 'height' : 'width';\n\n    switch (variation) {\n      case start:\n        offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n        break;\n\n      case end:\n        offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n        break;\n\n      default:\n    }\n  }\n\n  return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      _options$placement = _options.placement,\n      placement = _options$placement === void 0 ? state.placement : _options$placement,\n      _options$strategy = _options.strategy,\n      strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n      _options$boundary = _options.boundary,\n      boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n      _options$rootBoundary = _options.rootBoundary,\n      rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n      _options$elementConte = _options.elementContext,\n      elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n      _options$altBoundary = _options.altBoundary,\n      altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n      _options$padding = _options.padding,\n      padding = _options$padding === void 0 ? 0 : _options$padding;\n  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n  var altContext = elementContext === popper ? reference : popper;\n  var popperRect = state.rects.popper;\n  var element = state.elements[altBoundary ? altContext : elementContext];\n  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n  var referenceClientRect = getBoundingClientRect(state.elements.reference);\n  var popperOffsets = computeOffsets({\n    reference: referenceClientRect,\n    element: popperRect,\n    strategy: 'absolute',\n    placement: placement\n  });\n  var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n  var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n  // 0 or negative = within the clipping rect\n\n  var overflowOffsets = {\n    top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n    bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n    left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n    right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n  };\n  var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n  if (elementContext === popper && offsetData) {\n    var offset = offsetData[placement];\n    Object.keys(overflowOffsets).forEach(function (key) {\n      var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n      var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n      overflowOffsets[key] += offset[axis] * multiply;\n    });\n  }\n\n  return overflowOffsets;\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n  if (getBasePlacement(placement) === auto) {\n    return [];\n  }\n\n  var oppositePlacement = getOppositePlacement(placement);\n  return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n\n  if (state.modifiersData[name]._skip) {\n    return;\n  }\n\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n      specifiedFallbackPlacements = options.fallbackPlacements,\n      padding = options.padding,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      _options$flipVariatio = options.flipVariations,\n      flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n      allowedAutoPlacements = options.allowedAutoPlacements;\n  var preferredPlacement = state.options.placement;\n  var basePlacement = getBasePlacement(preferredPlacement);\n  var isBasePlacement = basePlacement === preferredPlacement;\n  var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n  var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n    return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding,\n      flipVariations: flipVariations,\n      allowedAutoPlacements: allowedAutoPlacements\n    }) : placement);\n  }, []);\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var checksMap = new Map();\n  var makeFallbackChecks = true;\n  var firstFittingPlacement = placements[0];\n\n  for (var i = 0; i < placements.length; i++) {\n    var placement = placements[i];\n\n    var _basePlacement = getBasePlacement(placement);\n\n    var isStartVariation = getVariation(placement) === start;\n    var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n    var len = isVertical ? 'width' : 'height';\n    var overflow = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      altBoundary: altBoundary,\n      padding: padding\n    });\n    var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n    if (referenceRect[len] > popperRect[len]) {\n      mainVariationSide = getOppositePlacement(mainVariationSide);\n    }\n\n    var altVariationSide = getOppositePlacement(mainVariationSide);\n    var checks = [];\n\n    if (checkMainAxis) {\n      checks.push(overflow[_basePlacement] <= 0);\n    }\n\n    if (checkAltAxis) {\n      checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n    }\n\n    if (checks.every(function (check) {\n      return check;\n    })) {\n      firstFittingPlacement = placement;\n      makeFallbackChecks = false;\n      break;\n    }\n\n    checksMap.set(placement, checks);\n  }\n\n  if (makeFallbackChecks) {\n    // `2` may be desired in some cases – research later\n    var numberOfChecks = flipVariations ? 3 : 1;\n\n    var _loop = function _loop(_i) {\n      var fittingPlacement = placements.find(function (placement) {\n        var checks = checksMap.get(placement);\n\n        if (checks) {\n          return checks.slice(0, _i).every(function (check) {\n            return check;\n          });\n        }\n      });\n\n      if (fittingPlacement) {\n        firstFittingPlacement = fittingPlacement;\n        return \"break\";\n      }\n    };\n\n    for (var _i = numberOfChecks; _i > 0; _i--) {\n      var _ret = _loop(_i);\n\n      if (_ret === \"break\") break;\n    }\n  }\n\n  if (state.placement !== firstFittingPlacement) {\n    state.modifiersData[name]._skip = true;\n    state.placement = firstFittingPlacement;\n    state.reset = true;\n  }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'flip',\n  enabled: true,\n  phase: 'main',\n  fn: flip,\n  requiresIfExists: ['offset'],\n  data: {\n    _skip: false\n  }\n};","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n  if (options === void 0) {\n    options = {};\n  }\n\n  var _options = options,\n      placement = _options.placement,\n      boundary = _options.boundary,\n      rootBoundary = _options.rootBoundary,\n      padding = _options.padding,\n      flipVariations = _options.flipVariations,\n      _options$allowedAutoP = _options.allowedAutoPlacements,\n      allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n  var variation = getVariation(placement);\n  var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n    return getVariation(placement) === variation;\n  }) : basePlacements;\n  var allowedPlacements = placements.filter(function (placement) {\n    return allowedAutoPlacements.indexOf(placement) >= 0;\n  });\n\n  if (allowedPlacements.length === 0) {\n    allowedPlacements = placements;\n  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n  var overflows = allowedPlacements.reduce(function (acc, placement) {\n    acc[placement] = detectOverflow(state, {\n      placement: placement,\n      boundary: boundary,\n      rootBoundary: rootBoundary,\n      padding: padding\n    })[getBasePlacement(placement)];\n    return acc;\n  }, {});\n  return Object.keys(overflows).sort(function (a, b) {\n    return overflows[a] - overflows[b];\n  });\n}","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n  if (preventedOffsets === void 0) {\n    preventedOffsets = {\n      x: 0,\n      y: 0\n    };\n  }\n\n  return {\n    top: overflow.top - rect.height - preventedOffsets.y,\n    right: overflow.right - rect.width + preventedOffsets.x,\n    bottom: overflow.bottom - rect.height + preventedOffsets.y,\n    left: overflow.left - rect.width - preventedOffsets.x\n  };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n  return [top, right, bottom, left].some(function (side) {\n    return overflow[side] >= 0;\n  });\n}\n\nfunction hide(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var preventedOffsets = state.modifiersData.preventOverflow;\n  var referenceOverflow = detectOverflow(state, {\n    elementContext: 'reference'\n  });\n  var popperAltOverflow = detectOverflow(state, {\n    altBoundary: true\n  });\n  var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n  var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n  var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n  var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n  state.modifiersData[name] = {\n    referenceClippingOffsets: referenceClippingOffsets,\n    popperEscapeOffsets: popperEscapeOffsets,\n    isReferenceHidden: isReferenceHidden,\n    hasPopperEscaped: hasPopperEscaped\n  };\n  state.attributes.popper = Object.assign({}, state.attributes.popper, {\n    'data-popper-reference-hidden': isReferenceHidden,\n    'data-popper-escaped': hasPopperEscaped\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'hide',\n  enabled: true,\n  phase: 'main',\n  requiresIfExists: ['preventOverflow'],\n  fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n  var basePlacement = getBasePlacement(placement);\n  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n  var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n    placement: placement\n  })) : offset,\n      skidding = _ref[0],\n      distance = _ref[1];\n\n  skidding = skidding || 0;\n  distance = (distance || 0) * invertDistance;\n  return [left, right].indexOf(basePlacement) >= 0 ? {\n    x: distance,\n    y: skidding\n  } : {\n    x: skidding,\n    y: distance\n  };\n}\n\nfunction offset(_ref2) {\n  var state = _ref2.state,\n      options = _ref2.options,\n      name = _ref2.name;\n  var _options$offset = options.offset,\n      offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n  var data = placements.reduce(function (acc, placement) {\n    acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n    return acc;\n  }, {});\n  var _data$state$placement = data[state.placement],\n      x = _data$state$placement.x,\n      y = _data$state$placement.y;\n\n  if (state.modifiersData.popperOffsets != null) {\n    state.modifiersData.popperOffsets.x += x;\n    state.modifiersData.popperOffsets.y += y;\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'offset',\n  enabled: true,\n  phase: 'main',\n  requires: ['popperOffsets'],\n  fn: offset\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n  var state = _ref.state,\n      options = _ref.options,\n      name = _ref.name;\n  var _options$mainAxis = options.mainAxis,\n      checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n      _options$altAxis = options.altAxis,\n      checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n      boundary = options.boundary,\n      rootBoundary = options.rootBoundary,\n      altBoundary = options.altBoundary,\n      padding = options.padding,\n      _options$tether = options.tether,\n      tether = _options$tether === void 0 ? true : _options$tether,\n      _options$tetherOffset = options.tetherOffset,\n      tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n  var overflow = detectOverflow(state, {\n    boundary: boundary,\n    rootBoundary: rootBoundary,\n    padding: padding,\n    altBoundary: altBoundary\n  });\n  var basePlacement = getBasePlacement(state.placement);\n  var variation = getVariation(state.placement);\n  var isBasePlacement = !variation;\n  var mainAxis = getMainAxisFromPlacement(basePlacement);\n  var altAxis = getAltAxis(mainAxis);\n  var popperOffsets = state.modifiersData.popperOffsets;\n  var referenceRect = state.rects.reference;\n  var popperRect = state.rects.popper;\n  var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n    placement: state.placement\n  })) : tetherOffset;\n  var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n    mainAxis: tetherOffsetValue,\n    altAxis: tetherOffsetValue\n  } : Object.assign({\n    mainAxis: 0,\n    altAxis: 0\n  }, tetherOffsetValue);\n  var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n  var data = {\n    x: 0,\n    y: 0\n  };\n\n  if (!popperOffsets) {\n    return;\n  }\n\n  if (checkMainAxis) {\n    var _offsetModifierState$;\n\n    var mainSide = mainAxis === 'y' ? top : left;\n    var altSide = mainAxis === 'y' ? bottom : right;\n    var len = mainAxis === 'y' ? 'height' : 'width';\n    var offset = popperOffsets[mainAxis];\n    var min = offset + overflow[mainSide];\n    var max = offset - overflow[altSide];\n    var additive = tether ? -popperRect[len] / 2 : 0;\n    var minLen = variation === start ? referenceRect[len] : popperRect[len];\n    var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n    // outside the reference bounds\n\n    var arrowElement = state.elements.arrow;\n    var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n      width: 0,\n      height: 0\n    };\n    var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n    var arrowPaddingMin = arrowPaddingObject[mainSide];\n    var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n    // to include its full size in the calculation. If the reference is small\n    // and near the edge of a boundary, the popper can overflow even if the\n    // reference is not overflowing as well (e.g. virtual elements with no\n    // width or height)\n\n    var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n    var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n    var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n    var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n    var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n    var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n    var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n    var tetherMax = offset + maxOffset - offsetModifierValue;\n    var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n    popperOffsets[mainAxis] = preventedOffset;\n    data[mainAxis] = preventedOffset - offset;\n  }\n\n  if (checkAltAxis) {\n    var _offsetModifierState$2;\n\n    var _mainSide = mainAxis === 'x' ? top : left;\n\n    var _altSide = mainAxis === 'x' ? bottom : right;\n\n    var _offset = popperOffsets[altAxis];\n\n    var _len = altAxis === 'y' ? 'height' : 'width';\n\n    var _min = _offset + overflow[_mainSide];\n\n    var _max = _offset - overflow[_altSide];\n\n    var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n    var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n    var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n    var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n    var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n    popperOffsets[altAxis] = _preventedOffset;\n    data[altAxis] = _preventedOffset - _offset;\n  }\n\n  state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'preventOverflow',\n  enabled: true,\n  phase: 'main',\n  fn: preventOverflow,\n  requiresIfExists: ['offset']\n};","export default function getAltAxis(axis) {\n  return axis === 'x' ? 'y' : 'x';\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n  var rect = element.getBoundingClientRect();\n  var scaleX = round(rect.width) / element.offsetWidth || 1;\n  var scaleY = round(rect.height) / element.offsetHeight || 1;\n  return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n  if (isFixed === void 0) {\n    isFixed = false;\n  }\n\n  var isOffsetParentAnElement = isHTMLElement(offsetParent);\n  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n  var documentElement = getDocumentElement(offsetParent);\n  var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n  var scroll = {\n    scrollLeft: 0,\n    scrollTop: 0\n  };\n  var offsets = {\n    x: 0,\n    y: 0\n  };\n\n  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n    if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n    isScrollParent(documentElement)) {\n      scroll = getNodeScroll(offsetParent);\n    }\n\n    if (isHTMLElement(offsetParent)) {\n      offsets = getBoundingClientRect(offsetParent, true);\n      offsets.x += offsetParent.clientLeft;\n      offsets.y += offsetParent.clientTop;\n    } else if (documentElement) {\n      offsets.x = getWindowScrollBarX(documentElement);\n    }\n  }\n\n  return {\n    x: rect.left + scroll.scrollLeft - offsets.x,\n    y: rect.top + scroll.scrollTop - offsets.y,\n    width: rect.width,\n    height: rect.height\n  };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n  if (node === getWindow(node) || !isHTMLElement(node)) {\n    return getWindowScroll(node);\n  } else {\n    return getHTMLElementScroll(node);\n  }\n}","export default function getHTMLElementScroll(element) {\n  return {\n    scrollLeft: element.scrollLeft,\n    scrollTop: element.scrollTop\n  };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n  var map = new Map();\n  var visited = new Set();\n  var result = [];\n  modifiers.forEach(function (modifier) {\n    map.set(modifier.name, modifier);\n  }); // On visiting object, check for its dependencies and visit them recursively\n\n  function sort(modifier) {\n    visited.add(modifier.name);\n    var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n    requires.forEach(function (dep) {\n      if (!visited.has(dep)) {\n        var depModifier = map.get(dep);\n\n        if (depModifier) {\n          sort(depModifier);\n        }\n      }\n    });\n    result.push(modifier);\n  }\n\n  modifiers.forEach(function (modifier) {\n    if (!visited.has(modifier.name)) {\n      // check for visited object\n      sort(modifier);\n    }\n  });\n  return result;\n}\n\nexport default function orderModifiers(modifiers) {\n  // order based on dependencies\n  var orderedModifiers = order(modifiers); // order based on phase\n\n  return modifierPhases.reduce(function (acc, phase) {\n    return acc.concat(orderedModifiers.filter(function (modifier) {\n      return modifier.phase === phase;\n    }));\n  }, []);\n}","export default function debounce(fn) {\n  var pending;\n  return function () {\n    if (!pending) {\n      pending = new Promise(function (resolve) {\n        Promise.resolve().then(function () {\n          pending = undefined;\n          resolve(fn());\n        });\n      });\n    }\n\n    return pending;\n  };\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n  placement: 'bottom',\n  modifiers: [],\n  strategy: 'absolute'\n};\n\nfunction areValidElements() {\n  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n    args[_key] = arguments[_key];\n  }\n\n  return !args.some(function (element) {\n    return !(element && typeof element.getBoundingClientRect === 'function');\n  });\n}\n\nexport function popperGenerator(generatorOptions) {\n  if (generatorOptions === void 0) {\n    generatorOptions = {};\n  }\n\n  var _generatorOptions = generatorOptions,\n      _generatorOptions$def = _generatorOptions.defaultModifiers,\n      defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n      _generatorOptions$def2 = _generatorOptions.defaultOptions,\n      defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n  return function createPopper(reference, popper, options) {\n    if (options === void 0) {\n      options = defaultOptions;\n    }\n\n    var state = {\n      placement: 'bottom',\n      orderedModifiers: [],\n      options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n      modifiersData: {},\n      elements: {\n        reference: reference,\n        popper: popper\n      },\n      attributes: {},\n      styles: {}\n    };\n    var effectCleanupFns = [];\n    var isDestroyed = false;\n    var instance = {\n      state: state,\n      setOptions: function setOptions(setOptionsAction) {\n        var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n        cleanupModifierEffects();\n        state.options = Object.assign({}, defaultOptions, state.options, options);\n        state.scrollParents = {\n          reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n          popper: listScrollParents(popper)\n        }; // Orders the modifiers based on their dependencies and `phase`\n        // properties\n\n        var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n        state.orderedModifiers = orderedModifiers.filter(function (m) {\n          return m.enabled;\n        });\n        runModifierEffects();\n        return instance.update();\n      },\n      // Sync update – it will always be executed, even if not necessary. This\n      // is useful for low frequency updates where sync behavior simplifies the\n      // logic.\n      // For high frequency updates (e.g. `resize` and `scroll` events), always\n      // prefer the async Popper#update method\n      forceUpdate: function forceUpdate() {\n        if (isDestroyed) {\n          return;\n        }\n\n        var _state$elements = state.elements,\n            reference = _state$elements.reference,\n            popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n        // anymore\n\n        if (!areValidElements(reference, popper)) {\n          return;\n        } // Store the reference and popper rects to be read by modifiers\n\n\n        state.rects = {\n          reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n          popper: getLayoutRect(popper)\n        }; // Modifiers have the ability to reset the current update cycle. The\n        // most common use case for this is the `flip` modifier changing the\n        // placement, which then needs to re-run all the modifiers, because the\n        // logic was previously ran for the previous placement and is therefore\n        // stale/incorrect\n\n        state.reset = false;\n        state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n        // is filled with the initial data specified by the modifier. This means\n        // it doesn't persist and is fresh on each update.\n        // To ensure persistent data, use `${name}#persistent`\n\n        state.orderedModifiers.forEach(function (modifier) {\n          return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n        });\n\n        for (var index = 0; index < state.orderedModifiers.length; index++) {\n          if (state.reset === true) {\n            state.reset = false;\n            index = -1;\n            continue;\n          }\n\n          var _state$orderedModifie = state.orderedModifiers[index],\n              fn = _state$orderedModifie.fn,\n              _state$orderedModifie2 = _state$orderedModifie.options,\n              _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n              name = _state$orderedModifie.name;\n\n          if (typeof fn === 'function') {\n            state = fn({\n              state: state,\n              options: _options,\n              name: name,\n              instance: instance\n            }) || state;\n          }\n        }\n      },\n      // Async and optimistically optimized update – it will not be executed if\n      // not necessary (debounced to run at most once-per-tick)\n      update: debounce(function () {\n        return new Promise(function (resolve) {\n          instance.forceUpdate();\n          resolve(state);\n        });\n      }),\n      destroy: function destroy() {\n        cleanupModifierEffects();\n        isDestroyed = true;\n      }\n    };\n\n    if (!areValidElements(reference, popper)) {\n      return instance;\n    }\n\n    instance.setOptions(options).then(function (state) {\n      if (!isDestroyed && options.onFirstUpdate) {\n        options.onFirstUpdate(state);\n      }\n    }); // Modifiers have the ability to execute arbitrary code before the first\n    // update cycle runs. They will be executed in the same order as the update\n    // cycle. This is useful when a modifier adds some persistent data that\n    // other modifiers need to use, but the modifier is run after the dependent\n    // one.\n\n    function runModifierEffects() {\n      state.orderedModifiers.forEach(function (_ref) {\n        var name = _ref.name,\n            _ref$options = _ref.options,\n            options = _ref$options === void 0 ? {} : _ref$options,\n            effect = _ref.effect;\n\n        if (typeof effect === 'function') {\n          var cleanupFn = effect({\n            state: state,\n            name: name,\n            instance: instance,\n            options: options\n          });\n\n          var noopFn = function noopFn() {};\n\n          effectCleanupFns.push(cleanupFn || noopFn);\n        }\n      });\n    }\n\n    function cleanupModifierEffects() {\n      effectCleanupFns.forEach(function (fn) {\n        return fn();\n      });\n      effectCleanupFns = [];\n    }\n\n    return instance;\n  };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n  defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","export default function mergeByName(modifiers) {\n  var merged = modifiers.reduce(function (merged, current) {\n    var existing = merged[current.name];\n    merged[current.name] = existing ? Object.assign({}, existing, current, {\n      options: Object.assign({}, existing.options, current.options),\n      data: Object.assign({}, existing.data, current.data)\n    }) : current;\n    return merged;\n  }, {}); // IE11 does not support Object.values\n\n  return Object.keys(merged).map(function (key) {\n    return merged[key];\n  });\n}","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n  var state = _ref.state,\n      name = _ref.name;\n  // Offsets are the actual position the popper needs to have to be\n  // properly positioned near its reference element\n  // This is the most basic placement, and will be adjusted by\n  // the modifiers in the next step\n  state.modifiersData[name] = computeOffsets({\n    reference: state.rects.reference,\n    element: state.rects.popper,\n    strategy: 'absolute',\n    placement: state.placement\n  });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'popperOffsets',\n  enabled: true,\n  phase: 'read',\n  fn: popperOffsets,\n  data: {}\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    return 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?.ref || null;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useForkRef from '@mui/utils/useForkRef';\nimport setRef from '@mui/utils/setRef';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport exactProp from '@mui/utils/exactProp';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\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://v7.mui.com/material-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://v7.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 children;\n  }\n  return mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode;\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;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getPopperUtilityClass(slot) {\n  return generateUtilityClass('MuiPopper', slot);\n}\nconst popperClasses = generateUtilityClasses('MuiPopper', ['root']);\nexport default popperClasses;","'use client';\n\nimport * as React from 'react';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useForkRef from '@mui/utils/useForkRef';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport refType from '@mui/utils/refType';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport isLayoutSupported from \"../utils/isLayoutSupported.js\";\nimport Portal from \"../Portal/index.js\";\nimport { getPopperUtilityClass } from \"./popperClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n  if (direction === 'ltr') {\n    return placement;\n  }\n  switch (placement) {\n    case 'bottom-end':\n      return 'bottom-start';\n    case 'bottom-start':\n      return 'bottom-end';\n    case 'top-end':\n      return 'top-start';\n    case 'top-start':\n      return 'top-end';\n    default:\n      return placement;\n  }\n}\nfunction resolveAnchorEl(anchorEl) {\n  return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n  return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n  return !isHTMLElement(element);\n}\nconst useUtilityClasses = ownerState => {\n  const {\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root']\n  };\n  return composeClasses(slots, getPopperUtilityClass, classes);\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n  const {\n    anchorEl,\n    children,\n    direction,\n    disablePortal,\n    modifiers,\n    open,\n    placement: initialPlacement,\n    popperOptions,\n    popperRef: popperRefProp,\n    slotProps = {},\n    slots = {},\n    TransitionProps,\n    // @ts-ignore internal logic\n    ownerState: ownerStateProp,\n    // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n    ...other\n  } = props;\n  const tooltipRef = React.useRef(null);\n  const ownRef = useForkRef(tooltipRef, forwardedRef);\n  const popperRef = React.useRef(null);\n  const handlePopperRef = useForkRef(popperRef, popperRefProp);\n  const handlePopperRefRef = React.useRef(handlePopperRef);\n  useEnhancedEffect(() => {\n    handlePopperRefRef.current = handlePopperRef;\n  }, [handlePopperRef]);\n  React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n  const rtlPlacement = flipPlacement(initialPlacement, direction);\n  /**\n   * placement initialized from prop but can change during lifetime if modifiers.flip.\n   * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n   */\n  const [placement, setPlacement] = React.useState(rtlPlacement);\n  const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n  React.useEffect(() => {\n    if (popperRef.current) {\n      popperRef.current.forceUpdate();\n    }\n  });\n  React.useEffect(() => {\n    if (anchorEl) {\n      setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n    }\n  }, [anchorEl]);\n  useEnhancedEffect(() => {\n    if (!resolvedAnchorElement || !open) {\n      return undefined;\n    }\n    const handlePopperUpdate = data => {\n      setPlacement(data.placement);\n    };\n    if (process.env.NODE_ENV !== 'production') {\n      if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n        const box = resolvedAnchorElement.getBoundingClientRect();\n        if (isLayoutSupported() && 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    }\n    let popperModifiers = [{\n      name: 'preventOverflow',\n      options: {\n        altBoundary: disablePortal\n      }\n    }, {\n      name: 'flip',\n      options: {\n        altBoundary: disablePortal\n      }\n    }, {\n      name: 'onUpdate',\n      enabled: true,\n      phase: 'afterWrite',\n      fn: ({\n        state\n      }) => {\n        handlePopperUpdate(state);\n      }\n    }];\n    if (modifiers != null) {\n      popperModifiers = popperModifiers.concat(modifiers);\n    }\n    if (popperOptions && popperOptions.modifiers != null) {\n      popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n    }\n    const popper = createPopper(resolvedAnchorElement, tooltipRef.current, {\n      placement: rtlPlacement,\n      ...popperOptions,\n      modifiers: popperModifiers\n    });\n    handlePopperRefRef.current(popper);\n    const popperElement = tooltipRef.current;\n    return () => {\n      // popper.destroy() clears all inline positioning via the applyStyles\n      // modifier cleanup, which causes the element to jump to its static\n      // position. Snapshot and restore only the positioning properties so the\n      // element stays in place during the destroy/recreate gap (prevents scroll\n      // jumps when a child focuses between the two).\n      // https://github.com/mui/mui-x/issues/21839\n      if (popperElement) {\n        const {\n          style\n        } = popperElement;\n        const position = style.position;\n        const top = style.top;\n        const left = style.left;\n        const transform = style.transform;\n        popper.destroy();\n        style.position = position;\n        style.top = top;\n        style.left = left;\n        style.transform = transform;\n      } else {\n        popper.destroy();\n      }\n      handlePopperRefRef.current(null);\n    };\n  }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n  const childProps = {\n    placement: placement\n  };\n  if (TransitionProps !== null) {\n    childProps.TransitionProps = TransitionProps;\n  }\n  const classes = useUtilityClasses(props);\n  const Root = slots.root ?? 'div';\n  const rootProps = useSlotProps({\n    elementType: Root,\n    externalSlotProps: slotProps.root,\n    externalForwardedProps: other,\n    additionalProps: {\n      role: 'tooltip',\n      ref: ownRef\n    },\n    ownerState: props,\n    className: classes.root\n  });\n  return /*#__PURE__*/_jsx(Root, {\n    ...rootProps,\n    children: typeof children === 'function' ? children(childProps) : children\n  });\n});\n\n/**\n * @ignore - internal component.\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n  const {\n    anchorEl,\n    children,\n    container: containerProp,\n    direction = 'ltr',\n    disablePortal = false,\n    keepMounted = false,\n    modifiers,\n    open,\n    placement = 'bottom',\n    popperOptions = defaultPopperOptions,\n    popperRef,\n    style,\n    transition = false,\n    slotProps = {},\n    slots = {},\n    ...other\n  } = props;\n  const [exited, setExited] = React.useState(true);\n  const handleEnter = () => {\n    setExited(false);\n  };\n  const handleExited = () => {\n    setExited(true);\n  };\n  if (!keepMounted && !open && (!transition || exited)) {\n    return null;\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  let container;\n  if (containerProp) {\n    container = containerProp;\n  } else if (anchorEl) {\n    const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n    container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n  }\n  const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n  const transitionProps = transition ? {\n    in: open,\n    onEnter: handleEnter,\n    onExited: handleExited\n  } : undefined;\n  return /*#__PURE__*/_jsx(Portal, {\n    disablePortal: disablePortal,\n    container: container,\n    children: /*#__PURE__*/_jsx(PopperTooltip, {\n      anchorEl: anchorEl,\n      direction: direction,\n      disablePortal: disablePortal,\n      modifiers: modifiers,\n      ref: forwardedRef,\n      open: transition ? !exited : open,\n      placement: placement,\n      popperOptions: popperOptions,\n      popperRef: popperRef,\n      slotProps: slotProps,\n      slots: slots,\n      ...other,\n      style: {\n        // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n        position: 'fixed',\n        // Fix Popper.js display issue\n        top: 0,\n        left: 0,\n        display,\n        ...style\n      },\n      TransitionProps: transitionProps,\n      children: children\n    })\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.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   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   * The return value will passed as the reference object of the Popper instance.\n   */\n  anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n    if (props.open) {\n      const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n      if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n        const box = resolvedAnchorEl.getBoundingClientRect();\n        if (process.env.NODE_ENV !== 'production') {\n          if (isLayoutSupported() && 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        }\n      } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n        return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n      }\n    }\n    return null;\n  }),\n  /**\n   * Popper render function or node.\n   */\n  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\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   * Direction of the text.\n   * @default 'ltr'\n   */\n  direction: PropTypes.oneOf(['ltr', 'rtl']),\n  /**\n   * The `children` will be under the DOM hierarchy of the parent component.\n   * @default false\n   */\n  disablePortal: 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 Popper.\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * Popper.js is based on a \"plugin-like\" architecture,\n   * most of its features are fully encapsulated \"modifiers\".\n   *\n   * A modifier is a function that is called each time Popper.js needs to\n   * compute the position of the popper.\n   * For this reason, modifiers should be very performant to avoid bottlenecks.\n   * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n   */\n  modifiers: PropTypes.arrayOf(PropTypes.shape({\n    data: PropTypes.object,\n    effect: PropTypes.func,\n    enabled: PropTypes.bool,\n    fn: PropTypes.func,\n    name: PropTypes.any,\n    options: PropTypes.object,\n    phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n    requires: PropTypes.arrayOf(PropTypes.string),\n    requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n  })),\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * Popper placement.\n   * @default 'bottom'\n   */\n  placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n  /**\n   * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n   * @default {}\n   */\n  popperOptions: PropTypes.shape({\n    modifiers: PropTypes.array,\n    onFirstUpdate: PropTypes.func,\n    placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n    strategy: PropTypes.oneOf(['absolute', 'fixed'])\n  }),\n  /**\n   * A ref that points to the used popper instance.\n   */\n  popperRef: refType,\n  /**\n   * The props used for each slot inside the Popper.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Popper.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    root: PropTypes.elementType\n  }),\n  /**\n   * Help supporting a react-transition-group/Transition component.\n   * @default false\n   */\n  transition: PropTypes.bool\n} : void 0;\nexport default Popper;","'use client';\n\nimport useForkRef from \"../useForkRef/index.js\";\nimport appendOwnerState from \"../appendOwnerState/index.js\";\nimport mergeSlotProps from \"../mergeSlotProps/index.js\";\nimport resolveComponentProps from \"../resolveComponentProps/index.js\";\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  const {\n    elementType,\n    externalSlotProps,\n    ownerState,\n    skipResolvingSlotProps = false,\n    ...other\n  } = parameters;\n  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n  const {\n    props: mergedProps,\n    internalRef\n  } = mergeSlotProps({\n    ...other,\n    externalSlotProps: resolvedComponentsProps\n  });\n  const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n  const props = appendOwnerState(elementType, {\n    ...mergedProps,\n    ref\n  }, ownerState);\n  return props;\n}\nexport default useSlotProps;","'use client';\n\nimport { useRtl } from '@mui/system/RtlProvider';\nimport refType from '@mui/utils/refType';\nimport HTMLElementType from '@mui/utils/HTMLElementType';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport BasePopper from \"./BasePopper.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n  name: 'MuiPopper',\n  slot: 'Root'\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://v7.mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://v7.mui.com/material-ui/react-menu/)\n * - [Popper](https://v7.mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://v7.mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n  const isRtl = useRtl();\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiPopper'\n  });\n  const {\n    anchorEl,\n    component,\n    components,\n    componentsProps,\n    container,\n    disablePortal,\n    keepMounted,\n    modifiers,\n    open,\n    placement,\n    popperOptions,\n    popperRef,\n    transition,\n    slots,\n    slotProps,\n    ...other\n  } = props;\n  const RootComponent = slots?.root ?? components?.Root;\n  const otherProps = {\n    anchorEl,\n    container,\n    disablePortal,\n    keepMounted,\n    modifiers,\n    open,\n    placement,\n    popperOptions,\n    popperRef,\n    transition,\n    ...other\n  };\n  return /*#__PURE__*/_jsx(PopperRoot, {\n    as: component,\n    direction: isRtl ? 'rtl' : 'ltr',\n    slots: {\n      root: RootComponent\n    },\n    slotProps: slotProps ?? componentsProps,\n    ...otherProps,\n    ref: ref\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.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   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   * The return value will passed as the reference object of the Popper instance.\n   */\n  anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n  /**\n   * Popper render function or node.\n   */\n  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\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 the Popper.\n   * Either a string to use a HTML element or a component.\n   *\n   * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Root: PropTypes.elementType\n  }),\n  /**\n   * The props used for each slot inside the Popper.\n   *\n   * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\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   * The `children` will be under the DOM hierarchy of the parent component.\n   * @default false\n   */\n  disablePortal: 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 Popper.\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * Popper.js is based on a \"plugin-like\" architecture,\n   * most of its features are fully encapsulated \"modifiers\".\n   *\n   * A modifier is a function that is called each time Popper.js needs to\n   * compute the position of the popper.\n   * For this reason, modifiers should be very performant to avoid bottlenecks.\n   * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n   */\n  modifiers: PropTypes.arrayOf(PropTypes.shape({\n    data: PropTypes.object,\n    effect: PropTypes.func,\n    enabled: PropTypes.bool,\n    fn: PropTypes.func,\n    name: PropTypes.any,\n    options: PropTypes.object,\n    phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n    requires: PropTypes.arrayOf(PropTypes.string),\n    requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n  })),\n  /**\n   * If `true`, the component is shown.\n   */\n  open: PropTypes.bool.isRequired,\n  /**\n   * Popper placement.\n   * @default 'bottom'\n   */\n  placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n  /**\n   * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n   * @default {}\n   */\n  popperOptions: PropTypes.shape({\n    modifiers: PropTypes.array,\n    onFirstUpdate: PropTypes.func,\n    placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n    strategy: PropTypes.oneOf(['absolute', 'fixed'])\n  }),\n  /**\n   * A ref that points to the used popper instance.\n   */\n  popperRef: refType,\n  /**\n   * The props used for each slot inside the Popper.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Popper.\n   * Either a string to use a HTML element or a component.\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   * Help supporting a react-transition-group/Transition component.\n   * @default false\n   */\n  transition: PropTypes.bool\n} : void 0;\nexport default Popper;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from '@mui/utils/debounce';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport ownerWindow from '@mui/utils/ownerWindow';\nimport { jsx as _jsx, 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://v7.mui.com/material-ui/react-textarea-autosize/)\n *\n * API:\n *\n * - [TextareaAutosize API](https://v7.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    ...other\n  } = props;\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?.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    const textarea = event.target;\n    const countOfCharacters = textarea.value.length;\n    const isLastCharacterNewLine = textarea.value.endsWith('\\n');\n    const isEndOfTheLine = textarea.selectionStart === countOfCharacters;\n\n    // Set the cursor position to the very end of the text.\n    if (isLastCharacterNewLine && isEndOfTheLine) {\n      textarea.setSelectionRange(countOfCharacters, countOfCharacters);\n    }\n    if (onChange) {\n      onChange(event);\n    }\n  };\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/_jsx(\"textarea\", {\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\n    }), /*#__PURE__*/_jsx(\"textarea\", {\n      \"aria-hidden\": true,\n      className: props.className,\n      readOnly: true,\n      ref: hiddenTextareaRef,\n      tabIndex: -1,\n      style: {\n        ...styles.shadow,\n        ...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;","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';\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;","'use client';\n\nimport * as React from 'react';\nimport FormControlContext from \"./FormControlContext.js\";\nexport default function useFormControl() {\n  return React.useContext(FormControlContext);\n}","/**\n * Gets the actual active element, traversing through shadow roots if necessary.\n *\n * When an element inside a shadow root has focus, `document.activeElement` returns\n * the shadow host element. This function recursively traverses shadow roots to find\n * the actual focused element.\n *\n * @param root - The document or shadow root to start the search from.\n * @returns The actual focused element, or null if no element has focus.\n *\n * @example\n * // In a shadow DOM context\n * const activeElement = getActiveElement(document);\n * // Returns the actual focused element inside the shadow root\n *\n * @example\n * // Starting from a specific document\n * const activeElement = getActiveElement(ownerDocument(element));\n */\nexport default function activeElement(doc) {\n  let element = doc.activeElement;\n  while (element?.shadowRoot?.activeElement != null) {\n    element = element.shadowRoot.activeElement;\n  }\n  return element;\n}","// 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}","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;","'use client';\n\nimport _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nvar _InputGlobalStyles;\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/index.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled, globalCss } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport getActiveElement from \"../utils/getActiveElement.js\";\nimport { isFilled } from \"./utils.js\";\nimport inputBaseClasses, { getInputBaseUtilityClass } from \"./inputBaseClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst MUI_AUTO_FILL = 'mui-auto-fill';\nconst MUI_AUTO_FILL_CANCEL = 'mui-auto-fill-cancel';\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})(memoTheme(({\n  theme\n}) => ({\n  ...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  variants: [{\n    props: ({\n      ownerState\n    }) => ownerState.multiline,\n    style: {\n      padding: '4px 0 5px'\n    }\n  }, {\n    props: ({\n      ownerState,\n      size\n    }) => ownerState.multiline && size === 'small',\n    style: {\n      paddingTop: 1\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.fullWidth,\n    style: {\n      width: '100%'\n    }\n  }]\n})));\nexport const InputBaseInput = styled('input', {\n  name: 'MuiInputBase',\n  slot: 'Input',\n  overridesResolver: inputOverridesResolver\n})(memoTheme(({\n  theme\n}) => {\n  const light = theme.palette.mode === 'light';\n  const placeholder = {\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 {\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    '&::-webkit-input-placeholder': placeholder,\n    '&::-moz-placeholder': placeholder,\n    // Firefox 19+\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      // Edge\n      '&:focus::-webkit-input-placeholder': placeholderVisible,\n      '&:focus::-moz-placeholder': placeholderVisible,\n      // Firefox 19+\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    variants: [{\n      props: ({\n        ownerState\n      }) => !ownerState.disableInjectingGlobalStyles,\n      style: {\n        animationName: MUI_AUTO_FILL_CANCEL,\n        animationDuration: '10ms',\n        '&:-webkit-autofill': {\n          animationDuration: '5000s',\n          animationName: MUI_AUTO_FILL\n        }\n      }\n    }, {\n      props: {\n        size: 'small'\n      },\n      style: {\n        paddingTop: 1\n      }\n    }, {\n      props: ({\n        ownerState\n      }) => ownerState.multiline,\n      style: {\n        height: 'auto',\n        resize: 'none',\n        padding: 0,\n        paddingTop: 0\n      }\n    }, {\n      props: {\n        type: 'search'\n      },\n      style: {\n        MozAppearance: 'textfield' // Improve type search style.\n      }\n    }]\n  };\n}));\nconst InputGlobalStyles = globalCss({\n  // Keep keyframes non-empty for Emotion production builds. Animation properties are ignored\n  // inside keyframes, avoiding the visible display animation triggered by Chrome 117+.\n  [`@keyframes ${MUI_AUTO_FILL}`]: {\n    from: {\n      animationName: MUI_AUTO_FILL\n    }\n  },\n  [`@keyframes ${MUI_AUTO_FILL_CANCEL}`]: {\n    from: {\n      animationName: MUI_AUTO_FILL_CANCEL\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  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiInputBase'\n  });\n  const {\n    'aria-describedby': ariaDescribedby,\n    autoComplete,\n    autoFocus,\n    className,\n    color,\n    components = {},\n    componentsProps = {},\n    defaultValue,\n    disabled,\n    disableInjectingGlobalStyles,\n    endAdornment,\n    error,\n    fullWidth = false,\n    id,\n    inputComponent = 'input',\n    inputProps: inputPropsProp = {},\n    inputRef: inputRefProp,\n    margin,\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    size,\n    slotProps = {},\n    slots = {},\n    startAdornment,\n    type = 'text',\n    value: valueProp,\n    ...other\n  } = props;\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    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\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\n  // Sync focused state when autoFocus is used in SSR.\n  // If the browser focused the element before hydration, the onFocus handler never\n  // fires. If it did not, React hydration does not call focus() for autoFocus.\n  useEnhancedEffect(() => {\n    if (!autoFocus) {\n      return;\n    }\n    const input = inputRef.current;\n    if (!input) {\n      return;\n    }\n    const doc = ownerDocument(input);\n    const activeElement = getActiveElement(doc);\n    const noElementFocused = activeElement == null || activeElement === doc.body || activeElement === doc.documentElement;\n    if (input === activeElement) {\n      if (muiFormControl && muiFormControl.onFocus) {\n        muiFormControl.onFocus();\n      } else {\n        setFocused(true);\n      }\n    } else if (noElementFocused) {\n      input.focus();\n    }\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [autoFocus]);\n  const handleFocus = event => {\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.' : _formatErrorMessage(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    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\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 = {\n        type: undefined,\n        minRows: rows,\n        maxRows: rows,\n        ...inputProps\n      };\n    } else {\n      inputProps = {\n        type: undefined,\n        maxRows,\n        minRows,\n        ...inputProps\n      };\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 = {\n    ...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 || InputBaseInput;\n  inputProps = {\n    ...inputProps,\n    ...(slotProps.input ?? componentsProps.input)\n  };\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [!disableInjectingGlobalStyles && typeof InputGlobalStyles === 'function' && (// For Emotion/Styled-components, InputGlobalStyles will be a function\n    // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.\n    _InputGlobalStyles || (_InputGlobalStyles = /*#__PURE__*/_jsx(InputGlobalStyles, {}))), /*#__PURE__*/_jsxs(Root, {\n      ...rootProps,\n      ref: ref,\n      onClick: handleClick,\n      ...other,\n      ...(!isHostComponent(Root) && {\n        ownerState: {\n          ...ownerState,\n          ...rootProps.ownerState\n        }\n      }),\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, {\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,\n          ...(!isHostComponent(Input) && {\n            as: InputComponent,\n            ownerState: {\n              ...ownerState,\n              ...inputProps.ownerState\n            }\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({\n        ...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   * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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/Reference/Elements/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](https://mui.com/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/Reference/Elements/input#input_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';\nimport { inputBaseClasses } from \"../InputBase/index.js\";\nexport function getOutlinedInputUtilityClass(slot) {\n  return generateUtilityClass('MuiOutlinedInput', slot);\n}\nconst outlinedInputClasses = {\n  ...inputBaseClasses,\n  ...generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input'])\n};\nexport default outlinedInputClasses;","'use client';\n\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 \"../zero-styled/index.js\";\nimport { normalizedTransitionCallback, reflow, getTransitionProps, getTransitionChildStyle } from \"../transitions/utils.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst styles = {\n  entering: {\n    opacity: 1\n  },\n  entered: {\n    opacity: 1\n  },\n  exiting: {\n    opacity: 0\n  },\n  exited: {\n    opacity: 0\n  }\n};\nconst hiddenStyles = {\n  opacity: 0,\n  visibility: 'hidden'\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    ...other\n  } = props;\n  const nodeRef = React.useRef(null);\n  const handleRef = useForkRef(nodeRef, getReactElementRef(children), ref);\n  const handleEntering = normalizedTransitionCallback(nodeRef, onEntering);\n  const handleEnter = normalizedTransitionCallback(nodeRef, (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.transition = theme.transitions.create('opacity', transitionProps);\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback(nodeRef, onEntered);\n  const handleExiting = normalizedTransitionCallback(nodeRef, onExiting);\n  const handleExit = normalizedTransitionCallback(nodeRef, node => {\n    const transitionProps = getTransitionProps({\n      style,\n      timeout,\n      easing\n    }, {\n      mode: 'exit'\n    });\n    node.style.transition = theme.transitions.create('opacity', transitionProps);\n    if (onExit) {\n      onExit(node);\n    }\n  });\n  const handleExited = normalizedTransitionCallback(nodeRef, node => {\n    // Clear the transition CSS to release the compositor layer when the\n    // element is fully exited (prevents idle CPU usage on fixed elements\n    // like Backdrop). handleEnter re-sets it on the next open.\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(nodeRef.current, next);\n    }\n  };\n  return /*#__PURE__*/_jsx(Transition, {\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,\n    ...other,\n    children: (state, {\n      ownerState,\n      ...restChildProps\n    }) => {\n      const childStyle = getTransitionChildStyle(state, inProp, styles, hiddenStyles, style, children.props.style);\n      return /*#__PURE__*/React.cloneElement(children, {\n        style: childStyle,\n        ref: handleRef,\n        ...restChildProps\n      });\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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport Fade from \"../Fade/index.js\";\nimport { getBackdropUtilityClass } from \"./backdropClasses.js\";\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  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  variants: [{\n    props: {\n      invisible: true\n    },\n    style: {\n      backgroundColor: 'transparent'\n    }\n  }]\n});\nconst Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiBackdrop'\n  });\n  const {\n    children,\n    className,\n    component = 'div',\n    invisible = false,\n    open,\n    components = {},\n    componentsProps = {},\n    slotProps = {},\n    slots = {},\n    TransitionComponent: TransitionComponentProp,\n    transitionDuration,\n    ...other\n  } = props;\n  const ownerState = {\n    ...props,\n    component,\n    invisible\n  };\n  const classes = useUtilityClasses(ownerState);\n  const backwardCompatibleSlots = {\n    transition: TransitionComponentProp,\n    root: components.Root,\n    ...slots\n  };\n  const backwardCompatibleSlotProps = {\n    ...componentsProps,\n    ...slotProps\n  };\n  const externalForwardedProps = {\n    component,\n    slots: backwardCompatibleSlots,\n    slotProps: backwardCompatibleSlotProps\n  };\n  const [RootSlot, rootProps] = useSlot('root', {\n    elementType: BackdropRoot,\n    externalForwardedProps,\n    className: clsx(classes.root, className),\n    ownerState\n  });\n  const [TransitionSlot, transitionProps] = useSlot('transition', {\n    elementType: Fade,\n    externalForwardedProps,\n    ownerState\n  });\n  return /*#__PURE__*/_jsx(TransitionSlot, {\n    in: open,\n    timeout: transitionDuration,\n    ...other,\n    ...transitionProps,\n    children: /*#__PURE__*/_jsx(RootSlot, {\n      \"aria-hidden\": true,\n      ...rootProps,\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   * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\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    root: PropTypes.elementType,\n    transition: 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](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @default Fade\n   * @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getBadgeUtilityClass(slot) {\n  return generateUtilityClass('MuiBadge', slot);\n}\nconst badgeClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft', 'invisible', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular',\n// TODO: v6 remove the overlap value from these class keys\n'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);\nexport default badgeClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport usePreviousProps from '@mui/utils/usePreviousProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useBadge from \"./useBadge.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport badgeClasses, { getBadgeUtilityClass } from \"./badgeClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst RADIUS_STANDARD = 10;\nconst RADIUS_DOT = 4;\nconst useUtilityClasses = ownerState => {\n  const {\n    color,\n    anchorOrigin,\n    invisible,\n    overlap,\n    variant,\n    classes = {}\n  } = ownerState;\n  const slots = {\n    root: ['root'],\n    badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, `overlap${capitalize(overlap)}`, color !== 'default' && `color${capitalize(color)}`]\n  };\n  return composeClasses(slots, getBadgeUtilityClass, classes);\n};\nconst BadgeRoot = styled('span', {\n  name: 'MuiBadge',\n  slot: 'Root'\n})({\n  position: 'relative',\n  display: 'inline-flex',\n  // For correct alignment with the text.\n  verticalAlign: 'middle',\n  flexShrink: 0\n});\nconst BadgeBadge = styled('span', {\n  name: 'MuiBadge',\n  slot: 'Badge',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.badge, styles[ownerState.variant], styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}${capitalize(ownerState.overlap)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.invisible && styles.invisible];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  display: 'flex',\n  flexDirection: 'row',\n  flexWrap: 'wrap',\n  justifyContent: 'center',\n  alignContent: 'center',\n  alignItems: 'center',\n  position: 'absolute',\n  boxSizing: 'border-box',\n  fontFamily: theme.typography.fontFamily,\n  fontWeight: theme.typography.fontWeightMedium,\n  fontSize: theme.typography.pxToRem(12),\n  minWidth: RADIUS_STANDARD * 2,\n  lineHeight: 1,\n  padding: '0 6px',\n  height: RADIUS_STANDARD * 2,\n  borderRadius: RADIUS_STANDARD,\n  zIndex: 1,\n  // Render the badge on top of potential ripples.\n  transition: theme.transitions.create('transform', {\n    easing: theme.transitions.easing.easeInOut,\n    duration: theme.transitions.duration.enteringScreen\n  }),\n  variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter(['contrastText'])).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      backgroundColor: (theme.vars || theme).palette[color].main,\n      color: (theme.vars || theme).palette[color].contrastText\n    }\n  })), {\n    props: {\n      variant: 'dot'\n    },\n    style: {\n      borderRadius: RADIUS_DOT,\n      height: RADIUS_DOT * 2,\n      minWidth: RADIUS_DOT * 2,\n      padding: 0\n    }\n  }, {\n    props: {\n      invisible: true\n    },\n    style: {\n      transition: theme.transitions.create('transform', {\n        easing: theme.transitions.easing.easeInOut,\n        duration: theme.transitions.duration.leavingScreen\n      })\n    }\n  }, {\n    style: ({\n      ownerState\n    }) => {\n      const {\n        vertical,\n        horizontal\n      } = ownerState.anchorOrigin;\n      const offset = ownerState.overlap === 'circular' ? '14%' : 0;\n      return {\n        '--Badge-translateX': horizontal === 'right' ? '50%' : '-50%',\n        '--Badge-translateY': vertical === 'top' ? '-50%' : '50%',\n        top: vertical === 'top' ? offset : 'initial',\n        bottom: vertical === 'bottom' ? offset : 'initial',\n        right: horizontal === 'right' ? offset : 'initial',\n        left: horizontal === 'left' ? offset : 'initial',\n        transform: 'scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))',\n        transformOrigin: `${horizontal === 'right' ? '100%' : '0%'} ${vertical === 'top' ? '0%' : '100%'}`,\n        [`&.${badgeClasses.invisible}`]: {\n          transform: 'scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))'\n        }\n      };\n    }\n  }]\n})));\nfunction getAnchorOrigin(anchorOrigin) {\n  return {\n    vertical: anchorOrigin?.vertical ?? 'top',\n    horizontal: anchorOrigin?.horizontal ?? 'right'\n  };\n}\nconst Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiBadge'\n  });\n  const {\n    anchorOrigin: anchorOriginProp,\n    className,\n    classes: classesProp,\n    component,\n    components = {},\n    componentsProps = {},\n    children,\n    overlap: overlapProp = 'rectangular',\n    color: colorProp = 'default',\n    invisible: invisibleProp = false,\n    max: maxProp = 99,\n    badgeContent: badgeContentProp,\n    slots,\n    slotProps,\n    showZero = false,\n    variant: variantProp = 'standard',\n    ...other\n  } = props;\n  const {\n    badgeContent,\n    invisible: invisibleFromHook,\n    max,\n    displayValue: displayValueFromHook\n  } = useBadge({\n    max: maxProp,\n    invisible: invisibleProp,\n    badgeContent: badgeContentProp,\n    showZero\n  });\n  const prevProps = usePreviousProps({\n    anchorOrigin: getAnchorOrigin(anchorOriginProp),\n    color: colorProp,\n    overlap: overlapProp,\n    variant: variantProp,\n    badgeContent: badgeContentProp\n  });\n  const invisible = invisibleFromHook || badgeContent == null && variantProp !== 'dot';\n  const {\n    color = colorProp,\n    overlap = overlapProp,\n    anchorOrigin: anchorOriginPropProp,\n    variant = variantProp\n  } = invisible ? prevProps : props;\n  const anchorOrigin = getAnchorOrigin(anchorOriginPropProp);\n  const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;\n  const ownerState = {\n    ...props,\n    badgeContent,\n    invisible,\n    max,\n    displayValue,\n    showZero,\n    anchorOrigin,\n    color,\n    overlap,\n    variant\n  };\n  const classes = useUtilityClasses(ownerState);\n\n  // support both `slots` and `components` for backward compatibility\n  const externalForwardedProps = {\n    slots: {\n      root: slots?.root ?? components.Root,\n      badge: slots?.badge ?? components.Badge\n    },\n    slotProps: {\n      root: slotProps?.root ?? componentsProps.root,\n      badge: slotProps?.badge ?? componentsProps.badge\n    }\n  };\n  const [RootSlot, rootProps] = useSlot('root', {\n    elementType: BadgeRoot,\n    externalForwardedProps: {\n      ...externalForwardedProps,\n      ...other\n    },\n    ownerState,\n    className: clsx(classes.root, className),\n    ref,\n    additionalProps: {\n      as: component\n    }\n  });\n  const [BadgeSlot, badgeProps] = useSlot('badge', {\n    elementType: BadgeBadge,\n    externalForwardedProps,\n    ownerState,\n    className: classes.badge\n  });\n  return /*#__PURE__*/_jsxs(RootSlot, {\n    ...rootProps,\n    children: [children, /*#__PURE__*/_jsx(BadgeSlot, {\n      ...badgeProps,\n      children: displayValue\n    })]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Badge.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 anchor of the badge.\n   * @default {\n   *   vertical: 'top',\n   *   horizontal: 'right',\n   * }\n   */\n  anchorOrigin: PropTypes.shape({\n    horizontal: PropTypes.oneOf(['left', 'right']),\n    vertical: PropTypes.oneOf(['bottom', 'top'])\n  }),\n  /**\n   * The content rendered within the badge.\n   */\n  badgeContent: PropTypes.node,\n  /**\n   * The badge will be added relative to this node.\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 'default'\n   */\n  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', '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 components used for each slot inside.\n   *\n   * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Badge: 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   * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * If `true`, the badge is invisible.\n   * @default false\n   */\n  invisible: PropTypes.bool,\n  /**\n   * Max count to show.\n   * @default 99\n   */\n  max: PropTypes.number,\n  /**\n   * Wrapped shape the badge should overlap.\n   * @default 'rectangular'\n   */\n  overlap: PropTypes.oneOf(['circular', 'rectangular']),\n  /**\n   * Controls whether the badge is hidden when `badgeContent` is zero.\n   * @default false\n   */\n  showZero: PropTypes.bool,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    badge: 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   * @default {}\n   */\n  slots: PropTypes.shape({\n    badge: 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 variant to use.\n   * @default 'standard'\n   */\n  variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])\n} : void 0;\nexport default Badge;","'use client';\n\nimport usePreviousProps from '@mui/utils/usePreviousProps';\nfunction useBadge(parameters) {\n  const {\n    badgeContent: badgeContentProp,\n    invisible: invisibleProp = false,\n    max: maxProp = 99,\n    showZero = false\n  } = parameters;\n  const prevProps = usePreviousProps({\n    badgeContent: badgeContentProp,\n    max: maxProp\n  });\n  let invisible = invisibleProp;\n  if (invisibleProp === false && badgeContentProp === 0 && !showZero) {\n    invisible = true;\n  }\n  const {\n    badgeContent,\n    max = maxProp\n  } = invisible ? prevProps : parameters;\n  const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;\n  return {\n    badgeContent,\n    invisible,\n    max,\n    displayValue\n  };\n}\nexport default useBadge;","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/index.js\";\nimport { createTheme } from \"../styles/index.js\";\nimport THEME_ID from \"../styles/identifier.js\";\nimport boxClasses from \"./boxClasses.js\";\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 clsx from 'clsx';\nimport styled from '@mui/styled-engine';\nimport styleFunctionSx, { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport useTheme from \"../useTheme/index.js\";\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 {\n      className,\n      component = 'div',\n      ...other\n    } = extendSxProp(inProps);\n    return /*#__PURE__*/_jsx(BoxRoot, {\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  });\n  return Box;\n}","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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport { getSwitchBaseUtilityClass } from \"./switchBaseClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, 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  padding: 9,\n  borderRadius: '50%',\n  variants: [{\n    props: {\n      edge: 'start',\n      size: 'small'\n    },\n    style: {\n      marginLeft: -3\n    }\n  }, {\n    props: ({\n      edge,\n      ownerState\n    }) => edge === 'start' && ownerState.size !== 'small',\n    style: {\n      marginLeft: -12\n    }\n  }, {\n    props: {\n      edge: 'end',\n      size: 'small'\n    },\n    style: {\n      marginRight: -3\n    }\n  }, {\n    props: ({\n      edge,\n      ownerState\n    }) => edge === 'end' && ownerState.size !== 'small',\n    style: {\n      marginRight: -12\n    }\n  }]\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    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    slots = {},\n    slotProps = {},\n    ...other\n  } = props;\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 || readOnly) {\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 = {\n    ...props,\n    checked,\n    disabled,\n    disableFocusRipple,\n    edge\n  };\n  const classes = useUtilityClasses(ownerState);\n  const externalForwardedProps = {\n    slots,\n    slotProps: {\n      input: inputProps,\n      ...slotProps\n    }\n  };\n  const [RootSlot, rootSlotProps] = useSlot('root', {\n    ref,\n    elementType: SwitchBaseRoot,\n    className: classes.root,\n    shouldForwardComponentProp: true,\n    externalForwardedProps: {\n      ...externalForwardedProps,\n      component: 'span',\n      ...other\n    },\n    getSlotProps: handlers => ({\n      ...handlers,\n      onFocus: event => {\n        handlers.onFocus?.(event);\n        handleFocus(event);\n      },\n      onBlur: event => {\n        handlers.onBlur?.(event);\n        handleBlur(event);\n      }\n    }),\n    ownerState,\n    additionalProps: {\n      centerRipple: true,\n      focusRipple: !disableFocusRipple,\n      role: undefined,\n      tabIndex: null\n    }\n  });\n  const [InputSlot, inputSlotProps] = useSlot('input', {\n    ref: inputRef,\n    elementType: SwitchBaseInput,\n    className: classes.input,\n    externalForwardedProps,\n    getSlotProps: handlers => ({\n      ...handlers,\n      onChange: event => {\n        handlers.onChange?.(event);\n        handleInputChange(event);\n      }\n    }),\n    ownerState,\n    additionalProps: {\n      autoFocus,\n      checked: checkedProp,\n      defaultChecked,\n      disabled,\n      id: hasLabelFor ? id : undefined,\n      name,\n      readOnly,\n      required,\n      tabIndex,\n      type,\n      ...(type === 'checkbox' && value === undefined ? {} : {\n        value\n      })\n    }\n  });\n  return /*#__PURE__*/_jsxs(RootSlot, {\n    ...rootSlotProps,\n    children: [/*#__PURE__*/_jsx(InputSlot, {\n      ...inputSlotProps\n    }), 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/Reference/Elements/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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: 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   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: 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.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;","'use client';\n\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\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 createSvgIcon from \"../../utils/createSvgIcon.js\";\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 createSvgIcon from \"../../utils/createSvgIcon.js\";\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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport SwitchBase from \"../internal/SwitchBase.js\";\nimport CheckBoxOutlineBlankIcon from \"../internal/svg-icons/CheckBoxOutlineBlank.js\";\nimport CheckBoxIcon from \"../internal/svg-icons/CheckBox.js\";\nimport IndeterminateCheckBoxIcon from \"../internal/svg-icons/IndeterminateCheckBox.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport checkboxClasses, { getCheckboxUtilityClass } from \"./checkboxClasses.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\nimport useSlot from \"../utils/useSlot.js\";\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 {\n    ...classes,\n    // forward the disabled and checked classes to the SwitchBase\n    ...composedClasses\n  };\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})(memoTheme(({\n  theme\n}) => ({\n  color: (theme.vars || theme).palette.text.secondary,\n  variants: [{\n    props: {\n      color: 'default',\n      disableRipple: false\n    },\n    style: {\n      '&:hover': {\n        backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)\n      }\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color,\n      disableRipple: false\n    },\n    style: {\n      '&:hover': {\n        backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n      }\n    }\n  })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      [`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {\n        color: (theme.vars || theme).palette[color].main\n      },\n      [`&.${checkboxClasses.disabled}`]: {\n        color: (theme.vars || theme).palette.action.disabled\n      }\n    }\n  })), {\n    // Should be last to override other colors\n    props: {\n      disableRipple: false\n    },\n    style: {\n      // Reset on touch devices, it doesn't add specificity\n      '&:hover': {\n        '@media (hover: none)': {\n          backgroundColor: 'transparent'\n        }\n      }\n    }\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  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    disableRipple = false,\n    className,\n    slots = {},\n    slotProps = {},\n    ...other\n  } = props;\n  const icon = indeterminate ? indeterminateIconProp : iconProp;\n  const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;\n  const ownerState = {\n    ...props,\n    disableRipple,\n    color,\n    indeterminate,\n    size\n  };\n  const classes = useUtilityClasses(ownerState);\n  const externalInputProps = slotProps.input ?? inputProps;\n  const [RootSlot, rootSlotProps] = useSlot('root', {\n    ref,\n    elementType: CheckboxRoot,\n    className: clsx(classes.root, className),\n    shouldForwardComponentProp: true,\n    externalForwardedProps: {\n      slots,\n      slotProps,\n      ...other\n    },\n    ownerState,\n    additionalProps: {\n      type: 'checkbox',\n      icon: /*#__PURE__*/React.cloneElement(icon, {\n        fontSize: icon.props.fontSize ?? size\n      }),\n      checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {\n        fontSize: indeterminateIcon.props.fontSize ?? size\n      }),\n      disableRipple,\n      slots,\n      slotProps: {\n        input: mergeSlotProps(typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps, {\n          'data-indeterminate': indeterminate,\n          'aria-checked': indeterminate ? 'mixed' : undefined\n        })\n      }\n    }\n  });\n  return /*#__PURE__*/_jsx(RootSlot, {\n    ...rootSlotProps,\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/Reference/Elements/input#attributes) applied to the `input` element.\n   * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  inputProps: PropTypes.object,\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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: 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   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: 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 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;","// 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(win = window) {\n  // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes\n  const documentWidth = win.document.documentElement.clientWidth;\n  return win.innerWidth - documentWidth;\n}","import ownerWindow from '@mui/utils/ownerWindow';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport getScrollbarSize from '@mui/utils/getScrollbarSize';\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, hide) {\n  if (hide) {\n    element.setAttribute('aria-hidden', 'true');\n  } else {\n    element.removeAttribute('aria-hidden');\n  }\n}\nfunction getPaddingRight(element) {\n  return parseFloat(ownerWindow(element).getComputedStyle(element).paddingRight) || 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.includes(element.tagName);\n  const isInputHidden = element.tagName === 'INPUT' && element.getAttribute('type') === 'hidden';\n  return isForbiddenTagName || isInputHidden;\n}\nfunction ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, hide) {\n  const blacklist = [mountElement, currentElement, ...elementsToExclude];\n  [].forEach.call(container.children, element => {\n    const isNotExcludedElement = !blacklist.includes(element);\n    const isNotForbiddenElement = !isAriaHiddenForbiddenOnElement(element);\n    if (isNotExcludedElement && isNotForbiddenElement) {\n      ariaHidden(element, hide);\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(ownerWindow(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?.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.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.includes(modal));\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.includes(modal));\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}","export const FOCUSABLE_ATTRIBUTE = 'data-mui-focusable';\n\n/**\n * Returns the element marked as the initial focus target inside a focus trap.\n * The root element takes precedence over marked descendants so components can\n * opt into focusing their own root surface directly.\n */\nexport function getFocusTarget(rootElement) {\n  if (!rootElement) {\n    return null;\n  }\n  return rootElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? rootElement : rootElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`);\n}","'use client';\n\n/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useForkRef from '@mui/utils/useForkRef';\nimport ownerDocument from '@mui/utils/ownerDocument';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport exactProp from '@mui/utils/exactProp';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport contains from \"../utils/contains.js\";\nimport getActiveElement from \"../utils/getActiveElement.js\";\nimport { getFocusTarget } from \"../utils/focusable.js\";\nimport { jsx as _jsx, 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://issues.chromium.org/issues/41283952\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    // Reset on every mount — React 18 Strict Mode double-mounts leave this\n    // stuck at `true` after the cleanup of the previous mount set it.\n    ignoreNextEnforceFocus.current = false;\n\n    // We might render an empty child.\n    if (!open || !rootRef.current) {\n      return;\n    }\n    const doc = ownerDocument(rootRef.current);\n    const activeElement = getActiveElement(doc);\n\n    // Prefer the explicitly marked focusable element. Fall back to the root\n    // element for generic FocusTrap usage.\n    const focusTarget = getFocusTarget(rootRef.current) ?? rootRef.current;\n    if (!contains(rootRef.current, activeElement)) {\n      if (!focusTarget.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        focusTarget.setAttribute('tabIndex', '-1');\n      }\n      if (activated.current) {\n        focusTarget.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      const activeElement = getActiveElement(doc);\n\n      // Make sure the next tab starts from the right place.\n      // activeElement refers to the origin.\n      if (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      const activeEl = getActiveElement(doc);\n      if (!doc.hasFocus() || !isEnabled() || ignoreNextEnforceFocus.current) {\n        ignoreNextEnforceFocus.current = false;\n        return;\n      }\n\n      // The focus is already inside\n      if (contains(rootElement, activeEl)) {\n        return;\n      }\n\n      // The disableEnforceFocus is set and the focus is outside of the focus trap (and sentinel nodes)\n      if (disableEnforceFocus && activeEl !== sentinelStart.current && activeEl !== 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 (activeEl !== 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 (activeEl === sentinelStart.current || activeEl === 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        const isShiftTab = Boolean(lastKeydown.current?.shiftKey && lastKeydown.current?.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      const activeEl = getActiveElement(doc);\n      if (activeEl && activeEl.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 ownerDocument from '@mui/utils/ownerDocument';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport createChainedFunction from '@mui/utils/createChainedFunction';\nimport extractEventHandlers from '@mui/utils/extractEventHandlers';\nimport { ModalManager, ariaHidden } from \"./ModalManager.js\";\nfunction getContainer(container) {\n  return typeof container === 'function' ? container() : container;\n}\nfunction getHasTransition(children) {\n  return children ? children.props.hasOwnProperty('in') : false;\n}\nconst noop = () => {};\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 manager = new ModalManager();\nfunction useModal(parameters) {\n  const {\n    container,\n    disableEscapeKeyDown = false,\n    disableScrollLock = false,\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 = () => manager.isTopModal(getModal());\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]);\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    otherHandlers.onKeyDown?.(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    otherHandlers.onClick?.(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 = {\n      ...propsEventHandlers,\n      ...otherHandlers\n    };\n    return {\n      /*\n       * Marking an element with the role presentation indicates to assistive technology\n       * that this element should be ignored; it exists to support the web application and\n       * is not meant for humans to interact with directly.\n       * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md\n       */\n      role: 'presentation',\n      ...externalEventHandlers,\n      onKeyDown: createHandleKeyDown(externalEventHandlers),\n      ref: handleRef\n    };\n  };\n  const getBackdropProps = (otherHandlers = {}) => {\n    const externalEventHandlers = otherHandlers;\n    return {\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?.props.onEnter ?? noop),\n      onExited: createChainedFunction(handleExited, children?.props.onExited ?? noop)\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 * 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 FocusTrap from \"../Unstable_TrapFocus/index.js\";\nimport Portal from \"../Portal/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Backdrop from \"../Backdrop/index.js\";\nimport useModal from \"./useModal.js\";\nimport { getModalUtilityClass } from \"./modalClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, 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})(memoTheme(({\n  theme\n}) => ({\n  position: 'fixed',\n  zIndex: (theme.vars || theme).zIndex.modal,\n  right: 0,\n  bottom: 0,\n  top: 0,\n  left: 0,\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.open && ownerState.exited,\n    style: {\n      visibility: 'hidden'\n    }\n  }]\n})));\nconst ModalBackdrop = styled(Backdrop, {\n  name: 'MuiModal',\n  slot: 'Backdrop'\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  const props = useDefaultProps({\n    name: 'MuiModal',\n    props: inProps\n  });\n  const {\n    BackdropComponent = ModalBackdrop,\n    BackdropProps,\n    classes: classesProp,\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    onClose,\n    onTransitionEnter,\n    onTransitionExited,\n    open,\n    slotProps = {},\n    slots = {},\n    // eslint-disable-next-line react/prop-types\n    theme,\n    ...other\n  } = props;\n  const propsWithDefaults = {\n    ...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({\n    ...propsWithDefaults,\n    rootRef: ref\n  });\n  const ownerState = {\n    ...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 externalForwardedProps = {\n    slots: {\n      root: components.Root,\n      backdrop: components.Backdrop,\n      ...slots\n    },\n    slotProps: {\n      ...componentsProps,\n      ...slotProps\n    }\n  };\n  const [RootSlot, rootProps] = useSlot('root', {\n    ref,\n    elementType: ModalRoot,\n    externalForwardedProps: {\n      ...externalForwardedProps,\n      ...other,\n      component\n    },\n    getSlotProps: getRootProps,\n    ownerState,\n    className: clsx(className, classes?.root, !ownerState.open && ownerState.exited && classes?.hidden)\n  });\n  const [BackdropSlot, backdropProps] = useSlot('backdrop', {\n    ref: BackdropProps?.ref,\n    elementType: BackdropComponent,\n    externalForwardedProps,\n    shouldForwardComponentProp: true,\n    additionalProps: BackdropProps,\n    getSlotProps: otherHandlers => {\n      return getBackdropProps({\n        ...otherHandlers,\n        onClick: event => {\n          if (otherHandlers?.onClick) {\n            otherHandlers.onClick(event);\n          }\n        }\n      });\n    },\n    className: clsx(BackdropProps?.className, 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, {\n      ...rootProps,\n      children: [!hideBackdrop && BackdropComponent ? /*#__PURE__*/_jsx(BackdropSlot, {\n        ...backdropProps\n      }) : 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   * })({\n   *   zIndex: -1,\n   * })\n   */\n  BackdropComponent: PropTypes.elementType,\n  /**\n   * Props applied to the [`Backdrop`](https://mui.com/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   * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 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;","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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getDividerUtilityClass } from \"./dividerClasses.js\";\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})(memoTheme(({\n  theme\n}) => ({\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  variants: [{\n    props: {\n      absolute: true\n    },\n    style: {\n      position: 'absolute',\n      bottom: 0,\n      left: 0,\n      width: '100%'\n    }\n  }, {\n    props: {\n      light: true\n    },\n    style: {\n      borderColor: theme.alpha((theme.vars || theme).palette.divider, 0.08)\n    }\n  }, {\n    props: {\n      variant: 'inset'\n    },\n    style: {\n      marginLeft: 72\n    }\n  }, {\n    props: {\n      variant: 'middle',\n      orientation: 'horizontal'\n    },\n    style: {\n      marginLeft: theme.spacing(2),\n      marginRight: theme.spacing(2)\n    }\n  }, {\n    props: {\n      variant: 'middle',\n      orientation: 'vertical'\n    },\n    style: {\n      marginTop: theme.spacing(1),\n      marginBottom: theme.spacing(1)\n    }\n  }, {\n    props: {\n      orientation: 'vertical'\n    },\n    style: {\n      height: '100%',\n      borderBottomWidth: 0,\n      borderRightWidth: 'thin'\n    }\n  }, {\n    props: {\n      flexItem: true\n    },\n    style: {\n      alignSelf: 'stretch',\n      height: 'auto'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !!ownerState.children,\n    style: {\n      display: 'flex',\n      textAlign: 'center',\n      border: 0,\n      borderTopStyle: 'solid',\n      borderLeftStyle: 'solid',\n      '&::before, &::after': {\n        content: '\"\"',\n        alignSelf: 'center'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.children && ownerState.orientation !== 'vertical',\n    style: {\n      '&::before, &::after': {\n        width: '100%',\n        borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,\n        borderTopStyle: 'inherit'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.orientation === 'vertical' && ownerState.children,\n    style: {\n      flexDirection: 'column',\n      '&::before, &::after': {\n        height: '100%',\n        borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,\n        borderLeftStyle: 'inherit'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical',\n    style: {\n      '&::before': {\n        width: '90%'\n      },\n      '&::after': {\n        width: '10%'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical',\n    style: {\n      '&::before': {\n        width: '10%'\n      },\n      '&::after': {\n        width: '90%'\n      }\n    }\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})(memoTheme(({\n  theme\n}) => ({\n  display: 'inline-block',\n  paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,\n  paddingRight: `calc(${theme.spacing(1)} * 1.2)`,\n  whiteSpace: 'nowrap',\n  variants: [{\n    props: {\n      orientation: 'vertical'\n    },\n    style: {\n      paddingTop: `calc(${theme.spacing(1)} * 1.2)`,\n      paddingBottom: `calc(${theme.spacing(1)} * 1.2)`\n    }\n  }]\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    orientation = 'horizontal',\n    component = children || orientation === 'vertical' ? 'div' : 'hr',\n    flexItem = false,\n    light = false,\n    role = component !== 'hr' ? 'separator' : undefined,\n    textAlign = 'center',\n    variant = 'fullWidth',\n    ...other\n  } = props;\n  const ownerState = {\n    ...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, {\n    as: component,\n    className: clsx(classes.root, className),\n    role: role,\n    ref: ref,\n    ownerState: ownerState,\n    \"aria-orientation\": role === 'separator' && (component !== 'hr' || orientation === 'vertical') ? orientation : undefined,\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 */\nif (Divider) {\n  Divider.muiSkipListHighlight = true;\n}\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. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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.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 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 * 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/index.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport Typography from \"../Typography/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport formControlLabelClasses, { getFormControlLabelUtilityClasses } from \"./formControlLabelClasses.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsx as _jsx, 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})(memoTheme(({\n  theme\n}) => ({\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  [`& .${formControlLabelClasses.label}`]: {\n    [`&.${formControlLabelClasses.disabled}`]: {\n      color: (theme.vars || theme).palette.text.disabled\n    }\n  },\n  variants: [{\n    props: {\n      labelPlacement: 'start'\n    },\n    style: {\n      flexDirection: 'row-reverse',\n      marginRight: -11\n    }\n  }, {\n    props: {\n      labelPlacement: 'top'\n    },\n    style: {\n      flexDirection: 'column-reverse'\n    }\n  }, {\n    props: {\n      labelPlacement: 'bottom'\n    },\n    style: {\n      flexDirection: 'column'\n    }\n  }, {\n    props: ({\n      labelPlacement\n    }) => labelPlacement === 'start' || labelPlacement === 'top' || labelPlacement === 'bottom',\n    style: {\n      marginLeft: 16 // used for row presentation of radio/checkbox\n    }\n  }]\n})));\nconst AsteriskComponent = styled('span', {\n  name: 'MuiFormControlLabel',\n  slot: 'Asterisk'\n})(memoTheme(({\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  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiFormControlLabel'\n  });\n  const {\n    checked,\n    className,\n    componentsProps = {},\n    control,\n    disabled: disabledProp,\n    disableTypography,\n    inputRef,\n    label: labelProp,\n    labelPlacement = 'end',\n    name,\n    onChange,\n    required: requiredProp,\n    slots = {},\n    slotProps = {},\n    value,\n    ...other\n  } = props;\n  const muiFormControl = useFormControl();\n  const disabled = disabledProp ?? control.props.disabled ?? muiFormControl?.disabled;\n  const required = 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 = {\n    ...props,\n    disabled,\n    labelPlacement,\n    required,\n    error: fcs.error\n  };\n  const classes = useUtilityClasses(ownerState);\n  const externalForwardedProps = {\n    slots,\n    slotProps: {\n      ...componentsProps,\n      ...slotProps\n    }\n  };\n  const [TypographySlot, typographySlotProps] = useSlot('typography', {\n    elementType: Typography,\n    externalForwardedProps,\n    ownerState\n  });\n  let label = labelProp;\n  if (label != null && label.type !== Typography && !disableTypography) {\n    label = /*#__PURE__*/_jsx(TypographySlot, {\n      component: \"span\",\n      ...typographySlotProps,\n      className: clsx(classes.label, typographySlotProps?.className),\n      children: label\n    });\n  }\n  return /*#__PURE__*/_jsxs(FormControlLabelRoot, {\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    ref: ref,\n    ...other,\n    children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(\"div\", {\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   * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    typography: 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 value of the component.\n   */\n  value: PropTypes.any\n} : void 0;\nexport default FormControlLabel;","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createGrid } from '@mui/system/Grid';\nimport requirePropFactory from \"../utils/requirePropFactory.js\";\nimport { styled } from \"../styles/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useTheme from \"../styles/useTheme.js\";\n/**\n *\n * Demos:\n *\n * - [Grid](https://v7.mui.com/material-ui/react-grid/)\n *\n * API:\n *\n * - [Grid API](https://v7.mui.com/material-ui/api/grid/)\n */\nconst Grid = createGrid({\n  createStyledComponent: styled('div', {\n    name: 'MuiGrid',\n    slot: 'Root',\n    overridesResolver: (props, styles) => {\n      const {\n        ownerState\n      } = props;\n      return [styles.root, ownerState.container && styles.container];\n    }\n  }),\n  componentName: 'MuiGrid',\n  useThemeProps: inProps => useDefaultProps({\n    props: inProps,\n    name: 'MuiGrid'\n  }),\n  useTheme\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 TypeScript types and run `pnpm proptypes`. │\n  // └─────────────────────────────────────────────────────────────────────┘\n  /**\n   * The content of the component.\n   */\n  children: PropTypes.node,\n  /**\n   * The number of columns.\n   * @default 12\n   */\n  columns: PropTypes /* @typescript-to-proptypes-ignore */.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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n  /**\n   * Defines the offset value for the type `item` components.\n   */\n  offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n  /**\n   * Defines the vertical space between the type `item` components.\n   * It overrides the value of the `spacing` prop.\n   */\n  rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * Defines the size of the the type `item` components.\n   */\n  size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n  /**\n   * @ignore\n   */\n  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n  /**\n   * @internal\n   * The level of the grid starts from `0` and increases when the grid nests\n   * inside another grid. Nesting is defined as a container Grid being a direct\n   * child of a container Grid.\n   *\n   * ```js\n   * <Grid container> // level 0\n   *   <Grid container> // level 1\n   *     <Grid container> // level 2\n   * ```\n   *\n   * Only consecutive grid is considered nesting. A grid container will start at\n   * `0` if there are non-Grid container element above it.\n   *\n   * ```js\n   * <Grid container> // level 0\n   *   <div>\n   *     <Grid container> // level 0\n   * ```\n   *\n   * ```js\n   * <Grid container> // level 0\n   *   <Grid>\n   *     <Grid container> // level 0\n   * ```\n   */\n  unstable_level: PropTypes.number,\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} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n  const Component = Grid;\n  const requireProp = requirePropFactory('Grid', Component);\n  // eslint-disable-next-line no-useless-concat\n  Component['propTypes' + ''] = {\n    // eslint-disable-next-line react/forbid-foreign-prop-types\n    ...Component.propTypes,\n    direction: requireProp('container'),\n    spacing: requireProp('container'),\n    wrap: requireProp('container')\n  };\n}\nexport default Grid;","const getLegacyGridWarning = propName => {\n  if (['item', 'zeroMinWidth'].includes(propName)) {\n    return `The \\`${propName}\\` prop has been removed and is no longer necessary. You can safely remove it.`;\n  }\n\n  // #host-reference\n  return `The \\`${propName}\\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;\n};\nconst warnedAboutProps = [];\n\n/**\n * Deletes the legacy Grid component props from the `props` object and warns once about them if found.\n *\n * @param {object} props The props object to remove the legacy Grid props from.\n * @param {Breakpoints} breakpoints The breakpoints object.\n */\nexport default function deleteLegacyGridProps(props, breakpoints) {\n  const propsToWarn = [];\n  if (props.item !== undefined) {\n    delete props.item;\n    propsToWarn.push('item');\n  }\n  if (props.zeroMinWidth !== undefined) {\n    delete props.zeroMinWidth;\n    propsToWarn.push('zeroMinWidth');\n  }\n  breakpoints.keys.forEach(breakpoint => {\n    if (props[breakpoint] !== undefined) {\n      propsToWarn.push(breakpoint);\n      delete props[breakpoint];\n    }\n  });\n  if (process.env.NODE_ENV !== 'production') {\n    propsToWarn.forEach(prop => {\n      if (!warnedAboutProps.includes(prop)) {\n        warnedAboutProps.push(prop);\n        console.warn(`MUI Grid: ${getLegacyGridWarning(prop)}\\n`);\n      }\n    });\n  }\n}","'use client';\n\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 \"../zero-styled/index.js\";\nimport { normalizedTransitionCallback, getTransitionProps, getTransitionChildStyle, reflow } from \"../transitions/utils.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\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  exiting: {\n    opacity: 0,\n    transform: getScale(0.75)\n  },\n  exited: {\n    opacity: 0,\n    transform: getScale(0.75)\n  }\n};\nconst hiddenStyles = {\n  opacity: 0,\n  transform: getScale(0.75),\n  visibility: 'hidden'\n};\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    ...other\n  } = props;\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 handleEntering = normalizedTransitionCallback(nodeRef, onEntering);\n  const handleEnter = normalizedTransitionCallback(nodeRef, (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: duration * 0.666,\n      delay,\n      easing: transitionTimingFunction\n    })].join(',');\n    if (onEnter) {\n      onEnter(node, isAppearing);\n    }\n  });\n  const handleEntered = normalizedTransitionCallback(nodeRef, onEntered);\n  const handleExiting = normalizedTransitionCallback(nodeRef, onExiting);\n  const handleExit = normalizedTransitionCallback(nodeRef, 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: duration * 0.666,\n      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(nodeRef, node => {\n    node.style.transition = '';\n    if (onExited) {\n      onExited(node);\n    }\n  });\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(Transition, {\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, {\n      ownerState,\n      ...restChildProps\n    }) => {\n      const childStyle = getTransitionChildStyle(state, inProp, styles, hiddenStyles, style, children.props.style);\n      return /*#__PURE__*/React.cloneElement(children, {\n        style: childStyle,\n        ref: handleRef,\n        ...restChildProps\n      });\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;\nif (Grow) {\n  Grow.muiSupportAuto = true;\n}\nexport default Grow;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getIconUtilityClass(slot) {\n  return generateUtilityClass('MuiIcon', slot);\n}\nconst iconClasses = generateUtilityClasses('MuiIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default iconClasses;","'use client';\n\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.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getIconUtilityClass } from \"./iconClasses.js\";\nimport { jsx as _jsx } 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, getIconUtilityClass, classes);\n};\nconst IconRoot = styled('span', {\n  name: 'MuiIcon',\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})(memoTheme(({\n  theme\n}) => ({\n  userSelect: 'none',\n  width: '1em',\n  height: '1em',\n  // Chrome fix for https://issues.chromium.org/issues/41375697\n  // To remove at some point.\n  overflow: 'hidden',\n  display: 'inline-block',\n  // allow overflow hidden to take action\n  textAlign: 'center',\n  // support non-square icon\n  flexShrink: 0,\n  variants: [{\n    props: {\n      fontSize: 'inherit'\n    },\n    style: {\n      fontSize: 'inherit'\n    }\n  }, {\n    props: {\n      fontSize: 'small'\n    },\n    style: {\n      fontSize: theme.typography.pxToRem(20)\n    }\n  }, {\n    props: {\n      fontSize: 'medium'\n    },\n    style: {\n      fontSize: theme.typography.pxToRem(24)\n    }\n  }, {\n    props: {\n      fontSize: 'large'\n    },\n    style: {\n      fontSize: theme.typography.pxToRem(36)\n    }\n  }, {\n    props: {\n      color: 'action'\n    },\n    style: {\n      color: (theme.vars || theme).palette.action.active\n    }\n  }, {\n    props: {\n      color: 'disabled'\n    },\n    style: {\n      color: (theme.vars || theme).palette.action.disabled\n    }\n  }, {\n    props: {\n      color: 'inherit'\n    },\n    style: {\n      color: undefined\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color\n    },\n    style: {\n      color: (theme.vars || theme).palette[color].main\n    }\n  }))]\n})));\nconst Icon = /*#__PURE__*/React.forwardRef(function Icon(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiIcon'\n  });\n  const {\n    baseClassName = 'material-icons',\n    className,\n    color = 'inherit',\n    component: Component = 'span',\n    fontSize = 'medium',\n    ...other\n  } = props;\n  const ownerState = {\n    ...props,\n    baseClassName,\n    color,\n    component: Component,\n    fontSize\n  };\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(IconRoot, {\n    as: Component,\n    className: clsx(baseClassName,\n    // Prevent the translation of the text content.\n    // The font relies on the exact text content to render the icon.\n    'notranslate', classes.root, className),\n    ownerState: ownerState,\n    \"aria-hidden\": true,\n    ref: ref,\n    ...other\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Icon.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 base class applied to the icon. Defaults to 'material-icons', but can be changed to any\n   * other base class that suits the icon font you're using (for example material-icons-rounded, fas, etc).\n   * @default 'material-icons'\n   */\n  baseClassName: PropTypes.string,\n  /**\n   * The name of the icon font ligature.\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 '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   * 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;\nIcon.muiName = 'Icon';\nexport default Icon;","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\nvar _span;\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.js\";\nimport Typography from \"../Typography/index.js\";\nimport FormControlContext from \"../FormControl/FormControlContext.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport inputAdornmentClasses, { getInputAdornmentUtilityClass } from \"./inputAdornmentClasses.js\";\nimport { jsx as _jsx, 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})(memoTheme(({\n  theme\n}) => ({\n  display: 'flex',\n  maxHeight: '2em',\n  alignItems: 'center',\n  whiteSpace: 'nowrap',\n  color: (theme.vars || theme).palette.action.active,\n  variants: [{\n    props: {\n      variant: 'filled'\n    },\n    style: {\n      [`&.${inputAdornmentClasses.positionStart}&:not(.${inputAdornmentClasses.hiddenLabel})`]: {\n        marginTop: 16\n      }\n    }\n  }, {\n    props: {\n      position: 'start'\n    },\n    style: {\n      marginRight: 8\n    }\n  }, {\n    props: {\n      position: 'end'\n    },\n    style: {\n      marginLeft: 8\n    }\n  }, {\n    props: {\n      disablePointerEvents: true\n    },\n    style: {\n      pointerEvents: 'none'\n    }\n  }]\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    ...other\n  } = props;\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 = {\n    ...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, {\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: \"textSecondary\",\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          \"aria-hidden\": true,\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 * 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 * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"./ListContext.js\";\nimport { getListUtilityClass } from \"./listClasses.js\";\nimport { jsxs as _jsxs, 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  listStyle: 'none',\n  margin: 0,\n  padding: 0,\n  position: 'relative',\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.disablePadding,\n    style: {\n      paddingTop: 8,\n      paddingBottom: 8\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.subheader,\n    style: {\n      paddingTop: 0\n    }\n  }]\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    ...other\n  } = props;\n  const context = React.useMemo(() => ({\n    dense\n  }), [dense]);\n  const ownerState = {\n    ...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, {\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 generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemUtilityClass(slot) {\n  return generateUtilityClass('MuiListItem', slot);\n}\nconst listItemClasses = generateUtilityClasses('MuiListItem', ['root', 'container', 'dense', 'alignItemsFlexStart', 'divider', 'gutters', 'padding', 'secondaryAction']);\nexport default listItemClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemButtonUtilityClass(slot) {\n  return generateUtilityClass('MuiListItemButton', slot);\n}\nconst listItemButtonClasses = generateUtilityClasses('MuiListItemButton', ['root', 'focusVisible', 'dense', 'alignItemsFlexStart', 'disabled', 'divider', 'gutters', 'selected']);\nexport default listItemButtonClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemSecondaryActionClassesUtilityClass(slot) {\n  return generateUtilityClass('MuiListItemSecondaryAction', slot);\n}\nconst listItemSecondaryActionClasses = generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);\nexport default listItemSecondaryActionClasses;","'use client';\n\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/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemSecondaryActionClassesUtilityClass } from \"./listItemSecondaryActionClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    disableGutters,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', disableGutters && 'disableGutters']\n  };\n  return composeClasses(slots, getListItemSecondaryActionClassesUtilityClass, classes);\n};\nconst ListItemSecondaryActionRoot = styled('div', {\n  name: 'MuiListItemSecondaryAction',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.disableGutters && styles.disableGutters];\n  }\n})({\n  position: 'absolute',\n  right: 16,\n  top: '50%',\n  transform: 'translateY(-50%)',\n  variants: [{\n    props: ({\n      ownerState\n    }) => ownerState.disableGutters,\n    style: {\n      right: 0\n    }\n  }]\n});\n\n/**\n * Must be used as the last child of ListItem to function properly.\n *\n * @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\nconst ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiListItemSecondaryAction'\n  });\n  const {\n    className,\n    ...other\n  } = props;\n  const context = React.useContext(ListContext);\n  const ownerState = {\n    ...props,\n    disableGutters: context.disableGutters\n  };\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(ListItemSecondaryActionRoot, {\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    ref: ref,\n    ...other\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemSecondaryAction.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 selection control.\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;\nListItemSecondaryAction.muiName = 'ListItemSecondaryAction';\nexport default ListItemSecondaryAction;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport isHostComponent from '@mui/utils/isHostComponent';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport isMuiElement from \"../utils/isMuiElement.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemUtilityClass } from \"./listItemClasses.js\";\nimport { listItemButtonClasses } from \"../ListItemButton/index.js\";\nimport ListItemSecondaryAction from \"../ListItemSecondaryAction/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n  const {\n    ownerState\n  } = props;\n  return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters, !ownerState.disablePadding && styles.padding, ownerState.hasSecondaryAction && styles.secondaryAction];\n};\nconst useUtilityClasses = ownerState => {\n  const {\n    alignItems,\n    classes,\n    dense,\n    disableGutters,\n    disablePadding,\n    divider,\n    hasSecondaryAction\n  } = ownerState;\n  const slots = {\n    root: ['root', dense && 'dense', !disableGutters && 'gutters', !disablePadding && 'padding', divider && 'divider', alignItems === 'flex-start' && 'alignItemsFlexStart', hasSecondaryAction && 'secondaryAction'],\n    container: ['container'],\n    secondaryAction: ['secondaryAction']\n  };\n  return composeClasses(slots, getListItemUtilityClass, classes);\n};\nexport const ListItemRoot = styled('div', {\n  name: 'MuiListItem',\n  slot: 'Root',\n  overridesResolver\n})(memoTheme(({\n  theme\n}) => ({\n  display: 'flex',\n  justifyContent: 'flex-start',\n  alignItems: 'center',\n  position: 'relative',\n  textDecoration: 'none',\n  width: '100%',\n  boxSizing: 'border-box',\n  textAlign: 'left',\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.disablePadding,\n    style: {\n      paddingTop: 8,\n      paddingBottom: 8\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.disablePadding && ownerState.dense,\n    style: {\n      paddingTop: 4,\n      paddingBottom: 4\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.disablePadding && !ownerState.disableGutters,\n    style: {\n      paddingLeft: 16,\n      paddingRight: 16\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.disablePadding && !!ownerState.secondaryAction,\n    style: {\n      // Add some space to avoid collision as `ListItemSecondaryAction`\n      // is absolutely positioned.\n      paddingRight: 48\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !!ownerState.secondaryAction,\n    style: {\n      [`& > .${listItemButtonClasses.root}`]: {\n        paddingRight: 48\n      }\n    }\n  }, {\n    props: {\n      alignItems: 'flex-start'\n    },\n    style: {\n      alignItems: 'flex-start'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.divider,\n    style: {\n      borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n      backgroundClip: 'padding-box'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.button,\n    style: {\n      transition: theme.transitions.create('background-color', {\n        duration: theme.transitions.duration.shortest\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    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.hasSecondaryAction,\n    style: {\n      // Add some space to avoid collision as `ListItemSecondaryAction`\n      // is absolutely positioned.\n      paddingRight: 48\n    }\n  }]\n})));\nconst ListItemContainer = styled('li', {\n  name: 'MuiListItem',\n  slot: 'Container'\n})({\n  position: 'relative'\n});\n\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\nconst ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiListItem'\n  });\n  const {\n    alignItems = 'center',\n    children: childrenProp,\n    className,\n    component: componentProp,\n    components = {},\n    componentsProps = {},\n    ContainerComponent = 'li',\n    ContainerProps: {\n      className: ContainerClassName,\n      ...ContainerProps\n    } = {},\n    dense = false,\n    disableGutters = false,\n    disablePadding = false,\n    divider = false,\n    secondaryAction,\n    slotProps = {},\n    slots = {},\n    ...other\n  } = props;\n  const context = React.useContext(ListContext);\n  const childContext = React.useMemo(() => ({\n    dense: dense || context.dense || false,\n    alignItems,\n    disableGutters\n  }), [alignItems, context.dense, dense, disableGutters]);\n  const listItemRef = React.useRef(null);\n  const children = React.Children.toArray(childrenProp);\n\n  // v4 implementation, deprecated in v6, will be removed in a future major release\n  const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n  const ownerState = {\n    ...props,\n    alignItems,\n    dense: childContext.dense,\n    disableGutters,\n    disablePadding,\n    divider,\n    hasSecondaryAction\n  };\n  const classes = useUtilityClasses(ownerState);\n  const handleRef = useForkRef(listItemRef, ref);\n  const externalForwardedProps = {\n    slots,\n    slotProps\n  };\n  const [SecondaryActionSlot, secondaryActionSlotProps] = useSlot('secondaryAction', {\n    elementType: ListItemSecondaryAction,\n    externalForwardedProps,\n    ownerState,\n    className: classes.secondaryAction\n  });\n  const Root = slots.root || components.Root || ListItemRoot;\n  const rootProps = slotProps.root || componentsProps.root || {};\n  const componentProps = {\n    className: clsx(classes.root, rootProps.className, className),\n    ...other\n  };\n  let Component = componentProp || 'li';\n\n  // v4 implementation, deprecated in v6, will be removed in a future major release\n  if (hasSecondaryAction) {\n    // Use div by default.\n    Component = !componentProps.component && !componentProp ? 'div' : Component;\n\n    // Avoid nesting of li > li.\n    if (ContainerComponent === 'li') {\n      if (Component === 'li') {\n        Component = 'div';\n      } else if (componentProps.component === 'li') {\n        componentProps.component = 'div';\n      }\n    }\n    return /*#__PURE__*/_jsx(ListContext.Provider, {\n      value: childContext,\n      children: /*#__PURE__*/_jsxs(ListItemContainer, {\n        as: ContainerComponent,\n        className: clsx(classes.container, ContainerClassName),\n        ref: handleRef,\n        ownerState: ownerState,\n        ...ContainerProps,\n        children: [/*#__PURE__*/_jsx(Root, {\n          ...rootProps,\n          ...(!isHostComponent(Root) && {\n            as: Component,\n            ownerState: {\n              ...ownerState,\n              ...rootProps.ownerState\n            }\n          }),\n          ...componentProps,\n          children: children\n        }), children.pop()]\n      })\n    });\n  }\n  return /*#__PURE__*/_jsx(ListContext.Provider, {\n    value: childContext,\n    children: /*#__PURE__*/_jsxs(Root, {\n      ...rootProps,\n      as: Component,\n      ref: handleRef,\n      ...(!isHostComponent(Root) && {\n        ownerState: {\n          ...ownerState,\n          ...rootProps.ownerState\n        }\n      }),\n      ...componentProps,\n      children: [children, secondaryAction && /*#__PURE__*/_jsx(SecondaryActionSlot, {\n        ...secondaryActionSlotProps,\n        children: secondaryAction\n      })]\n    })\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.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   * Defines the `align-items` style property.\n   * @default 'center'\n   */\n  alignItems: PropTypes.oneOf(['center', 'flex-start']),\n  /**\n   * The content of the component if a `ListItemSecondaryAction` is used it must\n   * be the last child.\n   */\n  children: chainPropTypes(PropTypes.node, props => {\n    const children = React.Children.toArray(props.children);\n\n    // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n    let secondaryActionIndex = -1;\n    for (let i = children.length - 1; i >= 0; i -= 1) {\n      const child = children[i];\n      if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n        secondaryActionIndex = i;\n        break;\n      }\n    }\n\n    //  is ListItemSecondaryAction the last child of ListItem\n    if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n      return new Error('MUI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\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 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   * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    root: PropTypes.object\n  }),\n  /**\n   * The container component used when a `ListItemSecondaryAction` is the last child.\n   * @default 'li'\n   * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  ContainerComponent: elementTypeAcceptingRef,\n  /**\n   * Props applied to the container component if used.\n   * @default {}\n   * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  ContainerProps: PropTypes.object,\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 List component.\n   * @default false\n   */\n  dense: 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`, all padding is removed.\n   * @default false\n   */\n  disablePadding: PropTypes.bool,\n  /**\n   * If `true`, a 1px light border is added to the bottom of the list item.\n   * @default false\n   */\n  divider: PropTypes.bool,\n  /**\n   * The element to display at the end of ListItem.\n   */\n  secondaryAction: PropTypes.node,\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    root: PropTypes.object,\n    secondaryAction: 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    root: PropTypes.elementType,\n    secondaryAction: 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 ListItem;","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;","'use client';\n\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/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getListItemIconUtilityClass } from \"./listItemIconClasses.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n  const {\n    alignItems,\n    classes\n  } = ownerState;\n  const slots = {\n    root: ['root', alignItems === 'flex-start' && 'alignItemsFlexStart']\n  };\n  return composeClasses(slots, getListItemIconUtilityClass, classes);\n};\nconst ListItemIconRoot = styled('div', {\n  name: 'MuiListItemIcon',\n  slot: 'Root',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.root, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  minWidth: 56,\n  color: (theme.vars || theme).palette.action.active,\n  flexShrink: 0,\n  display: 'inline-flex',\n  variants: [{\n    props: {\n      alignItems: 'flex-start'\n    },\n    style: {\n      marginTop: 8\n    }\n  }]\n})));\n\n/**\n * A simple wrapper to apply `List` styles to an `Icon` or `SvgIcon`.\n */\nconst ListItemIcon = /*#__PURE__*/React.forwardRef(function ListItemIcon(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiListItemIcon'\n  });\n  const {\n    className,\n    ...other\n  } = props;\n  const context = React.useContext(ListContext);\n  const ownerState = {\n    ...props,\n    alignItems: context.alignItems\n  };\n  const classes = useUtilityClasses(ownerState);\n  return /*#__PURE__*/_jsx(ListItemIconRoot, {\n    className: clsx(classes.root, className),\n    ownerState: ownerState,\n    ref: ref,\n    ...other\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemIcon.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 `Icon`, `SvgIcon`,\n   * or a `@mui/icons-material` SVG icon 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 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 ListItemIcon;","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;","'use client';\n\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport List from \"../List/index.js\";\nimport getActiveElement from \"../utils/getActiveElement.js\";\nimport getScrollbarSize from \"../utils/getScrollbarSize.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport { ownerWindow } from \"../utils/index.js\";\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.startsWith(textCriteria.keys.join(''));\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    ...other\n  } = props;\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(ownerWindow(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    const isModifierKeyPressed = event.ctrlKey || event.metaKey || event.altKey;\n    if (isModifierKeyPressed) {\n      if (onKeyDown) {\n        onKeyDown(event);\n      }\n      return;\n    }\n\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 = getActiveElement(ownerDocument(list));\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, {\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;","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 * 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 isHostComponent from '@mui/utils/isHostComponent';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport isLayoutSupported from \"../utils/isLayoutSupported.js\";\nimport debounce from \"../utils/debounce.js\";\nimport ownerDocument from \"../utils/ownerDocument.js\";\nimport ownerWindow from \"../utils/ownerWindow.js\";\nimport Grow from \"../Grow/index.js\";\nimport Modal from \"../Modal/index.js\";\nimport PaperBase from \"../Paper/index.js\";\nimport { getPopoverUtilityClass } from \"./popoverClasses.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { mergeSlotProps } from \"../utils/index.js\";\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})({});\nexport const PopoverPaper = styled(PaperBase, {\n  name: 'MuiPopover',\n  slot: '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  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    // TODO: remove in v7\n    slots = {},\n    slotProps = {},\n    transformOrigin = {\n      vertical: 'top',\n      horizontal: 'left'\n    },\n    TransitionComponent,\n    // TODO: remove in v7\n    transitionDuration: transitionDurationProp = 'auto',\n    TransitionProps = {},\n    // TODO: remove in v7\n    disableScrollLock = false,\n    ...other\n  } = props;\n  const paperRef = React.useRef();\n  const ownerState = {\n    ...props,\n    anchorOrigin,\n    anchorReference,\n    elevation,\n    marginThreshold,\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 (isLayoutSupported() && 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.setProperty('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 = () => {\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(resolveAnchorEl(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  const externalForwardedProps = {\n    slots: {\n      transition: TransitionComponent,\n      ...slots\n    },\n    slotProps: {\n      transition: TransitionProps,\n      paper: PaperPropsProp,\n      ...slotProps\n    }\n  };\n  const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n    elementType: Grow,\n    externalForwardedProps,\n    ownerState,\n    getSlotProps: handlers => ({\n      ...handlers,\n      onEntering: (element, isAppearing) => {\n        handlers.onEntering?.(element, isAppearing);\n        handleEntering();\n      },\n      onExited: element => {\n        handlers.onExited?.(element);\n        handleExited();\n      }\n    }),\n    additionalProps: {\n      appear: true,\n      in: open\n    }\n  });\n  if (transitionDurationProp === 'auto' && !TransitionSlot.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, {\n    slots: rootSlotsProp,\n    slotProps: rootSlotPropsProp,\n    ...rootProps\n  }] = useSlot('root', {\n    ref,\n    elementType: PopoverRoot,\n    externalForwardedProps: {\n      ...externalForwardedProps,\n      ...other\n    },\n    shouldForwardComponentProp: true,\n    additionalProps: {\n      slots: {\n        backdrop: slots.backdrop\n      },\n      slotProps: {\n        backdrop: mergeSlotProps(typeof slotProps.backdrop === 'function' ? slotProps.backdrop(ownerState) : slotProps.backdrop, {\n          invisible: true\n        })\n      },\n      container,\n      open\n    },\n    ownerState,\n    className: clsx(classes.root, className)\n  });\n  const [PaperSlot, paperProps] = useSlot('paper', {\n    ref: paperRef,\n    className: classes.paper,\n    elementType: PopoverPaper,\n    externalForwardedProps,\n    shouldForwardComponentProp: true,\n    additionalProps: {\n      elevation,\n      style: isPositioned ? undefined : {\n        opacity: 0\n      }\n    },\n    ownerState\n  });\n  return /*#__PURE__*/_jsx(RootSlot, {\n    ...rootProps,\n    ...(!isHostComponent(RootSlot) && {\n      slots: rootSlotsProp,\n      slotProps: rootSlotPropsProp,\n      disableScrollLock\n    }),\n    children: /*#__PURE__*/_jsx(TransitionSlot, {\n      ...transitionSlotProps,\n      timeout: transitionDuration,\n      children: /*#__PURE__*/_jsx(PaperSlot, {\n        ...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](https://mui.com/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 !== 'production') {\n          if (isLayoutSupported() && 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        }\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   * A backdrop component. This prop enables custom backdrop rendering.\n   * @deprecated Use `slots.backdrop` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * 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`](https://mui.com/material-ui/api/paper/) element.\n   *\n   * This prop is an alias for `slotProps.paper` and will be overridden 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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\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    backdrop: PropTypes.elementType,\n    paper: PropTypes.elementType,\n    root: PropTypes.elementType,\n    transition: 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](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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   * @deprecated use the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 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 * as React from 'react';\nconst SelectFocusSourceContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n  SelectFocusSourceContext.displayName = 'SelectFocusSourceContext';\n}\nfunction useSelectFocusSource() {\n  const context = React.useContext(SelectFocusSourceContext);\n  return context;\n}\nconst SelectFocusSourceProvider = SelectFocusSourceContext.Provider;\nexport { useSelectFocusSource, SelectFocusSourceProvider };","'use client';\n\nvar _span;\nimport PropTypes from 'prop-types';\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\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})(memoTheme(({\n  theme\n}) => ({\n  float: 'unset',\n  // Fix conflict with bootstrap\n  width: 'auto',\n  // Fix conflict with bootstrap\n  overflow: 'hidden',\n  // Fix Horizontal scroll when label too long\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.withLabel,\n    style: {\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    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.withLabel,\n    style: {\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    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.withLabel && ownerState.notched,\n    style: {\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\n/**\n * @ignore - internal component.\n */\nexport default function NotchedOutline(props) {\n  const {\n    children,\n    classes,\n    className,\n    label,\n    notched,\n    ...other\n  } = props;\n  const withLabel = label != null && label !== '';\n  const ownerState = {\n    ...props,\n    notched,\n    withLabel\n  };\n  return /*#__PURE__*/_jsx(NotchedOutlineRoot, {\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        \"aria-hidden\": true,\n        children: \"\\u200B\"\n      }))\n    })\n  });\n}\nprocess.env.NODE_ENV !== \"production\" ? NotchedOutline.propTypes /* remove-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;","'use client';\n\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.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport formControlState from \"../FormControl/formControlState.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport outlinedInputClasses, { getOutlinedInputUtilityClass } from \"./outlinedInputClasses.js\";\nimport InputBase, { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from \"../InputBase/InputBase.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { jsxs as _jsxs, 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 {\n    ...classes,\n    // forward classes to the InputBase\n    ...composedClasses\n  };\n};\nconst OutlinedInputRoot = styled(InputBaseRoot, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiOutlinedInput',\n  slot: 'Root',\n  overridesResolver: inputBaseRootOverridesResolver\n})(memoTheme(({\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    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 ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor\n      }\n    },\n    [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n      borderWidth: 2\n    },\n    variants: [...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n      props: {\n        color\n      },\n      style: {\n        [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {\n          borderColor: (theme.vars || theme).palette[color].main\n        }\n      }\n    })), {\n      props: {},\n      // to override the above style\n      style: {\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      }\n    }, {\n      props: ({\n        ownerState\n      }) => ownerState.startAdornment,\n      style: {\n        paddingLeft: 14\n      }\n    }, {\n      props: ({\n        ownerState\n      }) => ownerState.endAdornment,\n      style: {\n        paddingRight: 14\n      }\n    }, {\n      props: ({\n        ownerState\n      }) => ownerState.multiline,\n      style: {\n        padding: '16.5px 14px'\n      }\n    }, {\n      props: ({\n        ownerState,\n        size\n      }) => ownerState.multiline && size === 'small',\n      style: {\n        padding: '8.5px 14px'\n      }\n    }]\n  };\n}));\nconst NotchedOutlineRoot = styled(NotchedOutline, {\n  name: 'MuiOutlinedInput',\n  slot: 'NotchedOutline'\n})(memoTheme(({\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 ? theme.alpha(theme.vars.palette.common.onBackground, 0.23) : borderColor\n  };\n}));\nconst OutlinedInputInput = styled(InputBaseInput, {\n  name: 'MuiOutlinedInput',\n  slot: 'Input',\n  overridesResolver: inputBaseInputOverridesResolver\n})(memoTheme(({\n  theme\n}) => ({\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  }),\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  }),\n  variants: [{\n    props: {\n      size: 'small'\n    },\n    style: {\n      padding: '8.5px 14px'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.multiline,\n    style: {\n      padding: 0\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.startAdornment,\n    style: {\n      paddingLeft: 0\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.endAdornment,\n    style: {\n      paddingRight: 0\n    }\n  }]\n})));\nconst OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inProps, ref) {\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    slotProps = {},\n    type = 'text',\n    ...other\n  } = props;\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 = {\n    ...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 = slots.root ?? components.Root ?? OutlinedInputRoot;\n  const InputSlot = slots.input ?? components.Input ?? OutlinedInputInput;\n  const [NotchedSlot, notchedProps] = useSlot('notchedOutline', {\n    elementType: NotchedOutlineRoot,\n    className: classes.notchedOutline,\n    shouldForwardComponentProp: true,\n    ownerState,\n    externalForwardedProps: {\n      slots,\n      slotProps\n    },\n    additionalProps: {\n      label: label != null && label !== '' && fcs.required ? /*#__PURE__*/_jsxs(React.Fragment, {\n        children: [label, \"\\u2009\", '*']\n      }) : label\n    }\n  });\n  return /*#__PURE__*/_jsx(InputBase, {\n    slots: {\n      root: RootSlot,\n      input: InputSlot\n    },\n    slotProps: slotProps,\n    renderSuffix: state => /*#__PURE__*/_jsx(NotchedSlot, {\n      ...notchedProps,\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: {\n      ...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   * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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/Reference/Elements/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](https://mui.com/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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: PropTypes.object,\n    notchedOutline: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.object\n  }),\n  /**\n   * The components used for each slot inside.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: PropTypes.elementType,\n    notchedOutline: 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/Reference/Elements/input#input_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;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport ButtonBase from \"../ButtonBase/index.js\";\nimport useEnhancedEffect from \"../utils/useEnhancedEffect.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport { dividerClasses } from \"../Divider/index.js\";\nimport { listItemIconClasses } from \"../ListItemIcon/index.js\";\nimport { listItemTextClasses } from \"../ListItemText/index.js\";\nimport menuItemClasses, { getMenuItemUtilityClass } from \"./menuItemClasses.js\";\nimport { useSelectFocusSource } from \"../Select/index.js\";\n\n/**\n * If autoFocus is an object, it will attempt to call `element.focus()` with the options argument.\n * If the browser doesn't support the options argument, it will fall back to a simple `element.focus()` call.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction focusWithVisible(element, focusSource) {\n  if (focusSource == null) {\n    element.focus();\n    return;\n  }\n  try {\n    element.focus({\n      focusVisible: focusSource === 'keyboard'\n    });\n  } catch (error) {\n    // If the browser doesn't support the focus options argument, fall back to a simple focus call.\n    element.focus();\n  }\n}\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 {\n    ...classes,\n    ...composedClasses\n  };\n};\nconst MenuItemRoot = styled(ButtonBase, {\n  shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n  name: 'MuiMenuItem',\n  slot: 'Root',\n  overridesResolver\n})(memoTheme(({\n  theme\n}) => ({\n  ...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  '&: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.alpha((theme.vars || theme).palette.primary.main, (theme.vars || theme).palette.action.selectedOpacity),\n    [`&.${menuItemClasses.focusVisible}`]: {\n      backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.focusOpacity}`)\n    }\n  },\n  [`&.${menuItemClasses.selected}:hover`]: {\n    backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, `${(theme.vars || theme).palette.action.selectedOpacity} + ${(theme.vars || theme).palette.action.hoverOpacity}`),\n    // Reset on touch devices, it doesn't add specificity\n    '@media (hover: none)': {\n      backgroundColor: theme.alpha((theme.vars || theme).palette.primary.main, (theme.vars || 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  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.disableGutters,\n    style: {\n      paddingLeft: 16,\n      paddingRight: 16\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.divider,\n    style: {\n      borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n      backgroundClip: 'padding-box'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.dense,\n    style: {\n      [theme.breakpoints.up('sm')]: {\n        minHeight: 'auto'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.dense,\n    style: {\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    }\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    ...other\n  } = props;\n  const focusSource = useSelectFocusSource();\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        focusWithVisible(menuItemRef.current, focusSource);\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    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [autoFocus]);\n  const ownerState = {\n    ...props,\n    dense: childContext.dense,\n    divider,\n    disableGutters\n  };\n  const classes = useUtilityClasses(props);\n  const handleRef = useForkRef(menuItemRef, ref);\n  // Don't forward the 'root' class to the ButtonBase, as it will get duplicated with the one passed to the className prop.\n  const {\n    root,\n    ...forwardedClasses\n  } = classes;\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, {\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: forwardedClasses\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.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\nimport createSvgIcon from \"../../utils/createSvgIcon.js\";\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 createSvgIcon from \"../../utils/createSvgIcon.js\";\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 PropTypes from 'prop-types';\nimport RadioButtonUncheckedIcon from \"../internal/svg-icons/RadioButtonUnchecked.js\";\nimport RadioButtonCheckedIcon from \"../internal/svg-icons/RadioButtonChecked.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { jsx as _jsx, 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})(memoTheme(({\n  theme\n}) => ({\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  variants: [{\n    props: {\n      checked: true\n    },\n    style: {\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\n/**\n * @ignore - internal component.\n */\nfunction RadioButtonIcon(props) {\n  const {\n    checked = false,\n    classes = {},\n    fontSize\n  } = props;\n  const ownerState = {\n    ...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 /* remove-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;","'use client';\n\nimport * 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 * 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 SwitchBase from \"../internal/SwitchBase.js\";\nimport RadioButtonIcon from \"./RadioButtonIcon.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createChainedFunction from \"../utils/createChainedFunction.js\";\nimport useFormControl from \"../FormControl/useFormControl.js\";\nimport useRadioGroup from \"../RadioGroup/useRadioGroup.js\";\nimport radioClasses, { getRadioUtilityClass } from \"./radioClasses.js\";\nimport rootShouldForwardProp from \"../styles/rootShouldForwardProp.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\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 {\n    ...classes,\n    ...composeClasses(slots, getRadioUtilityClass, classes)\n  };\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})(memoTheme(({\n  theme\n}) => ({\n  color: (theme.vars || theme).palette.text.secondary,\n  [`&.${radioClasses.disabled}`]: {\n    color: (theme.vars || theme).palette.action.disabled\n  },\n  variants: [{\n    props: {\n      color: 'default',\n      disabled: false,\n      disableRipple: false\n    },\n    style: {\n      '&:hover': {\n        backgroundColor: theme.alpha((theme.vars || theme).palette.action.active, (theme.vars || theme).palette.action.hoverOpacity)\n      }\n    }\n  }, ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color,\n      disabled: false,\n      disableRipple: false\n    },\n    style: {\n      '&:hover': {\n        backgroundColor: theme.alpha((theme.vars || theme).palette[color].main, (theme.vars || theme).palette.action.hoverOpacity)\n      }\n    }\n  })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n    props: {\n      color,\n      disabled: false\n    },\n    style: {\n      [`&.${radioClasses.checked}`]: {\n        color: (theme.vars || theme).palette[color].main\n      }\n    }\n  })), {\n    // Should be last to override other colors\n    props: {\n      disableRipple: false\n    },\n    style: {\n      // Reset on touch devices, it doesn't add specificity\n      '&:hover': {\n        '@media (hover: none)': {\n          backgroundColor: 'transparent'\n        }\n      }\n    }\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  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    disabled: disabledProp,\n    disableRipple = false,\n    slots = {},\n    slotProps = {},\n    inputProps,\n    ...other\n  } = props;\n  const muiFormControl = useFormControl();\n  let disabled = disabledProp;\n  if (muiFormControl) {\n    if (typeof disabled === 'undefined') {\n      disabled = muiFormControl.disabled;\n    }\n  }\n  disabled ??= false;\n  const ownerState = {\n    ...props,\n    disabled,\n    disableRipple,\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  const externalInputProps = slotProps.input ?? inputProps;\n  const [RootSlot, rootSlotProps] = useSlot('root', {\n    ref,\n    elementType: RadioRoot,\n    className: clsx(classes.root, className),\n    shouldForwardComponentProp: true,\n    externalForwardedProps: {\n      slots,\n      slotProps,\n      ...other\n    },\n    getSlotProps: handlers => ({\n      ...handlers,\n      onChange: (event, ...args) => {\n        handlers.onChange?.(event, ...args);\n        onChange(event, ...args);\n      }\n    }),\n    ownerState,\n    additionalProps: {\n      type: 'radio',\n      icon: /*#__PURE__*/React.cloneElement(icon, {\n        fontSize: icon.props.fontSize ?? size\n      }),\n      checkedIcon: /*#__PURE__*/React.cloneElement(checkedIcon, {\n        fontSize: checkedIcon.props.fontSize ?? size\n      }),\n      disabled,\n      name,\n      checked,\n      slots,\n      slotProps: {\n        // Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.\n        input: typeof externalInputProps === 'function' ? externalInputProps(ownerState) : externalInputProps\n      }\n    }\n  });\n  return /*#__PURE__*/_jsx(RootSlot, {\n    ...rootSlotProps,\n    classes: classes\n  });\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/Reference/Elements/input#attributes) applied to the `input` element.\n   * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  inputProps: PropTypes.object,\n  /**\n   * Pass a ref to the `input` element.\n   * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    input: 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   * @default {}\n   */\n  slots: PropTypes.shape({\n    input: 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 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.js\";\nexport default function useRadioGroup() {\n  return React.useContext(RadioGroupContext);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n  return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useTimeout, { Timeout } from '@mui/utils/useTimeout';\nimport elementAcceptingRef from '@mui/utils/elementAcceptingRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport isFocusVisible from '@mui/utils/isFocusVisible';\nimport getReactElementRef from '@mui/utils/getReactElementRef';\nimport { styled, useTheme } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport Grow from \"../Grow/index.js\";\nimport Popper from \"../Popper/index.js\";\nimport useEventCallback from \"../utils/useEventCallback.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useId from \"../utils/useId.js\";\nimport useControlled from \"../utils/useControlled.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport tooltipClasses, { getTooltipUtilityClass } from \"./tooltipClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n  return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n  const {\n    classes,\n    disableInteractive,\n    arrow,\n    touch,\n    placement\n  } = ownerState;\n  const slots = {\n    popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n    tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n    arrow: ['arrow']\n  };\n  return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n  name: 'MuiTooltip',\n  slot: 'Popper',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  zIndex: (theme.vars || theme).zIndex.tooltip,\n  pointerEvents: 'none',\n  variants: [{\n    props: ({\n      ownerState\n    }) => !ownerState.disableInteractive,\n    style: {\n      pointerEvents: 'auto'\n    }\n  }, {\n    props: ({\n      open\n    }) => !open,\n    style: {\n      pointerEvents: 'none'\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.arrow,\n    style: {\n      [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n        top: 0,\n        marginTop: '-0.71em',\n        '&::before': {\n          transformOrigin: '0 100%'\n        }\n      },\n      [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n        bottom: 0,\n        marginBottom: '-0.71em',\n        '&::before': {\n          transformOrigin: '100% 0'\n        }\n      },\n      [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n        height: '1em',\n        width: '0.71em',\n        '&::before': {\n          transformOrigin: '100% 100%'\n        }\n      },\n      [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n        height: '1em',\n        width: '0.71em',\n        '&::before': {\n          transformOrigin: '0 0'\n        }\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.arrow && !ownerState.isRtl,\n    style: {\n      [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n        left: 0,\n        marginLeft: '-0.71em'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.arrow && !!ownerState.isRtl,\n    style: {\n      [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: {\n        right: 0,\n        marginRight: '-0.71em'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.arrow && !ownerState.isRtl,\n    style: {\n      [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n        right: 0,\n        marginRight: '-0.71em'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.arrow && !!ownerState.isRtl,\n    style: {\n      [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: {\n        left: 0,\n        marginLeft: '-0.71em'\n      }\n    }\n  }]\n})));\nconst TooltipTooltip = styled('div', {\n  name: 'MuiTooltip',\n  slot: 'Tooltip',\n  overridesResolver: (props, styles) => {\n    const {\n      ownerState\n    } = props;\n    return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n  }\n})(memoTheme(({\n  theme\n}) => ({\n  backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : theme.alpha(theme.palette.grey[700], 0.92),\n  borderRadius: (theme.vars || theme).shape.borderRadius,\n  color: (theme.vars || theme).palette.common.white,\n  fontFamily: theme.typography.fontFamily,\n  padding: '4px 8px',\n  fontSize: theme.typography.pxToRem(11),\n  maxWidth: 300,\n  margin: 2,\n  wordWrap: 'break-word',\n  fontWeight: theme.typography.fontWeightMedium,\n  [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n    transformOrigin: 'right center'\n  },\n  [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n    transformOrigin: 'left center'\n  },\n  [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: {\n    transformOrigin: 'center bottom',\n    marginBottom: '14px'\n  },\n  [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: {\n    transformOrigin: 'center top',\n    marginTop: '14px'\n  },\n  variants: [{\n    props: ({\n      ownerState\n    }) => ownerState.arrow,\n    style: {\n      position: 'relative',\n      margin: 0\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.touch,\n    style: {\n      padding: '8px 16px',\n      fontSize: theme.typography.pxToRem(14),\n      lineHeight: `${round(16 / 14)}em`,\n      fontWeight: theme.typography.fontWeightRegular\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.isRtl,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n        marginRight: '14px'\n      },\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n        marginLeft: '14px'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !ownerState.isRtl && ownerState.touch,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n        marginRight: '24px'\n      },\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n        marginLeft: '24px'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !!ownerState.isRtl,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n        marginLeft: '14px'\n      },\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n        marginRight: '14px'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => !!ownerState.isRtl && ownerState.touch,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: {\n        marginLeft: '24px'\n      },\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: {\n        marginRight: '24px'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.touch,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: {\n        marginBottom: '24px'\n      }\n    }\n  }, {\n    props: ({\n      ownerState\n    }) => ownerState.touch,\n    style: {\n      [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: {\n        marginTop: '24px'\n      }\n    }\n  }]\n})));\nconst TooltipArrow = styled('span', {\n  name: 'MuiTooltip',\n  slot: 'Arrow'\n})(memoTheme(({\n  theme\n}) => ({\n  overflow: 'hidden',\n  position: 'absolute',\n  width: '1em',\n  height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n  boxSizing: 'border-box',\n  color: theme.vars ? theme.vars.palette.Tooltip.bg : theme.alpha(theme.palette.grey[700], 0.9),\n  '&::before': {\n    content: '\"\"',\n    margin: 'auto',\n    display: 'block',\n    width: '100%',\n    height: '100%',\n    backgroundColor: 'currentColor',\n    transform: 'rotate(45deg)'\n  }\n})));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n  x: 0,\n  y: 0\n};\nexport function testReset() {\n  hystersisOpen = false;\n  hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n  return (event, ...params) => {\n    if (eventHandler) {\n      eventHandler(event, ...params);\n    }\n    handler(event, ...params);\n  };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n  const props = useDefaultProps({\n    props: inProps,\n    name: 'MuiTooltip'\n  });\n  const {\n    arrow = false,\n    children: childrenProp,\n    classes: classesProp,\n    components = {},\n    componentsProps = {},\n    describeChild = false,\n    disableFocusListener = false,\n    disableHoverListener = false,\n    disableInteractive: disableInteractiveProp = false,\n    disableTouchListener = false,\n    enterDelay = 100,\n    enterNextDelay = 0,\n    enterTouchDelay = 700,\n    followCursor = false,\n    id: idProp,\n    leaveDelay = 0,\n    leaveTouchDelay = 1500,\n    onClose,\n    onOpen,\n    open: openProp,\n    placement = 'bottom',\n    PopperComponent: PopperComponentProp,\n    PopperProps = {},\n    slotProps = {},\n    slots = {},\n    title,\n    TransitionComponent: TransitionComponentProp,\n    TransitionProps,\n    ...other\n  } = props;\n\n  // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n  const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n    children: childrenProp\n  });\n  const theme = useTheme();\n  const isRtl = useRtl();\n  const [childNode, setChildNode] = React.useState();\n  const [arrowRef, setArrowRef] = React.useState(null);\n  const ignoreNonTouchEvents = React.useRef(false);\n  const disableInteractive = disableInteractiveProp || followCursor;\n  const closeTimer = useTimeout();\n  const enterTimer = useTimeout();\n  const leaveTimer = useTimeout();\n  const touchTimer = useTimeout();\n  const [openState, setOpenState] = useControlled({\n    controlled: openProp,\n    default: false,\n    name: 'Tooltip',\n    state: 'open'\n  });\n  let open = openState;\n  if (process.env.NODE_ENV !== 'production') {\n    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n    const {\n      current: isControlled\n    } = React.useRef(openProp !== undefined);\n\n    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n    React.useEffect(() => {\n      if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n        console.warn(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n      }\n    }, [title, childNode, isControlled]);\n  }\n  const id = useId(idProp);\n  const prevUserSelect = React.useRef();\n  const stopTouchInteraction = useEventCallback(() => {\n    if (prevUserSelect.current !== undefined) {\n      document.body.style.WebkitUserSelect = prevUserSelect.current;\n      prevUserSelect.current = undefined;\n    }\n    touchTimer.clear();\n  });\n  React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n  const handleOpen = event => {\n    hystersisTimer.clear();\n    hystersisOpen = true;\n\n    // The mouseover event will trigger for every nested element in the tooltip.\n    // We can skip rerendering when the tooltip is already open.\n    // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n    setOpenState(true);\n    if (onOpen && !open) {\n      onOpen(event);\n    }\n  };\n  const handleClose = useEventCallback(\n  /**\n   * @param {React.SyntheticEvent | Event} event\n   */\n  event => {\n    hystersisTimer.start(800 + leaveDelay, () => {\n      hystersisOpen = false;\n    });\n    setOpenState(false);\n    if (onClose && open) {\n      onClose(event);\n    }\n    closeTimer.start(theme.transitions.duration.shortest, () => {\n      ignoreNonTouchEvents.current = false;\n    });\n  });\n  const handleMouseOver = event => {\n    if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n      return;\n    }\n\n    // Remove the title ahead of time.\n    // We don't want to wait for the next render commit.\n    // We would risk displaying two tooltips at the same time (native + this one).\n    if (childNode) {\n      childNode.removeAttribute('title');\n    }\n    enterTimer.clear();\n    leaveTimer.clear();\n    if (enterDelay || hystersisOpen && enterNextDelay) {\n      enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n        handleOpen(event);\n      });\n    } else {\n      handleOpen(event);\n    }\n  };\n  const handleMouseLeave = event => {\n    enterTimer.clear();\n    leaveTimer.start(leaveDelay, () => {\n      handleClose(event);\n    });\n  };\n  const [, setChildIsFocusVisible] = React.useState(false);\n  const handleBlur = event => {\n    // Needed for https://github.com/mui/material-ui/issues/45373\n    const target = event?.target ?? childNode;\n    if (!target || !isFocusVisible(target)) {\n      setChildIsFocusVisible(false);\n\n      // InputBase can call onBlur() without an event when the input becomes disabled.\n      // Tooltip must not assume an event object exists.\n      const closeEvent = event ?? new Event('blur');\n\n      // `new Event('blur')` has `target/currentTarget === null`, but Tooltip's close logic\n      // (and user callbacks like onClose) may expect them to reference the anchor element.\n      if (!event && target) {\n        Object.defineProperty(closeEvent, 'target', {\n          value: target\n        });\n        Object.defineProperty(closeEvent, 'currentTarget', {\n          value: target\n        });\n      }\n      handleMouseLeave(closeEvent);\n    }\n  };\n  const handleFocus = event => {\n    // Workaround for https://github.com/facebook/react/issues/7769\n    // The autoFocus of React might trigger the event before the componentDidMount.\n    // We need to account for this eventuality.\n    if (!childNode) {\n      setChildNode(event.currentTarget);\n    }\n    if (isFocusVisible(event.target)) {\n      setChildIsFocusVisible(true);\n      handleMouseOver(event);\n    }\n  };\n  const detectTouchStart = event => {\n    ignoreNonTouchEvents.current = true;\n    const childrenProps = children.props;\n    if (childrenProps.onTouchStart) {\n      childrenProps.onTouchStart(event);\n    }\n  };\n  const handleTouchStart = event => {\n    detectTouchStart(event);\n    leaveTimer.clear();\n    closeTimer.clear();\n    stopTouchInteraction();\n    prevUserSelect.current = document.body.style.WebkitUserSelect;\n    // Prevent iOS text selection on long-tap.\n    document.body.style.WebkitUserSelect = 'none';\n    touchTimer.start(enterTouchDelay, () => {\n      document.body.style.WebkitUserSelect = prevUserSelect.current;\n      handleMouseOver(event);\n    });\n  };\n  const handleTouchEnd = event => {\n    if (children.props.onTouchEnd) {\n      children.props.onTouchEnd(event);\n    }\n    stopTouchInteraction();\n    leaveTimer.start(leaveTouchDelay, () => {\n      handleClose(event);\n    });\n  };\n  React.useEffect(() => {\n    if (!open) {\n      return undefined;\n    }\n\n    /**\n     * @param {KeyboardEvent} nativeEvent\n     */\n    function handleKeyDown(nativeEvent) {\n      if (nativeEvent.key === 'Escape') {\n        handleClose(nativeEvent);\n      }\n    }\n    document.addEventListener('keydown', handleKeyDown);\n    return () => {\n      document.removeEventListener('keydown', handleKeyDown);\n    };\n  }, [handleClose, open]);\n  const handleRef = useForkRef(getReactElementRef(children), setChildNode, ref);\n\n  // There is no point in displaying an empty tooltip.\n  // So we exclude all falsy values, except 0, which is valid.\n  if (!title && title !== 0) {\n    open = false;\n  }\n  const popperRef = React.useRef();\n  const handleMouseMove = event => {\n    const childrenProps = children.props;\n    if (childrenProps.onMouseMove) {\n      childrenProps.onMouseMove(event);\n    }\n    cursorPosition = {\n      x: event.clientX,\n      y: event.clientY\n    };\n    if (popperRef.current) {\n      popperRef.current.update();\n    }\n  };\n  const nameOrDescProps = {};\n  const titleIsString = typeof title === 'string';\n  if (describeChild) {\n    nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n    nameOrDescProps['aria-describedby'] = open ? id : null;\n  } else {\n    nameOrDescProps['aria-label'] = titleIsString ? title : null;\n    nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n  }\n  const childrenProps = {\n    ...nameOrDescProps,\n    ...other,\n    ...children.props,\n    className: clsx(other.className, children.props.className),\n    onTouchStart: detectTouchStart,\n    ref: handleRef,\n    ...(followCursor ? {\n      onMouseMove: handleMouseMove\n    } : {})\n  };\n  if (process.env.NODE_ENV !== 'production') {\n    childrenProps['data-mui-internal-clone-element'] = true;\n\n    // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n    // eslint-disable-next-line react-hooks/rules-of-hooks -- process.env never changes\n    React.useEffect(() => {\n      if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n        console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n      }\n    }, [childNode]);\n  }\n  const interactiveWrapperListeners = {};\n  if (!disableTouchListener) {\n    childrenProps.onTouchStart = handleTouchStart;\n    childrenProps.onTouchEnd = handleTouchEnd;\n  }\n  if (!disableHoverListener) {\n    childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n    childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n    if (!disableInteractive) {\n      interactiveWrapperListeners.onMouseOver = handleMouseOver;\n      interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n    }\n  }\n  if (!disableFocusListener) {\n    childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n    childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n    if (!disableInteractive) {\n      interactiveWrapperListeners.onFocus = handleFocus;\n      interactiveWrapperListeners.onBlur = handleBlur;\n    }\n  }\n  if (process.env.NODE_ENV !== 'production') {\n    if (children.props.title) {\n      console.error(['MUI: You have provided a `title` prop to the child of <Tooltip />.', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n    }\n  }\n  const ownerState = {\n    ...props,\n    isRtl,\n    arrow,\n    disableInteractive,\n    placement,\n    PopperComponentProp,\n    touch: ignoreNonTouchEvents.current\n  };\n  const resolvedPopperProps = typeof slotProps.popper === 'function' ? slotProps.popper(ownerState) : slotProps.popper;\n  const popperOptions = React.useMemo(() => {\n    let tooltipModifiers = [{\n      name: 'arrow',\n      enabled: Boolean(arrowRef),\n      options: {\n        element: arrowRef,\n        padding: 4\n      }\n    }];\n    if (PopperProps.popperOptions?.modifiers) {\n      tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n    }\n    if (resolvedPopperProps?.popperOptions?.modifiers) {\n      tooltipModifiers = tooltipModifiers.concat(resolvedPopperProps.popperOptions.modifiers);\n    }\n    return {\n      ...PopperProps.popperOptions,\n      ...resolvedPopperProps?.popperOptions,\n      modifiers: tooltipModifiers\n    };\n  }, [arrowRef, PopperProps.popperOptions, resolvedPopperProps?.popperOptions]);\n  const classes = useUtilityClasses(ownerState);\n  const resolvedTransitionProps = typeof slotProps.transition === 'function' ? slotProps.transition(ownerState) : slotProps.transition;\n  const externalForwardedProps = {\n    slots: {\n      popper: components.Popper,\n      transition: components.Transition ?? TransitionComponentProp,\n      tooltip: components.Tooltip,\n      arrow: components.Arrow,\n      ...slots\n    },\n    slotProps: {\n      arrow: slotProps.arrow ?? componentsProps.arrow,\n      popper: {\n        ...PopperProps,\n        ...(resolvedPopperProps ?? componentsProps.popper)\n      },\n      // resolvedPopperProps can be spread because it's already an object\n      tooltip: slotProps.tooltip ?? componentsProps.tooltip,\n      transition: {\n        ...TransitionProps,\n        ...(resolvedTransitionProps ?? componentsProps.transition)\n      }\n    }\n  };\n  const [PopperSlot, popperSlotProps] = useSlot('popper', {\n    elementType: TooltipPopper,\n    externalForwardedProps,\n    ownerState,\n    className: clsx(classes.popper, PopperProps?.className)\n  });\n  const [TransitionSlot, transitionSlotProps] = useSlot('transition', {\n    elementType: Grow,\n    externalForwardedProps,\n    ownerState\n  });\n  const [TooltipSlot, tooltipSlotProps] = useSlot('tooltip', {\n    elementType: TooltipTooltip,\n    className: classes.tooltip,\n    externalForwardedProps,\n    ownerState\n  });\n  const [ArrowSlot, arrowSlotProps] = useSlot('arrow', {\n    elementType: TooltipArrow,\n    className: classes.arrow,\n    externalForwardedProps,\n    ownerState,\n    ref: setArrowRef\n  });\n  return /*#__PURE__*/_jsxs(React.Fragment, {\n    children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperSlot, {\n      as: PopperComponentProp ?? Popper,\n      placement: placement,\n      anchorEl: followCursor ? {\n        getBoundingClientRect: () => ({\n          top: cursorPosition.y,\n          left: cursorPosition.x,\n          right: cursorPosition.x,\n          bottom: cursorPosition.y,\n          width: 0,\n          height: 0\n        })\n      } : childNode,\n      popperRef: popperRef,\n      open: childNode ? open : false,\n      id: id,\n      transition: true,\n      ...interactiveWrapperListeners,\n      ...popperSlotProps,\n      popperOptions: popperOptions,\n      children: ({\n        TransitionProps: TransitionPropsInner\n      }) => /*#__PURE__*/_jsx(TransitionSlot, {\n        timeout: theme.transitions.duration.shorter,\n        ...TransitionPropsInner,\n        ...transitionSlotProps,\n        children: /*#__PURE__*/_jsxs(TooltipSlot, {\n          ...tooltipSlotProps,\n          children: [title, arrow ? /*#__PURE__*/_jsx(ArrowSlot, {\n            ...arrowSlotProps\n          }) : null]\n        })\n      })\n    })]\n  });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.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`, adds an arrow to the tooltip.\n   * @default false\n   */\n  arrow: PropTypes.bool,\n  /**\n   * Tooltip reference 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   * The components used for each slot inside.\n   *\n   * @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   *\n   * @default {}\n   */\n  components: PropTypes.shape({\n    Arrow: PropTypes.elementType,\n    Popper: PropTypes.elementType,\n    Tooltip: PropTypes.elementType,\n    Transition: 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   * @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   *\n   * @default {}\n   */\n  componentsProps: PropTypes.shape({\n    arrow: PropTypes.object,\n    popper: PropTypes.object,\n    tooltip: PropTypes.object,\n    transition: PropTypes.object\n  }),\n  /**\n   * Set to `true` if the `title` acts as an accessible description.\n   * By default the `title` acts as an accessible label for the child.\n   * @default false\n   */\n  describeChild: PropTypes.bool,\n  /**\n   * Do not respond to focus-visible events.\n   * @default false\n   */\n  disableFocusListener: PropTypes.bool,\n  /**\n   * Do not respond to hover events.\n   * @default false\n   */\n  disableHoverListener: PropTypes.bool,\n  /**\n   * Makes a tooltip not interactive, i.e. it will close when the user\n   * hovers over the tooltip before the `leaveDelay` is expired.\n   * @default false\n   */\n  disableInteractive: PropTypes.bool,\n  /**\n   * Do not respond to long press touch events.\n   * @default false\n   */\n  disableTouchListener: PropTypes.bool,\n  /**\n   * The number of milliseconds to wait before showing the tooltip.\n   * This prop won't impact the enter touch delay (`enterTouchDelay`).\n   * @default 100\n   */\n  enterDelay: PropTypes.number,\n  /**\n   * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n   * @default 0\n   */\n  enterNextDelay: PropTypes.number,\n  /**\n   * The number of milliseconds a user must touch the element before showing the tooltip.\n   * @default 700\n   */\n  enterTouchDelay: PropTypes.number,\n  /**\n   * If `true`, the tooltip follow the cursor over the wrapped element.\n   * @default false\n   */\n  followCursor: PropTypes.bool,\n  /**\n   * This prop is used to help implement the accessibility logic.\n   * If you don't provide this prop. It falls back to a randomly generated id.\n   */\n  id: PropTypes.string,\n  /**\n   * The number of milliseconds to wait before hiding the tooltip.\n   * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n   * @default 0\n   */\n  leaveDelay: PropTypes.number,\n  /**\n   * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n   * @default 1500\n   */\n  leaveTouchDelay: PropTypes.number,\n  /**\n   * Callback fired when the component requests to be closed.\n   *\n   * @param {React.SyntheticEvent} event The event source of the callback.\n   */\n  onClose: PropTypes.func,\n  /**\n   * Callback fired when the component requests to be open.\n   *\n   * @param {React.SyntheticEvent} 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   * Tooltip placement.\n   * @default 'bottom'\n   */\n  placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n  /**\n   * The component used for the popper.\n   * @deprecated use the `slots.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   */\n  PopperComponent: PropTypes.elementType,\n  /**\n   * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.\n   * @deprecated use the `slotProps.popper` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   * @default {}\n   */\n  PopperProps: PropTypes.object,\n  /**\n   * The props used for each slot inside.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    arrow: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    popper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    tooltip: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\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    arrow: PropTypes.elementType,\n    popper: PropTypes.elementType,\n    tooltip: PropTypes.elementType,\n    transition: 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   * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n   */\n  title: PropTypes.node,\n  /**\n   * The component used for the transition.\n   * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n   * @deprecated use the `slots.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\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 the `slotProps.transition` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n   * @default {}\n   */\n  TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import { useContext } from 'react';\nimport InstanceContext from '../contexts/InstanceContext';\n\nexport function useModelStore() {\n  const { useModelStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n\nexport function useModelChangedStore() {\n  const { useModelChangedStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n\nexport function useRpcResultStore() {\n  const { useRpcResultStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n\nexport function useRpcRequestStore() {\n  const { useRpcRequestStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n\nexport function useRpcRequestModelStore() {\n  const { useRpcRequestModelStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n\nexport function useRpcRequestSessionModelStore() {\n  const { useRpcRequestSessionModelStore: useFunc } = useContext(InstanceContext).modelStore;\n  return useFunc();\n}\n","import { useEffect, useState } from 'react';\nimport { useModelStore, useRpcRequestSessionModelStore } from './useModelStore';\n\nexport default function useSessionModel(definition, app, ...deps) {\n  const key = app ? `${app.id}/${JSON.stringify(definition)}` : null;\n\n  const [modelStore] = useModelStore();\n  const [rpcRequestSessionModelStore] = useRpcRequestSessionModelStore();\n  const [model, setModel] = useState();\n\n  useEffect(() => {\n    if (!app) {\n      return;\n    }\n    // Create new session object\n    const create = async () => {\n      let rpcShared = rpcRequestSessionModelStore.get(key);\n      if (!rpcShared) {\n        rpcShared = app.createSessionObject(definition);\n        rpcRequestSessionModelStore.set(key, rpcShared);\n      }\n      const newModel = await rpcShared;\n      modelStore.set(key, newModel);\n      setModel(newModel);\n    };\n    create();\n  }, [app, ...deps]);\n\n  return [model];\n}\n","import useSessionModel from './useSessionModel';\n\nconst definition = {\n  qInfo: {\n    qType: 'current-selections',\n  },\n  qSelectionObjectDef: {\n    qStateName: '$',\n  },\n  alternateStates: [],\n};\n\nexport default function useCurrentSelectionsModel(app) {\n  return useSessionModel(definition, app);\n}\n","import { useReducer, useEffect } from 'react';\nimport { useModelChangedStore, useRpcResultStore, useRpcRequestStore } from './useModelStore';\n\nconst sleep = (delay) =>\n  new Promise((resolve) => {\n    setTimeout(resolve, delay);\n  });\n\nconst rpcReducer = (state, action) => {\n  const { rpcResultStore, key, method } = action;\n  let newState;\n  switch (action.type) {\n    case 'INVALID': {\n      newState = {\n        ...state,\n        valid: false,\n        invalid: true,\n        validating: true,\n        canCancel: true,\n        canRetry: false,\n        rpcRetry: false,\n      };\n      break;\n    }\n    case 'VALID': {\n      newState = {\n        result: {\n          ...action.result,\n        },\n        invalid: false,\n        valid: true,\n        validating: false,\n        canCancel: false,\n        canRetry: false,\n        rpcRetry: false,\n      };\n      break;\n    }\n    case 'CANCELLED': {\n      newState = {\n        ...state,\n        invalid: true,\n        valid: false,\n        validating: false,\n        canCancel: false,\n        canRetry: true,\n        rpcRetry: false,\n      };\n      break;\n    }\n    default:\n      throw new Error('Undefined action');\n  }\n  let sharedState = rpcResultStore.get(key);\n  if (!sharedState) {\n    sharedState = {};\n  }\n  sharedState[method] = newState;\n  rpcResultStore.set(key, sharedState);\n  return newState;\n};\n\nexport default function useRpc(model, method) {\n  const key = model ? `${model.id}` : null;\n  const [rpcResultStore] = useRpcResultStore();\n  const [state, dispatch] = useReducer(rpcReducer, key ? rpcResultStore.get(key) : null);\n  const [modelChangedStore] = useModelChangedStore();\n  const [rpcRequestStore] = useRpcRequestStore();\n\n  let rpcShared;\n\n  if (key) {\n    rpcShared = rpcRequestStore.get(key);\n    if (!rpcShared) {\n      rpcShared = {};\n      rpcRequestStore.set(key, rpcShared);\n    }\n  }\n\n  const call = async (skipRetry) => {\n    let cache = rpcShared[method];\n    if (!cache || (cache && cache.rpcRetry)) {\n      const rpc = model[method]();\n      cache = {\n        rpc,\n        rpcRetry: false,\n      };\n      rpcShared[method] = cache;\n\n      dispatch({\n        type: 'INVALID',\n        method,\n        key,\n        model,\n        rpcResultStore,\n        canCancel: true,\n      });\n    }\n\n    try {\n      // To avoid possible race condition causing an infinite loop.\n      // Problem has been observed for mocked models appeared after switching to react 18 (reactDOM render -> createRoot).\n      await sleep(0);\n      const result = await cache.rpc;\n      dispatch({ type: 'VALID', result, key, method, model, rpcResultStore });\n    } catch (err) {\n      if (err.code === 15 && !skipRetry) {\n        // Request aborted. This will be called multiple times by hooks only retry once\n        if (!cache.rpcRetry) {\n          cache.rpcRetry = true;\n        }\n        call(true);\n      }\n    }\n  };\n  const longrunning = {\n    cancel: async () => {\n      const global = model.session.getObjectApi({ handle: -1 });\n      await global.cancelRequest(rpcShared[method].rpc.requestId);\n      dispatch({\n        type: 'CANCELLED',\n        key,\n        method,\n        model,\n        rpcResultStore,\n      });\n    },\n    retry: () => {\n      rpcShared[method].rpcRetry = true;\n      call();\n    },\n  };\n\n  useEffect(() => {\n    if (!model) return undefined;\n\n    call();\n\n    return undefined;\n  }, [model, modelChangedStore.get(model && model.id), key, method]);\n\n  return [\n    // Result\n    state && state.result,\n    { validating: state && state.validating, canCancel: state && state.canCancel, canRetry: state && state.canRetry },\n    // Long running api e.g cancel retry\n    longrunning,\n  ];\n}\n","import useRpc from './useRpc';\n\nexport default function useLayout(model) {\n  const [layout, { validating, canCancel, canRetry }, longrunning] = useRpc(model, 'getLayout');\n  if (model?.pureLayout && layout) {\n    return [model.pureLayout, { validating, canCancel, canRetry }, longrunning];\n  }\n  return [layout, { validating, canCancel, canRetry }, longrunning];\n}\n\nexport function useAppLayout(model) {\n  return useRpc(model, 'getAppLayout');\n}\n","import { useState, useCallback, useLayoutEffect } from 'react';\n\nexport default function useRect() {\n  const [node, setNode] = useState();\n  const [rect, setRect] = useState();\n  const callbackRef = useCallback((ref) => {\n    if (!ref) {\n      return;\n    }\n    setNode(ref);\n  }, []);\n  const handleResize = () => {\n    const { left, top, width, height } = node.getBoundingClientRect();\n    setRect({ left, top, width, height });\n  };\n  useLayoutEffect(() => {\n    if (!node) {\n      return undefined;\n    }\n    if (typeof ResizeObserver === 'function') {\n      let resizeObserver = new ResizeObserver(handleResize);\n      resizeObserver.observe(node);\n      return () => {\n        resizeObserver.unobserve(node);\n        resizeObserver.disconnect(node);\n        resizeObserver = null;\n      };\n    }\n\n    handleResize();\n    window.addEventListener('resize', handleResize);\n    return () => {\n      window.removeEventListener('resize', handleResize);\n    };\n  }, [node]);\n  return [callbackRef, rect, node];\n}\n","const SINGLE_OBJECT_ID = 'singlepublic-pinnedItems';\nconst TYPE = 'singlepublic';\n\nconst getSinglePublicObject = async (app, qId) => {\n  // TODO check create permission of single public object\n  const layout = await app.getLayout();\n  const canCreate = !!layout.permissions?.createMasterobject;\n  let singlePublicObject = null;\n  try {\n    if (canCreate) {\n      singlePublicObject = await app.getOrCreateObject({\n        qInfo: { qType: TYPE, qId },\n      });\n    } else {\n      singlePublicObject = await app.getObject(qId);\n    }\n  } catch {\n    // ignore\n  }\n  return singlePublicObject;\n};\n\nexport { getSinglePublicObject, SINGLE_OBJECT_ID };\n","import { useState, useEffect } from 'react';\nimport { useModelStore } from './useModelStore';\n\nconst useModel = (app, qId, props) => {\n  const [model, setModel] = useState(undefined);\n  const [error, setError] = useState(undefined);\n  const [modelStore] = useModelStore();\n\n  useEffect(() => {\n    let alive = true;\n    let cleanupFn = () => {};\n\n    async function getModel() {\n      try {\n        const cacheKey = `${app.id}-${qId}`;\n        let m = modelStore.get(cacheKey);\n\n        if (!m) {\n          try {\n            m = await app.getObject(qId);\n          } catch (err) {\n            if (err.code === 2 && err.message === 'Object not found' && props) {\n              // create session object\n              m = await app.createSessionObject(props);\n            } else {\n              throw err;\n            }\n          }\n\n          if (!alive) {\n            return;\n          }\n\n          modelStore.set(cacheKey, m);\n          const onClosed = () => {\n            modelStore.clear(cacheKey);\n          };\n          m.once('closed', onClosed);\n          cleanupFn = () => {\n            m.removeListener('closed', onClosed);\n          };\n        }\n\n        if (alive) {\n          setError(undefined);\n          setModel(m);\n        }\n      } catch (err) {\n        if (alive) {\n          setError(err instanceof Error ? err : new Error(String(err)));\n          setModel(undefined);\n        }\n      }\n    }\n\n    if (typeof app?.getObject === 'function') {\n      getModel();\n      return () => {\n        alive = false;\n        cleanupFn();\n      };\n    }\n\n    return undefined;\n  }, [app, qId, modelStore]);\n\n  return [model, error];\n};\n\nexport default useModel;\n","import useModel from '../../../hooks/useModel';\nimport useRpc from '../../../hooks/useRpc';\n\nconst fieldListProps = {\n  qInfo: {\n    qId: 'FieldList',\n    qType: 'FieldList',\n  },\n  qFieldListDef: {\n    qShowSystem: false,\n    qShowHidden: false,\n    qShowSrcTables: true,\n    qShowSemantic: true,\n    qShowDerivedFields: true,\n  },\n};\n\nconst expand = (items) => {\n  if (!items) {\n    return undefined;\n  }\n  const result = [];\n  for (let i = 0; i < items.length; ++i) {\n    const field = items[i];\n    result.push(field);\n\n    if (field.qDerivedFieldData) {\n      for (let j = 0; j < field.qDerivedFieldData.qDerivedFieldLists.length; ++j) {\n        const derived = field.qDerivedFieldData.qDerivedFieldLists[j];\n        for (let k = 0; k < derived.qFieldDefs.length; ++k) {\n          const derivedField = derived.qFieldDefs[k];\n\n          result.push({\n            qName: derivedField.qName,\n            qSrcTables: field.qSrcTables,\n            qTags: derivedField.qTags,\n            isDerived: true,\n            sourceField: field.qName,\n            derivedDefinitionName: derived.qDerivedDefinitionName,\n          });\n        }\n      }\n    }\n  }\n  return result;\n};\n\nconst useFieldList = (app) => {\n  const [model] = useModel(app, 'FieldList', fieldListProps);\n  const [layout] = useRpc(model, 'getLayout');\n  const items = expand(layout?.qFieldList?.qItems);\n  return [items];\n};\nexport default useFieldList;\n","import useModel from '../../../hooks/useModel';\nimport useRpc from '../../../hooks/useRpc';\n\nconst dimensionListProps = {\n  qInfo: {\n    qId: 'DimensionList',\n    qType: 'DimensionList',\n  },\n  qDimensionListDef: {\n    qType: 'dimension',\n    qData: {\n      title: '/qMetaDef/title',\n      tags: '/qMetaDef/tags',\n      grouping: '/qDim/qGrouping',\n      info: '/qDimInfos',\n      labelExpression: '/qDim/qLabelExpression',\n    },\n  },\n};\n\nconst useDimensionList = (app) => {\n  const [model] = useModel(app, 'DimensionList', dimensionListProps);\n  const [layout] = useRpc(model, 'getLayout');\n  return [layout?.qDimensionList?.qItems];\n};\n\nexport default useDimensionList;\n","const FIELD_KEY = 'qField';\nconst MASTER_ITEM_KEY = 'id';\n\n/**\n * Sort items shown in current selections toolbar.\n * @ignore\n * The order is as follows:\n * \t1. qOneAndOnlyOne\n * \t2. qSortIndex\n *\n * @param {Item|Object} a\n * @param {Item|Object} b\n */\nconst sortSelections = (a, b) => {\n  const aSelection = a.selections[0];\n  const bSelection = b.selections[0];\n  const aQ = !!aSelection.qOneAndOnlyOne;\n  const bQ = !!bSelection.qOneAndOnlyOne;\n  if (aQ === bQ) {\n    return aSelection.qSortIndex - bSelection.qSortIndex;\n  }\n  return aQ ? -1 : 1;\n};\n\n// fieldList only has qName properties can identify a field\nconst getValidPinnedItems = (fieldList, masterDimList, pinnedItems) =>\n  pinnedItems.filter((field) => {\n    // Validate field items (those with qField) against fieldList\n    if (FIELD_KEY in field && field[FIELD_KEY]) {\n      return fieldList.some((item) => item.qName === field[FIELD_KEY]);\n    }\n    // Validate master dimension items (those with id) against masterDimList\n    if (MASTER_ITEM_KEY in field && field[MASTER_ITEM_KEY]) {\n      return masterDimList.some(\n        (dimItem) => dimItem.qInfo?.qId === field[MASTER_ITEM_KEY] && dimItem.qData?.grouping === 'N'\n      );\n    }\n    // Invalid field structure, filter it out\n    return false;\n  });\n\n// Sorts valid pinned items first, then selected fields.\n// If pinned item is also selected, this pinned item will be replaced with selected field in this index.\nconst sortAllFields = (fieldList, pinnedItems, selectedFields, masterDimList) => {\n  if (!fieldList || !masterDimList) {\n    return selectedFields;\n  }\n  if (fieldList.length === 0 || (pinnedItems.length === 0 && selectedFields.length === 0)) {\n    return [];\n  }\n  const validPinnedItems = getValidPinnedItems(fieldList, masterDimList, pinnedItems);\n  const sortedFields = [];\n  const remainingSelectedFields = [...selectedFields];\n\n  for (let i = 0; i < validPinnedItems.length; i++) {\n    const pinnedItem = validPinnedItems[i];\n    const isMasterDim = !!(MASTER_ITEM_KEY in pinnedItem && pinnedItem[MASTER_ITEM_KEY]);\n    const masterDimInfo = isMasterDim\n      ? masterDimList.find((dimItem) => dimItem.qInfo?.qId === pinnedItem[MASTER_ITEM_KEY])\n      : null;\n    const fieldName = isMasterDim ? masterDimInfo?.qData?.info[0]?.qName : pinnedItem[FIELD_KEY];\n\n    const matchFieldIndex = remainingSelectedFields.findIndex(\n      (item) =>\n        (isMasterDim && item.selections[0].qDimensionReferences?.[0]?.qId === pinnedItem[MASTER_ITEM_KEY]) ||\n        (!isMasterDim && (item.selections[0].qField === fieldName || item.selections[0].qReadableName === fieldName))\n    );\n\n    // Pinned field has already added as selected field, skip it to avoid duplicate display\n    const isDuplicateFieldSelected =\n      sortedFields.findIndex((sf) => sf.selections?.[0]?.qField === fieldName && !sf.isPinned) !== -1;\n    if (!isDuplicateFieldSelected) {\n      if (matchFieldIndex === -1) {\n        // If pinned field is not selected or is duplicated, keep it as pinned.\n        const pinnedFieldData = {\n          ...validPinnedItems[i],\n          isPinned: true,\n          states: ['$'],\n        };\n        if (isMasterDim && masterDimInfo) {\n          pinnedFieldData.qField = fieldName;\n          pinnedFieldData.qName = masterDimInfo.qData.labelExpression || masterDimInfo.qData.title || fieldName;\n        }\n        sortedFields.push(pinnedFieldData);\n      } else {\n        sortedFields.push(remainingSelectedFields[matchFieldIndex]);\n        remainingSelectedFields.splice(matchFieldIndex, 1);\n      }\n    }\n  }\n  return [...sortedFields, ...remainingSelectedFields];\n};\n\nexport { sortAllFields, sortSelections };\n","/* eslint-disable react/jsx-props-no-spreading */\nimport React from 'react';\n\nfunction getFontSize(size) {\n  if (size === 'large') {\n    return '20px';\n  }\n  if (size === 'small') {\n    return '12px';\n  }\n  return '16px';\n}\n\nexport default function SvgIcon({ size, style = {}, viewBox = '0 0 16 16', shapes = [] }) {\n  const s = {\n    fontSize: getFontSize(size),\n    display: 'inline-block',\n    fontStyle: 'normal',\n    lineHeight: '0',\n    textAlign: 'center',\n    textTransform: 'none',\n    verticalAlign: '-.125em',\n    textRendering: 'optimizeLegibility',\n    WebkitFontSmoothing: 'antialiased',\n    MozOsxFontSmoothing: 'grayscale',\n    ...style,\n  };\n  return (\n    <i style={s}>\n      <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1em\" height=\"1em\" viewBox={viewBox} fill=\"currentColor\">\n        {shapes.map(({ type: Type, attrs }, ix) => (\n          // eslint-disable-next-line react/no-array-index-key\n          <Type key={ix} {...attrs} />\n        ))}\n      </svg>\n    </i>\n  );\n}\n","import SvgIcon from './SvgIcon';\n\nconst remove = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(remove(props));\nexport { remove };\n","import SvgIcon from './SvgIcon';\n\nconst lock = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(lock(props));\nexport { lock };\n","import SvgIcon from './SvgIcon';\n\nconst unlock = (props) => ({\n  ...props,\n  viewBox: '0 0 12 16',\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(unlock(props));\nexport { unlock };\n","import { PureComponent } from 'react';\n\nfunction isInteger(value) {\n  return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nfunction isRangeVisible(_ref) {\n  var lastRenderedStartIndex = _ref.lastRenderedStartIndex,\n      lastRenderedStopIndex = _ref.lastRenderedStopIndex,\n      startIndex = _ref.startIndex,\n      stopIndex = _ref.stopIndex;\n\n  return !(startIndex > lastRenderedStopIndex || stopIndex < lastRenderedStartIndex);\n}\n\nfunction scanForUnloadedRanges(_ref) {\n  var isItemLoaded = _ref.isItemLoaded,\n      itemCount = _ref.itemCount,\n      minimumBatchSize = _ref.minimumBatchSize,\n      startIndex = _ref.startIndex,\n      stopIndex = _ref.stopIndex;\n\n  var unloadedRanges = [];\n\n  var rangeStartIndex = null;\n  var rangeStopIndex = null;\n\n  for (var _index = startIndex; _index <= stopIndex; _index++) {\n    var loaded = isItemLoaded(_index);\n\n    if (!loaded) {\n      rangeStopIndex = _index;\n      if (rangeStartIndex === null) {\n        rangeStartIndex = _index;\n      }\n    } else if (rangeStopIndex !== null) {\n      unloadedRanges.push(rangeStartIndex, rangeStopIndex);\n\n      rangeStartIndex = rangeStopIndex = null;\n    }\n  }\n\n  // If :rangeStopIndex is not null it means we haven't ran out of unloaded rows.\n  // Scan forward to try filling our :minimumBatchSize.\n  if (rangeStopIndex !== null) {\n    var potentialStopIndex = Math.min(Math.max(rangeStopIndex, rangeStartIndex + minimumBatchSize - 1), itemCount - 1);\n\n    for (var _index2 = rangeStopIndex + 1; _index2 <= potentialStopIndex; _index2++) {\n      if (!isItemLoaded(_index2)) {\n        rangeStopIndex = _index2;\n      } else {\n        break;\n      }\n    }\n\n    unloadedRanges.push(rangeStartIndex, rangeStopIndex);\n  }\n\n  // Check to see if our first range ended prematurely.\n  // In this case we should scan backwards to try filling our :minimumBatchSize.\n  if (unloadedRanges.length) {\n    while (unloadedRanges[1] - unloadedRanges[0] + 1 < minimumBatchSize && unloadedRanges[0] > 0) {\n      var _index3 = unloadedRanges[0] - 1;\n\n      if (!isItemLoaded(_index3)) {\n        unloadedRanges[0] = _index3;\n      } else {\n        break;\n      }\n    }\n  }\n\n  return unloadedRanges;\n}\n\nvar classCallCheck = function (instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n};\n\nvar createClass = function () {\n  function defineProperties(target, props) {\n    for (var i = 0; i < props.length; i++) {\n      var descriptor = props[i];\n      descriptor.enumerable = descriptor.enumerable || false;\n      descriptor.configurable = true;\n      if (\"value\" in descriptor) descriptor.writable = true;\n      Object.defineProperty(target, descriptor.key, descriptor);\n    }\n  }\n\n  return function (Constructor, protoProps, staticProps) {\n    if (protoProps) defineProperties(Constructor.prototype, protoProps);\n    if (staticProps) defineProperties(Constructor, staticProps);\n    return Constructor;\n  };\n}();\n\nvar inherits = function (subClass, superClass) {\n  if (typeof superClass !== \"function\" && superClass !== null) {\n    throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n  }\n\n  subClass.prototype = Object.create(superClass && superClass.prototype, {\n    constructor: {\n      value: subClass,\n      enumerable: false,\n      writable: true,\n      configurable: true\n    }\n  });\n  if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n  if (!self) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n\n  return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar InfiniteLoader = function (_PureComponent) {\n  inherits(InfiniteLoader, _PureComponent);\n\n  function InfiniteLoader() {\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    classCallCheck(this, InfiniteLoader);\n\n    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n\n    return _ret = (_temp = (_this = possibleConstructorReturn(this, (_ref = InfiniteLoader.__proto__ || Object.getPrototypeOf(InfiniteLoader)).call.apply(_ref, [this].concat(args))), _this), _this._lastRenderedStartIndex = -1, _this._lastRenderedStopIndex = -1, _this._memoizedUnloadedRanges = [], _this._onItemsRendered = function (_ref2) {\n      var visibleStartIndex = _ref2.visibleStartIndex,\n          visibleStopIndex = _ref2.visibleStopIndex;\n\n      if (process.env.NODE_ENV !== 'production') {\n        if (!isInteger(visibleStartIndex) || !isInteger(visibleStopIndex)) {\n          console.warn('Invalid onItemsRendered signature; please refer to InfiniteLoader documentation.');\n        }\n\n        if (typeof _this.props.loadMoreRows === 'function') {\n          console.warn('InfiniteLoader \"loadMoreRows\" prop has been renamed to \"loadMoreItems\".');\n        }\n      }\n\n      _this._lastRenderedStartIndex = visibleStartIndex;\n      _this._lastRenderedStopIndex = visibleStopIndex;\n\n      _this._ensureRowsLoaded(visibleStartIndex, visibleStopIndex);\n    }, _this._setRef = function (listRef) {\n      _this._listRef = listRef;\n    }, _temp), possibleConstructorReturn(_this, _ret);\n  }\n\n  createClass(InfiniteLoader, [{\n    key: 'resetloadMoreItemsCache',\n    value: function resetloadMoreItemsCache() {\n      var autoReload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n      this._memoizedUnloadedRanges = [];\n\n      if (autoReload) {\n        this._ensureRowsLoaded(this._lastRenderedStartIndex, this._lastRenderedStopIndex);\n      }\n    }\n  }, {\n    key: 'componentDidMount',\n    value: function componentDidMount() {\n      if (process.env.NODE_ENV !== 'production') {\n        if (this._listRef == null) {\n          console.warn('Invalid list ref; please refer to InfiniteLoader documentation.');\n        }\n      }\n    }\n  }, {\n    key: 'render',\n    value: function render() {\n      var children = this.props.children;\n\n\n      return children({\n        onItemsRendered: this._onItemsRendered,\n        ref: this._setRef\n      });\n    }\n  }, {\n    key: '_ensureRowsLoaded',\n    value: function _ensureRowsLoaded(startIndex, stopIndex) {\n      var _props = this.props,\n          isItemLoaded = _props.isItemLoaded,\n          itemCount = _props.itemCount,\n          _props$minimumBatchSi = _props.minimumBatchSize,\n          minimumBatchSize = _props$minimumBatchSi === undefined ? 10 : _props$minimumBatchSi,\n          _props$threshold = _props.threshold,\n          threshold = _props$threshold === undefined ? 15 : _props$threshold;\n\n\n      var unloadedRanges = scanForUnloadedRanges({\n        isItemLoaded: isItemLoaded,\n        itemCount: itemCount,\n        minimumBatchSize: minimumBatchSize,\n        startIndex: Math.max(0, startIndex - threshold),\n        stopIndex: Math.min(itemCount - 1, stopIndex + threshold)\n      });\n\n      // Avoid calling load-rows unless range has changed.\n      // This shouldn't be strictly necessary, but is maybe nice to do.\n      if (this._memoizedUnloadedRanges.length !== unloadedRanges.length || this._memoizedUnloadedRanges.some(function (startOrStop, index) {\n        return unloadedRanges[index] !== startOrStop;\n      })) {\n        this._memoizedUnloadedRanges = unloadedRanges;\n        this._loadUnloadedRanges(unloadedRanges);\n      }\n    }\n  }, {\n    key: '_loadUnloadedRanges',\n    value: function _loadUnloadedRanges(unloadedRanges) {\n      var _this2 = this;\n\n      // loadMoreRows was renamed to loadMoreItems in v1.0.3; will be removed in v2.0\n      var loadMoreItems = this.props.loadMoreItems || this.props.loadMoreRows;\n\n      var _loop = function _loop(i) {\n        var startIndex = unloadedRanges[i];\n        var stopIndex = unloadedRanges[i + 1];\n        var promise = loadMoreItems(startIndex, stopIndex);\n        if (promise != null) {\n          promise.then(function () {\n            // Refresh the visible rows if any of them have just been loaded.\n            // Otherwise they will remain in their unloaded visual state.\n            if (isRangeVisible({\n              lastRenderedStartIndex: _this2._lastRenderedStartIndex,\n              lastRenderedStopIndex: _this2._lastRenderedStopIndex,\n              startIndex: startIndex,\n              stopIndex: stopIndex\n            })) {\n              // Handle an unmount while promises are still in flight.\n              if (_this2._listRef == null) {\n                return;\n              }\n\n              // Resize cached row sizes for VariableSizeList,\n              // otherwise just re-render the list.\n              if (typeof _this2._listRef.resetAfterIndex === 'function') {\n                _this2._listRef.resetAfterIndex(startIndex, true);\n              } else {\n                // HACK reset temporarily cached item styles to force PureComponent to re-render.\n                // This is pretty gross, but I'm okay with it for now.\n                // Don't judge me.\n                if (typeof _this2._listRef._getItemStyleCache === 'function') {\n                  _this2._listRef._getItemStyleCache(-1);\n                }\n                _this2._listRef.forceUpdate();\n              }\n            }\n          });\n        }\n      };\n\n      for (var i = 0; i < unloadedRanges.length; i += 2) {\n        _loop(i);\n      }\n    }\n  }]);\n  return InfiniteLoader;\n}(PureComponent);\n\nexport default InfiniteLoader;\n","const SELECTED_STATES = ['S', 'XS'];\n\nconst flatten = (arr) => arr.reduce((prev, cur) => prev.concat(cur));\n\nfunction isStateSelected(qState) {\n  return SELECTED_STATES.includes(qState);\n}\n\nexport function getUniques(arr) {\n  return Array.isArray(arr) ? Array.from(new Set(arr)) : undefined;\n}\n\nexport function getSelectedValues(pages) {\n  if (!pages || !pages.length) {\n    return [];\n  }\n  const elementNbrs = pages.map((page) => {\n    const elementNumbers = page.qMatrix.map((p) => {\n      const [p0] = p;\n      return isStateSelected(p0.qState) ? p0.qElemNumber : false;\n    });\n    return elementNumbers.filter((n) => n !== false);\n  });\n  return flatten(elementNbrs);\n}\n\nexport async function selectValues({ selections, elemNumbers, toggle, isSingleSelect }) {\n  if (elemNumbers.length === 0) {\n    return false;\n  }\n  const hasNanValues = elemNumbers.some((elemNumber) => Number.isNaN(elemNumber));\n  let success = false;\n  if (!hasNanValues) {\n    const elemNumbersToSelect = elemNumbers;\n    try {\n      const response = await selections.select({\n        method: 'selectListObjectValues',\n        params: ['/qListObjectDef', elemNumbersToSelect, toggle],\n      });\n      success = response !== false;\n    } catch {\n      success = false;\n    }\n    if (!success) {\n      if (isSingleSelect) {\n        selections.cancel(); // revert selection\n      } else {\n        selections.clear();\n      }\n    }\n  }\n  return success;\n}\n\nexport function getElemNumbersFromPages(pages) {\n  if (!pages || !pages.length) {\n    return [];\n  }\n  const elemNumbersArr = pages.map((page) => {\n    const qElemNumbers = page.qMatrix.map((p) => {\n      const [{ qElemNumber }] = p;\n      return qElemNumber;\n    });\n    return qElemNumbers;\n  });\n  const elemNumbers = flatten(elemNumbersArr);\n  return elemNumbers;\n}\n\n/**\n * @ignore\n * @interface MinMaxResult\n * @property {number} min\n * @property {number} max\n */\n\n/**\n * Returns the min and max indices of elemNumbersOrdered which contains\n * all numbers in elementNbrs.\n *\n * @ignore\n * @param {number[]} elementNbrs\n * @param {number[]} elemNumbersOrdered\n * @returns {MinMaxResult}\n */\nfunction getMinMax(elementNbrs, elemNumbersOrdered) {\n  let min = Infinity;\n  let max = -Infinity;\n  elementNbrs.forEach((nbr) => {\n    const index = elemNumbersOrdered.indexOf(nbr);\n    min = index < min ? index : min;\n    max = index > max ? index : max;\n  });\n  return { min, max };\n}\n\nexport function fillRange(elementNbrs, elemNumbersOrdered) {\n  if (!elementNbrs) {\n    return [];\n  }\n  if (elementNbrs.length <= 1) {\n    return elementNbrs;\n  }\n  // Interpolate values algorithm\n  const { min, max } = getMinMax(elementNbrs, elemNumbersOrdered);\n  return elemNumbersOrdered.slice(min, max + 1);\n}\n","const PREFIX = 'RowColumn';\n\nconst rowColClasses = {\n  row: `${PREFIX}-row`,\n  rowBorderBottom: `${PREFIX}-rowBorderBottom`,\n  column: `${PREFIX}-column`,\n  fieldRoot: `${PREFIX}-fieldRoot`,\n  cell: `${PREFIX}-cell`,\n  labelText: `${PREFIX}-labelText`,\n  labelDense: `${PREFIX}-labelDense`,\n  highlighted: `${PREFIX}-highlighted`,\n  checkboxLabel: `${PREFIX}-checkboxLabel`,\n  icon: `${PREFIX}-icon`,\n  S: `${PREFIX}-S`,\n  XS: `${PREFIX}-XS`,\n  A: `${PREFIX}-A`,\n  X: `${PREFIX}-X`,\n  frequencyCount: `${PREFIX}-frequencyCount`,\n  barContainer: `${PREFIX}-barContainer`,\n  bar: `${PREFIX}-bar`,\n  barSelected: `${PREFIX}-barSelected`,\n  barWithCheckbox: `${PREFIX}-barWithCheckbox`,\n  barSelectedWithCheckbox: `${PREFIX}-barSelectedWithCheckbox`,\n  excludedTextWithCheckbox: `${PREFIX}-excludedTextWithCheckbox`,\n};\n\nexport default rowColClasses;\n","/* eslint-disable no-underscore-dangle */\nimport { useEffect, useCallback, useRef } from 'react';\nimport { selectValues, fillRange, getElemNumbersFromPages } from './listbox-selections';\nimport rowColClasses from '../../components/ListBoxRowColumn/helpers/classes';\n\nconst dataItemSelector = `.${rowColClasses.fieldRoot}`;\nconst getKeyAsToggleSelected = (event) => !(event?.metaKey || event?.ctrlKey);\n\nexport default function useSelectionsInteractions({\n  selectionState,\n  selections,\n  checkboxes = false,\n  doc = document,\n  loaderRef,\n}) {\n  const currentSelect = useRef({\n    startElemNumber: undefined,\n    elemNumbers: [],\n    isRange: false,\n    toggle: false,\n    active: false,\n    touchElemNumbers: [],\n    touchRangeSmall: false,\n  });\n\n  useEffect(() => {\n    if (!loaderRef.current?._listRef?._outerRef) {\n      return undefined;\n    }\n    const preventGestureStart = (e) => e.preventDefault();\n    const preventGestureChange = (e) => e.preventDefault();\n    const preventGestureEnd = (e) => e.preventDefault();\n\n    const listRef = loaderRef.current._listRef._outerRef;\n    listRef.addEventListener('gesturestart', preventGestureStart);\n    listRef.addEventListener('gesturechange', preventGestureChange);\n    listRef.addEventListener('gestureend', preventGestureEnd);\n    return () => {\n      listRef.removeEventListener('gesturestart', preventGestureStart);\n      listRef.removeEventListener('gesturechange', preventGestureChange);\n      listRef.removeEventListener('gestureend', preventGestureEnd);\n    };\n  }, [loaderRef.current?._listRef?._outerRef]);\n\n  const doSelect = async () => {\n    if (selectionState.selectDisabled?.()) {\n      return false;\n    }\n    selectionState.setSelectableValuesUpdating();\n    return selectValues({\n      selections,\n      elemNumbers: currentSelect.current.elemNumbers,\n      isSingleSelect: selectionState.isSingleSelect,\n      toggle: currentSelect.current.toggle,\n    });\n  };\n\n  const getRange = (start, end) => {\n    const elemNumbersOrdered = getElemNumbersFromPages(selectionState.enginePages);\n    return fillRange([start, end], elemNumbersOrdered);\n  };\n\n  const addToRange = (elemNumber) => {\n    const { startElemNumber } = currentSelect.current;\n    if (startElemNumber === elemNumber) {\n      return;\n    }\n    const toMaybeAdd = getRange(currentSelect.current.startElemNumber, elemNumber);\n    selectionState.updateItems(toMaybeAdd, true, currentSelect.current.elemNumbers);\n  };\n\n  const selectManually = async (elementIds = [], additive = false, event = undefined) => {\n    if (selectionState.selectDisabled?.()) {\n      return false;\n    }\n    const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event?.nativeEvent);\n    if (!toggle) {\n      selectionState.clearItemStates(true);\n    }\n\n    const elemNumbers = [];\n    selectionState.updateItems(elementIds, additive, elemNumbers);\n    selectionState.setSelectableValuesUpdating();\n\n    return selectValues({\n      selections,\n      elemNumbers: additive ? elemNumbers : elementIds,\n      isSingleSelect: selectionState.isSingleSelect,\n      toggle,\n    });\n  };\n\n  const handleSingleSelectKey = (event, target) => {\n    if (event.ctrlKey || event.metaKey) {\n      target.focus(); // will not be focused otherwise\n      event.preventDefault();\n    }\n  };\n\n  const onChange = useCallback((event) => {\n    if (selectionState.selectDisabled()) {\n      return;\n    }\n    const elemNumber = +event.target.getAttribute('data-n');\n    const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event.nativeEvent);\n    currentSelect.current.elemNumbers = [elemNumber];\n    currentSelect.current.toggle = toggle;\n\n    if (!toggle) {\n      selectionState.clearItemStates(true);\n    }\n    selectionState.updateItem(elemNumber);\n\n    currentSelect.current.active = false;\n    doSelect();\n  }, []);\n\n  const onMouseDown = useCallback((event) => {\n    if (event.button !== 0 || selectionState.selectDisabled()) {\n      return;\n    }\n    const elemNumber = +event.currentTarget.getAttribute('data-n');\n    const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event);\n    currentSelect.current.isRange = false;\n    currentSelect.current.startElemNumber = elemNumber;\n    currentSelect.current.elemNumbers = [elemNumber];\n    currentSelect.current.toggle = toggle;\n    currentSelect.current.active = true;\n\n    if (!toggle) {\n      selectionState.clearItemStates(true);\n    }\n    selectionState.updateItem(elemNumber);\n\n    if (selectionState.isSingleSelect) {\n      currentSelect.current.active = false;\n      doSelect();\n    }\n\n    handleSingleSelectKey(event, event.currentTarget);\n  }, []);\n\n  const onMouseUp = useCallback((event) => {\n    if (event.button !== 0 || !currentSelect.current.active) {\n      return;\n    }\n    currentSelect.current.active = false;\n    if (currentSelect.current.isRange) {\n      const elemNumber = +event.currentTarget.getAttribute('data-n');\n      addToRange(elemNumber);\n    }\n    doSelect();\n  }, []);\n\n  const onMouseUpDoc = useCallback((event) => {\n    // Ensure we end interactions when mouseup happens outside the Listbox.\n    if (event.button !== 0 || !currentSelect.current.active) {\n      return;\n    }\n    currentSelect.current.active = false;\n    doSelect();\n  }, []);\n\n  const onMouseEnter = useCallback((event) => {\n    if (!currentSelect.current.active) {\n      return;\n    }\n    if (!currentSelect.current.isRange) {\n      currentSelect.current.isRange = true;\n      if (!selectionState.isSelected(currentSelect.current.startElemNumber)) {\n        selectionState.updateItem(currentSelect.current.startElemNumber, true);\n        currentSelect.current.elemNumbers = [];\n      }\n    }\n    const elemNumber = +event.currentTarget.getAttribute('data-n');\n    addToRange(elemNumber);\n  }, []);\n\n  const onTouchStart = useCallback((event) => {\n    // Handle range selection with two finger touch\n    if (\n      currentSelect.current.active ||\n      currentSelect.current.isRange ||\n      selectionState.isSingleSelect ||\n      event.touches.length <= 1\n    ) {\n      return;\n    }\n    if (event.touches.length > 2) {\n      doSelect();\n      return;\n    }\n    const startTouchElemNumber = Number(event.touches[0].target?.closest(dataItemSelector)?.getAttribute('data-n'));\n    const endTouchElemNumber = Number(event.touches[1].target?.closest(dataItemSelector)?.getAttribute('data-n'));\n\n    if (Number.isNaN(startTouchElemNumber) || Number.isNaN(startTouchElemNumber)) {\n      doSelect();\n      return;\n    }\n\n    currentSelect.current.active = true;\n    const range = getRange(startTouchElemNumber, endTouchElemNumber);\n    if (range.length < 7) {\n      currentSelect.current.touchRangeSmall = true;\n    }\n\n    currentSelect.current.elemNumbers = [];\n    currentSelect.current.touchElemNumbers = [startTouchElemNumber, endTouchElemNumber];\n  }, []);\n\n  const onTouchEnd = useCallback(() => {\n    if (currentSelect.current.touchElemNumbers.length !== 2) {\n      return;\n    }\n    if (currentSelect.current.touchRangeSmall) {\n      currentSelect.current.touchRangeSmall = false;\n      currentSelect.current.touchElemNumbers = [];\n      currentSelect.current.active = false;\n      return;\n    }\n\n    const [startTouchElemNumber, endTouchElemNumber] = currentSelect.current.touchElemNumbers;\n    currentSelect.current.startElemNumber = startTouchElemNumber;\n    addToRange(endTouchElemNumber);\n    currentSelect.current.touchElemNumbers = [];\n    currentSelect.current.active = false;\n    currentSelect.current.toggle = true;\n    doSelect();\n  }, []);\n\n  useEffect(() => {\n    doc.addEventListener('mouseup', onMouseUpDoc);\n    return () => {\n      doc.removeEventListener('mouseup', onMouseUpDoc);\n    };\n  }, [onMouseUpDoc]);\n\n  useEffect(() => {\n    const clearItemStates = () => {\n      selectionState.clearItemStates(false);\n    };\n    const onCleared = () => {\n      selectionState.clearItemStates(true);\n      selectionState.triggerStateChanged();\n    };\n\n    selections.on('clearItemStates', clearItemStates);\n    selections.on('deactivated', clearItemStates);\n    selections.on('cleared', onCleared);\n    return () => {\n      selections.removeListener('clearItemStates', clearItemStates);\n      selections.removeListener('deactivated', clearItemStates);\n      selections.removeListener('cleared', onCleared);\n    };\n  }, [selections]);\n\n  const interactionEvents = {};\n\n  if (checkboxes) {\n    Object.assign(interactionEvents, { onChange });\n  } else {\n    Object.assign(interactionEvents, { onMouseUp, onMouseDown, onMouseEnter, onTouchStart, onTouchEnd });\n  }\n\n  return {\n    interactionEvents,\n    select: selectManually, // preselect and select without having to trigger an event\n  };\n}\n","import SvgIcon from './SvgIcon';\n\nconst tick = (props) => ({\n  ...props,\n  shapes: [{ type: 'path', attrs: { d: 'M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z' } }],\n});\n\nexport default (props) => SvgIcon(tick(props));\nexport { tick };\n","import classes from './classes';\n\nexport const isExcluded = (c) => (c ? c.qState === 'X' || c.qState === 'XS' || c.qState === 'XL' : null);\nexport const isAlternative = (c) => (c ? c.qState === 'A' : null);\nexport const excludedOrAlternative = ({ cell, checkboxes }) => (isAlternative(cell) || isExcluded(cell)) && checkboxes;\n\nfunction getSelectionStateClass({ cell, showGray }) {\n  let selectionStateClass;\n  switch (cell.qState) {\n    case 'XS':\n      selectionStateClass = showGray ? classes.XS : classes.S;\n      break;\n    case 'S':\n    case 'L':\n      selectionStateClass = classes.S;\n      break;\n    case 'A':\n      selectionStateClass = showGray ? classes.A : false;\n      break;\n    case 'X':\n    case 'XL':\n      selectionStateClass = showGray ? classes.X : false;\n      break;\n    default:\n      selectionStateClass = false;\n  }\n\n  return selectionStateClass;\n}\n\nexport const getValueStateClasses = ({ column, histogram, cell, showGray }) => {\n  if (!cell) {\n    return [];\n  }\n\n  const clazzArr = [column ? classes.column : classes.row];\n  if (!histogram) {\n    clazzArr.push(classes.rowBorderBottom);\n  }\n\n  const selectionStateClass = getSelectionStateClass({ cell, showGray });\n  if (selectionStateClass) {\n    clazzArr.push(selectionStateClass);\n  }\n\n  return clazzArr;\n};\n","import { frequencyTextNone } from '../../../constants';\n\nexport const joinClassNames = (namesArray) =>\n  namesArray\n    .filter((c) => !!c)\n    .join(' ')\n    .trim();\n\nexport const getBarWidth = ({ qFrequency, frequencyMax }) => {\n  const freqStr = String(qFrequency);\n  const isPercent = freqStr.substring(freqStr.length - 1) === '%';\n  const freq = parseFloat(isPercent ? freqStr : qFrequency);\n  const width = isPercent ? freq : (freq / frequencyMax) * 100;\n  return `${width}%`;\n};\n\nexport const getFrequencyText = (qFrequency) => qFrequency || frequencyTextNone;\n","export const CELL_PADDING_LEFT = 9;\nexport const HEADER_PADDING_RIGHT = 4;\nexport const ICON_WIDTH = 12;\nexport const ICON_PADDING = 7;\nexport const BUTTON_ICON_WIDTH = ICON_WIDTH + (ICON_PADDING + 1) * 2; // 1 is border width\nexport const REMOVE_TICK_LIMIT = 80; // an item width equal to or less than this, will hide the select tick\nexport const SCROLL_BAR_WIDTH = 10; // TODO: ignore this - instead set the styling only show on hover...\nexport const ITEM_MAX_WIDTH = 150;\nexport const ITEM_MIN_WIDTH = 56;\nexport const CHECKBOX_WIDTH = 20;\nexport const frequencyTextNone = '-';\nexport const barPadPx = 4;\nexport const barBorderWidthPx = 1;\nexport const barWithCheckboxLeftPadPx = 29;\nexport const GRID_ROW_HEIGHT = 32;\nexport const LIST_ROW_HEIGHT = 29;\nexport const DENSE_ROW_HEIGHT = 20; // same for both list and grid in dense mode\nexport const GRID_ITEM_PADDING = 4;\n","import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport classes from '../helpers/classes';\nimport { barBorderWidthPx, barPadPx, barWithCheckboxLeftPadPx, CELL_PADDING_LEFT } from '../../../constants';\n\nconst getFreqFlexBasis = ({ sizes, frequencyMode, isGridMode, freqHitsValue }) => {\n  if (frequencyMode === 'P') {\n    return `${sizes.freqMinWidth}px`;\n  }\n  const flexBasis = isGridMode && !freqHitsValue ? 'max-content' : '25%';\n  return flexBasis;\n};\n\nconst getMaxFreqWidth = ({ sizes, frequencyMode, isGridMode }) => {\n  if (isGridMode) {\n    // This makes the neighbouring value stretch farther than when using a fixed freuency width.\n    return 'max-content';\n  }\n  if (frequencyMode === 'P') {\n    return sizes.freqMinWidth; // because it will never grow beyond \"100.0%\"\n  }\n  return sizes.freqMaxWidth;\n};\n\nconst getRowSelectionStyle = ({ checkboxes, styles, selectionState }) => {\n  if (checkboxes) {\n    if (selectionState === 'selected') {\n      return {\n        [`& .${classes.labelText}`]: {\n          // Override labels (value and frequency count) color when selected.\n          color: styles.selections.selected,\n        },\n      };\n    }\n    return {};\n  }\n  const selectionStyles = styles.selections;\n  const backgroundColor = selectionStyles[selectionState];\n  const contrastTextColor = selectionStyles[`${selectionState}Contrast`];\n  return {\n    background: backgroundColor,\n    color: contrastTextColor,\n    '& $cell': {\n      paddingRight: 0,\n    },\n    // Override default label text style for selection states\n    // when contrasting text is needed.\n    [`& .${classes.labelText}`]: {\n      color: contrastTextColor,\n    },\n    [`& .${classes.icon}`]: {\n      color: contrastTextColor,\n    },\n  };\n};\n\nconst ellipsis = {\n  width: '100%',\n  overflow: 'hidden',\n  textOverflow: 'ellipsis',\n  whiteSpace: 'nowrap',\n};\n\nconst iconWidth = 24; // tick and lock icon width in px\n\nconst RowColRoot = styled('div', {\n  shouldForwardProp: (prop) =>\n    ![\n      'checkboxes',\n      'isGridMode',\n      'isGridCol',\n      'dense',\n      'direction',\n      'sizes',\n      'frequencyMode',\n      'freqHitsValue',\n      'layout',\n      'styles',\n    ].includes(prop),\n})(({ theme, checkboxes, isGridMode, isGridCol, dense, direction, sizes, frequencyMode, freqHitsValue, styles }) => {\n  // eslint-disable-next-line no-unused-vars\n  const { backgroundColor: _, ...contentFontStyles } = styles.content;\n\n  const rowSelectionStyle = getRowSelectionStyle({ theme, styles, checkboxes, selectionState: 'selected' });\n  const rowExcludedStyle = getRowSelectionStyle({ theme, styles, checkboxes, selectionState: 'excluded' });\n  const barDefaultFilledStyle = {\n    height: '100%',\n    transition: 'width 0.2s',\n    border: `${barBorderWidthPx}px solid`,\n    borderColor: '#D9D9D9', // overridden by selected color (classes.S),\n    backgroundColor: '#FAFAFA',\n  };\n  const barSelectedFilledStyle = {\n    opacity: '30%',\n  };\n\n  return {\n    '& .value': {\n      '&:focus-visible': {\n        boxShadow: `inset 0 0 0 2px ${theme.palette.custom.newFocusBorder} !important`,\n        borderRadius: '4px',\n        outline: 'none',\n      },\n    },\n\n    [`& .${classes.row}`]: {\n      flexWrap: 'nowrap',\n      ...styles.content,\n    },\n\n    [`& .${classes.rowBorderBottom}`]: {\n      borderBottom: isGridCol ? 'none' : `1px solid ${theme.palette.divider}`,\n      borderLeft: isGridCol ? `1px solid ${theme.palette.divider}` : 'none',\n    },\n\n    [`& .${classes.column}`]: {\n      flexWrap: 'nowrap',\n      borderRight: `1px solid ${theme.palette.divider}`,\n      ...styles.content,\n    },\n\n    // The interior wrapper for all field content.\n    [`& .${classes.cell}`]: {\n      zIndex: 2,\n      display: 'flex',\n      alignItems: 'center',\n      flexGrow: 1,\n      minWidth: checkboxes ? '52px' : '26px', // these numbers are just enough to show one letter and ellipsis: A…\n      flexBasis: checkboxes ? 'auto' : 'max-content',\n      // Note that this padding is overridden when using checkboxes.\n      paddingLeft: `${CELL_PADDING_LEFT}px`,\n      paddingRight: 0,\n    },\n\n    // The leaf node, containing the label text.\n    [`& .${classes.labelText}`]: {\n      lineHeight: '24px',\n      userSelect: 'none',\n      paddingRight: '1px',\n      ...ellipsis,\n      ...contentFontStyles,\n    },\n\n    [`& .${classes.labelDense}`]: {\n      lineHeight: '18px',\n    },\n\n    // Highlight is added to labelText spans, which are created as children to original labelText,\n    // when a search string is matched.\n    [`& .${classes.highlighted}`]: {\n      backgroundColor: '#FFC72A',\n    },\n\n    // Checkbox and label container.\n    [`& .${classes.checkboxLabel}`]: {\n      margin: 0,\n      width: '100%',\n      height: '100%',\n      overflow: 'hidden',\n\n      // The checkbox's span\n      '& > span:nth-of-type(1)': {\n        paddingRight: '8px',\n      },\n      // The checkbox's label container.\n      '& > span:nth-of-type(2)': {\n        ...ellipsis,\n        display: 'flex',\n        alignItems: 'center',\n        paddingLeft: 0,\n        paddingRight: '2px',\n      },\n    },\n\n    // The icons container holding tick and lock, shown inside fields.\n    [`& .${classes.icon}`]: {\n      display: 'flex',\n      justifyContent: 'center',\n      width: iconWidth,\n      minWidth: iconWidth,\n      maxWidth: iconWidth,\n      color: contentFontStyles.color,\n    },\n\n    // Selection styles (S=Selected, XS=ExcludedSelected, A=Alternative, X=Excluded).\n    [`& .${classes.S}`]: {\n      ...rowSelectionStyle,\n      '&:focus-visible': {\n        boxShadow: `inset 0 0 0 2px ${theme.palette.custom.newFocusBorder}, inset 0 0 0 4px ${theme.palette.custom.whiteBorder} !important`,\n        borderRadius: '4px',\n        outline: 'none',\n      },\n      border: isGridMode ? 'none' : undefined,\n    },\n\n    [`& .${classes.XS}`]: {\n      ...getRowSelectionStyle({ theme, styles, checkboxes, selectionState: 'selectedExcluded' }),\n      border: isGridMode ? 'none' : undefined,\n    },\n\n    [`& .${classes.A}`]: {\n      ...getRowSelectionStyle({ theme, styles, checkboxes, selectionState: 'alternative' }),\n      border: isGridMode ? 'none' : undefined,\n    },\n\n    [`& .${classes.X}`]: {\n      ...rowExcludedStyle,\n      border: isGridMode ? 'none' : undefined,\n    },\n\n    [`& .${classes.X}, & .${classes.XS}`]: {\n      // Override the selected color for bar-filled, when the value is selected and excluded.\n      border: isGridMode ? 'none' : undefined,\n      [`& .${classes.barSelected} .bar-filled`]: {\n        ...barDefaultFilledStyle,\n      },\n    },\n\n    [`& .${classes.frequencyCount}`]: {\n      zIndex: 3,\n      justifyContent: 'flex-end',\n      ...ellipsis,\n      flex: `0 0 ${getFreqFlexBasis({ sizes, frequencyMode, isGridMode, freqHitsValue })}`,\n      minWidth: !isGridMode && frequencyMode !== 'P' && freqHitsValue ? sizes.freqMinWidth : 'max-content',\n      maxWidth: getMaxFreqWidth({ sizes, frequencyMode, isGridMode }),\n      textAlign: direction === 'rtl' ? 'left' : 'right',\n      // In RTL, we already get the 8px from the value element's padding and for\n      // percent mode we have already adapted the width (fixed width) to the max number.\n      paddingLeft: direction !== 'rtl' ? '8px' : 0,\n    },\n\n    [`&.${classes.barContainer}`]: {\n      height: '100%',\n      display: 'flex',\n      alignItems: 'center',\n    },\n\n    [`& .${classes.bar}`]: {\n      height: dense ? '16px' : '20px',\n      position: 'absolute',\n      zIndex: 1,\n      alignSelf: 'center',\n      left: barPadPx,\n      width: `calc(100% - ${barPadPx * 2}px)`,\n      display: 'flex',\n      alignItems: 'center',\n      '& .bar-filled': {\n        ...barDefaultFilledStyle,\n      },\n    },\n    [`& .${classes.barSelected}`]: {\n      '& .bar-filled': {\n        ...barSelectedFilledStyle,\n      },\n    },\n    [`& .${classes.barWithCheckbox}`]: {\n      left: direction === 'rtl' ? barPadPx : barWithCheckboxLeftPadPx,\n      width: `calc(100% - ${barWithCheckboxLeftPadPx + barPadPx}px)`,\n    },\n\n    [`& .${classes.barSelectedWithCheckbox}`]: {\n      '& .bar-filled': {\n        ...barSelectedFilledStyle,\n        backgroundColor: styles.selections.selected || '#BFE5D0',\n        borderColor: styles.selections.selected,\n      },\n    },\n\n    [`& .${classes.excludedTextWithCheckbox}`]: {\n      color: styles.content.color,\n      fontStyle: 'italic',\n    },\n  };\n});\n\nexport default React.memo(RowColRoot);\n","const CheckboxChecked =\n  \"url(\\\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath\" +\n  \" fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 \" +\n  \"1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\\\")\";\n\nexport default CheckboxChecked;\n","import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { Checkbox } from '@mui/material';\nimport CheckboxChecked from '../../../assets/CheckboxChecked';\n\nconst PREFIX = 'ListBoxCheckbox';\nconst borderRadius = 3;\n\nconst classes = {\n  cbIcon: `${PREFIX}-cbIcon`,\n  cbIconChecked: `${PREFIX}-cbIconChecked`,\n  cbIconExcluded: `${PREFIX}-cbIconExcluded`,\n  cbIconAlternative: `${PREFIX}-cbIconAlternative`,\n  checkbox: `${PREFIX}-checkbox`,\n  dense: `${PREFIX}-dense`,\n};\n\nconst StyledCheckbox = styled(Checkbox, { shouldForwardProp: (p) => p !== 'styles' })(({ styles }) => ({\n  [`& .${classes.cbIcon}`]: {\n    borderRadius,\n    width: 16,\n    height: 16,\n    boxShadow: 'inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)',\n    backgroundColor: '#f5f8fa',\n    backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',\n    display: 'flex',\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n\n  [`& .${classes.cbIconChecked}`]: {\n    borderRadius,\n    backgroundColor: styles.selections.selected,\n    backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',\n    '&:before': {\n      display: 'block',\n      width: 16,\n      height: 16,\n      backgroundImage: CheckboxChecked,\n      content: '\"\"',\n    },\n  },\n\n  [`& .${classes.cbIconExcluded}`]: {\n    borderRadius: borderRadius - 1,\n    width: 12,\n    height: 12,\n    backgroundColor: styles.selections.excluded,\n  },\n\n  [`& .${classes.cbIconAlternative}`]: {\n    borderRadius: borderRadius - 1,\n    width: 12,\n    height: 12,\n    backgroundColor: styles.selections.alternative,\n  },\n\n  [`&.${classes.checkbox}`]: {\n    margin: 0,\n    '&:hover': {\n      backgroundColor: 'inherit !important',\n    },\n  },\n\n  [`&.${classes.dense}`]: {\n    padding: '4px 8px',\n  },\n}));\n\nconst getIcon = (cls, showGray = true, excluded = false) => (\n  <span className={cls.cbIcon}>{excluded && <span className={showGray && excluded ? cls.cbIconExcluded : ''} />}</span>\n);\n\nexport default function ListboxCheckbox({ onChange, checked, label, dense, excluded, styles, showGray = true, dataN }) {\n  return (\n    <StyledCheckbox\n      edge=\"start\"\n      onChange={onChange}\n      checked={checked}\n      disableRipple\n      className={[classes.checkbox, dense && classes.dense].filter(Boolean).join(' ')}\n      inputProps={{ 'aria-labelledby': label, 'data-n': dataN }}\n      name={label}\n      icon={getIcon(classes, showGray, excluded)}\n      checkedIcon={<span className={classes.cbIconChecked} />}\n      styles={styles}\n    />\n  );\n}\n","import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { Radio } from '@mui/material';\n\nconst PREFIX = 'ListBoxRadioButton';\n\nconst classes = {\n  radioButton: `${PREFIX}-radioButton`,\n};\n\nconst StyledRadio = styled(Radio, { shouldForwardProp: (p) => !['dense', 'styles'].includes(p) })(\n  ({ checked, styles, dense }) => ({\n    [`&.${classes.radioButton}`]: {\n      right: '5px',\n      color: checked ? styles.selections.selected : styles.content.color,\n      padding: dense ? '0px 0px 0px 12px' : undefined,\n      backgroundColor: 'transparent',\n    },\n  })\n);\n\nexport default function ListBoxRadioButton({ onChange, checked, label, dense, dataN, styles }) {\n  return (\n    <StyledRadio\n      checked={checked}\n      onChange={onChange}\n      value={label}\n      name={label}\n      className={classes.radioButton}\n      inputProps={{ 'data-n': dataN }}\n      disableRipple\n      size={dense ? 'small' : 'medium'}\n      dense={dense}\n      styles={styles}\n    />\n  );\n}\n","import React from 'react';\nimport { Typography } from '@mui/material';\nimport { joinClassNames } from '../helpers/operations';\nimport classes from '../helpers/classes';\nimport { excludedOrAlternative } from '../helpers/cell-states';\n\nfunction ValueField({ label, dense, showGray = true, checkboxes, cell, valueTextAlign }) {\n  return (\n    <Typography\n      component=\"span\"\n      variant=\"body2\"\n      className={joinClassNames([\n        classes.labelText,\n        dense && classes.labelDense,\n        showGray && excludedOrAlternative({ cell, checkboxes }) && classes.excludedTextWithCheckbox,\n      ])}\n      align={valueTextAlign}\n      dir=\"auto\"\n    >\n      <span>{label}</span>\n    </Typography>\n  );\n}\n\nexport default ValueField;\n","import React from 'react';\nimport ValueField from './ValueField';\n\nfunction LabelTag({ label, color, dense, showGray, checkboxes, cell, valueTextAlign }) {\n  if (typeof label === 'string') {\n    return (\n      <ValueField\n        label={label}\n        color={color}\n        dense={dense}\n        showGray={showGray}\n        checkboxes={checkboxes}\n        cell={cell}\n        valueTextAlign={valueTextAlign}\n      />\n    );\n  }\n  return label;\n}\n\nexport default LabelTag;\n","import React from 'react';\nimport { FormControlLabel } from '@mui/material';\nimport ListBoxCheckbox from './ListBoxCheckbox';\nimport ListBoxRadioButton from './ListBoxRadioButton';\nimport { isExcluded } from '../helpers/cell-states';\nimport classes from '../helpers/classes';\nimport LabelTag from './LabelTag';\n\nfunction CheckboxField({\n  onChange,\n  label,\n  qElemNumber,\n  isSelected,\n  dense,\n  cell,\n  isGridCol,\n  showGray,\n  isSingleSelect,\n  checkboxes,\n  valueTextAlign,\n  styles,\n}) {\n  const cb = (\n    <ListBoxCheckbox\n      onChange={onChange}\n      label={label}\n      checked={isSelected}\n      dense={dense}\n      excluded={isExcluded(cell)}\n      isGridCol={isGridCol}\n      showGray={showGray}\n      dataN={qElemNumber}\n      styles={styles}\n    />\n  );\n  const rb = (\n    <ListBoxRadioButton\n      onChange={onChange}\n      label={label}\n      checked={isSelected}\n      dense={dense}\n      dataN={qElemNumber}\n      styles={styles}\n    />\n  );\n\n  return (\n    <FormControlLabel\n      control={isSingleSelect ? rb : cb}\n      className={classes.checkboxLabel}\n      label={\n        <LabelTag\n          label={label}\n          dense={dense}\n          showGray={showGray}\n          checkboxes={checkboxes}\n          cell={cell}\n          valueTextAlign={valueTextAlign}\n        />\n      }\n      key={qElemNumber}\n    />\n  );\n}\n\nexport default CheckboxField;\n","import React from 'react';\nimport CheckboxField from './CheckboxField';\nimport ValueField from './ValueField';\nimport classes from '../helpers/classes';\n\nfunction LabelsWithRanges({ labels, dense, showGray, checkboxes }) {\n  const text = labels.map(([label, highlighted], index) => (\n    <span id={index} className={highlighted ? classes.highlighted : ''}>\n      {label}\n    </span>\n  ));\n  return <ValueField label={text} dense={dense} showGray={showGray} checkboxes={checkboxes} />;\n}\n\nfunction FieldWithRanges({\n  onChange,\n  labels,\n  checkboxes,\n  dense,\n  showGray,\n  qElemNumber,\n  isSelected,\n  cell,\n  isGridCol,\n  isSingleSelect,\n  valueTextAlign,\n  styles,\n}) {\n  const LWR = <LabelsWithRanges labels={labels} dense={dense} showGray={showGray} checkboxes={checkboxes} />;\n  return checkboxes ? (\n    <CheckboxField\n      onChange={onChange}\n      label={LWR}\n      qElemNumber={qElemNumber}\n      isSelected={isSelected}\n      dense={dense}\n      cell={cell}\n      isGridCol={isGridCol}\n      showGray={showGray}\n      isSingleSelect={isSingleSelect}\n      checkboxes={checkboxes}\n      valueTextAlign={valueTextAlign}\n      styles={styles}\n    />\n  ) : (\n    LWR\n  );\n}\n\nexport default FieldWithRanges;\n","import React from 'react';\nimport CheckboxField from './CheckboxField';\nimport ValueField from './ValueField';\n\nfunction Field({\n  onChange,\n  label,\n  qElemNumber,\n  isSelected,\n  dense,\n  cell,\n  isGridCol,\n  showGray,\n  isSingleSelect,\n  checkboxes,\n  valueTextAlign,\n  styles,\n}) {\n  return checkboxes ? (\n    <CheckboxField\n      onChange={onChange}\n      label={label}\n      qElemNumber={qElemNumber}\n      isSelected={isSelected}\n      dense={dense}\n      cell={cell}\n      isGridCol={isGridCol}\n      showGray={showGray}\n      isSingleSelect={isSingleSelect}\n      checkboxes={checkboxes}\n      valueTextAlign={valueTextAlign}\n      styles={styles}\n    />\n  ) : (\n    <ValueField\n      label={label}\n      dense={dense}\n      showGray\n      checkboxes={checkboxes}\n      cell={cell}\n      valueTextAlign={valueTextAlign}\n    />\n  );\n}\n\nexport default React.memo(Field);\n","import { Box } from '@mui/material';\nimport React from 'react';\nimport classes from '../helpers/classes';\nimport { frequencyTextNone } from '../../../constants';\nimport { getBarWidth, getFrequencyText, joinClassNames } from '../helpers/operations';\n\nfunction Histogram({ qFrequency, histogram, checkboxes, isSelected, frequencyMax }) {\n  const hasHistogramBar = qFrequency && histogram && getFrequencyText(qFrequency) !== frequencyTextNone;\n  if (!hasHistogramBar) {\n    return undefined;\n  }\n\n  const width = getBarWidth({ qFrequency, checkboxes, frequencyMax });\n  return (\n    <Box\n      className={joinClassNames([\n        classes.bar,\n        checkboxes && classes.barWithCheckbox,\n        isSelected && (checkboxes ? classes.barSelectedWithCheckbox : classes.barSelected),\n      ])}\n    >\n      <Box className=\"bar-filled\" width={width} />\n    </Box>\n  );\n}\n\nexport default Histogram;\n","import React from 'react';\nimport { Grid, Typography } from '@mui/material';\nimport { excludedOrAlternative } from '../helpers/cell-states';\nimport classes from '../helpers/classes';\nimport { getFrequencyText, joinClassNames } from '../helpers/operations';\n\nfunction Frequency({ cell, checkboxes, dense, showGray }) {\n  const frequencyText = getFrequencyText(cell?.qFrequency);\n  return (\n    <Grid\n      style={{ display: 'flex', alignItems: 'center' }}\n      className={classes.frequencyCount}\n      aria-label={frequencyText}\n      title={frequencyText}\n    >\n      <Typography\n        noWrap\n        color=\"inherit\"\n        variant=\"body2\"\n        className={joinClassNames([\n          dense && classes.labelDense,\n          classes.labelText,\n          showGray && excludedOrAlternative({ cell, checkboxes }) && classes.excludedTextWithCheckbox,\n        ])}\n      >\n        {frequencyText}\n      </Typography>\n    </Grid>\n  );\n}\n\nexport default Frequency;\n","export default function getGridItemSizes({ dataLayout, layoutOrder, itemPadding, fillHeight }) {\n  // Simulate margin/padding by making the item smaller than its container.\n  if (dataLayout === 'singleColumn') {\n    return {\n      height: '100%',\n      width: '100%',\n    };\n  }\n\n  switch (layoutOrder) {\n    case 'row':\n      return {\n        height: fillHeight ? '100%' : `calc(100% - ${itemPadding}px)`,\n        width: `calc(100% - ${2 * itemPadding}px)`,\n        position: 'absolute',\n        left: 4,\n      };\n    case 'column':\n      return {\n        height: fillHeight ? '100%' : `calc(100% - ${itemPadding}px)`,\n        width: `calc(100% - ${2 * itemPadding}px)`,\n        position: 'absolute',\n        left: 4,\n      };\n    default:\n      return {};\n  }\n}\n","import { Grid } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport getItemSizes from '../../grid-list-components/item-sizes';\nimport classes from '../helpers/classes';\n\nconst ItemGrid = styled(Grid, {\n  shouldForwardProp: (prop) =>\n    !['dataLayout', 'layoutOrder', 'itemPadding', 'cellPaddingRight', 'direction', 'fillHeight'].includes(prop),\n})(({ dataLayout, layoutOrder, itemPadding, cellPaddingRight, direction, fillHeight }) => {\n  const att = `padding${direction === 'rtl' ? 'Left' : 'Right'}`;\n  return {\n    [`&.${classes.fieldRoot}`]: {\n      ...getItemSizes({ dataLayout, layoutOrder, itemPadding, fillHeight }),\n      [att]: cellPaddingRight ? '8px' : undefined,\n    },\n  };\n});\n\nexport default ItemGrid;\n","const KEYS = Object.freeze({\n  ENTER: 13,\n  ESCAPE: 27,\n  SPACE: 32,\n  TAB: 9,\n  BACKSPACE: 8,\n  DELETE: 46,\n  ALT: 18,\n  CTRL: 17,\n  SHIFT: 16,\n  ARROW_UP: 38,\n  ARROW_DOWN: 40,\n  ARROW_LEFT: 37,\n  ARROW_RIGHT: 39,\n  PAGE_DOWN: 34,\n  PAGE_UP: 33,\n  HOME: 36,\n  END: 35,\n  F10: 121,\n  A: 65,\n  F: 70,\n  ZERO: 48,\n  NINE: 57,\n  NUMPAD_ZERO: 96,\n  NUMPAD_NINE: 105,\n  SUBTRACTION: 189,\n  DECIMAL: 190,\n  NUMPAD_DECIMAL: 110,\n\n  isArrow: (key) =>\n    key === KEYS.ARROW_UP || key === KEYS.ARROW_DOWN || key === KEYS.ARROW_LEFT || key === KEYS.ARROW_RIGHT,\n});\n\nexport default KEYS;\n","import { useState } from 'react';\n\nexport function removeInnnerTabStops(container) {\n  container?.querySelectorAll('[tabIndex=\"0\"]').forEach((elm) => {\n    elm.setAttribute('tabIndex', -1);\n  });\n}\n\nexport function removeLastFocused(container) {\n  container?.querySelectorAll('.last-focused').forEach((elm) => {\n    elm.classList.remove('last-focused');\n  });\n}\n\nexport function getVizCell(container) {\n  return container?.closest('.njs-cell') || container?.closest('.qv-gridcell') || container?.closest('.qv-gs-listbox');\n}\n\n// Emulate the keyboard hook, until we support it in the Listbox.\nexport default function useTempKeyboard({ containerRef, enabled }) {\n  const [keyboardActive, setKeyboardActive] = useState(false);\n\n  const keyboard = {\n    enabled,\n    active: keyboardActive,\n\n    // innerTabStops: whether keyboard permits inner tab stops\n    // (inner = everything inside .listbox-container)\n\n    innerTabStops: !enabled || keyboardActive,\n    blur(resetFocus) {\n      if (!enabled) {\n        return;\n      }\n      setKeyboardActive(false);\n      const vizCell = getVizCell(containerRef.current) || containerRef.current?.parentElement;\n      removeInnnerTabStops(containerRef.current);\n      removeLastFocused(containerRef.current);\n      if (resetFocus && vizCell) {\n        // Move focus to the viz's cell.\n        vizCell.setAttribute('tabIndex', 0);\n        containerRef.current.setAttribute('tabIndex', -1);\n        vizCell.focus();\n      }\n    },\n    focus() {\n      if (!enabled) {\n        return;\n      }\n      setKeyboardActive(true);\n      const c = containerRef.current;\n      const searchField = c?.querySelector('.search input');\n      const lastSelectedRow = c?.querySelector('.value.last-focused');\n      const firstRowElement = c?.querySelector('.value.selector, .value');\n      const confirmButton = c?.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm');\n      const unlockCoverButton = c?.querySelector('#listbox-unlock-button');\n      const cyclicButton = c?.querySelector('.listbox-cyclic-button');\n      const elementToFocus =\n        cyclicButton || searchField || lastSelectedRow || firstRowElement || unlockCoverButton || confirmButton;\n      elementToFocus?.setAttribute('tabIndex', 0);\n      elementToFocus?.focus();\n    },\n    focusSelection() {\n      const unlockCoverButton = document.querySelector('#listbox-unlock-button');\n      const confirmButton = document.querySelector(\n        '.actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)'\n      );\n      const btnToFocus = unlockCoverButton || confirmButton;\n      btnToFocus?.setAttribute('tabIndex', 0);\n      btnToFocus?.focus();\n      return btnToFocus;\n    },\n  };\n\n  return keyboard;\n}\n","import { getVizCell, removeLastFocused } from '../../components/useTempKeyboard';\n\nexport const getElementIndex = (currentTarget) => +currentTarget.getAttribute('data-n');\n\nexport const focusSearch = (container) => {\n  const searchField = container?.querySelector('.search input');\n  searchField?.focus();\n  return searchField;\n};\n\nexport const focusRow = (container) => {\n  const lastFocusedRow = container?.querySelector('.value.last-focused');\n  const selectorRow = container?.querySelector('.value.selector');\n  const row = container?.querySelector('.value');\n  const rowToFocus = lastFocusedRow || selectorRow || row;\n  rowToFocus?.setAttribute('tabIndex', 0);\n  rowToFocus?.focus();\n  removeLastFocused(container);\n  return rowToFocus;\n};\n\nexport const focusCyclicButton = (container) => {\n  const button = container?.querySelector('.listbox-cyclic-button:not(:disabled)');\n  button?.setAttribute('tabIndex', 0);\n  button?.focus();\n  return button;\n};\n\nexport const blur = (event, keyboard) => {\n  if (!keyboard.enabled) return;\n  const { currentTarget, target } = event;\n  const isFocusedOnListbox = target.classList.contains('listbox-container');\n  const container = currentTarget.closest('.listbox-container');\n  const vizCell = getVizCell(container);\n  const isSingleListbox = vizCell?.querySelectorAll('.listbox-container').length === 1;\n  if (isFocusedOnListbox || isSingleListbox) {\n    // Move the focus from listbox container to the viz container.\n    keyboard.blur(true);\n  } else {\n    // More than one listbox: Move focus from row to listbox container.\n\n    // 1. Remove last-focused class from row siblings.\n    removeLastFocused(container);\n\n    // 2. Add last-focused class so we can re-focus it later.\n    currentTarget.classList.add('last-focused');\n\n    // 3. Blur row and focus the listbox container.\n    keyboard.blur();\n    const c = currentTarget.closest('.listbox-container');\n    c.setAttribute('tabIndex', -1);\n    c?.focus();\n  }\n};\n","const LOC_STATES = {\n  S: 'Object.Listbox.Selected',\n  A: 'Object.Listbox.Alternative',\n  O: 'Object.Listbox.Optional',\n  XS: 'Object.Listbox.SelectedExcluded',\n  L: 'Object.Listbox.Locked',\n  X: 'Object.Listbox.Excluded',\n  XL: 'Object.Listbox.ExcludedLock',\n};\n\nexport default function getValueLabel({\n  translator: translatorDynamic,\n  label,\n  qState,\n  isSelected,\n  currentIndex,\n  maxIndex,\n  showSearch,\n}) {\n  const stateTranslation = LOC_STATES[qState];\n  const state = translatorDynamic.get(stateTranslation);\n  const srStringArr = [];\n\n  if (isSelected) {\n    const navTranslation = showSearch\n      ? 'Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu'\n      : 'Listbox.ScreenReader.SelectionMenu.WithAccSelMenu';\n    const nav = translatorDynamic.get(navTranslation);\n    srStringArr.push(nav);\n  }\n\n  const valueString = `${label} ${state}`;\n  const indexString = translatorDynamic.get('CurrentSelections.Of', [currentIndex + 1, maxIndex + 1]); // E.g. 3 of 20\n  srStringArr.unshift(valueString, indexString);\n  const srString = srStringArr.join('. ').trim();\n  return srString;\n}\n","/* eslint-disable no-nested-ternary */\nimport React, { useEffect, useCallback, useMemo, useState } from 'react';\n\nimport { Grid } from '@mui/material';\n\nimport Lock from '@nebula.js/ui/icons/lock';\nimport Tick from '@nebula.js/ui/icons/tick';\nimport getSegmentsFromRanges from '../listbox-highlight';\nimport classes from './helpers/classes';\nimport { getValueStateClasses } from './helpers/cell-states';\nimport { joinClassNames } from './helpers/operations';\nimport RowColRoot from './components/ListBoxRoot';\nimport FieldWithRanges from './components/FieldWithRanges';\nimport Field from './components/Field';\nimport Histogram from './components/Histogram';\nimport Frequency from './components/Frequency';\nimport ItemGrid from './components/ItemGrid';\nimport getCellFromPages from './helpers/get-cell-from-pages';\nimport getRowsKeyboardNavigation from '../../interactions/keyboard-navigation/keyboard-nav-rows';\nimport getValueTextAlign from './helpers/get-value-text-align';\nimport getValueLabel from '../screen-reader/value-label';\n\nfunction RowColumn({ index, rowIndex, columnIndex, style, data }) {\n  const {\n    onChange,\n    onClick,\n    onMouseDown,\n    onMouseUp,\n    onMouseEnter,\n    onTouchStart,\n    onTouchEnd,\n    pages,\n    isLocked,\n    column = false,\n    checkboxes = false,\n    textAlign,\n    direction,\n    layoutOptions = {},\n    freqIsAllowed,\n    isSingleSelect,\n    actions,\n    frequencyMax = '',\n    histogram = false,\n    keyboard,\n    showGray = true,\n    showTick: sizePermitsTickOrLock = true,\n    columnCount = 1,\n    rowCount = 1,\n    dataOffset,\n    deducedFrequencyMode,\n    focusListItems,\n    listCount,\n    sizes,\n    translator,\n    showSearch,\n    isModal,\n    contentFontStyle,\n    styles,\n    fillHeight,\n  } = data;\n\n  const { dense = false, dataLayout = 'singleColumn', layoutOrder } = layoutOptions;\n  const { itemPadding } = sizes;\n\n  let cellIndex;\n  let styleOverrides;\n  const count = { max: null, currentIndex: null };\n\n  if (typeof rowIndex === 'number' && typeof columnIndex === 'number') {\n    if (layoutOrder === 'row') {\n      cellIndex = rowIndex * columnCount + columnIndex;\n      count.max = rowCount;\n      count.currentIndex = rowIndex;\n    } else {\n      cellIndex = columnIndex * rowCount + rowIndex;\n      count.max = columnCount;\n      count.currentIndex = columnIndex;\n    }\n    const padding = 0;\n    styleOverrides = {\n      ...style,\n      height: fillHeight ? '100%' : style.height,\n      left: padding + (columnIndex === 0 ? style.left : Number(style.left) + columnIndex * padding),\n      // right: columnIndex === columnCount ? style.right : Number(style.right) + columnIndex * padding,\n      top: rowIndex === 0 ? style.top : Number(style.top) + rowIndex * padding,\n    };\n  } else {\n    cellIndex = index;\n    count.max = listCount;\n    count.currentIndex = index;\n    styleOverrides = { ...style };\n  }\n  cellIndex += dataOffset;\n\n  const [rowRef, setRowRef] = useState(null);\n\n  useEffect(() => {\n    if (rowRef !== null) {\n      if (count.currentIndex === 0 && focusListItems.first) {\n        rowRef.focus();\n        focusListItems.setFirst(false);\n      }\n      if (count.currentIndex === count.max - 1 && focusListItems.last) {\n        rowRef.focus();\n        focusListItems.setLast(false);\n      }\n    }\n  }, [rowRef, focusListItems.first, focusListItems.last]);\n\n  const handleKeyDownCallback = useCallback(\n    getRowsKeyboardNavigation({\n      ...actions,\n      focusListItems,\n      keyboard,\n      isModal,\n      rowCount,\n      columnCount,\n      rowIndex,\n      columnIndex,\n      layoutOrder,\n    }),\n    [actions, keyboard?.innerTabStops, rowCount, columnCount, rowIndex, columnIndex, layoutOrder]\n  );\n\n  const cell = useMemo(() => getCellFromPages({ pages, cellIndex }), [pages, cellIndex]);\n  const isSelected = cell?.qState === 'S' || cell?.qState === 'XS' || cell?.qState === 'L' || cell?.qState === 'XL';\n\n  const classArr = useMemo(\n    () => getValueStateClasses({ column, histogram, cell, showGray }),\n    [cell?.qState, histogram, dense]\n  );\n\n  const preventContextMenu = useCallback(\n    (event) => {\n      event.preventDefault();\n    },\n    [checkboxes]\n  );\n\n  const valueTextAlign = useMemo(\n    () => cell && getValueTextAlign({ direction, cell, textAlign }),\n    [direction, cell, textAlign]\n  );\n\n  if (!cell) {\n    return null; // prevent rendering empty rows\n  }\n\n  const isGridCol = dataLayout === 'grid' && layoutOrder === 'column';\n\n  const label = cell?.qText ?? '';\n  // Search highlights. Split up labelText span into several and add the highlighted class to matching sub-strings.\n\n  let labels;\n  if (cell.qHighlightRanges?.qRanges?.length) {\n    const ranges = cell.qHighlightRanges.qRanges.sort((a, b) => a.qCharPos - b.qCharPos) || [];\n    labels = getSegmentsFromRanges(label, ranges);\n  }\n\n  const iconStyles = {\n    alignItems: 'center',\n    display: 'flex',\n    fontSize: '8px',\n  };\n\n  const isRtl = direction === 'rtl';\n\n  const cellStyle = {\n    display: 'flex',\n    alignItems: 'center',\n    flexGrow: 1,\n    paddingLeft: isRtl ? 8 : checkboxes ? 0 : undefined,\n    paddingRight: checkboxes ? 0 : isRtl ? 8 : 0,\n    justifyContent: valueTextAlign,\n    textAlign: valueTextAlign,\n  };\n\n  const isFirstElement = index === 0;\n\n  const showLockIcon = isSelected && isLocked;\n  const showTickIcon = !checkboxes && isSelected && !isLocked;\n  const showAnyIcon = !checkboxes && sizePermitsTickOrLock;\n  const cellPaddingRight = checkboxes || !sizePermitsTickOrLock;\n\n  const ariaLabel = getValueLabel({\n    translator,\n    label,\n    qState: cell.qState,\n    currentIndex: count.currentIndex,\n    maxIndex: count.max,\n    showSearch,\n  });\n\n  const freqHitsValue = (!isRtl && valueTextAlign === 'right') || (isRtl && valueTextAlign === 'left');\n\n  return (\n    <RowColRoot\n      className={classes.barContainer}\n      checkboxes={checkboxes}\n      style={styleOverrides}\n      styles={styles}\n      isGridCol={isGridCol}\n      isGridMode={dataLayout === 'grid'}\n      dense={dense}\n      direction={direction}\n      sizes={sizes}\n      frequencyMode={deducedFrequencyMode}\n      freqHitsValue={freqHitsValue}\n      contentFontStyle={contentFontStyle}\n      data-testid=\"listbox.item\"\n    >\n      <ItemGrid\n        role=\"row\"\n        aria-label={ariaLabel}\n        aria-selected={isSelected}\n        aria-setsize={count.max}\n        aria-rowindex={count.currentIndex}\n        ref={setRowRef}\n        container\n        dataLayout={dataLayout}\n        cellPaddingRight={cellPaddingRight}\n        layoutOrder={layoutOrder}\n        itemPadding={itemPadding}\n        gap={0}\n        className={joinClassNames(['value', classes.fieldRoot, ...classArr])}\n        onClick={onClick}\n        onMouseDown={onMouseDown}\n        onMouseUp={onMouseUp}\n        onMouseEnter={onMouseEnter}\n        onKeyDown={handleKeyDownCallback}\n        onTouchStart={onTouchStart}\n        onTouchEnd={onTouchEnd}\n        onContextMenu={preventContextMenu}\n        tabIndex={isFirstElement && keyboard.innerTabStops ? 0 : -1}\n        data-n={cell?.qElemNumber}\n        direction={direction}\n        fillHeight={fillHeight}\n      >\n        {cell?.qFrequency && (\n          <Histogram\n            qFrequency={cell?.qFrequency}\n            histogram={histogram}\n            checkboxes={checkboxes}\n            isSelected={isSelected}\n            frequencyMax={frequencyMax}\n          />\n        )}\n        <Grid style={cellStyle} className={joinClassNames([classes.cell, classes.selectedCell])} title={`${label}`}>\n          {labels ? (\n            <FieldWithRanges\n              onChange={onChange}\n              labels={labels}\n              checkboxes={checkboxes}\n              dense={dense}\n              showGray={showGray}\n              qElemNumber={cell.qElemNumber}\n              isSelected={isSelected}\n              cell={cell}\n              isGridCol={isGridCol}\n              isSingleSelect={isSingleSelect}\n              valueTextAlign={valueTextAlign}\n              styles={styles}\n            />\n          ) : (\n            <Field\n              onChange={onChange}\n              label={label}\n              qElemNumber={cell.qElemNumber}\n              isSelected={isSelected}\n              dense={dense}\n              cell={cell}\n              isGridCol={isGridCol}\n              showGray={showGray}\n              isSingleSelect={isSingleSelect}\n              checkboxes={checkboxes}\n              valueTextAlign={valueTextAlign}\n              styles={styles}\n            />\n          )}\n        </Grid>\n\n        {freqIsAllowed && <Frequency cell={cell} checkboxes={checkboxes} dense={dense} showGray={showGray} />}\n\n        {showAnyIcon && (\n          <Grid className={classes.icon}>\n            {showLockIcon && <Lock style={iconStyles} size=\"small\" />}\n            {showTickIcon && <Tick style={iconStyles} size=\"small\" />}\n          </Grid>\n        )}\n      </ItemGrid>\n    </RowColRoot>\n  );\n}\n\nexport default RowColumn;\n","import KEYS from '../../../../keys';\nimport { blur, focusCyclicButton, focusSearch, getElementIndex } from './keyboard-nav-methods';\nimport findNextItemIndex from './find-next-item-index';\n\nexport default function getRowsKeyboardNavigation({\n  select,\n  selectAll,\n  onCtrlF,\n  confirm,\n  cancel,\n  setScrollPosition,\n  focusListItems,\n  keyboard,\n  isModal,\n  rowCount,\n  columnCount,\n  rowIndex,\n  columnIndex,\n  layoutOrder,\n}) {\n  const getElement = (keyCode, elm, next = false) => {\n    if (\n      keyCode === KEYS.ARROW_LEFT ||\n      keyCode === KEYS.ARROW_RIGHT ||\n      !(typeof rowIndex === 'number' && typeof columnIndex === 'number')\n    ) {\n      const parentElm = elm?.parentElement[next ? 'nextElementSibling' : 'previousElementSibling'];\n      return parentElm?.querySelector('[role]');\n    }\n    const gridElm = elm?.parentElement.parentElement;\n    const numCells = gridElm?.childElementCount;\n    if (numCells) {\n      const nextIndex = findNextItemIndex({\n        rowIndex,\n        columnIndex,\n        rowCount,\n        columnCount,\n        layoutOrder,\n        keyCode,\n        numCells,\n      });\n      const nextElm = elm?.parentElement.parentElement.children[nextIndex];\n      return nextElm?.querySelector('[role]');\n    }\n    return undefined;\n  };\n\n  let startedRange = false;\n  const setStartedRange = (val) => {\n    startedRange = val;\n  };\n\n  const handleKeyDown = (event) => {\n    let elementToFocus;\n    const { currentTarget, nativeEvent } = event;\n    const { keyCode, shiftKey = false, ctrlKey = false, metaKey = false } = nativeEvent;\n    switch (keyCode) {\n      case KEYS.TAB: {\n        // Try to focus search field, otherwise confirm button.\n        const container = currentTarget.closest('.listbox-container');\n        const inSelection = typeof isModal !== 'undefined' ? isModal() : undefined;\n        // TODO: use a store to keep track of this row.\n        currentTarget.classList.add('last-focused'); // so that we can go back here when we tab back\n\n        const useDefaultBrowserSupport = !keyboard?.enabled;\n        if (useDefaultBrowserSupport) {\n          if (!inSelection) return;\n          keyboard.focusSelection();\n          event.preventDefault();\n          event.stopPropagation();\n          return;\n        }\n\n        if (shiftKey) {\n          if (!focusSearch(container) && !focusCyclicButton(container)) {\n            if (inSelection) {\n              keyboard.focusSelection();\n            } else {\n              blur(event, keyboard);\n            }\n          }\n          break;\n        }\n\n        // Without shift key\n        if (!keyboard.focusSelection() && !focusCyclicButton(container) && !focusSearch(container)) {\n          currentTarget.blur();\n          blur(event, keyboard);\n        }\n        break;\n      }\n      case KEYS.SHIFT:\n        // This is to ensure we include the first value when starting a range selection.\n        setStartedRange(true);\n        break;\n      case KEYS.SPACE:\n        select([getElementIndex(currentTarget)], false, event);\n        break;\n      case KEYS.ARROW_DOWN:\n      case KEYS.ARROW_RIGHT:\n        elementToFocus = getElement(keyCode, currentTarget, true);\n        if (shiftKey && elementToFocus) {\n          if (startedRange) {\n            select([getElementIndex(currentTarget)], true);\n            setStartedRange(false);\n          }\n          select([getElementIndex(elementToFocus)], true);\n        }\n        break;\n      case KEYS.ARROW_UP:\n      case KEYS.ARROW_LEFT:\n        elementToFocus = getElement(keyCode, currentTarget, false);\n        if (shiftKey && elementToFocus) {\n          if (startedRange) {\n            select([getElementIndex(currentTarget)], true);\n            setStartedRange(false);\n          }\n          select([getElementIndex(elementToFocus)], true);\n        }\n        break;\n      case KEYS.ENTER:\n        confirm();\n        if (typeof isModal === 'undefined') {\n          return;\n        }\n        break;\n      case KEYS.ESCAPE:\n        if (typeof isModal === 'undefined') {\n          cancel();\n          return;\n        }\n        if (isModal()) {\n          cancel();\n        } else {\n          return; // propagate to other Esc handler\n        }\n        break;\n      case KEYS.HOME:\n        focusListItems.setFirst(true);\n        if (ctrlKey) {\n          setScrollPosition?.('overflowStart');\n          break;\n        }\n        setScrollPosition?.('start');\n        break;\n      case KEYS.END:\n        focusListItems.setLast(true);\n        if (ctrlKey) {\n          setScrollPosition?.('overflowEnd');\n          break;\n        }\n        setScrollPosition?.('end');\n        break;\n      case KEYS.A:\n        if (ctrlKey || metaKey) {\n          selectAll();\n          break;\n        }\n        return;\n      case KEYS.F:\n        if (ctrlKey || metaKey) {\n          onCtrlF();\n          break;\n        }\n        return;\n      default:\n        return; // don't stop propagation since we want to outsource keydown to other handlers.\n    }\n    if (elementToFocus) {\n      elementToFocus.focus();\n    }\n    event.preventDefault();\n    event.stopPropagation();\n  };\n  return handleKeyDown;\n}\n","import KEYS from '../../../../keys';\n\n// Find next item index to focus in the dom element list on key up and key down\nconst findNextItemIndex = ({ rowIndex, columnIndex, rowCount, columnCount, layoutOrder, keyCode, numCells }) => {\n  const getNumCellsInColumn = (colIdx) => {\n    let remain;\n    if (layoutOrder === 'row') {\n      remain = numCells % columnCount;\n      return colIdx < remain ? rowCount : rowCount - 1;\n    }\n    remain = numCells % rowCount;\n    return colIdx < columnCount - 1 ? rowCount : remain;\n  };\n\n  let nextRowIndex = rowIndex;\n  let nextColumnIndex = columnIndex;\n  if (keyCode === KEYS.ARROW_DOWN) {\n    if (rowIndex >= getNumCellsInColumn(columnIndex) - 1) {\n      if (columnIndex === columnCount - 1) return -1;\n      nextRowIndex = 0;\n      nextColumnIndex = columnIndex + 1;\n    } else {\n      nextRowIndex = rowIndex + 1;\n    }\n  } else if (rowIndex === 0) {\n    if (columnIndex === 0) return -1;\n    nextRowIndex = getNumCellsInColumn(columnIndex - 1) - 1;\n    nextColumnIndex = columnIndex - 1;\n  } else {\n    nextRowIndex = rowIndex - 1;\n  }\n\n  // Convert from row, column indices to the element index in the dom element list\n  if (layoutOrder === 'row') {\n    return nextRowIndex * columnCount + nextColumnIndex;\n  }\n\n  // The dom element list is always row order. If the layout is column order then the conversion is not straight forward\n  const remain = numCells % rowCount;\n  if (remain === 0 || nextRowIndex < remain) return nextRowIndex * columnCount + nextColumnIndex;\n  return (nextRowIndex - remain) * (columnCount - 1) + nextColumnIndex + remain * columnCount;\n};\n\nexport default findNextItemIndex;\n","export default function getCellFromPages({ pages, cellIndex }) {\n  let c;\n  const page = pages.filter((p) => p.qArea.qTop <= cellIndex && cellIndex < p.qArea.qTop + p.qArea.qHeight)[0];\n  if (page) {\n    const area = page.qArea;\n    if (cellIndex >= area.qTop && cellIndex < area.qTop + area.qHeight) {\n      [c] = page.qMatrix[cellIndex - area.qTop];\n    }\n  }\n  return c;\n}\n","export default function getValueTextAlign({ direction, cell, textAlign }) {\n  const isNumeric = !['NaN', undefined].includes(cell?.qNum);\n  let valueTextAlign;\n  const isAutoTextAlign = !textAlign || textAlign.auto;\n  const dirToTextAlignMap = {\n    rtl: 'right',\n    ltr: 'left',\n  };\n\n  if (isAutoTextAlign) {\n    if (!isNumeric) {\n      valueTextAlign = dirToTextAlignMap[direction];\n    } else {\n      valueTextAlign = direction === 'rtl' ? 'left' : 'right';\n    }\n  } else {\n    valueTextAlign = textAlign?.align || 'left';\n  }\n  const ALLOWED_OPTIONS = ['left', 'center', 'right'];\n  return ALLOWED_OPTIONS.includes(valueTextAlign) ? valueTextAlign : 'left';\n}\n","/**\n * @ignore\n * @interface Range\n * @property {number} qCharPos The (absolute) index where the highlighted range starts.\n * @property {number} qCharCount The length of the sub-string (starting from qChartPos) that should be highlighted.\n */\n\n/**\n * @ignore\n * @interface Segment\n * @property {string} segment The sub-string/segment cut out from the original label.\n * @property {boolean} highlighted A flag which tells whether the segment should be highlighted or not.\n */\n\n/**\n * @ignore\n * @param {string} label The label we want to create segments out of.\n * @param {Range} range The indexes which define how to create the segments.\n * @param {number=} [startIndex] An optional index which tells where we want to start the first segment from\n *   (only relevant for creating the first unhighlighted segment of a string/sub-string).\n * @returns {Segment[]} An array of segments.\n */\nfunction getSegmentsFromRange(label, range, startIndex = 0) {\n  const { qCharPos, qCharCount } = range;\n  const segments = [];\n  if (qCharPos > startIndex) {\n    // Create a non-highlighted section before the highighted section.\n    segments.push([label.slice(startIndex, qCharPos), false]);\n  }\n\n  // Highlighted segment.\n  segments.push([label.slice(qCharPos, qCharPos + qCharCount), true]);\n\n  return segments;\n}\n\n/**\n * @ignore\n * @param {string} label The label we want to create segments out of.\n * @param {Range[]} ranges The ranges defining indices for cutting the string into segments.\n * @returns {Segment[]} An array of segments, covering the entire string label.\n */\nexport default function getSegmentsFromRanges(label, ranges) {\n  if (!ranges.length) {\n    return [];\n  }\n  const labels = ranges.reduce((acc, curr, ix) => {\n    const startIndex = ix === 0 ? 0 : ranges[ix - 1].qCharPos + ranges[ix - 1].qCharCount;\n    acc.push(...getSegmentsFromRange(label, curr, startIndex));\n\n    // Last non highlighted segment\n    const isLastRange = ix === ranges.length - 1;\n    const endIndex = ranges[ix].qCharPos + ranges[ix].qCharCount;\n    if (isLastRange && endIndex < label.length) {\n      acc.push([label.slice(endIndex), false]);\n    }\n    return acc;\n  }, []);\n\n  return labels;\n}\n","var safeIsNaN = Number.isNaN ||\n    function ponyfill(value) {\n        return typeof value === 'number' && value !== value;\n    };\nfunction isEqual(first, second) {\n    if (first === second) {\n        return true;\n    }\n    if (safeIsNaN(first) && safeIsNaN(second)) {\n        return true;\n    }\n    return false;\n}\nfunction areInputsEqual(newInputs, lastInputs) {\n    if (newInputs.length !== lastInputs.length) {\n        return false;\n    }\n    for (var i = 0; i < newInputs.length; i++) {\n        if (!isEqual(newInputs[i], lastInputs[i])) {\n            return false;\n        }\n    }\n    return true;\n}\n\nfunction memoizeOne(resultFn, isEqual) {\n    if (isEqual === void 0) { isEqual = areInputsEqual; }\n    var lastThis;\n    var lastArgs = [];\n    var lastResult;\n    var calledOnce = false;\n    function memoized() {\n        var newArgs = [];\n        for (var _i = 0; _i < arguments.length; _i++) {\n            newArgs[_i] = arguments[_i];\n        }\n        if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n            return lastResult;\n        }\n        lastResult = resultFn.apply(this, newArgs);\n        calledOnce = true;\n        lastThis = this;\n        lastArgs = newArgs;\n        return lastResult;\n    }\n    return memoized;\n}\n\nexport default memoizeOne;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport memoizeOne from 'memoize-one';\nimport { createElement, PureComponent } from 'react';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\n\n// Animation frame based implementation of setTimeout.\n// Inspired by Joe Lambert, https://gist.github.com/joelambert/1002116#file-requesttimeout-js\nvar hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';\nvar now = hasNativePerformanceNow ? function () {\n  return performance.now();\n} : function () {\n  return Date.now();\n};\nfunction cancelTimeout(timeoutID) {\n  cancelAnimationFrame(timeoutID.id);\n}\nfunction requestTimeout(callback, delay) {\n  var start = now();\n\n  function tick() {\n    if (now() - start >= delay) {\n      callback.call(null);\n    } else {\n      timeoutID.id = requestAnimationFrame(tick);\n    }\n  }\n\n  var timeoutID = {\n    id: requestAnimationFrame(tick)\n  };\n  return timeoutID;\n}\n\nvar size = -1; // This utility copied from \"dom-helpers\" package.\n\nfunction getScrollbarSize(recalculate) {\n  if (recalculate === void 0) {\n    recalculate = false;\n  }\n\n  if (size === -1 || recalculate) {\n    var div = document.createElement('div');\n    var style = div.style;\n    style.width = '50px';\n    style.height = '50px';\n    style.overflow = 'scroll';\n    document.body.appendChild(div);\n    size = div.offsetWidth - div.clientWidth;\n    document.body.removeChild(div);\n  }\n\n  return size;\n}\nvar cachedRTLResult = null; // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n// Chrome does not seem to adhere; its scrollLeft values are positive (measured relative to the left).\n// Safari's elastic bounce makes detecting this even more complicated wrt potential false positives.\n// The safest way to check this is to intentionally set a negative offset,\n// and then verify that the subsequent \"scroll\" event matches the negative offset.\n// If it does not match, then we can assume a non-standard RTL scroll implementation.\n\nfunction getRTLOffsetType(recalculate) {\n  if (recalculate === void 0) {\n    recalculate = false;\n  }\n\n  if (cachedRTLResult === null || recalculate) {\n    var outerDiv = document.createElement('div');\n    var outerStyle = outerDiv.style;\n    outerStyle.width = '50px';\n    outerStyle.height = '50px';\n    outerStyle.overflow = 'scroll';\n    outerStyle.direction = 'rtl';\n    var innerDiv = document.createElement('div');\n    var innerStyle = innerDiv.style;\n    innerStyle.width = '100px';\n    innerStyle.height = '100px';\n    outerDiv.appendChild(innerDiv);\n    document.body.appendChild(outerDiv);\n\n    if (outerDiv.scrollLeft > 0) {\n      cachedRTLResult = 'positive-descending';\n    } else {\n      outerDiv.scrollLeft = 1;\n\n      if (outerDiv.scrollLeft === 0) {\n        cachedRTLResult = 'negative';\n      } else {\n        cachedRTLResult = 'positive-ascending';\n      }\n    }\n\n    document.body.removeChild(outerDiv);\n    return cachedRTLResult;\n  }\n\n  return cachedRTLResult;\n}\n\nvar IS_SCROLLING_DEBOUNCE_INTERVAL = 150;\n\nvar defaultItemKey = function defaultItemKey(_ref) {\n  var columnIndex = _ref.columnIndex,\n      data = _ref.data,\n      rowIndex = _ref.rowIndex;\n  return rowIndex + \":\" + columnIndex;\n}; // In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\n\n\nvar devWarningsOverscanCount = null;\nvar devWarningsOverscanRowsColumnsCount = null;\nvar devWarningsTagName = null;\n\nif (process.env.NODE_ENV !== 'production') {\n  if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {\n    devWarningsOverscanCount = /*#__PURE__*/new WeakSet();\n    devWarningsOverscanRowsColumnsCount = /*#__PURE__*/new WeakSet();\n    devWarningsTagName = /*#__PURE__*/new WeakSet();\n  }\n}\n\nfunction createGridComponent(_ref2) {\n  var _class;\n\n  var getColumnOffset = _ref2.getColumnOffset,\n      getColumnStartIndexForOffset = _ref2.getColumnStartIndexForOffset,\n      getColumnStopIndexForStartIndex = _ref2.getColumnStopIndexForStartIndex,\n      getColumnWidth = _ref2.getColumnWidth,\n      getEstimatedTotalHeight = _ref2.getEstimatedTotalHeight,\n      getEstimatedTotalWidth = _ref2.getEstimatedTotalWidth,\n      getOffsetForColumnAndAlignment = _ref2.getOffsetForColumnAndAlignment,\n      getOffsetForRowAndAlignment = _ref2.getOffsetForRowAndAlignment,\n      getRowHeight = _ref2.getRowHeight,\n      getRowOffset = _ref2.getRowOffset,\n      getRowStartIndexForOffset = _ref2.getRowStartIndexForOffset,\n      getRowStopIndexForStartIndex = _ref2.getRowStopIndexForStartIndex,\n      initInstanceProps = _ref2.initInstanceProps,\n      shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange,\n      validateProps = _ref2.validateProps;\n  return _class = /*#__PURE__*/function (_PureComponent) {\n    _inheritsLoose(Grid, _PureComponent);\n\n    // Always use explicit constructor for React components.\n    // It produces less code after transpilation. (#26)\n    // eslint-disable-next-line no-useless-constructor\n    function Grid(props) {\n      var _this;\n\n      _this = _PureComponent.call(this, props) || this;\n      _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));\n      _this._resetIsScrollingTimeoutId = null;\n      _this._outerRef = void 0;\n      _this.state = {\n        instance: _assertThisInitialized(_this),\n        isScrolling: false,\n        horizontalScrollDirection: 'forward',\n        scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0,\n        scrollTop: typeof _this.props.initialScrollTop === 'number' ? _this.props.initialScrollTop : 0,\n        scrollUpdateWasRequested: false,\n        verticalScrollDirection: 'forward'\n      };\n      _this._callOnItemsRendered = void 0;\n      _this._callOnItemsRendered = memoizeOne(function (overscanColumnStartIndex, overscanColumnStopIndex, overscanRowStartIndex, overscanRowStopIndex, visibleColumnStartIndex, visibleColumnStopIndex, visibleRowStartIndex, visibleRowStopIndex) {\n        return _this.props.onItemsRendered({\n          overscanColumnStartIndex: overscanColumnStartIndex,\n          overscanColumnStopIndex: overscanColumnStopIndex,\n          overscanRowStartIndex: overscanRowStartIndex,\n          overscanRowStopIndex: overscanRowStopIndex,\n          visibleColumnStartIndex: visibleColumnStartIndex,\n          visibleColumnStopIndex: visibleColumnStopIndex,\n          visibleRowStartIndex: visibleRowStartIndex,\n          visibleRowStopIndex: visibleRowStopIndex\n        });\n      });\n      _this._callOnScroll = void 0;\n      _this._callOnScroll = memoizeOne(function (scrollLeft, scrollTop, horizontalScrollDirection, verticalScrollDirection, scrollUpdateWasRequested) {\n        return _this.props.onScroll({\n          horizontalScrollDirection: horizontalScrollDirection,\n          scrollLeft: scrollLeft,\n          scrollTop: scrollTop,\n          verticalScrollDirection: verticalScrollDirection,\n          scrollUpdateWasRequested: scrollUpdateWasRequested\n        });\n      });\n      _this._getItemStyle = void 0;\n\n      _this._getItemStyle = function (rowIndex, columnIndex) {\n        var _this$props = _this.props,\n            columnWidth = _this$props.columnWidth,\n            direction = _this$props.direction,\n            rowHeight = _this$props.rowHeight;\n\n        var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && columnWidth, shouldResetStyleCacheOnItemSizeChange && direction, shouldResetStyleCacheOnItemSizeChange && rowHeight);\n\n        var key = rowIndex + \":\" + columnIndex;\n        var style;\n\n        if (itemStyleCache.hasOwnProperty(key)) {\n          style = itemStyleCache[key];\n        } else {\n          var _offset = getColumnOffset(_this.props, columnIndex, _this._instanceProps);\n\n          var isRtl = direction === 'rtl';\n          itemStyleCache[key] = style = {\n            position: 'absolute',\n            left: isRtl ? undefined : _offset,\n            right: isRtl ? _offset : undefined,\n            top: getRowOffset(_this.props, rowIndex, _this._instanceProps),\n            height: getRowHeight(_this.props, rowIndex, _this._instanceProps),\n            width: getColumnWidth(_this.props, columnIndex, _this._instanceProps)\n          };\n        }\n\n        return style;\n      };\n\n      _this._getItemStyleCache = void 0;\n      _this._getItemStyleCache = memoizeOne(function (_, __, ___) {\n        return {};\n      });\n\n      _this._onScroll = function (event) {\n        var _event$currentTarget = event.currentTarget,\n            clientHeight = _event$currentTarget.clientHeight,\n            clientWidth = _event$currentTarget.clientWidth,\n            scrollLeft = _event$currentTarget.scrollLeft,\n            scrollTop = _event$currentTarget.scrollTop,\n            scrollHeight = _event$currentTarget.scrollHeight,\n            scrollWidth = _event$currentTarget.scrollWidth;\n\n        _this.setState(function (prevState) {\n          if (prevState.scrollLeft === scrollLeft && prevState.scrollTop === scrollTop) {\n            // Scroll position may have been updated by cDM/cDU,\n            // In which case we don't need to trigger another render,\n            // And we don't want to update state.isScrolling.\n            return null;\n          }\n\n          var direction = _this.props.direction; // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n          // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n          // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n          // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n\n          var calculatedScrollLeft = scrollLeft;\n\n          if (direction === 'rtl') {\n            switch (getRTLOffsetType()) {\n              case 'negative':\n                calculatedScrollLeft = -scrollLeft;\n                break;\n\n              case 'positive-descending':\n                calculatedScrollLeft = scrollWidth - clientWidth - scrollLeft;\n                break;\n            }\n          } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n          calculatedScrollLeft = Math.max(0, Math.min(calculatedScrollLeft, scrollWidth - clientWidth));\n          var calculatedScrollTop = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));\n          return {\n            isScrolling: true,\n            horizontalScrollDirection: prevState.scrollLeft < scrollLeft ? 'forward' : 'backward',\n            scrollLeft: calculatedScrollLeft,\n            scrollTop: calculatedScrollTop,\n            verticalScrollDirection: prevState.scrollTop < scrollTop ? 'forward' : 'backward',\n            scrollUpdateWasRequested: false\n          };\n        }, _this._resetIsScrollingDebounced);\n      };\n\n      _this._outerRefSetter = function (ref) {\n        var outerRef = _this.props.outerRef;\n        _this._outerRef = ref;\n\n        if (typeof outerRef === 'function') {\n          outerRef(ref);\n        } else if (outerRef != null && typeof outerRef === 'object' && outerRef.hasOwnProperty('current')) {\n          outerRef.current = ref;\n        }\n      };\n\n      _this._resetIsScrollingDebounced = function () {\n        if (_this._resetIsScrollingTimeoutId !== null) {\n          cancelTimeout(_this._resetIsScrollingTimeoutId);\n        }\n\n        _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL);\n      };\n\n      _this._resetIsScrolling = function () {\n        _this._resetIsScrollingTimeoutId = null;\n\n        _this.setState({\n          isScrolling: false\n        }, function () {\n          // Clear style cache after state update has been committed.\n          // This way we don't break pure sCU for items that don't use isScrolling param.\n          _this._getItemStyleCache(-1);\n        });\n      };\n\n      return _this;\n    }\n\n    Grid.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n      validateSharedProps(nextProps, prevState);\n      validateProps(nextProps);\n      return null;\n    };\n\n    var _proto = Grid.prototype;\n\n    _proto.scrollTo = function scrollTo(_ref3) {\n      var scrollLeft = _ref3.scrollLeft,\n          scrollTop = _ref3.scrollTop;\n\n      if (scrollLeft !== undefined) {\n        scrollLeft = Math.max(0, scrollLeft);\n      }\n\n      if (scrollTop !== undefined) {\n        scrollTop = Math.max(0, scrollTop);\n      }\n\n      this.setState(function (prevState) {\n        if (scrollLeft === undefined) {\n          scrollLeft = prevState.scrollLeft;\n        }\n\n        if (scrollTop === undefined) {\n          scrollTop = prevState.scrollTop;\n        }\n\n        if (prevState.scrollLeft === scrollLeft && prevState.scrollTop === scrollTop) {\n          return null;\n        }\n\n        return {\n          horizontalScrollDirection: prevState.scrollLeft < scrollLeft ? 'forward' : 'backward',\n          scrollLeft: scrollLeft,\n          scrollTop: scrollTop,\n          scrollUpdateWasRequested: true,\n          verticalScrollDirection: prevState.scrollTop < scrollTop ? 'forward' : 'backward'\n        };\n      }, this._resetIsScrollingDebounced);\n    };\n\n    _proto.scrollToItem = function scrollToItem(_ref4) {\n      var _ref4$align = _ref4.align,\n          align = _ref4$align === void 0 ? 'auto' : _ref4$align,\n          columnIndex = _ref4.columnIndex,\n          rowIndex = _ref4.rowIndex;\n      var _this$props2 = this.props,\n          columnCount = _this$props2.columnCount,\n          height = _this$props2.height,\n          rowCount = _this$props2.rowCount,\n          width = _this$props2.width;\n      var _this$state = this.state,\n          scrollLeft = _this$state.scrollLeft,\n          scrollTop = _this$state.scrollTop;\n      var scrollbarSize = getScrollbarSize();\n\n      if (columnIndex !== undefined) {\n        columnIndex = Math.max(0, Math.min(columnIndex, columnCount - 1));\n      }\n\n      if (rowIndex !== undefined) {\n        rowIndex = Math.max(0, Math.min(rowIndex, rowCount - 1));\n      }\n\n      var estimatedTotalHeight = getEstimatedTotalHeight(this.props, this._instanceProps);\n      var estimatedTotalWidth = getEstimatedTotalWidth(this.props, this._instanceProps); // The scrollbar size should be considered when scrolling an item into view,\n      // to ensure it's fully visible.\n      // But we only need to account for its size when it's actually visible.\n\n      var horizontalScrollbarSize = estimatedTotalWidth > width ? scrollbarSize : 0;\n      var verticalScrollbarSize = estimatedTotalHeight > height ? scrollbarSize : 0;\n      this.scrollTo({\n        scrollLeft: columnIndex !== undefined ? getOffsetForColumnAndAlignment(this.props, columnIndex, align, scrollLeft, this._instanceProps, verticalScrollbarSize) : scrollLeft,\n        scrollTop: rowIndex !== undefined ? getOffsetForRowAndAlignment(this.props, rowIndex, align, scrollTop, this._instanceProps, horizontalScrollbarSize) : scrollTop\n      });\n    };\n\n    _proto.componentDidMount = function componentDidMount() {\n      var _this$props3 = this.props,\n          initialScrollLeft = _this$props3.initialScrollLeft,\n          initialScrollTop = _this$props3.initialScrollTop;\n\n      if (this._outerRef != null) {\n        var outerRef = this._outerRef;\n\n        if (typeof initialScrollLeft === 'number') {\n          outerRef.scrollLeft = initialScrollLeft;\n        }\n\n        if (typeof initialScrollTop === 'number') {\n          outerRef.scrollTop = initialScrollTop;\n        }\n      }\n\n      this._callPropsCallbacks();\n    };\n\n    _proto.componentDidUpdate = function componentDidUpdate() {\n      var direction = this.props.direction;\n      var _this$state2 = this.state,\n          scrollLeft = _this$state2.scrollLeft,\n          scrollTop = _this$state2.scrollTop,\n          scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;\n\n      if (scrollUpdateWasRequested && this._outerRef != null) {\n        // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n        // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n        // So we need to determine which browser behavior we're dealing with, and mimic it.\n        var outerRef = this._outerRef;\n\n        if (direction === 'rtl') {\n          switch (getRTLOffsetType()) {\n            case 'negative':\n              outerRef.scrollLeft = -scrollLeft;\n              break;\n\n            case 'positive-ascending':\n              outerRef.scrollLeft = scrollLeft;\n              break;\n\n            default:\n              var clientWidth = outerRef.clientWidth,\n                  scrollWidth = outerRef.scrollWidth;\n              outerRef.scrollLeft = scrollWidth - clientWidth - scrollLeft;\n              break;\n          }\n        } else {\n          outerRef.scrollLeft = Math.max(0, scrollLeft);\n        }\n\n        outerRef.scrollTop = Math.max(0, scrollTop);\n      }\n\n      this._callPropsCallbacks();\n    };\n\n    _proto.componentWillUnmount = function componentWillUnmount() {\n      if (this._resetIsScrollingTimeoutId !== null) {\n        cancelTimeout(this._resetIsScrollingTimeoutId);\n      }\n    };\n\n    _proto.render = function render() {\n      var _this$props4 = this.props,\n          children = _this$props4.children,\n          className = _this$props4.className,\n          columnCount = _this$props4.columnCount,\n          direction = _this$props4.direction,\n          height = _this$props4.height,\n          innerRef = _this$props4.innerRef,\n          innerElementType = _this$props4.innerElementType,\n          innerTagName = _this$props4.innerTagName,\n          itemData = _this$props4.itemData,\n          _this$props4$itemKey = _this$props4.itemKey,\n          itemKey = _this$props4$itemKey === void 0 ? defaultItemKey : _this$props4$itemKey,\n          outerElementType = _this$props4.outerElementType,\n          outerTagName = _this$props4.outerTagName,\n          rowCount = _this$props4.rowCount,\n          style = _this$props4.style,\n          useIsScrolling = _this$props4.useIsScrolling,\n          width = _this$props4.width;\n      var isScrolling = this.state.isScrolling;\n\n      var _this$_getHorizontalR = this._getHorizontalRangeToRender(),\n          columnStartIndex = _this$_getHorizontalR[0],\n          columnStopIndex = _this$_getHorizontalR[1];\n\n      var _this$_getVerticalRan = this._getVerticalRangeToRender(),\n          rowStartIndex = _this$_getVerticalRan[0],\n          rowStopIndex = _this$_getVerticalRan[1];\n\n      var items = [];\n\n      if (columnCount > 0 && rowCount) {\n        for (var _rowIndex = rowStartIndex; _rowIndex <= rowStopIndex; _rowIndex++) {\n          for (var _columnIndex = columnStartIndex; _columnIndex <= columnStopIndex; _columnIndex++) {\n            items.push(createElement(children, {\n              columnIndex: _columnIndex,\n              data: itemData,\n              isScrolling: useIsScrolling ? isScrolling : undefined,\n              key: itemKey({\n                columnIndex: _columnIndex,\n                data: itemData,\n                rowIndex: _rowIndex\n              }),\n              rowIndex: _rowIndex,\n              style: this._getItemStyle(_rowIndex, _columnIndex)\n            }));\n          }\n        }\n      } // Read this value AFTER items have been created,\n      // So their actual sizes (if variable) are taken into consideration.\n\n\n      var estimatedTotalHeight = getEstimatedTotalHeight(this.props, this._instanceProps);\n      var estimatedTotalWidth = getEstimatedTotalWidth(this.props, this._instanceProps);\n      return createElement(outerElementType || outerTagName || 'div', {\n        className: className,\n        onScroll: this._onScroll,\n        ref: this._outerRefSetter,\n        style: _extends({\n          position: 'relative',\n          height: height,\n          width: width,\n          overflow: 'auto',\n          WebkitOverflowScrolling: 'touch',\n          willChange: 'transform',\n          direction: direction\n        }, style)\n      }, createElement(innerElementType || innerTagName || 'div', {\n        children: items,\n        ref: innerRef,\n        style: {\n          height: estimatedTotalHeight,\n          pointerEvents: isScrolling ? 'none' : undefined,\n          width: estimatedTotalWidth\n        }\n      }));\n    };\n\n    _proto._callPropsCallbacks = function _callPropsCallbacks() {\n      var _this$props5 = this.props,\n          columnCount = _this$props5.columnCount,\n          onItemsRendered = _this$props5.onItemsRendered,\n          onScroll = _this$props5.onScroll,\n          rowCount = _this$props5.rowCount;\n\n      if (typeof onItemsRendered === 'function') {\n        if (columnCount > 0 && rowCount > 0) {\n          var _this$_getHorizontalR2 = this._getHorizontalRangeToRender(),\n              _overscanColumnStartIndex = _this$_getHorizontalR2[0],\n              _overscanColumnStopIndex = _this$_getHorizontalR2[1],\n              _visibleColumnStartIndex = _this$_getHorizontalR2[2],\n              _visibleColumnStopIndex = _this$_getHorizontalR2[3];\n\n          var _this$_getVerticalRan2 = this._getVerticalRangeToRender(),\n              _overscanRowStartIndex = _this$_getVerticalRan2[0],\n              _overscanRowStopIndex = _this$_getVerticalRan2[1],\n              _visibleRowStartIndex = _this$_getVerticalRan2[2],\n              _visibleRowStopIndex = _this$_getVerticalRan2[3];\n\n          this._callOnItemsRendered(_overscanColumnStartIndex, _overscanColumnStopIndex, _overscanRowStartIndex, _overscanRowStopIndex, _visibleColumnStartIndex, _visibleColumnStopIndex, _visibleRowStartIndex, _visibleRowStopIndex);\n        }\n      }\n\n      if (typeof onScroll === 'function') {\n        var _this$state3 = this.state,\n            _horizontalScrollDirection = _this$state3.horizontalScrollDirection,\n            _scrollLeft = _this$state3.scrollLeft,\n            _scrollTop = _this$state3.scrollTop,\n            _scrollUpdateWasRequested = _this$state3.scrollUpdateWasRequested,\n            _verticalScrollDirection = _this$state3.verticalScrollDirection;\n\n        this._callOnScroll(_scrollLeft, _scrollTop, _horizontalScrollDirection, _verticalScrollDirection, _scrollUpdateWasRequested);\n      }\n    } // Lazily create and cache item styles while scrolling,\n    // So that pure component sCU will prevent re-renders.\n    // We maintain this cache, and pass a style prop rather than index,\n    // So that List can clear cached styles and force item re-render if necessary.\n    ;\n\n    _proto._getHorizontalRangeToRender = function _getHorizontalRangeToRender() {\n      var _this$props6 = this.props,\n          columnCount = _this$props6.columnCount,\n          overscanColumnCount = _this$props6.overscanColumnCount,\n          overscanColumnsCount = _this$props6.overscanColumnsCount,\n          overscanCount = _this$props6.overscanCount,\n          rowCount = _this$props6.rowCount;\n      var _this$state4 = this.state,\n          horizontalScrollDirection = _this$state4.horizontalScrollDirection,\n          isScrolling = _this$state4.isScrolling,\n          scrollLeft = _this$state4.scrollLeft;\n      var overscanCountResolved = overscanColumnCount || overscanColumnsCount || overscanCount || 1;\n\n      if (columnCount === 0 || rowCount === 0) {\n        return [0, 0, 0, 0];\n      }\n\n      var startIndex = getColumnStartIndexForOffset(this.props, scrollLeft, this._instanceProps);\n      var stopIndex = getColumnStopIndexForStartIndex(this.props, startIndex, scrollLeft, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n      // If there isn't at least one extra item, tab loops back around.\n\n      var overscanBackward = !isScrolling || horizontalScrollDirection === 'backward' ? Math.max(1, overscanCountResolved) : 1;\n      var overscanForward = !isScrolling || horizontalScrollDirection === 'forward' ? Math.max(1, overscanCountResolved) : 1;\n      return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(columnCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n    };\n\n    _proto._getVerticalRangeToRender = function _getVerticalRangeToRender() {\n      var _this$props7 = this.props,\n          columnCount = _this$props7.columnCount,\n          overscanCount = _this$props7.overscanCount,\n          overscanRowCount = _this$props7.overscanRowCount,\n          overscanRowsCount = _this$props7.overscanRowsCount,\n          rowCount = _this$props7.rowCount;\n      var _this$state5 = this.state,\n          isScrolling = _this$state5.isScrolling,\n          verticalScrollDirection = _this$state5.verticalScrollDirection,\n          scrollTop = _this$state5.scrollTop;\n      var overscanCountResolved = overscanRowCount || overscanRowsCount || overscanCount || 1;\n\n      if (columnCount === 0 || rowCount === 0) {\n        return [0, 0, 0, 0];\n      }\n\n      var startIndex = getRowStartIndexForOffset(this.props, scrollTop, this._instanceProps);\n      var stopIndex = getRowStopIndexForStartIndex(this.props, startIndex, scrollTop, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n      // If there isn't at least one extra item, tab loops back around.\n\n      var overscanBackward = !isScrolling || verticalScrollDirection === 'backward' ? Math.max(1, overscanCountResolved) : 1;\n      var overscanForward = !isScrolling || verticalScrollDirection === 'forward' ? Math.max(1, overscanCountResolved) : 1;\n      return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(rowCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n    };\n\n    return Grid;\n  }(PureComponent), _class.defaultProps = {\n    direction: 'ltr',\n    itemData: undefined,\n    useIsScrolling: false\n  }, _class;\n}\n\nvar validateSharedProps = function validateSharedProps(_ref5, _ref6) {\n  var children = _ref5.children,\n      direction = _ref5.direction,\n      height = _ref5.height,\n      innerTagName = _ref5.innerTagName,\n      outerTagName = _ref5.outerTagName,\n      overscanColumnsCount = _ref5.overscanColumnsCount,\n      overscanCount = _ref5.overscanCount,\n      overscanRowsCount = _ref5.overscanRowsCount,\n      width = _ref5.width;\n  var instance = _ref6.instance;\n\n  if (process.env.NODE_ENV !== 'production') {\n    if (typeof overscanCount === 'number') {\n      if (devWarningsOverscanCount && !devWarningsOverscanCount.has(instance)) {\n        devWarningsOverscanCount.add(instance);\n        console.warn('The overscanCount prop has been deprecated. ' + 'Please use the overscanColumnCount and overscanRowCount props instead.');\n      }\n    }\n\n    if (typeof overscanColumnsCount === 'number' || typeof overscanRowsCount === 'number') {\n      if (devWarningsOverscanRowsColumnsCount && !devWarningsOverscanRowsColumnsCount.has(instance)) {\n        devWarningsOverscanRowsColumnsCount.add(instance);\n        console.warn('The overscanColumnsCount and overscanRowsCount props have been deprecated. ' + 'Please use the overscanColumnCount and overscanRowCount props instead.');\n      }\n    }\n\n    if (innerTagName != null || outerTagName != null) {\n      if (devWarningsTagName && !devWarningsTagName.has(instance)) {\n        devWarningsTagName.add(instance);\n        console.warn('The innerTagName and outerTagName props have been deprecated. ' + 'Please use the innerElementType and outerElementType props instead.');\n      }\n    }\n\n    if (children == null) {\n      throw Error('An invalid \"children\" prop has been specified. ' + 'Value should be a React component. ' + (\"\\\"\" + (children === null ? 'null' : typeof children) + \"\\\" was specified.\"));\n    }\n\n    switch (direction) {\n      case 'ltr':\n      case 'rtl':\n        // Valid values\n        break;\n\n      default:\n        throw Error('An invalid \"direction\" prop has been specified. ' + 'Value should be either \"ltr\" or \"rtl\". ' + (\"\\\"\" + direction + \"\\\" was specified.\"));\n    }\n\n    if (typeof width !== 'number') {\n      throw Error('An invalid \"width\" prop has been specified. ' + 'Grids must specify a number for width. ' + (\"\\\"\" + (width === null ? 'null' : typeof width) + \"\\\" was specified.\"));\n    }\n\n    if (typeof height !== 'number') {\n      throw Error('An invalid \"height\" prop has been specified. ' + 'Grids must specify a number for height. ' + (\"\\\"\" + (height === null ? 'null' : typeof height) + \"\\\" was specified.\"));\n    }\n  }\n};\n\nvar DEFAULT_ESTIMATED_ITEM_SIZE = 50;\n\nvar getEstimatedTotalHeight = function getEstimatedTotalHeight(_ref, _ref2) {\n  var rowCount = _ref.rowCount;\n  var rowMetadataMap = _ref2.rowMetadataMap,\n      estimatedRowHeight = _ref2.estimatedRowHeight,\n      lastMeasuredRowIndex = _ref2.lastMeasuredRowIndex;\n  var totalSizeOfMeasuredRows = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n  // https://github.com/bvaughn/react-window/pull/138\n\n  if (lastMeasuredRowIndex >= rowCount) {\n    lastMeasuredRowIndex = rowCount - 1;\n  }\n\n  if (lastMeasuredRowIndex >= 0) {\n    var itemMetadata = rowMetadataMap[lastMeasuredRowIndex];\n    totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;\n  }\n\n  var numUnmeasuredItems = rowCount - lastMeasuredRowIndex - 1;\n  var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedRowHeight;\n  return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;\n};\n\nvar getEstimatedTotalWidth = function getEstimatedTotalWidth(_ref3, _ref4) {\n  var columnCount = _ref3.columnCount;\n  var columnMetadataMap = _ref4.columnMetadataMap,\n      estimatedColumnWidth = _ref4.estimatedColumnWidth,\n      lastMeasuredColumnIndex = _ref4.lastMeasuredColumnIndex;\n  var totalSizeOfMeasuredRows = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n  // https://github.com/bvaughn/react-window/pull/138\n\n  if (lastMeasuredColumnIndex >= columnCount) {\n    lastMeasuredColumnIndex = columnCount - 1;\n  }\n\n  if (lastMeasuredColumnIndex >= 0) {\n    var itemMetadata = columnMetadataMap[lastMeasuredColumnIndex];\n    totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;\n  }\n\n  var numUnmeasuredItems = columnCount - lastMeasuredColumnIndex - 1;\n  var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedColumnWidth;\n  return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;\n};\n\nvar getItemMetadata = function getItemMetadata(itemType, props, index, instanceProps) {\n  var itemMetadataMap, itemSize, lastMeasuredIndex;\n\n  if (itemType === 'column') {\n    itemMetadataMap = instanceProps.columnMetadataMap;\n    itemSize = props.columnWidth;\n    lastMeasuredIndex = instanceProps.lastMeasuredColumnIndex;\n  } else {\n    itemMetadataMap = instanceProps.rowMetadataMap;\n    itemSize = props.rowHeight;\n    lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;\n  }\n\n  if (index > lastMeasuredIndex) {\n    var offset = 0;\n\n    if (lastMeasuredIndex >= 0) {\n      var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n      offset = itemMetadata.offset + itemMetadata.size;\n    }\n\n    for (var i = lastMeasuredIndex + 1; i <= index; i++) {\n      var size = itemSize(i);\n      itemMetadataMap[i] = {\n        offset: offset,\n        size: size\n      };\n      offset += size;\n    }\n\n    if (itemType === 'column') {\n      instanceProps.lastMeasuredColumnIndex = index;\n    } else {\n      instanceProps.lastMeasuredRowIndex = index;\n    }\n  }\n\n  return itemMetadataMap[index];\n};\n\nvar findNearestItem = function findNearestItem(itemType, props, instanceProps, offset) {\n  var itemMetadataMap, lastMeasuredIndex;\n\n  if (itemType === 'column') {\n    itemMetadataMap = instanceProps.columnMetadataMap;\n    lastMeasuredIndex = instanceProps.lastMeasuredColumnIndex;\n  } else {\n    itemMetadataMap = instanceProps.rowMetadataMap;\n    lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;\n  }\n\n  var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;\n\n  if (lastMeasuredItemOffset >= offset) {\n    // If we've already measured items within this range just use a binary search as it's faster.\n    return findNearestItemBinarySearch(itemType, props, instanceProps, lastMeasuredIndex, 0, offset);\n  } else {\n    // If we haven't yet measured this high, fallback to an exponential search with an inner binary search.\n    // The exponential search avoids pre-computing sizes for the full set of items as a binary search would.\n    // The overall complexity for this approach is O(log n).\n    return findNearestItemExponentialSearch(itemType, props, instanceProps, Math.max(0, lastMeasuredIndex), offset);\n  }\n};\n\nvar findNearestItemBinarySearch = function findNearestItemBinarySearch(itemType, props, instanceProps, high, low, offset) {\n  while (low <= high) {\n    var middle = low + Math.floor((high - low) / 2);\n    var currentOffset = getItemMetadata(itemType, props, middle, instanceProps).offset;\n\n    if (currentOffset === offset) {\n      return middle;\n    } else if (currentOffset < offset) {\n      low = middle + 1;\n    } else if (currentOffset > offset) {\n      high = middle - 1;\n    }\n  }\n\n  if (low > 0) {\n    return low - 1;\n  } else {\n    return 0;\n  }\n};\n\nvar findNearestItemExponentialSearch = function findNearestItemExponentialSearch(itemType, props, instanceProps, index, offset) {\n  var itemCount = itemType === 'column' ? props.columnCount : props.rowCount;\n  var interval = 1;\n\n  while (index < itemCount && getItemMetadata(itemType, props, index, instanceProps).offset < offset) {\n    index += interval;\n    interval *= 2;\n  }\n\n  return findNearestItemBinarySearch(itemType, props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);\n};\n\nvar getOffsetForIndexAndAlignment = function getOffsetForIndexAndAlignment(itemType, props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n  var size = itemType === 'column' ? props.width : props.height;\n  var itemMetadata = getItemMetadata(itemType, props, index, instanceProps); // Get estimated total size after ItemMetadata is computed,\n  // To ensure it reflects actual measurements instead of just estimates.\n\n  var estimatedTotalSize = itemType === 'column' ? getEstimatedTotalWidth(props, instanceProps) : getEstimatedTotalHeight(props, instanceProps);\n  var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));\n  var minOffset = Math.max(0, itemMetadata.offset - size + scrollbarSize + itemMetadata.size);\n\n  if (align === 'smart') {\n    if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n      align = 'auto';\n    } else {\n      align = 'center';\n    }\n  }\n\n  switch (align) {\n    case 'start':\n      return maxOffset;\n\n    case 'end':\n      return minOffset;\n\n    case 'center':\n      return Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n    case 'auto':\n    default:\n      if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n        return scrollOffset;\n      } else if (minOffset > maxOffset) {\n        // Because we only take into account the scrollbar size when calculating minOffset\n        // this value can be larger than maxOffset when at the end of the list\n        return minOffset;\n      } else if (scrollOffset < minOffset) {\n        return minOffset;\n      } else {\n        return maxOffset;\n      }\n\n  }\n};\n\nvar VariableSizeGrid = /*#__PURE__*/createGridComponent({\n  getColumnOffset: function getColumnOffset(props, index, instanceProps) {\n    return getItemMetadata('column', props, index, instanceProps).offset;\n  },\n  getColumnStartIndexForOffset: function getColumnStartIndexForOffset(props, scrollLeft, instanceProps) {\n    return findNearestItem('column', props, instanceProps, scrollLeft);\n  },\n  getColumnStopIndexForStartIndex: function getColumnStopIndexForStartIndex(props, startIndex, scrollLeft, instanceProps) {\n    var columnCount = props.columnCount,\n        width = props.width;\n    var itemMetadata = getItemMetadata('column', props, startIndex, instanceProps);\n    var maxOffset = scrollLeft + width;\n    var offset = itemMetadata.offset + itemMetadata.size;\n    var stopIndex = startIndex;\n\n    while (stopIndex < columnCount - 1 && offset < maxOffset) {\n      stopIndex++;\n      offset += getItemMetadata('column', props, stopIndex, instanceProps).size;\n    }\n\n    return stopIndex;\n  },\n  getColumnWidth: function getColumnWidth(props, index, instanceProps) {\n    return instanceProps.columnMetadataMap[index].size;\n  },\n  getEstimatedTotalHeight: getEstimatedTotalHeight,\n  getEstimatedTotalWidth: getEstimatedTotalWidth,\n  getOffsetForColumnAndAlignment: function getOffsetForColumnAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n    return getOffsetForIndexAndAlignment('column', props, index, align, scrollOffset, instanceProps, scrollbarSize);\n  },\n  getOffsetForRowAndAlignment: function getOffsetForRowAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n    return getOffsetForIndexAndAlignment('row', props, index, align, scrollOffset, instanceProps, scrollbarSize);\n  },\n  getRowOffset: function getRowOffset(props, index, instanceProps) {\n    return getItemMetadata('row', props, index, instanceProps).offset;\n  },\n  getRowHeight: function getRowHeight(props, index, instanceProps) {\n    return instanceProps.rowMetadataMap[index].size;\n  },\n  getRowStartIndexForOffset: function getRowStartIndexForOffset(props, scrollTop, instanceProps) {\n    return findNearestItem('row', props, instanceProps, scrollTop);\n  },\n  getRowStopIndexForStartIndex: function getRowStopIndexForStartIndex(props, startIndex, scrollTop, instanceProps) {\n    var rowCount = props.rowCount,\n        height = props.height;\n    var itemMetadata = getItemMetadata('row', props, startIndex, instanceProps);\n    var maxOffset = scrollTop + height;\n    var offset = itemMetadata.offset + itemMetadata.size;\n    var stopIndex = startIndex;\n\n    while (stopIndex < rowCount - 1 && offset < maxOffset) {\n      stopIndex++;\n      offset += getItemMetadata('row', props, stopIndex, instanceProps).size;\n    }\n\n    return stopIndex;\n  },\n  initInstanceProps: function initInstanceProps(props, instance) {\n    var _ref5 = props,\n        estimatedColumnWidth = _ref5.estimatedColumnWidth,\n        estimatedRowHeight = _ref5.estimatedRowHeight;\n    var instanceProps = {\n      columnMetadataMap: {},\n      estimatedColumnWidth: estimatedColumnWidth || DEFAULT_ESTIMATED_ITEM_SIZE,\n      estimatedRowHeight: estimatedRowHeight || DEFAULT_ESTIMATED_ITEM_SIZE,\n      lastMeasuredColumnIndex: -1,\n      lastMeasuredRowIndex: -1,\n      rowMetadataMap: {}\n    };\n\n    instance.resetAfterColumnIndex = function (columnIndex, shouldForceUpdate) {\n      if (shouldForceUpdate === void 0) {\n        shouldForceUpdate = true;\n      }\n\n      instance.resetAfterIndices({\n        columnIndex: columnIndex,\n        shouldForceUpdate: shouldForceUpdate\n      });\n    };\n\n    instance.resetAfterRowIndex = function (rowIndex, shouldForceUpdate) {\n      if (shouldForceUpdate === void 0) {\n        shouldForceUpdate = true;\n      }\n\n      instance.resetAfterIndices({\n        rowIndex: rowIndex,\n        shouldForceUpdate: shouldForceUpdate\n      });\n    };\n\n    instance.resetAfterIndices = function (_ref6) {\n      var columnIndex = _ref6.columnIndex,\n          rowIndex = _ref6.rowIndex,\n          _ref6$shouldForceUpda = _ref6.shouldForceUpdate,\n          shouldForceUpdate = _ref6$shouldForceUpda === void 0 ? true : _ref6$shouldForceUpda;\n\n      if (typeof columnIndex === 'number') {\n        instanceProps.lastMeasuredColumnIndex = Math.min(instanceProps.lastMeasuredColumnIndex, columnIndex - 1);\n      }\n\n      if (typeof rowIndex === 'number') {\n        instanceProps.lastMeasuredRowIndex = Math.min(instanceProps.lastMeasuredRowIndex, rowIndex - 1);\n      } // We could potentially optimize further by only evicting styles after this index,\n      // But since styles are only cached while scrolling is in progress-\n      // It seems an unnecessary optimization.\n      // It's unlikely that resetAfterIndex() will be called while a user is scrolling.\n\n\n      instance._getItemStyleCache(-1);\n\n      if (shouldForceUpdate) {\n        instance.forceUpdate();\n      }\n    };\n\n    return instanceProps;\n  },\n  shouldResetStyleCacheOnItemSizeChange: false,\n  validateProps: function validateProps(_ref7) {\n    var columnWidth = _ref7.columnWidth,\n        rowHeight = _ref7.rowHeight;\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof columnWidth !== 'function') {\n        throw Error('An invalid \"columnWidth\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (columnWidth === null ? 'null' : typeof columnWidth) + \"\\\" was specified.\"));\n      } else if (typeof rowHeight !== 'function') {\n        throw Error('An invalid \"rowHeight\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (rowHeight === null ? 'null' : typeof rowHeight) + \"\\\" was specified.\"));\n      }\n    }\n  }\n});\n\nvar IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;\n\nvar defaultItemKey$1 = function defaultItemKey(index, data) {\n  return index;\n}; // In DEV mode, this Set helps us only log a warning once per component instance.\n// This avoids spamming the console every time a render happens.\n\n\nvar devWarningsDirection = null;\nvar devWarningsTagName$1 = null;\n\nif (process.env.NODE_ENV !== 'production') {\n  if (typeof window !== 'undefined' && typeof window.WeakSet !== 'undefined') {\n    devWarningsDirection = /*#__PURE__*/new WeakSet();\n    devWarningsTagName$1 = /*#__PURE__*/new WeakSet();\n  }\n}\n\nfunction createListComponent(_ref) {\n  var _class;\n\n  var getItemOffset = _ref.getItemOffset,\n      getEstimatedTotalSize = _ref.getEstimatedTotalSize,\n      getItemSize = _ref.getItemSize,\n      getOffsetForIndexAndAlignment = _ref.getOffsetForIndexAndAlignment,\n      getStartIndexForOffset = _ref.getStartIndexForOffset,\n      getStopIndexForStartIndex = _ref.getStopIndexForStartIndex,\n      initInstanceProps = _ref.initInstanceProps,\n      shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange,\n      validateProps = _ref.validateProps;\n  return _class = /*#__PURE__*/function (_PureComponent) {\n    _inheritsLoose(List, _PureComponent);\n\n    // Always use explicit constructor for React components.\n    // It produces less code after transpilation. (#26)\n    // eslint-disable-next-line no-useless-constructor\n    function List(props) {\n      var _this;\n\n      _this = _PureComponent.call(this, props) || this;\n      _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));\n      _this._outerRef = void 0;\n      _this._resetIsScrollingTimeoutId = null;\n      _this.state = {\n        instance: _assertThisInitialized(_this),\n        isScrolling: false,\n        scrollDirection: 'forward',\n        scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,\n        scrollUpdateWasRequested: false\n      };\n      _this._callOnItemsRendered = void 0;\n      _this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {\n        return _this.props.onItemsRendered({\n          overscanStartIndex: overscanStartIndex,\n          overscanStopIndex: overscanStopIndex,\n          visibleStartIndex: visibleStartIndex,\n          visibleStopIndex: visibleStopIndex\n        });\n      });\n      _this._callOnScroll = void 0;\n      _this._callOnScroll = memoizeOne(function (scrollDirection, scrollOffset, scrollUpdateWasRequested) {\n        return _this.props.onScroll({\n          scrollDirection: scrollDirection,\n          scrollOffset: scrollOffset,\n          scrollUpdateWasRequested: scrollUpdateWasRequested\n        });\n      });\n      _this._getItemStyle = void 0;\n\n      _this._getItemStyle = function (index) {\n        var _this$props = _this.props,\n            direction = _this$props.direction,\n            itemSize = _this$props.itemSize,\n            layout = _this$props.layout;\n\n        var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);\n\n        var style;\n\n        if (itemStyleCache.hasOwnProperty(index)) {\n          style = itemStyleCache[index];\n        } else {\n          var _offset = getItemOffset(_this.props, index, _this._instanceProps);\n\n          var size = getItemSize(_this.props, index, _this._instanceProps); // TODO Deprecate direction \"horizontal\"\n\n          var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n          var isRtl = direction === 'rtl';\n          var offsetHorizontal = isHorizontal ? _offset : 0;\n          itemStyleCache[index] = style = {\n            position: 'absolute',\n            left: isRtl ? undefined : offsetHorizontal,\n            right: isRtl ? offsetHorizontal : undefined,\n            top: !isHorizontal ? _offset : 0,\n            height: !isHorizontal ? size : '100%',\n            width: isHorizontal ? size : '100%'\n          };\n        }\n\n        return style;\n      };\n\n      _this._getItemStyleCache = void 0;\n      _this._getItemStyleCache = memoizeOne(function (_, __, ___) {\n        return {};\n      });\n\n      _this._onScrollHorizontal = function (event) {\n        var _event$currentTarget = event.currentTarget,\n            clientWidth = _event$currentTarget.clientWidth,\n            scrollLeft = _event$currentTarget.scrollLeft,\n            scrollWidth = _event$currentTarget.scrollWidth;\n\n        _this.setState(function (prevState) {\n          if (prevState.scrollOffset === scrollLeft) {\n            // Scroll position may have been updated by cDM/cDU,\n            // In which case we don't need to trigger another render,\n            // And we don't want to update state.isScrolling.\n            return null;\n          }\n\n          var direction = _this.props.direction;\n          var scrollOffset = scrollLeft;\n\n          if (direction === 'rtl') {\n            // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n            // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n            // It's also easier for this component if we convert offsets to the same format as they would be in for ltr.\n            // So the simplest solution is to determine which browser behavior we're dealing with, and convert based on it.\n            switch (getRTLOffsetType()) {\n              case 'negative':\n                scrollOffset = -scrollLeft;\n                break;\n\n              case 'positive-descending':\n                scrollOffset = scrollWidth - clientWidth - scrollLeft;\n                break;\n            }\n          } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n          scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));\n          return {\n            isScrolling: true,\n            scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n            scrollOffset: scrollOffset,\n            scrollUpdateWasRequested: false\n          };\n        }, _this._resetIsScrollingDebounced);\n      };\n\n      _this._onScrollVertical = function (event) {\n        var _event$currentTarget2 = event.currentTarget,\n            clientHeight = _event$currentTarget2.clientHeight,\n            scrollHeight = _event$currentTarget2.scrollHeight,\n            scrollTop = _event$currentTarget2.scrollTop;\n\n        _this.setState(function (prevState) {\n          if (prevState.scrollOffset === scrollTop) {\n            // Scroll position may have been updated by cDM/cDU,\n            // In which case we don't need to trigger another render,\n            // And we don't want to update state.isScrolling.\n            return null;\n          } // Prevent Safari's elastic scrolling from causing visual shaking when scrolling past bounds.\n\n\n          var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));\n          return {\n            isScrolling: true,\n            scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n            scrollOffset: scrollOffset,\n            scrollUpdateWasRequested: false\n          };\n        }, _this._resetIsScrollingDebounced);\n      };\n\n      _this._outerRefSetter = function (ref) {\n        var outerRef = _this.props.outerRef;\n        _this._outerRef = ref;\n\n        if (typeof outerRef === 'function') {\n          outerRef(ref);\n        } else if (outerRef != null && typeof outerRef === 'object' && outerRef.hasOwnProperty('current')) {\n          outerRef.current = ref;\n        }\n      };\n\n      _this._resetIsScrollingDebounced = function () {\n        if (_this._resetIsScrollingTimeoutId !== null) {\n          cancelTimeout(_this._resetIsScrollingTimeoutId);\n        }\n\n        _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);\n      };\n\n      _this._resetIsScrolling = function () {\n        _this._resetIsScrollingTimeoutId = null;\n\n        _this.setState({\n          isScrolling: false\n        }, function () {\n          // Clear style cache after state update has been committed.\n          // This way we don't break pure sCU for items that don't use isScrolling param.\n          _this._getItemStyleCache(-1, null);\n        });\n      };\n\n      return _this;\n    }\n\n    List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {\n      validateSharedProps$1(nextProps, prevState);\n      validateProps(nextProps);\n      return null;\n    };\n\n    var _proto = List.prototype;\n\n    _proto.scrollTo = function scrollTo(scrollOffset) {\n      scrollOffset = Math.max(0, scrollOffset);\n      this.setState(function (prevState) {\n        if (prevState.scrollOffset === scrollOffset) {\n          return null;\n        }\n\n        return {\n          scrollDirection: prevState.scrollOffset < scrollOffset ? 'forward' : 'backward',\n          scrollOffset: scrollOffset,\n          scrollUpdateWasRequested: true\n        };\n      }, this._resetIsScrollingDebounced);\n    };\n\n    _proto.scrollToItem = function scrollToItem(index, align) {\n      if (align === void 0) {\n        align = 'auto';\n      }\n\n      var _this$props2 = this.props,\n          itemCount = _this$props2.itemCount,\n          layout = _this$props2.layout;\n      var scrollOffset = this.state.scrollOffset;\n      index = Math.max(0, Math.min(index, itemCount - 1)); // The scrollbar size should be considered when scrolling an item into view, to ensure it's fully visible.\n      // But we only need to account for its size when it's actually visible.\n      // This is an edge case for lists; normally they only scroll in the dominant direction.\n\n      var scrollbarSize = 0;\n\n      if (this._outerRef) {\n        var outerRef = this._outerRef;\n\n        if (layout === 'vertical') {\n          scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;\n        } else {\n          scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;\n        }\n      }\n\n      this.scrollTo(getOffsetForIndexAndAlignment(this.props, index, align, scrollOffset, this._instanceProps, scrollbarSize));\n    };\n\n    _proto.componentDidMount = function componentDidMount() {\n      var _this$props3 = this.props,\n          direction = _this$props3.direction,\n          initialScrollOffset = _this$props3.initialScrollOffset,\n          layout = _this$props3.layout;\n\n      if (typeof initialScrollOffset === 'number' && this._outerRef != null) {\n        var outerRef = this._outerRef; // TODO Deprecate direction \"horizontal\"\n\n        if (direction === 'horizontal' || layout === 'horizontal') {\n          outerRef.scrollLeft = initialScrollOffset;\n        } else {\n          outerRef.scrollTop = initialScrollOffset;\n        }\n      }\n\n      this._callPropsCallbacks();\n    };\n\n    _proto.componentDidUpdate = function componentDidUpdate() {\n      var _this$props4 = this.props,\n          direction = _this$props4.direction,\n          layout = _this$props4.layout;\n      var _this$state = this.state,\n          scrollOffset = _this$state.scrollOffset,\n          scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;\n\n      if (scrollUpdateWasRequested && this._outerRef != null) {\n        var outerRef = this._outerRef; // TODO Deprecate direction \"horizontal\"\n\n        if (direction === 'horizontal' || layout === 'horizontal') {\n          if (direction === 'rtl') {\n            // TRICKY According to the spec, scrollLeft should be negative for RTL aligned elements.\n            // This is not the case for all browsers though (e.g. Chrome reports values as positive, measured relative to the left).\n            // So we need to determine which browser behavior we're dealing with, and mimic it.\n            switch (getRTLOffsetType()) {\n              case 'negative':\n                outerRef.scrollLeft = -scrollOffset;\n                break;\n\n              case 'positive-ascending':\n                outerRef.scrollLeft = scrollOffset;\n                break;\n\n              default:\n                var clientWidth = outerRef.clientWidth,\n                    scrollWidth = outerRef.scrollWidth;\n                outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;\n                break;\n            }\n          } else {\n            outerRef.scrollLeft = scrollOffset;\n          }\n        } else {\n          outerRef.scrollTop = scrollOffset;\n        }\n      }\n\n      this._callPropsCallbacks();\n    };\n\n    _proto.componentWillUnmount = function componentWillUnmount() {\n      if (this._resetIsScrollingTimeoutId !== null) {\n        cancelTimeout(this._resetIsScrollingTimeoutId);\n      }\n    };\n\n    _proto.render = function render() {\n      var _this$props5 = this.props,\n          children = _this$props5.children,\n          className = _this$props5.className,\n          direction = _this$props5.direction,\n          height = _this$props5.height,\n          innerRef = _this$props5.innerRef,\n          innerElementType = _this$props5.innerElementType,\n          innerTagName = _this$props5.innerTagName,\n          itemCount = _this$props5.itemCount,\n          itemData = _this$props5.itemData,\n          _this$props5$itemKey = _this$props5.itemKey,\n          itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey,\n          layout = _this$props5.layout,\n          outerElementType = _this$props5.outerElementType,\n          outerTagName = _this$props5.outerTagName,\n          style = _this$props5.style,\n          useIsScrolling = _this$props5.useIsScrolling,\n          width = _this$props5.width;\n      var isScrolling = this.state.isScrolling; // TODO Deprecate direction \"horizontal\"\n\n      var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n      var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;\n\n      var _this$_getRangeToRend = this._getRangeToRender(),\n          startIndex = _this$_getRangeToRend[0],\n          stopIndex = _this$_getRangeToRend[1];\n\n      var items = [];\n\n      if (itemCount > 0) {\n        for (var _index = startIndex; _index <= stopIndex; _index++) {\n          items.push(createElement(children, {\n            data: itemData,\n            key: itemKey(_index, itemData),\n            index: _index,\n            isScrolling: useIsScrolling ? isScrolling : undefined,\n            style: this._getItemStyle(_index)\n          }));\n        }\n      } // Read this value AFTER items have been created,\n      // So their actual sizes (if variable) are taken into consideration.\n\n\n      var estimatedTotalSize = getEstimatedTotalSize(this.props, this._instanceProps);\n      return createElement(outerElementType || outerTagName || 'div', {\n        className: className,\n        onScroll: onScroll,\n        ref: this._outerRefSetter,\n        style: _extends({\n          position: 'relative',\n          height: height,\n          width: width,\n          overflow: 'auto',\n          WebkitOverflowScrolling: 'touch',\n          willChange: 'transform',\n          direction: direction\n        }, style)\n      }, createElement(innerElementType || innerTagName || 'div', {\n        children: items,\n        ref: innerRef,\n        style: {\n          height: isHorizontal ? '100%' : estimatedTotalSize,\n          pointerEvents: isScrolling ? 'none' : undefined,\n          width: isHorizontal ? estimatedTotalSize : '100%'\n        }\n      }));\n    };\n\n    _proto._callPropsCallbacks = function _callPropsCallbacks() {\n      if (typeof this.props.onItemsRendered === 'function') {\n        var itemCount = this.props.itemCount;\n\n        if (itemCount > 0) {\n          var _this$_getRangeToRend2 = this._getRangeToRender(),\n              _overscanStartIndex = _this$_getRangeToRend2[0],\n              _overscanStopIndex = _this$_getRangeToRend2[1],\n              _visibleStartIndex = _this$_getRangeToRend2[2],\n              _visibleStopIndex = _this$_getRangeToRend2[3];\n\n          this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);\n        }\n      }\n\n      if (typeof this.props.onScroll === 'function') {\n        var _this$state2 = this.state,\n            _scrollDirection = _this$state2.scrollDirection,\n            _scrollOffset = _this$state2.scrollOffset,\n            _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;\n\n        this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);\n      }\n    } // Lazily create and cache item styles while scrolling,\n    // So that pure component sCU will prevent re-renders.\n    // We maintain this cache, and pass a style prop rather than index,\n    // So that List can clear cached styles and force item re-render if necessary.\n    ;\n\n    _proto._getRangeToRender = function _getRangeToRender() {\n      var _this$props6 = this.props,\n          itemCount = _this$props6.itemCount,\n          overscanCount = _this$props6.overscanCount;\n      var _this$state3 = this.state,\n          isScrolling = _this$state3.isScrolling,\n          scrollDirection = _this$state3.scrollDirection,\n          scrollOffset = _this$state3.scrollOffset;\n\n      if (itemCount === 0) {\n        return [0, 0, 0, 0];\n      }\n\n      var startIndex = getStartIndexForOffset(this.props, scrollOffset, this._instanceProps);\n      var stopIndex = getStopIndexForStartIndex(this.props, startIndex, scrollOffset, this._instanceProps); // Overscan by one item in each direction so that tab/focus works.\n      // If there isn't at least one extra item, tab loops back around.\n\n      var overscanBackward = !isScrolling || scrollDirection === 'backward' ? Math.max(1, overscanCount) : 1;\n      var overscanForward = !isScrolling || scrollDirection === 'forward' ? Math.max(1, overscanCount) : 1;\n      return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];\n    };\n\n    return List;\n  }(PureComponent), _class.defaultProps = {\n    direction: 'ltr',\n    itemData: undefined,\n    layout: 'vertical',\n    overscanCount: 2,\n    useIsScrolling: false\n  }, _class;\n} // NOTE: I considered further wrapping individual items with a pure ListItem component.\n// This would avoid ever calling the render function for the same index more than once,\n// But it would also add the overhead of a lot of components/fibers.\n// I assume people already do this (render function returning a class component),\n// So my doing it would just unnecessarily double the wrappers.\n\nvar validateSharedProps$1 = function validateSharedProps(_ref2, _ref3) {\n  var children = _ref2.children,\n      direction = _ref2.direction,\n      height = _ref2.height,\n      layout = _ref2.layout,\n      innerTagName = _ref2.innerTagName,\n      outerTagName = _ref2.outerTagName,\n      width = _ref2.width;\n  var instance = _ref3.instance;\n\n  if (process.env.NODE_ENV !== 'production') {\n    if (innerTagName != null || outerTagName != null) {\n      if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {\n        devWarningsTagName$1.add(instance);\n        console.warn('The innerTagName and outerTagName props have been deprecated. ' + 'Please use the innerElementType and outerElementType props instead.');\n      }\n    } // TODO Deprecate direction \"horizontal\"\n\n\n    var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n\n    switch (direction) {\n      case 'horizontal':\n      case 'vertical':\n        if (devWarningsDirection && !devWarningsDirection.has(instance)) {\n          devWarningsDirection.add(instance);\n          console.warn('The direction prop should be either \"ltr\" (default) or \"rtl\". ' + 'Please use the layout prop to specify \"vertical\" (default) or \"horizontal\" orientation.');\n        }\n\n        break;\n\n      case 'ltr':\n      case 'rtl':\n        // Valid values\n        break;\n\n      default:\n        throw Error('An invalid \"direction\" prop has been specified. ' + 'Value should be either \"ltr\" or \"rtl\". ' + (\"\\\"\" + direction + \"\\\" was specified.\"));\n    }\n\n    switch (layout) {\n      case 'horizontal':\n      case 'vertical':\n        // Valid values\n        break;\n\n      default:\n        throw Error('An invalid \"layout\" prop has been specified. ' + 'Value should be either \"horizontal\" or \"vertical\". ' + (\"\\\"\" + layout + \"\\\" was specified.\"));\n    }\n\n    if (children == null) {\n      throw Error('An invalid \"children\" prop has been specified. ' + 'Value should be a React component. ' + (\"\\\"\" + (children === null ? 'null' : typeof children) + \"\\\" was specified.\"));\n    }\n\n    if (isHorizontal && typeof width !== 'number') {\n      throw Error('An invalid \"width\" prop has been specified. ' + 'Horizontal lists must specify a number for width. ' + (\"\\\"\" + (width === null ? 'null' : typeof width) + \"\\\" was specified.\"));\n    } else if (!isHorizontal && typeof height !== 'number') {\n      throw Error('An invalid \"height\" prop has been specified. ' + 'Vertical lists must specify a number for height. ' + (\"\\\"\" + (height === null ? 'null' : typeof height) + \"\\\" was specified.\"));\n    }\n  }\n};\n\nvar DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;\n\nvar getItemMetadata$1 = function getItemMetadata(props, index, instanceProps) {\n  var _ref = props,\n      itemSize = _ref.itemSize;\n  var itemMetadataMap = instanceProps.itemMetadataMap,\n      lastMeasuredIndex = instanceProps.lastMeasuredIndex;\n\n  if (index > lastMeasuredIndex) {\n    var offset = 0;\n\n    if (lastMeasuredIndex >= 0) {\n      var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n      offset = itemMetadata.offset + itemMetadata.size;\n    }\n\n    for (var i = lastMeasuredIndex + 1; i <= index; i++) {\n      var size = itemSize(i);\n      itemMetadataMap[i] = {\n        offset: offset,\n        size: size\n      };\n      offset += size;\n    }\n\n    instanceProps.lastMeasuredIndex = index;\n  }\n\n  return itemMetadataMap[index];\n};\n\nvar findNearestItem$1 = function findNearestItem(props, instanceProps, offset) {\n  var itemMetadataMap = instanceProps.itemMetadataMap,\n      lastMeasuredIndex = instanceProps.lastMeasuredIndex;\n  var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;\n\n  if (lastMeasuredItemOffset >= offset) {\n    // If we've already measured items within this range just use a binary search as it's faster.\n    return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset);\n  } else {\n    // If we haven't yet measured this high, fallback to an exponential search with an inner binary search.\n    // The exponential search avoids pre-computing sizes for the full set of items as a binary search would.\n    // The overall complexity for this approach is O(log n).\n    return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset);\n  }\n};\n\nvar findNearestItemBinarySearch$1 = function findNearestItemBinarySearch(props, instanceProps, high, low, offset) {\n  while (low <= high) {\n    var middle = low + Math.floor((high - low) / 2);\n    var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;\n\n    if (currentOffset === offset) {\n      return middle;\n    } else if (currentOffset < offset) {\n      low = middle + 1;\n    } else if (currentOffset > offset) {\n      high = middle - 1;\n    }\n  }\n\n  if (low > 0) {\n    return low - 1;\n  } else {\n    return 0;\n  }\n};\n\nvar findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch(props, instanceProps, index, offset) {\n  var itemCount = props.itemCount;\n  var interval = 1;\n\n  while (index < itemCount && getItemMetadata$1(props, index, instanceProps).offset < offset) {\n    index += interval;\n    interval *= 2;\n  }\n\n  return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);\n};\n\nvar getEstimatedTotalSize = function getEstimatedTotalSize(_ref2, _ref3) {\n  var itemCount = _ref2.itemCount;\n  var itemMetadataMap = _ref3.itemMetadataMap,\n      estimatedItemSize = _ref3.estimatedItemSize,\n      lastMeasuredIndex = _ref3.lastMeasuredIndex;\n  var totalSizeOfMeasuredItems = 0; // Edge case check for when the number of items decreases while a scroll is in progress.\n  // https://github.com/bvaughn/react-window/pull/138\n\n  if (lastMeasuredIndex >= itemCount) {\n    lastMeasuredIndex = itemCount - 1;\n  }\n\n  if (lastMeasuredIndex >= 0) {\n    var itemMetadata = itemMetadataMap[lastMeasuredIndex];\n    totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;\n  }\n\n  var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;\n  var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;\n  return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;\n};\n\nvar VariableSizeList = /*#__PURE__*/createListComponent({\n  getItemOffset: function getItemOffset(props, index, instanceProps) {\n    return getItemMetadata$1(props, index, instanceProps).offset;\n  },\n  getItemSize: function getItemSize(props, index, instanceProps) {\n    return instanceProps.itemMetadataMap[index].size;\n  },\n  getEstimatedTotalSize: getEstimatedTotalSize,\n  getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(props, index, align, scrollOffset, instanceProps, scrollbarSize) {\n    var direction = props.direction,\n        height = props.height,\n        layout = props.layout,\n        width = props.width; // TODO Deprecate direction \"horizontal\"\n\n    var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n    var size = isHorizontal ? width : height;\n    var itemMetadata = getItemMetadata$1(props, index, instanceProps); // Get estimated total size after ItemMetadata is computed,\n    // To ensure it reflects actual measurements instead of just estimates.\n\n    var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);\n    var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));\n    var minOffset = Math.max(0, itemMetadata.offset - size + itemMetadata.size + scrollbarSize);\n\n    if (align === 'smart') {\n      if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n        align = 'auto';\n      } else {\n        align = 'center';\n      }\n    }\n\n    switch (align) {\n      case 'start':\n        return maxOffset;\n\n      case 'end':\n        return minOffset;\n\n      case 'center':\n        return Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n      case 'auto':\n      default:\n        if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n          return scrollOffset;\n        } else if (scrollOffset < minOffset) {\n          return minOffset;\n        } else {\n          return maxOffset;\n        }\n\n    }\n  },\n  getStartIndexForOffset: function getStartIndexForOffset(props, offset, instanceProps) {\n    return findNearestItem$1(props, instanceProps, offset);\n  },\n  getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {\n    var direction = props.direction,\n        height = props.height,\n        itemCount = props.itemCount,\n        layout = props.layout,\n        width = props.width; // TODO Deprecate direction \"horizontal\"\n\n    var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n    var size = isHorizontal ? width : height;\n    var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);\n    var maxOffset = scrollOffset + size;\n    var offset = itemMetadata.offset + itemMetadata.size;\n    var stopIndex = startIndex;\n\n    while (stopIndex < itemCount - 1 && offset < maxOffset) {\n      stopIndex++;\n      offset += getItemMetadata$1(props, stopIndex, instanceProps).size;\n    }\n\n    return stopIndex;\n  },\n  initInstanceProps: function initInstanceProps(props, instance) {\n    var _ref4 = props,\n        estimatedItemSize = _ref4.estimatedItemSize;\n    var instanceProps = {\n      itemMetadataMap: {},\n      estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,\n      lastMeasuredIndex: -1\n    };\n\n    instance.resetAfterIndex = function (index, shouldForceUpdate) {\n      if (shouldForceUpdate === void 0) {\n        shouldForceUpdate = true;\n      }\n\n      instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index - 1); // We could potentially optimize further by only evicting styles after this index,\n      // But since styles are only cached while scrolling is in progress-\n      // It seems an unnecessary optimization.\n      // It's unlikely that resetAfterIndex() will be called while a user is scrolling.\n\n      instance._getItemStyleCache(-1);\n\n      if (shouldForceUpdate) {\n        instance.forceUpdate();\n      }\n    };\n\n    return instanceProps;\n  },\n  shouldResetStyleCacheOnItemSizeChange: false,\n  validateProps: function validateProps(_ref5) {\n    var itemSize = _ref5.itemSize;\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof itemSize !== 'function') {\n        throw Error('An invalid \"itemSize\" prop has been specified. ' + 'Value should be a function. ' + (\"\\\"\" + (itemSize === null ? 'null' : typeof itemSize) + \"\\\" was specified.\"));\n      }\n    }\n  }\n});\n\nvar FixedSizeGrid = /*#__PURE__*/createGridComponent({\n  getColumnOffset: function getColumnOffset(_ref, index) {\n    var columnWidth = _ref.columnWidth;\n    return index * columnWidth;\n  },\n  getColumnWidth: function getColumnWidth(_ref2, index) {\n    var columnWidth = _ref2.columnWidth;\n    return columnWidth;\n  },\n  getRowOffset: function getRowOffset(_ref3, index) {\n    var rowHeight = _ref3.rowHeight;\n    return index * rowHeight;\n  },\n  getRowHeight: function getRowHeight(_ref4, index) {\n    var rowHeight = _ref4.rowHeight;\n    return rowHeight;\n  },\n  getEstimatedTotalHeight: function getEstimatedTotalHeight(_ref5) {\n    var rowCount = _ref5.rowCount,\n        rowHeight = _ref5.rowHeight;\n    return rowHeight * rowCount;\n  },\n  getEstimatedTotalWidth: function getEstimatedTotalWidth(_ref6) {\n    var columnCount = _ref6.columnCount,\n        columnWidth = _ref6.columnWidth;\n    return columnWidth * columnCount;\n  },\n  getOffsetForColumnAndAlignment: function getOffsetForColumnAndAlignment(_ref7, columnIndex, align, scrollLeft, instanceProps, scrollbarSize) {\n    var columnCount = _ref7.columnCount,\n        columnWidth = _ref7.columnWidth,\n        width = _ref7.width;\n    var lastColumnOffset = Math.max(0, columnCount * columnWidth - width);\n    var maxOffset = Math.min(lastColumnOffset, columnIndex * columnWidth);\n    var minOffset = Math.max(0, columnIndex * columnWidth - width + scrollbarSize + columnWidth);\n\n    if (align === 'smart') {\n      if (scrollLeft >= minOffset - width && scrollLeft <= maxOffset + width) {\n        align = 'auto';\n      } else {\n        align = 'center';\n      }\n    }\n\n    switch (align) {\n      case 'start':\n        return maxOffset;\n\n      case 'end':\n        return minOffset;\n\n      case 'center':\n        // \"Centered\" offset is usually the average of the min and max.\n        // But near the edges of the list, this doesn't hold true.\n        var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n        if (middleOffset < Math.ceil(width / 2)) {\n          return 0; // near the beginning\n        } else if (middleOffset > lastColumnOffset + Math.floor(width / 2)) {\n          return lastColumnOffset; // near the end\n        } else {\n          return middleOffset;\n        }\n\n      case 'auto':\n      default:\n        if (scrollLeft >= minOffset && scrollLeft <= maxOffset) {\n          return scrollLeft;\n        } else if (minOffset > maxOffset) {\n          // Because we only take into account the scrollbar size when calculating minOffset\n          // this value can be larger than maxOffset when at the end of the list\n          return minOffset;\n        } else if (scrollLeft < minOffset) {\n          return minOffset;\n        } else {\n          return maxOffset;\n        }\n\n    }\n  },\n  getOffsetForRowAndAlignment: function getOffsetForRowAndAlignment(_ref8, rowIndex, align, scrollTop, instanceProps, scrollbarSize) {\n    var rowHeight = _ref8.rowHeight,\n        height = _ref8.height,\n        rowCount = _ref8.rowCount;\n    var lastRowOffset = Math.max(0, rowCount * rowHeight - height);\n    var maxOffset = Math.min(lastRowOffset, rowIndex * rowHeight);\n    var minOffset = Math.max(0, rowIndex * rowHeight - height + scrollbarSize + rowHeight);\n\n    if (align === 'smart') {\n      if (scrollTop >= minOffset - height && scrollTop <= maxOffset + height) {\n        align = 'auto';\n      } else {\n        align = 'center';\n      }\n    }\n\n    switch (align) {\n      case 'start':\n        return maxOffset;\n\n      case 'end':\n        return minOffset;\n\n      case 'center':\n        // \"Centered\" offset is usually the average of the min and max.\n        // But near the edges of the list, this doesn't hold true.\n        var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n        if (middleOffset < Math.ceil(height / 2)) {\n          return 0; // near the beginning\n        } else if (middleOffset > lastRowOffset + Math.floor(height / 2)) {\n          return lastRowOffset; // near the end\n        } else {\n          return middleOffset;\n        }\n\n      case 'auto':\n      default:\n        if (scrollTop >= minOffset && scrollTop <= maxOffset) {\n          return scrollTop;\n        } else if (minOffset > maxOffset) {\n          // Because we only take into account the scrollbar size when calculating minOffset\n          // this value can be larger than maxOffset when at the end of the list\n          return minOffset;\n        } else if (scrollTop < minOffset) {\n          return minOffset;\n        } else {\n          return maxOffset;\n        }\n\n    }\n  },\n  getColumnStartIndexForOffset: function getColumnStartIndexForOffset(_ref9, scrollLeft) {\n    var columnWidth = _ref9.columnWidth,\n        columnCount = _ref9.columnCount;\n    return Math.max(0, Math.min(columnCount - 1, Math.floor(scrollLeft / columnWidth)));\n  },\n  getColumnStopIndexForStartIndex: function getColumnStopIndexForStartIndex(_ref10, startIndex, scrollLeft) {\n    var columnWidth = _ref10.columnWidth,\n        columnCount = _ref10.columnCount,\n        width = _ref10.width;\n    var left = startIndex * columnWidth;\n    var numVisibleColumns = Math.ceil((width + scrollLeft - left) / columnWidth);\n    return Math.max(0, Math.min(columnCount - 1, startIndex + numVisibleColumns - 1 // -1 is because stop index is inclusive\n    ));\n  },\n  getRowStartIndexForOffset: function getRowStartIndexForOffset(_ref11, scrollTop) {\n    var rowHeight = _ref11.rowHeight,\n        rowCount = _ref11.rowCount;\n    return Math.max(0, Math.min(rowCount - 1, Math.floor(scrollTop / rowHeight)));\n  },\n  getRowStopIndexForStartIndex: function getRowStopIndexForStartIndex(_ref12, startIndex, scrollTop) {\n    var rowHeight = _ref12.rowHeight,\n        rowCount = _ref12.rowCount,\n        height = _ref12.height;\n    var top = startIndex * rowHeight;\n    var numVisibleRows = Math.ceil((height + scrollTop - top) / rowHeight);\n    return Math.max(0, Math.min(rowCount - 1, startIndex + numVisibleRows - 1 // -1 is because stop index is inclusive\n    ));\n  },\n  initInstanceProps: function initInstanceProps(props) {// Noop\n  },\n  shouldResetStyleCacheOnItemSizeChange: true,\n  validateProps: function validateProps(_ref13) {\n    var columnWidth = _ref13.columnWidth,\n        rowHeight = _ref13.rowHeight;\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof columnWidth !== 'number') {\n        throw Error('An invalid \"columnWidth\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (columnWidth === null ? 'null' : typeof columnWidth) + \"\\\" was specified.\"));\n      }\n\n      if (typeof rowHeight !== 'number') {\n        throw Error('An invalid \"rowHeight\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (rowHeight === null ? 'null' : typeof rowHeight) + \"\\\" was specified.\"));\n      }\n    }\n  }\n});\n\nvar FixedSizeList = /*#__PURE__*/createListComponent({\n  getItemOffset: function getItemOffset(_ref, index) {\n    var itemSize = _ref.itemSize;\n    return index * itemSize;\n  },\n  getItemSize: function getItemSize(_ref2, index) {\n    var itemSize = _ref2.itemSize;\n    return itemSize;\n  },\n  getEstimatedTotalSize: function getEstimatedTotalSize(_ref3) {\n    var itemCount = _ref3.itemCount,\n        itemSize = _ref3.itemSize;\n    return itemSize * itemCount;\n  },\n  getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment(_ref4, index, align, scrollOffset, instanceProps, scrollbarSize) {\n    var direction = _ref4.direction,\n        height = _ref4.height,\n        itemCount = _ref4.itemCount,\n        itemSize = _ref4.itemSize,\n        layout = _ref4.layout,\n        width = _ref4.width;\n    // TODO Deprecate direction \"horizontal\"\n    var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n    var size = isHorizontal ? width : height;\n    var lastItemOffset = Math.max(0, itemCount * itemSize - size);\n    var maxOffset = Math.min(lastItemOffset, index * itemSize);\n    var minOffset = Math.max(0, index * itemSize - size + itemSize + scrollbarSize);\n\n    if (align === 'smart') {\n      if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {\n        align = 'auto';\n      } else {\n        align = 'center';\n      }\n    }\n\n    switch (align) {\n      case 'start':\n        return maxOffset;\n\n      case 'end':\n        return minOffset;\n\n      case 'center':\n        {\n          // \"Centered\" offset is usually the average of the min and max.\n          // But near the edges of the list, this doesn't hold true.\n          var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);\n\n          if (middleOffset < Math.ceil(size / 2)) {\n            return 0; // near the beginning\n          } else if (middleOffset > lastItemOffset + Math.floor(size / 2)) {\n            return lastItemOffset; // near the end\n          } else {\n            return middleOffset;\n          }\n        }\n\n      case 'auto':\n      default:\n        if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {\n          return scrollOffset;\n        } else if (scrollOffset < minOffset) {\n          return minOffset;\n        } else {\n          return maxOffset;\n        }\n\n    }\n  },\n  getStartIndexForOffset: function getStartIndexForOffset(_ref5, offset) {\n    var itemCount = _ref5.itemCount,\n        itemSize = _ref5.itemSize;\n    return Math.max(0, Math.min(itemCount - 1, Math.floor(offset / itemSize)));\n  },\n  getStopIndexForStartIndex: function getStopIndexForStartIndex(_ref6, startIndex, scrollOffset) {\n    var direction = _ref6.direction,\n        height = _ref6.height,\n        itemCount = _ref6.itemCount,\n        itemSize = _ref6.itemSize,\n        layout = _ref6.layout,\n        width = _ref6.width;\n    // TODO Deprecate direction \"horizontal\"\n    var isHorizontal = direction === 'horizontal' || layout === 'horizontal';\n    var offset = startIndex * itemSize;\n    var size = isHorizontal ? width : height;\n    var numVisibleItems = Math.ceil((size + scrollOffset - offset) / itemSize);\n    return Math.max(0, Math.min(itemCount - 1, startIndex + numVisibleItems - 1 // -1 is because stop index is inclusive\n    ));\n  },\n  initInstanceProps: function initInstanceProps(props) {// Noop\n  },\n  shouldResetStyleCacheOnItemSizeChange: true,\n  validateProps: function validateProps(_ref7) {\n    var itemSize = _ref7.itemSize;\n\n    if (process.env.NODE_ENV !== 'production') {\n      if (typeof itemSize !== 'number') {\n        throw Error('An invalid \"itemSize\" prop has been specified. ' + 'Value should be a number. ' + (\"\\\"\" + (itemSize === null ? 'null' : typeof itemSize) + \"\\\" was specified.\"));\n      }\n    }\n  }\n});\n\n// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(prev, next) {\n  for (var attribute in prev) {\n    if (!(attribute in next)) {\n      return true;\n    }\n  }\n\n  for (var _attribute in next) {\n    if (prev[_attribute] !== next[_attribute]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nvar _excluded = [\"style\"],\n    _excluded2 = [\"style\"];\n// It knows to compare individual style props and ignore the wrapper object.\n// See https://reactjs.org/docs/react-api.html#reactmemo\n\nfunction areEqual(prevProps, nextProps) {\n  var prevStyle = prevProps.style,\n      prevRest = _objectWithoutPropertiesLoose(prevProps, _excluded);\n\n  var nextStyle = nextProps.style,\n      nextRest = _objectWithoutPropertiesLoose(nextProps, _excluded2);\n\n  return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);\n}\n\n// It knows to compare individual style props and ignore the wrapper object.\n// See https://reactjs.org/docs/react-component.html#shouldcomponentupdate\n\nfunction shouldComponentUpdate(nextProps, nextState) {\n  return !areEqual(this.props, nextProps) || shallowDiffers(this.state, nextState);\n}\n\nexport { FixedSizeGrid, FixedSizeList, VariableSizeGrid, VariableSizeList, areEqual, shouldComponentUpdate };\n//# sourceMappingURL=index.esm.js.map\n","import styled from '@emotion/styled';\nimport { FixedSizeList, FixedSizeGrid } from 'react-window';\n\nconst PREFIX = 'ListBox';\nconst scrollBarThumb = '#BBB';\nconst scrollBarThumbHover = '#555';\nconst scrollBarBackground = '#f1f1f1';\n\nexport const classes = {\n  styledScrollbars: `${PREFIX}-styledScrollbars`,\n};\n\nexport default function getStyledComponents() {\n  const getScrollbarStyling = (scrollDisabled) => ({\n    scrollbarColor: `${scrollBarThumb} ${scrollBarBackground}`,\n    overflow: scrollDisabled ? 'hidden !important' : undefined,\n    '&::-webkit-scrollbar': {\n      width: 10,\n      height: 10,\n    },\n\n    '&::-webkit-scrollbar-track': {\n      backgroundColor: scrollBarBackground,\n    },\n\n    '&::-webkit-scrollbar-thumb': {\n      backgroundColor: scrollBarThumb,\n      borderRadius: '1rem',\n    },\n\n    '&::-webkit-scrollbar-thumb:hover': {\n      backgroundColor: scrollBarThumbHover,\n    },\n  });\n\n  const StyledFixedSizeList = styled(FixedSizeList, {\n    shouldForwardProp: (prop) => prop !== 'scrollDisabled',\n  })(({ scrollDisabled }) => ({\n    [`&.${classes.styledScrollbars}`]: getScrollbarStyling(scrollDisabled),\n  }));\n\n  const StyledFixedSizeGrid = styled(FixedSizeGrid, {\n    shouldForwardProp: (prop) => prop !== 'scrollDisabled',\n  })(({ scrollDisabled }) => ({\n    [`&.${classes.styledScrollbars}`]: getScrollbarStyling(scrollDisabled),\n  }));\n\n  return {\n    StyledFixedSizeList,\n    StyledFixedSizeGrid,\n  };\n}\n","const getIndex = (renderProps, isColumnLayout) => {\n  if (renderProps?.visibleRowStopIndex !== undefined || renderProps.visibleColumnStopIndex !== undefined) {\n    return isColumnLayout ? renderProps.visibleColumnStopIndex : renderProps.visibleRowStopIndex;\n  }\n  return renderProps.visibleStopIndex;\n};\n\nconst getIsScrollTop = (renderProps, isColumnLayout) => {\n  if (renderProps?.visibleRowStartIndex !== undefined || renderProps.visibleColumnStartIndex !== undefined) {\n    return isColumnLayout ? renderProps.visibleColumnStartIndex === 0 : renderProps.visibleRowStartIndex === 0;\n  }\n  return renderProps.visibleStartIndex === 0;\n};\n\nconst getIsEndOfData = (qCardinal, index, count, dataOffset) => qCardinal === index * count + dataOffset + count;\n\nexport default function handleSetOverflowDisclaimer({\n  renderProps,\n  layoutOptions,\n  maxCount,\n  columnCount,\n  rowCount,\n  overflowDisclaimer,\n  qCardinal,\n  dataOffset,\n}) {\n  const isColumnLayout = layoutOptions?.layoutOrder === 'column' && layoutOptions.dataLayout !== 'singleColumn';\n  const index = getIndex(renderProps, isColumnLayout);\n  const stopIndex = isColumnLayout ? maxCount.column : maxCount.row;\n  const count = isColumnLayout ? columnCount : rowCount;\n  const overflowPossible = count >= stopIndex;\n  const isEndOfData = getIsEndOfData(qCardinal, index, isColumnLayout ? rowCount : columnCount, dataOffset);\n  const isTopOfOverflowData = !!dataOffset && getIsScrollTop(renderProps, isColumnLayout);\n\n  const show =\n    (overflowPossible && !isEndOfData && index >= stopIndex - 1) ||\n    isTopOfOverflowData ||\n    overflowDisclaimer.state.show; // If its shown once, the user have to dismiss to hide it.\n  overflowDisclaimer.set(show);\n}\n","/* eslint-disable react/function-component-definition */\nimport React from 'react';\nimport RowColumn from '../ListBoxRowColumn';\nimport deriveRenderOptions from './derive-render-options';\nimport getStyledComponents, { classes } from './styled-components';\nimport handleSetOverflowDisclaimer from './set-overflow-disclaimer';\nimport { REMOVE_TICK_LIMIT } from '../../constants';\n\nconst { StyledFixedSizeList, StyledFixedSizeGrid } = getStyledComponents();\n\nexport default function getListBoxComponents({\n  layout,\n  width,\n  checkboxes,\n  local,\n  isVertical,\n  pages,\n  selectionState,\n  interactionEvents,\n  deducedFrequencyMode,\n  histogram,\n  isSingleSelect,\n  select,\n  selectAll,\n  onCtrlF,\n  textAlign,\n  selections,\n  keyboard,\n  showGray,\n  scrollState,\n  direction,\n  sizes,\n  listCount,\n  overflowDisclaimer,\n  setScrollPosition,\n  focusListItems,\n  setCurrentScrollIndex,\n  constraints,\n  frequencyMax,\n  freqIsAllowed,\n  translator,\n  showSearch,\n  isModal,\n  styles,\n}) {\n  const { layoutOptions = {} } = layout || {};\n  const { columnWidth, listHeight, itemHeight, rowCount, columnCount } = sizes || {};\n\n  const itemWidth = layoutOptions.dataLayout === 'grid' ? columnWidth : width;\n  const showTick = itemWidth > REMOVE_TICK_LIMIT;\n\n  // Options common for List and Grid.\n  const commonComponentOptions = {\n    direction: direction === 'rtl' ? 'rtl' : 'ltr',\n    useIsScrolling: true,\n    className: classes.styledScrollbars,\n  };\n\n  const isLocked = layout?.qListObject.qDimensionInfo.qLocked;\n\n  const fillHeight = listHeight <= itemHeight;\n\n  // Item data common for List and Grid.\n  const commonItemData = {\n    isLocked,\n    column: !isVertical,\n    pages,\n    ...(isLocked || selectionState.selectDisabled() ? {} : interactionEvents),\n    checkboxes,\n    layoutOptions,\n    deducedFrequencyMode,\n    freqIsAllowed,\n    isSingleSelect,\n    textAlign,\n    sizes,\n    actions: {\n      select,\n      confirm: () => selections?.confirm.call(selections),\n      cancel: () => selections?.cancel.call(selections),\n      setScrollPosition,\n      selectAll,\n      onCtrlF,\n    },\n    frequencyMax,\n    histogram,\n    keyboard,\n    showGray,\n    showTick,\n    dataOffset: local.current.dataOffset,\n    focusListItems,\n    direction,\n    translator,\n    showSearch,\n    isModal,\n    styles,\n    fillHeight,\n  };\n\n  const List = ({ onItemsRendered, ref }) => {\n    // eslint-disable-next-line no-param-reassign\n    local.current.listRef = ref;\n    return (\n      <StyledFixedSizeList\n        // eslint-disable-next-line react/jsx-props-no-spreading\n        {...commonComponentOptions}\n        dataTestid=\"fixed-size-list\"\n        scrollDisabled={constraints?.active}\n        height={listHeight}\n        width={width}\n        itemCount={listCount}\n        itemData={{ ...commonItemData, listCount }}\n        itemSize={itemHeight}\n        onItemsRendered={(renderProps) => {\n          setCurrentScrollIndex({ start: renderProps.visibleStartIndex, stop: renderProps.visibleStopIndex });\n          if (scrollState) {\n            scrollState.setScrollPos(renderProps.visibleStopIndex);\n          }\n          handleSetOverflowDisclaimer({\n            renderProps,\n            layoutOptions,\n            maxCount: sizes.maxCount,\n            columnCount,\n            rowCount,\n            overflowDisclaimer,\n            qCardinal: layout?.qListObject?.qDimensionInfo?.qCardinal,\n            dataOffset: local.current.dataOffset,\n          });\n          onItemsRendered({ ...renderProps });\n        }}\n        ref={ref}\n      >\n        {RowColumn}\n      </StyledFixedSizeList>\n    );\n  };\n\n  const Grid = ({ onItemsRendered, ref }) => {\n    const { overflowStyling, scrollBarWidth } = sizes;\n    const { layoutOrder } = layoutOptions || {};\n    const gridHeight = Math.min(listHeight, rowCount * itemHeight + scrollBarWidth);\n    // eslint-disable-next-line no-param-reassign\n    local.current.listRef = ref;\n\n    const handleGridItemsRendered = (renderProps) => {\n      const isRow = layoutOrder === 'row';\n      setCurrentScrollIndex({\n        start: isRow ? renderProps.visibleRowStartIndex : renderProps.visibleColumnStartIndex,\n        stop: isRow ? renderProps.visibleRowStopIndex : renderProps.visibleColumnStopIndex,\n      });\n      const renderOptions = deriveRenderOptions({\n        renderProps,\n        scrollState,\n        layoutOrder,\n        rowCount,\n        columnCount,\n      });\n      handleSetOverflowDisclaimer({\n        renderProps,\n        layoutOptions,\n        maxCount: sizes.maxCount,\n        columnCount,\n        rowCount,\n        overflowDisclaimer,\n        qCardinal: layout?.qListObject?.qDimensionInfo?.qCardinal,\n        dataOffset: local.current.dataOffset,\n      });\n      onItemsRendered(renderOptions);\n    };\n\n    return (\n      <StyledFixedSizeGrid\n        // eslint-disable-next-line react/jsx-props-no-spreading\n        {...commonComponentOptions}\n        dataTestid=\"fixed-size-grid\"\n        scrollDisabled={constraints?.active}\n        height={gridHeight}\n        width={width}\n        columnCount={columnCount}\n        columnWidth={columnWidth}\n        rowCount={rowCount}\n        rowHeight={itemHeight}\n        style={{ ...overflowStyling }}\n        itemData={{\n          ...commonItemData,\n          column: undefined,\n          columnCount,\n          rowCount,\n        }}\n        onItemsRendered={handleGridItemsRendered}\n        ref={ref}\n      >\n        {RowColumn}\n      </StyledFixedSizeGrid>\n    );\n  };\n\n  return { List, Grid };\n}\n","import { useMemo } from 'react';\n\nconst getContext = () => {\n  const fragment = document.createDocumentFragment();\n  const canvas = document.createElement('canvas');\n  fragment.appendChild(canvas);\n  return canvas.getContext('2d');\n};\n\nconst getTextWidth = (currentText, font) => {\n  const context = getContext();\n  context.font = font;\n\n  if (Array.isArray(currentText)) {\n    return Math.max(...currentText.map((t) => context.measureText(t).width));\n  }\n  const metrics = context.measureText(currentText);\n  return Math.ceil(metrics.width || 0);\n};\n\nconst useTextWidth = (options) => {\n  const textOptions = useMemo(() => ('text' in options ? options : {}), [options]);\n\n  return useMemo(\n    () => getTextWidth(textOptions.text, textOptions.font || '12px Source Sans Pro'),\n    [textOptions.text, textOptions.font]\n  );\n};\n\nexport default useTextWidth;\n","export default function getMeasureText(layoutOrNumber) {\n  if (!layoutOrNumber) {\n    return '';\n  }\n\n  const maxGlyphCount =\n    typeof layoutOrNumber === 'number' ? layoutOrNumber : layoutOrNumber.qListObject.qDimensionInfo.qApprMaxGlyphCount;\n  const measureString = Array(maxGlyphCount).fill('M').join('');\n  return measureString;\n}\n","import { DENSE_ROW_HEIGHT, GRID_ROW_HEIGHT, GRID_ITEM_PADDING, LIST_ROW_HEIGHT } from '../../constants';\n\nexport default function getItemHeight({ isGridMode, dense }) {\n  const normalItemHeight = isGridMode ? GRID_ROW_HEIGHT : LIST_ROW_HEIGHT;\n  let itemHeight = dense ? DENSE_ROW_HEIGHT : normalItemHeight;\n  if (isGridMode) {\n    // Emulate a margin between items using padding, since the list library\n    // needs an explicit row height and cannot handle margins.\n    itemHeight += GRID_ITEM_PADDING;\n  }\n  return itemHeight;\n}\n","import createKeyStore from './create-key-store';\n\nconst [useVizDataStore, vizDataStore] = createKeyStore({});\n\nexport { useVizDataStore, vizDataStore };\n","import { useVizDataStore } from '../../../stores/viz-store';\n\nexport default function useDataStore(model) {\n  const keyPrefix = `${model.id}`;\n\n  const [vizDataStore] = useVizDataStore();\n\n  const setStoreValue = (key, val) => vizDataStore.set(`${keyPrefix}/${key}`, val);\n  const getStoreValue = (key) => vizDataStore.get(`${keyPrefix}/${key}`);\n\n  return { setStoreValue, getStoreValue };\n}\n","import { Tooltip, Typography } from '@mui/material';\nimport React, { useContext } from 'react';\nimport { styled } from '@mui/material/styles';\nimport InstanceContext from '../../../contexts/InstanceContext';\n\nconst StyledText = styled(Typography, { shouldForwardProp: (p) => !['width', 'dense'].includes(p) })(\n  ({ width, dense }) => ({\n    minWidth: `${width}px`,\n    textAlign: 'center',\n    fontSize: `${dense ? '12px' : '14px'}`,\n    whiteSpace: 'normal',\n    ...(dense && {\n      textOverflow: 'ellipsis',\n      overflow: 'hidden',\n      whiteSpace: 'nowrap',\n      width,\n    }),\n  })\n);\n\nexport default function ListBoxDisclaimer({ width, text, dense, tooltip }) {\n  const { translator: translatorDynamic } = useContext(InstanceContext);\n\n  return (\n    <Tooltip title={tooltip ? translatorDynamic.get(text) : ''}>\n      <StyledText width={width} dense={dense} component=\"div\" variant=\"body1\" py=\"12px\">\n        {translatorDynamic.get(text)}\n      </StyledText>\n    </Tooltip>\n  );\n}\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n  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\"\n}), 'Close');","import { IconButton, Paper } from '@mui/material';\nimport CloseIcon from '@mui/icons-material/Close';\nimport { styled } from '@mui/material/styles';\nimport React from 'react';\nimport ListBoxDisclaimer from './ListBoxDisclaimer';\n\nconst RootContainer = styled(Paper)(({ theme, left }) => ({\n  position: 'absolute',\n  bottom: '12px',\n  display: 'flex',\n  border: `1px solid ${theme.palette.divider}`,\n  width: 'calc(100% - 11px)',\n  left,\n}));\n\nconst LeftItem = styled('div')(() => ({\n  paddingLeft: '6px',\n  flexGrow: 1,\n}));\n\nconst RightItem = styled('div')(({ dense }) => ({\n  display: 'flex',\n  alignItems: `${dense ? 'center' : 'flex-start'}`,\n}));\n\nconst SmallCloseIcon = styled(CloseIcon)(() => ({\n  fontSize: '14px',\n}));\n\nexport default function ListBoxFooter({ text, dismiss, dense, parentWidth = 0 }) {\n  const hasDismissButton = typeof dismiss === 'function';\n  const maxWidth = dense ? 370 : 282;\n  const left = Math.max(parentWidth / 2 - maxWidth / 2, 0);\n  const textWidth = Math.min(maxWidth, parentWidth) - 42;\n  const enableTooltip = dense && parentWidth < maxWidth;\n\n  return (\n    <RootContainer left={left} style={{ maxWidth }}>\n      <LeftItem>\n        <ListBoxDisclaimer text={text} dense={dense} width={textWidth} tooltip={enableTooltip} />\n      </LeftItem>\n      <RightItem dense={dense}>\n        {hasDismissButton && (\n          <IconButton aria-label=\"close\" onClick={() => dismiss()}>\n            <SmallCloseIcon />\n          </IconButton>\n        )}\n      </RightItem>\n    </RootContainer>\n  );\n}\n","export const FREQUENCY_MIN_SHOW_WIDTH = 80;\n\nexport default function getFrequencyAllowed({ itemWidth, layout, frequencyMode }) {\n  const widthPermitsFreq = itemWidth > FREQUENCY_MIN_SHOW_WIDTH;\n  const { frequencyEnabled = false } = layout?.qListObject || {};\n  const hasValidFreqOption = !['N', undefined].includes(frequencyMode);\n  return !!(widthPermitsFreq && (hasValidFreqOption || frequencyEnabled));\n}\n","const escapeField = (field) => {\n  if (!field || field === ']') {\n    return field;\n  }\n  if (/^[A-Za-z][A-Za-z0-9_]*$/.test(field)) {\n    return field;\n  }\n  return `[${field.replace(/\\]/g, ']]')}]`;\n};\n\nexport default escapeField;\n","import escapeField from '../../../utils/escape-field';\n\nexport const needToFetchFrequencyMax = (layout) => layout?.frequencyMax === 'fetch';\n\nexport const getFrequencyMaxExpression = (field) => {\n  const escapedField = escapeField(field);\n  return `Max(AGGR(Count(${escapedField}), ${escapedField}))`;\n};\n\nexport const getFrequencyMax = async (layout, app) => {\n  const dimInfo = layout.qListObject.qDimensionInfo;\n  const field = dimInfo.qGroupFieldDefs[dimInfo.qGroupPos];\n  const expression = getFrequencyMaxExpression(field);\n  const evaluadedExpression = await app.evaluateEx(expression);\n  return evaluadedExpression.qNumber;\n};\n","import { useState, useEffect } from 'react';\nimport { getFrequencyMax, needToFetchFrequencyMax } from '../utils/frequencyMaxUtil';\n\nconst useFrequencyMax = (app, layout) => {\n  const needFetch = needToFetchFrequencyMax(layout);\n  const [frequencyMax, setFrequencyMax] = useState();\n  const [awaitingFrequencyMax, setAwaitingFrequencyMax] = useState(needFetch);\n\n  useEffect(() => {\n    if (!needFetch) {\n      return;\n    }\n    const fetch = async () => {\n      const newValue = await getFrequencyMax(layout, app);\n      setFrequencyMax(newValue);\n      setAwaitingFrequencyMax(false);\n    };\n    fetch();\n  }, [needFetch && layout]);\n\n  return {\n    frequencyMax: needFetch ? frequencyMax : layout?.frequencyMax,\n    awaitingFrequencyMax,\n  };\n};\n\nexport default useFrequencyMax;\n","/* eslint no-underscore-dangle:0 */\nimport React, { useEffect, useState, useCallback, useRef, useContext } from 'react';\nimport InfiniteLoader from 'react-window-infinite-loader';\nimport { styled } from '@mui/material';\nimport useSelectionsInteractions from './hooks/selections/useSelectionsInteractions';\nimport getListBoxComponents from './components/grid-list-components/grid-list-components';\nimport useListSizes from './assets/list-sizes';\nimport getHorizontalMinBatchSize from './assets/horizontal-minimum-batch-size';\nimport useItemsLoader from './hooks/useItemsLoader';\nimport getListCount from './components/list-count';\nimport useDataStore from './hooks/useDataStore';\nimport ListBoxDisclaimer from './components/ListBoxDisclaimer';\nimport ListBoxFooter from './components/ListBoxFooter';\nimport getScrollIndex from './interactions/listbox-get-scroll-index';\nimport getFrequencyAllowed from './components/grid-list-components/frequency-allowed';\nimport useFrequencyMax from './hooks/useFrequencyMax';\nimport getScreenReaderAssertiveText from './components/screen-reader/assertive-screen-reader';\nimport InstanceContext from '../../contexts/InstanceContext';\nimport deduceFrequencyMode from './utils/deduce-frequency-mode';\n\nconst DEFAULT_MIN_BATCH_SIZE = 100;\n\nconst StyledWrapper = styled('div')(() => ({\n  [`& .screenReaderOnly`]: {\n    position: 'absolute',\n    height: 0,\n    width: 0,\n    overflow: 'hidden',\n  },\n}));\n\nexport default function ListBox({\n  model,\n  app,\n  constraints,\n  layout,\n  selections,\n  selectionState,\n  direction,\n  checkboxes: checkboxOption,\n  height,\n  width,\n  frequencyMode,\n  update = undefined,\n  fetchStart = undefined,\n  postProcessPages = undefined,\n  calculatePagesHeight = false,\n  keyboard = {},\n  showGray = true,\n  scrollState,\n  keyScroll = { state: {}, reset: () => {} },\n  currentScrollIndex = { set: () => {} },\n  renderedCallback,\n  onCtrlF,\n  showSearch,\n  isModal,\n  styles,\n}) {\n  const { translator: translatorDynamic } = useContext(InstanceContext);\n  const [initScrollPosIsSet, setInitScrollPosIsSet] = useState(false);\n  const isSingleSelect = !!(layout && layout.qListObject.qDimensionInfo.qIsOneAndOnlyOne);\n  const { checkboxes = checkboxOption, histogram } = layout ?? {};\n\n  const loaderRef = useRef(null);\n  const local = useRef({\n    queue: [],\n    validPages: false,\n    dataOffset: 0,\n  });\n\n  const listData = useRef({\n    pages: [],\n  });\n\n  // The time from scroll end until new data is being fetched, may be exposed in API later on.\n  const scrollTimeout = 0;\n\n  const { frequencyMax, awaitingFrequencyMax } = useFrequencyMax(app, layout);\n  // eslint-disable-next-line no-unused-vars\n  const { isLoadingData, ...itemsLoader } = useItemsLoader({\n    local,\n    loaderRef,\n    model,\n    fetchStart,\n    scrollTimeout,\n    postProcessPages,\n    listData,\n  });\n  const { getStoreValue, setStoreValue } = useDataStore(model);\n  const loadMoreItems = useCallback(itemsLoader.loadMoreItems, [layout]);\n\n  const [overflowDisclaimer, setOverflowDisclaimer] = useState({ show: false, dismissed: false });\n  const showOverflowDisclaimer = (show) => setOverflowDisclaimer((state) => ({ ...state, show }));\n\n  const [pages, setPages] = useState([]);\n\n  if (itemsLoader?.pages) {\n    selectionState.update({\n      setPages,\n      pages: itemsLoader.pages,\n      isSingleSelect,\n      layout,\n    });\n  }\n\n  const cardinal = layout?.qListObject.qDimensionInfo.qCardinal;\n\n  if ((itemsLoader?.pages.length && !awaitingFrequencyMax) || cardinal === 0) {\n    // All necessary data fetching done - signal rendering done!\n    renderedCallback?.();\n  }\n\n  const isItemLoaded = useCallback(\n    (index) => {\n      if (!pages?.length || !local.current.validPages) {\n        return false;\n      }\n      local.current.checkIdx = index;\n      const isLoaded = (p) => p.qArea.qTop <= index && index < p.qArea.qTop + p.qArea.qHeight;\n      const page = pages.filter((p) => isLoaded(p))[0];\n      return page && isLoaded(page);\n    },\n    [layout, pages]\n  );\n\n  const { interactionEvents, select } = useSelectionsInteractions({\n    selectionState,\n    selections,\n    checkboxes,\n    doc: document,\n    loaderRef,\n  });\n\n  const { layoutOptions = {} } = layout || {};\n\n  let isRow = true;\n  if (layoutOptions.dataLayout) {\n    isRow = layoutOptions.dataLayout === 'singleColumn' ? true : layoutOptions?.layoutOrder === 'row';\n  }\n\n  const isGrid = layoutOptions?.dataLayout === 'grid';\n\n  const scrollToIndex = (index) => {\n    const gridIndex = {\n      ...(isRow ? { rowIndex: index } : { columnIndex: index }),\n    };\n    const scrollIndex = isGrid ? gridIndex : index;\n    loaderRef.current._listRef.scrollToItem(scrollIndex);\n  };\n\n  const fetchData = () => {\n    local.current.queue = [];\n    local.current.validPages = false;\n    if (loaderRef.current) {\n      loaderRef.current.resetloadMoreItemsCache(true);\n      const isScrollingToEnd = keyScroll.state.scrollPosition === 'overflowEnd';\n      // Skip scrollToItem if we are in selections or if scrolling to the end.\n      if ((layout && layout.qSelectionInfo.qInSelections) || isScrollingToEnd) {\n        if (isScrollingToEnd) {\n          keyScroll.reset();\n        }\n        return;\n      }\n      local.current.dataOffset = 0;\n      scrollToIndex(0);\n    }\n  };\n\n  if (update) {\n    // Hand over the update function for manual refresh from hosting application.\n    update.call(null, fetchData);\n  }\n\n  useEffect(() => {\n    if (scrollState && !initScrollPosIsSet && loaderRef.current) {\n      loaderRef.current._listRef.scrollToItem(scrollState.initScrollPos);\n      setInitScrollPosIsSet(true);\n    }\n  }, [loaderRef.current]);\n\n  useEffect(() => {\n    fetchData();\n  }, [layout, local.current.dataOffset]);\n\n  let minimumBatchSize = DEFAULT_MIN_BATCH_SIZE;\n\n  const isVertical = layoutOptions.dataLayout !== 'grid';\n\n  const count = layout?.qListObject.qSize?.qcy;\n\n  const unlimitedListCount = getListCount({\n    pages,\n    minimumBatchSize,\n    count,\n    calculatePagesHeight,\n    layoutOptions,\n    model,\n  });\n\n  let freqIsAllowed = getFrequencyAllowed({ itemWidth: width, layout, frequencyMode });\n  const deducedFrequencyMode = deduceFrequencyMode(pages);\n  const sizes = useListSizes({\n    layout,\n    width,\n    height,\n    listCount: unlimitedListCount,\n    count,\n    freqIsAllowed,\n    checkboxes,\n    styles,\n  });\n  if (sizes.columnWidth) {\n    // In grid mode, where we have a dynamic item width, get a second opinion on showing/hiding frequency.\n    freqIsAllowed = getFrequencyAllowed({ itemWidth: sizes.columnWidth, layout, frequencyMode });\n  }\n\n  const { listCount } = sizes;\n  setStoreValue('listCount', listCount);\n\n  const searchInputText = getStoreValue('inputText');\n  const screenReaderText = getScreenReaderAssertiveText({ layout, searchInputText, listCount });\n\n  const setScrollPosition = (position) => {\n    const { scrollIndex, offset, triggerRerender } = getScrollIndex({\n      position,\n      isRow,\n      sizes,\n      layout,\n      offset: local.current.dataOffset,\n    });\n    local.current.dataOffset = offset;\n    if (triggerRerender) {\n      selectionState.triggerStateChanged();\n    }\n    scrollToIndex(scrollIndex);\n  };\n\n  useEffect(() => {\n    const s = keyScroll.state;\n    if (s.up) {\n      scrollToIndex(currentScrollIndex.state.start - s.up);\n    } else if (s.down) {\n      scrollToIndex(currentScrollIndex.state.stop + s.down);\n    } else if (s.scrollPosition) {\n      setScrollPosition(s.scrollPosition);\n    }\n    if (s.scrollPosition === 'overflowEnd') {\n      return; // Do keyScroll.reset() in fetchData() to avoid scrolling to top.\n    }\n    keyScroll.reset();\n  }, [keyScroll.state.up, keyScroll.state.down, keyScroll.state.scrollPosition]);\n\n  const { textAlign } = layout?.qListObject.qDimensionInfo || {};\n\n  const [focusListItem, setFocusListItem] = useState({ first: false, last: false });\n  const getFocusState = () => ({\n    first: focusListItem.first,\n    setFirst: (first) => setFocusListItem((prevState) => ({ ...prevState, first })),\n    last: focusListItem.last,\n    setLast: (last) => setFocusListItem((prevState) => ({ ...prevState, last })),\n  });\n\n  const selectAll = () => {\n    selectionState.clearItemStates(false);\n    model.selectListObjectAll('/qListObjectDef');\n  };\n\n  const { List, Grid } = getListBoxComponents({\n    direction,\n    layout,\n    height,\n    width,\n    checkboxes,\n    deducedFrequencyMode,\n    histogram,\n    keyboard,\n    showGray,\n    interactionEvents,\n    select,\n    selectAll,\n    onCtrlF,\n    textAlign,\n    isVertical,\n    pages,\n    selectionState,\n    isSingleSelect,\n    selections,\n    scrollState,\n    local,\n    sizes,\n    listCount,\n    overflowDisclaimer: { state: overflowDisclaimer, set: showOverflowDisclaimer },\n    setScrollPosition,\n    focusListItems: getFocusState(),\n    setCurrentScrollIndex: currentScrollIndex.set,\n    constraints,\n    frequencyMax,\n    freqIsAllowed,\n    translator: translatorDynamic,\n    showSearch,\n    isModal,\n    styles,\n  });\n\n  const { columnWidth, listHeight, itemHeight } = sizes || {};\n  if (!isVertical) {\n    minimumBatchSize = getHorizontalMinBatchSize({ width, columnWidth, listHeight, itemHeight });\n  }\n\n  return (\n    <StyledWrapper>\n      <div className=\"screenReaderOnly\" aria-live=\"assertive\" aria-atomic=\"true\">\n        {screenReaderText}\n      </div>\n      {!listCount && cardinal > 0 && <ListBoxDisclaimer width={width} text=\"Listbox.NoMatchesForYourTerms\" />}\n      <InfiniteLoader\n        isItemLoaded={isItemLoaded}\n        itemCount={listCount || 1} // must be more than 0 or loadMoreItems will never be called again\n        loadMoreItems={loadMoreItems.with({ minimumBatchSize })}\n        threshold={0}\n        minimumBatchSize={minimumBatchSize}\n        ref={loaderRef}\n        role=\"grid\"\n      >\n        {isVertical ? List : Grid}\n      </InfiniteLoader>\n      {overflowDisclaimer.show && !overflowDisclaimer.dismissed && (\n        <ListBoxFooter\n          text=\"Listbox.ItemsOverflow\"\n          dismiss={() => setOverflowDisclaimer((state) => ({ ...state, dismissed: true }))}\n          parentWidth={loaderRef?.current?._listRef?.props?.width}\n          dense={layoutOptions?.dense}\n        />\n      )}\n    </StyledWrapper>\n  );\n}\n","import { useState } from 'react';\n\n/* eslint-disable no-param-reassign */\nexport default function useItemsLoader({\n  local,\n  loaderRef,\n  model,\n  fetchStart,\n  scrollTimeout,\n  postProcessPages,\n  listData,\n}) {\n  const [isLoading, setIsLoading] = useState(false);\n  const [pages, setPages] = useState([]);\n  let [minimumBatchSize] = useState(0);\n\n  const loadMoreItems = (startIndex, stopIndex) => {\n    const offset = local.current.dataOffset;\n    local.current.queue.push({\n      start: startIndex + offset,\n      stop: stopIndex + offset,\n    });\n\n    const isScrolling = loaderRef.current\n      ? // eslint-disable-next-line no-underscore-dangle\n        loaderRef.current._listRef && loaderRef.current._listRef.state.isScrolling\n      : false;\n\n    if (local.current.queue.length > 10) {\n      local.current.queue.shift();\n    }\n    clearTimeout(local.current.timeout);\n    setIsLoading(true);\n    return new Promise((resolve) => {\n      local.current.timeout = setTimeout(\n        () => {\n          const lastItemInQueue = local.current.queue.slice(-1)[0];\n          if (!lastItemInQueue) {\n            setIsLoading(false);\n            resolve();\n            return;\n          }\n          const reqPromise = model\n            .getListObjectData(\n              '/qListObjectDef',\n              // we need to ask for two payloads\n              // 2nd one is our starting index + minimumBatchSize items\n              // 1st one is 2nd ones starting index - minimumBatchSize items\n              // we do this because we don't want to miss any items between fast scrolls\n              [\n                {\n                  qTop: lastItemInQueue.start > minimumBatchSize ? lastItemInQueue.start - minimumBatchSize : 0,\n                  qHeight: minimumBatchSize,\n                  qLeft: 0,\n                  qWidth: 1,\n                },\n                {\n                  qTop: lastItemInQueue.start,\n                  qHeight: minimumBatchSize,\n                  qLeft: 0,\n                  qWidth: 1,\n                },\n              ]\n            )\n            .then((p) => {\n              const processedPages = postProcessPages ? postProcessPages(p) : p;\n              local.current.validPages = true;\n              listData.current.pages = processedPages;\n              setPages(processedPages);\n              setIsLoading(false);\n              resolve();\n            });\n          fetchStart && fetchStart(reqPromise);\n        },\n        isScrolling ? scrollTimeout : 0\n      );\n    });\n  };\n\n  return {\n    loadMoreItems: {\n      with({ minimumBatchSize: m }) {\n        if (m) {\n          minimumBatchSize = m;\n        }\n        return loadMoreItems;\n      },\n    },\n    pages,\n    isLoading,\n  };\n}\n","const getCalculatedHeight = ({ pages = [], minimumBatchSize, count }) => {\n  // If values have been filtered in the currently loaded page, we want to\n  // prevent rendering empty rows by assigning the actual number of items to render\n  // since count (qcy) does not reflect this in DQ mode currently.\n  const hasFilteredValues = pages.some((page) => page.qArea.qHeight < minimumBatchSize);\n  const h = Math.max(...pages.map((page) => page.qArea.qTop + page.qArea.qHeight));\n  const out = hasFilteredValues ? h : count;\n  return out;\n};\n\nexport default function getListCount({ pages, minimumBatchSize, count, calculatePagesHeight = false }) {\n  const listCount =\n    pages?.length && calculatePagesHeight ? getCalculatedHeight({ pages, minimumBatchSize, count }) : count;\n  return listCount || 0;\n}\n","export default function deduceFrequencyMode(pages) {\n  const hasPercentSign = pages.some(({ qMatrix }) => qMatrix.some(([item]) => !!item.qFrequency?.match('%')));\n  const OTHER = '-'; // treat all other as '-' (change later if we need to identify other modes)\n  return hasPercentSign ? 'P' : OTHER;\n}\n","import calculateColumnMode from './column-mode';\nimport calculateRowMode from './row-mode';\nimport {\n  ITEM_MAX_WIDTH,\n  ITEM_MIN_WIDTH,\n  SCROLL_BAR_WIDTH,\n  CHECKBOX_WIDTH,\n  REMOVE_TICK_LIMIT,\n  GRID_ITEM_PADDING,\n} from '../../constants';\nimport useTextWidth from '../../hooks/useTextWidth';\nimport getMeasureText from '../measure-text';\nimport getItemHeight from './item-height';\n\nexport default function useListSizes({ layout, width, height, listCount, count, freqIsAllowed, checkboxes, styles }) {\n  const { layoutOptions = {} } = layout || {};\n  const { layoutOrder, maxVisibleRows = {}, maxVisibleColumns, dense, dataLayout } = layoutOptions;\n\n  const { fontSize = '12px', fontFamily = 'Source sans pro' } = styles?.content || {};\n  const font = `${fontSize} ${fontFamily}`; // font format as supported by HTML canvas\n  const textWidth = useTextWidth({ text: getMeasureText(layout), font });\n  const freqMinWidth = useTextWidth({ text: getMeasureText(5), font });\n  const freqMaxWidth = useTextWidth({ text: getMeasureText(8), font });\n  const frequencyAddWidth = freqIsAllowed ? freqMinWidth : 0;\n  const checkboxAddWidth = checkboxes ? CHECKBOX_WIDTH : 0;\n  const tickIconWidth = CHECKBOX_WIDTH;\n\n  let dynamicItemMinWidth = ITEM_MIN_WIDTH + frequencyAddWidth + checkboxAddWidth;\n  if (!checkboxes && dynamicItemMinWidth >= REMOVE_TICK_LIMIT) {\n    dynamicItemMinWidth += tickIconWidth;\n  }\n\n  let columnAutoWidth = textWidth + 18 + frequencyAddWidth + checkboxAddWidth;\n  if (!checkboxes && columnAutoWidth >= REMOVE_TICK_LIMIT) {\n    columnAutoWidth += tickIconWidth;\n  }\n  columnAutoWidth = Math.min(ITEM_MAX_WIDTH, Math.max(columnAutoWidth, dynamicItemMinWidth));\n\n  let overflowStyling;\n  let columnCount;\n  let columnWidth;\n  let rowCount;\n  const isGridMode = dataLayout === 'grid';\n\n  const itemHeight = getItemHeight({ isGridMode, dense });\n\n  const listHeight = height ?? 8 * itemHeight;\n\n  if (layoutOrder) {\n    // Modify container width to achieve the exact design with 8px margins on each side (left and right).\n    let containerWidth = width;\n\n    if (layoutOrder === 'row') {\n      overflowStyling = { overflowX: 'hidden' };\n      containerWidth += GRID_ITEM_PADDING * 2;\n      ({ rowCount, columnWidth, columnCount } = calculateRowMode({\n        maxVisibleColumns,\n        listCount,\n        containerWidth,\n        columnAutoWidth,\n        itemMinWidth: dynamicItemMinWidth,\n      }));\n    } else {\n      overflowStyling = { overflowY: 'hidden' };\n\n      ({ rowCount, columnWidth, columnCount } = calculateColumnMode({\n        maxVisibleRows,\n        itemHeight,\n        listCount,\n        listHeight,\n        columnAutoWidth,\n        containerWidth,\n        itemMinWidth: dynamicItemMinWidth,\n      }));\n    }\n  }\n\n  columnCount = (dataLayout === 'singleColumn' ? 1 : columnCount) || 1;\n  rowCount = (dataLayout === 'singleColumn' ? count : rowCount) || listCount;\n  const maxRowCount = layoutOptions.dense ? 838000 : 577000; // Styling breaks on items above this number: https://github.com/bvaughn/react-window/issues/659\n  rowCount = Math.min(rowCount, maxRowCount);\n  const maxScrollWidth = 33550000; // Styling breaks on items above this width: https://github.com/bvaughn/react-window/issues/659\n  const maxColumnCount = Math.floor(maxScrollWidth / columnWidth);\n  columnCount = Math.min(columnCount, maxColumnCount) || 1;\n\n  const maxListCount = rowCount * columnCount;\n  const limitedListCount = Math.min(listCount, maxListCount);\n\n  return {\n    columnCount,\n    columnWidth,\n    rowCount,\n    overflowStyling,\n    itemHeight,\n    listHeight,\n    listWidth: width,\n    scrollBarWidth: SCROLL_BAR_WIDTH,\n    count,\n    listCount: limitedListCount,\n    maxCount: { row: maxRowCount, column: maxColumnCount },\n    itemPadding: GRID_ITEM_PADDING,\n    textWidth,\n    freqMinWidth,\n    freqMaxWidth,\n  };\n}\n","import { SCROLL_BAR_WIDTH } from '../../constants';\n\nexport default function calculateRowMode({\n  maxVisibleColumns,\n  listCount,\n  containerWidth,\n  columnAutoWidth,\n  itemMinWidth,\n}) {\n  const maxColumns = maxVisibleColumns?.maxColumns || 3;\n  const innerWidth = containerWidth - SCROLL_BAR_WIDTH;\n\n  let columnCount;\n  const autoColumnCount = Math.min(\n    listCount,\n    Math.max(1, Math.round(innerWidth / Math.max(itemMinWidth, columnAutoWidth)))\n  ); // TODO: smarter sizing... based on glyph count + font size etc...??\n  if (maxVisibleColumns?.auto !== false) {\n    columnCount = autoColumnCount;\n  } else {\n    columnCount = Math.min(listCount, maxColumns, autoColumnCount);\n  }\n\n  columnCount = Math.max(columnCount, 1);\n\n  const columnWidth = innerWidth / columnCount;\n  const rowCount = Math.ceil(listCount / columnCount);\n  return {\n    rowCount,\n    columnWidth,\n    columnCount,\n  };\n}\n","export default function calculateColumnMode({\n  maxVisibleRows,\n  itemHeight,\n  listCount,\n  listHeight,\n  columnAutoWidth,\n  containerWidth,\n  itemMinWidth,\n}) {\n  let rowCount;\n  const maxRows = maxVisibleRows?.maxRows || 3;\n  const autoRowCount = Math.floor(listHeight / itemHeight);\n  if (maxVisibleRows.auto !== false) {\n    rowCount = autoRowCount;\n  } else {\n    rowCount = Math.min(listCount, maxRows, autoRowCount);\n  }\n\n  rowCount = Math.max(rowCount, 1);\n\n  const columnCount = Math.ceil(listCount / rowCount);\n  const columnWidth = Math.max(columnAutoWidth, containerWidth / columnCount, itemMinWidth);\n\n  return {\n    columnWidth,\n    columnCount,\n    rowCount,\n  };\n}\n","import { useContext } from 'react';\nimport InstanceContext from '../../../../contexts/InstanceContext';\n\n/**\n * Announces the selection state.\n *\n * @ignore\n * @param {Layout} object\n * @returns {string}\n */\nfunction getSRForSelectedState({ layout, translatorDynamic }) {\n  const { qStateCounts: s = {} } = layout?.qListObject?.qDimensionInfo || {};\n\n  const count = s.qSelected + s.qSelectedExcluded + s.qLocked + s.qLockedExcluded;\n\n  let t;\n  switch (count) {\n    case 0:\n      t = 'ScreenReader.ZeroSelected';\n      break;\n    case 1:\n      t = 'ScreenReader.OneSelected';\n      break;\n    default:\n      t = 'ScreenReader.ManySelected';\n      break;\n  }\n\n  const text = translatorDynamic.get(t, [count]);\n  return text;\n}\n\nfunction getSearchTranslationString(listCount) {\n  let t;\n  switch (listCount) {\n    case 0:\n      t = 'Listbox.NoMatchesForYourTerms';\n      break;\n    case 1:\n      t = 'ScreenReader.OneSearchResult';\n      break;\n    default:\n      t = 'ScreenReader.ManySearchResults';\n      break;\n  }\n\n  return t;\n}\n\nexport default function getScreenReaderAssertiveText({ layout, searchInputText, listCount }) {\n  const { translator: translatorDynamic } = useContext(InstanceContext);\n  const finalStringArr = [];\n  if (searchInputText?.length) {\n    // Add search result text.\n    const srSearchTranslationString = getSearchTranslationString(listCount);\n    const srSearchString = translatorDynamic.get(srSearchTranslationString, [listCount]);\n    finalStringArr.push(srSearchString);\n  }\n\n  // Add selection value text.\n  const srSelectionValueText = getSRForSelectedState({ layout, translatorDynamic });\n  finalStringArr.push(srSelectionValueText);\n\n  // Merge texts into one text string, targeting the assertive screen reader.\n  const finalString = finalStringArr.filter((v) => !!v?.length).join('. ');\n  return finalString;\n}\n","const getOffset = (layout, listCount) => {\n  const totalLength = layout.qListObject.qDimensionInfo.qCardinal;\n  const offset = totalLength - listCount;\n  return offset;\n};\n\nexport default function getScrollIndex({ position, isRow, sizes, layout, offset }) {\n  let scrollIndex;\n  let triggerRerender = false;\n  let newOffset = offset ?? 0;\n  switch (position) {\n    case 'start':\n      scrollIndex = 0;\n      break;\n    case 'end':\n      scrollIndex = isRow ? sizes.rowCount : sizes.columnCount;\n      break;\n    case 'overflowStart':\n      newOffset = 0;\n      scrollIndex = 0;\n      triggerRerender = true;\n      break;\n    case 'overflowEnd':\n      newOffset = getOffset(layout, sizes.listCount);\n      scrollIndex = layout.qListObject.qDimensionInfo.qCardinal;\n      triggerRerender = true;\n      break;\n    default:\n      break;\n  }\n\n  return { scrollIndex, offset: newOffset, triggerRerender };\n}\n","export default function deriveRenderOptions(options) {\n  const { renderProps, scrollState, layoutOrder, rowCount, columnCount } = options;\n\n  const {\n    overscanRowStartIndex,\n    overscanRowStopIndex,\n    overscanColumnStartIndex,\n    overscanColumnStopIndex,\n    visibleStopIndex: initialVisibleStopIndex,\n  } = renderProps;\n\n  if (scrollState) {\n    scrollState.setScrollPos(initialVisibleStopIndex);\n  }\n\n  let toTheLeftOfStart;\n  let aboveStart;\n\n  let toTheLeftOfEnd;\n  let aboveEnd;\n\n  if (layoutOrder === 'column') {\n    toTheLeftOfStart = overscanColumnStartIndex * rowCount;\n    aboveStart = overscanRowStartIndex;\n\n    toTheLeftOfEnd = overscanColumnStopIndex * rowCount;\n    aboveEnd = overscanRowStopIndex;\n  } else {\n    toTheLeftOfStart = overscanColumnStartIndex;\n    aboveStart = overscanRowStartIndex * columnCount;\n\n    toTheLeftOfEnd = overscanColumnStopIndex;\n    aboveEnd = overscanRowStopIndex * columnCount;\n  }\n\n  const visibleStartIndex = toTheLeftOfStart + aboveStart;\n  const visibleStopIndex = toTheLeftOfEnd + aboveEnd;\n\n  return {\n    visibleStartIndex,\n    visibleStopIndex,\n  };\n}\n","export default function getHorizontalMinBatchSize({ width, columnWidth, listHeight, itemHeight }) {\n  const visibleCellsCount = Math.ceil(width / columnWidth) * Math.ceil(listHeight / itemHeight);\n  const minSize = visibleCellsCount * 2;\n  return minSize;\n}\n","import SvgIcon from './SvgIcon';\n\nconst selectAll = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectAll(props));\nexport { selectAll };\n","import SvgIcon from './SvgIcon';\n\nconst selectAlternative = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectAlternative(props));\nexport { selectAlternative };\n","import SvgIcon from './SvgIcon';\n\nconst selectPossible = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectPossible(props));\nexport { selectPossible };\n","import SvgIcon from './SvgIcon';\n\nconst selectExcluded = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectExcluded(props));\nexport { selectExcluded };\n","import { selectAll } from '@nebula.js/ui/icons/select-all';\nimport { selectAlternative } from '@nebula.js/ui/icons/select-alternative';\nimport { selectPossible } from '@nebula.js/ui/icons/select-possible';\nimport { selectExcluded } from '@nebula.js/ui/icons/select-excluded';\n\nexport default ({ layout, model, translator, selectionState, isDirectQuery = false, selections }) => {\n  if (layout.qListObject.qDimensionInfo.qIsOneAndOnlyOne) {\n    return [];\n  }\n  const path = '/qListObjectDef';\n  const activateSelection = () => {\n    if (!selections.isActive()) {\n      selections.begin(path);\n    }\n  };\n  const canSelectAll = () =>\n    ['qOption', 'qAlternative', 'qExcluded', 'qDeselected'].some(\n      (sc) => layout.qListObject.qDimensionInfo.qStateCounts[sc] > 0\n    );\n  const canSelectPossible = () => ['qOption'].some((sc) => layout.qListObject.qDimensionInfo.qStateCounts[sc] > 0);\n  const canSelectAlternative = () =>\n    ['qAlternative'].some((sc) => layout.qListObject.qDimensionInfo.qStateCounts[sc] > 0);\n  const canSelectExcluded = () =>\n    ['qAlternative', 'qExcluded'].some((sc) => layout.qListObject.qDimensionInfo.qStateCounts[sc] > 0);\n\n  return [\n    {\n      key: 'selectAll',\n      type: 'menu-icon-button',\n      label: translator.get('Selection.SelectAll'),\n      getSvgIconShape: selectAll,\n      enabled: canSelectAll,\n      action: () => {\n        activateSelection();\n        selectionState.clearItemStates(false);\n        model.selectListObjectAll(path);\n      },\n    },\n    {\n      key: 'selectPossible',\n      type: 'menu-icon-button',\n      label: translator.get('Selection.SelectPossible'),\n      getSvgIconShape: selectPossible,\n      enabled: canSelectPossible,\n      action: () => {\n        activateSelection();\n        selectionState.clearItemStates(false);\n        model.selectListObjectPossible(path);\n      },\n    },\n    isDirectQuery\n      ? false\n      : {\n          key: 'selectAlternative',\n          type: 'menu-icon-button',\n          label: translator.get('Selection.SelectAlternative'),\n          getSvgIconShape: selectAlternative,\n          enabled: canSelectAlternative,\n          action: () => {\n            activateSelection();\n            selectionState.clearItemStates(false);\n            model.selectListObjectAlternative(path);\n          },\n        },\n    isDirectQuery\n      ? false\n      : {\n          key: 'selectExcluded',\n          type: 'menu-icon-button',\n          label: translator.get('Selection.SelectExcluded'),\n          getSvgIconShape: selectExcluded,\n          enabled: canSelectExcluded,\n          action: () => {\n            activateSelection();\n            selectionState.clearItemStates(false);\n            model.selectListObjectExcluded(path);\n          },\n        },\n  ].filter(Boolean);\n};\n","import SvgIcon from './SvgIcon';\n\nconst more = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z',\n      },\n    },\n  ],\n});\n\nexport default (props) => SvgIcon(more(props));\nexport { more };\n","import { useTheme } from '@nebula.js/ui/theme';\n\nexport default function useActionState(item) {\n  const theme = useTheme();\n  const disabled = typeof item.enabled === 'function' ? !item.enabled() : !!item.disabled;\n  const hasSvgIconShape = typeof item.getSvgIconShape === 'function';\n\n  return {\n    hidden: item.hidden === true,\n    disabled,\n    style: {\n      backgroundColor: item.active ? theme.palette.btn.active : undefined,\n    },\n    hasSvgIconShape,\n  };\n}\n","import React from 'react';\n\nimport { IconButton } from '@mui/material';\n\nimport SvgIcon from '@nebula.js/ui/icons/SvgIcon';\nimport { useTheme } from '@nebula.js/ui/theme';\n\nimport useActionState from '../hooks/useActionState';\n\n/**\n * @interface\n * @extends HTMLElement\n * @since 2.0.0\n */\nconst ActionElement = {\n  /** @type {'njs-cell-action'} */\n  className: 'njs-cell-action',\n};\n\nconst Item = React.forwardRef(({ item, addAnchor = false }, ref) => {\n  const theme = useTheme();\n  const { hidden, disabled, style, hasSvgIconShape } = useActionState(item);\n  if (hidden) return null;\n\n  const spacing = Number.parseInt(theme.spacing(0.5), 10);\n\n  const keyboardAction = item.keyboardAction || item.action;\n  const handleKeyDown = keyboardAction ? (e) => ['Enter'].includes(e.key) && keyboardAction() : null;\n  const handleKeyUp = keyboardAction ? (e) => [' ', 'Spacebar'].includes(e.key) && keyboardAction() : null;\n\n  const btnId = `actions-toolbar-${item.key}`;\n  const buttonRef = item.ref || (!addAnchor ? ref : null);\n\n  return (\n    <IconButton\n      ref={buttonRef}\n      title={item.label}\n      onClick={item.action}\n      onKeyDown={handleKeyDown}\n      onKeyUp={handleKeyUp}\n      disabled={disabled}\n      style={style}\n      className={[ActionElement.className, btnId].join(' ')}\n      size=\"large\"\n      disableRipple\n      aria-label={item.label}\n      data-testid={btnId}\n    >\n      {hasSvgIconShape && SvgIcon(item.getSvgIconShape())}\n      {addAnchor && (\n        <div\n          ref={ref}\n          style={{\n            bottom: -spacing,\n            right: 0,\n            position: 'absolute',\n            width: '100%',\n            height: 0,\n          }}\n        />\n      )}\n    </IconButton>\n  );\n});\n\nexport default Item;\n","import SvgIcon from './SvgIcon';\n\nconst close = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z',\n      },\n    },\n  ],\n});\n\nexport default (props) => SvgIcon(close(props));\nexport { close };\n","import SvgIcon from './SvgIcon';\n\nconst clearSelections = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z',\n      },\n    },\n  ],\n});\n\nexport default (props) => SvgIcon(clearSelections(props));\nexport { clearSelections };\n","import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport { Popover, MenuList, MenuItem, ListItemIcon, Typography } from '@mui/material';\n\nimport SvgIcon from '@nebula.js/ui/icons/SvgIcon';\n\nimport useActionState from '../hooks/useActionState';\n\nconst PREFIX = 'More';\n\nconst ActionsToolbarMoreElement = {\n  className: 'njs-action-toolbar-more',\n};\n\nconst classes = {\n  icon: `${PREFIX}-icon`,\n};\n\nconst StyledPopover = styled(Popover)(({ theme }) => ({\n  // Set here to allow clicking through the modals container\n  pointerEvents: 'none',\n  [`& .${classes.icon} *`]: {\n    color: theme.palette.text.primary,\n  },\n}));\n\nfunction MoreItem({ item, autoFocus, onActionClick = () => {} }) {\n  const { hidden, disabled, hasSvgIconShape } = useActionState(item);\n\n  const handleClick = () => {\n    item.action();\n    onActionClick();\n  };\n  return !hidden ? (\n    <MenuItem autoFocus={autoFocus} title={item.label} onClick={handleClick} disabled={disabled} tabindex=\"0\">\n      {hasSvgIconShape && <ListItemIcon className={classes.icon}>{SvgIcon(item.getSvgIconShape())}</ListItemIcon>}\n      <Typography noWrap>{item.label}</Typography>\n    </MenuItem>\n  ) : null;\n}\n\nconst More = React.forwardRef(\n  (\n    {\n      actions = [],\n      show = true,\n      alignTo,\n      popoverProps = {},\n      popoverPaperStyle = {},\n      onCloseOrActionClick = () => {},\n      disablePortal = true,\n    },\n    ref\n  ) => {\n    const showActions = actions.length > 0;\n    const autoFocusIndex = actions.findIndex((action) => !action.disabled);\n\n    return (\n      showActions && (\n        <StyledPopover\n          // eslint-disable-next-line react/jsx-props-no-spreading\n          {...popoverProps}\n          onClose={onCloseOrActionClick}\n          ref={ref}\n          open={show}\n          anchorEl={alignTo.current}\n          getContentAnchorEl={disablePortal ? null : undefined}\n          container={disablePortal ? alignTo.current : undefined}\n          disablePortal={disablePortal}\n          hideBackdrop\n          transitionDuration={0}\n          slotProps={{\n            root: {\n              className: ActionsToolbarMoreElement.className,\n            },\n            paper: {\n              style: {\n                pointerEvents: 'auto',\n                maxWidth: '250px',\n                ...popoverPaperStyle,\n              },\n            },\n          }}\n          anchorOrigin={{\n            vertical: 'bottom',\n            horizontal: 'right',\n          }}\n          transformOrigin={{\n            vertical: 'top',\n            horizontal: 'right',\n          }}\n        >\n          <MenuList id=\"moreMenuList\">\n            {actions.map((item, ix) => (\n              // eslint-disable-next-line react/no-array-index-key\n              <MoreItem key={ix} item={item} autoFocus={ix === autoFocusIndex} onActionClick={onCloseOrActionClick} />\n            ))}\n          </MenuList>\n        </StyledPopover>\n      )\n    );\n  }\n);\n\nexport default More;\n","import React, { useState, useContext, useRef, useEffect, useMemo } from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport { Grid, Divider, Popover } from '@mui/material';\n\nimport { more as moreIcon } from '@nebula.js/ui/icons/more';\nimport { useTheme } from '@nebula.js/ui/theme';\n\nimport Item from './ActionsToolbarItem';\nimport useDefaultSelectionActions from '../hooks/useDefaultSelectionActions';\nimport InstanceContext from '../contexts/InstanceContext';\nimport More from './ActionsToolbarMore';\nimport getActionsKeyDownHandler from './actions-toolbar-keydown';\n\nconst PREFIX = 'ActionsToolbar';\n\nconst classes = {\n  item: `${PREFIX}-item`,\n  itemSpacing: `${PREFIX}-itemSpacing`,\n};\n\nconst StyledPopover = styled(Popover)(({ theme }) => ({\n  [`& .${classes.itemSpacing}`]: {\n    padding: theme.spacing(0, 0.25),\n  },\n}));\n\n/**\n * @interface\n * @extends HTMLElement\n * @since 2.1.0\n */\nconst ActionToolbarElement = {\n  /** @type {'njs-action-toolbar-popover'} */\n  className: 'njs-action-toolbar-popover',\n};\n\nconst ActionsGroup = React.forwardRef(({ className, actions = [], addAnchor = false, isRtl = false }, ref) =>\n  actions.length > 0 ? (\n    <Grid container gap={0} flexDirection={isRtl ? 'row-reverse' : 'row'} wrap=\"nowrap\" className={className}>\n      {actions.map((e, ix) => (\n        <Grid key={e.key} className={`${classes.itemSpacing} ${classes.item}`}>\n          <Item key={e.key} item={e} ref={ix === 0 ? ref : null} addAnchor={addAnchor} />\n        </Grid>\n      ))}\n    </Grid>\n  ) : null\n);\n\nconst popoverStyle = { pointerEvents: 'none' };\n\nfunction ActionsToolbar({\n  show = true,\n  actions = [],\n  maxItems = 3,\n  selections = {\n    show: false,\n    api: null,\n    onConfirm: () => {},\n    onCancel: () => {},\n  },\n  extraItems,\n  more = {\n    enabled: false,\n    actions: [],\n    alignTo: null,\n    popoverProps: {},\n    popoverPaperStyle: {},\n    disablePortal: true,\n  },\n  popover = {\n    show: false,\n    anchorEl: null,\n  },\n  focusHandler = null,\n  actionsRefMock = null, // for testing\n  isRtl,\n  autoConfirm = false,\n  layout,\n}) {\n  const defaultSelectionActions = useDefaultSelectionActions({ ...selections, layout });\n\n  const { translator, keyboardNavigation } = useContext(InstanceContext);\n  const [showMoreItems, setShowMoreItems] = useState(false);\n\n  const popoverAnchorOrigin = {\n    vertical: 12,\n    horizontal: isRtl ? 0 : (popover.anchorEl?.clientWidth ?? 0) - 7,\n  };\n\n  const popoverTransformOrigin = {\n    vertical: 'bottom',\n    horizontal: isRtl ? -7 : 'right',\n  };\n\n  const actionsRef = useRef();\n  const moreRef = useRef();\n  const theme = useTheme();\n  const dividerStyle = useMemo(() => ({ margin: theme.spacing(0.5, 0) }));\n\n  const getEnabledButton = (last) => {\n    const actionsElement = actionsRef.current || actionsRefMock;\n    if (!actionsElement) return null;\n    const buttons = actionsElement.querySelectorAll('button:not(.Mui-disabled)');\n    return buttons[last ? buttons.length - 1 : 0];\n  };\n\n  const handleActionsKeyDown = useMemo(\n    () => getActionsKeyDownHandler({ keyboardNavigation, focusHandler, getEnabledButton, selections, isRtl }),\n    [keyboardNavigation, focusHandler, getEnabledButton, selections, isRtl]\n  );\n\n  useEffect(\n    () => () => {\n      setShowMoreItems(false);\n    },\n    [popover.show, show, selections.show]\n  );\n\n  useEffect(() => {\n    if (!focusHandler) return;\n\n    const focusFirst = () => {\n      const enabledButton = getEnabledButton(false);\n      enabledButton?.focus();\n    };\n    const focusLast = () => {\n      const enabledButton = getEnabledButton(true);\n      enabledButton?.focus();\n    };\n    focusHandler.on('focus_toolbar_first', focusFirst);\n    focusHandler.on('focus_toolbar_last', focusLast);\n  }, []);\n\n  if (autoConfirm) {\n    return undefined;\n  }\n\n  let moreEnabled = more.enabled;\n  let moreActions = more.actions;\n  const moreAlignTo = more.alignTo || moreRef;\n  const newActions = actions.filter((a) => !a.hidden);\n  if (newActions.length > maxItems) {\n    const newMoreActions = newActions.splice(-(newActions.length - maxItems) - 1);\n    moreEnabled = true;\n    moreActions = [...newMoreActions, ...more.actions];\n  }\n\n  if (!selections.show && newActions.length === 0 && !moreEnabled) return null;\n\n  const handleCloseShowMoreItems = () => {\n    setShowMoreItems(false);\n  };\n\n  const moreItem = {\n    key: 'more',\n    label: translator.get('Menu.More'), // TODO: Add translation\n    getSvgIconShape: moreIcon,\n    hidden: false,\n    active: showMoreItems,\n    enabled: () => moreEnabled,\n    action: () => setShowMoreItems(!showMoreItems),\n  };\n\n  const showActions = newActions.length > 0;\n  const showMore = moreActions.length > 0;\n  const showDivider = (showActions && selections.show) || (showMore && selections.show);\n\n  const Actions = (\n    <Grid\n      ref={actionsRef}\n      onKeyDown={handleActionsKeyDown}\n      container\n      gap={0}\n      wrap=\"nowrap\"\n      id=\"actions-toolbar\"\n      data-testid=\"actions-toolbar\"\n      sx={{ flexDirection: isRtl ? 'row-reverse' : 'row' }}\n    >\n      {extraItems?.length && (\n        <ActionsGroup className=\"actions-toolbar-extra-actions\" actions={extraItems} isRtl={isRtl} />\n      )}\n      {showActions && <ActionsGroup actions={newActions} />}\n      {showMore && (\n        <ActionsGroup\n          id=\"actions-toolbar-show-more\"\n          data-testid=\"actions-toolbar-show-more\"\n          ref={moreRef}\n          actions={[moreItem]}\n          addAnchor\n        />\n      )}\n      {showDivider && (\n        <Grid className={classes.itemSpacing} style={dividerStyle}>\n          <Divider orientation=\"vertical\" />\n        </Grid>\n      )}\n      {selections.show && (\n        <ActionsGroup className=\"actions-toolbar-default-actions\" actions={defaultSelectionActions} isRtl={isRtl} />\n      )}\n      {showMoreItems && (\n        <More\n          show={showMoreItems}\n          actions={moreActions}\n          alignTo={moreAlignTo}\n          popoverProps={more.popoverProps}\n          popoverPaperStyle={more.popoverPaperStyle}\n          onCloseOrActionClick={handleCloseShowMoreItems}\n          disablePortal={more.disablePortal}\n        />\n      )}\n    </Grid>\n  );\n\n  return popover.show ? (\n    <StyledPopover\n      disableEnforceFocus\n      disableAutoFocus\n      disableRestoreFocus\n      open={popover.show}\n      anchorEl={popover.anchorEl}\n      anchorOrigin={popoverAnchorOrigin}\n      transformOrigin={popoverTransformOrigin}\n      hideBackdrop\n      style={popoverStyle}\n      onMouseDown={(e) => {\n        e.stopPropagation(); // prevent click through, closing when it should not\n      }}\n      slotProps={{\n        paper: {\n          id: 'njs-action-toolbar-popover',\n          'data-testid': 'njs-action-toolbar-popover',\n          className: ActionToolbarElement.className,\n          style: {\n            pointerEvents: 'auto',\n            padding: theme.spacing(0.5, 0.25),\n          },\n        },\n      }}\n    >\n      {Actions}\n    </StyledPopover>\n  ) : (\n    show && Actions\n  );\n}\n\nexport default ActionsToolbar;\n","import { useContext } from 'react';\n\nimport { close } from '@nebula.js/ui/icons/close';\nimport { tick } from '@nebula.js/ui/icons/tick';\nimport { clearSelections } from '@nebula.js/ui/icons/clear-selections';\nimport InstanceContext from '../contexts/InstanceContext';\n\nexport default function useDefaultSelectionActions({\n  api,\n  layout,\n  onConfirm = () => {},\n  onCancel = () => {},\n  onKeyDeactivate = () => {},\n}) {\n  const { translator } = useContext(InstanceContext);\n  return [\n    {\n      key: 'clear',\n      type: 'icon-button',\n      label: translator.get('Selection.Clear'),\n      enabled: () => api.canClear(layout),\n      action: () => api.clear(),\n      getSvgIconShape: clearSelections,\n    },\n    {\n      key: 'cancel',\n      type: 'icon-button',\n      label: translator.get('Selection.Cancel'),\n      enabled: () => api.canCancel(layout),\n      action: () => {\n        onCancel();\n        api.cancel();\n      },\n      keyboardAction: () => {\n        onKeyDeactivate();\n        onCancel();\n        api.cancel();\n      },\n      getSvgIconShape: close,\n    },\n    {\n      key: 'confirm',\n      type: 'icon-button',\n      label: translator.get('Selection.Confirm'),\n      enabled: () => api.canConfirm(layout),\n      action: () => {\n        onConfirm();\n        api.confirm();\n      },\n      keyboardAction: () => {\n        onKeyDeactivate();\n        onConfirm();\n        api.confirm();\n      },\n      getSvgIconShape: tick,\n    },\n  ];\n}\n","import KEYS from '../keys';\n\nconst getActionButtonIndex = (btn) => {\n  const toolbar = btn.closest('#actions-toolbar');\n  const nodeList = toolbar?.querySelectorAll('.njs-cell-action');\n  return Array.from(nodeList).indexOf(btn);\n};\n\nconst focusButton = (index) => {\n  const toolbar = document.querySelector('#actions-toolbar');\n  const nodeList = toolbar?.querySelectorAll('.njs-cell-action');\n  if (!nodeList.length) {\n    return;\n  }\n  const ix = Math.min(Math.max(0, index), nodeList.length - 1);\n  const btn = nodeList[ix];\n  btn.focus();\n};\n\nexport default function getActionsKeyDownHandler({\n  keyboardNavigation,\n  focusHandler,\n  getEnabledButton,\n  selections,\n  isRtl,\n}) {\n  const handleActionsKeyDown = (evt) => {\n    const { target, nativeEvent } = evt;\n    const { keyCode } = nativeEvent;\n    switch (keyCode) {\n      case KEYS.ARROW_LEFT:\n      case KEYS.ARROW_DOWN:\n      case KEYS.ARROW_RIGHT:\n      case KEYS.ARROW_UP: {\n        const isActionButton = target.classList.contains('njs-cell-action');\n        if (isActionButton) {\n          const index = getActionButtonIndex(target);\n          let pressedLeft = [KEYS.ARROW_LEFT, KEYS.ARROW_DOWN].includes(keyCode);\n          pressedLeft = isRtl ? !pressedLeft : pressedLeft; // invert direction when using RTL\n          focusButton(pressedLeft ? index - 1 : index + 1);\n        }\n        evt.stopPropagation();\n        evt.preventDefault();\n        break;\n      }\n      case KEYS.SPACE:\n        evt.preventDefault(); // prevent scrolling in listbox\n        break;\n      case KEYS.TAB:\n        if (keyboardNavigation && focusHandler?.refocusContent) {\n          const isTabbingOut =\n            (evt.shiftKey && getEnabledButton(false) === evt.target) ||\n            (!evt.shiftKey && getEnabledButton(true) === evt.target);\n          if (isTabbingOut) {\n            evt.preventDefault();\n            evt.stopPropagation();\n            // if keyboardNavigation is true, create a callback to handle tabbing from the first/last button in the toolbar that resets focus on the content\n            focusHandler.refocusContent();\n          }\n        }\n        break;\n      case KEYS.ESCAPE:\n        if (selections) {\n          selections.onCancel();\n          selections.api.cancel();\n          evt.preventDefault();\n          evt.stopPropagation();\n        }\n        break;\n      default:\n        break;\n    }\n  };\n\n  return handleActionsKeyDown;\n}\n","import SvgIcon from './SvgIcon';\n\nconst search = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(search(props));\nexport { search as remove };\n","import React, { useContext, useState, useEffect, useRef, useImperativeHandle, forwardRef } from 'react';\nimport { InputAdornment, OutlinedInput, IconButton } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport Search from '@nebula.js/ui/icons/search';\nimport Close from '@nebula.js/ui/icons/close';\nimport InstanceContext from '../../../contexts/InstanceContext';\nimport useDataStore from '../hooks/useDataStore';\nimport { CELL_PADDING_LEFT } from '../constants';\nimport { focusCyclicButton, focusRow } from '../interactions/keyboard-navigation/keyboard-nav-methods';\n\nconst MAX_SEARCH_LENGTH = 64000;\nconst TREE_PATH = '/qListObjectDef';\nconst WILDCARD = '**';\n\nconst limitSearchLength = (val) => val?.substring(0, MAX_SEARCH_LENGTH);\n\nconst StyledOutlinedInput = styled(OutlinedInput, {\n  shouldForwardProp: (p) => !['styles', 'dense', 'isRtl'].includes(p),\n})(({ styles, dense, isRtl }) => {\n  let denseProps = {};\n  if (dense) {\n    denseProps = {\n      fontSize: 12,\n      '& input': {\n        paddingTop: '5px',\n        paddingBottom: '5px',\n        color: styles.search.color,\n        textAlign: isRtl ? 'right' : 'left',\n      },\n    };\n  }\n  return {\n    display: 'flex',\n    border: 'none',\n    fontSize: 14,\n    borderRadius: 0,\n    backgroundColor: styles.search.backgroundColor,\n    backdropFilter: styles.background.backgroundImage ? styles.search.backdropFilter : undefined,\n    paddingLeft: 0,\n    paddingRight: 0,\n    flexDirection: isRtl ? 'row-reverse' : 'row',\n\n    '& fieldset': {\n      borderColor: `${styles.search.borderColor}`,\n      borderWidth: '1px 0 1px 0',\n      borderRadius: 0,\n    },\n    '&.Mui-focused fieldset': {\n      borderColor: `${styles.search.highlightBorderColor} !important`,\n    },\n    '& .MuiInputBase-root': {\n      ...styles.search,\n    },\n    '& *': {\n      color: styles.search.color,\n    },\n    '& input': {\n      color: styles.search.color,\n      textAlign: isRtl ? 'right' : 'left',\n    },\n    ...denseProps,\n  };\n});\n\nconst StyledIconButton = styled(IconButton)(() => ({\n  border: 0,\n  padding: '8px',\n  cursor: 'pointer',\n  lineHeight: '12px',\n  '&:hover': {\n    backgroundColor: 'transparent',\n  },\n  ':focus-visible': {\n    borderRadius: '4px',\n    boxShadow: 'inset 0 0 0 2px rgb(2, 117, 217)',\n  },\n}));\n\nfunction ListBoxSearch(\n  {\n    popoverOpen,\n    selections,\n    selectionState,\n    model,\n    keyboard,\n    dense = false,\n    visible = true,\n    autoFocus = true,\n    beginSelectionOnFocus = true,\n    wildCardSearch = false,\n    searchEnabled,\n    direction,\n    hide,\n    styles,\n  },\n  ref\n) {\n  const { translator } = useContext(InstanceContext);\n  const [value, setValue] = useState('');\n  const [wildcardOn, setWildcardOn] = useState(false);\n  const inputRef = useRef();\n  const clearSearchRef = useRef();\n  const clearSearchText = translator.get('Listbox.Clear.Search');\n\n  const { getStoreValue, setStoreValue } = useDataStore(model);\n  const isRtl = direction === 'rtl';\n\n  const cancel = () => selections.cancel();\n\n  const abortSearch = async () => {\n    try {\n      await model.abortListObjectSearch(TREE_PATH);\n    } finally {\n      setValue('');\n    }\n  };\n\n  useEffect(() => {\n    if (visible) {\n      return () => abortSearch(); // abort when toggling off search\n    }\n    return () => {};\n  }, [visible]);\n\n  useEffect(() => {\n    selections.on('deactivated', abortSearch);\n    return () => {\n      selections.removeListener && selections.removeListener('deactivated', abortSearch);\n    };\n  }, []);\n\n  useEffect(() => {\n    if (wildcardOn && inputRef.current) {\n      const cursorPos = value.length - 1;\n      inputRef.current.setSelectionRange(cursorPos, cursorPos); // place the cursor in the wildcard\n      setWildcardOn(false);\n    }\n  }, [wildcardOn, inputRef.current]);\n\n  useEffect(() => {\n    setStoreValue('inputText', value);\n  }, [value]);\n\n  const onChange = async (e) => {\n    const searchValue = limitSearchLength(e.target.value);\n    setValue(searchValue);\n    if (!searchValue.length) {\n      return abortSearch();\n    }\n    return model.searchListObjectFor(TREE_PATH, searchValue);\n  };\n  const beginSelection = () => {\n    const shouldBeginSelection = !selectionState.selectDisabled() && !selections.isModal();\n    if (shouldBeginSelection) {\n      selections.begin('/qListObjectDef');\n    }\n  };\n\n  const handleFocus = () => {\n    if (wildCardSearch) {\n      setValue(WILDCARD);\n      setWildcardOn(true);\n    }\n    if (beginSelectionOnFocus) {\n      beginSelection();\n    }\n  };\n\n  const hasHits = () => {\n    const listCount = getStoreValue(`listCount`);\n    return listCount > 0;\n  };\n\n  const performSearch = async () => {\n    let response;\n    const searchValue = limitSearchLength(value);\n    const success = await model.searchListObjectFor(TREE_PATH, searchValue);\n    if (selectionState.selectDisabled()) {\n      return success;\n    }\n    if (success && searchValue.length && hasHits()) {\n      response = model.acceptListObjectSearch(TREE_PATH, true);\n      // eslint-disable-next-line no-param-reassign\n      selections.selectionsMade = true;\n      selectionState.clearItemStates(false);\n      setValue('');\n    }\n    return response;\n  };\n\n  const onKeyDown = async (e) => {\n    const { currentTarget } = e;\n    const container = currentTarget.closest('.listbox-container');\n    switch (e.key) {\n      case 'Enter':\n        performSearch();\n        break;\n      case 'Escape': {\n        focusRow(container);\n        cancel();\n        if (popoverOpen) {\n          return undefined;\n        }\n        break;\n      }\n      case 'Tab': {\n        if (e.shiftKey) {\n          if (!focusCyclicButton(container)) {\n            keyboard.focusSelection();\n          }\n        } else if (clearSearchRef.current) {\n          clearSearchRef.current.focus();\n        } else {\n          // Focus the row we last visited or the first one.\n          focusRow(container);\n        }\n        break;\n      }\n      case 'f':\n      case 'F':\n        if (e.ctrlKey || e.metaKey) {\n          if (hide) {\n            hide();\n            // Focus the row we last visited or the first one.\n            focusRow(container);\n          }\n        } else {\n          return undefined;\n        }\n        break;\n      default:\n        return undefined;\n    }\n    e.preventDefault();\n    e.stopPropagation();\n    return undefined;\n  };\n\n  const focusOnInput = () => {\n    inputRef.current?.focus();\n  };\n\n  const onClearSearch = () => {\n    abortSearch();\n    focusOnInput();\n  };\n\n  const onKeyDownClearSearch = (e) => {\n    const container = e.currentTarget.closest('.listbox-container');\n    switch (e.key) {\n      case 'Enter':\n        onClearSearch();\n        break;\n      case 'Tab': {\n        if (e.shiftKey) {\n          focusOnInput();\n        } else {\n          // Focus the row we last visited or the first one.\n          focusRow(container);\n        }\n        break;\n      }\n      default:\n        return undefined;\n    }\n    e.preventDefault();\n    e.stopPropagation();\n    return undefined;\n  };\n  useImperativeHandle(ref, () => ({\n    focus() {\n      focusOnInput();\n    },\n  }));\n\n  if (!visible || searchEnabled === false) {\n    return null;\n  }\n\n  return (\n    <>\n      <StyledOutlinedInput\n        styles={styles}\n        dense={dense}\n        isRtl={isRtl}\n        startAdornment={\n          <InputAdornment position=\"start\" sx={{ marginLeft: dense ? '8px' : `${CELL_PADDING_LEFT}px` }}>\n            <Search size={dense ? 'small' : 'normal'} />\n          </InputAdornment>\n        }\n        endAdornment={\n          <InputAdornment position=\"end\" sx={{ marginLeft: 0 }}>\n            {value !== '' && (\n              <StyledIconButton\n                tabIndex={0}\n                ref={clearSearchRef}\n                title={clearSearchText}\n                aria-label={clearSearchText}\n                onClick={onClearSearch}\n                onKeyDown={onKeyDownClearSearch}\n              >\n                <Close size={dense ? 'small' : 'normal'} />\n              </StyledIconButton>\n            )}\n          </InputAdornment>\n        }\n        className=\"search\"\n        inputRef={inputRef}\n        size=\"small\"\n        fullWidth\n        placeholder={translator.get('Listbox.Search')}\n        value={value}\n        onFocus={handleFocus}\n        onChange={onChange}\n        onKeyDown={onKeyDown}\n        autoFocus={autoFocus}\n        inputProps={{\n          tabIndex: keyboard.innerTabStops ? 0 : -1,\n          'data-testid': 'search-input-field',\n          'aria-label': translator.get('Listbox.Search'),\n          'aria-describedby': 'listbox-search-instructions',\n        }}\n      />\n      {/* Invisible or visually hidden instructions */}\n      <span\n        id=\"listbox-search-instructions\"\n        style={{\n          position: 'absolute',\n          height: 0,\n          width: 0,\n          overflow: 'hidden',\n        }}\n      >\n        {translator.get('Listbox.Search.ScreenReaderInstructions')}\n      </span>\n    </>\n  );\n}\n\nexport default forwardRef(ListBoxSearch);\n","/* eslint no-underscore-dangle: 0 */\nimport { useContext, useEffect } from 'react';\nimport InstanceContext from '../contexts/InstanceContext';\n\nfunction createAppSelections({ app, selectionStore }) {\n  const key = `${app.id}`;\n  const { modalObjectStore, appModalStore } = selectionStore;\n\n  const end = async (accept = true) => {\n    const { model, objectSelections } = modalObjectStore.get(key) || {};\n    if (model) {\n      await model.endSelections(accept);\n      modalObjectStore.clear(key);\n      objectSelections.emit('deactivated');\n    }\n  };\n\n  const begin = async ({ model, paths, accept = true, objectSelections }) => {\n    // Quick return if it's already in modal\n    if (objectSelections === modalObjectStore.get(key)?.objectSelections) {\n      return;\n    }\n\n    // If other model is in modal state end it\n    end(accept);\n\n    // Pending modal\n    modalObjectStore.set(key, { model, objectSelections });\n\n    const p = Array.isArray(paths) ? paths : [paths];\n    const beginSelections = async (skipRetry) => {\n      try {\n        await model.beginSelections(p);\n        modalObjectStore.set(key, { model, objectSelections }); // We have a modal\n      } catch (err) {\n        if (err.code === 6003 && !skipRetry) {\n          await app.abortModal(accept);\n          beginSelections(true);\n        } else {\n          modalObjectStore.clear(key); // No modal\n        }\n      }\n    };\n    await beginSelections();\n  };\n\n  const appModal = {\n    begin,\n    end,\n  };\n\n  appModalStore.set(key, appModal);\n\n  /**\n   * @class\n   * @alias AppSelections\n   */\n  const appSelections = {\n    model: app,\n    isInModal() {\n      return !!modalObjectStore.get(key);\n    },\n    isModal(objectSelections) {\n      // TODO check model state\n      return objectSelections\n        ? modalObjectStore.get(key)?.objectSelections === objectSelections\n        : !!modalObjectStore.get(key);\n    },\n    forward() {\n      return appModal.end().then(() => app.forward());\n    },\n    back() {\n      return appModal.end().then(() => app.back());\n    },\n    clear() {\n      return appModal.end().then(() => app.clearAll());\n    },\n    clearField(field, state = '$') {\n      return appModal.end().then(() => app.getField(field, state).then((f) => f.clear()));\n    },\n  };\n  return appSelections;\n}\nexport default function useAppSelections(app) {\n  if (!app.session) {\n    // assume the app is mocked if session is undefined\n    return [];\n  }\n  const { selectionStore } = useContext(InstanceContext);\n\n  const [appSelectionsStore] = selectionStore.useAppSelectionsStore();\n  const key = app ? app.id : null;\n  let appSelections = appSelectionsStore.get(key);\n\n  useEffect(() => {\n    if (!app || appSelections) return;\n    appSelections = createAppSelections({ app, selectionStore });\n    appSelectionsStore.set(key, appSelections);\n    appSelectionsStore.dispatch(true);\n  }, [app]);\n\n  return [appSelections];\n}\n","import EventEmitter from 'node-event-emitter';\n\nexport default function (obj) {\n  /* eslint no-param-reassign: 0 */\n  Object.keys(EventEmitter.prototype).forEach((key) => {\n    obj[key] = EventEmitter.prototype[key];\n  });\n  EventEmitter.init(obj);\n  return obj;\n}\n","/* eslint no-underscore-dangle: 0 */\nimport { useContext, useEffect, useState } from 'react';\nimport useAppSelections from './useAppSelections';\nimport eventmixin from '../selections/event-mixin';\nimport useLayout from './useLayout';\nimport InstanceContext from '../contexts/InstanceContext';\n\nconst event = () => {\n  let prevented = false;\n  return {\n    isPrevented: () => prevented,\n    preventDefault: () => {\n      prevented = true;\n    },\n  };\n};\n\nfunction createHandler({ elements, handleClickOutside }) {\n  const handler = (evt) => {\n    const targetStillExists = document.contains(evt.target);\n    if (!targetStillExists) {\n      return;\n    }\n\n    // Resolve elements and filter out containers which do not exist.\n    const containers = elements\n      .map((item) => {\n        const elm = typeof item === 'string' ? document.querySelector(item) : item?.current;\n        return elm;\n      })\n      .filter((elm) => !!elm && !!document.contains(elm));\n\n    if (!containers.length) {\n      return;\n    }\n\n    const isWithinSomeContainer = containers.some((elm) => elm.contains(evt.target));\n\n    const isClickOutside = !isWithinSomeContainer;\n    if (isClickOutside) {\n      handleClickOutside(evt);\n    }\n  };\n  return handler;\n}\n\nconst createObjectSelections = ({ appSelections, appModal, model }) => {\n  let layout;\n  let isActive = false;\n  let hasSelected = false;\n\n  /**\n   * Event listener function on instance\n   *\n   * @method\n   * @name ObjectSelections#addListener\n   * @param {string} eventType event type that function needs to listen\n   * @param {Function} callback a callback function to run when event emits\n   * @example\n   * api.addListener('someEvent', () => {...});\n   */\n\n  /**\n   * Remove listener function on instance\n   *\n   * @method\n   * @name ObjectSelections#removeListener\n   * @param {string} eventType event type that function needs to listen\n   * @param {Function} callback a callback function to run when event emits\n   * @example\n   * api.removeListener('someEvent', () => {...});\n   */\n\n  /**\n   * @class\n   * @alias ObjectSelections\n   */\n  const api = /** @lends ObjectSelections# */ {\n    // model,\n    id: model.id,\n    setLayout(lyt) {\n      layout = lyt;\n    },\n    /**\n     * @param {string[]} paths\n     * @returns {Promise<undefined>}\n     */\n    begin(paths) {\n      const e = event();\n      // TODO - event as parameter?\n      this.emit('activate', e);\n      if (e.isPrevented()) {\n        return Promise.resolve();\n      }\n      isActive = true;\n      this.emit('activated');\n      return appModal.begin({ model, paths, accept: true, objectSelections: api });\n    },\n    /**\n     * @returns {Promise<undefined>}\n     */\n    clear() {\n      hasSelected = false;\n      this.emit('cleared');\n      if (layout.qListObject) {\n        return model.clearSelections('/qListObjectDef');\n      }\n      return model.resetMadeSelections();\n    },\n    /**\n     * @returns {Promise<undefined>}\n     */\n    confirm() {\n      hasSelected = false;\n      isActive = false;\n      this.emit('confirmed');\n      this.emit('deactivated');\n      return appModal.end(true);\n    },\n    /**\n     * @returns {Promise<undefined>}\n     */\n    cancel() {\n      hasSelected = false;\n      isActive = false;\n      this.emit('canceled'); // FIXME - spelling?\n      this.emit('deactivated');\n      return appModal.end(false);\n    },\n    /**\n     * @param {object} s\n     * @param {string} s.method\n     * @param {any[]} s.params\n     * @returns {Promise<boolean>}\n     */\n    async select(s) {\n      const b = this.begin([s.params[0]]);\n      if (!appSelections.isModal()) {\n        return false;\n      }\n      await b;\n      const qSuccess = await model[s.method](...s.params);\n      hasSelected = s.method !== 'resetMadeSelections';\n      if (!qSuccess) {\n        model.resetMadeSelections();\n        return false;\n      }\n      return true;\n    },\n    /**\n     * @returns {boolean}\n     */\n    canClear() {\n      if (layout && layout.qListObject && layout.qListObject.qDimensionInfo) {\n        return !layout.qListObject.qDimensionInfo.qLocked && !layout.qListObject.qDimensionInfo.qIsOneAndOnlyOne;\n      }\n      return hasSelected;\n    },\n    /**\n     * @returns {boolean}\n     */\n    canConfirm() {\n      if (layout && layout.qListObject && layout.qListObject.qDimensionInfo) {\n        return !layout.qListObject.qDimensionInfo.qLocked;\n      }\n      return hasSelected;\n    },\n    /**\n     * @returns {boolean}\n     */\n    canCancel() {\n      if (layout && layout.qListObject && layout.qListObject.qDimensionInfo) {\n        return !layout.qListObject.qDimensionInfo.qLocked;\n      }\n      return true;\n    },\n    /**\n     * @returns {boolean}\n     */\n    isActive: () => isActive,\n    /**\n     * @returns {boolean}\n     */\n    isModal: () => appSelections.isModal(api),\n    /**\n     * @param {string[]} paths\n     * @returns {Promise<undefined>}\n     */\n    goModal: (paths) => appModal.begin({ model, paths, accept: false, objectSelections: api }),\n    /**\n     * @param {boolean} [accept=false]\n     * @returns {Promise<undefined>}\n     */\n    noModal: (accept = false) => appModal.end(accept),\n  };\n\n  eventmixin(api);\n\n  return api;\n};\n\nconst getClickOutFuncs = ({ elements, objectSelections, options = {} }) => {\n  const handler = createHandler({\n    elements,\n    handleClickOutside: () => objectSelections.confirm.call(objectSelections),\n  });\n\n  return {\n    activateClickOut() {\n      document.addEventListener('mousedown', handler);\n      options?.onSelectionActivated?.();\n    },\n    deactivateClickOut() {\n      document.removeEventListener('mousedown', handler);\n      options?.onSelectionDeactivated?.();\n    },\n  };\n};\n\nexport default function useObjectSelections(app, model, elements, options) {\n  const elementsArr = Array.isArray(elements) ? elements : [elements];\n\n  const [appSelections] = useAppSelections(app);\n  const [layout] = useLayout(model);\n  const { appModalStore } = useContext(InstanceContext).selectionStore;\n  const appModal = appModalStore.get(app.id);\n  const [objectSelections, setObjectSelections] = useState();\n\n  useEffect(() => {\n    if (!appSelections || !model || objectSelections) return;\n    setObjectSelections(\n      createObjectSelections({\n        appSelections,\n        appModal,\n        model,\n      })\n    );\n  }, [appSelections, model]);\n\n  useEffect(() => {\n    if (!objectSelections) return () => {};\n\n    const { activateClickOut, deactivateClickOut } = getClickOutFuncs({\n      elements: elementsArr,\n      objectSelections,\n      options,\n    });\n\n    objectSelections.addListener('activated', activateClickOut);\n    objectSelections.addListener('deactivated', deactivateClickOut);\n\n    return () => {\n      // confirm selection before removing event handler\n      // to end the selection when the object is removed\n      // and remove the (ClickOut) mousedown handler from the document\n      if (objectSelections.isActive()) {\n        objectSelections.confirm();\n      }\n      objectSelections.removeListener('activated', activateClickOut);\n      objectSelections.removeListener('deactivated', deactivateClickOut);\n    };\n  }, [objectSelections]);\n\n  useEffect(() => {\n    if (!objectSelections) return;\n\n    objectSelections.setLayout(layout);\n  }, [objectSelections, layout]);\n\n  return [objectSelections];\n}\n","import { getSelectedValues } from './listbox-selections';\n\nexport default function selectionState(initialState = {}) {\n  const state = {\n    itemStates: {},\n    ignoreSelectionState: false,\n    selectedInEngine: [],\n    enginePages: [],\n    setPages: undefined,\n    lastRowCount: undefined,\n    lastApprMaxGlyphCount: undefined,\n    selectDisabled: undefined,\n    ...initialState,\n\n    update({ setPages, pages, isSingleSelect, selectDisabled, layout }) {\n      this.setPages = setPages;\n      const isSameRowCount = this.lastRowCount === layout.qListObject.qSize.qcy;\n      const isSameMaxGlyphCnt = this.lastApprMaxGlyphCount === layout.qListObject.qDimensionInfo.qApprMaxGlyphCount;\n\n      if (!isSameRowCount || !isSameMaxGlyphCnt) {\n        this.lastRowCount = layout.qListObject.qSize.qcy;\n        this.lastApprMaxGlyphCount = layout.qListObject.qDimensionInfo.qApprMaxGlyphCount;\n\n        // The field have probably changed (drill up/down)\n        // need to clear the client side item states since the field values have changed\n        this.clearItemStates(false);\n      }\n\n      if (state.enginePages !== pages && pages !== undefined) {\n        state.enginePages = pages ?? [];\n        state.selectedInEngine = getSelectedValues(pages);\n        state.selectableValuesUpdating = false;\n        state.triggerStateChanged();\n      }\n      state.isSingleSelect = isSingleSelect;\n      state.selectDisabled = selectDisabled || state.selectDisabled;\n      state.isDimCalculated = layout?.qListObject?.qDimensionInfo?.qIsCalculated ?? false;\n    },\n\n    allowedToSelect() {\n      if (state.selectDisabled()) {\n        return false;\n      }\n      // When a dim is calculated, the rows must be done updating after previeous selection\n      return !(state.isDimCalculated && state.selectableValuesUpdating);\n    },\n\n    setSelectableValuesUpdating() {\n      state.selectableValuesUpdating = true;\n    },\n\n    useClientItemState(elementNumber) {\n      return state.ignoreSelectionState || elementNumber in state.itemStates;\n    },\n\n    isSelected(elementNumber) {\n      if (state.useClientItemState(elementNumber)) {\n        return !!state.itemStates[elementNumber];\n      }\n      return state.selectedInEngine.includes(elementNumber);\n    },\n\n    getState(item) {\n      const { qElemNumber, qState } = item;\n      if (!state.useClientItemState(qElemNumber)) {\n        return qState;\n      }\n      if (state.itemStates[qElemNumber]) {\n        return qState === 'XS' ? 'XS' : 'S';\n      }\n      return qState === 'S' || qState === 'XS' ? 'A' : qState;\n    },\n\n    updateItemNoEvents(elementNumber, additive, selectedValues) {\n      const selected = state.isSelected(elementNumber);\n\n      if (selected && !additive) {\n        state.itemStates[elementNumber] = false;\n      } else if (!selected) {\n        selectedValues?.push(elementNumber);\n        state.itemStates[elementNumber] = true;\n      }\n    },\n\n    triggerStateChanged() {\n      if (this.setPages) {\n        const pages = state.applySelectionsOnPages(state.enginePages);\n        this.setPages(pages);\n      }\n    },\n\n    applySelectionsOnPages(pages) {\n      const matrices = pages.map((page) => {\n        const qMatrix = page.qMatrix.map((p) => {\n          const [p0] = p;\n          const qState = state.getState(p0);\n          return [{ ...p0, qState }, ...p.slice(1)];\n        });\n        return { ...page, qMatrix };\n      });\n      return matrices;\n    },\n\n    updateItem(elementNumber, additive, selectedValues) {\n      state.updateItemNoEvents(elementNumber, additive, selectedValues);\n      state.triggerStateChanged();\n    },\n\n    updateItems(elementNumbers, additive, selectedValues) {\n      elementNumbers.forEach((elementNumber) => {\n        state.updateItemNoEvents(elementNumber, additive, selectedValues);\n      });\n      state.triggerStateChanged();\n    },\n\n    clearItemStates(ignoreSelectionState) {\n      state.itemStates = {};\n      state.ignoreSelectionState = ignoreSelectionState;\n    },\n  };\n  return state;\n}\n","const getValue = (obj, prop, defaultValue = undefined) => obj?.[prop] ?? defaultValue;\n\nexport default function hasSelections(layout) {\n  const counts = layout?.qListObject.qDimensionInfo.qStateCounts || {};\n  const totalCounts =\n    getValue(counts, 'qSelected', 0) +\n    getValue(counts, 'qSelectedExcluded', 0) +\n    getValue(counts, 'qLocked', 0) +\n    getValue(counts, 'qLockedExcluded', 0);\n  return totalCounts > 0;\n}\n","/*\n* qlik-chart-modules v0.103.0\n* Copyright (c) 2026 QlikTech International AB\n* Released under the MIT license.\n*/\n\nfunction e(e){return null!==e&&\"object\"==typeof e&&\"r\"in e&&\"number\"==typeof e.r&&\"g\"in e&&\"number\"==typeof e.g&&\"b\"in e&&\"number\"==typeof e.b&&(\"number\"==typeof e.a||void 0===e.a)}function t(t){if(\"object\"==typeof t&&e(t))return(t.r<<16)+(t.g<<8)+t.b;let n=0,r=0,i=0;if(\"string\"==typeof t){let e;(e=/^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(t))?(n=parseInt(e[1],10),r=parseInt(e[2],10),i=parseInt(e[3],10)):(e=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(t))?(n=parseInt(e[1],16),r=parseInt(e[2],16),i=parseInt(e[3],16)):(e=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(t))&&(n=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16))}return(n<<16)+(r<<8)+i}const n={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};const r=\"qcm-color\";function i(...t){const i={type:r,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let o=0,a=0,l=0,s=1;if(null!==(c=t[0])&&\"object\"==typeof c&&\"type\"in c&&c.type===r)({r:o,g:a,b:l,a:s}=t[0]),i.invalid=t[0].invalid,i.spaces={...t[0].spaces};else if(e(t[0]))({r:o,g:a,b:l}=t[0]),\"a\"in t[0]&&({a:s}=t[0]);else if(t.length<3)if(\"string\"==typeof t[0]){const e=t[0];let r;if(r=/^rgb\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(e))o=parseInt(r[1],10),a=parseInt(r[2],10),l=parseInt(r[3],10);else if(r=/^rgba\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d(\\.\\d+)?)\\s*\\)$/i.exec(e))o=parseInt(r[1],10),a=parseInt(r[2],10),l=parseInt(r[3],10),s=parseFloat(r[4]);else if(r=/^ARGB\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*\\)$/i.exec(e))s=parseInt(r[1],10)/255,o=parseInt(r[2],10),a=parseInt(r[3],10),l=parseInt(r[4],10);else if(r=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))o=parseInt(r[1],16),a=parseInt(r[2],16),l=parseInt(r[3],16),s=1;else if(r=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))o=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16),s=1;else if(r=/^hsl\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*\\)$/i.exec(e)){let e=parseFloat(r[1]),t=parseFloat(r[3]),n=parseFloat(r[5]);e%=360,t/=100,n/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,n=n<0?0:n>1?1:n;const i=n<=.5?2*n*t:(2-2*n)*t;let c=e/60;const u=i*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[i,u,0];break;case 1:d=[u,i,0];break;case 2:d=[0,i,u];break;case 3:d=[0,u,i];break;case 4:d=[u,0,i];break;case 5:d=[i,0,u];break;default:d=[0,0,0]}const f=n-.5*i;o=d[0]+f,a=d[1]+f,l=d[2]+f,o=Math.round(255*o),a=Math.round(255*a),l=Math.round(255*l),s=1}else if(r=/^hsla\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d(\\.\\d+)?)\\s*\\)$/i.exec(e)){let e=parseFloat(r[1]),t=parseFloat(r[3]),n=parseFloat(r[5]);s=parseFloat(r[7]),e%=360,t/=100,n/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,n=n<0?0:n>1?1:n;const i=n<=.5?2*n*t:(2-2*n)*t;let c=e/60;const u=i*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[i,u,0];break;case 1:d=[u,i,0];break;case 2:d=[0,i,u];break;case 3:d=[0,u,i];break;case 4:d=[u,0,i];break;case 5:d=[i,0,u];break;default:d=[0,0,0]}const f=n-.5*i;o=d[0]+f,a=d[1]+f,l=d[2]+f,o=Math.round(255*o),a=Math.round(255*a),l=Math.round(255*l)}else if(r=/^hsv\\(\\s*(\\d+(\\.\\d+)?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*,\\s*(\\d+(\\.\\d+)?%?)\\s*\\)$/i.exec(e)){let e=parseFloat(r[1]),t=parseFloat(r[3]),n=parseFloat(r[5]);e%=360,t/=100,n/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,n=n<0?0:n>1?1:n;const i=n*t;let c=e/60;const u=i*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[i,u,0];break;case 1:d=[u,i,0];break;case 2:d=[0,i,u];break;case 3:d=[0,u,i];break;case 4:d=[u,0,i];break;case 5:d=[i,0,u];break;default:d=[0,0,0]}const f=n-i;o=d[0]+f,a=d[1]+f,l=d[2]+f,o=Math.round(255*o),a=Math.round(255*a),l=Math.round(255*l),s=1}else{const t=e.toLowerCase();if(function(e){return e in n}(t)){const e=n[t];({r:o,g:a,b:l}=e),s=\"a\"in e?e.a:1}else i.invalid=!0}}else\"number\"==typeof t[0]&&t[0]>=0&&\"argb\"===t[1]?(s=(4278190080&t[0])>>>24,s/=255,o=(16711680&t[0])>>16,a=(65280&t[0])>>8,l=255&t[0]):\"number\"==typeof t[0]&&t[0]>=0?(o=(16711680&t[0])>>16,a=(65280&t[0])>>8,l=255&t[0]):i.invalid=!0;else 3===t.length||4===t.length?(o=t[0],a=t[1],l=t[2],s=4===t.length?t[3]:1):i.invalid=!0;var c;return Number.isNaN(+o+a+l+s)&&(i.invalid=!0),i.r=Math.floor(o),i.g=Math.floor(a),i.b=Math.floor(l),i.a=s,i}function o(n){let r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r=`0${r}`),1===i.length&&(i=`0${i}`),1===o.length&&(o=`0${o}`),`#${[r,i,o].join(\"\")}`;const a=\"string\"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r=`0${r}`),1===i.length&&(i=`0${i}`),1===o.length&&(o=`0${o}`),`#${r}${i}${o}`}function a(e){let t,n,r=0;const o=\"string\"==typeof e?i(e):e,a=o.r/255,l=o.g/255,s=o.b/255,c=Math.max(a,l,s),u=Math.min(a,l,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case a:r=(l-s)/n+(l<s?6:0);break;case l:r=(s-a)/n+2;break;case s:r=(a-l)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*d})`}function l(e){let t,n,r=0;const o=\"string\"==typeof e?i(e):e,a=o.r/255,l=o.g/255,s=o.b/255,{a:c}=o,u=Math.max(a,l,s),d=Math.min(a,l,s),f=(u+d)/2;if(u===d)t=0,r=0;else{switch(n=u-d,t=f>.5?n/(2-u-d):n/(u+d),u){case a:r=(l-s)/n+(l<s?6:0);break;case l:r=(s-a)/n+2;break;case s:r=(a-l)/n+4}r/=6}return{h:360*r,s:100*t,l:100*f,a:c}}function s(e){const{h:t,s:n,l:r,a:i}=l(e);return`hsla(${t}, ${n}, ${r}, ${i})`}function c(e){let t,n,r=0;const o=\"string\"==typeof e?i(e):e,a=o.r/255,l=o.g/255,s=o.b/255,c=Math.max(a,l,s),u=Math.min(a,l,s),d=c;if(c===u)t=0,r=0;else{switch(n=c-u,t=0===n?0:n/d,c){case a:r=(l-s)/n+(l<s?6:0);break;case l:r=(s-a)/n+2;break;case s:r=(a-l)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*d}}function u(e){const{h:t,s:n,v:r}=c(e);return`hsv(${t}, ${n}, ${r})`}function d(n){if(e(n))return`rgb(${n.r}, ${n.g}, ${n.b})`;const r=\"string\"==typeof n?t(n):n;return`rgb(${(16711680&r)>>16}, ${(65280&r)>>8}, ${255&r})`}function f(t,n){return e(t)?`rgba(${t.r}, ${t.g}, ${t.b}, ${void 0!==n?n:t.a})`:f(i(t),n)}function p(t){return e(t)?1===t.a?d(t):f(t):p(i(t))}const h=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function v(e){return.2126*h(e.r)+.7152*h(e.g)+.0722*h(e.b)}function m(...e){const t=i(...e);return t.invalid||v(t)<.4}function g(...e){const t=i(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=l(n)),n.spaces.hslaObject),h=e=>{const t=r(),{h:n,s:i,l:o,a:a}=t;return`hsla(${n}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if(\"string\"==typeof e)t=i(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>m(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=d(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=f(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=p(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=o(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=a(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=s(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:h,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=u(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=c(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>g(h(18*e)),getDarkenedColor:(e=1)=>g(h(18*-e))}}function y(e,t){if(!e||!t)return;const n=v(e),r=v(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function b(e,t,n){const r=y(e,t),i=y(e,n);if(void 0!==r&&void 0!==i)return r>i?t:n}const x=\"#FFFFFF\";function w(e,t){const n=g(x),r=g(e),i=g(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;const o=y(n,r),a=y(i,r),l=o>a||o>4.5;return!l&&a>3?i.getHex():l?x:\"#000000\"}function q(e,t,n){return g(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}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}function k(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function M(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){k(o,r,i,a,l,\"next\",e)}function l(e){k(o,r,i,a,l,\"throw\",e)}a(void 0)})}}function S(e,t,n){return(t=function(e){var t=function(e,t){if(\"object\"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");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 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 C(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){S(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 E(e,t){if(null==e)return{};var n,r,i=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 o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(){\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nvar e,t,n=\"function\"==typeof Symbol?Symbol:{},r=n.iterator||\"@@iterator\",i=n.toStringTag||\"@@toStringTag\";function o(n,r,i,o){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return D(c,\"_invoke\",function(n,r,i){var o,l,s,c=0,u=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],p=f.p,h=o[2];n>3?(i=h===r)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(l=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,l=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,h){if(c>1)throw TypeError(\"Generator is already running\");for(d&&1===u&&p(u,h),l=u,s=h;(t=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,o){if(l||(i=\"next\"),t=o[i]){if(!(t=t.call(o,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=o.return)&&t.call(o),l<2&&(s=TypeError(\"The iterator does not provide a '\"+i+\"' method\"),l=1);o=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){o=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(D(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,D(e,i,\"GeneratorFunction\")),e.prototype=Object.create(d),e}return s.prototype=c,D(d,\"constructor\",c),D(c,\"constructor\",s),s.displayName=\"GeneratorFunction\",D(c,i,\"GeneratorFunction\"),D(d),D(d,i,\"Generator\"),D(d,r,function(){return this}),D(d,\"toString\",function(){return\"[object Generator]\"}),(I=function(){return{w:o,m:f}})()}function D(e,t,n,r){var i=Object.defineProperty;try{i({},\"\",{})}catch(e){i=0}D=function(e,t,n,r){function o(t,n){D(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o(\"next\",0),o(\"throw\",1),o(\"return\",2))},D(e,t,n,r)}function A(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,i,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||L(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){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(e)||L(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){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 L(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}}var F=\"point-label-cross-placement\";var j=\"unclassified\",z=\"equal-equal\",R=\"equal-higher\",B=\"equal-lower\",H=\"equal-void\",_=\"higher-equal\",V=\"higher-higher-acute\",K=\"higher-higher-obtuse\",$=\"higher-lower-negative\",Y=\"higher-lower-positive\",G=\"higher-void\",U=\"lower-equal\",W=\"lower-higher-negative\",X=\"lower-higher-positive\",Z=\"lower-lower-acute\",J=\"lower-lower-obtuse\",Q=\"lower-void\",ee=\"void-equal\",te=\"void-higher\",ne=\"void-lower\",re=\"void-void\";function ie(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function oe(e,t,n){var r=Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)),i=Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2)),o=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function ae(e){var t=e.previous,n=e.current,r=e.next,i=t&&t.value,o=n&&n.value,a=r&&r.value;return t||r?t?r?i===o?o===a?z:o<a?R:B:o===a?i>o?_:U:i>o?o<a?oe(t,n,r)>90?K:V:ie(t,n)>ie(t,r)?Y:$:o>a?oe(t,n,r)>90?J:Z:ie(t,n)>ie(t,r)?X:W:i===o?H:i>o?G:Q:o===a?ee:o<a?te:ne:re}var le,se={TOP:\"top\",TOP_RIGHT:\"top-right\",RIGHT:\"right\",BOTTOM_RIGHT:\"bottom-right\",BOTTOM:\"bottom\",BOTTOM_LEFT:\"bottom-left\",LEFT:\"left\",TOP_LEFT:\"top-left\"};function ce(e){var t=e.bounds,n=e.size,r=t.x,i=t.y,o=t.width,a=t.height;return\"center\"===n.insideStrategy?Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=n.width&&Math.floor(i+a/2)>=0&&Math.ceil(i+a/2)<=n.height:Math.floor(r+o)>0&&Math.ceil(r)<n.width&&Math.floor(i+a/2)>=0&&Math.ceil(i+a/2)<=n.height}function ue(){le=le||document.createElement(\"canvas\").getContext(\"2d\")}var de,fe={measureTextWidth:function(e){return ue(),le.measureText(e).width},lineWrap:function(e,t,n,r){var i,o;ue();var a,l,s=e?e.split(/\\n+|\\r+|\\r\\n/):[],c=[],u=e?e.split(/\\s+/):[],d=s[0];if(\"number\"!=typeof t||t<=0)return[e];if(\"number\"==typeof r&&s.length>=r)return s.slice(0,r);for(n&&(le.font=n),o=0;o<s.length;o++){for(d=A(u=(s[o]||\"\").split(/\\s+/),1)[0],l=\"\",i=1;i<u.length;i++)if(a=\"\".concat(d,\" \").concat(u[i]),fe.measureTextWidth(a)>t&&(\"number\"!=typeof r||r>c.length)?(c.push(d),d=u[i]):d=a,\"number\"==typeof r&&c.length>=r){l=u.slice(i+1).join(\" \");break}\"number\"!=typeof r||c.length<r?c.push(d):c[Math.max(0,c.length-1)]=\"\".concat(c[Math.max(0,c.length-1)]||\"\",\" \").concat(d,\" \").concat(l)}return c},wordWrap:function(e,t,n,r,i){if(ue(),!e||!e.length)return[];n&&(le.font=n);var o,a,l,s,c=[],u=e.slice();if(u.filter(function(e){return!!e}),\"number\"!=typeof t||t<0)return e.slice();for(s=0;s<u.length;s++)a=null,(l=u[s])&&(l.length<=1||fe.measureTextWidth(l)<=t?c.push(l):(o=fe.splitWord(l,t,void 0,r-c.length)).length<=1?c.push(o[0]):(a=o.pop(),c=c.concat(o),u[s+1]?fe.measureTextWidth(\"\".concat(a,\" \").concat(u[s+1]))>t&&c.length+u.length-s<=r?u.splice(s+1,0,a):u[s+1]=\"\".concat(a,\" \").concat(u[s+1]):u.push(a)));return c.forEach(function(e,t,n){n[t]=e?e.trim():e}),c.length>r?(c=c.splice(0,r))[c.length-1]=fe.truncate(c[c.length-1],t,n,i).text:(l=c[c.length-1])&&l.length>1&&fe.measureTextWidth(l)>t&&(c[c.length-1]=fe.truncate(l,t,n,i).text),c},truncate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"…\";ue();var i,o,a,l=e,s=fe.measureTextWidth(\"i\"),c=Math.ceil(t/s);if(n&&(le.font=n),e&&t){if(fe.measureTextWidth(l)>t){for(i=Math.min(c,l.length);i>0;i--)if(o=l.substring(0,i-1).trim()+r,fe.measureTextWidth(o)<=t){a=l.substring(i-1),l=o;break}i||(a=l,l=\"…\")}}else a=void 0;return{text:l,rest:a}},isNumber:function(e){return\"number\"==typeof e&&Number.isFinite(e)},explodeWord:function(e,t,n,r){var i;ue();var o=e,a=\"\",l=[];if(fe.isNumber(n)&&n<=1)return[e];var s=Math.ceil(t/r);for(i=Math.min(e.length,s);i>0&&(o=e.substring(0,i),\" \"===e.substring(i-1,i)?o=e.substring(0,i-1):o+=\"-\",a=e.substring(i),!(fe.measureTextWidth(o)<=t));i--);return(!i&&!o||fe.measureTextWidth(o)>t)&&(o=e.substring(0,1),a=e.substring(1)),l.push(o),a?(fe.measureTextWidth(a)>t?(a=fe.explodeWord(a,t,n-1,r),l=l.concat(a)):l.push(a),l.filter(function(e){return\"\"!==e.trim()})):l},splitWord:function(e,t,n,r){return ue(),e&&t?(n&&(le.font=n),fe.explodeWord(e,t,r,Math.max(1,fe.measureTextWidth(\"i\")))):[]},wrapText:function(e,t,n,r,i){var o;return Number.isNaN(t)?[e]:(o=r>1?fe.lineWrap(e,t,n,r):[e],o=fe.wordWrap(o,t,n,r,i))},getFontHeight:function(e){return ue(),e&&(le.font=e),1.5*fe.measureTextWidth(\"m\")},tokenize:function(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;ue(),t&&(le.font=t);var l=fe.getFontHeight(),s=a*l,c=[],u=0,d=[];if(o<l)return[];var f=o?Math.max(1,Math.floor(o/s)):r||1;return Array.isArray(r)?(r.forEach(function(e){u+=Number.isNaN(e)||e<=0?0:e}),r.forEach(function(e){c.push(Number.isNaN(e)||e<=0?f-u:e)})):c=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(function(e,n){d.length<f&&(d=d.concat(fe.wrapText(e,i,t,c[n])))}):d=fe.wrapText(e,i,t,c[0],n),d}};function pe(e){var t,n,r=e.config,i=e.crossPlacements,o=e.node,a=e.line,l=e.groupIndex,s=e.extract,c=e.style,u=e.measureText,d=e.size,f=e.horizontal,p=e.rtl,h=e.meta,v=e.showLabel,m=s.label(o.data);if(\"string\"!=typeof m&&\"number\"!=typeof m||\"\"===m)return!1;var g=function(){var e,t,n=u({fontFamily:c.fontFamily,fontSize:c.fontSize,text:m});if(null===(e=o.data)||void 0===e||null===(e=e.value)||void 0===e||!e.maxLabelWidth||n.width<=(null===(t=o.data)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.maxLabelWidth))return n;var r=\"\".concat(c.fontSize,\" \").concat(c.fontFamily),i=fe.tokenize(m,r,\"…\",3,o.data.value.maxLabelWidth);return n.lines=i.map(function(e){return{text:e,size:u({fontFamily:c.fontFamily,fontSize:c.fontSize,text:e})}}),n.width=Math.max.apply(Math,N(n.lines.map(function(e){return e.size.width}))),n.height*=i.length,n}(),y=o.localBounds,b=o.attrs[\"stroke-width\"],x=s.pointValue(o.data),w=!(null===(t=o.data)||void 0===t||null===(t=t.value)||void 0===t||!t.hasBackground),q=w?{X:3,Y:2}:{X:1,Y:0},O=w?{X:2,Y:2}:{X:0,Y:0},k={x:y.x+y.width/2,y:y.y+y.height/2,width:g.width+2*q.X+2*O.X,height:g.height+2*q.Y+2*O.Y},M=\"\".concat(k.x,\"-\").concat(k.y),S=!f&&!p,T=f?d.height:d.width,C=(f?k.y:k.x)/T,E=(S?1-C:C)<=(T<=200?.25:.1),I=null===(n=o.data)||void 0===n||null===(n=n.value)||void 0===n||null===(n=n.label)||void 0===n?void 0:n.placement,D=Object.keys(se).map(function(e){return se[e]}),A={key:M,config:r,node:o,line:a,group:l,value:x,labelMeasurements:g,bounds:k,inside:ce({bounds:y,size:d}),border:b?b/2:0,classification:j,setClassification:function(e){A.classification=e},preferences:[],setPreferences:function(e){var t;(t=A.preferences).push.apply(t,N(e))},fixedPlacement:D.includes(I)?I:void 0,placement:void 0,setPlacement:function(e){A.placement=e,i.setPlacement(e)},duplicate:!1,setDuplicate:function(){A.duplicate=!0},extreme:h.getExtreme(M),elite:E,show:r.labels&&v(o)};return A}function he(e){var t=e.configs,n=e.crossPlacements,r=e.nodes,i=e.extract,o=e.style,a=e.measureText,l=e.size,s=e.horizontal,c=e.rtl,u=e.showLabel,d=function(e){var t=e.nodes,n={top:[],right:[],bottom:[],left:[]},r=t.map(function(e){var t=e.localBounds,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:\"\".concat(n.x,\"-\").concat(n.y),center:n}}),i=r.reduce(function(e,t){return(!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e},{});return n.top=r.filter(function(e){return e.center.y===i.top.center.y}).map(function(e){return e.key}),n.right=r.filter(function(e){return e.center.x===i.right.center.x}).map(function(e){return e.key}),n.bottom=r.filter(function(e){return e.center.y===i.bottom.center.y}).map(function(e){return e.key}),n.left=r.filter(function(e){return e.center.x===i.left.center.x}).map(function(e){return e.key}),{getExtrema:function(e){return{top:-1!==n.top.indexOf(e),right:-1!==n.right.indexOf(e),bottom:-1!==n.bottom.indexOf(e),left:-1!==n.left.indexOf(e)}},getExtreme:function(e){return[n.top,n.right,n.bottom,n.left].some(function(t){return-1!==t.indexOf(e)})}}}({nodes:r}),f=function(e){var t=e.nodes,n=e.by,r=e.lineId,i=t.reduce(function(e,t,i){var o=n(t.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:t,line:r(t)}),e},{});return Object.keys(i).map(function(e){return i[e]}).sort(function(e,t){return e.index-t.index}).map(function(e){return e.items})}({nodes:r,by:i.majorValue,lineId:i.lineId}).map(function(e,r){return e.map(function(e){return{line:e.line,item:pe({config:t.get(e.node.key),crossPlacements:n,node:e.node,line:e.line,groupIndex:r,extract:i,style:o,measureText:a,size:l,horizontal:s,rtl:c,meta:d,showLabel:u})}}).filter(function(e){return e.item}).reduce(function(e,t){return e[t.line]=t.item,e},{})});return f.filter(function(e){return Object.keys(e).length})}var ve=(S(S(S(S(S(S(S(S(S(S(de={},z,[se.TOP,se.BOTTOM]),R,[se.BOTTOM,se.BOTTOM_RIGHT]),B,[se.TOP,se.TOP_RIGHT]),H,[se.TOP,se.BOTTOM]),_,[se.LEFT,se.BOTTOM_LEFT,se.TOP,se.TOP_RIGHT]),V,[se.BOTTOM,se.BOTTOM_LEFT,se.LEFT,se.TOP_RIGHT]),K,[se.BOTTOM,se.TOP]),$,[se.TOP,se.TOP_RIGHT,se.RIGHT]),Y,[se.BOTTOM,se.BOTTOM_LEFT,se.LEFT]),G,[se.TOP]),S(S(S(S(S(S(S(S(S(S(de,U,[se.TOP]),W,[se.TOP,se.TOP_LEFT]),X,[se.BOTTOM_RIGHT]),Z,[se.TOP,se.TOP_LEFT,se.LEFT,se.TOP_RIGHT,se.RIGHT]),J,[se.TOP,se.BOTTOM]),Q,[se.TOP]),ee,[se.TOP]),te,[se.TOP,se.BOTTOM]),ne,[se.TOP,se.BOTTOM,se.LEFT]),re,[se.TOP]),S(de,j,[se.TOP,se.BOTTOM,se.RIGHT,se.LEFT,se.TOP_RIGHT,se.BOTTOM_RIGHT,se.BOTTOM_LEFT,se.TOP_LEFT]));function me(e){var t=he({configs:e.configs,crossPlacements:e.crossPlacements,nodes:e.nodes,extract:e.extract,style:e.style,measureText:e.measureText,size:e.size,horizontal:e.horizontal,rtl:e.rtl,showLabel:e.showLabel}),n=N(t.reduce(function(e,t){return e.push.apply(e,N(Object.keys(t).map(function(e){return t[e]}))),e},[])),r=A(n,1)[0],i=function(e){for(var t=e.groups,n=e.threshold,r=t.map(function(e){return Object.keys(e).map(function(t){return e[t]})}),i={},o=0;o<=r.length;o++){var a=r[o];if(a)for(var l=0;l<a.length;l++){var s=a[l];if(s.config.lines){var c=s.line;i[c]||(i[c]=[]),i[c].push(s.bounds)}}}for(var u=Object.keys(i).map(function(e){return i[e]}),d=[],f=0;f<u.length;f++)for(var p=0;p<u[f].length-1;p++){var h=u[f][p],v=u[f][p+1],m={x1:h.x,y1:h.y,x2:v.x,y2:v.y},g=m.x1-m.x2,y=m.y1-m.y2;Math.sqrt(g*g+y*y)>n&&d.push(m)}return d}({groups:t,threshold:null==r?void 0:r.node.localBounds.height}),o={getItems:function(){return n},getLines:function(){return i}};return function(e){for(var t=e.groups,n=function(e){for(var n=Object.keys(t[e]).map(function(n){return t[e][n]}),r=0;r<n.length;r++){var i=n[r];if(!i.config.fixed){var o=ae({previous:t[e-1]&&t[e-1][i.line],current:i,next:t[e+1]&&t[e+1][i.line]});i.setClassification(o)}}},r=0;r<t.length;r++)n(r)}({groups:t}),o.getItems().forEach(function(e){e.setPreferences(ve[e.classification])}),o}function ge(e){var t=e.item,n=e.placement,r=e.size;return n.x>=0-r.edgeBleed.left&&n.x<=r.width-t.bounds.width+r.edgeBleed.right&&n.y>=0-r.edgeBleed.top&&n.y<=r.height-t.bounds.height}function ye(e){var t=e.line1,n=e.line2,r=(n.y2-n.y1)*(t.x2-t.x1)-(n.x2-n.x1)*(t.y2-t.y1);if(0===r)return!1;var i=((n.x2-n.x1)*(t.y1-n.y1)-(n.y2-n.y1)*(t.x1-n.x1))/r,o=((t.x2-t.x1)*(t.y1-n.y1)-(t.y2-t.y1)*(t.x1-n.x1))/r;return i>=0&&i<=1&&o>=0&&o<=1}function be(e){var t=e.candidate,n=e.lines;return!!e.rects.some(function(e){return function(e){var t=e.rect1,n=e.rect2;return!(n.x>t.x+t.width||n.x+n.width<t.x||n.y>t.y+t.height||n.y+n.height<t.y)}({rect1:e,rect2:t})})||n.some(function(e){return function(e){var t=e.line,n=e.rect,r={x:n.x,y:n.y},i={x:n.x+n.width,y:n.y},o={x:n.x+n.width,y:n.y+n.height},a={x:n.x,y:n.y+n.height},l={x1:i.x,y1:i.y,x2:o.x,y2:o.y},s={x1:o.x,y1:o.y,x2:a.x,y2:a.y},c={x1:a.x,y1:a.y,x2:r.x,y2:r.y};return ye({line1:t,line2:{x1:r.x,y1:r.y,x2:i.x,y2:i.y}})||ye({line1:t,line2:l})||ye({line1:t,line2:s})||ye({line1:t,line2:c})}({line:e,rect:t})})}var xe={x:0,width:0,y:0,height:0};var we=function(e){var t=e.item;return{x:t.bounds.x-t.bounds.width/2,y:t.bounds.y-t.bounds.height-t.node.localBounds.height/2-t.border}},qe=function(e){var t=e.item;return{x:t.bounds.x,y:t.bounds.y-t.bounds.height-t.node.localBounds.height/2-t.border}},Oe=function(e){var t=e.item;return{x:t.bounds.x+t.node.localBounds.width/2+t.border,y:t.bounds.y-t.bounds.height/2}},ke=function(e){var t=e.item;return{x:t.bounds.x,y:t.bounds.y+t.node.localBounds.height/2+t.border}},Me=function(e){var t=e.item;return{x:t.bounds.x-t.bounds.width/2,y:t.bounds.y+t.node.localBounds.height/2+t.border}},Se=function(e){var t=e.item;return{x:t.bounds.x-t.bounds.width,y:t.bounds.y+t.node.localBounds.height/2+t.border}},Te=function(e){var t=e.item;return{x:t.bounds.x-t.bounds.width-t.node.localBounds.width/2-t.border,y:t.bounds.y-t.bounds.height/2}},Ce=function(e){var t=e.item;return{x:t.bounds.x-t.bounds.width,y:t.bounds.y-t.bounds.height-t.node.localBounds.height/2-t.border}};var Ee=2.5,Ie=4,De=[se.TOP,se.TOP_LEFT,se.TOP_RIGHT],Ae=[se.BOTTOM,se.BOTTOM_LEFT,se.BOTTOM_RIGHT];function Ne(e){var t=e.position,n={x:Ee,width:-5,y:0,height:0},r=De.indexOf(t)>-1,i=Ae.indexOf(t)>-1;return r&&(n.y=Ie,n.height=-4),i&&(n.height=-4),n}function Pe(e){var t=e.cx,n=e.cy,r=e.r,i=e.degrees*(Math.PI/180);return{x:Math.round(t+r*Math.sin(i)),y:Math.round(n+r*-Math.cos(i))}}function Le(e){var t=e.coordinates,n=e.degrees,r=e.item,i={x:t.x,y:t.y};return n<=90?i.y-=r.bounds.height:n>180&&n<=270?i.x-=r.bounds.width:n>270&&(i.y-=r.bounds.height,i.x-=r.bounds.width),i}function Fe(e){for(var t=e.item,n=e.validator,r=e.force,i=void 0!==r&&r,o=function(e){return[e.item.node.localBounds.height/2*Math.sqrt(2)]}({item:t}),a=t.bounds.x,l=t.bounds.y,s=0;s<o.length;s++){for(var c=o[s],u=40;u<=180;u+=15){var d=Le({coordinates:Pe({cx:a,cy:l,r:c,degrees:u}),degrees:u,item:t});if(n({item:t,placement:d,ignoreLines:i}).valid)return d}for(var f=320;f>180;f-=15){var p=Le({coordinates:Pe({cx:a,cy:l,r:c,degrees:f}),degrees:f,item:t});if(n({item:t,placement:p,ignoreLines:i}).valid)return p}}return!1}var je=void 0;function ze(e){var t=e.item,n=e.validator,r=e.force,i=void 0!==r&&r,o=S(S(S(S(S(S(S(S({},se.TOP,we),se.TOP_RIGHT,qe),se.RIGHT,Oe),se.BOTTOM_RIGHT,ke),se.BOTTOM,Me),se.BOTTOM_LEFT,Se),se.LEFT,Te),se.TOP_LEFT,Ce);if(t.fixedPlacement)return o[t.fixedPlacement]({item:t});for(var a=[].concat(N(t.preferences),N(Object.keys(se).map(function(e){return se[e]}).filter(function(e){return-1===t.preferences.indexOf(e)}))),l=[],s=0;s<a.length;s++){var c=a[s],u=o[c]({item:t}),d=Ne({position:c}),f=n({item:t,placement:u,adjustment:d,ignoreLines:i});if(i&&f.inside&&l.push(u),f.valid)return u}var p=function(){return Fe({item:t,validator:n,force:i})};if(i){var h=p();return h||(l[0]||je)}return(t.extreme||t.elite)&&p()||je}function Re(e){var t=e.configs,n=e.crossPlacements,r=e.model,i=e.size,o=e.all,a={},l=r.getItems(),s=[].concat(N(l.map(function(e){return{x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2}})),N(n.getPlacements({configs:t}))),c=[],u=r.getLines();l.forEach(function(e){var t=e.node.data;if(!(!e.show||!e.inside||t.null&&t.null.value||t.interpolated&&t.interpolated.value)){var n=e.key;if(!a[n]||e.config.duplicates){a[n]=!0;var r=function(e){var t=e.size,n=e.lines,r=e.placements;return function(e){var i=e.item,o=e.placement,a=e.adjustment,l=void 0===a?xe:a,s=e.ignoreLines,c=void 0!==s&&s,u={inside:ge({item:i,placement:o,size:t}),collides:!0,valid:!1};return u.inside?(u.collides=be({candidate:{x:o.x+l.x,y:o.y+l.y,width:i.bounds.width+l.width,height:i.bounds.height+l.height},lines:c?[]:n,rects:r}),u.valid=!u.collides,u):u}}({size:i,lines:u,placements:s}),l=ze({item:e,validator:r});l?(l.height=e.bounds.height,l.width=e.bounds.width,s.push(l),e.setPlacement(l)):o&&c.push({item:e,validator:r})}else e.setDuplicate()}}),c.forEach(function(e){var t=e.item,n=ze({item:t,validator:e.validator,force:!0});n&&(n.height=t.bounds.height,n.width=t.bounds.width,s.push(n),t.setPlacement(n))})}var Be={require:[\"chart\",\"renderer\"],defaultSettings:{settings:{orientation:\"horizontal\",rtl:!1,all:!1,label:function(){},showLabel:function(){return!0},pointValue:function(){},majorValue:function(){},lineId:function(){},enabled:function(){return!0},configs:[],insideStrategy:\"edge\",labelSpace:{use:function(){return!1},size:10},cache:void 0},style:{fontFamily:'\"Source Sans Pro\", \"Arial\", \"sans-serif\"',fontSize:\"12px\",fill:\"#333\"}},created:function(){var e,t,n,r,i,o;this.crossPlacements=(e={cache:this.settings.settings.cache,key:this.settings.key},r=e.cache,i=e.key,o={isPrimary:!1},null!=r&&null!==(t=r.has)&&void 0!==t&&t.call(r,F)||(o.isPrimary=!0,null==r||null===(n=r.set)||void 0===n||n.call(r,F,{})),{reset:function(){var e,t=null==r||null===(e=r.get)||void 0===e?void 0:e.call(r,F);t&&(o.isPrimary&&Object.keys(t).forEach(function(e){return delete t[e]}),t[i]=[])},setPlacement:function(e){var t,n=null==r||null===(t=r.get)||void 0===t?void 0:t.call(r,F);n&&n[i].push(e)},getPlacements:function(e){var t,n=e.configs,o=null==r||null===(t=r.get)||void 0===t?void 0:t.call(r,F);if(!o)return[];var a=[],l=n.getCollection().filter(function(e){return!e.labels&&!!e.labelKeys.length}).reduce(function(e,t){return e.push.apply(e,N(t.labelKeys)),e},[]);return Object.keys(o).forEach(function(e){e!==i&&l.some(function(t){return t===e})&&a.push.apply(a,N(o[e]))}),a}})},preferredSize:function(){var e={edgeBleed:{top:0,right:0,left:0}},t=this.settings.settings,n=t.orientation,r=t.rtl,i=t.labelSpace,o=i.use,a=i.size;if(o()){var l=\"horizontal\"===n;e.edgeBleed.top=l?a:0,e.edgeBleed[r?\"left\":\"right\"]=l?0:a}return e},render:function(){this.crossPlacements.reset();var e=this.settings.settings;if(!(0,e.enabled)())return[];var t=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).configs,t=void 0===e?[]:e,n={},r=[];return t.forEach(function(e){var t=e.key;n[t]={labels:void 0===e.labels||e.labels,labelKeys:Array.isArray(e.labelKeys)?e.labelKeys:[],lines:void 0===e.lines||e.lines,fixed:void 0!==e.fixed&&e.fixed,duplicates:void 0!==e.duplicates&&e.duplicates},r.push(n[t])}),{meta:{allKeys:t.map(function(e){return e.key})},getCollection:function(){return r},get:function(e){return n[e]},getFirstLabelKey:function(){var e;return null===(e=t.find(function(e){return e.labels}))||void 0===e?void 0:e.key}}}({configs:e.configs}),n=t.getFirstLabelKey();if(!n)return[];if(!this.chart.component(n))return[];var r=this.chart.findShapes(\"circle, path, rect\").filter(function(e){return t.meta.allKeys.includes(e.key)});if(!r.length)return[];var i=\"horizontal\"===e.orientation,o=i?\"x\":\"y\";r.sort(function(e,t){return e.localBounds[o]-t.localBounds[o]});var a={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineId:e.lineId},l=this.rect,s={height:l.height,width:l.width,edgeBleed:l.edgeBleed,insideStrategy:e.insideStrategy},c=this.crossPlacements,u=this.style,d=me({configs:t,crossPlacements:c,nodes:r,extract:a,style:u,measureText:this.renderer.measureText,size:s,horizontal:i,rtl:e.rtl,showLabel:e.showLabel});({model:d}).model.getItems().sort(function(e,t){return e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1}),Re({configs:t,crossPlacements:c,model:d,size:s,all:e.all});var f=d.getItems(),p=[];f.filter(function(e){return e.placement}).forEach(function(e){var t,n,r,i,o,l=null!==(t=e.node.data.value)&&void 0!==t&&t.hasBackground?2:0,s=null!==(n=e.node.data.value)&&void 0!==n&&n.hasBackground?2:0,c=(null===(r=e.node.data.value)||void 0===r||null===(r=r.style)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)||u.fontSize,d=(null===(i=e.node.data.value)||void 0===i||null===(i=i.style)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontFamily)||u.fontFamily,f=(null===(o=e.node.data.value)||void 0===o?void 0:o.labelColor)||u.fill;e.labelMeasurements.lines?e.labelMeasurements.lines.forEach(function(t,n){p.push({type:\"text\",x:e.placement.x+e.placement.width/2,y:e.placement.y+(n+.5)*t.size.height+l+s,fontSize:c,fontFamily:d,fill:f,text:t.text,data:e.node.data.value,baseline:\"central\",anchor:\"middle\"})}):p.push({type:\"text\",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2+l+s,fontSize:c,fontFamily:d,fill:f,text:a.label(e.node.data),data:e.node.data.value,baseline:\"central\",anchor:\"middle\"})});var h=f.filter(function(e){var t;return e.placement&&(null===(t=e.node.data.value)||void 0===t?void 0:t.hasBackground)}).map(function(e){var t;return{type:\"rect\",x:e.placement.x+2,y:e.placement.y+2,rx:3,ry:3,fill:null===(t=e.node.data.value)||void 0===t?void 0:t.labelBackgroundColor,width:e.placement.width-4,height:e.placement.height-4,data:e.node.data.value}});return[].concat(N(h),p)}},He={ACTIONS:{select:{enabled:function(){return!1}}},COMPONENT_KEY:\"area-range-component\",COMPONENTS:[],DOCK:\"bottom\",ENABLE:function(){return!0},EVENT_KEY:\"area-range\",EVENTS:function(){},FILL_TARGETS:[],TARGETS:[]};var _e={area:\"area\",continuous:\"range\"};function Ve(e){var t=e.config,n=e.type,r=void 0===n?\"continuous\":n,i=t.actions,o=t.componentKey,a=t.enable,l=t.eventKey,s=t.events,c=t.fillTargets;return{key:\"event:\".concat(o),type:\"Pan\",requireFailure:void 0,recognizeWith:void 0,options:{event:l,enable:function(e,t){if(!a())return!1;if(this.started===l||!t)return!0;if(!i.select.enabled())return!1;var n=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}).filter(function(e){return-1!==c.indexOf(e.key)}),r=0===n.length&&function(e,t){var n=e.srcEvent.target;return!(!n||0!==(n.getAttribute(\"data-key\")||\"\").indexOf(\"\".concat(t,\"-\")))}(t,o);return r?(this.started=l,!0):n.length>0}},events:S(S(S({},\"\".concat(l,\"start\"),function(e){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.select.brushSelectionIncludeMax=!0),e.preventDefault(),i.select.emit(\"start\",l),this.chart.component(o).emit(\"\".concat(_e[r],\"Start\"),e),this.started=l,s.onRangeStart({chart:this.chart})}),\"\".concat(l,\"move\"),function(e){e.preventDefault(),this.chart.component(o).emit(\"\".concat(_e[r],\"Move\"),e),s.onRangeMove({chart:this.chart})}),\"\".concat(l,\"end\"),function(e){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.select.brushSelectionIncludeMax=!0),e.preventDefault(),this.chart.component(o).emit(\"\".concat(_e[r],\"End\"),e),i.select.emit(\"end\",l),this.started=!1,s.onRangeEnd({chart:this.chart})})}}function Ke(e){return Ve({config:e,type:\"continuous\"})}function $e(e){var t=function(){var e,t,n,r,i,o,a,l,s,c,u,d,f,p,h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{actions:null!==(e=h.actions)&&void 0!==e?e:He.ACTIONS,componentKey:null!==(t=h.componentKey)&&void 0!==t?t:He.COMPONENT_KEY,components:null!==(n=h.components)&&void 0!==n?n:He.COMPONENTS,dock:null!==(r=h.dock)&&void 0!==r?r:He.DOCK,enable:null!==(i=h.enable)&&void 0!==i?i:He.ENABLE,eventKey:null!==(o=h.eventKey)&&void 0!==o?o:He.EVENT_KEY,events:{onRangeStart:null!==(a=null===(l=h.events)||void 0===l?void 0:l.onRangeStart)&&void 0!==a?a:He.EVENTS,onRangeMove:null!==(s=null===(c=h.events)||void 0===c?void 0:c.onRangeMove)&&void 0!==s?s:He.EVENTS,onRangeEnd:null!==(u=null===(d=h.events)||void 0===d?void 0:d.onRangeEnd)&&void 0!==u?u:He.EVENTS},fillTargets:null!==(f=h.fillTargets)&&void 0!==f?f:He.FILL_TARGETS,targets:null!==(p=h.targets)&&void 0!==p?p:He.TARGETS}}(e),n=function(e){return Ve({config:e,type:\"area\"})}(t),r=function(e){var t=e.componentKey,n=e.components,r=e.dock,i=e.fillTargets;return{key:t,type:\"brush-area-dir\",layout:{dock:e.targets.map(function(e){return\"@\".concat(e)}).join(\",\")},settings:{multiple:!0,brush:{components:n},direction:\"left\"===r||\"right\"===r?\"vertical\":\"horizontal\",bubbles:{align:\"left\"===r||\"top\"===r?\"end\":\"start\",placement:\"inside\"},target:{components:i,fill:\"rgba(82,204,82,0.2)\"}}}}(t);return{interactions:[n],components:[r]}}var Ye={ACTIONS:{select:{enabled:function(){return!1}}},BUBBLES_PLACEMENT:\"inside\",COMPONENT_KEY:\"continuous-range-component\",DOCK:\"bottom\",ENABLE:function(){return!0},EVENT_KEY:\"continuous-range\",EVENTS:function(){},FILL_TARGETS:[],MULTIPLE:!1,OBSERVE_BRUSH:!1,SCALE:\"scale\",TARGETS:[]};function Ge(e){var t=e.actions,n=e.componentKey,r=e.eventKey;if(!e.onEdited)return!1;var i=\"\".concat(n,\"-\").concat(r,\"-tap\");return{prio:1,key:\"event:\".concat(n,\"-tap\"),type:\"Tap\",requireFailure:void 0,recognizeWith:void 0,options:{event:i,interval:10,pointers:1,enable:function(e,r){var i,o;return!!r&&(!!t.select.enabled()&&(\"INPUT\"===(null===(i=r.target)||void 0===i?void 0:i.nodeName)||!(null===(o=r.target)||void 0===o||!o.hasAttribute(\"data-other-value\"))&&(r.target.getAttribute(\"data-key\")||\"\").split(\"-bubble\")[0]===n))}},events:S({},i,function(e){(e.target.getAttribute(\"data-key\")||\"\").split(\"-bubble\")[0]&&(e.preventDefault(),this.chart.component(n).emit(\"bubbleStart\",e))})}}function Ue(e){var t=function(){var e,t,n,r,i,o,a,l,s,c,u,d,f,p,h,v,m,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{actions:null!==(e=g.actions)&&void 0!==e?e:Ye.ACTIONS,bubblesPlacement:null!==(t=g.bubblesPlacement)&&void 0!==t?t:Ye.BUBBLES_PLACEMENT,componentKey:null!==(n=g.componentKey)&&void 0!==n?n:Ye.COMPONENT_KEY,dock:null!==(r=g.dock)&&void 0!==r?r:Ye.DOCK,enable:null!==(i=g.enable)&&void 0!==i?i:Ye.ENABLE,eventKey:null!==(o=g.eventKey)&&void 0!==o?o:Ye.EVENT_KEY,events:{onRangeStart:null!==(a=null===(l=g.events)||void 0===l?void 0:l.onRangeStart)&&void 0!==a?a:Ye.EVENTS,onRangeMove:null!==(s=null===(c=g.events)||void 0===c?void 0:c.onRangeMove)&&void 0!==s?s:Ye.EVENTS,onRangeEnd:null!==(u=null===(d=g.events)||void 0===d?void 0:d.onRangeEnd)&&void 0!==u?u:Ye.EVENTS},fillTargets:null!==(f=g.fillTargets)&&void 0!==f?f:Ye.FILL_TARGETS,multiple:null!==(p=g.multiple)&&void 0!==p?p:Ye.MULTIPLE,observeBrush:null!==(h=g.observeBrush)&&void 0!==h?h:Ye.OBSERVE_BRUSH,onEdited:g.onEdited,scale:null!==(v=g.scale)&&void 0!==v?v:Ye.SCALE,targetFillSelector:g.targetFillSelector,targetSelector:g.targetSelector,targets:null!==(m=g.targets)&&void 0!==m?m:Ye.TARGETS,toLabel:g.toLabel}}(e),n=[Ke(t),Ge(t)].filter(Boolean),r=function(e){var t=e.bubblesPlacement,n=e.componentKey,r=e.dock,i=e.fillTargets,o=e.multiple,a=e.observeBrush,l=e.onEdited,s=e.scale,c=e.targetFillSelector,u=e.targets,d=e.targetSelector,f=e.toLabel;return{key:n,type:\"brush-range\",layout:{dock:u.map(function(e){return\"@\".concat(e)}).join(\",\")},on:l?{bubbleEnd:function(){l()}}:{},settings:{brush:a?{context:\"selection\",observe:!0}:\"selection\",scale:s,multiple:o,direction:\"left\"===r||\"right\"===r?\"vertical\":\"horizontal\",bubbles:{align:\"left\"===r||\"top\"===r?\"end\":\"start\",placement:t,label:f},target:{components:i,selector:d,fillSelector:c,fill:\"rgba(82,204,82,0.2)\"}}}}(t);return{interactions:n,components:[r]}}var We={ACTIONS:{lasso:{enabled:function(){return!1},active:function(){return!1}},select:{enabled:function(){return!1}}},COMPONENT_KEY:\"lasso\",COMPONENTS:[],EVENTS:function(){},TARGET_KEYS:[]};var Xe=\"lasso\";function Ze(e){var t=function(){var e,t,n,r,i,o,a,l,s,c,u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{actions:null!==(e=u.actions)&&void 0!==e?e:We.ACTIONS,componentKey:null!==(t=u.componentKey)&&void 0!==t?t:We.COMPONENT_KEY,components:null!==(n=u.components)&&void 0!==n?n:We.COMPONENTS,events:{onLassoStart:null!==(r=null===(i=u.events)||void 0===i?void 0:i.onLassoStart)&&void 0!==r?r:We.EVENTS,onLassoMove:null!==(o=null===(a=u.events)||void 0===a?void 0:a.onLassoMove)&&void 0!==o?o:We.EVENTS,onLassoEnd:null!==(l=null===(s=u.events)||void 0===s?void 0:s.onLassoEnd)&&void 0!==l?l:We.EVENTS},targetKeys:null!==(c=u.targetKeys)&&void 0!==c?c:We.TARGET_KEYS}}(e),n=function(e){var t=e.actions,n=e.componentKey,r=e.events,i=e.targetKeys;return{key:\"event:lasso\",type:\"Pan\",requireFailure:void 0,recognizeWith:void 0,options:{event:Xe,enable:function(e,n){return this.started===Xe||!n||!!(t.select.enabled()&&t.lasso.enabled()&&t.lasso.active())&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some(function(e){return-1!==i.indexOf(e.key)})}},events:S(S(S({},\"\".concat(Xe,\"start\"),function(e){e.preventDefault(),this.started!==Xe&&(t.select.emit(\"start\",Xe),this.chart.component(n).emit(\"lassoStart\",e),this.started=Xe,r.onLassoStart({chart:this.chart}))}),\"\".concat(Xe,\"move\"),function(e){e.preventDefault(),this.chart.component(n).emit(\"lassoMove\",e),r.onLassoMove({chart:this.chart})}),\"\".concat(Xe,\"end\"),function(e){e.preventDefault(),this.started=!1,this.chart.component(n).emit(\"lassoEnd\",e),t.select.emit(\"end\",Xe),r.onLassoEnd({chart:this.chart})})}}(t),r=function(e){return{key:\"lasso\",type:\"brush-lasso\",layout:{displayOrder:99},settings:{brush:{components:e.components},lasso:{fill:\"rgba(0, 0, 0, 0)\",stroke:\"black\",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:\"5, 5\",stroke:\"black\",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:\"rgba(77, 192, 78, 1)\",strokeWidth:0,opacity:1}}}}(t);return{interactions:[n],components:[r]}}var Je={ACTIONS:{select:{enabled:function(){return!1}}},COMPONENTS:[],EVENTS:function(){},HIT_RADIUS:0,IS_LOCKED:function(){return!1},TARGETS:[]};var Qe=\"tap\";function et(e){var t=e.actions,n=e.components,r=e.events,i=e.hitRadius,o=e.isLocked,a=e.shapesAt,l=e.targets,s={targetComponents:[]};return{key:\"event:tap\",type:\"Tap\",requireFailure:void 0,recognizeWith:void 0,options:{event:Qe,interval:10,pointers:1,enable:function(e,n){return!n||!!t.select.enabled()&&(s.targetComponents=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter(function(e){return-1!==l.indexOf(e.key)}),s.targetComponents.length>0)}},events:S({},Qe,function(e){if(e.preventDefault(),!o(s.targetComponents)&&t.select.enabled()){var c,u,d,f,p,h=(c=e,u=this.chart,p=u.element.getBoundingClientRect(),c.center?(d=c.center.x,f=c.center.y):(d=void 0===c.clientX?Math.floor(c.srcEvent.clientX):c.clientX,f=void 0===c.clientY?Math.floor(c.srcEvent.clientY):c.clientY),{x:d-p.left,y:f-p.top}),v=\"function\"==typeof i?i(s.targetComponents):i,m=v>0?{cx:h.x,cy:h.y,r:v}:h,g=a?a(m):this.chart.shapesAt(m,{components:l.map(function(e){return{key:e}})}),y=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),b=y.some(function(e){return\"legend-cat\"===e.type});if(!g.length&&b||(this.chart.brushSelectionIncludeMax=!1,t.select.brushSelectionIncludeMax=!1,t.select.emit(\"start\",Qe,y),r.onSelectStart()),g.length&&n){this.chart.brushSelectionIncludeMax=!1,t.select.brushSelectionIncludeMax=!1;var x=\"function\"==typeof n?n(e,g):n;this.chart.brushFromShapes(g,{components:x}),t.select.emit(\"end\",Qe),r.onSelectEnd({chart:this.chart})}}})}}function tt(e){var t=function(){var e,t,n,r,i,o,a,l,s,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{actions:null!==(e=c.actions)&&void 0!==e?e:Je.ACTIONS,components:null!==(t=c.components)&&void 0!==t?t:Je.COMPONENTS,events:{onSelectStart:null!==(n=null===(r=c.events)||void 0===r?void 0:r.onSelectStart)&&void 0!==n?n:Je.EVENTS,onSelectEnd:null!==(i=null===(o=c.events)||void 0===o?void 0:o.onSelectEnd)&&void 0!==i?i:Je.EVENTS},hitRadius:null!==(a=c.hitRadius)&&void 0!==a?a:Je.HIT_RADIUS,isLocked:null!==(l=c.isLocked)&&void 0!==l?l:Je.IS_LOCKED,shapesAt:c.shapesAt,targets:null!==(s=c.targets)&&void 0!==s?s:Je.TARGETS}}(e);return{interactions:[et(t)],components:[]}}var nt=\"object\";var rt=[\"American Typewriter, serif\",\"Andalé Mono, monospace\",\"Arial Black, sans-serif\",\"Arial, sans-serif\",\"Bradley Hand, cursive\",\"Brush Script MT, cursive\",\"Comic Sans MS, cursive\",\"Courier, monospace\",\"Didot, serif\",\"Georgia, serif\",\"Impact, sans-serif\",\"Lucida Console, monospace\",\"Luminari, fantasy\",\"Monaco, monospace\",\"QlikView Sans, sans-serif\",\"Source Sans Pro, sans-serif\",\"Tahoma, sans-serif\",\"Times New Roman, serif\",\"Trebuchet MS, sans-serif\",\"Verdana, sans-serif\"],it=[\"Abril Fatface, serif\",\"Bangers, fantasy\",\"Bebas Neue, sans serif\",\"EB Garamond, serif\",\"Fredoka One, fantasy\",\"Graduate, fantasy\",\"Gravitas One, serif\",\"Indie Flower, fantasy\",\"Inter, sans-serif\",\"Lobster, fantasy\",\"Montserrat, sans-serif\",\"Nixie One, sans-serif\",\"Noto Sans, sans-serif\",\"Open Sans, sans-serif\",\"PT Serif, serif\",\"Pacifico, cursive\",\"Permanent Marker, fantasy\",\"QlikView Sans, sans-serif\",\"Raleway, sans-serif\",\"Rammetto One, fantasy\",\"Roboto, sans-serif\",\"Source Sans Pro, sans-serif\",\"Titan One, fantasy\",\"Yanone Kaffeesatz, sans-serif\"];function ot(e){return null!=e&&e.isEnabled(\"PS_20852_WYSIWYG_FONT_SUPPORT\")?it:rt}var at=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function lt(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle(\"\",\"\",\"fontFamilies\");return Array.isArray(a)&&a.length?o.push.apply(o,N(new Set([r].concat(N(a.map(function(e){return e.split(\",\").map(function(e){return e.trim()}).map(function(e){return e.replace(/\\s+/g,\" \").trim()}).filter(Boolean).join(\", \")})))))):o.push(r),[{value:\"ThemeHeader\",label:n.get(\"properties.themeFonts\"),metaText:n.get(\"properties.theme\"),groupHeader:!0}].concat(N(o.map(function(e){return at(e)})),[{value:\"DefaultHeader\",label:n.get(\"properties.allFonts\"),metaText:n.get(\"properties.default\"),groupHeader:!0}],N(ot(i).map(function(e){return at(e)})))}function st(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,\"fontFamily\")};return{getDefaultValue:function(){return a()},getOptions:function(){return lt({theme:t,translator:n,defaultValue:a(),flags:o})}}}var ct=[\"10px\",\"11px\",\"12px\",\"13px\",\"14px\",\"15px\",\"16px\",\"17px\",\"18px\",\"19px\",\"20px\",\"21px\",\"22px\",\"23px\",\"24px\"],ut=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function dt(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,\"fontSize\")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=[],o=t.getStyle(\"\",\"\",\"fontSizes\");return Array.isArray(o)&&o.length?i.push.apply(i,N(new Set([r].concat(N(o))))):i.push(r),[{value:\"ThemeHeader\",label:n.get(\"properties.themeFontSizes\"),metaText:n.get(\"properties.theme\"),groupHeader:!0}].concat(N(i.map(function(e){return ut(e)})),[{value:\"DefaultHeader\",label:n.get(\"properties.allFontSizes\"),metaText:n.get(\"properties.default\"),groupHeader:!0}],N(ct.map(function(e){return ut(e)})))}({theme:t,translator:n,defaultValue:o()})}}}function ft(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:st({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:dt({theme:t,translator:n,id:r,path:i})}}var pt=[\"__proto__\",\"constructor\"],ht=function(e){if(pt.some(function(t){return e.includes(t)}))throw new Error(\"font-resolver: Forbidden property.\")};function vt(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?nt:\"\".concat(nt,\".\").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),l=a.id,s=a.paths,c={};s.forEach(function(e){var r=e.split(\".\");ht(r);for(var i=c,a=0;a<r.length;a++){var s=r[a];a===r.length-1?i[s]=ft({theme:t,translator:n,id:l,path:e,flags:o}):void 0===i[s]&&(i[s]={}),i=i[s]}});var u=function(e){var t=e.split(\".\");ht(t);for(var n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error(\"font-resolver: Path '\".concat(e,\"' could not be resolved.\"));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}var mt,gt,yt={\"auto-chart\":{descriptionKey:\"Template.preview.description.auto-chart\",translationKey:\"Object.AutoChart\",icon:\"effects\",iconChar:\"effects\"},\"dummy-chart\":{descriptionKey:\"Dummy\",translationKey:\"Dummy\",icon:\"effects\",iconChar:\"effects\"},barchart:{descriptionKey:\"Template.preview.description.barchart\",translationKey:\"Object.BarChart\",icon:\"bar-chart\",iconChar:\"bar_chart\"},combochart:{descriptionKey:\"Template.preview.description.combochart\",translationKey:\"Object.ComboChart\",icon:\"combo-chart\",iconChar:\"combo_chart\"},container:{descriptionKey:\"Template.preview.description.container\",translationKey:\"Object.Container\",icon:\"box\",iconChar:\"box\"},distributionplot:{descriptionKey:\"Template.preview.description.distributionplot\",translationKey:\"Object.DistributionPlot\",icon:\"distributionplot\",iconChar:\"distributionplot\"},boxplot:{descriptionKey:\"Template.preview.description.boxplot\",translationKey:\"Object.BoxPlot\",icon:\"boxplot\",iconChar:\"boxplot\"},filterpane:{descriptionKey:\"Template.preview.description.filterpane\",translationKey:\"Object.FilterPane\",icon:\"filterpane\",iconChar:\"filterpane\"},gauge:{descriptionKey:\"Template.preview.description.gauge\",translationKey:\"Object.Gauge\",icon:\"gauge-chart\",iconChar:\"gauge_chart\"},histogram:{descriptionKey:\"Template.preview.description.histogram\",translationKey:\"Object.Histogram\",icon:\"histogram\",iconChar:\"histogram\"},kpi:{descriptionKey:\"Template.preview.description.kpi\",translationKey:\"Object.Kpi\",icon:\"kpi\",iconChar:\"kpi\"},linechart:{descriptionKey:\"Template.preview.description.linechart\",translationKey:\"Object.LineChart\",icon:\"line-chart-line\",iconChar:\"line_chart\"},listbox:{descriptionKey:\"Template.preview.description.listbox\",translationKey:\"Object.Listbox\",icon:\"list\",iconChar:\"list\"},piechart:{descriptionKey:\"Template.preview.description.piechart\",translationKey:\"Object.PieChart\",icon:\"pie-chart\",iconChar:\"pie_chart\"},\"pivot-table\":{descriptionKey:\"Template.preview.description.pivot-table\",translationKey:\"Object.PivotTable\",icon:\"pivot-table\",iconChar:\"pivot_table\"},map:{descriptionKey:\"Template.preview.description.map\",translationKey:\"Object.Map\",icon:\"map\",iconChar:\"map\"},scatterplot:{descriptionKey:\"Template.preview.description.scatterplot\",translationKey:\"Object.ScatterPlot\",icon:\"scatter-chart\",iconChar:\"scatter_chart\"},table:{descriptionKey:\"Template.preview.description.table\",translationKey:\"Object.Table\",icon:\"table\",iconChar:\"table\"},\"text-image\":{descriptionKey:\"Template.preview.description.text-image\",translationKey:\"Object.TextImage\",icon:\"text-object\",iconChar:\"text\"},treemap:{descriptionKey:\"Template.preview.description.treemap\",translationKey:\"Object.Treemap\",icon:\"treemap\",iconChar:\"treemap\"},waterfallchart:{descriptionKey:\"Template.preview.description.waterfallchart\",translationKey:\"Object.WaterfallChart\",icon:\"waterfallchart\",iconChar:\"waterfallchart\"},mekkochart:{descriptionKey:\"Template.preview.description.mekkochart\",translationKey:\"Object.MekkoChart\",icon:\"marimekko\",iconChar:\"marimekko\"},\"action-button\":{descriptionKey:\"Template.preview.description.actionbutton\",translationKey:\"Object.ActionButton\",icon:\"button\",iconChar:\"align-object-center\"},bulletchart:{descriptionKey:\"Template.preview.description.bulletchart\",translationKey:\"Object.BulletChart\",icon:\"bullet-chart\",iconChar:\"bullet-chart\"},\"sn-nlg-chart\":{descriptionKey:\"Template.preview.description.nlgchart\",translationKey:\"Object.NlgChart\",icon:\"natural-language-generation\",iconChar:\"natural-language-generation\"},\"sn-analysis-autochart\":{descriptionKey:\"Template.preview.description.analysis.autochart\",translationKey:\"Common.AnalysisTypes\",icon:\"analysis-types\",iconChar:\"analysis-types\"},\"sn-tabbed-container\":{descriptionKey:\"Object.Container\",translationKey:\"Object.Container\",icon:\"tabbed-container\",iconChar:\"tabbed-container\"},\"third-party-and-fallback\":{icon:\"puzzle\",iconChar:\"puzzle\"}},bt={puzzle:\"PuzzleOutline\",effects:\"Effects\",\"bar-chart\":\"BarChartOutline\",\"bars-grouped\":\"BarsGroupedOutline\",\"bars-stacked\":\"BarsStacked\",\"combo-chart\":\"ComboChartOutline\",box:\"BoxOutline\",distributionplot:\"DistributionPlotOutline\",boxplot:\"Boxplot\",filterpane:\"FilterpaneOutline\",\"gauge-chart\":\"GaugeChartOutline\",histogram:\"HistogramOutline\",kpi:\"KpiOutline\",\"line-chart\":\"LineChartLineOutline\",\"line-chart-line\":\"LineChartLine\",\"line-chart-area\":\"LineChartAreaOutline\",list:\"List\",\"pie-chart\":\"PieChartOutline\",\"pie-chart-donut\":\"PieChartDonutOutline\",\"pivot-table\":\"PivotTableOutline\",map:\"MapOutline\",\"scatter-chart\":\"ScatterChartOutline\",table:\"TableOutline\",\"text-object\":\"TextObject\",treemap:\"TreemapOutline\",waterfallchart:\"WaterfallChartOutline\",marimekko:\"Marimekko\",button:\"ButtonOutline\",bulletChart:\"BulletChartOutline\",\"natural-language-generation\":\"NaturalLanguageGeneration\",calendar:\"Calendar\",play:\"Play\",filter:\"Filter2\",\"grid-ghart\":\"GridChartOutline\",bubbles:\"AssociationOutline\",\"org-chart\":\"OrgChartOutline\",\"auto-layout\":\"AutoLayoutOutline\",stream:\"Stream\",grid:\"GridOutline\",\"line-object\":\"LineObject\",control:\"ControlOutline\",video:\"VideoOutline\",slideShow:\"SlideshowOutline\",text:\"Text\",more:\"More\",\"layout-container\":\"LayoutContainerOutline\",\"tabbed-container\":\"TabbedContainerOutline\",code:\"CodeOutline\",\"sn-table\":\"TableOutline\"},xt=function(e){var t;return function(e){var t;return null!==(t=bt[e])&&void 0!==t?t:bt.puzzle}(null===(t=yt[e])||void 0===t?void 0:t.icon)};function wt(e){return qt.apply(this,arguments)}function qt(){return(qt=M(I().m(function e(t){var n,r,i,o;return I().w(function(e){for(;;)switch(e.n){case 0:if(n=t.app,r=t.items,n.evaluateEx){e.n=1;break}return e.a(2,r);case 1:return e.n=2,Promise.all(r.filter(function(e){var t;return!(null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t||!t.qv)}).map(function(e){var t=e.qCalcCondition.qCond.qv;return n.evaluateEx(t).then(function(t){return 0===t.qNumber?e.qDef.cId:void 0}).catch(function(){return e.qDef.cId})}));case 2:return i=e.v,o=i.filter(Boolean),e.a(2,r.filter(function(e){return!o.includes(e.qDef.cId)}))}},e)}))).apply(this,arguments)}function Ot(e){var t=e.app,n=e.translator,r=e.dimension,i={id:r.qDef.cId,text:n.get(\"Object.ErrorMessage.MissingDimension\"),meta:{}},o=r.qLibraryId;if(o)return t.getDimension?t.getDimension(o).then(function(e){return e.getLayout()}).catch(function(){}).then(function(e){if(!e)return i;var t=e.qDim,n=t.qGrouping,o=t.qLabelExpression,a=\"C\"===n,l=\"H\"===n,s=\"N\"===n;return{id:r.qDef.cId,text:o&&s?o:e.qDim.title,meta:{isCyclic:a,isDrillDown:l,isNormal:s}}}):i;var a=r.qDef,l=a.cId,s=a.qLabelExpression,c=a.qFieldLabels,u=a.qFieldDefs,d={isCyclic:!1,isDrillDown:!1,isNormal:!0};return s?t.evaluate?t.evaluate(s).then(function(e){return{id:l,text:e,meta:d}}):i:{id:l,text:c[0]||u[0],meta:d}}function kt(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=M(I().m(function e(t){var n,r,i,o,a,l,s,c;return I().w(function(e){for(;;)switch(e.n){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},l=a.qDimensions,(s=void 0===l?[]:l).length){e.n=1;break}return e.a(2,Promise.resolve([]));case 1:return e.n=2,wt({app:r,items:s});case 2:return c=e.v,e.a(2,Promise.all(c.map(function(e){return Ot({app:r,translator:i,dimension:e})})))}},e)}))).apply(this,arguments)}function St(e){var t=e.app,n=e.translator,r=e.measure,i={id:r.qDef.cId,text:n.get(\"Object.ErrorMessage.MissingMeasure\")},o=r.qLibraryId;if(o)return t.getMeasure?t.getMeasure(o).then(function(e){return e.getLayout()}).catch(function(){}).then(function(e){if(!e)return i;var t=e.qMeasure.qLabelExpression;return{id:r.qDef.cId,text:t||e.qMeasure.qLabel||e.qMeasure.qDef}}):i;var a=r.qDef,l=a.cId,s=a.qLabelExpression,c=a.qLabel,u=a.qDef;return s?t.evaluate?t.evaluate(s).then(function(e){return{id:l,text:e}}):i:{id:l,text:c||u}}function Tt(e){return Ct.apply(this,arguments)}function Ct(){return(Ct=M(I().m(function e(t){var n,r,i,o,a,l,s,c;return I().w(function(e){for(;;)switch(e.n){case 0:if(r=t.app,i=t.translator,o=t.properties,a=(null==o||null===(n=o.qHyperCubeDef)||void 0===n||null===(n=n.qLayoutExclude)||void 0===n?void 0:n.qHyperCubeDef)||{},l=a.qMeasures,(s=void 0===l?[]:l).length){e.n=1;break}return e.a(2,Promise.resolve([]));case 1:return e.n=2,wt({app:r,items:s});case 2:return c=e.v,e.a(2,Promise.all(c.map(function(e){return St({app:r,translator:i,measure:e})})))}},e)}))).apply(this,arguments)}function Et(e){var t,n=e.app,r=e.translator,i={initialized:!1,dimensions:[],measures:[]};return{initialize:(t=M(I().m(function e(t){var o,a,l,s,c,u,d;return I().w(function(e){for(;;)switch(e.n){case 0:if(o=t.properties,!i.initialized){e.n=1;break}return e.a(2);case 1:return l=[kt(a={app:n,translator:r,properties:o}),Tt(a)],e.n=2,Promise.all(l);case 2:s=e.v,c=A(s,2),u=c[0],d=c[1],i.dimensions=u,i.measures=d,i.initialized=!0;case 3:return e.a(2)}},e)})),function(e){return t.apply(this,arguments)}),getAlternatives:function(){return{dimensions:N(i.dimensions),measures:N(i.measures)}}}}function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var Dt=function(){if(gt)return mt;gt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return\"function\"==typeof Array.isArray?Array.isArray(e):\"[object Array]\"===t.call(e)},o=function(n){if(!n||\"[object Object]\"!==t.call(n))return!1;var r,i=e.call(n,\"constructor\"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,\"isPrototypeOf\");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&\"__proto__\"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if(\"__proto__\"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return mt=function e(){var t,n,r,s,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for(\"boolean\"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||\"object\"!=typeof d&&\"function\"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},mt}(),At=It(Dt);function Nt(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette(\"categorical\",0===t?r.items.length:t);return r.items.map(function(e){return i[e.value%i.length]})},valueAccessor:e.value}}function Pt(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette(\"categorical\",0===t?r.items.length:t);return r.items.map(function(e){return i[e.row.value%i.length]})},valueAccessor:e.value}}function Lt(e,t,n,r,i){var o,a,l=i.byRow,s=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>(o=e.hc,(null===(a=o.qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return s(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return l(r,c)}return{}}function Ft(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:\"libraryItem\",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function jt(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter(function(e){return\"dimension\"===e.type()})[t.activeDimensionIndex]:\"libraryItem\"===t.type?!1===(n=t.key?e.pic.field(function(e){return e.raw().colorMapRef===t.key}):void 0)&&(n=e.pic.field(function(e){return\"colorByAlternative\"===e.raw().id})):\"expression\"===t.type&&(n=e.pic.field(function(e){return\"colorByAlternative\"===e.raw().id})),n}function zt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bt(){}var Ht=.7,_t=1/Ht,Vt=\"\\\\s*([+-]?\\\\d+)\\\\s*\",Kt=\"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",$t=\"\\\\s*([+-]?(?:\\\\d*\\\\.)?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",Yt=/^#([0-9a-f]{3,8})$/,Gt=new RegExp(`^rgb\\\\(${Vt},${Vt},${Vt}\\\\)$`),Ut=new RegExp(`^rgb\\\\(${$t},${$t},${$t}\\\\)$`),Wt=new RegExp(`^rgba\\\\(${Vt},${Vt},${Vt},${Kt}\\\\)$`),Xt=new RegExp(`^rgba\\\\(${$t},${$t},${$t},${Kt}\\\\)$`),Zt=new RegExp(`^hsl\\\\(${Kt},${$t},${$t}\\\\)$`),Jt=new RegExp(`^hsla\\\\(${Kt},${$t},${$t},${Kt}\\\\)$`),Qt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function en(){return this.rgb().formatHex()}function tn(){return this.rgb().formatRgb()}function nn(e){var t,n;return e=(e+\"\").trim().toLowerCase(),(t=Yt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rn(t):3===n?new sn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?on(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?on(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Gt.exec(e))?new sn(t[1],t[2],t[3],1):(t=Ut.exec(e))?new sn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wt.exec(e))?on(t[1],t[2],t[3],t[4]):(t=Xt.exec(e))?on(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Zt.exec(e))?hn(t[1],t[2]/100,t[3]/100,1):(t=Jt.exec(e))?hn(t[1],t[2]/100,t[3]/100,t[4]):Qt.hasOwnProperty(e)?rn(Qt[e]):\"transparent\"===e?new sn(NaN,NaN,NaN,0):null}function rn(e){return new sn(e>>16&255,e>>8&255,255&e,1)}function on(e,t,n,r){return r<=0&&(e=t=n=NaN),new sn(e,t,n,r)}function an(e){return e instanceof Bt||(e=nn(e)),e?new sn((e=e.rgb()).r,e.g,e.b,e.opacity):new sn}function ln(e,t,n,r){return 1===arguments.length?an(e):new sn(e,t,n,null==r?1:r)}function sn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function cn(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}`}function un(){const e=dn(this.opacity);return`${1===e?\"rgb(\":\"rgba(\"}${fn(this.r)}, ${fn(this.g)}, ${fn(this.b)}${1===e?\")\":`, ${e})`}`}function dn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pn(e){return((e=fn(e))<16?\"0\":\"\")+e.toString(16)}function hn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mn(e,t,n,r)}function vn(e){if(e instanceof mn)return new mn(e.h,e.s,e.l,e.opacity);if(e instanceof Bt||(e=nn(e)),!e)return new mn;if(e instanceof mn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new mn(a,l,s,e.opacity)}function mn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function gn(e){return(e=(e||0)%360)<0?e+360:e}function yn(e){return Math.max(0,Math.min(1,e||0))}function bn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}zt(Bt,nn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:en,formatHex:en,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vn(this).formatHsl()},formatRgb:tn,toString:tn}),zt(sn,ln,Rt(Bt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ht:Math.pow(Ht,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sn(fn(this.r),fn(this.g),fn(this.b),dn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cn,formatHex:cn,formatHex8:function(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}${pn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:un,toString:un})),zt(mn,function(e,t,n,r){return 1===arguments.length?vn(e):new mn(e,t,n,null==r?1:r)},Rt(Bt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new mn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ht:Math.pow(Ht,e),new mn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new sn(bn(e>=240?e-240:e+120,i,r),bn(e,i,r),bn(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new mn(gn(this.h),yn(this.s),yn(this.l),dn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=dn(this.opacity);return`${1===e?\"hsl(\":\"hsla(\"}${gn(this.h)}, ${100*yn(this.s)}%, ${100*yn(this.l)}%${1===e?\")\":`, ${e})`}`}}));const xn=Math.PI/180,wn=180/Math.PI,qn=.96422,On=.82521,kn=4/29,Mn=6/29,Sn=3*Mn*Mn,Tn=Mn*Mn*Mn;function Cn(e){if(e instanceof En)return new En(e.l,e.a,e.b,e.opacity);if(e instanceof Ln)return Fn(e);e instanceof sn||(e=an(e));var t,n,r=Nn(e.r),i=Nn(e.g),o=Nn(e.b),a=In((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=In((.4360747*r+.3850649*i+.1430804*o)/qn),n=In((.0139322*r+.0971045*i+.7141733*o)/On)),new En(116*a-16,500*(t-a),200*(a-n),e.opacity)}function En(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function In(e){return e>Tn?Math.pow(e,1/3):e/Sn+kn}function Dn(e){return e>Mn?e*e*e:Sn*(e-kn)}function An(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Pn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ln)return new Ln(e.h,e.c,e.l,e.opacity);if(e instanceof En||(e=Cn(e)),0===e.a&&0===e.b)return new Ln(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*wn;return new Ln(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ln(e,t,n,null==r?1:r)}function Ln(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fn(e){if(isNaN(e.h))return new En(e.l,0,0,e.opacity);var t=e.h*xn;return new En(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}zt(En,function(e,t,n,r){return 1===arguments.length?Cn(e):new En(e,t,n,null==r?1:r)},Rt(Bt,{brighter(e){return new En(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new En(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new sn(An(3.1338561*(t=qn*Dn(t))-1.6168667*(e=1*Dn(e))-.4906146*(n=On*Dn(n))),An(-.9787684*t+1.9161415*e+.033454*n),An(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),zt(Ln,Pn,Rt(Bt,{brighter(e){return new Ln(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ln(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fn(this).rgb()}}));var jn=e=>()=>e;function zn(e){return 1===(e=+e)?Rn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jn(isNaN(t)?n:t)}}function Rn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):jn(isNaN(e)?t:e)}var Bn=function e(t){var n=zn(t);function r(e,t){var r=n((e=ln(e)).r,(t=ln(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Rn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+\"\"}}return r.gamma=e,r}(1),Hn=/^class(-pyramid)?/,_n=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,l=o,s=t.limits,c={},u=\"percent\"===t.limitType?s.map(function(e){return i+(o-i)*e}):s,d=t.colors.map(function(t){return e.resolveUIColor(t)});if(i=Math.min.apply(Math,[i].concat(N(u))),o=Math.max.apply(Math,[o].concat(N(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type=\"categorical\",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var l=0;l<r.length;l++)if(t<r[l]){o.push(i[l]);break}}for(var s=0;s<r.length;s++)t<r[s]&&r[s]<n&&(a.push(r[s]),o.push(i[s]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:\"percent\"===t.limitType?i:a,max:\"percent\"===t.limitType?o:l,range:d,limits:\"percent\"===t.limitType?u:s}));else if(t.breakTypes){var f=t.breakTypes;c.type=\"continuous\",c.domain=[i],c.range=[d[0]];for(var p=0;p<u.length;p+=1)if(f[p]){var h=d[p],v=d[p+1],m=Bn(h,v)(.5);c.range.push(m),c.domain.push(u[p]),p<u.length-1&&f[p+1]&&(c.range.push(d[p+1]),c.domain.push((u[p]+u[p+1])/2))}else c.range.push(d[p]),c.range.push(d[p+1]),c.domain.push(u[p]),c.domain.push(u[p]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function Vn(e,t,n,r,i){var o,a,l,s=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),l=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(l)||(c[l]?c[l]+=1:c[l]=1);for(o=0;o<c.length;o+=1)c[o]&&(s+=1);return s<=r||s>=i?Math.max(s,r):Vn(e,t,n,r+1,i)}var Kn=function(e,t,n,r){var i,o,a=t.theme,l=t.hc,s=r.f,c={mode:\"field\",fieldType:\"measure\",field:s?s.key():void 0,reverse:n.input.reverseScheme||!1,type:\"continuous\",range:function(e){return e.resources.theme.palette(\"quant\")}},u=[],d=!0;if(s){if(Number.isNaN(+s.min())||Number.isNaN(+s.max()))return{invalid:!0};(d=!(\"S\"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||\"K\"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||\"T\"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:s.key()},exclude:{fields:l.qDimensionInfo.map(function(e,t){return{field:\"qDimensionInfo/\".concat(t)}}),value:function(e){return Math.min.apply(Math,N(e))<0}}}}).filter(function(e){return e.value>=0&&!e.exclude.value}).map(function(e){return e.num.value}).filter(function(e){return\"number\"==typeof e}))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(s&&!d)c.min=s.min(),c.max=s.max();else if(s){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,N(u)),c.max=Math.max.apply(Math,N(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter(function(e){return e.key===n.input.measureScheme})[0];c.type=f&&Hn.test(f.type)?\"categorical\":\"continuous\",\"categorical\"===c.type&&(o=f.colors.some(function(e){return Array.isArray(e)})?Math.max.apply(Math,N(f.colors.map(function(e){return e?e.length:0}))):f.colors.length)}if(\"categorical\"===c.type){for(var p=d?Vn(c.max,c.min,u,1,o):o,h=(c.max-c.min)/p,v=[],m=0;m<p+1;m+=1)v.push(c.min+h*m);c.domain=v,c.range=function(e){for(var t=e.resources.theme.palette(\"quant\",p),n=Math.max(1,Math.floor(t.length/p)),r=[],i=0;i<p;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function $n(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter(function(e){return\"measure\"===e.type()})[t.activeMeasureIndex]:\"libraryItem\"===t.type?n=e.pic.field(function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key}):\"expression\"===t.type&&(n=e.pic.field(function(e){return\"colorByAlternative\"===e.raw().id})),n||(n=e.pic.field(function(e){return void 0!==e.raw().matchMeasure}))&&(n=e.pic.fields().filter(function(e){return\"measure\"===e.type()})[n.raw().matchMeasure]),n}function Yn(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var l=null!==(t=o.mode)&&void 0!==t?t:\"primary\";return\"primary\"===l?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),C(C({},n),{},{mode:\"constant\",type:\"constant\",primary:r})}(n,o,r):\"byExpression\"===l?function(e,t,n){var r=\"qMeasureInfo/\".concat(e,\"/\"),i=t.field(function(e){return e.id().startsWith(r)&&\"colorByMeasureExpression\"===e.raw().id}),o=i;return C(C({},n),{},o?{mode:\"field\",fieldType:\"expression\",field:i?i.key():void 0,type:\"color\"}:{mode:\"constant\",type:\"constant\",primary:n.nil})}(i,a,r):null}function Gn(e){e.measureOverrides.every(function(e){return!e})&&(e.measureOverrides=null)}function Un(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if(\"constant\"===(null==a?void 0:a.mode)){var l=n.indexOf(o);-1===l?(n.push(o),r.push(a.primary)):r[l]=a.primary,e[o]=null}else if(a){i.push(o);var s=n.indexOf(o);-1!==s&&(n.splice(s,1),r.splice(s,1))}}return{domain:n,range:r,exclude:i}}function Wn(e,t,n,r){if(t.input&&!t.input.auto){if(\"byMeasure\"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?$n:o,l=n.input.byMeasureDef||{activeMeasureIndex:0},s=a(n,l),c=Kn(0,{theme:r,hc:i},n,{f:s});if(c.invalid)return c;\"expression\"===l.type&&(l.activeMeasureIndex<0||void 0===l.activeMeasureIndex)&&(c.label=l.label,s&&\"color.altLabel\"===s.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&s&&(c.label=s.title());var u=l.activeMeasureIndex>=0?s:null;if(!u&&s&&void 0!==s.raw().matchMeasure&&s.raw().matchMeasure>-1&&(u=n.pic.fields().filter(function(e){return\"measure\"===e.type()})[s.raw().matchMeasure]),n.input.useMeasureGradient&&\"libraryItem\"===l.type)if(u){var d=u.raw().coloring;d&&d.gradient&&At(c,_n(e,d.gradient,c,u))}else c.auxiliary=l;return c}(e,n,t);if(\"byDimension\"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?Ft:i,a=r.getCByField,l=void 0===a?jt:a,s=r.getPersistence,c=void 0===s?Lt:s,u=o(t,n),d=l(n,u),f=d?d.raw():{},p=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!p.qHasOtherValues)return{invalid:!0};var h={mode:\"field\",fieldType:\"dimension\",type:\"categorical\",field:d?d.key():void 0,isFieldLocked:f.qLocked};return(\"expression\"===u.type||u.activeDimensionIndex<0)&&(h.label=u.label,\"color.altLabel\"===f.labelExpRef&&(h.label=n.input.altLabel)),!h.label&&d&&(h.label=d.title()),n.input.dimensionScheme&&(h.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&\"libraryItem\"===u.type&&(h.auxiliary=u),At(h,c(t,n,u,d,{byRow:Pt,byElemNo:Nt})),h}(e,n,t);if(\"byExpression\"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,l=n.pic.field(function(e){return\"colorByExpression\"===e.raw().id});if(!l||!l.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(l.raw().qMin)&&Number.isFinite(l.raw().qMax)||n.input.expressionIsColor))return{mode:\"constant\",type:\"constant\",primary:r.nil};if(n.input.expressionIsColor)return{mode:\"field\",fieldType:\"expression\",field:l?l.key():void 0,type:\"color\"};var s=Kn(0,{hc:i,theme:o},n,{f:l});return s.invalid||(s.label=n.input.expressionLabel||a.get(\"Object.ChartTooltip.ColorExpression\")),s}(0,n,t,r);if(\"byMultiple\"===t.input.mode||\"primary\"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,l=n.input.useBaseColors;if((\"byMultiple\"===n.input.mode||\"primary\"===n.input.mode&&\"measure\"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(l=\"measure\"),\"measure\"===l){var s=[],c=[];\"measure\"===n.input.useBaseColors&&i.qMeasureInfo.forEach(function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){s.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);\"none\"===i?c.push(r.primary):c.push(i)}});var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return\"measure\"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:\"measure\",type:\"categorical\",palettes:u,label:a?a.get(\"Common.Measures\"):void 0,explicit:s.length?{domain:s,range:c}:void 0}}if(\"dimension\"===l){var f=[],p=[];return i.qDimensionInfo.forEach(function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);\"none\"===i?p.push(r.primary):p.push(i)}}),{mode:\"dimension\",type:\"categorical\",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:p}:void 0}}var h=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(h=e.resolveUIColor(n.input.paletteColor));else{var v=n.input.singleColor;\"number\"!=typeof v||Number.isNaN(v)||(h=[\"#b0afae\",\"#7b7a78\",\"#545352\",\"#4477aa\",\"#7db8da\",\"#b6d7ea\",\"#46c646\",\"#f93f17\",\"#ffcf02\",\"#276e27\",\"#ffffff\",\"#000000\"][v])}return{mode:\"constant\",type:\"constant\",primary:h}}(e,n,t,r)}return{}}function Xn(e,t,n,r){var i,o=Wn(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map(function(n,i){return Yn({cm:e,input:n,defaults:r,index:i,pic:t.pic})}),function(e,t){var n,r,i,o=t.translator;if(Gn(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if(\"measure\"===e.mode&&e.measureOverrides&&(e.explicit=Un(e.measureOverrides,e.explicit),Gn(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every(function(e){return\"constant\"===(null==e?void 0:e.mode)})){var a={mode:\"measure\",type:\"categorical\",label:null==o?void 0:o.get(\"Common.Measures\")};return a.explicit=Un(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every(function(e){return e})?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}function Zn(e){var t=C({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:\"primary\"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing \"colorProps\"');if(At(t,e),(n={pic:t.picasso.data(\"q\")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=At(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var l=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(l=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[l]&&t.hc.qDimensionInfo[l].coloring&&t.hc.qDimensionInfo[l].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type=\"libraryItem\",n.input.byDimDef.key=t.hc.qDimensionInfo[l].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every(function(e){return!e||!e.on})&&(n.input=At(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach(function(e){r.push({key:\"ui\",colors:e.colors})}),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"/qHyperCubeDef\";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if(\"measure\"===e.fieldType)return r.getMeasure(i,t).catch(function(){});if(\"dimension\"===e.fieldType){var o=\"\".concat(n,\"/\").concat(e.field).replace(\"qDimensionInfo\",\"qDimensions\").replace(\"qAttrDimInfo\",\"qAttributeDimensions\");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch(function(){}):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch(function(){}):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then(function(r){if(!r)return{};if(\"measure\"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return _n(i,r.coloring.gradient,e,o)}return{}}if(\"dimension\"===e.fieldType){var a={nil:e.nil,others:e.others},l=r[0],s=r[1]?r[1].colorMap:null;if(l){var c=t.picasso.data(\"q\")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:l,qInterColumnSortOrder:[0,1],qMode:\"S\"}});a.legendDataset=c}return s?function(e,t,n,r){var i=r.external,o=r.field,a=C({},e);At(a,Nt(o,o.raw().qCardinal));var l=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},l&&!t.pal&&(a.palettes.categorical=l.key,At(a,Nt(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(l&&(a.palettes={categorical:l.key}),At(a,Nt(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var l=0;l<i.items.length;l++){var s=i.items[l],c=(s.text||s).label;r[c]&&-1===a.indexOf(s.value)&&(a.push(s.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,s,i,{external:t,field:n.pic.field(e.field)}):a}return{}})):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter(function(e){return\"ui\"===e.key})[0]||!1),!n.uiPalette)return e.color;var t=\"none\"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:\"steelblue\",others:\"#aaa\",nil:\"#ddd\"},r=t.theme;r&&(e=C(C({},e),r.getDataColorSpecials())),n.settings=At(e,Xn(this,n,t,e))}return n.settings}};return i}var Jn=function(e,t){var n=e.fieldType,r={};if(t)if(\"measure\"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if(\"dimension\"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},Qn=function(e){throw e.isHandled=!0,e};function er(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=Zn(e.resources).auto(t||function(){return{mode:\"byDimension\",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:\"expression\",label:\"\"}}}).getDimensionColorMap(function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject(\"ColorMapModel_\".concat(e)).then(function(e){return e.getLayout()}):Promise.reject()}(e,{layout:t.layout,app:t.app})}).getMeasure(function(e,t){return function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then(function(e){return e.getMeasure()}):Promise.reject()}(e,{layout:t.layout,app:t.app})}).getAttributeDimension(function(e,t){return function(e,t){var n=t.layout,r=t.model,i=t.app;if(n&&n.snapshotData)return n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject();if(r&&r.session&&i)return r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(Qn);return Promise.reject()}(e,{layout:t.layout,model:t.model,app:t.app})});return n.getSnapshotData=Jn,n}function tr(e){return function(t){return\"object\"===P(t.datum[e])?t.datum[e].value:void 0}}function nr(e){return\"object\"===P(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function rr(e){return-3===e.datum.value}var ir={TITLE:{COLOR:void 0,FONT_SIZE:\"16px\",FONT_FAMILY:\"'Source Sans Pro', 'Arial', 'sans-serif'\"},LABEL:{COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:\"'Source Sans Pro', 'Arial', 'sans-serif'\"}},or=\"legend.title\",ar=\"legend.label\";function lr(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:ir.TITLE.COLOR,fontSize:ir.TITLE.FONT_SIZE,fontFamily:ir.TITLE.FONT_FAMILY},label:{color:ir.LABEL.COLOR,fontSize:ir.LABEL.FONT_SIZE,fontFamily:ir.LABEL.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,l=o.label,s=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=s(null==a?void 0:a.color,or,\"color\",ir.TITLE.COLOR),i.title.fontSize=s(null==a?void 0:a.fontSize,or,\"fontSize\",ir.TITLE.FONT_SIZE),i.title.fontFamily=s(null==a?void 0:a.fontFamily,or,\"fontFamily\",ir.TITLE.FONT_FAMILY),i.label.color=s(null==l?void 0:l.color,ar,\"color\",ir.LABEL.COLOR),i.label.fontSize=s(null==l?void 0:l.fontSize,ar,\"fontSize\",ir.LABEL.FONT_SIZE),i.label.fontFamily=s(null==l?void 0:l.fontFamily,ar,\"fontFamily\",ir.LABEL.FONT_FAMILY),i}var sr=function(e,t,n){var r=e&&e.dock||void 0;if(\"auto\"!==r)return r||\"right\";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return\"bottom\"}return n?\"left\":\"right\"},cr=function(e,t,n){return!(n.invalid||\"color\"===n.type||\"measure\"===n.mode&&t.qMeasureInfo.length<=1||\"dimension\"===n.mode)&&(\"function\"==typeof e.show?e.show():!1!==e.show)};function ur(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,l=t.coloring,s=t.theme,c=t.hc,u=lr({theme:s,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:\"MEDIUM\",dock:sr(a,i,o)},show:\"function\"==typeof a.show?function(){return cr(a,c,l)}:cr(a,c,l),renderer:\"svg\",mounted:function(e){e.childNodes[0].style.pointerEvents=\"none\",e.style.overflow=\"hidden\"},settings:{title:{show:!1!==a.showTitle,wordBreak:\"break-word\",maxLines:2,lineHeight:1.2,text:l.label||\"\",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function dr(e,t,n){return\"categorical\"===t.coloring.type?function(e,t,n){var r=ur(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,l=e.styleOverrides,s=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,p=t.theme,h=t.scales,v=lr({theme:p,key:a,styleOverrides:l}),m=r.layout.dock,g=\"left\"===m||\"right\"===m?{maxLines:2,wordBreak:\"break-word\"}:{},y={up:\"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z\",down:\"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z\",left:\"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z\",right:\"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z\"};\"dimension\"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b=\"\".concat(f,\"Legend\");return At(!0,r,{type:\"legend-cat\",key:\"\".concat(o,\"-cat\"),scale:b in h?b:f,settings:{layout:{scrollOffset:function(){return s?s.get(\"legendScrollOffset\"):void 0},size:-1!==[\"top\",\"bottom\"].indexOf(r.layout.dock)?2:1,direction:c?\"rtl\":\"ltr\",horizontal:20},item:{show:i,label:C({fill:v.label.color,fontSize:v.label.fontSize,fontFamily:v.label.fontFamily},g)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e(\"i\",{style:{\"pointer-events\":\"none\",fontSize:\"12px\",display:\"inline-block\",fontStyle:\"normal\",lineHeight:\"0\",textAlign:\"center\",textTransform:\"none\",verticalAlign:\"-0.125em\",textRendering:\"optimizelegibility\",margin:\"0px\"}},[e(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"1em\",height:\"1em\",viewBox:\"0 0 16 16\",fill:\"currentColor\"},[e(\"path\",{d:y[n]})])])}}}},brush:{consume:[{context:\"selection\",data:[\"\",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):\"continuous\"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,l=e.settings,s=e.style,c=t.scaleKey,u=t.theme,d=\"\".concat(c,\"Range\"),f=ur(e,t);if(!f.show)return!1;var p=lr({theme:u,key:i,styleOverrides:o}),h=f.layout.dock,v=\"right\"===h||\"left\"===h,m=null===(n=t.scales)||void 0===n?void 0:n[d];return v&&m&&(m.invert=!0),At(!0,f,{type:\"legend-seq\",key:\"\".concat(r,\"-seq\"),settings:{fill:c,major:d,length:1,tick:{fill:p.label.color,fontSize:p.label.fontSize,fontFamily:p.label.fontFamily},title:{anchor:!a||\"top\"!==f.layout.dock&&\"bottom\"!==f.layout.dock?void 0:\"right\",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:l,style:s})}(e,t)}function fr(e,t,n){var r=[],i=[],o=dr(e,t,n&&n.navigationDisabled);return r.push(o),o&&\"legend-cat\"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:\"event:tap-\".concat(t),type:\"Tap\",requireFailure:n,recognizeWith:r,options:{event:\"legendtap\",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some(function(e){return e.key===\"\".concat(t,\"-cat\")}))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute(\"data-action\")&&o.hasAttribute(\"data-component-key\"))||!(!o||!o.childNodes[0]||\"BUTTON\"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute(\"data-action\")&&t.hasAttribute(\"data-component-key\")&&this.chart.component(t.getAttribute(\"data-component-key\")).emit(t.getAttribute(\"data-action\"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:\"event:pan-\".concat(n),type:\"Pan\",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some(function(e){return e.key===\"\".concat(n,\"-cat\")})}},events:S(S(S({},\"\".concat(t,\"start\"),function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component(\"\".concat(n,\"-cat\")).emit(\"panstart\",e))}),\"\".concat(t,\"move\"),function(e){e.preventDefault(),this.chart.component(\"\".concat(n,\"-cat\")).emit(\"panmove\",e)}),\"\".concat(t,\"end\"),function(e){e.preventDefault(),this.chart.component(\"\".concat(n,\"-cat\")).emit(\"panend\",e),this.started=!1})}}(e,n))),{interactions:i,components:r}}function pr(e){var t=er({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn(\"settings() called before auxiliarySettings()\"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=C({},i),r={},!n.key)throw new Error(\"Missing key\");t.set(C(C({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then(function(e){return r.auxiliarySettings=e||{},r.settings=C(C({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings})},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then(function(e){return t.getSnapshotData(n,e)})},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t,n=null===(t=i().measureOverrides)||void 0===t?void 0:t[e];return n||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return\"field\"!==e.mode||(\"dimension\"===e.fieldType?e.isFieldLocked:\"measure\"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter(function(e){return e.key===o})[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:\"categorical\",colors:a.colors});var l=n.palettes.metric||t.measureScheme,s=r.getDataColorScales().filter(function(e){return e.key===l})[0]||r.getDataColorScales()[0];if(s){var c=s.colors[0]?s.colors:[[]].concat(N(s.colors.slice(1)));c=Array.isArray(c[0])?c.map(function(e){return e.slice().reverse()}):c.slice().reverse(),i.push({key:\"quant\",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,l={},s=i;if(n){var c={override:!0,domain:n.explicit&&\"function\"==typeof n.explicit.domain?n.explicit.domain:[].concat(N((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&\"function\"==typeof n.explicit.range?n.explicit.range:[].concat(N((n.explicit||{}).range||[]),[n.others,n.nil])};if(\"field\"===n.mode){if(\"dimension\"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:\"dummy\",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:\"first\",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:\"first\"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}),f=d.data;if(n.legendDataset){var p=0,h={};a.data(\"q\")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=p++,e[0]}}),u={source:\"attrDim\",extract:{field:\"qDimensionInfo/0\",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var v={data:f,range:n.range,domain:n.domain,explicit:c,type:\"categorical-color\",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};l[s]=v,u&&(l[\"\".concat(s,\"Legend\")]=C(C({},v),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||v.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:\"qHyperCube\",field:\"qDimensionInfo/0\"},row:{value:-3},value:-3}])}else if(\"measure\"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};l[s]=At({},m,{type:\"categorical\"===n.type?\"threshold-color\":\"sequential-color\",range:n.range,domain:n.domain,invert:n.reverse}),\"sequential-color\"===l[s].type&&(l[\"\".concat(s,\"Range\")]=At({},m,{invert:!!r}))}else if(\"color\"!==n.type)throw new Error(\"UNUSED FIELD\")}else if(\"dimension\"===n.mode){var g={data:t.qDimensionInfo.map(function(e,t){return t}),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:\"categorical-color\"};l[s]=g}else if(\"measure\"===n.mode){var y={data:t.qMeasureInfo.map(function(e,t){return t}).filter(function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))}),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:\"categorical-color\"};l[s]=y}}return l}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=tr(r),o=tr(\"\".concat(r,\"IsAnOther\")),a=function(e,t){var r=e.fieldType,a=e.invalid,l=e.mode,s=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return rr(e)||o(e)?c:s}:n[t]?function(e){return rr(e)?c:nr(e)||-2===i(e)&&\"dimension\"===r||\"NaN\"===i(e)?s:o(e)?c:e.resources.scale(t)(i(e))||c}:\"constant\"===l?function(e){return rr(e)||o(e)?c:nr(e)?s:u}:\"color\"===d?function(e){return rr(e)||o(e)?c:nr(e)?s:i(e)||c}:null},l=a(t,r);if(t.measureOverrides){var s=tr(\"\".concat(r,\"MeasureIdx\")),c=t.measureOverrides.map(function(e){return e&&a(e)});return function(e){var t=s(e);return c[t]?c[t](e):l(e)}}return l}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,l=e.addMeasureIx,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;\"field\"===i.mode&&i.field?t=i.field:o[a]&&\"field\"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:\"first\"},\"color\"===i.type&&(n.value=function(e){return\"NaN\"!==e.qNum?(t=e.qNum,\"rgba(\".concat([(16711680&t)>>16,(65280&t)>>8,255&t,((4278190080&t)>>>24)/255].join(\",\"),\")\")):e.qText&&nn(e.qText)?e.qText:u;var t})):\"dimension\"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:\"measure\"===i.mode&&(n=s);var d=S({},c,n);return r.qDimensionInfo.length>1&&(d[\"\".concat(c,\"IsAnOther\")]={fields:r.qDimensionInfo.map(function(e,t){return{field:\"qDimensionInfo/\".concat(t)}}),value:function(e){return-1!==e.indexOf(-3)}}),l&&(d[\"\".concat(c,\"MeasureIdx\")]=s),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:\"dummy\",data:[[\"field\"],[\"a\"]]};return e.legendDataset?[t,{type:\"q\",key:\"attrDim\",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,l=e.rtl,s=e.styleReference,c=void 0===s?\"object.legend\":s,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,p=e.style,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fr({eventName:t,key:r,rtl:l,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===p?{}:p},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},h)}};return o}var hr=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function vr(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(hr),o=r.some(hr),a=e.color.useBaseColors;return\"measure\"===a&&!o||\"dimension\"===a&&!i?\"off\":a}var mr=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function gr(e){var t,n=e.qHyperCube.qDimensionInfo.some(mr),r=e.qHyperCube.qMeasureInfo.some(mr),i=n?\"dimension\":void 0;return{mode:\"primary\",useBaseColors:null!==(t=null!=i?i:r?\"measure\":void 0)&&void 0!==t?t:\"off\",paletteColor:null}}var yr=function(){};function br(e){var t,n,r,i,o=e.picasso,a=e.model,l=e.app,s=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?yr:d,p=e.config,h=void 0===p?{}:p,v=e.custom,m=void 0===v?{}:v,g=h.localeInfo,y=h.key,b=h.theme,x=void 0===b?void 0:b,w=h.auto,q=void 0===w?void 0:w,O=h.definitionPath,k=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),M={theme:x,key:y,localeInfo:g,layout:k,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,\"legend\"),colorProps:C(C({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,\"color\")),{},{useBaseColors:k?vr(k):void 0})},S=pr({picasso:o,model:a,app:l,translator:s,auto:q});!1!==q&&S.auto(function(e){return q?q({layout:e,defaultAuto:gr}):gr(e)});var T=!1,E={getColor:function(){return S.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return S.resolveUIColor({index:t,color:n})},getData:function(){return S.data()},getDatumProps:function(e){return S.datumProps(e)},getSnapshotData:function(){return S.getSnapshotData(O)},getSettingsForMeasure:function(e){return S.settingsForMeasure(e)},getSettings:function(){return S.settings()},getLegend:function(e,t){return S.legend(e,t)},getScales:function(){return S.scales()},getPalettes:function(){return S.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return S.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return T},custom:C({},m),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:vr}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return C(C(C({},e),t),{},{colorProps:C(C({},e.colorProps),t.colorProps||{})})}(M,t);return S.config(n),S.getAuxiliarySettings(O).then(function(){T=!0})}};return E}var xr=\"center\",wr=\"bottom\",qr=[{key:\"NoDataExist\",alignment:xr,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:\"OnlyNanDataMeasure\",translationKey:\"OnlyNanData\",alignment:xr,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue(\"qMeasureInfo\").every(function(e){return\"NaN\"===e.qMin&&\"NaN\"===e.qMax})}},{key:\"OnlyNanDataDimensionContinuous\",translationKey:\"OnlyNanData\",alignment:xr,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue(\"qDimensionInfo.0\");return n&&(n.qMax<n.qMin||\"NaN\"===n.qMax)}},{key:\"OnlyNegativeOrZeroValues\",alignment:xr},{key:\"DataRangeIncludingZero\",alignment:wr},{key:\"LimitedData\",alignment:wr},{key:\"NegativeOrZeroValues\",alignment:wr}].reduce(function(e,t){return e[t.key]=t,e},{}),Or=function(){return!1};function kr(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue(\"showDisclaimer\"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach(function(e){var i=qr[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||Or)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||wr})}),r.find(function(e){return e.alignment===xr})||r[0]}({args:C(C({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==xr)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function Mr(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var Sr=[{key:\"FULL\",size:{width:550,height:450}},{key:\"MEDIUM\",size:{width:400,height:220}},{key:\"SMALL\",size:{width:300,height:150}},{key:\"XSMALL\",size:{width:150,height:75}}];function Tr(e){var t=e.width,n=e.height,r=Sr.filter(function(e){return t>=e.size.width&&n>=e.size.height}).shift();return r?r.key:\"SPARK\"}var Cr={left:\"right\",right:\"left\",top:\"bottom\",bottom:\"top\",near:\"far\",far:\"near\"};function Er(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o=\"horizontal\"===t?function(e){return\"bottom\"===e||\"near\"===e?\"bottom\":\"top\"}(n):function(e,t){var n=\"left\"===e||\"near\"===e?\"left\":\"right\";return t?Cr[n]:n}(n,i),a=function(e,t,n){return\"vertical\"===e?t?\"bottom\":\"top\":n?\"right\":\"left\"}(t,r,i);return{current:o,opposite:Cr[o],start:a,end:Cr[a]}}function Ir(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,l=i.rtl,s=void 0!==l&&l,c={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},u={type:\"x-y\",config:C({},i),meta:c,update:function(e){c.chart.size={width:e.width,height:e.height},c.chart.mode=Tr(e);var t=Er({orientation:\"horizontal\",dock:n.getLayoutValue(\"xAxis.dock\"),btt:!1,rtl:s}),r=t.current,i=t.opposite;c.x.dock=r,c.x.opposite=i,c.x.size=e.width;var o=Er({orientation:\"vertical\",dock:n.getLayoutValue(\"yAxis.dock\"),btt:!0,rtl:s}),a=o.current,l=o.opposite;c.y.dock=a,c.y.opposite=l,c.y.size=e.height}};return u.update(Mr({chart:t,logicalSize:a})),u}var Dr=\"vertical\",Ar=\"horizontal\";function Nr(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,l=i.logicalSize,s=void 0!==l&&l,c=i.rtl,u=void 0!==c&&c,d=a.fallback===Dr?Dr:Ar,f=!!a.invert,p=a.measureAxes||[{ref:\"measureAxis\",name:\"minor\"}],h={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},v={type:\"major-minor\",config:C({},i),meta:h,update:function(e){h.chart.orientation=n.getLayoutValue(\"orientation\",d),h.chart.size={width:e.width,height:e.height},h.chart.mode=Tr(e),h.major.orientation=function(e){var t=e.layoutService,n=e.chartOrientation,r=e.invert;return t.meta.isContinuous?Ar:r?n===Dr?Ar:Dr:n}({layoutService:n,chartOrientation:h.chart.orientation,invert:f});var t=Er({orientation:h.major.orientation,dock:n.getLayoutValue(\"dimensionAxis.dock\"),btt:!1,rtl:u}),r=t.current,i=t.opposite;h.major.dock=r,h.major.opposite=i,h.major.size=h.major.orientation===Dr?e.height:e.width,p.forEach(function(t){var r={};r.orientation=h.major.orientation===Dr?Ar:Dr;var i=Er({orientation:r.orientation,dock:n.getLayoutValue(\"\".concat(t.ref,\".dock\")),btt:!0,rtl:u}),o=i.current,a=i.opposite,l=i.start,s=i.end;r.dock=o,r.opposite=a,r.start=l,r.end=s,r.size=r.orientation===Dr?e.height:e.width,h[t.name]=r})}};return v.update(Mr({chart:t,logicalSize:s})),v}function Pr(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return(\"x-y\"===a.type?Ir:Nr)({chart:t,layoutService:n,config:i,typeConfig:a})}function Lr(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split(\".\"),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var Fr=[\"__proto__\",\"constructor\"];function jr(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split(\".\"),i=r[r.length-1];if(!Fr.some(function(e){return r.includes(e)})){for(var o=e,a=0;a<r.length-1;++a){var l=r[a];void 0===o[l]&&(o[l]=Number.isNaN(+r[a+1])?{}:[]),o=o[l]}void 0!==n?o[i]=n:delete o[i]}}}function zr(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function Rr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=zr();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function Br(e){var t=C({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}function Hr(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,o)},n)}}function _r(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var c=Date.now()-o,u=function(){o=Date.now(),r=0,e.apply(t,n)};r||(c>=i?u():r=setTimeout(u,i-c))}}var Vr={ERROR_CODES:[7005],DIMENSION:\"qDimensionInfo\",MEASURE:\"qMeasureInfo\"},Kr=function(e,t){return e[t].reduce(function(e,t,n){var r;return(r=t,Vr.ERROR_CODES.some(function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e},{reduced:[],filtered:[]})};function $r(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map(function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,l=void 0===a?0:a,s=r.qSelected;return o+l+(void 0===s?0:s)})}function Yr(e){switch(e.qHyperCube.qMode){case\"S\":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:\"qHyperCube.qDataPages\"},size:{x:t.qcx,y:t.qcy,dimensions:$r(e)}}}(e);case\"K\":return function(e){var t=$r(e);return{refs:{dataPages:\"qHyperCube.qStackedDataPages\"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case\"T\":return function(e){var t=$r(e);return{refs:{dataPages:\"qHyperCube.qTreeDataPages\"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error(\"Mode not supported\")}}function Gr(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=At(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=Kr(t,Vr.DIMENSION),r=n.reduced,i=n.filtered;t[Vr.DIMENSION]=r;var o=Kr(t,Vr.MEASURE),a=o.reduced,l=o.filtered;return t[Vr.MEASURE]=a,{dimensions:i,measures:l}}(o):{dimensions:[],measures:[]},l=Yr(o),s=function(){var e=function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,l=a.qDimensionInfo,s=a.qMeasureInfo,c=a.qMode,u=l.length,d=s.length,f=C({mode:{S:\"S\"===c,P:\"P\"===c,K:\"K\"===c,T:\"T\"===c},dimensionCount:u,measureCount:d,hasMultipleDimensions:u>1,hasMultipleMeasures:d>1,isOneDimensional:1===u,isTwoDimensional:2===u},o);return C(C({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:l.size}});return e.filteredFields=a,e},c={refs:C({},l.refs),meta:s(),getLayout:function(){return o},getLayoutValue:function(e,t){return Lr(o,e,t)},setLayoutValue:function(e,t){jr(o,e,t),l=Yr(o),c.meta=s()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return Lr(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){jr(o.qHyperCube,e,t),l=Yr(o),c.meta=s()},getDataPages:function(){return Lr(o,l.refs.dataPages)},setDataPages:function(e){jr(o,l.refs.dataPages,e),c.meta=s()}};return c}function Ur(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach(function(e){var n=-1;t.some(function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n}),n>-1?t[n]=e:t.push(e)}),t):n}function Wr(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return M(I().m(function e(){var r,a,l,s;return I().w(function(e){for(;;)switch(e.n){case 0:if(!o.initialized){e.n=1;break}return e.a(2);case 1:return a=Promise.all(n.filter(function(e){return\"custom-component\"===e.info.type}).map(function(){var e=M(I().m(function e(n){var r;return I().w(function(e){for(;;)switch(e.n){case 0:if(n.info.componentName){e.n=1;break}throw new Error(\"plugin-service: Custom component is missing componentName\");case 1:return e.n=2,n.fn(C({},i));case 2:if(\"object\"===P(r=e.v)){e.n=3;break}throw new Error(\"plugin-service: Custom component needs to be an object\");case 3:t.component(n.info.componentName,r);case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}())),l=Promise.all(n.filter(function(e){return\"component-definition\"===e.info.type}).map(function(e){return e.fn(C({},i))})),e.n=2,Promise.all([a,l]);case 2:s=e.v,o.initialized=!0,(r=o.definitions).push.apply(r,N(s[1]));case 3:return e.a(2)}},e)}))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach(function(t){var n=A(e.filter(function(e){return e.key&&e.key===t.key}),1)[0];if(n){var r=At(!0,{},n.brush);At(!0,n,t),t.brush&&(n.brush=function(e,t){return\"object\"===P(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=Ur({originalArray:e.consume,newArray:t.consume,matchKey:\"context\"})),Array.isArray(t.trigger)&&(e.trigger=Ur({originalArray:e.trigger,newArray:t.trigger,matchKey:\"on\"})),e):t}(r,t.brush))}else e.push(t)}),e):e}}}function Xr(e,t,n){return(t=function(e){var t=function(e,t){if(\"object\"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if(\"object\"!=typeof r)return r;throw new TypeError(\"@@toPrimitive must return a primitive value.\")}return(\"string\"===t?String:Number)(e)}(e,\"string\");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 Zr(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 Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach(function(t){Xr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Qr=Object.prototype.hasOwnProperty,ei=Object.prototype.toString,ti=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,ri=function(e){return\"function\"==typeof Array.isArray?Array.isArray(e):\"[object Array]\"===ei.call(e)},ii=function(e){if(!e||\"[object Object]\"!==ei.call(e))return!1;var t,n=Qr.call(e,\"constructor\"),r=e.constructor&&e.constructor.prototype&&Qr.call(e.constructor.prototype,\"isPrototypeOf\");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Qr.call(e,t)},oi=function(e,t){ti&&\"__proto__\"===t.name?ti(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ai=function(e,t){if(\"__proto__\"===t){if(!Qr.call(e,t))return;if(ni)return ni(e,t).value}return e[t]},li=function e(){var t,n,r,i,o,a,l=arguments[0],s=1,c=arguments.length,u=!1;for(\"boolean\"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||\"object\"!=typeof l&&\"function\"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=ai(l,n),l!==(i=ai(t,n))&&(u&&i&&(ii(i)||(o=ri(i)))?(o?(o=!1,a=r&&ri(r)?r:[]):a=r&&ii(r)?r:{},oi(l,{name:n,newValue:e(u,a,i)})):void 0!==i&&oi(l,{name:n,newValue:i}));return l};function si(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),l=-1,s=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(s=i.wrappedFields[t].attrDims.map(e=>e.instance).indexOf(e),l=i.wrappedFields[t].attrExps.map(e=>e.instance).indexOf(e),-1!==s||-1!==l){a=t;break}if(Array.isArray(r)&&r.some((e,t)=>e!==t)){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:s>=0?e=>e[a].qAttrDims.qValues[s]:l>=0?e=>e[a].qAttrExps.qValues[l]:e=>e[a]}function ci(e,t,n){let{key:r}=n;const i={value:\"function\"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label=\"function\"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function ui(e){let{cache:t,f:n,mainCell:r,p:i,page:o,rowIdx:a,row:l,sourceKey:s,target:c,targetProp:u,columnOrder:d}=e,f=r;if(i.field&&i.field!==n){const e=si(i.field,o,{cache:t},d);if(-1===e)return;f=li({qRow:a},e(l))}c[u]=ci(i,f,{key:s})}function di(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),l=t.key(),s=\"object\"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,p=typeof i[e].trackBy,h={},v=[],m=[];for(let t=0;t<a.qDataPages.length;t++){const o=si(s,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let g=0;g<a.qDataPages[t].qMatrix.length;g++){const y=a.qDataPages[t].qArea.qTop+g,b=li({qRow:y},o(a.qDataPages[t].qMatrix[g])),x=ci(u,b,{key:l});if(!(u.filter&&!u.filter(b))){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)ui({cache:n,f:s,mainCell:b,p:i[o],prop:d[e],page:a.qDataPages[t],rowIdx:y,row:a.qDataPages[t].qMatrix[g],sourceKey:l,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map(e=>e.value),n=x[d[e]].map(e=>e.label);x[d[e]]={value:\"function\"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:\"function\"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:v,tracker:h,trackType:p}),m.push(x)}}}const g=f?r.collect(v,{main:u,propsArr:d,props:c}):m;o=[...o,...g]}return o}function fi(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function pi(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=vi)):void 0===t&&(t=hi);for(var n,r,i,o,a,l=new yi(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new yi(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(gi)}function hi(e){return e.children}function vi(e){return Array.isArray(e)?e[1]:null}function mi(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gi(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function yi(e){this.data=e,this.depth=this.height=0,this.parent=null}function bi(e){return null==e?null:function(e){if(\"function\"!=typeof e)throw new Error;return e}(e)}yi.prototype=pi.prototype={constructor:yi,count:function(){return this.eachAfter(fi)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return pi(this).eachBefore(mi)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var xi={depth:-1},wi={},qi={};function Oi(e){return e.id}function ki(e){return e.parentId}function Mi(){var e,t=Oi,n=ki;function r(r){var i,o,a,l,s,c,u,d,f=Array.from(r),p=t,h=n,v=new Map;if(null!=e){const t=f.map((t,n)=>function(e){e=`${e}`;let t=e.length;Ti(e,t-1)&&!Ti(e,t-2)&&(e=e.slice(0,-1));return\"/\"===e[0]?e:`/${e}`}(e(t,n,r))),n=t.map(Si),i=new Set(t).add(\"\");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(Si(e)),f.push(qi));p=(e,n)=>t[n],h=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new yi(o),null!=(u=p(o,a,r))&&(u+=\"\")&&(d=c.id=u,v.set(d,v.has(d)?wi:c)),null!=(u=h(o,a,r))&&(u+=\"\")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(s=v.get(u)))throw new Error(\"missing: \"+u);if(s===wi)throw new Error(\"ambiguous: \"+u);s.children?s.children.push(c):s.children=[c],c.parent=s}else{if(l)throw new Error(\"multiple roots\");l=c}if(!l)throw new Error(\"no root\");if(null!=e){for(;l.data===qi&&1===l.children.length;)l=l.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===qi;--e)c.data=null}if(l.parent=xi,l.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(gi),l.parent=null,i>0)throw new Error(\"cycle\");return l}return r.id=function(e){return arguments.length?(t=bi(e),r):t},r.parentId=function(e){return arguments.length?(n=bi(e),r):n},r.path=function(t){return arguments.length?(e=bi(t),r):e},r}function Si(e){let t=e.length;if(t<2)return\"\";for(;--t>1&&!Ti(e,t););return e.slice(0,t)}function Ti(e,t){if(\"/\"===e[t]){let n=0;for(;t>0&&\"\\\\\"===e[--t];)++n;if(!(1&n))return!0}return!1}function Ci(e,t){\"/\"===e.charAt(0)&&(e=e.substring(1));const n=e.split(\"/\");let r,i=t;for(let e=0;e<n.length;e++){if(\"*\"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join(\"/\");for(let e=0;e<i.length;e++){let n=Ci(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join(\"/\");for(let e=0;e<i.length;e++)t[e]=Ci(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function Ei(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...Ei(e[i].children,t-1,n)]);return r}function Ii(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>Ei(e.children,r-1,n)}return!1}const Di=/^qDimensionInfo(?:\\/(\\d+))?/,Ai=/^\\/?qMeasureInfo\\/(\\d+)/,Ni=/\\/qAttrExprInfo\\/(\\d+)/,Pi=/\\/qAttrDimInfo\\/(\\d+)/;function Li(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map((e,t)=>t)).filter(t=>t<e.qDimensionInfo.length)}function Fi(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,l=-1,s=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,p=Li(n);return Di.test(d)&&(i=!0,o=+Di.exec(d)[1],d=r.replace(Di,\"\")),Ai.test(d)&&(\"K\"===n.qMode?c=+Ai.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+Ai.exec(d)[1],u=0):u=+Ai.exec(d)[1],d=d.replace(Ai,\"\")),d&&(Pi.exec(d)?l=+Pi.exec(d)[1]:Ni.exec(d)&&(a=+Ni.exec(d)[1])),s=i?\"S\"===n.qMode?p[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-(\"K\"===n.qMode?0:1),{fieldDepth:s+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:l,attrIdx:a}}function ji(e,t){let n,r,i=Ii(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function zi(e,t,n){let{key:r}=n;const i={value:\"function\"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label=\"function\"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function Ri(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const l=n[t[e]],s=l.fields||[l];let c,u;l.fields&&(c=[],u=[]);for(let n=0;n<s.length;n++){const d=s[n];let f,p,h,v,m,g;if(\"primitive\"===d.type?(h=d.value,g=String(d.value)):(\"function\"==typeof d.value&&(f=e=>d.value(e,r)),\"function\"==typeof d.label&&(p=e=>d.label(e,r)),d.accessor?(v=d.accessor(r),Array.isArray(v)?(m=v.map(d.valueAccessor),d.attrAccessor&&(m=m.map(d.attrAccessor)),f&&(h=m.map(f),f=null),p&&(g=m.map(p),p=null),h=d.reduce?d.reduce(h):h,g=d.reduceLabel?d.reduceLabel(g,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(v)):d.valueAccessor(v),g=h)):(h=i,g=i)),l.fields){const e=f?f(h):h;c.push(e),u.push(p&&null!=g?p(g):null!=g?g:String(e))}else{const n=f?f(h):h;o[t[e]]={value:n,label:p?p(g):null!=g?g:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:\"function\"==typeof l.value?l.value(c,r):c,label:\"function\"==typeof l.label?l.label(u,r):u})}}const Bi=(e,t,n)=>{const r=\"K\"===e.qMode?\"/qStackedDataPages/*/qData\":\"/qTreeDataPages/*\",i=\"K\"===e.qMode?\"qSubNodes\":\"qNodes\",o=Ci(r,e);return o&&o[0]?(t.tree=pi(o[0],n.children||(e=>e[i])),t.tree):null};const Hi=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const i=n[t[e]],l=i.fields?i.fields:[i];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=ji(o,Fi(t.field,{cube:r}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function _i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a=\"S\"===i.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map((e,t)=>t)}(e),r=e.fields(),i=e.fields().filter(e=>\"dimension\"===e.type()).map(e=>n.indexOf(r.indexOf(e))),o=e.fields().filter(e=>\"measure\"===e.type()).map(e=>n.indexOf(r.indexOf(e))),a={__root:{__id:\"__root\",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r=\"__root\",s=!1;for(let e=0;e<i.length;e++){var l;const t=n[i[e]],o=\"\".concat(r,\"__\").concat(null!==(l=t.qElemNumber)&&void 0!==l?l:t.qElemNo);a[o]||(a[o]=Jr({__id:o,__parent:r,qValues:[]},t),s=!0),r=o}if(s)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const s=Object.keys(a).map(e=>a[e]);return Mi().id(e=>e.__id).parentId(e=>e.__parent)(s)}(t):Bi(i,n,e);if(!a)return null;const l=a.height,s=[];for(let o=0;o<=l;o++){let a=null;if(o>0)if(\"S\"===i.qMode){let e=Li(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:l,main:c}=r.normalizeConfig(Jr(Jr({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(l);s[o]={propsArr:u,props:l,main:c};const d=a?Fi(a,{cube:i}):{fieldDepth:0};Hi({propsArr:u,props:l,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=s[u[e].depth].propsArr,n=s[u[e].depth].props,r=s[u[e].depth].main,i=c[e],a=i.data,l=zi(r,a,{key:o});Ri({propsArr:t,props:n,item:i,itemData:a,ret:l,sourceKey:o}),u[e].data=l}return a}function Vi(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const l=t.raw(),s=t.key();if(!Bi(l,n,e))continue;const c=\"object\"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),p=Fi(c,{cube:l}),{nodeFn:h,attrFn:v,valueFn:m}=ji({fieldDepth:0},p);Hi({propsArr:f,props:u,cube:l,cache:n,itemDepthObject:p,f:c});const g=!!i[a].trackBy,y=typeof i[a].trackBy,b={},x=[],w=h(n.tree),q=[];for(let e=0;e<w.length;e++){const t=w[e],n=v?v(m(t)):m(t);if(d.filter&&!d.filter(n))continue;const o=zi(d,n,{key:s});Ri({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:s}),g&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:y}),q.push(o)}const O=g?r.collect(x,{main:d,propsArr:f,props:u}):q;o=[...o,...O]}return o}\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self&&self;var Ki,$i,Yi=(Ki=function(e){\n/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */\ne.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,s,c,u,d,f=e.length,p=e.search(/[0-9\\-\\+#]/),h=p>0?e.substring(0,p):\"\",v=e.split(\"\").reverse().join(\"\"),m=v.search(/[0-9\\-\\+#]/),g=f-m,y=e.substring(g,g+1),b=g+(\".\"===y||\",\"===y?1:0),x=m>0?e.substring(b,f):\"\";if(n=(t=\"-\"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\\d\\-\\+#]/g))&&r[r.length-1]||\".\",o=r&&r[1]&&r[0]||\",\",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+\"\",l=e[1]&&e[1].lastIndexOf(\"0\"),(!(c=t.split(\".\"))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(\"\"),(a=e[0]&&e[0].indexOf(\"0\"))>-1)for(;c[0].length<e[0].length-a;)c[0]=\"0\"+c[0];else 0===+c[0]&&(c[0]=\"\");if((t=t.split(\".\"))[0]=c[0],s=u[1]&&u[u.length-1].length){for(v=\"\",g=(d=t[0]).length%s,f=d.length,b=0;b<f;b++)v+=d.charAt(b),!((b-g+1)%s)&&b<f-s&&(v+=o);t[0]=v}return t[1]=e[1]&&t[1]?i+t[1]:\"\",\"0\"!==(r=t.join(\"\"))&&\"\"!==r||(n=!1),h+(n?\"-\":\"\")+r+x}},Ki($i={exports:{}},$i.exports),$i.exports);function Gi(e){return e.replace(/[-[\\]/{}()*+?.\\\\^$|]/g,\"\\\\$&\")}const Ui={3:\"k\",6:\"M\",9:\"G\",12:\"T\",15:\"P\",18:\"E\",21:\"Z\",24:\"Y\",\"-3\":\"m\",\"-6\":\"μ\",\"-9\":\"n\",\"-12\":\"p\",\"-15\":\"f\",\"-18\":\"a\",\"-21\":\"z\",\"-24\":\"y\"},Wi=/%\\)?$/,Xi=/^\\(r(0[2-9]|[12]\\d|3[0-6])\\)/i,Zi=/^\\(oct\\)/i,Ji=/^\\(dec\\)/i,Qi=/^\\(hex\\)/i,eo=/^\\(bin\\)/i,to=/^\\(rom\\)/i,no=/^(\\(rom\\)|\\(bin\\)|\\(hex\\)|\\(dec\\)|\\(oct\\)|\\(r(0[2-9]|[12]\\d|3[0-6])\\))/i,ro=/#|0/g;function io(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(\".\")>10&&(e=e.slice(0,e.indexOf(\".\")+11)),e.replace(\".\",r||\".\")}function oo(e,t,n){let r;return Xi.test(t)?e=io(e,Number(/\\d{2}/.exec(t)[0]),t,n):Zi.test(t)?e=io(e,8,t,n):Ji.test(t)?e=io(e,10,t,n):Qi.test(t)?e=io(e,16,t,n):eo.test(t)?e=io(e,2,t,n):to.test(t)&&(r=\"\",e<0&&(r=\"-\",e=-e),0===(e=Math.floor(e))?e=\"0\":e<=5e5?(e=function(e,t){let n,r=\"\",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),l=[\"0\",\"I\",\"IV\",\"V\",\"IX\",\"X\",\"XL\",\"L\",\"XC\",\"C\",\"CD\",\"D\",\"CM\"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=l[n],i-=a[n];break}for(n=0;n<o;n++)r=\"M\".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function ao(e,t,n){const r=Gi(e);return n?r:new RegExp(r||\"\",t)}function lo(e,t,n,r){let i,o,a,l,s,c,u,d,f,p=e.pattern;var h,v;r&&(e.abbreviate=!0),h=t,(v=n)&&(v=Gi(v)),h&&(h=Gi(h)),f=new RegExp(\"(?:[#0]+\".concat(h,\")?[#0]+(?:\").concat(v,\"[#0]+)?\")),a=p.match(f),a=a?a[0]:\"\",l=a?p.substr(0,p.indexOf(a)):p,s=a?p.substring(p.indexOf(a)+a.length):\"\",a||(a=p?\"#\":\"##########\"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join(\"\")+n+o,t=\"\"),c=t,t=/,/.test(n)?\"¤\":\",\",c&&(a=a.replace(ao(c,\"g\"),t)),u=n,n=\".\",u&&(a=a.replace(ao(u,\"g\"),n)),d=a.match(/#/g),d=d?d.length:0;const m=p.split(u);let g;m[1]&&(g=m[1].match(ro)),e.prefix=l||\"\",e.postfix=s||\"\",e.pattern=p,e.maxPrecision=g?g.length:2,e.percentage=Wi.test(p),e.numericPattern=a||\"\",e.numericRegex=new RegExp(\"\".concat(ao(t,null,!0),\"|\").concat(ao(n,null,!0)),\"g\"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class so{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||\",\",this.decimalDelimiter=r||\".\",this.type=i||\"numeric\",this.patternSeparator=\";\",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Ui;const n={};return e.qNumericalAbbreviation.split(t).forEach(e=>{let t=e.split(\":\");2===t.length&&(n[t[0]]=t[1])}),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new so(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:\"\",postfix:\"\"},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:\"\",postfix:\"\"},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:\"\",postfix:\"\"}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],no.test(e[0])&&(r.positive.isFunctional=!0),e[1]?no.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?no.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i=\"U\"===this.type;r.positive.isFunctional||lo(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&lo(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&lo(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,l,s,c,u=this._prepared,d=\"\",f=\"\",p=e;if(isNaN(e))return\"\".concat(p);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=oo(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map(e=>parseInt(e,10)).sort((e,t)=>e-t);let r,i,o=t[0];for(l=0,n=Number(Number(e).toExponential().split(\"e\")[1]);o<=n&&l<t.length;)l++,o=t[l];l>0&&(r=t[l-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,s=u.numericPattern,c=s.split(o)[1],\"I\"===this.type&&(e=Math.round(e)),i=e,c||\"#\"!==s.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\\.?0+(?=e)/,\"\"):\"0\";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(\".\")[0]);let n=s.split(o)[0];if(n+=o,e=Yi(n,t)||\"0\",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,\"\").length;let i=(\"I\"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,\"\");for(l=i.length;l<n;l++)i+=\"0\";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e=\"0\":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\\.?0+(?=e)/,\"\"),f=\"\"):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(\".\")>=0&&(e=(e=e.replace(e.indexOf(\"e\")<0?/0+$/:/\\.?0+(?=e)/,\"\")).replace(\".\",o));else{for(s+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),l=0;l<t;l++)s+=\"#\";e=Yi(s,e)}e=e.replace(u.numericRegex,e=>e===a?u.groupTemp:e===o?u.decTemp:\"\"),i<0&&!/^-/.test(e)&&(e=\"-\".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>\"\".concat(e)}}}function co(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=e=>e}=t;let o,a,l=Object.create(null),s=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete l[s[u]],delete s[u],c--,u++),l[e]=t,s[c]=e,c++,t),o.get=e=>l[e],o.has=e=>e in l,o.clear=()=>{l=Object.create(null),s=Object.create(null),c=0,u=0},o.size=()=>c,o}function uo(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new so(...t)}(i,e,t,n,r),a=co(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function l(e){return a(e)}return l.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},l.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},l}const fo=\"D\",po=\"T\",ho=\"TS\",vo=\"IV\",mo=[\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\",\"Sunday\"],go=[\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\",\"Sun\"],yo=[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"],bo=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function xo(e,t){for(let n=e.length;n<t;n++)e=\"0\".concat(e);return e}function wo(e){let t=e.toString().split(\".\");return t[1]?(t=Number(\"0.\".concat(t[1])),t):0}function qo(e,t){let n,r=function(e){const t=e,n=24*wo(t),r=60*wo(n),i=60*wo(r),o=1e3*wo(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,l=r.s,s=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(l+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u=\"\";return n&&(u=n.getUTCHours()>=12?\"pm\":\"am\"),{year:0,month:0,day:c,date:i,h:o,m:a,s:l,f:s,t:u}}class Oo{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:mo,qDayNames:go,qLongMonthNames:yo,qMonthNames:bo}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[po]:r.qTimeFmt||\"hh:mm:ss\",[fo]:r.qDateFmt||\"YYYY-MM-DD\",[ho]:r.qTimestampFmt||\"YYYY-MM-DD hh:mm:ss\"}[n]}this.pattern=t}clone(){const e=new Oo(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:\"YYYY-MM-DD hh:mm:ss\"),t=t.replace(/\\[.+]|\\[|]/g,\"\");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?\"pm\":\"am\"}}(e,n):(e<0&&(e=-e,t=\"-\".concat(t)),r=qo(e,t));const i=(o=this,a=r,{\"Y+|y+\":{Y:\"\".concat(Number(\"\".concat(a.year).slice(-2))),YY:xo(\"\".concat(a.year).slice(-2),2),YYY:xo(\"\".concat(a.year).slice(-3),3),def:e=>xo(\"\".concat(a.year),e.length)},\"M+\":{M:a.month+1,MM:xo(\"\".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},\"W+|w+\":{W:a.day,WW:xo(\"\".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},\"D+|d+\":{D:a.date,def:e=>xo(\"\".concat(a.date),e.length)},\"h+|H+\":{h:a.h,def:e=>xo(\"\".concat(a.h),e.length)},\"m+\":{m:a.m,def:e=>xo(\"\".concat(a.m),e.length)},\"s+|S+\":{s:a.s,def:e=>xo(\"\".concat(a.s),e.length)},\"f+|F+\":{def(e){let t=\"\".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+=\"0\";else n<0&&(t=t.slice(0,e.length));return t}},\"t{1,2}|T{1,2}\":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const l=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&l.push(e);const s=new RegExp(l.join(\"|\"),\"g\");return t.replace(s,e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return\"\";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),\"function\"==typeof r&&(r=r(e)),r})}}function ko(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Oo(...t)}function Mo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"TS\",n=ko(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=co(n.format.bind(n),{toKey:e=>\"object\"==typeof e&&\"function\"==typeof e.getTime?e.getTime():e});function i(e){return t!==vo?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=ko(i,e,t),r=co(n.format.bind(n),{toKey:e=>\"object\"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function So(e,t){if(e&&e.qNumFormat&&-1!==[\"D\",\"T\",\"TS\",\"IV\"].indexOf(e.qNumFormat.qType))return Mo(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n=\"#\",r=t&&void 0!==t.qThousandSep?t.qThousandSep:\",\",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:\".\",o=\"U\",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===[\"M\"].indexOf(e.qNumFormat.qType)):a=!0,(a||\"U\"===o)&&(n=\"#\".concat(i,\"##\"),o=\"U\"),uo(n,r,i,o,t)}function To(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:l,sourceField:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||(\"dimension\"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u=\"dimension\"===l?\"first\":\"avg\",d=So(t,i),f={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>l,origin:()=>s,items:()=>(e||(e=o(f)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||\"\",reduce:u,reduceLabel:\"dimension\"===l?\"first\":(e,t)=>d(t),formatter:()=>d,tags:()=>t.qTags};return f}function Co(e,t,n,r,i){return(t[e]||[]).map((t,o)=>{const a=\"\".concat(r?\"\".concat(r,\"/\"):\"\").concat(e,\"/\").concat(o),l={instance:To(li({id:\"\".concat(n?\"\".concat(n,\"/\"):\"\").concat(a),key:a,meta:t},i))};return l.attrDims=Co(\"qAttrDimInfo\",t,n,a,li({},i,{value:e=>null==e?void 0:e.qElemNo,type:\"dimension\"})),l.attrExps=Co(\"qAttrExprInfo\",t,n,a,li({},i,{value:e=>null==e?void 0:e.qNum,type:\"measure\"})),l.measures=Co(\"qMeasureInfo\",t,n,a,li({},i,{value:e=>null==e?void 0:e.qValue,type:\"measure\"})),l})}function Eo(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing \"data\" input');if(!i.qDimensionInfo)throw new Error('The \"data\" input is not recognized as a hypercube');const o=Eo.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},l={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if(\"number\"==typeof e)return n.fields[e];const r=n.allFields;if(\"function\"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if(\"string\"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error(\"Field not found: \".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,l,r,o),hierarchy:e=>a.hierarchy(e,l,r,o),_cache:()=>r};\"K\"===i.qMode||\"T\"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=Vi,a.hierarchy=_i,a.pages=\"K\"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):\"S\"===i.qMode?(a.extractor=di,a.pages=i.qDataPages,a.hierarchy=_i):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},l,r,o);const s=\"S\"===i.qMode?e=>e.qElemNumber:void 0,c=\"S\"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...Co(\"qDimensionInfo\",i,e,\"\",li({},a,{value:s,type:\"dimension\"}))),r.wrappedFields.push(...Co(\"qMeasureInfo\",i,e,\"\",li({},a,{value:c,type:\"measure\"}))),r.fields=r.wrappedFields.map(e=>e.instance);const u=e=>{e.forEach(e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)})};return u(r.wrappedFields),(n.virtualFields||[]).forEach(t=>{const n=l.field(t.from),i=To(Jr({meta:n.raw(),id:\"\".concat(e,\"/\").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},l,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)}),r.allFields.push(...r.virtualFields),l}const Io=[[\"qHyperCube\",\"qHyperCubeDef\"],[\"qTreeData\",\"qTreeDataDef\"],[\"qDimensionInfo\",\"qDimensions\"],[\"qMeasureInfo\",\"qMeasures\"],[\"qAttrDimInfo\",\"qAttributeDimensions\"],[\"qAttrExprInfo\",\"qAttributeExpressions\"]],Do=/\\/qDimensionInfo(?:\\/(\\d+))?/,Ao=/\\/qMeasureInfo\\/(\\d+)/,No=/\\/qAttrDimInfo\\/(\\d+)(?:\\/(\\d+))?/,Po=/\\/qAttrExprInfo\\/(\\d+)/,Lo=/\\/?qHyperCube/,Fo=/\\/?qTreeData/,jo=e=>\"\".concat(e.substr(0,e.indexOf(\"/qHyperCubeDef\")+14)),zo=e=>\"\".concat(e.substr(0,e.indexOf(\"/qTreeDataDef\")+13));function Ro(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},l=e.isActive();let s=!1;if(e.brushes().forEach(e=>{const t=function(e,t){let n=e,r=-1,i=-1,o=\"\",a=e=>e;Lo.test(e)?(o=\"\".concat(n.substr(0,n.indexOf(\"qHyperCube\")+10)),a=jo):Fo.test(e)&&(o=\"\".concat(n.substr(0,n.indexOf(\"qTreeData\")+9)),a=zo);let l=!0;if(Do.test(e)&&(r=+Do.exec(e)[1]),Ao.test(e)&&(i=+Ao.exec(e)[1]),No.test(e)){i=-1,r=0;const e=+No.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\\/\\d+$/,\"\")),l=!1}if(Po.test(e)){const e=i;if(t){i=0;const a=Ci(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce((e,t)=>e+t.qAttrExprInfo.length,i),r=-1):(i=a.qDimensionInfo.reduce((e,t)=>e+t.qAttrExprInfo.length,i),i=a.qMeasureInfo.slice(0,e).reduce((e,t)=>e+t.qAttrExprInfo.length,i)),i+=+Po.exec(n)[1]}else r>-1?(r=-1,i=+Po.exec(n)[1]):i+=+Po.exec(n)[1]+1}return Io.forEach(e=>{let[t,r]=e;n=n.replace(t,r)}),l&&(n=a(n)),n&&\"/\"!==n[0]&&(n=\"/\".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if(\"range\"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach(e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}else{if(\"range\"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach(e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}})))}if(\"range\"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(s=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach(e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}})))}if(\"value\"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&(\"P\"===n.qHyperCube.qMode||\"T\"===n.qHyperCube.qMode||\"K\"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,l=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));(0===o||l>=o)&&o>-1?n.forEach(e=>{a.selectPivotCells.cells.push({qType:\"T\",qCol:e,qRow:l-o})}):n.forEach(e=>{a.selectPivotCells.cells.push({qType:\"L\",qCol:t.dimensionIdx,qRow:e})}),s=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map(e=>+e).filter(e=>!isNaN(e)),s=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map(e=>+e).filter(e=>!isNaN(e));s=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:\"selectHyperCubeValues\"})}}}),!s&&l)return[{method:\"resetMadeSelections\",params:[]}];var c;a.rangeSelectHyperCubeValues&&o.push({method:\"rangeSelectHyperCubeValues\",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]});return a.selectHyperCubeContinuousRange&&o.push({method:\"selectHyperCubeContinuousRange\",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:\"selectHyperCubeCells\",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:\"selectPivotCells\",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:\"multiRangeSelectTreeDataValues\",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o}function Bo(e){Eo.util=e.data(\"matrix\").util,e.data(\"q\",Eo),e.formatter(\"q-number\",uo),e.formatter(\"q-time\",Mo)}function Ho(e){var t=Lr(e.layout||{},e.path.split(\"/\").join(\".\"));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function _o(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,l={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var s=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,c=void 0===s?[]:s;return l.lockedDimensions=c.map(function(e){return!!e.qLocked}),l.singleSelectDimensions=c.map(function(e,t){return Ho({layout:a,path:\"qHyperCube/qDimensionInfo/\".concat(t)})}),l.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n,i=r.map(function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t}).filter(function(e){return\"number\"==typeof e});return null!==(t=i[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),l.canSelect=0===c.length||c.some(function(e){return!e.qLocked}),l.dimensionLocked=!(null===(r=c[0])||void 0===r||!r.qLocked),l}function Vo(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias(\"attrDim/qDimensionInfo/0\"),r&&t.removeKeyAlias(r),t.addKeyAlias(\"attrDim/qDimensionInfo/0\",\"qHyperCube/\".concat(n))):o&&t.addKeyAlias(r,\"qHyperCube/\".concat(n))}Bo.qBrushHelper=Ro,Bo.selections=Ro;var Ko=\"Enter\",$o=\"Escape\",Yo=\"Esc\",Go=\"Shift\";function Uo(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,l=void 0===a?{}:a;r.forEach(function(n){var r,i,a;(\"range\"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])});var s=e.filter(function(e){return-2!==e.value});if(s.length>1){var c=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map(function(e){return e.key}))),a=[];return o.forEach(function(e){var t=Ho({layout:n,path:e}),r=i.filter(function(t){return t.key===e}),o=t?[r.pop()]:r;a.push.apply(a,N(o))}),a.filter(Boolean)}({layout:l,values:s});return c}return s},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter(function(e){return\"value\"===e.type}).length?(t.clear([]),e):(r.forEach(function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);\"range\"!==n.type||r||t.clear([])}),e)}}}var Wo=function(e,t){return t[e]?Wo(e+1,t):e},Xo=function(e,t){var n=t.reduce(function(e,t){return e[t]=!0,e},{});return e.reduce(function(e,t,r){var i=Wo(r,n);return n[i]=!0,e[r]=i,e},{})};function Zo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,l=i.qMeasureInfo,s=void 0===l?[]:l;return{dimensions:Xo(a,r.dimensions||[]),measures:Xo(s,r.measures||[])}}var Jo=\"selectHyperCubeValues\",Qo=\"selectHyperCubeContinuousRange\";function ea(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if(r===Jo){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}r===Qo&&i[1].forEach(function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)});return t}var ta=[],na=0,ra=function(e){var t=ta.filter(function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()});t.length&&(e.key===Ko?t.forEach(function(e){return e.selections.confirm()}):e.key!==$o&&e.key!==Yo||t.forEach(function(e){return e.selections.cancel()}))};function ia(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,s=void 0===l?\"/qHyperCubeDef\":l;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var c=++na,u=null,d={dimensions:[],measures:[]},f=[],p={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var h=Uo({brush:r,getConfig:function(){return{layout:u,allowSimultaneous:f}}}),v=h.rangeInterceptor,m=h.interceptor;r.intercept(\"set-ranges\",v),r.intercept(\"toggle-ranges\",v),r.intercept(\"toggle-values\",m),r.intercept(\"set-values\",m),r.intercept(\"add-values\",m),r.on(\"start\",function(){return n.begin(s)});var g,y,b={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};g=n,y=b,Object.keys(y).forEach(function(e){g.on(e,y[e])});var x=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on(\"start\",function(){var e;(r.start(),\"function\"==typeof o.select.getBrushOptions)&&(p=(e=o.select).getBrushOptions.apply(e,arguments))}),o.select.on(\"end\",function(){var e=a(r,p,u),t=Zo({layout:u,filtered:d});e.forEach(function(e){var r=ea({selection:e,fieldMap:t});!function(e,t,n){if(t&&void 0!==n&&\"selectHyperCubeContinuousRange\"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;\"undefined\"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}}(r,o.select.brushSelectionIncludeMax,x),n.select(r)})})):r.on(\"update\",function(){var e=a(r,p,u),t=Zo({layout:u,filtered:d});e.forEach(function(e){n.select(ea({selection:e,fieldMap:t}))})}),0===ta.length&&document.addEventListener(\"keyup\",ra),ta.push({key:c,selections:n}),{layout:function(e){u=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){u=null;var e=ta.indexOf(ta.filter(function(e){return e.key===c})[0]);-1!==e&&ta.splice(e,1),ta.length||document.removeEventListener(\"keyup\",ra),function(e,t){Object.keys(t).forEach(function(n){e.removeListener(n,t[n])})}(n,b)}}}function oa(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,l=void 0===a?\"selection\":a,s=e.emit,c=void 0===s?\"rangeClear\":s,u=r.event===i,d=n.querySelector(\"[data-key='\".concat(o,\"-edge-0']\"));if(u||!d)return!1;var f=t.component(o);return!!f&&(f.emit(c),\"string\"==typeof l&&t.brush(l).clear(),f)}var aa=[\"chart\",\"document\",\"selections\",\"selectionInfo\"],la=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=E(e,aa);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function sa(e){var t=e.clear,n=void 0===t?la:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(C({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?\"discreteRange\":i,a=e.componentName,l=void 0===a?\"discrete-range-brush\":a,s=e.cleared;return oa({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:o,componentName:l,emit:\"areaClear\",brushName:e.brushName})}(C(C({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?\"continuousRange\":i,a=e.componentName,l=void 0===a?\"continuous-range-brush\":a,s=e.cleared;return oa({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:o,componentName:l,brushName:e.brushName})}(C(C({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?\"minor-range-brush\":i,a=e.eventName,l=void 0===a?\"minorRange\":a,s=e.cleared,c=void 0!==s&&s,u=e.brushName,d=oa({selectionInfo:t,chart:n,document:r,eventName:c?void 0:l,componentName:o,brushName:void 0!==u&&u});if(d){var f=d.settings.settings,p=f.scale,h=f.brush,v=n.scale(p).data().fields.map(function(e){return e.id()}),m=n.brush(h),g=m.brushes().filter(function(e){return\"range\"===e.type&&v.some(function(t){return t===e.id})});m&&g.length&&g.forEach(function(e){m.removeRanges(e.brush.ranges().map(function(t){return{key:e.id,range:t}}))})}}(C(C({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?\"xAxis\":o,l=e.cleared;oa({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:a,componentName:\"\".concat(a,\"-range-brush\"),emit:\"areaClear\",brushName:!1})&&i.clear()}(C(C({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?[\"tap\"]:i,a=e.brushNames,l=void 0===a?[]:a;if(n&&o.includes(n.event)){var s=n.currentComponent;n.previousComponent!==s&&(r.clear(),l.forEach(function(e){return t.brush(e).end()}))}}(C(C({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?\"legendRange\":o,l=e.componentName,s=void 0===l?\"legend-range-brush\":l,c=e.cleared,u=void 0!==c&&c,d=e.brushName;oa({selectionInfo:t,chart:n,document:r,eventName:u?void 0:a,componentName:s,brushName:void 0!==d&&d})&&i.clear()}(C(C({},t),e))}},t))}}function ca(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,l=t.start,s={selections:n,selectionInfo:r,chart:o,document:a},c=function(e){return Object.assign(r,e||{})},u=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=void 0===t?{}:t,r=e.setSelectionInfo,i=e.clear,o=e.event,a=e.components,l=void 0===a?[]:a;r(C(C({},n),{},{event:o,components:l.map(function(e){return e.key}).filter(Boolean)})),i()}({event:t,components:n,clear:i,selectionInfo:r,setSelectionInfo:c})}};return\"function\"==typeof l?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];l(C(C({defaultFunc:u({event:e,components:t}),setSelectionInfo:c,clear:i},s),{},{event:e,components:t}))}:function(e){u({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}function ua(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function da(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,l=e.selections,s=e.selectionEvents;if(!1===i||!1===s)return function(){};var c=i.reset,u=void 0===c?ua:c,d=i.clear,f=!1!==d&&sa({clear:d,selections:l,selectionInfo:r,chart:n}),p=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:u,actions:a}),h={};Object.entries(p).forEach(function(e){var t=A(e,2),n=t[0],r=t[1];h[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,s[n])});var v=ca({selectionEvents:s,selections:l,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on(\"start\",v),Object.entries(h).forEach(function(e){var t=A(e,2),n=t[0],r=t[1];null==l||l.on(n,r)}),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener(\"start\",v),Object.entries(h).forEach(function(e){var t=A(e,2),n=t[0],r=t[1];null==l||l.removeListener(n,r)})}}function fa(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,l=e.selectionEvents,s=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map(function(e){var i=A(e,2),o=i[0],a=i[1],l=function(){return a({chart:n,selectionInfo:r})};return t.on(o,l),[o,l]});return function(){a.forEach(function(e){var n=A(e,2),r=n[0],i=n[1];t.removeListener(r,i)})}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),c=da({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:l}),u=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==Go||(t.lasso.action(!0),n=!0)},i=function(e){e.key===Go&&(t.lasso.action(!1),n=!1)};return document.addEventListener(\"keydown\",r),document.addEventListener(\"keyup\",i),function(){document.removeEventListener(\"keydown\",r),document.removeEventListener(\"keyup\",i)}}({actions:i});return function(){s(),c(),u()}}var pa=[{key:\"qHyperCube/qDimensionInfo/0:numeric\",includeMax:!1}];function ha(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,l=void 0!==a&&a,s=o.majorScale,c=void 0===s?void 0:s,u=o.selectionActions,d=void 0===u?{}:u,f=d.clear,p=d.reset,h=o.selectionEvents,v=void 0===h?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:h,m=o.brushEvents,g=void 0===m?{}:m,y=o.brushName,b=void 0===y?\"selection\":y,x=o.brushMaxListeners,w=void 0===x?20:x,q=o.brushRanges,O=void 0!==q&&q,k=o.interceptors,M=void 0===k?{}:k,S=o.selectionsFn,T=void 0===S?i.selections:S,C=t.brush(b);if(\"number\"==typeof w&&C.setMaxListeners(w),O){var E=!0===O?pa:O;C.configure({ranges:E})}var I={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},D=ia({brush:C,majorScale:c,actions:n,selections:r,picassoQ:i,selectionsFn:T});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach(function(e){var n=A(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach(function(e){t.intercept(r,e)})})}({brush:C,interceptors:M});var P=fa({chart:t,brush:C,actions:n,selections:r,selectionInfo:I.selectionInfo,selectionActions:{clear:f,reset:p},selectionEvents:v,brushEvents:g});if(l){var L=!0===l?N(Array(15)).map(function(e,t){return\"qHyperCube/qMeasureInfo/\".concat(t)}):l;D.allowSimultaneous(L)}return{unbindEvents:P,state:I,picassoSelections:D,brush:C}}var va=[\"colorField\",\"useLegendCube\"];function ma(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,l=ha({chart:t,actions:i,selections:n,picassoQ:Bo,config:a}),s=l.unbindEvents,c=l.state,u=l.picassoSelections,d=l.brush,f=a.custom,p=void 0===f?{}:f,h=a.legendAlias,v=void 0===h?void 0:h,m=a.setBrushAliases,g=void 0===m?Vo:m;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!(null==e||!e.length)&&e.filter(function(e){return\"object\"===P(e.data)&&Array.isArray(e.data.fields)}).every(function(e){return e.data.fields.every(function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)})})}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.singleSelectIndex;return c.singleSelectDimensions[e]},getCanSelect:function(){return c.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return c.selectionInfo},setLayout:function(e){var t=_o({selections:n,picassoSelections:u,layout:e});Object.assign(c,t)},setFilteredFields:function(e){u.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=E(e,va),o=C({useLegendCube:r,colorField:t,brush:d,legendAlias:v},i);g(C(C({},o),{},{defaultFunc:function(){return Vo(o)}}))},destroy:function(){s(),u.release()},custom:C({},p)}}var ga=\"'Source Sans Pro', 'Arial', 'sans-serif'\",ya=\"#333333\",ba=\"#595959\",xa=\"#737373\",wa=\"#cccccc\",qa=\"#e6e6e6\";function Oa(e){var t={};return[].concat(N(e),N([[\"\",\"\",\"color\"],[\"object\",\"\",\"fontFamily\"],[\"object\",\"axis.label.name\",\"color\",ba],[\"object\",\"axis.label.name\",\"fontFamily\",ga],[\"object\",\"axis.label.name\",\"fontSize\",\"12px\"],[\"object\",\"axis.line.major\",\"color\",wa],[\"object\",\"axis.line.minor\",\"color\",qa],[\"object\",\"axis.title\",\"color\"],[\"object\",\"axis.title\",\"fontFamily\",ga],[\"object\",\"axis.title\",\"fontSize\",\"13px\"],[\"object\",\"grid.line.highContrast\",\"color\",qa],[\"object\",\"grid.line.major\",\"color\",wa],[\"object\",\"grid.line.minor\",\"color\",qa],[\"object\",\"label.value\",\"color\",ba],[\"object\",\"label.value\",\"fontFamily\",ga],[\"object\",\"label.value\",\"fontSize\",\"12px\"],[!1,\"label.value\",\"darkColor\",ba],[!1,\"label.value\",\"lightColor\",qa],[\"object\",\"outOfRange\",\"color\",\"#999\"],[\"object\",\"legend.title\",\"color\",ya],[\"object\",\"legend.title\",\"fontFamily\",ga],[\"object\",\"legend.title\",\"fontSize\",\"15px\"],[\"object\",\"legend.label\",\"color\",ba],[\"object\",\"legend.label\",\"fontFamily\",ga],[\"object\",\"legend.label\",\"fontSize\",\"13px\"],[\"object\",\"referenceLine.label.name\",\"color\",ya],[\"object\",\"referenceLine.label.name\",\"fontFamily\",ga],[\"object\",\"referenceLine.label.name\",\"fontSize\",\"12px\"],[\"object\",\"referenceLine.outOfBounds\",\"color\",qa],[\"object\",\"referenceLine.outOfBounds\",\"fontFamily\",ga],[\"object\",\"referenceLine.outOfBounds\",\"fontSize\",\"12px\"],[\"object\",\"referenceLine.outOfBounds\",\"backgroundColor\",xa,function(e){return\"transparent\"===e?xa:e}]])).reduce(function(e,n){var r=\"\".concat(n[0],\"-\").concat(n[1],\"-\").concat(n[2],\"}\");return t[r]||(t[r]=!0,e.push(n)),e},[]).sort(function(e,t){return(e[0].split?e[0].split(\".\").length:0)-(t[0].split?t[0].split(\".\").length:0)})}var ka=\"object\",Ma=function(e){return e};function Sa(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},l=r.reduce(function(e,t){var n=A(t,2),r=n[0],i=n[1];return e[r]=i,e},{});return o.forEach(function(e){var r=A(e,5),i=r[0],o=r[1],s=r[2],c=r[3],u=r[4],d=void 0===u?function(e){return e}:u,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var l=t.getStyle(n,r,i);return void 0===l?a:l}({theme:t,base:i===ka&&n?\"\".concat(ka,\".\").concat(n):i,path:o,attribute:s,defaultValue:c}),p=(l[\"\".concat(o,\".\").concat(s)]||Ma)(d(f));jr(a,[o,s].filter(Boolean).join(\".\"),p)}),i.forEach(function(e){var t=A(e,2),n=t[0],r=t[1];jr(a,n,r)}),a}function Ta(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,l=r.transform,s=void 0===l?[]:l,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:Oa(a),styles:void 0};return d.styles=Sa({theme:t,id:i,transform:s,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=Sa({theme:e,id:i,transform:s,extend:u,matrix:d.matrix})}}}var Ca={NOOP:function(){},FALSE:function(){return!1},ARRAY:function(){return[]},OBJECT:function(){return{}}};var Ea=\"chart-modules-tooltip\",Ia=\"#\".concat(Ea);function Da(){if(!document.querySelector(Ia)){var e=document.createElement(\"div\");e.id=Ea,e.setAttribute(\"data-qs-css\",\"\"),e.style.overflow=\"hidden\",e.style.position=\"fixed\",e.style.pointerEvents=\"none\",e.style.left=\"0px\",e.style.top=\"0px\",e.style.width=\"100%\",e.style.height=\"100%\",e.style.zIndex=1020,document.body.appendChild(e)}}function Aa(e){return{show:!0,key:e.key,type:\"tooltip\",layout:{displayOrder:3},beforeMount:function(){Da()},beforeUpdate:function(){Da()},destroyed:function(){var e;null!=(e=document.querySelector(Ia))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(Ia)},direction:e.rtl?\"rtl\":\"ltr\",duration:e.duration},style:{arrow:{color:\"#404040\"},content:{display:\"table\",\"border-spacing\":\"4px\",background:\"rgba(64, 64, 64, 0.9)\",opacity:\"1\",fontSize:\"13px\",fontFamily:\"'Source Sans Pro', 'Arial', 'sans-serif'\",\"empty-cells\":\"show\"},cell:{\"max-width\":\"180px\",\"word-break\":\"break-word\",\"word-wrap\":\"break-word\",\"overflow-wrap\":\"break-word\",hyphens:\"auto\"}}}}var Na=\"position\";var Pa={bar:\"rect\",diamond:\"path\",point:\"circle\",square:\"rect\",triangle:\"path\",\"n-polygon\":\"path\",slice:\"path\"},La=function(e){return e.data.value},Fa=function(e){var t,n=e.data;return null==n||null===(t=n.major)||void 0===t?void 0:t.value};function ja(e){var t=e.chart,n=e.nodes,r=e.collectConfig,i=e.collectibles,o=e.meta,a=A(n,1)[0],l=r.filter,s=r.after,c=\"function\"==typeof l?l:function(){return!0},u=\"function\"==typeof s?s:function(){},d=i.reduce(function(e,n){var i=Pa[n.type]||n.type;return e.push.apply(e,N(t.findShapes(i).filter(function(e){return e.key===n.key&&e.data&&function(e){var t=e.collectConfig,n=e.meta,r=e.collectible,i=e.nodes,o=t.by,a=void 0===o?La:o,l=r.major,s=void 0===l?Fa:l,c=a({data:i.triggerer.data}),u=s({data:i.candidate.data,meta:n}),d=Array.isArray(c),f=Array.isArray(u);return d&&f?c.length===u.length&&c.every(function(e,t){return e===u[t]}):!d&&!f&&c===u}({collectConfig:r,meta:o,collectible:n,nodes:{triggerer:a,candidate:e}})}))),e},[]).filter(c);return u({collected:d,triggerer:a}),d}function za(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.collectConfig,o=e.collectibles,a=e.meta,l=i.from,s={chart:t,expando:n,nodes:r,collectConfig:i,collectibles:o,meta:a};switch(\"function\"==typeof l?\"custom\":l){case\"single\":return function(e){var t=A(e.nodes,1)[0];if(\"container\"===t.type&&t.children[0]){var n=A(t.children,1)[0];return n.key=t.key,[n]}return[t]}(s);case\"position\":return function(e){var t=e.chart,n=e.collectibles,r=e.meta;return t.shapesAt(r.position.absolute,{components:n.map(function(e){return{key:e.key}})})}(s);case\"dimension\":return ja(s);case\"radius\":return function(e){var t=e.chart,n=e.nodes,r=e.collectConfig,i=e.collectibles,o=e.meta,a=A(n,1)[0].localBounds,l=r.distance,s=r.filter,c=\"function\"==typeof s?s:function(){return!0},u=i.map(function(e){return e.key});return t.shapesAt({cx:o.position.absolute.x,cy:o.position.absolute.y,r:l||Math.max(a.width,a.height)},{components:u.map(function(e){return{key:e}})}).filter(c)}(s);case\"custom\":return function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.collectConfig,o=e.meta;return i.from({chart:t,expando:n,nodes:r,meta:o})}(s);default:return[]}}var Ra=Number.MAX_VALUE;function Ba(e){var t=e.nodes.filter(function(e){return e.bounds.height+e.bounds.width!==0}).reduce(function(e,t){var n=t.bounds;return e.xMin=Math.min(e.xMin,n.x,n.x+n.width),e.yMin=Math.min(e.yMin,n.y,n.y+n.height),e.xMax=Math.max(e.xMax,n.x,n.x+n.width),e.yMax=Math.max(e.yMax,n.y,n.y+n.height),e},{xMin:Ra,xMax:-Ra,yMin:Ra,yMax:-Ra}),n=t.xMin,r=t.xMax,i=t.yMin;return{x:n,y:i,width:r-n,height:t.yMax-i}}function Ha(e){var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,l=e.meta,s=function(e){for(var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,l=e.meta,s=A(o,1)[0],c=Array.isArray(i)?i:[i],u={bounds:s.bounds,key:s.key},d=Ba({nodes:a}),f=0;f<c.length;f++){var p=c[f];if(\"function\"==typeof p){var h=p({chart:t,expando:r,hovered:o,collected:N(a),meta:l,collectedBounds:d,combineBounds:Ba});if(h)return h}if(\"trigger\"===p)return u;if(\"collectible\"===p){var v=n.main.placements.collectible;return{bounds:\"function\"==typeof v?v({collected:N(a)}):d,key:a[0].key}}}return u}({chart:t,config:n,expando:r,placementConfig:i,hovered:o,collected:a,meta:l}),c=s.bounds,u=s.key,d=A(a,1)[0].desc;return[{bounds:c,nodes:a,data:a.map(function(e){return e.data}),key:u,meta:l,desc:d}]}function _a(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.nodes;if(!o.length)return[];var a=A(o,1)[0].key,l=n.main.collectibles.filter(function(e){return!e.if||e.if()});if(!l.length)return[];var s=n.main.triggers.find(function(e){return-1!==e.keys.indexOf(a)})||{},c=s.collect,u=s.placement;if(!c||!c.from||!u)return[];var d={triggerer:a,position:i.get(Na)},f=(za({chart:t,expando:r,nodes:o,collectConfig:c,collectibles:l,meta:d})||[]).map(function(e){return e.children.length?e.children[0]:e});return f.length?Ha({chart:t,config:n,expando:r,placementConfig:u,hovered:o,collected:f,meta:d}):[]}var Va=\"[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]\",Ka=\"[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]\",$a=new RegExp(\"[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗＡ-Ｚａ-ｚｦ-ￜ]\"),Ya=new RegExp(Va),Ga=new RegExp(Ka),Ua=function(e){return $a.test(e)},Wa=function(e){return Ya.test(e)||Ga.test(e)};function Xa(e){for(var t=e?e.length:0,n=0;n<t;n++){var r=e[n];if(Ua(r))return\"ltr\";if(Wa(r))return\"rtl\"}return\"ltr\"}function Za(e){var t=e.config,n=e.h,r=e.context,i=e.nodes,o=e.property,a=e.filter,l=e.visibility,s=e.fillColor,c=t.rtl,u={type:\"color\",label:void 0,value:void 0,content:[],filter:a,survive:{visibility:!1},visibility:C(C({},{count:!0}),l)},d=t.getColorSettings();if(\"color\"===d.type||!d.fieldType)return u;var f=A(i,1)[0];if(u.value=function(e){var t=e.config,n=e.context,r=e.property,i=e.node,o=i.data[r];if(o){if(-3===i.data.value)return i.data.label;var a=n.resources.dataset(o.source.key).field(o.source.field).formatter(),l=o.value,s=o.label,c=t.getColorSettings();if(a&&\"measure\"===c.fieldType)return Number.isNaN(+l)?\"-\":a(o.value);var u=s||l;return void 0===u||Number.isNaN(u)||\"NaN\"===u?\"-\":u}}({config:t,context:r,property:o,node:f}),void 0===u.value)return u;u.label=function(e){var t=e.config,n=e.context,r=e.property,i=e.node,o=t.getColorSettings();if(o.label)return o.label;var a=i.data[r];if(a&&\"color\"!==o.type){var l=n.resources.dataset,s=a.source,c=s.key,u=s.field;return l(c).field(u).title()}}({config:t,context:r,property:o,node:f});var p=null!=s?s:function(e){var t=e.node.attrs;return(null==t?void 0:t.fill)||\"#ddd\"}({node:f}),h=n(\"div\",{style:{display:\"inline-block\",width:10,height:10,\"background-color\":p,margin:\"0 8px\"}});return u.content.push({content:c?[\":\",u.label]:[u.label,\":\"],style:{\"text-align\":c?\"right\":\"left\",direction:Xa(u.label)}},{content:c?[u.value,h]:[h,u.value],style:{\"text-align\":c?\"left\":\"right\",\"vertical-align\":\"middle\",direction:Xa(u.value)}}),u}function Ja(e){var t=e.config,n=e.h,r=e.context,i={section:function(e){return function(e){return{type:\"section\",content:e.content}}({content:e.content})},text:function(e){var n=e.value,r=e.style,i=e.survive,o=e.visibility;return function(e){var t=e.config,n=e.value,r=e.style,i=void 0===r?{}:r,o=i.bold,a=void 0!==o&&o,l=i.italic,s=void 0!==l&&l,c=e.survive,u=e.visibility;return{type:\"text\",content:[{content:n,style:{\"font-weight\":a?\"bold\":\"normal\",\"font-style\":s?\"italic\":\"normal\",\"text-align\":t.rtl?\"right\":\"left\",direction:Xa(n),\"white-space\":\"pre-wrap\"},colspan:2}],survive:C(C({},{visibility:!1}),c),visibility:C(C({},{count:!0,force:!1}),u)}}({config:t,value:n,style:r,survive:i,visibility:o})},measure:function(e){var r=e.label,i=e.value,o=e.color,a=e.style,l=e.survive,s=e.visibility;return function(e){var t,n,r,i,o=e.config,a=e.h,l=e.label,s=e.value,c=e.color,u=e.style,d=e.survive,f=e.visibility,p=o.rtl,h=a(\"div\",{style:{display:\"inline-block\",width:10,height:10,\"background-color\":c,margin:\"0 8px\"}});return{type:\"measure\",label:l,value:s,content:[{content:p?[\":\",l]:[l,\":\"],style:{\"text-align\":p?\"right\":\"left\",\"font-weight\":null!=u&&null!==(t=u.label)&&void 0!==t&&t.bold?\"bold\":\"normal\",\"font-style\":null!=u&&null!==(n=u.label)&&void 0!==n&&n.italic?\"italic\":\"normal\",direction:Xa(l)}},{content:c?p?[s,h]:[h,s]:s,style:{\"text-align\":p?\"left\":\"right\",\"vertical-align\":\"middle\",\"font-weight\":null!=u&&null!==(r=u.value)&&void 0!==r&&r.bold?\"bold\":\"normal\",\"font-style\":null!=u&&null!==(i=u.value)&&void 0!==i&&i.italic?\"italic\":\"normal\",direction:Xa(s)}}],survive:C(C({},{color:!1,duplicate:!1,visibility:!1}),d),visibility:C(C({},{count:!0,force:!1}),f)}}({config:t,h:n,label:r,value:i,color:o,style:a,survive:l,visibility:s})},divider:function(){return function(e){var t=e.visibility;return{type:\"divider\",content:[{content:\"\",style:{\"background-image\":\"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)\",height:\"17px\"},colspan:2}],survive:{visibility:!1},visibility:C(C({},{count:!1,force:!1}),t)}}({visibility:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).visibility})},row:function(e){return function(e){var t=e.content,n=e.style,r=e.colspan,i=e.survive,o=e.visibility;return{type:\"row\",content:[{content:t,style:n,colspan:r}],survive:C(C({},{visibility:!1}),i),visibility:C(C({},{count:!0}),o)}}({content:e.content,style:e.style,colspan:e.colspan,survive:e.survive,visibility:e.visibility})},raw:function(e){return function(e){var t=e.value,n=e.survive,r=e.visibility;return{type:\"raw\",content:t,survive:C(C({},{visibility:!1}),n),visibility:C(C({},{count:!0}),r)}}({value:e.value,survive:e.survive,visibility:e.visibility})},color:function(e){var i=e.nodes,o=e.property,a=e.filter,l=void 0===a||a,s=e.visibility,c=e.fillColor;return Za({config:t,h:n,context:r,nodes:i,property:o,filter:l,visibility:s,fillColor:c})}};return i}function Qa(e){var t=e.translator,n=e.config,r=e.context,i=e.templates,o=n.main.layout,a=o.rows,l=o.grouping,s=o.single,c=function(e){var t=e.limit,n=e.grouping,r=e.single,i={count:0,overflow:0,index:{started:void 0,group:void 0},single:{found:!1,index:0}};return{process:function(e){var o=e.survive,a=e.visibility,l=e.index;if(a.force)return!0;if(i.single.found||(i.single.found=!0,i.single.index=l),r&&l!==i.single.index)return n?(i.index.started!==l&&i.index.group!==l&&(i.overflow++,i.index.group=l),!1):(i.overflow++,!1);if(i.count>=t&&(null==o||!o.visibility)){if(!n)return i.overflow++,!1;if(i.index.started!==l)return i.index.group!==l&&(i.overflow++,i.index.group=l),!1}return a.count&&i.count++,n&&(i.index.started=l),!0},overflow:function(){return i.overflow}}}({limit:a,grouping:l,single:\"function\"==typeof s?s({meta:r.node.meta,sections:i}):s}),u=i.reduce(function(e,t,n){var r=t.type,o=t.content;\"section\"===r&&(void 0===o?[]:o).forEach(function(t){c.process({survive:t.survive,visibility:t.visibility,index:n})&&e.push(t.content)});var a=n===i.length-1;return\"divider\"!==r||a||c.process({survive:t.survive,visibility:t.visibility,index:n})&&e.push(t.content),e},[]).filter(function(e){return e.length}),d=c.overflow();return d&&u.push(function(e){var t=e.translator,n=e.config,r=e.count,i=t?t.get(\"Object.ChartTooltip.NMore\",r):\"+\".concat(r,\" more\"),o=Xa(i);return[{content:i,style:{\"font-weight\":\"bold\",\"text-align\":n.rtl?\"right\":\"left\",direction:o},colspan:2}]}({translator:t,config:n,count:d})),u}function el(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.h,a=e.data,l=e.style,s=A(a,1)[0],c=function(e){var t=e.config,n=e.nodes.reduce(function(e,n){var r=t.main.getGroupByValue({data:n.data});return e[r]||(e[r]={sorting:Object.keys(e).length,items:[]}),e[r].items.push(n),e},{});return Object.keys(n).map(function(e){return n[e]}).sort(function(e,t){return e.sorting-t.sorting}).map(function(e){return e.items})}({config:r,nodes:s.node.nodes}),u=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.h,o=e.context,a=e.groups,l=o.node.meta,s=o.resources,c=s.dataset,u=s.formatter,d=Ja({config:n,h:i,context:o}),f=function(e){var t=e.dataset;return{dataset:{title:function(e,n){return t(e).field(n).title()}}}}({dataset:c}),p=a.map(function(e){var t=d.section({content:N((n.main.section({expando:r,h:i,nodes:e,dataset:c,formatter:u,meta:l,create:d,util:f})||[]).filter(function(e){var t;return null===(t=e.content)||void 0===t?void 0:t.length})).filter(Boolean)});return t.content=function(e){var t=e.config,n=e.content,r=n.find(function(e){return\"color\"===e.type&&e.filter}),i=r?n.filter(function(e){return\"measure\"!==e.type||e.survive.color||e.label!==r.label||e.value!==r.value}):n;return t.main.showDuplicateMeasures?i:i.reduce(function(e,t){var n=t.type,r=t.survive;if(\"measure\"!==n||r.duplicate)return e.filtered.push(t),e;var i=\"\".concat(t.label,\"-\").concat(t.value);return e.memory[i]||(e.memory[i]=!0,e.filtered.push(t)),e},{memory:{},filtered:[]}).filtered}({config:n,content:t.content}),t});return n.main.sections({chart:t,expando:r,h:i,nodes:o.node.nodes,dataset:c,formatter:u,meta:l,create:d,util:f,sections:p}),p.filter(Boolean)}({chart:t,config:r,expando:i,h:o,context:s,groups:c}),d=Qa({translator:n,config:r,context:s,templates:u});return d.length?function(e){var t=e.h,n=e.style;return e.rows.map(function(e){return t(\"tr\",{},e.map(function(e){var r={style:C(C({},n.cell||{}),e.style||{}),class:e.class};return e.colspan&&(r.colspan=e.colspan),t(\"td\",r,e.content)}))})}({h:o,style:l,rows:d}):function(e){var t=e.h;return t(\"tr\",{},t(\"td\",{style:{fontStyle:\"italic\",opacity:.75}},\"Empty\"))}({h:o})}var tl=\"collected\";function nl(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.internal;if(!r.main.key)return!1;var a=zr(),l=Aa({key:r.main.key,rtl:r.rtl,duration:r.duration}),s=r.main.events.tooltip,c=s.afterShow,u=s.afterHide,d=function(){var e=a.get(tl);return{expando:i,nodes:e.nodes,meta:e.meta}};return At(!0,l,{settings:{filter:function(e){return _a({chart:t,config:r,expando:i,internal:o,nodes:e})},extract:function(e){return a.set(tl,e.node),e},content:function(e){var o=e.h,a=e.data,l=e.style;return el({chart:t,translator:n,config:r,expando:i,h:o,data:a,style:l})},placement:function(e){var t=e.nodes;return r.main.placement({meta:t[0].meta})},afterShow:function(){return c(d())},afterHide:function(){return u(d())}},style:{arrow:{color:r.style.background},content:r.style}})}function rl(e){var t=e.config,n=t.legend.keys;if(!n.tooltip||!n.component)return!1;if(\"categorical\"!==t.getColorSettings().type)return!1;var r=Aa({key:n.tooltip,rtl:t.rtl,duration:t.duration});return At(!0,r,{settings:{filter:function(e){return e.filter(function(e){return e.data&&e.key===n.component})},extract:function(e){return e},content:function(e){var t=e.h,n=e.data;return[t(\"tr\",{},[t(\"td\",{style:C(C({},e.style.cell||{}),{\"font-weight\":\"bold\",\"text-align\":\"left\"}),colspan:2},n[0].node.data.label)])]},placement:\"pointer\"},style:{arrow:{color:t.style.background},content:t.style}})}function il(e){var t=e.config.main.triggers.reduce(function(e,t){return t.keys.forEach(function(n){var r=t.distance||0;e.distance[n]=r,e.distances.includes(r)||e.distances.push(r),e.key[n]=!0,e.keys[r]||(e.keys[r]=[]),e.keys[r].push(n)}),e},{distance:{},distances:[],key:{},keys:{}});return function(e){return e.components.filter(function(e){return t.key[e.key]}).reduce(function(e,n){e.any=!0,e.components.push(n.key);var r=t.distance[n.key];return 0===r?e.position.push(n.key):(e.distances.includes(r)||(e.distances.push(r),e.distanceKeys[r]=[]),e.distanceKeys[r].push(n.key)),e},{any:!1,components:[],position:[],distances:[],distanceKeys:{}})}}var ol=function(){return!0};function al(e){var t=e.config.main.triggers.reduce(function(e,t){var n=t.filter;return t.keys.forEach(function(t){e[t]=\"function\"==typeof n?n:ol}),e},{});return function(e){var n=t[e.key];return!n||n(e)}}function ll(e){var t=e.chart,n=e.event,r=e.component,i={absolute:{x:0,y:0},relative:{x:0,y:0}},o=t.element.getBoundingClientRect(),a=o.left,l=o.top;i.absolute.x=(void 0===n.clientX?Math.floor(n.srcEvent.clientX):n.clientX)-a,i.absolute.y=(void 0===n.clientY?Math.floor(n.srcEvent.clientY):n.clientY)-l;var s=t.component(r);if(s){var c=s.rect.computedInner;i.relative.x=i.absolute.x-c.x,i.relative.y=i.absolute.y-c.y}return i}function sl(e){var t=e.chart,n=e.filter,r=e.hits,i=e.position,o=[];if(r.position.length&&o.push.apply(o,N(t.shapesAt(i.absolute,{components:r.position.map(function(e){return{key:e}})}).filter(n))),!o.length&&r.distances.length){var a=[];r.distances.forEach(function(e){a.push.apply(a,N(t.shapesAt({cx:i.absolute.x,cy:i.absolute.y,r:e},{components:r.distanceKeys[e].map(function(e){return{key:e}})}).filter(n)))}),a.length&&o.push(function(e){var t=e.nodes,n=e.origin,r=t.find(function(e){return\"path\"===e.type});if(r)return r;var i=function(e){var t=Math.abs(n.x-(e.localBounds.x+e.localBounds.width/2)),r=Math.abs(n.y-(e.localBounds.y+e.localBounds.height/2));return Math.sqrt(t*t+r*r)};return t.slice(1).reduce(function(e,t){var n=i(t);return n<e.distance&&(e.distance=n,e.node=t),e},{node:t[0],distance:i(t[0])}).node}({nodes:a,origin:i.relative}))}return o}var cl=\"tooltipTap\";function ul(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=n.delay.tap,l=il({config:n}),s=al({config:n}),c=n.main.triggers.reduce(function(e,t){return e.push.apply(e,N(t.keys)),e},[]);return{key:\"event:\".concat(cl),type:\"Tap\",options:{event:cl,enable:function(e,r){return!r||!!n.enable({event:r})&&t.componentsFromPoint({x:r.center.x,y:r.center.y}).filter(function(e){return-1!==c.indexOf(e.key)}).length>0}},recognizeWith:\"tap\",events:S({},cl,function(e){if(e.preventDefault(),\"mouse\"!==e.pointerType&&!n.main.suppress({event:e})){var c=t.component(n.main.key);if(c&&c.show){var u=t.componentsFromPoint({x:e.center.x,y:e.center.y}),d=l({components:u});if(d.any){var f=A(d.components,1)[0],p=ll({chart:t,event:e,component:f});i.set(Na,p);var h=sl({chart:t,filter:s,hits:d,position:p});if(h.length){var v=h[0].key;n.main.events.tooltip.beforeShow({expando:r,event:e,collectNodes:function(){return o.collectNodes({nodes:h})},meta:{triggerer:v,position:p}}).then(function(){c.emit(\"show\",e,{nodes:h,delay:a})}).catch(function(){})}else c.emit(\"hide\")}else c.emit(\"hide\")}}})}}function dl(e){var t=e.config,n=e.expando,r=e.internal,i=e.facade,o=t.main.events.tooltip.beforeShow,a=t.delay.hover,l={ongoing:{},latest:void 0};return function(e){var t=e.event,s=e.tooltip,c=e.nodes,u=function(e){var t=e.nodes;return JSON.stringify(t.map(function(e){var t;return{key:e.key,bounds:e.bounds,value:null===(t=e.data)||void 0===t?void 0:t.value}}))}({nodes:c});if(!l.ongoing[u]){l.ongoing[u]=!0,l.latest=u;var d=c[0].key;o({expando:n,event:t,collectNodes:function(){return i.collectNodes({nodes:c})},meta:{triggerer:d,position:r.get(Na)}}).then(function(){u===l.latest&&s.emit(\"show\",t,{nodes:c,delay:a})}).catch(function(){s.emit(\"show\")}).finally(function(){delete l.ongoing[u],u===l.latest&&(l.latest=void 0)})}}}function fl(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=il({config:n}),l=al({config:n}),s=dl({config:n,expando:r,internal:i,facade:o}),c=[n.main.key,n.legend.keys.tooltip].filter(Boolean),u=function(){c.forEach(function(e){var n=t.component(e);null!=n&&n.show&&n.emit(\"hide\")})};return{type:\"native\",events:{mousemove:function(e){if(n.enable({event:e})&&!n.main.suppress({event:e})){var r=t.componentsFromPoint({x:e.clientX,y:e.clientY}),o=t.component(n.main.key);if(o&&o.show){var c=a({components:r});if(c.any){var u=A(c.components,1)[0],d=ll({chart:t,event:e,component:u});i.set(Na,d);var f=sl({chart:t,filter:l,hits:c,position:d});if(!f.length)return void o.emit(\"hide\");s({event:e,tooltip:o,nodes:f})}else o.emit(\"hide\")}var p=n.legend;if(p.keys.tooltip&&p.keys.component){var h=t.component(p.keys.tooltip);h&&h.show&&(r.some(function(e){return e.key===p.keys.component})?h.emit(\"show\",e):h.emit(\"hide\"))}}},mouseup:function(e){2===e.button&&u()},mouseleave:function(){n.main.events.interaction.mouseleave({expando:r}),u()},wheel:function(){u()}}}}function pl(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal;return{collectNodes:function(e){var o=e.nodes,a=A(_a({chart:t,config:n,expando:r,internal:i,nodes:o}),1)[0];return(void 0===a?{nodes:[]}:a).nodes}}}({chart:t,config:n,expando:r,internal:i});return{gestures:[ul({chart:t,config:n,expando:r,internal:i,facade:o})],native:fl({chart:t,config:n,expando:r,internal:i,facade:o})}}function hl(e){var t=e.chart,n=e.translator,r=function(e){var t=e.config;return At(!0,{},{rtl:!1,enable:Ca.FALSE,getColorSettings:Ca.OBJECT,style:{fontSize:void 0,fontFamily:void 0,color:void 0,background:void 0},delay:{hover:500,tap:0},duration:8e3,main:{key:void 0,suppress:Ca.FALSE,getGroupByValue:Ca.NOOP,collectibles:[],triggers:[],placement:function(){return{type:\"bounds\"}},placements:{collectible:\"combine\"},showDuplicateMeasures:!1,layout:{rows:7,grouping:!1,single:!1},section:Ca.ARRAY,sections:Ca.NOOP,events:{tooltip:{beforeShow:function(){return Promise.resolve()},afterShow:Ca.NOOP,afterHide:Ca.NOOP},interaction:{mouseleave:Ca.NOOP}}},legend:{keys:{tooltip:void 0,component:void 0}}},void 0===t?{}:t)}({config:e.config}),i=zr(),o=zr(),a={components:void 0,interactions:void 0};return{getComponents:function(){return a.components||(a.components=function(e){var t=e.chart,n=e.translator,r=e.config;return[nl({chart:t,translator:n,config:r,expando:e.expando,internal:e.internal}),rl({config:r})].filter(Boolean)}({chart:t,translator:n,config:r,expando:i,internal:o})),a.components},getInteractions:function(){return a.interactions||(a.interactions=pl({chart:t,config:r,expando:i,internal:o})),a.interactions},expando:i}}var vl=\"AVERAGE\",ml=\"LINEAR\",gl=\"POLYNOMIAL2\",yl=\"POLYNOMIAL3\",bl=\"POLYNOMIAL4\",xl=\"EXPONENTIAL\",wl=\"LOG\",ql=\"POWER\";function Ol(e){var t=e.dimValue,n=e.value,r=e.qTrendLine,i=r.qType,o=r.qCoeff,a={x:t,y:o[2]*Math.pow(n,2)+o[1]*n+o[0]};switch(i){case gl:return a;case yl:return a.y+=o[3]*Math.pow(n,3),a;case bl:return a.y+=o[4]*Math.pow(n,4)+o[3]*Math.pow(n,3),a;default:return a}}var kl={average:function(e){return{x:e.dimValue,y:e.qTrendLine.qCoeff[0]}},linear:function(e){var t=e.dimValue,n=e.value,r=e.qTrendLine;return{x:t,y:r.qCoeff[1]*n+r.qCoeff[0]}},polynomial2:Ol,polynomial3:Ol,polynomial4:Ol,exponential:function(e){var t=e.dimValue,n=e.value,r=e.qTrendLine;return{x:t,y:Math.exp(r.qCoeff[0]+n*r.qCoeff[1])}},log:function(e){var t=e.dimValue,n=e.value,r=e.qTrendLine;return{x:t,y:r.qCoeff[1]+r.qCoeff[0]*Math.log(n)}},power:function(e){var t=e.dimValue,n=e.value,r=e.qTrendLine;return{x:t,y:Math.pow(10,r.qCoeff[0]+r.qCoeff[1]*Math.log(n)*Math.LOG10E)}}};function Ml(e,t){for(var n=kl[t.qType.toLowerCase()],r=Math.max(1,e/500),i=1/0,o=-1/0,a=0;a<e;a+=r){var l=n({dimValue:null,value:a+1,qTrendLine:t}).y;i=Math.min(l,i),o=Math.max(l,o)}return{min:i,max:o}}function Sl(e){return kl[e.qType.toLowerCase()]}function Tl(e,t){return e.meta.isContinuous?function(e,t){return{generate:function(e,n,r){var i=[],o=Sl(e),a=t({qTrendLine:e,measureIndex:r}),l=a.min,s=a.max,c=(s-l)/100;if(c>0){for(var u=function(t){var a=o({dimValue:t,value:t,qTrendLine:e});if(a.layerId=n,a.measureIndex=r,a.dimValue=t,e.flipXY){var l=a.x;a.x=a.y,a.y=l,a.dimValue=a.x}i.push(a)},d=l,f=l;f<=s;f+=c)u(f),d=f;d!==s&&u(s)}return i},calculate:function(e,t){return Sl(e)({dimValue:t,value:t,qTrendLine:e})},findMinMax:function(e,t){var n=this.generate(t).map(function(e){return e.y});return{min:Math.min.apply(Math,N(n)),max:Math.max.apply(Math,N(n))}}}}(0,t):e.meta.mode.K?function(e){return{generate:function(t,n,r){for(var i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,l=o.qArea.qTop,s=kl[t.qType.toLowerCase()],c=0;c<a.length;c++){var u=a[c],d=s({dimValue:u.qElemNo,value:c+l+1,qTrendLine:t});d.layerId=n,d.measureIndex=r,d.dimValue=u.qText,i.push(d)}return i},findMinMax:Ml}}(e):function(e){return{generate:function(t,n,r){for(var i=[],o=e.getDataPages()[0],a=o.qMatrix,l=o.qArea.qTop,s=kl[t.qType.toLowerCase()],c=0;c<a.length;c++){var u=a[c][0],d=c+l+1,f=s({dimValue:u.qElemNumber,value:d,qTrendLine:t});f.layerId=n,f.measureIndex=r,f.dimValue=u.qText,i.push(f)}return i},calculate:function(e,t,n){return(0,kl[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e})},findMinMax:Ml}}(e)}var Cl={TYPES:{AVERAGE:\"properties.trendlines.types.average\",LINEAR:\"properties.trendlines.types.linear\",POLYNOMIAL2:\"properties.trendlines.types.polynomial2\",POLYNOMIAL3:\"properties.trendlines.types.polynomial3\",POLYNOMIAL4:\"properties.trendlines.types.polynomial4\",EXPONENTIAL:\"properties.trendlines.types.exponential\",LOG:\"properties.trendlines.types.logarithmic\",POWER:\"properties.trendlines.types.power\"},STYLE:{DASHED:\"properties.trendlines.style.dashed\"},TYPE:\"properties.trendlines.type\",HEADER:\"properties.trendlines\",ADD_BUTTON:\"properties.trendlines.button.add\"},El={color:\"#f93f17\",index:9},Il={x:NaN,y:NaN,dimValue:NaN,layerId:NaN,measureIndex:NaN},Dl=function(e){var t=e.layoutService,n=e.getMinMax,r=e.colorModel,i=e.chart,o=e.translator,a=e.keys.colorScale,l=e.isEnabled,s=void 0===l?function(){return!0}:l,c=[Il],u=[],d=[],f=Tl(t,n);t.getLayoutValue(\"qHyperCube.qMeasureInfo\",[]).forEach(function(e,t){Array.isArray(e.qTrendLines)&&(u.push.apply(u,N(e.qTrendLines)),d.push.apply(d,N(e.qTrendLines.map(function(){return t}))))});var p=Rr(function(e){var t=(u[e]||{}).style,n=r.settings();if(t.autoColor){if(\"measure\"===n.mode){var o=d[e],l=i.scale(a)(o);return function(e){return Pn(e).l<70}(l)?function(e){var t=Pn(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(l):function(e){var t=Pn(e);return t.l-=5,t.toString()}(l)}return r.resolveUIColor(El)}return t.paletteColor?r.resolveUIColor(t.paletteColor):\"none\"});return{query:{hasTrendLines:function(){return!!u.length&&s()},getData:function(){return c},getStroke:p,getLineDash:function(e){return(u[e]||{}).style.lineDash},getLabel:function(e){return(u[e]||{}).label},getExpression:function(e){var t=(u[e]||{}).qExpression;return u[e].flipXY&&(t=t.replace(/[xy]/g,function(e){return\"x\"===e?\"y\":\"x\"})),t},isFlipped:function(e){return u[e].flipXY},getType:function(e){var t=(u[e]||{}).qType;return o.get(Cl.TYPES[t])},getMinMax:function(){var e=1/0,n=-1/0;return u.forEach(function(r){var i=f.findMinMax(t.meta.size.y,r);e=Math.min(i.min,e),n=Math.max(i.max,n)}),{min:e,max:n}},getCalculatedValue:function(e,t,n){var r=u[e];return f.calculate(r,t,n)}},command:{update:function(){c.length=0,u.forEach(function(e,t){var n=f.generate(e,t,d[t]);c.push.apply(c,N(n))})}}}},Al={source:\"trend\",extract:{field:\"x\",props:{minor:{field:\"y\"},layer:{field:\"layerId\"},measureIndex:{field:\"measureIndex\"},dimValue:{field:\"dimValue\"}}}},Nl=function(e){var t=e.meta;return t.isContinuous?function(e){return(0,e.scale)(e.datum.value)}:t.isGroupedByMeasure?function(e){var t=e.scale,n=e.datum;return t([n.value,n.measureIndex.value])+t.bandwidth()/2}:function(e){var t=e.scale;return t(e.datum.value)+t.bandwidth()/2}},Pl=function(e,t){var n=t.animations,r=t.layoutService,i=t.trendLineModel,o=t.orientation;if(!i.query.hasTrendLines())return[];var a=function(e,t){var n=e.trendlines,r=e.majorScale,i=e.minorScale,o=t.animations,a=t.trendLineModel,l=t.layoutService,s=t.orientation,c=Nl(l);return{key:n,type:\"line\",layout:{dock:\"center\"},data:Al,animations:o,settings:{connect:!0,orientation:s,coordinates:{major:{scale:r,fn:c},minor:{scale:i},layerId:{ref:\"layer\"}},layers:{curve:\"monotone\",line:{strokeWidth:2,stroke:function(e){var t=e.datum;return a.query.getStroke(t.layer.value)},strokeDasharray:function(e){var t=e.datum;return a.query.getLineDash(t.layer.value)}}}}}}(e,{animations:n,trendLineModel:i,layoutService:r,orientation:o}),l=[a];if(e.tooltipOverlay){var s=function(e,t){var n=e.majorScale,r=e.minorScale,i=e.tooltipOverlay,o=t.layoutService,a=\"horizontal\"===t.orientation,l={scale:n,fn:Nl(o)},s={scale:r,ref:\"minor\"};return{key:i,type:\"point\",layout:{dock:\"center\"},data:Al,settings:{x:a?l:s,y:a?s:l,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}}(e,{layoutService:r,orientation:o});l.push(s)}return l},Ll=function(e){e.style.dashed?e.style.lineDash=\"8, 4\":e.style.lineDash=\"\"},Fl=function(e){Ll(e),e.qMultiDimMode=\"Sum\",e.qXColIx=0};function jl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zl(e){return Math.pow(e.x,2)+Math.pow(e.y,2)}function Rl(e,t,n){var r=jl(n,e),i=jl(t,e),o=zl(i);if(0===o)return e;var a,l,s,c,u=(l=i,((a=r).x*l.x+a.y*l.y)/o);return u<=0?e:u>=1?t:function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(e,(c=u,{x:(s=i).x*c,y:s.y*c}))}function Bl(e){var t,n,r=e.keys,i=e.model,o=e.chart,a=e.pos,l=e.lineNode,s=i,c=o.component(r.trendlines),u=o.scale(r.majorScale),d=o.scale(r.minorScale),f=l.data.layer.value,p=function(e,t){var n=1/0,r=null;if(1===e.length)return e[0];for(var i=0;i<e.length-1;++i){var o=Rl(e[i],e[i+1],t),a=zl(jl(o,t));a<n&&(n=a,r=o)}return r}(l.data.points.map(function(e){return{x:u(e.dimValue.value)*c.rect.computed.width,y:d(e.minor.value)*c.rect.computed.height}}),a);return s.query.isFlipped(f)?(n=d.invert(p.y/c.rect.computed.height),t=s.query.getCalculatedValue(f,n).y,p.x=u(t)*c.rect.computed.width):(t=u.invert(p.x/c.rect.computed.width),n=s.query.getCalculatedValue(f,t).y,p.y=d(n)*c.rect.computed.height),{key:l.key,children:[],data:{layer:f,x:t,y:n},bounds:{x:p.x,y:p.y,width:0,height:0}}}function Hl(e){var t=e.animations,n=e.chart,r=e.colorService,i=e.isEnabled,o=e.keys,a=void 0===o?{}:o,l=e.layoutService,s=e.orientation,c=e.translator,u=e.getMinMax;a.trendlines||(a.trendlines=\"trend-lines\");var d=Dl({layoutService:l,getMinMax:u,colorModel:{settings:function(){return r.getSettings()},resolveUIColor:function(e){return r.getPaletteColor(e)}},chart:n,translator:c,keys:a,isEnabled:i});return{getComponents:function(){return Pl(a,{animations:t,layoutService:l,trendLineModel:d,orientation:s})},getData:function(){return d.query.hasTrendLines()?[{key:\"trend\",data:d.query.getData()}]:[]},collectNodes:function(e){var t=e.nodes,r=e.meta;return function(e){var t=e.keys,n=e.model,r=e.chart,i=e.nodes,o=e.meta;return i.length?[Bl({keys:t,model:n,chart:r,pos:o.position.relative,lineNode:i[0]})]:[]}({keys:a,model:d,chart:n,nodes:t,meta:r})},getModel:function(){return d},update:function(){return d.command.update()}}}Hl.propertyPanelProperties=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).translator;return{type:\"array\",ref:\"qTrendLines\",titleTranslation:Cl.HEADER,itemTitleRef:function(t){var n=P(t.label);return\"string\"===n&&t.label?t.label:\"object\"===n?t.label.qStringExpression?t.label.qStringExpression.qExpr:t.label.qValueExpression.qExpr:e.get(Cl.TYPES[t.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:Cl.ADD_BUTTON,add:Fl,items:{label:{ref:\"label\",type:\"string\",expression:\"optional\",translation:\"Common.Label\",defaultValue:\"\"},type:{ref:\"qType\",type:\"string\",component:\"dropdown\",translation:Cl.TYPE,options:[{value:vl,translation:Cl.TYPES.AVERAGE},{value:ml,translation:Cl.TYPES.LINEAR},{value:gl,translation:Cl.TYPES.POLYNOMIAL2},{value:yl,translation:Cl.TYPES.POLYNOMIAL3},{value:bl,translation:Cl.TYPES.POLYNOMIAL4},{value:xl,translation:Cl.TYPES.EXPONENTIAL},{value:wl,translation:Cl.TYPES.LOG},{value:ql,translation:Cl.TYPES.POWER}],defaultValue:vl},autoColor:{ref:\"style.autoColor\",type:\"boolean\",translation:\"properties.colors\",component:\"switch\",defaultValue:!0,options:[{value:!0,translation:\"Common.Auto\"},{value:!1,translation:\"Common.Custom\"}]},paletteColor:{ref:\"style.paletteColor\",translation:\"properties.color\",type:\"object\",component:\"color-picker\",dualOutput:!0,defaultValue:El,show:function(e){return!e.style.autoColor}},dashed:{ref:\"style.dashed\",translation:Cl.STYLE.DASHED,type:\"boolean\",defaultValue:!0,change:Ll}}}};export{n as COLORS,Et as alternativeService,a as asHSL,s as asHSLA,u as asHSV,c as asHSVObject,o as asHex,d as asRGB,f as asRGBA,zr as cache,br as colorService,$e as createAreaRangeInteraction,g as createColor,Ue as createContinuousRangeInteraction,Ze as createLassoInteraction,tt as createTapInteraction,Hr as debouncer,kr as disclaimerService,Pr as dockService,vt as fontResolver,ot as getAvailableFonts,b as getBestContrast,q as getBlendedColor,y as getContrastRatio,w as getContrastingColor,v as getLuminance,Lr as getValue,m as isDark,Gr as layoutService,xt as mapFromQTypeToSprout,Rr as memoize,Wr as pluginService,Be as pointLabelComponent,ma as selectionService,jr as setValue,Br as storage,Ta as themeService,_r as throttler,hl as tooltipService,Hl as trendlinesService};\n","const MULTI_REG = /,(?![^(]*\\))/;\nconst SINGLE_REG = /\\s(?![^(]*\\))/;\nconst LENGTH_REG = /^[0-9]+[a-zA-Z%]+?$/;\nconst PREDEFINED_STRINGS = ['none', 'inset', 'initial', 'inherit'];\nconst isLength = (v) => v === '0' || LENGTH_REG.test(v);\n\nexport const getColor = (singleShadowString) => {\n  if (!singleShadowString) return undefined;\n  const parts = singleShadowString.split(SINGLE_REG).filter((part) => !PREDEFINED_STRINGS.includes(part.toLowerCase()));\n  const last = parts.at(-1);\n  const color = last && !isLength(last) && !PREDEFINED_STRINGS.includes(last.toLowerCase()) ? last : undefined;\n  return color;\n};\n\nexport const getShadows = (shadowString) => {\n  if (!shadowString) return [];\n  return shadowString.split(MULTI_REG).map((s) => s.trim());\n};\n\n/**\n * Combine box shadow with box shadow color.\n * @private\n * @param {string} boxShadow - Box shadow which may include color\n * @param {string} themeBoxShadow - Box shadow from theme which may include color\n * @param {string | undefined} boxShadowColor - Box shadow color\n * @returns {string} Returns the combined box shadow and box shadow color\n *\n * If boxShadow is a single shadow and has a color then this color will be replaced by boxShadowColor and then\n * returned as the result,otherwise boxShadowColor will be added to boxShadow and then returned as the result.\n * If boxShadow is multiple shadows or an empty string then it will be returned as the result.\n *\n * @example getFullBoxShadow('none', '', 'red') returns 'none'\n *\n * @example getFullBoxShadow('initial', '', 'red') returns 'initial'\n *\n * @example getFullBoxShadow('inherit', '', 'red') returns 'inherit'\n *\n * @example getFullBoxShadow('', '', 'red') returns ''\n *\n * @example getFullBoxShadow('1px 2px blue, 3px 6px green', '', 'red') returns '1px 2px blue, 3px 6px green'\n *\n * @example getFullBoxShadow('1px 2px blue', '', 'red') returns '1px 2px red'\n *\n * @example getFullBoxShadow('1px 2px', '', 'red') returns '1px 2px red'\n *\n * @example getFullBoxShadow('1px 2px', '2px 5px green', undefined) returns '1px 2px green'\n *\n * @example getFullBoxShadow('1px 2px', '2px 5px', undefined) returns '1px 2px'\n */\nexport const getFullBoxShadow = (boxShadow, themeBoxShadow, boxShadowColor) => {\n  if (boxShadow && PREDEFINED_STRINGS.includes(boxShadow.toLowerCase())) return boxShadow.toLowerCase();\n  const shadowArray = getShadows(boxShadow);\n  if (shadowArray.length !== 1) return boxShadow;\n  let shadowColor = boxShadowColor;\n  if (!shadowColor) {\n    const themeShadowArray = getShadows(themeBoxShadow);\n    if (themeShadowArray.length !== 1) return boxShadow;\n    shadowColor = getColor(themeShadowArray[0]);\n  }\n  if (!shadowColor) return boxShadow;\n  const color = getColor(shadowArray[0]);\n  if (color) return boxShadow.replace(color, shadowColor);\n  return `${boxShadow} ${shadowColor}`;\n};\n","export default function resolveProperty(path, attribute, theme, objectType) {\n  if (theme && objectType) {\n    return theme.getStyle(`object.${objectType}`, path, attribute);\n  }\n  if (theme) {\n    return theme.getStyle('', path, attribute);\n  }\n  return undefined;\n}\n","import resolveProperty from './resolve-property';\n\nexport default function resolveColor(colorObj, path, attribute, theme, objectType) {\n  if (colorObj && theme) {\n    return colorObj.color !== 'none' ? theme.getColorPickerColor(colorObj) : undefined;\n  }\n  return resolveProperty(path, attribute, theme, objectType);\n}\n","import { getFullBoxShadow } from './shadow-utils';\nimport resolveProperty from './resolve-property';\nimport resolveColor from './resolve-color';\n\nconst imageSizingToCssProperty = {\n  originalSize: 'auto auto',\n  alwaysFit: 'contain',\n  fitWidth: '100% auto',\n  fitHeight: 'auto 100%',\n  stretchFit: '100% 100%',\n  alwaysFill: 'cover',\n};\n\nconst positionToCss = {\n  'top-left': 'top left',\n  'top-center': 'top center',\n  'top-right': 'top right',\n  'center-left': 'center left',\n  'center-center': 'center center',\n  'center-right': 'center right',\n  'bottom-left': 'bottom left',\n  'bottom-center': 'bottom center',\n  'bottom-right': 'bottom right',\n};\n\n// TODO: this needs some proper verification\nfunction getSenseServerUrl(app) {\n  let config;\n  let wsUrl;\n  let protocol;\n  let isSecure;\n\n  if (app?.session?.config) {\n    config = app.session.config;\n    wsUrl = new URL(config.url);\n\n    isSecure = wsUrl.protocol === 'wss:';\n    protocol = isSecure ? 'https://' : 'http://';\n    const basePath = wsUrl.pathname === '/' ? '' : wsUrl.pathname.replace(/\\/app\\/.*$/, '');\n    return protocol + wsUrl.host + basePath;\n  }\n  return '';\n}\n\nfunction getBackgroundPosition(bgComp) {\n  let bkgImagePosition = 'center center';\n  if (bgComp?.bgImage?.position) {\n    bkgImagePosition = positionToCss[bgComp.bgImage.position];\n  }\n  return bkgImagePosition;\n}\n\nfunction getBackgroundSize(bgComp) {\n  let bkgImageSize = imageSizingToCssProperty.originalSize;\n  const size = bgComp?.bgImage?.sizing;\n  if (size) {\n    bkgImageSize = imageSizingToCssProperty[size];\n  }\n  return bkgImageSize;\n}\n\nfunction resolveImageUrl(app, relativeUrl, host) {\n  if (!relativeUrl) {\n    return undefined;\n  }\n  if (host) {\n    return host + relativeUrl;\n  }\n  return getSenseServerUrl(app) + relativeUrl;\n}\n\nexport function resolveBgImage(bgComp, app, queryParams, host) {\n  const bgImageDef = bgComp?.bgImage;\n\n  if (bgImageDef) {\n    let url = '';\n    if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {\n      let authParamsAsString;\n      const urlObj = bgImageDef?.mediaUrl;\n      const { qUrl } = urlObj?.qStaticContentUrl || {};\n      url = qUrl ? decodeURIComponent(qUrl) : undefined;\n      url = resolveImageUrl(app, url, host);\n\n      if (queryParams) {\n        authParamsAsString = Object.entries(queryParams)\n          .map(([key, value]) => `&${key}=${encodeURIComponent(value)}`)\n          .join('&');\n        url = `${url}?${authParamsAsString}`;\n      }\n    }\n    if (bgImageDef.mode === 'expression') {\n      url = bgImageDef.expressionUrl ? decodeURIComponent(bgImageDef.expressionUrl) : undefined;\n    }\n    const pos = getBackgroundPosition(bgComp);\n    const size = getBackgroundSize(bgComp);\n\n    return url ? { url, pos, size } : undefined;\n  }\n  return undefined;\n}\n\nexport function resolveBgColor(comp, theme, objectType) {\n  const bgColor = comp?.bgColor;\n  if (bgColor && theme) {\n    if (bgColor.useExpression || bgColor.useColorExpression) {\n      return theme.validateColor(bgColor.colorExpression);\n    }\n  }\n  return resolveColor(bgColor?.color, '', 'backgroundColor', theme, objectType);\n}\n\nexport function resolveBorder(comp, theme, objectType, disableThemeBorder) {\n  const borderColor = resolveColor(comp?.borderColor, '', 'borderColor', theme, objectType);\n  let borderWidth = comp?.borderWidth;\n  const shouldGetborderFromTheme = !borderWidth && !disableThemeBorder;\n  if (shouldGetborderFromTheme) {\n    borderWidth = resolveProperty('', 'borderWidth', theme, objectType);\n  }\n  return borderWidth && borderColor ? `${borderWidth} solid ${borderColor}` : undefined;\n}\n\nexport function resolveBorderRadius(comp, theme, objectType) {\n  return comp?.borderRadius || resolveProperty('', 'borderRadius', theme, objectType);\n}\n\nexport function resolveBoxShadow(comp, theme, objectType) {\n  const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);\n  const boxShadow = comp?.shadow?.boxShadow || themeBoxShadow;\n  const boxShadowColor = resolveColor(comp?.shadow?.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);\n  return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);\n}\n\nfunction unfurlFontStyle(fontStyle, target) {\n  if (fontStyle && Array.isArray(fontStyle)) {\n    return fontStyle;\n  }\n  return target === 'main' ? ['bold'] : [];\n}\n\nexport function resolveTextStyle(textComp, target, theme, objectType) {\n  const textProps = textComp?.title?.[target] || {};\n  const fontStyle = unfurlFontStyle(textProps.fontStyle, target);\n\n  return {\n    fontFamily: textProps.fontFamily || theme.getStyle(`object.${objectType}`, `title.${target}`, 'fontFamily'),\n    fontSize: textProps.fontSize || theme.getStyle(`object.${objectType}`, `title.${target}`, 'fontSize'),\n    color:\n      textProps.color && textProps.color.color !== 'none'\n        ? theme.getColorPickerColor(textProps.color)\n        : theme.getStyle(`object.${objectType}`, `title.${target}`, 'color'),\n    backgroundColor:\n      textProps.backgroundColor || theme.getStyle(`object.${objectType}`, `title.${target}`, 'backgroundColor'),\n    fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',\n    fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',\n    textDecoration: fontStyle.includes('underline') ? 'underline' : 'initial',\n  };\n}\n","import { createColor, getContrastingColor } from 'qlik-chart-modules';\nimport { resolveBgColor, resolveBgImage } from '../../../utils/style/styling-props';\n\nexport const DEFAULT_SELECTION_COLORS = {\n  selected: '#00873D',\n  alternative: '#E4E4E4',\n  excluded: '#A9A9A9',\n  selectedExcluded: '#A9A9A9',\n  possible: '#FFFFFF',\n};\n\nconst SUPPORTED_COMPONENTS = ['theme', 'selections'];\n\nexport function getOverridesAsObject(components = []) {\n  // Currently supporting components \"theme\" and \"selections\".\n  const overrides = {};\n  components.forEach((c) => {\n    const k = c?.key;\n    if (SUPPORTED_COMPONENTS.includes(k)) {\n      overrides[k] = c;\n    }\n  });\n\n  return overrides;\n}\n\nfunction getSelectionColors({ getColorPickerColor, theme, getListboxStyle, overrides, checkboxes }) {\n  const componentContentTextColor = overrides.theme?.content?.fontColor;\n\n  // color priority: layout.component > theme content color > MUI theme\n  const desiredTextColor =\n    getColorPickerColor(componentContentTextColor) ||\n    getListboxStyle('content', 'color') ||\n    theme.palette?.text.primary;\n\n  const useContrastTextColor = !checkboxes && (overrides.theme?.content?.useContrastColor ?? true);\n\n  const componentSelectionColors = overrides.selections?.colors || {};\n\n  const getSelectionStateColors = (state) => {\n    const paletteState = state === 'selected' ? 'main' : state;\n    const contrastState = `${state}Contrast`;\n    // color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default\n    const color =\n      getColorPickerColor(componentSelectionColors[state]) ||\n      getListboxStyle('', `dataColors.${state}`) ||\n      (state === 'possible' && getListboxStyle('', 'backgroundColor')) ||\n      theme.palette?.selected?.[paletteState] ||\n      DEFAULT_SELECTION_COLORS[state];\n\n    const contrastColor = useContrastTextColor\n      ? getContrastingColor(color, desiredTextColor)\n      : desiredTextColor || theme.palette?.selected[`${contrastState}Text}`];\n\n    return { [state]: color, [contrastState]: contrastColor };\n  };\n\n  return {\n    ...getSelectionStateColors('selected'),\n    ...getSelectionStateColors('alternative'),\n    ...getSelectionStateColors('excluded'),\n    ...getSelectionStateColors('selectedExcluded'),\n    ...getSelectionStateColors('possible'),\n  };\n}\n\nfunction getBackgroundColor({ themeApi, themeOverrides }) {\n  let color;\n  const bgColor = themeOverrides?.background;\n  if (!bgColor) {\n    return color;\n  }\n  if (bgColor?.useExpression) {\n    color = resolveBgColor({ bgColor }, themeApi, 'listBox');\n  } else {\n    color = themeApi.getColorPickerColor(bgColor?.color);\n  }\n  return color;\n}\n\nfunction getSearchColor(getListboxStyle) {\n  const desiredTextColor = getListboxStyle('content', 'color');\n  const color = getContrastingColor('#fff', desiredTextColor);\n  return color;\n}\n\nfunction getSearchBGColor(bgCol, getListboxStyle) {\n  const searchBgColorObj = createColor(getListboxStyle('', 'backgroundColor'));\n  searchBgColorObj.setAlpha(0.7);\n  return searchBgColorObj.isInvalid() ? bgCol : searchBgColorObj.getRGBA();\n}\n\nexport function getStyles({ app, themeApi, theme, queryParams, components = [], checkboxes = false, hostConfig }) {\n  const overrides = getOverridesAsObject(components);\n  const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);\n  const getColorPickerColor = (c) => (c?.index > 0 || c?.color ? themeApi.getColorPickerColor(c) : undefined);\n\n  const selections = getSelectionColors({\n    getColorPickerColor,\n    theme,\n    getListboxStyle,\n    overrides,\n    checkboxes,\n  });\n  const themeOverrides = overrides.theme || {};\n\n  const headerColor = getColorPickerColor(themeOverrides.header?.fontColor) || getListboxStyle('title.main', 'color');\n\n  const bgComponentColor = getBackgroundColor({ themeApi, themeOverrides });\n\n  const bgImage = themeOverrides.background?.image\n    ? resolveBgImage({ bgImage: themeOverrides.background.image }, app, queryParams, hostConfig?.host)\n    : undefined;\n\n  const bgColor = bgComponentColor || getListboxStyle('', 'backgroundColor') || theme.palette.background.default;\n\n  const searchBgColor = getSearchBGColor(bgColor, getListboxStyle);\n  const searchColor = getSearchColor(getListboxStyle);\n\n  const headerFontStyle = themeOverrides.header?.fontStyle || {};\n  const contentFontStyle = themeOverrides.content?.fontStyle || {};\n\n  // Ensure we only return falseValue when the component is used, and thus has a false value.\n  const getWithFallback = (value, trueValue, falseValue) =>\n    (value === true && trueValue) || (value === false && falseValue) || undefined;\n\n  return {\n    background: {\n      backgroundColor: bgColor,\n      backgroundImage: bgImage?.url && !bgImage?.url.startsWith('url(') ? `url('${bgImage.url}')` : undefined,\n      backgroundRepeat: 'no-repeat',\n      backgroundSize: bgImage?.size,\n      backgroundPosition: bgImage?.pos,\n    },\n    header: {\n      color: headerColor,\n      fontSize: themeOverrides.header?.fontSize || getListboxStyle('title.main', 'fontSize'),\n      fontFamily: themeOverrides.header?.fontFamily || getListboxStyle('title.main', 'fontFamily'),\n      fontWeight:\n        getWithFallback(headerFontStyle.bold, 'bold', 'normal') ||\n        getListboxStyle('title.main', 'fontWeight') ||\n        'bold',\n      textDecoration: headerFontStyle.underline ? 'underline' : 'initial',\n      fontStyle:\n        getWithFallback(headerFontStyle.italic, 'italic', 'normal') ||\n        getListboxStyle('title.main', 'fontStyle') ||\n        'initial',\n    },\n    content: {\n      backgroundColor: checkboxes ? undefined : selections.possible,\n      color: selections.possibleContrast || getListboxStyle('content', 'color'),\n      fontSize: themeOverrides.content?.fontSize || getListboxStyle('content', 'fontSize'),\n      fontFamily: themeOverrides.content?.fontFamily || getListboxStyle('content', 'fontFamily'),\n      fontWeight:\n        getWithFallback(contentFontStyle.bold, 'bold', 'normal') ||\n        getListboxStyle('content', 'fontWeight') ||\n        'normal',\n      textDecoration: contentFontStyle.underline ? 'underline' : 'initial',\n      fontStyle:\n        getWithFallback(contentFontStyle.italic, 'italic', 'normal') ||\n        getListboxStyle('content', 'fontStyle') ||\n        'initial',\n    },\n    search: {\n      color: searchColor,\n      borderColor: theme.palette.divider,\n      highlightBorderColor: theme.palette.custom.focusBorder,\n      backgroundColor: searchBgColor,\n      backdropFilter: 'blur(8px)',\n    },\n    selections,\n  };\n}\n\nexport default function useListboxStyling({ app, themeApi, theme, queryParams, components, checkboxes, hostConfig }) {\n  return getStyles({ app, themeApi, theme, queryParams, components, checkboxes, hostConfig });\n}\n","import React, { useContext, useCallback, useRef, useEffect, useState } from 'react';\n\nimport Lock from '@nebula.js/ui/icons/lock';\nimport Unlock from '@nebula.js/ui/icons/unlock';\n\nimport { IconButton, Popover, Grid } from '@mui/material';\n\nimport { useTheme } from '@nebula.js/ui/theme';\nimport useSessionModel from '../../hooks/useSessionModel';\nimport useLayout from '../../hooks/useLayout';\n\nimport ListBox from './ListBox';\nimport createListboxSelectionToolbar from './interactions/listbox-selection-toolbar';\n\nimport ActionsToolbar from '../ActionsToolbar';\n\nimport InstanceContext from '../../contexts/InstanceContext';\n\nimport ListBoxSearch from './components/ListBoxSearch';\nimport useObjectSelections from '../../hooks/useObjectSelections';\nimport createSelectionState from './hooks/selections/selectionState';\nimport getHasSelections from './assets/has-selections';\nimport useListboxStyling from './assets/styling';\nimport useTempKeyboard from './components/useTempKeyboard';\n\nexport default function ListBoxPopover({\n  alignTo,\n  anchorOrigin = {\n    vertical: 'bottom',\n    horizontal: 'center',\n  },\n  transformOrigin = {\n    vertical: 'top',\n    horizontal: 'center',\n  },\n  show,\n  close,\n  app,\n  fieldName,\n  stateName = '$',\n  autoFocus,\n  components,\n  checkboxes: checkboxesOption,\n  selectDisabled = () => false,\n  sortCriteria = [\n    {\n      qSortByState: 1,\n      qSortByAscii: 1,\n      qSortByNumeric: 1,\n      qSortByLoadOrder: 1,\n    },\n  ],\n  direction = 'ltr',\n}) {\n  const isMasterDim = Boolean(fieldName?.qLibraryId);\n  const open = show && Boolean(alignTo.current);\n  const [listCount, setListCount] = useState(0);\n  const theme = useTheme();\n  const searchInputRef = useRef();\n  const [model] = useSessionModel(\n    {\n      qInfo: {\n        qType: 'njsListbox',\n      },\n      qListObjectDef: {\n        qStateName: stateName,\n        qShowAlternatives: true,\n        qInitialDataFetch: [\n          {\n            qTop: 0,\n            qLeft: 0,\n            qWidth: 0,\n            qHeight: 0,\n          },\n        ],\n        qDef: {\n          qSortCriterias: sortCriteria,\n          qFieldDefs: isMasterDim ? undefined : [fieldName],\n        },\n        qLibraryId: isMasterDim ? fieldName.qLibraryId : undefined,\n      },\n    },\n    app,\n    fieldName,\n    stateName\n  );\n\n  const lock = useCallback(() => {\n    model.lock('/qListObjectDef');\n  }, [model]);\n\n  const unlock = useCallback(() => {\n    model.unlock('/qListObjectDef');\n  }, [model]);\n\n  const { translator, themeApi, keyboardNavigation, hostConfig } = useContext(InstanceContext);\n  const moreAlignTo = useRef();\n  const containerRef = useRef();\n  const [selections] = useObjectSelections(app, model, containerRef);\n  const [layout] = useLayout(model);\n  const [selectionState] = useState(() => createSelectionState({ selectDisabled }));\n  const keyboard = useTempKeyboard({ containerRef, enabled: keyboardNavigation });\n  const { checkboxes = checkboxesOption } = layout || {};\n\n  const styles = useListboxStyling({ themeApi, theme, hostConfig, components, checkboxes });\n\n  useEffect(() => {\n    if (selections && open) {\n      if (!selections.isModal(model)) {\n        selections.goModal('/qListObjectDef');\n      }\n    }\n  }, [selections, open]);\n\n  if (!model || !layout || !translator || !styles) {\n    return null;\n  }\n\n  const isLocked = layout.qListObject.qDimensionInfo.qLocked === true;\n\n  const popoverClose = (e, reason) => {\n    const accept = reason !== 'escapeKeyDown';\n    selections.noModal(accept);\n    close();\n  };\n\n  const listboxSelectionToolbarItems = createListboxSelectionToolbar({\n    layout,\n    model,\n    translator,\n    selectionState,\n    selections,\n  });\n\n  const onCtrlF = () => {\n    searchInputRef.current.focus();\n  };\n\n  const hasSelections = getHasSelections(layout);\n\n  return (\n    <Popover\n      className=\"listbox-container\"\n      open={open}\n      onClose={popoverClose}\n      anchorEl={alignTo.current}\n      anchorOrigin={anchorOrigin}\n      transformOrigin={transformOrigin}\n      slotProps={{\n        paper: {\n          style: {\n            minWidth: '250px',\n          },\n        },\n      }}\n      onKeyDown={(e) => (e.key === 'Enter' ? popoverClose(e) : undefined)}\n      direction={direction}\n    >\n      <Grid container direction=\"column\" gap={0} ref={containerRef}>\n        <Grid container style={{ direction, padding: theme.spacing(1) }}>\n          <Grid>\n            {isLocked ? (\n              <IconButton\n                onClick={unlock}\n                disabled={!isLocked}\n                size=\"large\"\n                aria-label={translator.get('Listbox.Unlock')}\n                title={translator.get('Listbox.Unlock')}\n              >\n                <Lock />\n              </IconButton>\n            ) : (\n              <IconButton\n                onClick={lock}\n                disabled={!hasSelections}\n                size=\"large\"\n                aria-label={translator.get('Listbox.Lock')}\n                title={translator.get('Listbox.Lock')}\n              >\n                <Unlock />\n              </IconButton>\n            )}\n          </Grid>\n          <Grid size=\"grow\" />\n          <Grid>\n            <ActionsToolbar\n              layout={layout}\n              more={{\n                enabled: !isLocked,\n                actions: listboxSelectionToolbarItems,\n                alignTo: moreAlignTo,\n                popoverProps: {\n                  elevation: 0,\n                },\n                popoverPaperStyle: {\n                  boxShadow: '0 12px 8px -8px rgba(0, 0, 0, 0.2)',\n                  minWidth: '250px',\n                },\n              }}\n              selections={{\n                show: true,\n                api: selections,\n                onConfirm: popoverClose,\n                onCancel: () => popoverClose(null, 'escapeKeyDown'),\n              }}\n            />\n          </Grid>\n        </Grid>\n        <Grid size=\"grow\">\n          <div ref={moreAlignTo} />\n          <Grid>\n            <ListBoxSearch\n              ref={searchInputRef}\n              popoverOpen={open}\n              styles={styles}\n              visible\n              model={model}\n              listCount={listCount}\n              selections={selections}\n              selectionState={selectionState}\n              keyboard={{\n                enabled: false,\n                innerTabStops: true,\n                focusSelection: keyboard.focusSelection,\n              }}\n              autoFocus={autoFocus ?? true}\n              direction={direction}\n            />\n          </Grid>\n          <ListBox\n            model={model}\n            app={app}\n            layout={layout}\n            selections={selections}\n            selectionState={selectionState}\n            direction={direction}\n            onSetListCount={(c) => setListCount(c)}\n            onCtrlF={onCtrlF}\n            styles={styles}\n            keyboard={keyboard}\n          />\n        </Grid>\n      </Grid>\n    </Popover>\n  );\n}\n","import React from 'react';\nimport { Typography } from '@mui/material';\n\nfunction PinItem({ displayName }) {\n  return (\n    <Typography noWrap style={{ fontSize: '12px', lineHeight: '16px', fontWeight: 600, marginTop: '8px' }}>\n      {displayName}\n    </Typography>\n  );\n}\n\nexport default PinItem;\n","import React, { useRef, useState, useContext } from 'react';\nimport Remove from '@nebula.js/ui/icons/remove';\nimport Lock from '@nebula.js/ui/icons/lock';\n\nimport { IconButton, Grid, Typography } from '@mui/material';\n\nimport { useTheme } from '@nebula.js/ui/theme';\n\nimport ListBoxPopover from '../listbox/ListBoxPopover';\n\nimport InstanceContext from '../../contexts/InstanceContext';\nimport PinItem from './PinItem';\n\nexport default function OneField({\n  field,\n  api,\n  stateIx = 0,\n  skipHandleShowListBoxPopover = false,\n  moreAlignTo = null,\n  onClose = () => {},\n}) {\n  const { translator } = useContext(InstanceContext);\n  const alignTo = moreAlignTo || useRef();\n  const theme = useTheme();\n  const [showListBoxPopover, setShowListBoxPopover] = useState(false);\n  let Component = null;\n  let ChildComponent = null;\n  let selection;\n  let displayName = '';\n  const isPinnedItem = !!field.isPinned;\n\n  const handleShowListBoxPopover = (e) => {\n    if (e.currentTarget.contains(e.target)) {\n      // because click in popover will propagate to parent\n      setShowListBoxPopover(!showListBoxPopover);\n    }\n  };\n\n  const handleCloseShowListBoxPopover = () => {\n    setShowListBoxPopover(false);\n    onClose();\n  };\n\n  if (isPinnedItem) {\n    displayName = field.qName || field.qField;\n    ChildComponent = <PinItem displayName={displayName} />;\n  } else {\n    selection = field.selections[stateIx];\n    if (typeof selection.qTotal === 'undefined') {\n      selection.qTotal = 0;\n    }\n    const counts = selection.qStateCounts || {\n      qSelected: 0,\n      qLocked: 0,\n      qExcluded: 0,\n      qLockedExcluded: 0,\n      qSelectedExcluded: 0,\n      qAlternative: 0,\n    };\n    const green = (counts.qSelected + counts.qLocked) / selection.qTotal;\n    const white = counts.qAlternative / selection.qTotal;\n    const grey = (counts.qExcluded + counts.qLockedExcluded + counts.qSelectedExcluded) / selection.qTotal;\n\n    const numSelected = counts.qSelected + counts.qSelectedExcluded + counts.qLocked + counts.qLockedExcluded;\n    // Maintain modal state in app selections\n    const noSegments = numSelected === 0 && selection.qTotal === 0;\n    let label = '';\n    if (selection.qTotal === numSelected && selection.qTotal > 1) {\n      label = translator.get('CurrentSelections.All');\n    } else if (numSelected > 1 && selection.qTotal) {\n      label = translator.get('CurrentSelections.Of', [numSelected, selection.qTotal]);\n    } else if (selection.qSelectedFieldSelectionInfo) {\n      label = selection.qSelectedFieldSelectionInfo.map((v) => v.qName).join(', ');\n    }\n    if (field.states[stateIx] !== '$') {\n      label = `${field.states[stateIx]}: ${label}`;\n    }\n\n    const segments = [\n      { color: theme.palette.selected.main, ratio: green },\n      { color: theme.palette.selected.alternative, ratio: white },\n      { color: theme.palette.selected.excluded, ratio: grey },\n    ];\n    segments.forEach((s, i) => {\n      s.offset = i ? segments[i - 1].offset + segments[i - 1].ratio : 0; // eslint-disable-line\n    });\n\n    let Header = null;\n    let Icon = null;\n    let SegmentsIndicator = null;\n    if (!moreAlignTo) {\n      Header = (\n        <Grid sx={{ flex: 1, minWidth: 0, opacity: selection.qLocked ? '0.3' : '' }}>\n          <Typography noWrap style={{ fontSize: '12px', lineHeight: '16px', fontWeight: 600 }}>\n            {field.label}\n          </Typography>\n          <Typography noWrap style={{ fontSize: '12px', opacity: 0.55, lineHeight: '16px' }}>\n            {label}\n          </Typography>\n        </Grid>\n      );\n\n      if (selection.qLocked) {\n        Icon = (\n          <Grid>\n            <IconButton size=\"large\">\n              <Lock />\n            </IconButton>\n          </Grid>\n        );\n      } else if (!selection.qOneAndOnlyOne) {\n        Icon = (\n          <Grid>\n            <IconButton\n              title={translator.get('Selection.Clear')}\n              onClick={(e) => {\n                e.stopPropagation();\n                api.clearField(selection.qField, field.states[stateIx]);\n              }}\n              size=\"large\"\n            >\n              <Remove />\n            </IconButton>\n          </Grid>\n        );\n      }\n\n      SegmentsIndicator = (\n        <div\n          style={{\n            height: '4px',\n            position: 'absolute',\n            bottom: '0',\n            left: '0',\n            width: '100%',\n          }}\n        >\n          {noSegments === false &&\n            segments.map((s) => (\n              <div\n                key={s.color}\n                style={{\n                  position: 'absolute',\n                  background: s.color,\n                  height: '100%',\n                  top: 0,\n                  width: `${s.ratio * 100}%`,\n                  left: `${s.offset * 100}%`,\n                }}\n              />\n            ))}\n        </div>\n      );\n      ChildComponent = (\n        <>\n          {Header}\n          {Icon}\n          {SegmentsIndicator}\n        </>\n      );\n    }\n  }\n\n  Component = (\n    <Grid\n      container\n      gap={1}\n      ref={alignTo}\n      data-testid={isPinnedItem ? `pin-item-${displayName}` : `selection-item-${selection.qField}`}\n      sx={{\n        backgroundColor: theme.palette.background.paper,\n        position: 'relative',\n        cursor: 'pointer',\n        padding: '4px',\n        height: '40px',\n        '&:hover': {\n          backgroundColor: theme.palette.action.hover,\n        },\n      }}\n      onClick={(skipHandleShowListBoxPopover === false && handleShowListBoxPopover) || null}\n    >\n      {ChildComponent}\n      {showListBoxPopover && (\n        <ListBoxPopover\n          alignTo={alignTo}\n          show={showListBoxPopover}\n          close={handleCloseShowListBoxPopover}\n          app={api.model}\n          fieldName={isPinnedItem ? field.qField : selection.qField}\n          stateName={isPinnedItem ? undefined : field.states[stateIx]}\n        />\n      )}\n    </Grid>\n  );\n\n  return moreAlignTo ? (\n    <ListBoxPopover\n      alignTo={alignTo}\n      show\n      close={handleCloseShowListBoxPopover}\n      app={api.model}\n      fieldName={isPinnedItem ? field.qField : selection.qField}\n      stateName={isPinnedItem ? undefined : field.states[stateIx]}\n    />\n  ) : (\n    Component\n  );\n}\n","import SvgIcon from './SvgIcon';\n\nconst downArrow = (props) => ({\n  ...props,\n  shapes: [{ type: 'path', attrs: { d: 'M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z' } }],\n});\nexport default (props) => SvgIcon(downArrow(props));\nexport { downArrow };\n","import React, { useState, useContext, useRef } from 'react';\nimport { styled } from '@mui/material/styles';\nimport { Badge, IconButton, Grid, Typography, Popover, Button, List, ListItem, Box } from '@mui/material';\nimport DownArrow from '@nebula.js/ui/icons/down-arrow';\n\nimport OneField from './OneField';\nimport InstanceContext from '../../contexts/InstanceContext';\n\nimport ListBoxPopover from '../listbox/ListBoxPopover';\n\nconst PREFIX = 'MultiState';\n\nconst classes = {\n  item: `${PREFIX}-item`,\n};\n\nconst StyledGrid = styled(Grid)(({ theme }) => ({\n  [`&.${classes.item}`]: {\n    backgroundColor: theme.palette.background.paper,\n    position: 'relative',\n    cursor: 'pointer',\n    padding: '4px',\n    '&:hover': {\n      backgroundColor: theme.palette.action.hover,\n    },\n    height: '100%',\n    alignItems: 'center',\n  },\n}));\n\nexport default function MultiState({ field, api, moreAlignTo = null, onClose = () => {} }) {\n  // If originated from the `more` item show fields directly\n  const [showFields, setShowFields] = useState(!!moreAlignTo);\n  const [showStateIx, setShowStateIx] = useState(-1);\n  // If originated from the `more` item align it\n  const [anchorEl, setAnchorEl] = useState(moreAlignTo ? moreAlignTo.current : null);\n  const alignTo = moreAlignTo || useRef();\n  const { translator } = useContext(InstanceContext);\n  const clearAllStates = translator.get('Selection.ClearAllStates');\n\n  const handleShowFields = (e) => {\n    if (e.currentTarget.contains(e.target)) {\n      // because click in popover will propagate to parent\n      setAnchorEl(e.currentTarget);\n      alignTo.current = e.currentTarget;\n      setShowFields(!showFields);\n    }\n  };\n\n  const handleCloseShowFields = () => {\n    setShowFields(false);\n    onClose();\n  };\n\n  const handleShowState = (e, ix) => {\n    e.stopPropagation();\n    setShowFields(false);\n    setShowStateIx(ix);\n  };\n\n  const handleCloseShowState = () => {\n    setShowStateIx(-1);\n    onClose();\n  };\n\n  const handleClearAllStates = () => {\n    field.states.forEach((s) => api.clearField(field.name, s));\n  };\n\n  let Header = null;\n  if (!moreAlignTo) {\n    Header = (\n      <>\n        <Grid sx={{ minWidth: 0, flexGrow: 1 }}>\n          <Badge style={{ padding: '0px 8px' }} color=\"secondary\" badgeContent={field.states.length}>\n            <Typography component=\"span\" noWrap style={{ fontSize: '12px', lineHeight: '16px', fontWeight: 600 }}>\n              {field.label}\n            </Typography>\n          </Badge>\n        </Grid>\n        <Grid>\n          <div style={{ width: '12px' }} />\n        </Grid>\n        <Grid>\n          <IconButton size=\"large\">\n            <DownArrow />\n          </IconButton>\n        </Grid>\n      </>\n    );\n  }\n  const Fields = (\n    <List dense>\n      <ListItem title={clearAllStates} onClick={handleClearAllStates}>\n        <Button variant=\"contained\" fullWidth>\n          {clearAllStates}\n        </Button>\n      </ListItem>\n      {field.states.map((s, ix) => (\n        // eslint-disable-next-line react/no-array-index-key\n        <ListItem key={ix} title={field.label} onClick={(e) => handleShowState(e, ix)}>\n          <Box border={1} width=\"100%\" borderRadius={1} borderColor=\"divider\">\n            <OneField field={field} api={api} stateIx={ix} skipHandleShowListBoxPopover />\n          </Box>\n        </ListItem>\n      ))}\n    </List>\n  );\n  const PopoverFields = (\n    <Popover\n      open={showFields}\n      onClose={handleCloseShowFields}\n      anchorEl={anchorEl}\n      anchorOrigin={{\n        vertical: 'bottom',\n        horizontal: 'center',\n      }}\n      transformOrigin={{\n        vertical: 'top',\n        horizontal: 'center',\n      }}\n      PaperProps={{\n        style: {\n          minWidth: '200px',\n          width: '200px',\n          pointerEvents: 'auto',\n        },\n      }}\n    >\n      {Fields}\n    </Popover>\n  );\n\n  const Component = moreAlignTo ? (\n    PopoverFields\n  ) : (\n    <StyledGrid container gap={0} className={classes.item} onClick={handleShowFields}>\n      {Header}\n      {showFields && PopoverFields}\n      {showStateIx > -1 && (\n        <ListBoxPopover\n          alignTo={alignTo}\n          show={showStateIx > -1}\n          close={handleCloseShowState}\n          app={api.model}\n          fieldName={field.selections[showStateIx].qField}\n          stateName={field.states[showStateIx]}\n        />\n      )}\n    </StyledGrid>\n  );\n\n  return moreAlignTo && showStateIx > -1 ? (\n    <ListBoxPopover\n      alignTo={alignTo}\n      show={showStateIx > -1}\n      close={handleCloseShowState}\n      app={api.model}\n      fieldName={field.selections[showStateIx].qField}\n      stateName={field.states[showStateIx]}\n    />\n  ) : (\n    Component\n  );\n}\n","import React, { useState, useRef } from 'react';\nimport { styled } from '@mui/material/styles';\nimport { IconButton, Grid, Popover, List, ListItem, Box, Typography } from '@mui/material';\nimport { useTheme } from '@nebula.js/ui/theme';\nimport DownArrow from '@nebula.js/ui/icons/down-arrow';\n\nimport OneField from './OneField';\nimport MultiState from './MultiState';\n\nconst PREFIX = 'More';\n\nconst classes = {\n  item: `${PREFIX}-item`,\n  badge: `${PREFIX}-badge`,\n};\n\nconst StyledGrid = styled(Grid)(({ theme }) => ({\n  [`&.${classes.item}`]: {\n    backgroundColor: theme.palette.background.paper,\n    position: 'relative',\n    cursor: 'pointer',\n    padding: '4px',\n    '&:hover': {\n      backgroundColor: theme.palette.action.hover,\n    },\n    height: '100%',\n    alignItems: 'center',\n  },\n\n  [`& .${classes.badge}`]: {\n    padding: theme.spacing(0, 1),\n  },\n}));\n\nexport default function More({ items = [], api }) {\n  const theme = useTheme();\n  const [showMoreItems, setShowMoreItems] = useState(false);\n  const [showItemIx, setShowItemIx] = useState(-1);\n  const [anchorEl, setAnchorEl] = useState(null);\n  const alignTo = useRef();\n\n  const handleShowMoreItems = (e) => {\n    if (e.currentTarget.contains(e.target)) {\n      // because click in popover will propagate to parent\n      setAnchorEl(e.currentTarget);\n      alignTo.current = e.currentTarget;\n      setShowMoreItems(!showMoreItems);\n    }\n  };\n\n  const handleCloseShowMoreItem = () => {\n    setShowMoreItems(false);\n  };\n\n  const handleShowItem = (e, ix) => {\n    e.stopPropagation();\n    setShowMoreItems(false);\n    setShowItemIx(ix);\n  };\n\n  const handleCloseShowItem = () => {\n    setShowItemIx(-1);\n  };\n\n  let CurrentItem = null;\n  if (showItemIx > -1) {\n    CurrentItem =\n      items[showItemIx].states.length > 1 ? (\n        <MultiState field={items[showItemIx]} api={api} moreAlignTo={alignTo} onClose={handleCloseShowItem} />\n      ) : (\n        <OneField\n          field={items[showItemIx]}\n          api={api}\n          skipHandleShowListBoxPopover\n          moreAlignTo={alignTo}\n          onClose={handleCloseShowItem}\n        />\n      );\n  }\n\n  return (\n    <StyledGrid container gap={0} className={classes.item} onClick={handleShowMoreItems}>\n      <Grid>\n        <Box\n          borderRadius={theme.shape.borderRadius}\n          style={{\n            padding: '4px 8px 4px 8px',\n            backgroundColor: theme.palette.selected.main,\n            color: theme.palette.selected.mainContrastText,\n          }}\n        >\n          <Typography noWrap style={{ fontSize: '12px', lineHeight: '16px', fontWeight: 600 }} color=\"inherit\">\n            +{items.length}\n          </Typography>\n        </Box>\n      </Grid>\n      <Grid>\n        <IconButton size=\"large\">\n          <DownArrow />\n        </IconButton>\n      </Grid>\n      {showMoreItems && (\n        <Popover\n          open={showMoreItems}\n          onClose={handleCloseShowMoreItem}\n          anchorEl={anchorEl}\n          anchorOrigin={{\n            vertical: 'bottom',\n            horizontal: 'center',\n          }}\n          transformOrigin={{\n            vertical: 'top',\n            horizontal: 'center',\n          }}\n          PaperProps={{\n            style: {\n              minWidth: '200px',\n              width: '200px',\n              pointerEvents: 'auto',\n            },\n          }}\n        >\n          <List dense>\n            {items.map((s, ix) => (\n              // eslint-disable-next-line react/no-array-index-key\n              <ListItem key={ix} title={s.name} onClick={(e) => handleShowItem(e, ix)}>\n                <Box border={1} width=\"100%\" borderRadius={1} borderColor=\"divider\">\n                  {s.states.length > 1 ? <MultiState field={s} api={api} /> : <OneField field={s} api={api} />}\n                </Box>\n              </ListItem>\n            ))}\n          </List>\n        </Popover>\n      )}\n      {CurrentItem}\n    </StyledGrid>\n  );\n}\n","import React, { useMemo, useContext } from 'react';\n\nimport { Grid } from '@mui/material';\n\nimport { useTheme } from '@nebula.js/ui/theme';\nimport useCurrentSelectionsModel from '../../hooks/useCurrentSelectionsModel';\nimport useLayout from '../../hooks/useLayout';\nimport useRect from '../../hooks/useRect';\nimport InstanceContext from '../../contexts/InstanceContext';\nimport usePinnedList from './hooks/usePinnedList';\nimport useFieldList from './hooks/useFieldList';\nimport useDimensionList from './hooks/useDimenisonList';\nimport { sortAllFields, sortSelections } from './utils';\n\nimport OneField from './OneField';\nimport MultiState from './MultiState';\nimport More from './More';\n\nconst MIN_WIDTH = 120;\nconst MIN_WIDTH_MORE = 72;\n\nfunction getItems(layout) {\n  if (!layout) {\n    return [];\n  }\n  const fields = {};\n\n  // There is one qSelectionObject for the default state $,\n  // and an array of one qSelectionObject for each alternate state.\n  function collectFields(qSelectionObject, state) {\n    qSelectionObject.qSelections.forEach((selection) => {\n      const name = selection.qField;\n      let currentField = fields[name];\n      if (currentField === undefined) {\n        currentField = {\n          name,\n          label:\n            selection.qDimensionReferences?.find((element) => element.qLabel)?.qLabel ||\n            selection.qReadableName ||\n            name,\n          states: [],\n          selections: [],\n        };\n        fields[name] = currentField;\n      }\n      currentField.states.push(state);\n      currentField.selections.push(selection);\n    });\n  }\n  if (layout.qSelectionObject) {\n    collectFields(layout.qSelectionObject, '$');\n  }\n  if (layout.alternateStates) {\n    layout.alternateStates.forEach((s) => collectFields(s.qSelectionObject, s.stateName));\n  }\n  return Object.keys(fields)\n    .map((key) => fields[key])\n    .filter((f) => !f.selections.some((s) => s.qIsHidden));\n}\n\nconst getMaxItems = (containerRect) => {\n  if (!containerRect) {\n    return 0;\n  }\n  const { width } = containerRect;\n  const maxWidth = Math.floor(width) - MIN_WIDTH_MORE;\n  const items = Math.floor(maxWidth / MIN_WIDTH);\n  return items;\n};\n\nconst getItemsAndMore = ({ currentItems, containerRef, maxItems, isInListboxPopover }) => {\n  if (!containerRef) {\n    return { items: [], more: [] };\n  }\n  const newItems = [...currentItems];\n  const currStateItems = containerRef.items ?? [];\n  // Maintain modal state in app selections\n  if (isInListboxPopover() && newItems.length + 1 === currStateItems.length) {\n    const lastDeselectedField = currStateItems.filter((f1) => newItems.some((f2) => f1.name === f2.name) === false)[0];\n    if (lastDeselectedField && !lastDeselectedField.isPinned) {\n      const { qField } = lastDeselectedField.selections[0];\n      lastDeselectedField.selections = [{ qField }];\n      const wasIx = currStateItems.indexOf(lastDeselectedField);\n      newItems.splice(wasIx, 0, lastDeselectedField);\n    }\n  }\n  let newMoreItems = [];\n  if (maxItems < newItems.length) {\n    newMoreItems = newItems.splice(0, newItems.length - maxItems);\n  }\n  /* eslint-disable no-param-reassign */\n  containerRef.items = newItems;\n  return {\n    items: newItems,\n    more: newMoreItems,\n  };\n};\n\nexport default function SelectedFields({ api, app }) {\n  const theme = useTheme();\n  const [currentSelectionsModel] = useCurrentSelectionsModel(app);\n  const [layout] = useLayout(currentSelectionsModel);\n  const [fieldList] = useFieldList(app);\n  const [masterDimList] = useDimensionList(app);\n  const [pinnedItems] = usePinnedList(app);\n\n  const { modalObjectStore } = useContext(InstanceContext).selectionStore;\n  const [containerRef, containerRect] = useRect();\n  const currentItems = useMemo(() => {\n    const items = getItems(layout).sort(sortSelections);\n    return sortAllFields(fieldList, pinnedItems, items, masterDimList);\n  }, [layout, fieldList, pinnedItems, masterDimList]);\n  const maxItems = getMaxItems(containerRect);\n\n  const isInListboxPopover = () => {\n    const { model } = modalObjectStore.get(app.id) || {};\n    return model?.genericType === 'njsListbox';\n  };\n\n  const { items, more } = getItemsAndMore({\n    currentItems,\n    containerRef,\n    maxItems,\n    isInListboxPopover,\n  });\n\n  return (\n    <Grid ref={containerRef} container gap={0} wrap=\"nowrap\" style={{ height: '100%' }}>\n      {more.length > 0 && (\n        <Grid\n          style={{\n            position: 'relative',\n            maxWidth: '98px',\n            minWidth: `${MIN_WIDTH_MORE}px`,\n            background: theme.palette.background.paper,\n            borderRight: `1px solid ${theme.palette.divider}`,\n          }}\n        >\n          <More items={more} api={api} />\n        </Grid>\n      )}\n      {items.map((s, index) => (\n        <Grid\n          // eslint-disable-next-line react/no-array-index-key\n          key={`${s.states.join('::')}::${s.qField ?? s.name}${index}`}\n          style={{\n            position: 'relative',\n            maxWidth: '240px',\n            minWidth: `${MIN_WIDTH}px`,\n            background: theme.palette.background.paper,\n            borderRight: `1px solid ${theme.palette.divider}`,\n          }}\n        >\n          {s.states.length > 1 ? <MultiState field={s} api={api} /> : <OneField field={s} api={api} />}\n        </Grid>\n      ))}\n    </Grid>\n  );\n}\n","import useSingleObject from './useSingleObject';\nimport useRpc from '../../../hooks/useRpc';\n\nconst usePinnedList = (app) => {\n  const [model] = useSingleObject(app);\n  const [layout] = useRpc(model, 'getLayout');\n  return [layout?.pinnedItems ?? []];\n};\n\nexport default usePinnedList;\n","import { useState, useEffect } from 'react';\nimport { useModelStore } from '../../../hooks/useModelStore';\nimport { getSinglePublicObject, SINGLE_OBJECT_ID } from '../single-public';\n\nconst useSingleObject = (app) => {\n  const [singleObject, setSingleObject] = useState(null);\n  const [error, setError] = useState(null);\n  const [modelStore] = useModelStore();\n\n  useEffect(() => {\n    let alive = true;\n    let cleanupFn = () => {};\n\n    async function getSingleObject() {\n      try {\n        const cacheKey = `${app.id}-${SINGLE_OBJECT_ID}`;\n        let model = modelStore.get(cacheKey);\n\n        if (!model) {\n          model = await getSinglePublicObject(app, SINGLE_OBJECT_ID);\n          if (!alive) {\n            return;\n          }\n\n          if (model) {\n            modelStore.set(cacheKey, model);\n            const onClosed = () => {\n              modelStore.clear(cacheKey);\n            };\n            model.once('closed', onClosed);\n            cleanupFn = () => {\n              model.removeListener('closed', onClosed);\n            };\n          }\n        }\n\n        if (alive) {\n          setError(null);\n          setSingleObject(model);\n        }\n      } catch (err) {\n        if (alive) {\n          setError(err instanceof Error ? err : new Error(String(err)));\n          setSingleObject(null);\n        }\n      }\n    }\n\n    if (app) {\n      getSingleObject();\n      return () => {\n        alive = false;\n        cleanupFn();\n      };\n    }\n\n    return undefined;\n  }, [app, modelStore]);\n\n  return [singleObject, error];\n};\n\nexport default useSingleObject;\n","import SvgIcon from './SvgIcon';\n\nconst selectionsBack = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectionsBack(props));\nexport { selectionsBack };\n","import SvgIcon from './SvgIcon';\n\nconst selectionsForward = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(selectionsForward(props));\nexport { selectionsForward };\n","import React, { useContext } from 'react';\n\nimport { IconButton, Grid } from '@mui/material';\n\nimport SelectionsBack from '@nebula.js/ui/icons/selections-back';\nimport SelectionsForward from '@nebula.js/ui/icons/selections-forward';\nimport ClearSelections from '@nebula.js/ui/icons/clear-selections';\n\nimport InstanceContext from '../../contexts/InstanceContext';\nimport useAppSelectionsNavigation from '../../hooks/useAppSelectionsNavigation';\n\nexport default function Nav({ api, app }) {\n  const { translator } = useContext(InstanceContext);\n  const [navState] = useAppSelectionsNavigation(app);\n\n  return (\n    <Grid\n      container\n      wrap=\"nowrap\"\n      style={{\n        height: '100%',\n        alignItems: 'center',\n        padding: '0 8px',\n      }}\n    >\n      <Grid>\n        <IconButton\n          style={{ marginRight: '8px' }}\n          disabled={!navState || !navState.canGoBack}\n          title={translator.get('Navigate.Back')}\n          onClick={() => api.back()}\n          size=\"large\"\n        >\n          <SelectionsBack />\n        </IconButton>\n      </Grid>\n      <Grid>\n        <IconButton\n          style={{ marginRight: '8px' }}\n          disabled={!navState || !navState.canGoForward}\n          title={translator.get('Navigate.Forward')}\n          onClick={() => api.forward()}\n          size=\"large\"\n        >\n          <SelectionsForward />\n        </IconButton>\n      </Grid>\n      <Grid>\n        <IconButton\n          disabled={!navState || !navState.canClear}\n          title={translator.get('Selection.ClearAll')}\n          onClick={() => api.clear()}\n          size=\"large\"\n        >\n          <ClearSelections />\n        </IconButton>\n      </Grid>\n    </Grid>\n  );\n}\n","import { useState, useEffect } from 'react';\nimport useLayout, { useAppLayout } from './useLayout';\nimport useCurrentSelectionsModel from './useCurrentSelectionsModel';\n\nconst patchAlternateState = (currentSelectionsModel, currentSelectionsLayout, appLayout) => {\n  const states = [...(appLayout.qStateNames || [])].map((s) => ({\n    stateName: s, // need this as reference in selection toolbar since qSelectionObject.qStateName is not in the layout\n    qSelectionObjectDef: {\n      qStateName: s,\n    },\n  }));\n  const existingStates = (\n    currentSelectionsLayout && currentSelectionsLayout.alternateStates\n      ? currentSelectionsLayout.alternateStates.map((s) => s.stateName)\n      : []\n  ).join('::');\n  const newStates = (appLayout.qStateNames || []).map((s) => s).join('::');\n  if (existingStates !== newStates) {\n    currentSelectionsModel.applyPatches(\n      [\n        {\n          qOp: 'replace',\n          qPath: '/alternateStates',\n          qValue: JSON.stringify(states),\n        },\n      ],\n      true\n    );\n  }\n};\n\nexport default function useAppSelectionsNavigation(app) {\n  const [currentSelectionsModel] = useCurrentSelectionsModel(app);\n  const [currentSelectionsLayout] = useLayout(currentSelectionsModel);\n  const [appLayout] = useAppLayout(app);\n  const [navigationState, setNavigationState] = useState(null);\n\n  useEffect(() => {\n    if (!appLayout || !currentSelectionsModel || !currentSelectionsLayout) return;\n    patchAlternateState(currentSelectionsModel, currentSelectionsLayout, appLayout);\n  }, [appLayout, currentSelectionsModel, currentSelectionsLayout]);\n\n  useEffect(() => {\n    if (!currentSelectionsLayout) return;\n    let canGoBack = false;\n    let canGoForward = false;\n    let canClear = false;\n    [currentSelectionsLayout, ...(currentSelectionsLayout.alternateStates || [])].forEach((state) => {\n      canGoBack = canGoBack || (state.qSelectionObject && state.qSelectionObject.qBackCount > 0);\n      canGoForward = canGoForward || (state.qSelectionObject && state.qSelectionObject.qForwardCount > 0);\n      canClear =\n        canClear ||\n        ((state.qSelectionObject && state.qSelectionObject.qSelections) || []).filter((s) => s.qLocked !== true)\n          .length > 0;\n    });\n    setNavigationState({\n      canGoBack,\n      canGoForward,\n      canClear,\n    });\n  }, [currentSelectionsLayout]);\n\n  return [navigationState, currentSelectionsModel, currentSelectionsLayout];\n}\n","const idGen = [\n  [10, 31],\n  [0, 31],\n  [0, 31],\n  [0, 31],\n  [0, 31],\n  [0, 31],\n];\nfunction toChar([min, max]) {\n  return (min + ((Math.random() * (max - min)) | 0)).toString(32);\n}\n\nexport default function uid() {\n  return idGen.map(toChar).join('');\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport { Grid } from '@mui/material';\n\nimport { useTheme } from '@nebula.js/ui/theme';\n\nimport SelectedFields from './SelectedFields';\nimport Nav from './Nav';\nimport useAppSelections from '../../hooks/useAppSelections';\nimport uid from '../../object/uid';\n\nfunction AppSelections({ app }) {\n  const theme = useTheme();\n  const [appSelections] = useAppSelections(app);\n  if (!appSelections) return null;\n  return (\n    <Grid\n      container\n      gap={0}\n      wrap=\"nowrap\"\n      style={{\n        backgroundColor: theme.palette.background.paper,\n        minHeight: '40px',\n      }}\n    >\n      <Grid\n        style={{\n          borderRight: `1px solid ${theme.palette.divider}`,\n        }}\n      >\n        <Nav api={appSelections} app={app} />\n      </Grid>\n      <Grid size=\"grow\" style={{ backgroundColor: theme.palette.background.darker, overflow: 'hidden' }}>\n        <SelectedFields api={appSelections} app={app} />\n      </Grid>\n    </Grid>\n  );\n}\n\nexport { AppSelections };\n\nexport default function mount({ element, app }) {\n  return ReactDOM.createPortal(<AppSelections app={app} />, element, uid());\n}\n","import { Component, createElement } from 'react';\n\n/**\n * Detect Element Resize.\n * https://github.com/sdecima/javascript-detect-element-resize\n * Sebastian Decima\n *\n * Forked from version 0.5.3; includes the following modifications:\n * 1) Guard against unsafe 'window' and 'document' references (to support SSR).\n * 2) Defer initialization code via a top-level function wrapper (to support SSR).\n * 3) Avoid unnecessary reflows by not measuring size for scroll events bubbling from children.\n * 4) Add nonce for style element.\n * 5) Use 'export' statement over 'module.exports' assignment\n **/\n\n// Check `document` and `window` in case of server-side rendering\nlet windowObject;\nif (typeof window !== \"undefined\") {\n  windowObject = window;\n\n  // eslint-disable-next-line no-restricted-globals\n} else if (typeof self !== \"undefined\") {\n  // eslint-disable-next-line no-restricted-globals\n  windowObject = self;\n} else {\n  windowObject = global;\n}\nlet cancelFrame = null;\nlet requestFrame = null;\nconst TIMEOUT_DURATION = 20;\nconst clearTimeoutFn = windowObject.clearTimeout;\nconst setTimeoutFn = windowObject.setTimeout;\nconst cancelAnimationFrameFn = windowObject.cancelAnimationFrame || windowObject.mozCancelAnimationFrame || windowObject.webkitCancelAnimationFrame;\nconst requestAnimationFrameFn = windowObject.requestAnimationFrame || windowObject.mozRequestAnimationFrame || windowObject.webkitRequestAnimationFrame;\nif (cancelAnimationFrameFn == null || requestAnimationFrameFn == null) {\n  // For environments that don't support animation frame,\n  // fallback to a setTimeout based approach.\n  cancelFrame = clearTimeoutFn;\n  requestFrame = function requestAnimationFrameViaSetTimeout(callback) {\n    return setTimeoutFn(callback, TIMEOUT_DURATION);\n  };\n} else {\n  // Counter intuitively, environments that support animation frames can be trickier.\n  // Chrome's \"Throttle non-visible cross-origin iframes\" flag can prevent rAFs from being called.\n  // In this case, we should fallback to a setTimeout() implementation.\n  cancelFrame = function cancelFrame([animationFrameID, timeoutID]) {\n    cancelAnimationFrameFn(animationFrameID);\n    clearTimeoutFn(timeoutID);\n  };\n  requestFrame = function requestAnimationFrameWithSetTimeoutFallback(callback) {\n    const animationFrameID = requestAnimationFrameFn(function animationFrameCallback() {\n      clearTimeoutFn(timeoutID);\n      callback();\n    });\n    const timeoutID = setTimeoutFn(function timeoutCallback() {\n      cancelAnimationFrameFn(animationFrameID);\n      callback();\n    }, TIMEOUT_DURATION);\n    return [animationFrameID, timeoutID];\n  };\n}\nfunction createDetectElementResize(nonce) {\n  let animationKeyframes;\n  let animationName;\n  let animationStartEvent;\n  let animationStyle;\n  let checkTriggers;\n  let resetTriggers;\n  let scrollListener;\n  const attachEvent = typeof document !== \"undefined\" && document.attachEvent;\n  if (!attachEvent) {\n    resetTriggers = function (element) {\n      const triggers = element.__resizeTriggers__,\n        expand = triggers.firstElementChild,\n        contract = triggers.lastElementChild,\n        expandChild = expand.firstElementChild;\n      contract.scrollLeft = contract.scrollWidth;\n      contract.scrollTop = contract.scrollHeight;\n      expandChild.style.width = expand.offsetWidth + 1 + \"px\";\n      expandChild.style.height = expand.offsetHeight + 1 + \"px\";\n      expand.scrollLeft = expand.scrollWidth;\n      expand.scrollTop = expand.scrollHeight;\n    };\n    checkTriggers = function (element) {\n      return element.offsetWidth !== element.__resizeLast__.width || element.offsetHeight !== element.__resizeLast__.height;\n    };\n    scrollListener = function (e) {\n      // Don't measure (which forces) reflow for scrolls that happen inside of children!\n      if (e.target.className && typeof e.target.className.indexOf === \"function\" && e.target.className.indexOf(\"contract-trigger\") < 0 && e.target.className.indexOf(\"expand-trigger\") < 0) {\n        return;\n      }\n      const element = this;\n      resetTriggers(this);\n      if (this.__resizeRAF__) {\n        cancelFrame(this.__resizeRAF__);\n      }\n      this.__resizeRAF__ = requestFrame(function animationFrame() {\n        if (checkTriggers(element)) {\n          element.__resizeLast__.width = element.offsetWidth;\n          element.__resizeLast__.height = element.offsetHeight;\n          element.__resizeListeners__.forEach(function forEachResizeListener(fn) {\n            fn.call(element, e);\n          });\n        }\n      });\n    };\n\n    /* Detect CSS Animations support to detect element display/re-attach */\n    let animation = false;\n    let keyframeprefix = \"\";\n    animationStartEvent = \"animationstart\";\n    const domPrefixes = \"Webkit Moz O ms\".split(\" \");\n    let startEvents = \"webkitAnimationStart animationstart oAnimationStart MSAnimationStart\".split(\" \");\n    let pfx = \"\";\n    {\n      const elm = document.createElement(\"fakeelement\");\n      if (elm.style.animationName !== undefined) {\n        animation = true;\n      }\n      if (animation === false) {\n        for (let i = 0; i < domPrefixes.length; i++) {\n          if (elm.style[domPrefixes[i] + \"AnimationName\"] !== undefined) {\n            pfx = domPrefixes[i];\n            keyframeprefix = \"-\" + pfx.toLowerCase() + \"-\";\n            animationStartEvent = startEvents[i];\n            animation = true;\n            break;\n          }\n        }\n      }\n    }\n    animationName = \"resizeanim\";\n    animationKeyframes = \"@\" + keyframeprefix + \"keyframes \" + animationName + \" { from { opacity: 0; } to { opacity: 0; } } \";\n    animationStyle = keyframeprefix + \"animation: 1ms \" + animationName + \"; \";\n  }\n  const createStyles = function (doc) {\n    if (!doc.getElementById(\"detectElementResize\")) {\n      //opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360\n      const css = (animationKeyframes ? animationKeyframes : \"\") + \".resize-triggers { \" + (animationStyle ? animationStyle : \"\") + \"visibility: hidden; opacity: 0; } \" + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',\n        head = doc.head || doc.getElementsByTagName(\"head\")[0],\n        style = doc.createElement(\"style\");\n      style.id = \"detectElementResize\";\n      style.type = \"text/css\";\n      if (nonce != null) {\n        style.setAttribute(\"nonce\", nonce);\n      }\n      if (style.styleSheet) {\n        style.styleSheet.cssText = css;\n      } else {\n        style.appendChild(doc.createTextNode(css));\n      }\n      head.appendChild(style);\n    }\n  };\n  const addResizeListener = function (element, fn) {\n    if (attachEvent) {\n      element.attachEvent(\"onresize\", fn);\n    } else {\n      if (!element.__resizeTriggers__) {\n        const doc = element.ownerDocument;\n        const elementStyle = windowObject.getComputedStyle(element);\n        if (elementStyle && elementStyle.position === \"static\") {\n          element.style.position = \"relative\";\n        }\n        createStyles(doc);\n        element.__resizeLast__ = {};\n        element.__resizeListeners__ = [];\n        (element.__resizeTriggers__ = doc.createElement(\"div\")).className = \"resize-triggers\";\n        const expandTrigger = doc.createElement(\"div\");\n        expandTrigger.className = \"expand-trigger\";\n        expandTrigger.appendChild(doc.createElement(\"div\"));\n        const contractTrigger = doc.createElement(\"div\");\n        contractTrigger.className = \"contract-trigger\";\n        element.__resizeTriggers__.appendChild(expandTrigger);\n        element.__resizeTriggers__.appendChild(contractTrigger);\n        element.appendChild(element.__resizeTriggers__);\n        resetTriggers(element);\n        element.addEventListener(\"scroll\", scrollListener, true);\n\n        /* Listen for a css animation to detect element display/re-attach */\n        if (animationStartEvent) {\n          element.__resizeTriggers__.__animationListener__ = function animationListener(e) {\n            if (e.animationName === animationName) {\n              resetTriggers(element);\n            }\n          };\n          element.__resizeTriggers__.addEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);\n        }\n      }\n      element.__resizeListeners__.push(fn);\n    }\n  };\n  const removeResizeListener = function (element, fn) {\n    if (attachEvent) {\n      element.detachEvent(\"onresize\", fn);\n    } else {\n      element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);\n      if (!element.__resizeListeners__.length) {\n        element.removeEventListener(\"scroll\", scrollListener, true);\n        if (element.__resizeTriggers__.__animationListener__) {\n          element.__resizeTriggers__.removeEventListener(animationStartEvent, element.__resizeTriggers__.__animationListener__);\n          element.__resizeTriggers__.__animationListener__ = null;\n        }\n        try {\n          element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__);\n        } catch (e) {\n          // Preact compat; see developit/preact-compat/issues/228\n        }\n      }\n    }\n  };\n  return {\n    addResizeListener,\n    removeResizeListener\n  };\n}\n\nclass AutoSizer extends Component {\n  constructor(...args) {\n    super(...args);\n    this.state = {\n      height: this.props.defaultHeight || 0,\n      scaledHeight: this.props.defaultHeight || 0,\n      scaledWidth: this.props.defaultWidth || 0,\n      width: this.props.defaultWidth || 0\n    };\n    this._autoSizer = null;\n    this._detectElementResize = null;\n    this._parentNode = null;\n    this._resizeObserver = null;\n    this._timeoutId = null;\n    this._onResize = () => {\n      this._timeoutId = null;\n      const {\n        disableHeight,\n        disableWidth,\n        onResize\n      } = this.props;\n      if (this._parentNode) {\n        // Guard against AutoSizer component being removed from the DOM immediately after being added.\n        // This can result in invalid style values which can result in NaN values if we don't handle them.\n        // See issue #150 for more context.\n\n        const style = window.getComputedStyle(this._parentNode) || {};\n        const paddingLeft = parseFloat(style.paddingLeft || \"0\");\n        const paddingRight = parseFloat(style.paddingRight || \"0\");\n        const paddingTop = parseFloat(style.paddingTop || \"0\");\n        const paddingBottom = parseFloat(style.paddingBottom || \"0\");\n        const rect = this._parentNode.getBoundingClientRect();\n        const scaledHeight = rect.height - paddingTop - paddingBottom;\n        const scaledWidth = rect.width - paddingLeft - paddingRight;\n        const height = this._parentNode.offsetHeight - paddingTop - paddingBottom;\n        const width = this._parentNode.offsetWidth - paddingLeft - paddingRight;\n        if (!disableHeight && (this.state.height !== height || this.state.scaledHeight !== scaledHeight) || !disableWidth && (this.state.width !== width || this.state.scaledWidth !== scaledWidth)) {\n          this.setState({\n            height,\n            width,\n            scaledHeight,\n            scaledWidth\n          });\n          if (typeof onResize === \"function\") {\n            onResize({\n              height,\n              scaledHeight,\n              scaledWidth,\n              width\n            });\n          }\n        }\n      }\n    };\n    this._setRef = autoSizer => {\n      this._autoSizer = autoSizer;\n    };\n  }\n  componentDidMount() {\n    const {\n      nonce\n    } = this.props;\n    const parentNode = this._autoSizer ? this._autoSizer.parentNode : null;\n    if (parentNode != null && parentNode.ownerDocument && parentNode.ownerDocument.defaultView && parentNode instanceof parentNode.ownerDocument.defaultView.HTMLElement) {\n      // Delay access of parentNode until mount.\n      // This handles edge-cases where the component has already been unmounted before its ref has been set,\n      // As well as libraries like react-lite which have a slightly different lifecycle.\n      this._parentNode = parentNode;\n\n      // Use ResizeObserver from the same context where parentNode (which we will observe) was defined\n      // Using just global can result into onResize events not being emitted in cases with multiple realms\n      const ResizeObserverInstance = parentNode.ownerDocument.defaultView.ResizeObserver;\n      if (ResizeObserverInstance != null) {\n        this._resizeObserver = new ResizeObserverInstance(() => {\n          // Guard against \"ResizeObserver loop limit exceeded\" error;\n          // could be triggered if the state update causes the ResizeObserver handler to run long.\n          // See https://github.com/bvaughn/react-virtualized-auto-sizer/issues/55\n          this._timeoutId = setTimeout(this._onResize, 0);\n        });\n        this._resizeObserver.observe(parentNode);\n      } else {\n        // Defer requiring resize handler in order to support server-side rendering.\n        // See issue #41\n        this._detectElementResize = createDetectElementResize(nonce);\n        this._detectElementResize.addResizeListener(parentNode, this._onResize);\n      }\n      this._onResize();\n    }\n  }\n  componentWillUnmount() {\n    if (this._parentNode) {\n      if (this._detectElementResize) {\n        this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);\n      }\n      if (this._timeoutId !== null) {\n        clearTimeout(this._timeoutId);\n      }\n      if (this._resizeObserver) {\n        this._resizeObserver.disconnect();\n      }\n    }\n  }\n  render() {\n    const {\n      children,\n      defaultHeight,\n      defaultWidth,\n      disableHeight = false,\n      disableWidth = false,\n      doNotBailOutOnEmptyChildren = false,\n      nonce,\n      onResize,\n      style = {},\n      tagName = \"div\",\n      ...rest\n    } = this.props;\n    const {\n      height,\n      scaledHeight,\n      scaledWidth,\n      width\n    } = this.state;\n\n    // Outer div should not force width/height since that may prevent containers from shrinking.\n    // Inner component should overflow and use calculated width/height.\n    // See issue #68 for more information.\n    const outerStyle = {\n      overflow: \"visible\"\n    };\n    const childParams = {};\n\n    // Avoid rendering children before the initial measurements have been collected.\n    // At best this would just be wasting cycles.\n    let bailoutOnChildren = false;\n    if (!disableHeight) {\n      if (height === 0) {\n        bailoutOnChildren = true;\n      }\n      outerStyle.height = 0;\n      childParams.height = height;\n      childParams.scaledHeight = scaledHeight;\n    }\n    if (!disableWidth) {\n      if (width === 0) {\n        bailoutOnChildren = true;\n      }\n      outerStyle.width = 0;\n      childParams.width = width;\n      childParams.scaledWidth = scaledWidth;\n    }\n    if (doNotBailOutOnEmptyChildren) {\n      bailoutOnChildren = false;\n    }\n    return createElement(tagName, {\n      ref: this._setRef,\n      style: {\n        ...outerStyle,\n        ...style\n      },\n      ...rest\n    }, !bailoutOnChildren && children(childParams));\n  }\n}\n\nfunction isHeightAndWidthProps(props) {\n  return props && props.disableHeight !== true && props.disableWidth !== true;\n}\nfunction isHeightOnlyProps(props) {\n  return props && props.disableHeight !== true && props.disableWidth === true;\n}\nfunction isWidthOnlyProps(props) {\n  return props && props.disableHeight === true && props.disableWidth !== true;\n}\n\nexport { AutoSizer as default, isHeightAndWidthProps, isHeightOnlyProps, isWidthOnlyProps };\n","import { styled } from '@mui/material/styles';\nimport React, { useContext } from 'react';\nimport InstanceContext from '../../../contexts/InstanceContext';\n\nconst StyledDiv = styled('div')(() => ({\n  display: 'flex',\n  width: '100%',\n  height: '100%',\n  alignItems: 'center',\n  justifyContent: 'center',\n}));\n\nexport default function ListBoxError({ text }) {\n  const { translator: translatorDynamic } = useContext(InstanceContext);\n  return <StyledDiv>{translatorDynamic.get(text)}</StyledDiv>;\n}\n","import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { ButtonBase, CircularProgress, Grid, Typography } from '@mui/material';\nimport Lock from '@nebula.js/ui/icons/lock';\nimport { ICON_PADDING } from '../../constants';\n\nexport const iconStyle = {\n  fontSize: '12px',\n};\n\nexport const UnlockButton = styled(ButtonBase)(({ theme, isLoading }) => ({\n  position: 'absolute',\n  top: 0,\n  left: 0,\n  height: 48,\n  zIndex: 2, // so it goes on top of action buttons\n  background: theme.palette.custom.disabledBackground,\n  opacity: 1,\n  color: theme.palette.custom.disabledContrastText,\n  width: '100%',\n  display: 'flex',\n  justifyContent: isLoading ? 'center' : 'flex-start',\n  paddingLeft: 16,\n  paddingRight: 16,\n  borderRadius: 0,\n  '& *, & p': {\n    color: theme.palette.custom.disabledContrastText,\n  },\n  '& i': {\n    padding: `${ICON_PADDING}px`,\n  },\n}));\n\nexport const StyledGridHeader = styled(Grid, { shouldForwardProp: (p) => !['styles', 'isRtl'].includes(p) })(\n  ({ styles, isRtl }) => ({\n    flexDirection: isRtl ? 'row-reverse' : 'row',\n    wrap: 'nowrap',\n    minHeight: 32,\n    alignContent: 'center',\n    ...styles.header,\n    '& *': {\n      color: styles.header.color,\n    },\n  })\n);\n\nexport const HeaderTitle = styled(Typography)(({ styles }) => ({\n  ...styles.header,\n  display: 'block', // needed for text-overflow to work\n  alignItems: 'center',\n  paddingRight: '1px', // make place for italic font style\n}));\n\nexport const UnlockCoverButton = React.forwardRef(({ translator, toggleLock, keyboard, isLoading }, ref) => {\n  const fontSize = '14px';\n  const unLockText = translator.get('SelectionToolbar.ClickToUnlock');\n  const component = (\n    <UnlockButton\n      ref={ref}\n      title={unLockText}\n      tabIndex={keyboard.enabled ? 0 : -1}\n      onClick={toggleLock}\n      data-testid=\"listbox-unlock-button\"\n      id=\"listbox-unlock-button\"\n      isLoading={isLoading}\n    >\n      {isLoading ? (\n        <CircularProgress size={16} variant=\"indeterminate\" color=\"primary\" />\n      ) : (\n        <Lock disableRipple style={iconStyle} />\n      )}\n      {!isLoading && <Typography fontSize={fontSize}>{unLockText}</Typography>}\n    </UnlockButton>\n  );\n  return component;\n});\n","import SvgIcon from './SvgIcon';\n\nconst cyclic = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(cyclic(props));\nexport { cyclic };\n","import SvgIcon from './SvgIcon';\n\nconst drillDown = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(drillDown(props));\nexport { drillDown };\n","import SvgIcon from './SvgIcon';\n\nconst reload = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(reload(props));\nexport { reload };\n","import React from 'react';\nimport { Button, styled } from '@mui/material';\nimport { ICON_PADDING } from '../../constants';\n\nconst StyledButton = styled(Button)(() => ({\n  borderRadius: 4,\n  width: 24,\n  height: 24,\n  minWidth: 22,\n  padding: 0,\n}));\n\nfunction DimensionIcon({ iconData, translator, iconStyle, disabled, keyboard }) {\n  if (!iconData) return undefined;\n\n  const { icon, tooltip, onClick = undefined, onKeyDown = undefined } = iconData;\n  const Icon = icon;\n  const title = translator.get(tooltip);\n  const isButton = onClick;\n\n  return isButton ? (\n    <StyledButton\n      variant=\"outlined\"\n      onClick={onClick}\n      tabIndex={keyboard.innerTabStops ? 0 : -1}\n      title={title}\n      size=\"large\"\n      disableRipple\n      disabled={disabled}\n      onKeyDown={onKeyDown}\n      className=\"listbox-cyclic-button\"\n      data-testid=\"listbox-cyclic-button\"\n    >\n      <Icon style={iconStyle} />\n    </StyledButton>\n  ) : (\n    <Icon title={title} size=\"large\" style={{ ...iconStyle, padding: `${ICON_PADDING}px` }} />\n  );\n}\nexport default DimensionIcon;\n","/* eslint-disable react/jsx-props-no-spreading */\nimport React, { useEffect, useRef, useState } from 'react';\nimport { Grid, IconButton } from '@mui/material';\nimport Lock from '@nebula.js/ui/icons/lock';\nimport { unlock } from '@nebula.js/ui/icons/unlock';\nimport SearchIcon from '@nebula.js/ui/icons/search';\nimport ActionsToolbar from '../../../ActionsToolbar';\nimport showToolbarDetached from '../../interactions/listbox-show-toolbar-detached';\nimport getListboxActionProps from '../../interactions/listbox-action-props';\nimport createListboxSelectionToolbar from '../../interactions/listbox-selection-toolbar';\nimport { BUTTON_ICON_WIDTH, CELL_PADDING_LEFT, HEADER_PADDING_RIGHT, ICON_PADDING } from '../../constants';\nimport hasSelections from '../../assets/has-selections';\nimport { HeaderTitle, StyledGridHeader, UnlockCoverButton, iconStyle } from './ListBoxHeaderComponents';\nimport iconUtils from './icon-utils';\nimport DimensionIcon from './DimensionIcon';\n\n// ms that needs to pass before the lock button can be toggled again\nconst lockTimeFrameMs = 500;\nlet lastTime = 0;\n\nfunction getToggleLock({\n  isLocked,\n  setLocked,\n  settingLockedState,\n  model,\n  setSettingLockedState,\n  unlockButtonRef,\n  lockButtonRef,\n}) {\n  return () => {\n    const now = new Date();\n    const curTime = now - lastTime;\n    if (curTime < lockTimeFrameMs) {\n      return Promise.resolve();\n    }\n    if (settingLockedState) {\n      return () => {};\n    }\n    setSettingLockedState(true);\n    lastTime = now;\n    const func = isLocked ? model.unlock : model.lock;\n    setLocked(!isLocked);\n    return func\n      .call(model, '/qListObjectDef')\n      .catch(() => {\n        setLocked(isLocked); // revert to the layout value\n      })\n      .finally(() => {\n        setTimeout(() => {\n          setSettingLockedState(false);\n          if (!isLocked) {\n            unlockButtonRef.current?.focus();\n          } else {\n            setTimeout(() => {\n              lockButtonRef.current?.focus();\n            }, 0);\n          }\n        }, 0);\n      });\n  };\n}\n\nexport default function ListBoxHeader({\n  layout,\n  translator,\n  styles,\n  isRtl,\n  showLock,\n  showSearchIcon,\n  constraints,\n  onShowSearch,\n  classes,\n  containerRect,\n  isPopover,\n  showToolbar,\n  showDetachedToolbarOnly,\n  containerRef,\n  model,\n  selectionState,\n  isDirectQuery,\n  selections,\n  keyboard,\n  autoConfirm,\n  app,\n  disablePortal,\n}) {\n  const [isToolbarDetached, setIsToolbarDetached] = useState(showDetachedToolbarOnly);\n  const [isLocked, setLocked] = useState(layout?.qListObject?.qDimensionInfo?.qLocked);\n  const [settingLockedState, setSettingLockedState] = useState(false);\n\n  useEffect(() => {\n    setLocked(layout?.qListObject?.qDimensionInfo?.qLocked);\n  }, [layout?.qListObject?.qDimensionInfo?.qLocked]);\n\n  const titleRef = useRef(null);\n  const unlockButtonRef = useRef(null);\n  const lockButtonRef = useRef(null);\n\n  const iconData = iconUtils.createDimensionIconData({\n    dimInfo: layout?.qListObject?.qDimensionInfo,\n    app,\n    selections,\n    isPopover,\n    active: !constraints?.active,\n    keyboard,\n  });\n  const showUnlock = showLock && isLocked;\n  const showLockIcon = !showLock && isLocked; // shows instead of the cover button when field/dim is locked.\n  const showLeftIcon = showSearchIcon || showLockIcon || iconData; // the left-most icon outside of the actions/selections toolbar.\n\n  const paddingLeft = CELL_PADDING_LEFT - (showLeftIcon ? ICON_PADDING : 0);\n  const paddingRight = isRtl ? CELL_PADDING_LEFT - (showLeftIcon ? ICON_PADDING : 0) : HEADER_PADDING_RIGHT;\n\n  // Calculate explicit width for icons container. Search and lock cannot exist combined.\n  const iconsWidth =\n    (showSearchIcon ? BUTTON_ICON_WIDTH : 0) +\n    (showLockIcon ? BUTTON_ICON_WIDTH : 0) +\n    (iconData ? BUTTON_ICON_WIDTH : 0);\n\n  const toggleLock = getToggleLock({\n    isLocked,\n    setLocked,\n    settingLockedState,\n    setSettingLockedState,\n    model,\n    unlockButtonRef,\n    lockButtonRef,\n  });\n  const listboxSelectionToolbarItems = createListboxSelectionToolbar({\n    layout,\n    model,\n    translator,\n    selectionState,\n    isDirectQuery,\n    selections,\n  });\n\n  const extraItems =\n    isLocked || !showLock\n      ? undefined\n      : [\n          {\n            key: 'lock',\n            type: undefined,\n            label: translator.get('SelectionToolbar.ClickToLock'),\n            getSvgIconShape: unlock,\n            enabled: () => !settingLockedState && !selectionState.selectDisabled() && hasSelections(layout),\n            action: toggleLock,\n            ref: lockButtonRef,\n          },\n        ];\n\n  const searchIconComp = constraints?.active ? (\n    <SearchIcon\n      title={translator.get('Listbox.Search')}\n      size=\"large\"\n      style={{ ...iconStyle, padding: `${ICON_PADDING}px` }}\n    />\n  ) : (\n    <IconButton\n      onClick={onShowSearch}\n      tabIndex={-1}\n      title={translator.get('Listbox.Search')}\n      size=\"large\"\n      disableRipple\n      data-testid=\"search-toggle-btn\"\n    >\n      <SearchIcon style={iconStyle} />\n    </IconButton>\n  );\n\n  useEffect(() => {\n    if (!titleRef.current || !containerRect) {\n      return;\n    }\n\n    const mustShowDetached = showToolbarDetached({\n      containerRect,\n      titleRef,\n      iconsWidth,\n      paddingLeft,\n      paddingRight,\n    });\n    const isDetached = showDetachedToolbarOnly || mustShowDetached;\n    setIsToolbarDetached(isDetached);\n  }, [\n    iconsWidth,\n    paddingLeft,\n    paddingRight,\n    titleRef.current,\n    showDetachedToolbarOnly,\n    Object.entries(containerRect || {})\n      .sort()\n      .join(','),\n  ]);\n\n  const toolbarProps = getListboxActionProps({\n    isDetached: isPopover ? false : isToolbarDetached,\n    showToolbar,\n    containerRef,\n    isPopover,\n    isLocked,\n    extraItems,\n    listboxSelectionToolbarItems,\n    selections,\n    keyboard,\n    autoConfirm,\n    disablePortal,\n  });\n\n  const actionsToolbar = <ActionsToolbar isRtl={isRtl} layout={layout} {...toolbarProps} />;\n\n  if (showDetachedToolbarOnly) {\n    return actionsToolbar;\n  }\n\n  // Always show a lock symbol when locked and showLock is false\n  const lockedIconComp = showLockIcon ? (\n    <Lock size=\"large\" style={{ ...iconStyle, padding: `${ICON_PADDING}px` }} />\n  ) : undefined;\n\n  return (\n    <StyledGridHeader\n      item\n      container\n      styles={styles}\n      isRtl={isRtl}\n      marginY={1}\n      paddingLeft={`${paddingLeft}px`}\n      paddingRight={`${paddingRight}px`}\n      className=\"header-container\"\n    >\n      {showUnlock && (\n        <UnlockCoverButton\n          isLoading={settingLockedState}\n          translator={translator}\n          toggleLock={toggleLock}\n          keyboard={keyboard}\n          ref={unlockButtonRef}\n        />\n      )}\n      {showLeftIcon && (\n        <Grid container alignItems=\"center\" width={iconsWidth} className=\"header-action-container\">\n          {lockedIconComp || (showSearchIcon && searchIconComp)}\n          <DimensionIcon\n            iconData={iconData}\n            iconStyle={iconStyle}\n            disabled={selections.isActive() && isPopover}\n            translator={translator}\n            keyboard={keyboard}\n          />\n        </Grid>\n      )}\n      <Grid\n        size=\"grow\"\n        sx={{ minWidth: 0 }} // needed to text-overflow see: https://css-tricks.com/flexbox-truncated-text/\n        justifyContent={isRtl ? 'flex-end' : 'flex-start'}\n        className={classes.listBoxHeader}\n      >\n        <HeaderTitle variant=\"h6\" noWrap ref={titleRef} title={layout.title} styles={styles}>\n          {layout.title}\n        </HeaderTitle>\n      </Grid>\n      <Grid display=\"flex\">{actionsToolbar}</Grid>\n    </StyledGridHeader>\n  );\n}\n","import CyclicIcon from '@nebula.js/ui/icons/cyclic';\nimport DrillDownIcon from '@nebula.js/ui/icons/drill-down';\nimport ReloadIcon from '@nebula.js/ui/icons/reload';\nimport KEYS from '../../../../keys';\nimport { blur, focusRow, focusSearch } from '../../interactions/keyboard-navigation/keyboard-nav-methods';\n\nconst dimensionTypes = {\n  single: 'N',\n  drillDown: 'H',\n  cyclic: 'C',\n};\n\nconst createDimensionIconData = ({ dimInfo, app, selections, isPopover, active, keyboard }) => {\n  switch (dimInfo.qGrouping) {\n    case dimensionTypes.drillDown:\n      return {\n        icon: DrillDownIcon,\n        tooltip: 'Listbox.DrillDown',\n        onClick: undefined,\n      };\n    case dimensionTypes.cyclic: {\n      const clickable = app && active;\n      const stepToNextField = () => {\n        if (!isPopover) {\n          selections.confirm();\n        }\n        app\n          .getDimension(dimInfo.qLibraryId)\n          .then((dimensionModel) => {\n            if (!dimensionModel.stepCycle) {\n              // eslint-disable-next-line no-console\n              console.log(\"engine api spec version doesn't have support for function stepCycle\");\n              return;\n            }\n            dimensionModel.stepCycle(1);\n          })\n          .catch(() => null);\n      };\n      return {\n        icon: clickable ? ReloadIcon : CyclicIcon,\n        tooltip: 'Listbox.Cyclic',\n        onClick: clickable ? stepToNextField : undefined,\n        onKeyDown: clickable\n          ? (event) => {\n              const container = event.currentTarget.closest('.listbox-container');\n              switch (event.keyCode) {\n                case KEYS.SPACE:\n                case KEYS.ENTER:\n                  stepToNextField();\n                  break;\n                case KEYS.TAB:\n                  {\n                    const useDefaultBrowserSupport = !keyboard.enabled;\n                    if (useDefaultBrowserSupport) {\n                      return;\n                    }\n                    let focused;\n                    if (event.shiftKey) {\n                      focused = keyboard.focusSelection();\n                    } else {\n                      focused = focusSearch(container) || focusRow(container);\n                    }\n                    if (!focused) {\n                      blur(event, keyboard);\n                    }\n                  }\n                  break;\n                default:\n                  return;\n              }\n              event.preventDefault();\n              event.stopPropagation();\n            }\n          : undefined,\n      };\n    }\n    default:\n      return undefined;\n  }\n};\n\nexport default { createDimensionIconData };\n","export default function showToolbarDetached({ containerRect, titleRef, iconsWidth, paddingLeft, paddingRight }) {\n  const containerWidth = containerRect.width;\n  const preventTruncation = 2;\n  const padding = paddingLeft + paddingRight;\n  const contentWidth = (titleRef?.current?.clientWidth ?? 0) + iconsWidth + padding + preventTruncation;\n  const actionToolbarWidth = 128;\n  const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;\n  const isTruncated = titleRef?.current?.scrollWidth > titleRef?.current?.offsetWidth;\n  const isDetached = !!(notSufficientSpace || isTruncated);\n  return isDetached;\n}\n","export default function getListboxActionProps({\n  isDetached,\n  showToolbar,\n  containerRef,\n  isLocked,\n  listboxSelectionToolbarItems,\n  extraItems,\n  selections,\n  keyboard,\n  autoConfirm,\n  disablePortal,\n}) {\n  return {\n    autoConfirm,\n    isDetached,\n    show: showToolbar && !isDetached,\n    popover: {\n      show: showToolbar && isDetached,\n      anchorEl: containerRef.current,\n    },\n    extraItems,\n    more: {\n      enabled: !isLocked,\n      actions: listboxSelectionToolbarItems,\n      popoverProps: {\n        elevation: 0,\n      },\n      popoverPaperStyle: {\n        boxShadow: '0 12px 8px -8px rgba(0, 0, 0, 0.2)',\n        minWidth: '250px',\n      },\n      disablePortal,\n    },\n    selections: {\n      show: showToolbar,\n      api: selections,\n      onConfirm: () => {\n        keyboard?.focus();\n      },\n      onCancel: () => {\n        keyboard?.focus();\n      },\n    },\n  };\n}\n","import { styled } from '@mui/material';\nimport React, { useCallback, useEffect, useState } from 'react';\n\nconst StyledBorder = styled('div')(({ theme, width, height }) => ({\n  position: 'absolute',\n  pointerEvents: 'none',\n  zIndex: 1,\n  width,\n  height,\n  boxShadow: `inset 0 0 0 2px ${theme.palette.custom.focusBorder}`,\n}));\n\nexport default function ListBoxFocusBorder({ width, height, disabled, childNode, containerNode }) {\n  const [isOnlyContainerFocused, setIsOnlyContainerFocused] = useState(false);\n\n  const checkFocus = useCallback(() => {\n    const containerFocused = containerNode && containerNode.contains(document.activeElement);\n    const childFocused = childNode && childNode.contains(document.activeElement);\n    setIsOnlyContainerFocused(containerFocused && !childFocused);\n  }, [containerNode, childNode]);\n\n  useEffect(() => {\n    if (!containerNode) {\n      return undefined;\n    }\n    containerNode.addEventListener('focusin', checkFocus);\n    containerNode.addEventListener('focusout', checkFocus);\n\n    checkFocus();\n\n    return () => {\n      containerNode.removeEventListener('focusin', checkFocus);\n      containerNode.removeEventListener('focusout', checkFocus);\n    };\n  }, [checkFocus, containerNode]);\n\n  const show = !disabled && isOnlyContainerFocused;\n  if (!show) {\n    return null;\n  }\n\n  return <StyledBorder aria-hidden=\"true\" width={width} height={height} />;\n}\n","import React, { useContext, useCallback, useRef, useEffect, useState, useMemo } from 'react';\nimport { styled } from '@mui/material/styles';\nimport AutoSizer from 'react-virtualized-auto-sizer';\nimport { Grid } from '@mui/material';\nimport { useTheme } from '@nebula.js/ui/theme';\nimport useLayout from '../../hooks/useLayout';\nimport ListBox from './ListBox';\nimport InstanceContext from '../../contexts/InstanceContext';\nimport ListBoxSearch from './components/ListBoxSearch';\nimport getListboxContainerKeyboardNavigation from './interactions/keyboard-navigation/keyboard-nav-container';\nimport useListboxStyling from './assets/styling';\nimport useAppSelections from '../../hooks/useAppSelections';\nimport createSelectionState from './hooks/selections/selectionState';\nimport { DENSE_ROW_HEIGHT, SCROLL_BAR_WIDTH } from './constants';\nimport useTempKeyboard from './components/useTempKeyboard';\nimport ListBoxError from './components/ListBoxError';\nimport useRect from '../../hooks/useRect';\nimport isDirectQueryEnabled from './utils/is-direct-query';\nimport getContainerPadding from './assets/list-sizes/container-padding';\nimport ListBoxHeader from './components/ListBoxHeader';\nimport ListBoxFocusBorder from './ListBoxFocusBorder';\n\nconst PREFIX = 'ListBoxInline';\nconst classes = {\n  listBoxHeader: `${PREFIX}-listBoxHeader`,\n  screenReaderOnly: `${PREFIX}-screenReaderOnly`,\n  listboxWrapper: `${PREFIX}-listboxWrapper`,\n};\n\nconst StyledGrid = styled(Grid, {\n  shouldForwardProp: (p) => !['containerPadding', 'styles'].includes(p),\n})(({ containerPadding, styles }) => ({\n  ...styles.background, // sets background color and image of listbox\n  [`& .${classes.listBoxHeader}`]: {\n    alignSelf: 'center',\n    display: 'flex',\n  },\n  [`& .${classes.screenReaderOnly}`]: {\n    position: 'absolute',\n    height: 0,\n    width: 0,\n    overflow: 'hidden',\n  },\n  [`& .${classes.listboxWrapper}`]: {\n    padding: containerPadding,\n  },\n  '&:focus-visible': {\n    outline: 'none',\n  },\n}));\n\nconst isModal = ({ app, appSelections }) => app.isInModalSelection?.() ?? appSelections.isInModal();\n\nfunction ListBoxInline({ options, layout }) {\n  const {\n    app,\n    direction,\n    frequencyMode,\n    checkboxes: checkboxesOption,\n    search = true,\n    focusSearch = false,\n    rangeSelect = true,\n    model,\n    selections,\n    update = undefined,\n    fetchStart = undefined,\n    postProcessPages = undefined,\n    calculatePagesHeight,\n    showGray = true,\n    scrollState = undefined,\n    renderedCallback,\n    toolbar = true,\n    isPopover = false,\n    showLock = false,\n    components,\n    selectDisabled = () => false,\n    disablePortal = true,\n  } = options;\n\n  const theme = useTheme();\n\n  const { translator, keyboardNavigation, themeApi, queryParams, constraints, hostConfig } =\n    useContext(InstanceContext);\n\n  const { checkboxes = checkboxesOption } = layout || {};\n  const styles = useListboxStyling({ app, themeApi, theme, queryParams, components, checkboxes, hostConfig });\n\n  const isDirectQuery = isDirectQueryEnabled({ appLayout: app?.layout });\n\n  const containerRef = useRef();\n  const searchInputRef = useRef();\n  const [containerRectRef, containerRect, containerNode] = useRect();\n  const [showToolbar, setShowToolbar] = useState(false);\n  const [showSearch, setShowSearch] = useState(false);\n  const hovering = useRef(false);\n  const [keyScroll, setKeyScroll] = useState({ down: 0, up: 0, scrollPosition: '' });\n  const updateKeyScroll = (newState) => setKeyScroll((current) => ({ ...current, ...newState }));\n  const [currentScrollIndex, setCurrentScrollIndex] = useState({ start: 0, stop: 0 });\n  const [appSelections] = useAppSelections(app);\n  const [selectionState] = useState(() => createSelectionState({ selectDisabled }));\n  const keyboard = useTempKeyboard({ containerRef, enabled: keyboardNavigation });\n  const isModalMode = useCallback(() => isModal({ app, appSelections }), [app, appSelections]);\n  const isInvalid = layout?.qListObject.qDimensionInfo.qError;\n  const errorText = isInvalid && constraints.active ? 'Visualization.Invalid.Dimension' : 'Visualization.Incomplete';\n  const [, setHasFocus] = useState(false); // Force render on focus change to show/hide ListBoxFocusBorder\n  const [listboxChildNode, setListboxChildNode] = useState(null);\n  const listboxChildRef = useCallback((node) => {\n    setListboxChildNode(node);\n  }, []);\n\n  const { handleKeyDown, handleOnMouseEnter, handleOnMouseLeave, globalKeyDown } = useMemo(\n    () =>\n      getListboxContainerKeyboardNavigation({\n        keyboard,\n        hovering,\n        updateKeyScroll,\n        containerRef,\n        currentScrollIndex,\n        app,\n        appSelections,\n        constraints,\n        isModal: isModalMode,\n        selections,\n      }),\n    [\n      keyboard,\n      hovering,\n      updateKeyScroll,\n      containerRef,\n      currentScrollIndex,\n      app,\n      appSelections,\n      constraints,\n      isModalMode,\n    ]\n  );\n\n  useEffect(() => {\n    document.addEventListener('keydown', globalKeyDown);\n    return () => {\n      document.removeEventListener('keydown', globalKeyDown);\n    };\n  }, [globalKeyDown]);\n\n  useEffect(() => {\n    if (search === true) {\n      setShowSearch(true);\n    }\n    const show = () => {\n      setShowToolbar(true);\n    };\n    const hide = () => {\n      setShowToolbar(false);\n      if (search === 'toggle') {\n        setShowSearch(false);\n      }\n    };\n    if (isPopover) {\n      // When isPopover, toolbar == false will be ignored.\n      if (!selections.isActive()) {\n        selections.on('activated', show);\n        selections.on('deactivated', hide);\n      }\n      setShowToolbar(isPopover);\n    }\n    if (toolbar && selections) {\n      if (!selections.isModal()) {\n        selections.on('activated', show);\n        selections.on('deactivated', hide);\n      }\n      setShowToolbar(isPopover || selections.isActive());\n    }\n\n    return () => {\n      if (selections && selections.removeListener) {\n        selections.removeListener('activated', show);\n        selections.removeListener('deactivated', hide);\n      }\n    };\n  }, [toolbar, selections, isPopover]);\n\n  const { wildCardSearch, searchEnabled, autoConfirm = false, layoutOptions = {} } = layout ?? {};\n  const isLocked = layout?.qListObject?.qDimensionInfo?.qLocked;\n  const showSearchIcon = searchEnabled !== false && search === 'toggle' && !isLocked;\n\n  const canShowTitle = layout?.title?.length && layout?.showTitle !== false;\n  const showDetachedToolbarOnly = toolbar && !canShowTitle && !isPopover;\n  const showAttachedToolbar = (toolbar && canShowTitle) || isPopover;\n\n  const isRtl = direction === 'rtl';\n\n  if (!model || !layout || !translator || !styles) {\n    return null;\n  }\n\n  const showSearchToggle = search === 'toggle' && showSearch;\n  const searchVisible = search === true || (showSearchToggle && searchEnabled !== false);\n  const dense = layoutOptions.dense ?? false;\n\n  const handleShowSearch = () => {\n    const newValue = !showSearch;\n    setShowSearch(newValue);\n    if (newValue && containerRef.current?.scrollIntoView) {\n      containerRef.current.scrollIntoView({\n        block: 'nearest',\n        inline: 'nearest',\n        behavior: 'instant',\n      });\n    }\n  };\n\n  const onCtrlF = () => {\n    if (search === 'toggle') {\n      handleShowSearch();\n    } else {\n      searchInputRef.current.focus();\n    }\n  };\n\n  const shouldAutoFocus = searchVisible && (search === 'toggle' || focusSearch);\n\n  // Add a container padding for grid mode to harmonize with the grid item margins (should sum to 8px).\n  const isGridMode = layoutOptions?.dataLayout === 'grid';\n\n  const containerPadding = getContainerPadding({\n    isGridMode,\n    dense,\n    height: containerRef.current?.clientHeight,\n    layoutOrder: layoutOptions.layoutOrder,\n  });\n\n  if (isInvalid) {\n    renderedCallback?.();\n  }\n\n  const listBoxMinHeight = showAttachedToolbar ? DENSE_ROW_HEIGHT + SCROLL_BAR_WIDTH : 0;\n\n  const listBoxHeader = (\n    <ListBoxHeader\n      app={app}\n      showSearchIcon={showSearchIcon}\n      onShowSearch={handleShowSearch}\n      isPopover={isPopover}\n      showToolbar={showToolbar}\n      isDirectQuery={isDirectQuery}\n      autoConfirm={autoConfirm}\n      showDetachedToolbarOnly={showDetachedToolbarOnly}\n      layout={layout}\n      translator={translator}\n      styles={styles}\n      isRtl={isRtl}\n      showLock={showLock}\n      constraints={constraints}\n      classes={classes}\n      containerRect={containerRect}\n      containerRef={containerRef}\n      model={model}\n      selectionState={selectionState}\n      selections={selections}\n      keyboard={keyboard}\n      disablePortal={disablePortal}\n    />\n  );\n\n  return (\n    <>\n      {showDetachedToolbarOnly && listBoxHeader}\n      <StyledGrid\n        className=\"listbox-container\"\n        container\n        tabIndex={keyboard.enabled ? -1 : undefined}\n        direction=\"column\"\n        gap={0}\n        containerPadding={containerPadding}\n        styles={styles}\n        style={{ height: '100%', flexFlow: 'column nowrap' }}\n        onKeyDown={handleKeyDown}\n        onMouseEnter={handleOnMouseEnter}\n        onMouseLeave={handleOnMouseLeave}\n        ref={(el) => {\n          containerRef.current = el;\n          containerRectRef?.(el);\n        }}\n        aria-label={keyboard.active ? translator.get('Listbox.ScreenReaderInstructions') : ''}\n        onFocus={() => setHasFocus(true)}\n        onBlur={() => setHasFocus(false)}\n      >\n        <ListBoxFocusBorder\n          width={containerRect?.width}\n          height={containerRect?.height}\n          disabled={isModalMode() || isPopover}\n          childNode={listboxChildNode}\n          containerNode={containerNode}\n        />\n        {showAttachedToolbar && listBoxHeader}\n        <Grid\n          container\n          direction=\"column\"\n          height=\"100%\"\n          minHeight={listBoxMinHeight}\n          role=\"region\"\n          aria-label={translator.get('Listbox.ResultFilterLabel')}\n          ref={listboxChildRef}\n        >\n          <Grid>\n            <ListBoxSearch\n              ref={searchInputRef}\n              selections={selections}\n              selectionState={selectionState}\n              model={model}\n              dense={dense}\n              keyboard={keyboard}\n              visible={searchVisible}\n              search={search}\n              autoFocus={shouldAutoFocus}\n              beginSelectionOnFocus={!isPopover}\n              wildCardSearch={wildCardSearch}\n              searchEnabled={searchEnabled}\n              direction={direction}\n              hide={showSearchIcon && handleShowSearch}\n              styles={styles}\n            />\n          </Grid>\n          <Grid size=\"grow\" className={classes.listboxWrapper}>\n            {isInvalid ? (\n              <ListBoxError text={errorText} />\n            ) : (\n              <AutoSizer>\n                {({ height, width }) => (\n                  <ListBox\n                    model={model}\n                    app={app}\n                    constraints={constraints}\n                    layout={layout}\n                    selections={selections}\n                    selectionState={selectionState}\n                    direction={direction}\n                    frequencyMode={frequencyMode}\n                    rangeSelect={rangeSelect}\n                    checkboxes={checkboxes}\n                    height={height}\n                    width={width}\n                    update={update}\n                    fetchStart={fetchStart}\n                    postProcessPages={postProcessPages}\n                    calculatePagesHeight={calculatePagesHeight}\n                    keyboard={keyboard}\n                    showGray={showGray}\n                    scrollState={scrollState}\n                    keyScroll={{\n                      state: keyScroll,\n                      reset: () => setKeyScroll({ up: 0, down: 0, scrollPosition: '' }),\n                    }}\n                    currentScrollIndex={{\n                      state: currentScrollIndex,\n                      set: setCurrentScrollIndex,\n                    }}\n                    renderedCallback={renderedCallback}\n                    onCtrlF={onCtrlF}\n                    isModal={isModalMode}\n                    styles={styles}\n                  />\n                )}\n              </AutoSizer>\n            )}\n          </Grid>\n        </Grid>\n      </StyledGrid>\n    </>\n  );\n}\n\nconst ListBoxInlineMemoed = React.memo(ListBoxInline);\n\nfunction IsolateUseLayoutWrapper({ options = {} }) {\n  const { model } = options;\n  const [layout] = useLayout(model);\n  return <ListBoxInlineMemoed options={options} layout={layout} />;\n}\n\nexport default IsolateUseLayoutWrapper;\n","export default function isDirectQueryEnabled({ appLayout }) {\n  const isDQ = !!appLayout?.qIsDirectQueryMode;\n  return isDQ;\n}\n","/* eslint-disable no-param-reassign */\nimport KEYS from '../../../../keys';\nimport { blur, focusCyclicButton, focusRow, focusSearch } from './keyboard-nav-methods';\n\nexport default function getListboxContainerKeyboardNavigation({\n  keyboard,\n  hovering,\n  updateKeyScroll,\n  currentScrollIndex,\n  isModal,\n  constraints,\n  selections,\n}) {\n  const handleKeyDown = (event) => {\n    const { keyCode, shiftKey = false } = event.nativeEvent;\n\n    const prevent = () => {\n      event.stopPropagation();\n      event.preventDefault();\n    };\n\n    if (!keyboard.enabled) {\n      // Other keys should not be handled unless keyboard is enabled.\n      return;\n    }\n\n    const container = event.currentTarget.closest('.listbox-container');\n    const inSelection = isModal();\n    switch (keyCode) {\n      case KEYS.TAB:\n        //  Only react to tab after enter/space have been pressed or the target element is inside listbox (mouse case) or target is selection toolbar\n        if (document.activeElement === container || (!inSelection && !container.contains(document.activeElement)))\n          return;\n        if (shiftKey) {\n          const focused = focusRow(container) || focusSearch(container);\n          if (!focused) {\n            blur(event, keyboard);\n          }\n        } else {\n          const focused = focusCyclicButton(container) || focusSearch(container) || focusRow(container);\n          if (!focused) {\n            break;\n          }\n        }\n        prevent();\n        break;\n      case KEYS.ENTER:\n      case KEYS.SPACE:\n        if (!event.target.classList.contains('listbox-container')) {\n          break; // don't mess with keydown handlers within the listbox (e.g. row seletion)\n        }\n        keyboard.focus();\n        prevent();\n        break;\n      case KEYS.ESCAPE:\n        blur(event, keyboard);\n        if (selections.isActive()) {\n          selections.cancel();\n        }\n        break;\n      default:\n        break;\n    }\n  };\n\n  const focusOnHoverDisabled = () => {\n    const selectNotAllowed = constraints?.select || constraints?.active;\n    const appInModal = isModal();\n    return selectNotAllowed || appInModal;\n  };\n\n  const globalKeyDown = (event) => {\n    if (!hovering.current || focusOnHoverDisabled()) {\n      return;\n    }\n    const { keyCode, ctrlKey = false, shiftKey = false } = event;\n\n    switch (keyCode) {\n      case KEYS.ARROW_UP:\n        updateKeyScroll({ up: 1 });\n        break;\n      case KEYS.ARROW_DOWN:\n        updateKeyScroll({ down: 1 });\n        break;\n      case KEYS.PAGE_UP:\n        updateKeyScroll({ up: currentScrollIndex.stop - currentScrollIndex.start });\n        break;\n      case KEYS.PAGE_DOWN:\n        updateKeyScroll({ down: currentScrollIndex.stop - currentScrollIndex.start });\n        break;\n      case KEYS.HOME:\n        updateKeyScroll({ scrollPosition: ctrlKey && shiftKey ? 'overflowStart' : 'start' });\n        break;\n      case KEYS.END:\n        updateKeyScroll({ scrollPosition: ctrlKey && shiftKey ? 'overflowEnd' : 'end' });\n        break;\n      default:\n        return;\n    }\n    event.preventDefault();\n  };\n\n  const handleOnMouseEnter = () => {\n    hovering.current = true;\n  };\n\n  const handleOnMouseLeave = () => {\n    if (hovering.current) {\n      hovering.current = false;\n    }\n  };\n\n  return { handleKeyDown, handleOnMouseEnter, handleOnMouseLeave, globalKeyDown };\n}\n","import getItemHeight from './item-height';\n\nexport default function getContainerPadding({ isGridMode, dense, height, layoutOrder }) {\n  let containerPadding;\n  if (isGridMode) {\n    const itemHeight = getItemHeight({ isGridMode, dense });\n    let paddingY;\n    if (itemHeight > height) {\n      paddingY = '0px';\n    } else {\n      paddingY = '2px';\n    }\n    containerPadding = layoutOrder === 'row' ? `${paddingY} 4px` : `${paddingY} 6px ${paddingY} 4px`;\n  } else {\n    containerPadding = undefined;\n  }\n  return containerPadding;\n}\n","/**\n * see: https://qlik.dev/apis/json-rpc/qix/schemas#%23%2Fdefinitions%2Fschemas%2Fentries%2FValueExpression\n * @name ValueExpression\n * @type object\n * @property {string} qValueExpression.qExpr\n */\n\n/**\n * Extends `ListObjectDef`, see Engine API: `ListObjectDef`.\n * @interface ListObjectDef\n * @extends qix.ListObjectDef\n * @property {boolean} [frequencyEnabled=false] Show frequency count. also requires qListObjectDef.qFrequencyMode to be set\n */\n\n/**\n * @name ListboxProperties\n * @type object\n */\n\n/**\n * @lends ListboxProperties\n */\nconst listdef = {\n  qInfo: {\n    qType: 'njsListbox',\n  },\n  /**\n   * @type {ListObjectDef}\n   */\n  qListObjectDef: {\n    qStateName: '',\n    qShowAlternatives: true,\n    frequencyEnabled: false,\n    qFrequencyMode: 'N',\n    qInitialDataFetch: [\n      {\n        qTop: 0,\n        qLeft: 0,\n        qWidth: 0,\n        qHeight: 0,\n      },\n    ],\n    qDef: {\n      qSortCriterias: [\n        {\n          qSortByState: 1,\n          qSortByAscii: 1,\n          qSortByNumeric: 1,\n          qSortByLoadOrder: 1,\n        },\n      ],\n    },\n  },\n  /**\n   * Show histogram bar.\n   * also requires (qListObjectDef.qFrequencyMode 'V' and frequencyMax) or qListObjectDef.qFrequencyMode 'P'\n   * @type {boolean=}\n   * @default\n   */\n  histogram: false,\n  /**\n   * frequencyMax calculation\n   * needed for histogram when not using qListObjectDef.qFrequencyMode: 'P'\n   * use an expression in the form `Max(AGGR(Count([field]), [field]))` (when needed)\n   * or 'fetch' that triggers an extra engine call but needed for library dimension that could change field when using the object\n   * @type {('fetch' | ValueExpression)=}\n   */\n  frequencyMax: undefined,\n  /**\n   * Show values as checkboxes instead of as fields.\n   * @type {boolean=}\n   * @default\n   */\n  checkboxes: false,\n  /**\n   * Enables search.\n   * @type {boolean=}\n   * @default\n   */\n  searchEnabled: true,\n  /**\n   * Show title.\n   * @type {boolean=}\n   * @default\n   */\n  showTitle: true,\n  /**\n   * Pre-fill search input field with wildcard characters.\n   * @type {boolean=}\n   * @default\n   */\n  wildCardSearch: false,\n  /**\n   * Automatically confirm selections when clicking outside a listbox, without showing the selections toolbar.\n   * @type {boolean=}\n   * @default\n   */\n  autoConfirm: false,\n  /**\n   * Layout settings.\n   * @type {object=}\n   */\n  layoutOptions: {\n    /**\n     * Dense mode.\n     * @type {boolean=}\n     * @default\n     */\n    dense: false,\n    /**\n     * Layout mode.\n     * @type {('singleColumn' | 'grid')=}\n     * @default\n     */\n    dataLayout: 'singleColumn',\n    /**\n     * Layout order.\n     * Only used when dataLayout is 'grid'\n     * @type {('row' | 'column')=}\n     * @default\n     */\n    layoutOrder: 'row',\n    /**\n     * Max visible columns.\n     * Only used when dataLayout is 'grid'\n     * and layoutOrder is 'row'\n     * @type {object=}\n     */\n    maxVisibleColumns: {\n      /**\n       * Automatically fit as many columns as possible.\n       * Only used when dataLayout is 'grid'\n       * and layoutOrder is 'row'\n       * @type {boolean=}\n       * @default\n       */\n      auto: true,\n      /**\n       * Fixed number of max visible columns.\n       * Only used when dataLayout is 'grid'\n       * layoutOrder is 'row'\n       * and auto is false\n       * @type {number=}\n       * @default\n       */\n      maxColumns: 3,\n    },\n    /**\n     * Max visible rows.\n     * Only used when dataLayout is 'grid'\n     * and layoutOrder is 'column'\n     * @type {object=}\n     */\n    maxVisibleRows: {\n      /**\n       * Automatically fits as many rows as possible.\n       * Only used when dataLayout is 'grid'\n       * and layoutOrder is 'column'\n       * @type {boolean=}\n       * @default\n       */\n      auto: true,\n      /**\n       * Fixed number of max visible rows.\n       * Only used when dataLayout is 'grid'\n       * layoutOrder is 'column'\n       * and auto is false\n       * @type {number=}\n       * @default\n       */\n      maxRows: 3,\n    },\n  },\n  /**\n   * Listbox title\n   * @type {string=}\n   * @default\n   */\n  title: '',\n};\nexport default listdef;\n","export default function getFrequencyModeLetter(frequencyMode) {\n  let freqLetter;\n  switch (true) {\n    case ['none', 'N', 'NX_FREQUENCY_NONE'].includes(frequencyMode):\n      freqLetter = 'N';\n      break;\n    case ['value', 'V', 'NX_FREQUENCY_VALUE', 'default'].includes(frequencyMode):\n      freqLetter = 'V';\n      break;\n    case ['percent', 'P', 'NX_FREQUENCY_PERCENT'].includes(frequencyMode):\n      freqLetter = 'P';\n      break;\n    case ['relative', 'R', 'NX_FREQUENCY_RELATIVE'].includes(frequencyMode):\n      freqLetter = 'R';\n      break;\n    default:\n      freqLetter = 'N';\n      break;\n  }\n  return freqLetter;\n}\n","import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport ReactDOM from 'react-dom';\nimport ListBoxInline from './ListBoxInline';\nimport useObjectSelections from '../../hooks/useObjectSelections';\nimport useExistingModel from './hooks/useExistingModel';\nimport useOnTheFlyModel from './hooks/useOnTheFlyModel';\nimport identify from './assets/identify';\nimport uid from '../../object/uid';\nimport getFrequencyModeLetter from './utils/get-frequency-mode-letter';\n\n/**\n * @ignore\n * @typedef {object} DoNotUseOptions Options strictly recommended not to use as they might change anytime. Documenting them to keep track of them, but not exposing them to API docs.\n * @property {boolean=} [focusSearch=false] Initialize the Listbox with the search input focused. Only applicable when\n *    search is true, since toggling will always focus the search input on show.\n * @property {boolean=} [options.showGray=true] Render fields or checkboxes in shades of gray instead of white when their state is excluded or alternative.\n * @property {boolean=} [options.calculatePagesHeight=false] Override each page's qHeight with its actual row count.\n * @property {object} [options.sessionModel] Use a custom sessionModel.\n * @property {object} [options.selectionsApi] Use a custom selectionsApi to customize how values are selected.\n * @property {function():boolean} [options.selectDisabled=] Define a function which tells when selections are disabled (true) or enabled (false). By default, always returns false.\n * @property {function():object[]} [options.postProcessPages] A function for client-side post-processing of returned pages.\n * @property {PromiseFunction} [options.fetchStart] A function called when the Listbox starts fetching data. Receives the fetch request promise as an argument.\n * @property {ReceiverFunction} [options.update] A function which receives an update function which upon call will trigger a data fetch.\n * @property {{setScrollPos:function(number):void, initScrollPos:number}} [options.scrollState=] Object including a setScrollPos function that sets current scroll position index. A initial scroll position index.\n * @property {function(number):void} [options.setCount=] A function that gets called with the length of the data in the Listbox.\n */\n\n/**\n * @ignore\n * @param {object} usersOptions Options sent in to fieldInstance.mount.\n * @param {DoNotUseOptions} __DO_NOT_USE__\n * @returns {object} Squashed options with defaults given for non-exposed options.\n */\nexport const getOptions = (usersOptions = {}) => {\n  const { __DO_NOT_USE__ = {}, ...exposedOptions } = usersOptions;\n\n  const DO_NOT_USE_DEFAULTS = {\n    update: undefined,\n    fetchStart: undefined,\n    showGray: true,\n    focusSearch: false,\n    sessionModel: undefined,\n    selectionsApi: undefined,\n    selectDisabled: undefined,\n    postProcessPages: undefined,\n    calculatePagesHeight: false,\n  };\n  const squashedOptions = {\n    ...exposedOptions,\n    ...DO_NOT_USE_DEFAULTS,\n\n    ...__DO_NOT_USE__,\n  };\n  return squashedOptions;\n};\n\nconst ListBoxWrapper = forwardRef(\n  ({ app, fieldIdentifier, qId, stateName, element, initialOptions, renderedCallback }, ref) => {\n    const [options, setOptions] = useState(initialOptions);\n    const { isExistingObject, hasExternalSelectionsApi } = identify({ qId, options });\n\n    if (!isExistingObject) {\n      Object.assign(options, {\n        frequencyMode: getFrequencyModeLetter(options.frequencyMode), // stick to letter option hereafter\n      });\n    }\n\n    const [changeCount, setChangeCount] = useState(0);\n\n    useEffect(() => {\n      if (changeCount) {\n        throw new Error('Source or selection Api can not change after a listbox has been mounted');\n      }\n\n      setChangeCount(changeCount + 1);\n    }, [isExistingObject, hasExternalSelectionsApi]);\n\n    const model = isExistingObject\n      ? useExistingModel({ app, qId, options })\n      : useOnTheFlyModel({ app, fieldIdentifier, stateName, options });\n\n    const elementRef = useRef(element);\n\n    const selections = hasExternalSelectionsApi\n      ? options.selectionsApi\n      : useObjectSelections(\n          app,\n          model,\n          [elementRef, '.njs-action-toolbar-more', '.njs-action-toolbar-popover'],\n          options\n        )[0];\n\n    const opts = useMemo(\n      () => ({\n        ...options,\n        selections,\n        model,\n        app,\n        renderedCallback,\n      }),\n      [options, selections, model, app]\n    );\n\n    useImperativeHandle(ref, () => ({ setOptions: (newOptions) => setOptions(newOptions) }), []);\n\n    if (!selections || !model) {\n      return null;\n    }\n\n    return <ListBoxInline options={opts} />;\n  }\n);\n\nexport default function ListBoxPortal({\n  element,\n  app,\n  fieldIdentifier,\n  qId,\n  stateName = '$',\n  options = {},\n  renderedCallback,\n}) {\n  const listRef = React.createRef();\n  const portal = ReactDOM.createPortal(\n    <ListBoxWrapper\n      ref={listRef}\n      app={app}\n      element={element}\n      fieldIdentifier={fieldIdentifier}\n      qId={qId}\n      stateName={stateName}\n      initialOptions={options}\n      renderedCallback={renderedCallback}\n    />,\n    element,\n    uid()\n  );\n\n  return [portal, listRef];\n}\n","export default function identify({ qId, options }) {\n  return {\n    // External or internal (\"on the fly\") session model.\n    isExistingObject: !!(qId || options.sessionModel),\n\n    // External or internal selectionsApi.\n    hasExternalSelectionsApi: !!options.selectionsApi,\n  };\n}\n","import { useState, useEffect } from 'react';\nimport { useModelStore } from '../../../hooks/useModelStore';\n\nexport default function useExistingModel({ app, qId, options = {} }) {\n  const [model, setModel] = useState();\n  const [modelStore] = useModelStore();\n  const { sessionModel } = options;\n\n  const forbiddenOptions = ['dense', 'frequencyMode', 'checkboxes', 'histogram', 'title', 'stateName', 'listLayout'];\n  const usedOptions = Object.keys(options);\n  const usedForbiddenOptions = usedOptions.filter((usedOption) => forbiddenOptions.includes(usedOption));\n\n  if (usedForbiddenOptions.length) {\n    throw new Error(`Option \"${usedForbiddenOptions.join(', ')}\" is not applicable for existing objects.`);\n  }\n\n  useEffect(() => {\n    let isCleaned = false;\n    let cleanupFn = () => {};\n    async function fetchObject(modelId) {\n      const m = modelStore.get(modelId) || (await app.getObject(modelId));\n      return m;\n    }\n\n    async function fetchModel() {\n      const m = await Promise.resolve(sessionModel || fetchObject(qId));\n      if (isCleaned) {\n        return;\n      }\n      if (!modelStore.get(m.id)) {\n        modelStore.set(m.id, m);\n        const onClosed = () => {\n          modelStore.clear(m.id);\n        };\n        m.once('closed', onClosed);\n        cleanupFn = () => {\n          m.removeListener('closed', onClosed);\n        };\n      }\n      setModel(m);\n    }\n    fetchModel();\n    return () => {\n      isCleaned = true;\n      cleanupFn();\n    };\n  }, []);\n\n  return model;\n}\n","import { useState, useEffect, useRef } from 'react';\nimport extend from 'extend';\nimport useSessionModel from '../../../hooks/useSessionModel';\nimport uid from '../../../object/uid';\nimport { getFrequencyMaxExpression } from '../utils/frequencyMaxUtil';\nimport defaultListboxProperties from '../default-properties';\n\nexport default function useOnTheFlyModel({ app, fieldIdentifier, stateName, options = {} }) {\n  const [fieldDef, setFieldDef] = useState('');\n  const [isFetching, setIsFetching] = useState(true);\n  const [model, setModel] = useState();\n  const [fallbackTitle, setFallbackTitle] = useState();\n  const title = options.title ?? fallbackTitle;\n\n  let { histogram = false, frequencyMode = 'N' } = options;\n  if (fieldDef && fieldDef.failedToFetchFieldDef) {\n    histogram = false;\n    frequencyMode = 'N';\n  }\n\n  useEffect(() => {\n    async function fetchMasterItem() {\n      try {\n        const dim = await app.getDimension(fieldIdentifier.qLibraryId);\n        const dimLayout = await dim.getLayout();\n        setFallbackTitle(dimLayout.qDim.title);\n        if (dimLayout.qDim.qGrouping === 'N') {\n          setFieldDef(dimLayout.qDim.qFieldDefs ? dimLayout.qDim.qFieldDefs[0] : '');\n        } else {\n          setFieldDef({ multiFieldDim: true });\n        }\n        setIsFetching(false);\n      } catch (e) {\n        setIsFetching(false);\n        setFieldDef({ failedToFetchFieldDef: true });\n        throw new Error(`Disabling frequency count and histogram: ${e && e.message}`);\n      }\n    }\n\n    const isFrequencyMaxNeeded = histogram || frequencyMode !== 'N';\n    const shouldFetchMasterItem = fieldIdentifier.qLibraryId && isFrequencyMaxNeeded;\n    if (shouldFetchMasterItem) {\n      fetchMasterItem();\n    } else {\n      setIsFetching(false);\n      setFallbackTitle(fieldIdentifier);\n    }\n  }, []);\n\n  const { dense, checkboxes, listLayout, properties = {} } = options;\n\n  const getListdefFrequencyMode = () => (histogram && frequencyMode === 'N' ? 'V' : frequencyMode);\n  const layoutOptions = { dense };\n\n  if (listLayout === 'horizontal') {\n    layoutOptions.dataLayout = 'grid';\n    layoutOptions.layoutOrder = 'column';\n    layoutOptions.maxVisibleColumns = { auto: true };\n    layoutOptions.maxVisibleRows = { auto: false, maxRows: 1 };\n  }\n\n  const id = useRef();\n  if (!id.current) {\n    id.current = uid();\n  }\n\n  const listdef = extend(true, {}, defaultListboxProperties, {\n    qInfo: {\n      qId: id.current,\n    },\n    qListObjectDef: {\n      qStateName: stateName,\n      qFrequencyMode: getListdefFrequencyMode(),\n    },\n    histogram,\n    checkboxes,\n    layoutOptions,\n    title,\n  });\n  extend(true, listdef, properties);\n\n  // Something something lib dimension\n  let fieldName;\n  if (fieldIdentifier.qLibraryId) {\n    listdef.qListObjectDef.qLibraryId = fieldIdentifier.qLibraryId;\n    fieldName = fieldIdentifier.qLibraryId;\n  } else {\n    listdef.qListObjectDef.qDef.qFieldDefs = [fieldIdentifier];\n    fieldName = fieldIdentifier;\n  }\n\n  if (frequencyMode !== 'P' && histogram) {\n    if (fieldDef?.multiFieldDim) {\n      listdef.frequencyMax = 'fetch';\n      // maybe for all lib dimension to handle if it properties change\n    } else {\n      const field = fieldIdentifier.qLibraryId ? fieldDef : fieldName;\n      listdef.frequencyMax = {\n        qValueExpression: getFrequencyMaxExpression(field),\n      };\n    }\n  }\n\n  const [sessionModel] = useSessionModel(listdef, isFetching ? null : app, fieldName, stateName);\n\n  useEffect(() => {\n    if (!sessionModel) {\n      return;\n    }\n\n    setModel(sessionModel);\n  }, [sessionModel]);\n\n  return model;\n}\n","import React, { useState } from 'react';\nimport extend from 'extend';\nimport ListBoxPopover from './ListBoxPopover';\n\nconst DEFAULTS = {\n  show: true,\n  anchorOrigin: {\n    vertical: 'bottom',\n    horizontal: 'center',\n  },\n  transformOrigin: {\n    vertical: 'top',\n    horizontal: 'center',\n  },\n};\n\nexport const getOptions = (usersOptions = {}) => {\n  const squashedOptions = {\n    ...DEFAULTS,\n  };\n  extend(true, squashedOptions, usersOptions);\n  return squashedOptions;\n};\n\nexport default function ListBoxPopoverWrapper({ app, fieldIdentifier, stateName, element, options = {} }) {\n  const [showState, setShowstate] = useState(!!options.show);\n  const handleCloseShowState = () => {\n    setShowstate(false);\n    if (options.onPopoverClose) {\n      options.onPopoverClose();\n    }\n  };\n\n  return (\n    <ListBoxPopover\n      show={showState}\n      app={app}\n      alignTo={{ current: element }}\n      anchorOrigin={options.anchorOrigin}\n      transformOrigin={options.transformOrigin}\n      close={handleCloseShowState}\n      fieldName={fieldIdentifier}\n      stateName={stateName}\n      autoFocus={options.autoFocus}\n      components={options.components}\n      sortCriteria={options.sortCriteria}\n      direction={options.direction}\n    />\n  );\n}\n","/* eslint no-param-reassign:0 */\n\nimport uid from './uid';\n\nfunction addIndex(array, index) {\n  for (let i = 0; i < array.length; ++i) {\n    if (array[i] >= 0 && array[i] >= index) {\n      ++array[i];\n    }\n  }\n  array.push(index);\n}\nfunction removeIndex(array, index) {\n  let removeIdx = 0;\n  for (let i = 0; i < array.length; ++i) {\n    if (array[i] > index) {\n      --array[i];\n    } else if (array[i] === index) {\n      removeIdx = i;\n    }\n  }\n  array.splice(removeIdx, 1);\n  return removeIdx;\n}\n\nconst nxDimension = (f) => ({\n  qDef: {\n    qFieldDefs: [f],\n  },\n});\n\nconst nxMeasure = (f) => ({\n  qDef: {\n    qDef: f,\n  },\n});\n\nexport default function hcHandler({ dc: hc, def, properties }) {\n  hc.qDimensions = hc.qDimensions || [];\n  hc.qMeasures = hc.qMeasures || [];\n  hc.qInterColumnSortOrder = hc.qInterColumnSortOrder || [];\n  hc.qInitialDataFetch = hc.qInitialDataFetch || [];\n  hc.qColumnOrder = hc.qColumnOrder || [];\n  hc.qExpansionState = hc.qExpansionState || [];\n\n  const objectProperties = properties;\n\n  const handler = {\n    dimensions() {\n      return hc.qDimensions;\n    },\n    measures() {\n      return hc.qMeasures;\n    },\n    addDimension(d) {\n      const dimension =\n        typeof d === 'string'\n          ? nxDimension(d)\n          : {\n              ...d,\n              qDef: d.qDef || {},\n            };\n      dimension.qDef.cId = dimension.qDef.cId || uid();\n\n      // ====== add default objects and arrays for NxDimension =====\n\n      // TODO - apply autosort properties based on tags\n      dimension.qDef.qSortCriterias = dimension.qDef.qSortCriterias || [\n        {\n          qSortByLoadOrder: 1,\n          qSortByNumeric: 1,\n          qSortByAscii: 1,\n        },\n      ];\n\n      dimension.qOtherTotalSpec = dimension.qOtherTotalSpec || {};\n      dimension.qAttributeExpressions = dimension.qAttributeExpressions || [];\n      dimension.qAttributeDimensions = dimension.qAttributeDimensions || [];\n      // ========= end defaults =============\n\n      if (hc.qDimensions.length < handler.maxDimensions()) {\n        hc.qDimensions.push(dimension);\n        addIndex(hc.qInterColumnSortOrder, hc.qDimensions.length - 1);\n        def.dimensions.added(dimension, objectProperties);\n      } else {\n        hc.qLayoutExclude = hc.qLayoutExclude || {};\n        hc.qLayoutExclude.qHyperCubeDef = hc.qLayoutExclude.qHyperCubeDef || {};\n        hc.qLayoutExclude.qHyperCubeDef.qDimensions = hc.qLayoutExclude.qHyperCubeDef.qDimensions || [];\n        hc.qLayoutExclude.qHyperCubeDef.qMeasures = hc.qLayoutExclude.qHyperCubeDef.qMeasures || [];\n\n        hc.qLayoutExclude.qHyperCubeDef.qDimensions.push(dimension);\n      }\n      return dimension;\n    },\n    removeDimension(idx) {\n      const dimension = hc.qDimensions.splice(idx, 1)[0];\n      removeIndex(hc.qInterColumnSortOrder, idx);\n      def.dimensions.removed(dimension, objectProperties, idx);\n      return dimension;\n    },\n    addMeasure(m) {\n      const measure =\n        typeof m === 'string'\n          ? nxMeasure(m)\n          : {\n              ...m,\n              qDef: m.qDef || {},\n            };\n      measure.qDef.cId = measure.qDef.cId || uid();\n\n      // ====== add default objects and arrays for NxMeasure =====\n      measure.qSortBy = measure.qSortBy || {\n        qSortByLoadOrder: 1,\n        qSortByNumeric: -1,\n      };\n\n      measure.qAttributeDimensions = measure.qAttributeDimensions || [];\n      measure.qAttributeExpressions = measure.qAttributeExpressions || [];\n\n      if (hc.qMeasures.length < handler.maxMeasures()) {\n        hc.qMeasures.push(measure);\n        addIndex(hc.qInterColumnSortOrder, hc.qDimensions.length + hc.qMeasures.length - 1);\n        def.measures.added(measure, objectProperties);\n      } else {\n        hc.qLayoutExclude = hc.qLayoutExclude || {};\n        hc.qLayoutExclude.qHyperCubeDef = hc.qLayoutExclude.qHyperCubeDef || {};\n        hc.qLayoutExclude.qHyperCubeDef.qDimensions = hc.qLayoutExclude.qHyperCubeDef.qDimensions || [];\n        hc.qLayoutExclude.qHyperCubeDef.qMeasures = hc.qLayoutExclude.qHyperCubeDef.qMeasures || [];\n\n        hc.qLayoutExclude.qHyperCubeDef.qMeasures.push(measure);\n      }\n    },\n    removeMeasure(idx) {\n      const measure = hc.qMeasures.splice(idx, 1)[0];\n      removeIndex(hc.qInterColumnSortOrder, hc.qDimensions.length + idx);\n      def.measures.removed(measure, objectProperties, idx);\n    },\n\n    maxDimensions() {\n      return def.dimensions.max(hc.qMeasures.length);\n    },\n    maxMeasures() {\n      return def.measures.max(hc.qDimensions.length);\n    },\n    canAddDimension() {\n      return hc.qDimensions.length < handler.maxDimensions();\n    },\n    canAddMeasure() {\n      return hc.qMeasures.length < handler.maxMeasures();\n    },\n  };\n\n  return handler;\n}\n","/* eslint no-param-reassign:0 */\n\nimport uid from './uid';\n\nconst nxDimension = (f) => ({\n  qDef: {\n    qFieldDefs: [f],\n  },\n});\n\nexport default function loHandler({ dc: lo, def, properties }) {\n  lo.qInitialDataFetch = lo.qInitialDataFetch || [];\n\n  const objectProperties = properties;\n\n  const handler = {\n    dimensions() {\n      if (!lo.qLibraryId && (!lo.qDef || !lo.qDef.qFieldDefs || lo.qDef.qFieldDefs.length === 0)) return [];\n      return [lo];\n    },\n    measures() {\n      return [];\n    },\n    addDimension(d) {\n      const dimension =\n        typeof d === 'string'\n          ? nxDimension(d)\n          : {\n              ...d,\n              qDef: d.qDef || {},\n            };\n      dimension.qDef.cId = dimension.qDef.cId || uid();\n\n      dimension.qDef.qSortCriterias = lo.qDef.qSortCriterias || [\n        {\n          qSortByState: 1,\n          qSortByLoadOrder: 1,\n          qSortByNumeric: 1,\n          qSortByAscii: 1,\n        },\n      ];\n      Object.keys(dimension).forEach((k) => {\n        lo[k] = dimension[k];\n      });\n      def.dimensions.added(dimension, objectProperties);\n      return dimension;\n    },\n    removeDimension(idx) {\n      const dimension = lo;\n      delete lo.qDef;\n      delete lo.qLibraryId;\n      def.dimensions.removed(dimension, objectProperties, idx);\n      return dimension;\n    },\n    addMeasure() {},\n    removeMeasure() {},\n\n    maxDimensions() {\n      return 1;\n    },\n    maxMeasures() {\n      return 0;\n    },\n    canAddDimension() {\n      return handler.dimensions().length === 0;\n    },\n    canAddMeasure() {\n      return false;\n    },\n  };\n\n  return handler;\n}\n","import extend from 'extend';\nimport uid from './uid';\nimport defaultListboxProperties from '../components/listbox/default-properties';\n\nconst nxDimension = (f) => ({\n  qDef: {\n    qFieldDefs: [f],\n  },\n});\nexport const toListBox = (d) => {\n  let listboxProps;\n  if (typeof d === 'string') {\n    listboxProps = extend(true, {}, defaultListboxProperties, { qListObjectDef: nxDimension(d) });\n  } else if (d.qListObjectDef) {\n    listboxProps = extend(true, {}, defaultListboxProperties, d);\n  } else {\n    listboxProps = extend(true, {}, defaultListboxProperties, { qListObjectDef: d });\n  }\n  return listboxProps;\n};\n\nexport default function filterpaneHandler({ /* dc, def, properties, */ children, halo }) {\n  const handler = {\n    async addDimension(d) {\n      const listboxProps = toListBox(d);\n      const dimension = listboxProps.qListObjectDef;\n      dimension.qDef.cId = dimension.qDef.cId || uid(); // maybe not needed\n\n      if (!listboxProps.title) {\n        if (dimension.qLibraryId) {\n          const dimModel = await halo.app.getDimension(dimension.qLibraryId);\n          const dimProps = await dimModel.getProperties();\n          if (dimProps.qDim.qLabelExpression) {\n            listboxProps.title = {\n              qStringExpression: {\n                qExpr: dimProps.qDim.qLabelExpression,\n              },\n            };\n          } else {\n            listboxProps.title = dimProps.qDim.title;\n          }\n        } else {\n          listboxProps.title =\n            dimension.qDef.title || dimension.qDef.qFieldLabels?.[0] || dimension.qDef.qFieldDefs?.[0];\n        }\n      }\n      // def.dimensions.added(dimension, properties, listboxProps);\n      children.push({\n        qProperty: listboxProps,\n        qChildren: [],\n      });\n    },\n    addMeasure() {},\n  };\n\n  return handler;\n}\n","import hcHandler from './hc-handler';\nimport loHandler from './lo-handler';\nimport filterpaneHandler from './filterpane-handler';\n\nfunction getCreateHandler(propertyPath) {\n  if (propertyPath.match('/qListObjectDef')) {\n    return loHandler;\n  }\n  if (propertyPath.match('/qChildListDef')) {\n    return filterpaneHandler;\n  }\n  return hcHandler;\n}\n\n/**\n * @interface LibraryField\n * @property {string} qLibraryId\n * @property {'dimension'|'measure'} type\n */\n\nexport function fieldType(f) {\n  if (\n    // a string starting with '=' is just a convention we use\n    (typeof f === 'string' && f[0] === '=') ||\n    // based on NxMeasure and NxInlineMeasureDef\n    (typeof f === 'object' && f.qDef && f.qDef.qDef) ||\n    // use 'type' instead of 'qType' since this is not a real property\n    (typeof f === 'object' && f.qLibraryId && f.type === 'measure')\n  ) {\n    return 'measure';\n  }\n  return 'dimension';\n}\n\nexport default async function populateData({ sn, properties, fields, children }, halo) {\n  if (!fields.length) {\n    return;\n  }\n  const target = sn.qae.data.targets[0];\n  if (!target) {\n    if (__NEBULA_DEV__) {\n      console.warn('Attempting to add fields to an object without a specified data target'); // eslint-disable-line no-console\n    }\n    return;\n  }\n  const { propertyPath } = target;\n\n  const parts = propertyPath.split('/');\n  let p = properties;\n  for (let i = 0; i < parts.length; i++) {\n    const s = parts[i];\n    p = s ? p[s] : p;\n  }\n\n  const createHandler = getCreateHandler(propertyPath);\n\n  const handler = createHandler({\n    dc: p,\n    def: target,\n    properties,\n    children,\n    halo,\n  });\n\n  for (let i = 0; i < fields.length; ++i) {\n    const f = fields[i];\n    const type = fieldType(f);\n\n    if (type === 'measure') {\n      // eslint-disable-next-line no-await-in-loop\n      await handler.addMeasure(f);\n    } else {\n      // eslint-disable-next-line no-await-in-loop\n      await handler.addDimension(f);\n    }\n  }\n}\n","/**\n * Gets a value from a data object structure.\n *\n * @ignore\n * @param data The data object.\n * @param reference Reference to the value.\n * @param defaultValue Default value to return if no value was found.\n * @returns {*} The default value if specified, otherwise undefined.\n */\nconst getValue = (data, reference, defaultValue) => {\n  if (data === undefined || data === null || reference === undefined || reference === null) {\n    return defaultValue;\n  }\n  const steps = reference.split('.');\n  let dataContainer = data;\n  for (let i = 0; i < steps.length; ++i) {\n    const step = steps[i];\n    if (step === '') {\n      continue; // eslint-disable-line no-continue\n    }\n    if (dataContainer[step] === undefined || dataContainer[step] === null) {\n      return defaultValue;\n    }\n    dataContainer = dataContainer[step];\n  }\n  return dataContainer;\n};\n\nconst isSafeKey = (key) => key !== '__proto__' && key !== 'constructor' && key !== 'prototype';\n\n/**\n * Sets a value in a data object using a dot notated reference to point out the path.\n *\n * Example:\n * If data is an empty object, reference is \"my.value\" and value the is \"x\", then\n * the resulting data object will be: { my:\t{ value: \"x\" } }\n *\n * @ignore\n * @param data The data object. Must be an object.\n * @param reference Reference to the value.\n * @param value Arbitrary value to set. If the value is set to undefined, the value property will be removed.\n */\nconst setValue = (data, reference, value) => {\n  if (data === undefined || data === null || reference === undefined || reference === null) {\n    return;\n  }\n  const steps = reference.split('.');\n  const propertyName = steps[steps.length - 1];\n  let dataContainer = data;\n\n  for (let i = 0; i < steps.length - 1; ++i) {\n    const step = steps[i];\n    if (!isSafeKey(step)) {\n      return;\n    }\n    if (dataContainer[step] === undefined || dataContainer[step] === null) {\n      dataContainer[step] = Number.isNaN(+steps[i + 1]) ? {} : [];\n    }\n    dataContainer = dataContainer[step];\n  }\n\n  if (!isSafeKey(propertyName)) {\n    return;\n  }\n  if (typeof value !== 'undefined') {\n    dataContainer[propertyName] = value;\n  } else {\n    delete dataContainer[propertyName];\n  }\n};\n\nconst isEmpty = (object) => Object.keys(object).length === 0 && object.constructor === Object;\n\nexport default {\n  getValue,\n  setValue,\n  isEmpty,\n};\n","/* eslint-disable no-param-reassign */\n/**\n * Returns true if the second array is a ordered subset of the first.\n *\n * @ignore\n * @param array1\n * @param array2\n * @returns {boolean}\n */\nfunction isOrderedSubset(outer, subset) {\n  if (!outer || !subset || !outer.length || !subset.length) {\n    return false;\n  }\n  let start = outer.indexOf(subset[0]);\n\n  if (start !== -1) {\n    for (let i = 0; i < subset.length; i++) {\n      const next = outer.indexOf(subset[i]);\n      if (start > next) {\n        return false;\n      }\n      start = next;\n    }\n    return true;\n  }\n  return false;\n}\n\n/**\n * Used for adding an index to an index array. An index array contains indices from 0-N in any order and\n * is used for keeping track of how items in another arrayed could be presented in a specific order.\n *\n * @ignore\n * @param array\n * @param index\n */\nfunction indexAdded(array, index) {\n  let i;\n  for (i = 0; i < array.length; ++i) {\n    if (array[i] >= 0 && array[i] >= index) {\n      ++array[i];\n    }\n  }\n  array.push(index);\n}\n\n/**\n * Used for removing an index from an index array. An index array contains indices from 0-N in any order and\n * is used for keeping track of how items in another arrayed could be presented in a specific order.\n *\n * @ignore\n * @param array\n * @param index\n */\nfunction indexRemoved(array, index) {\n  let removeIndex = 0;\n  let i;\n  for (i = 0; i < array.length; ++i) {\n    if (array[i] > index) {\n      --array[i];\n    } else if (array[i] === index) {\n      removeIndex = i;\n    }\n  }\n  array.splice(removeIndex, 1);\n  return removeIndex;\n}\n\n/**\n * Move an element from position old_index to position new_index in\n * the array.\n * @param array\n * @param oldIndex\n * @param newIndex\n */\nfunction move(array, oldIndex, newIndex) {\n  if (newIndex < 0) throw Error('newIndex cannot be a negative value!');\n\n  if (newIndex >= array.length) {\n    let k = newIndex - array.length + 1;\n    while (k) {\n      array.push(undefined);\n      k--;\n    }\n  }\n\n  const movingValue = array.at(oldIndex);\n  array.splice(oldIndex, 1);\n  array.splice(newIndex, 0, movingValue);\n}\n\nexport default {\n  isOrderedSubset,\n  indexAdded,\n  indexRemoved,\n  move,\n};\n","/* eslint-disable no-prototype-builtins */\n/* eslint-disable no-param-reassign */\nimport extend from 'extend';\nimport utils from '../utils';\nimport arrayUtils from '../array-util';\n\nconst MAX_SAFE_INTEGER = 2 ** 53 - 1;\n\n/**\n * Restore properties that were temporarily changed during conversion.\n *\n * @ignore\n * @param properties PropertyTree\n */\nfunction restoreChangedProperties(properties) {\n  Object.keys(properties.qLayoutExclude.changed).forEach((property) => {\n    if (properties.qLayoutExclude.changed[property].to === utils.getValue(properties, property)) {\n      // only revert back to old value if the current value is the same as it was changed to during conversion\n      utils.setValue(properties, property, properties.qLayoutExclude.changed[property].from);\n    }\n  });\n}\n\n/**\n * Used to check if a property key is part of the master item information\n *\n * @ignore\n * @param propertyName Name of the key in the properties object\n * @returns {boolean}\n */\nfunction isMasterItemProperty(propertyName) {\n  return ['qMetaDef', 'descriptionExpression', 'labelExpression'].indexOf(propertyName) !== -1;\n}\n\nfunction importCommonProperties(newProperties, exportFormat, initialProperties) {\n  // always copy type and visualization\n  const qType =\n    utils.getValue(exportFormat, 'properties.qInfo.qType') === 'masterobject'\n      ? 'masterobject'\n      : utils.getValue(initialProperties, 'qInfo.qType');\n  utils.setValue(newProperties, 'qInfo.qType', qType);\n  newProperties.visualization = initialProperties.visualization;\n}\n\nfunction copyPropertyIfExist(propertyName, source, target) {\n  if (source.hasOwnProperty(propertyName)) {\n    target[propertyName] = source[propertyName];\n  }\n}\n\nfunction copyPropertyOrSetDefault(propertyName, source, target, defaultValue) {\n  if (source.hasOwnProperty(propertyName)) {\n    target[propertyName] = source[propertyName];\n  } else {\n    target[propertyName] = defaultValue;\n  }\n}\n\nfunction getOthersLabel() {\n  return 'Others'; // TODO: translator.get('properties.dimensionLimits.others')\n}\n\nfunction createDefaultDimension(dimensionDef, dimensionProperties) {\n  const def = extend(true, {}, dimensionProperties, dimensionDef);\n  if (!utils.getValue(def, 'qOtherTotalSpec.qOtherCounted')) {\n    utils.setValue(def, 'qOtherTotalSpec.qOtherCounted', { qv: '10' });\n  }\n  if (!utils.getValue(def, 'qOtherTotalSpec.qOtherLimit')) {\n    utils.setValue(def, 'qOtherTotalSpec.qOtherLimit', { qv: '0' });\n  }\n  if (!def.hasOwnProperty('othersLabel')) {\n    def.othersLabel = getOthersLabel();\n  }\n  return def;\n}\n\nfunction createDefaultMeasure(measureDef, measureProperties) {\n  return extend(true, {}, measureProperties, measureDef);\n}\n\nfunction resolveValue(data, input, defaultValue) {\n  if (typeof data === 'function') {\n    return data(input);\n  }\n  return !Number.isNaN(+data) ? data : defaultValue;\n}\n\nfunction getHypercubePath(qae) {\n  const path = utils.getValue(qae, 'data.targets.0.propertyPath', '');\n  const steps = path.split('/');\n  if (steps.length && steps[steps.length - 1] === 'qHyperCubeDef') {\n    steps.length -= 1;\n  }\n  return steps.join('.');\n}\n\nfunction getDefaultDimension() {\n  return {\n    qDef: {\n      autoSort: true,\n      cId: '',\n      othersLabel: getOthersLabel(),\n    },\n    qLibraryId: '',\n    qNullSuppression: false,\n    qOtherLabel: 'Others',\n    qOtherTotalSpec: {\n      qOtherLimitMode: 'OTHER_GE_LIMIT',\n      qOtherMode: 'OTHER_OFF',\n      qOtherSortMode: 'OTHER_SORT_DESCENDING',\n      qSuppressOther: false,\n    },\n  };\n}\n\nfunction getDefaultMeasure() {\n  return {\n    qDef: {\n      autoSort: true,\n      cId: '',\n      numFormatFromTemplate: true,\n    },\n    qLibraryId: '',\n    qTrendLines: [],\n  };\n}\n\nfunction setInterColumnSortOrder({ exportFormat, newHyperCubeDef }) {\n  const dataGroup = exportFormat.data[0];\n  const nCols = newHyperCubeDef.qDimensions.length + newHyperCubeDef.qMeasures.length;\n  newHyperCubeDef.qInterColumnSortOrder = dataGroup.interColumnSortOrder.concat();\n\n  let i = newHyperCubeDef.qInterColumnSortOrder.length;\n  if (i !== nCols) {\n    if (newHyperCubeDef.qLayoutExclude) {\n      // Store them if needed\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder = dataGroup.interColumnSortOrder.concat();\n    }\n    while (i !== nCols) {\n      if (i < nCols) {\n        arrayUtils.indexAdded(newHyperCubeDef.qInterColumnSortOrder, i);\n        ++i;\n      } else {\n        --i;\n        arrayUtils.indexRemoved(newHyperCubeDef.qInterColumnSortOrder, i);\n      }\n    }\n  }\n}\n\nfunction createNewProperties({ exportFormat, initialProperties, hypercubePath }) {\n  let newProperties = { qLayoutExclude: { disabled: {}, quarantine: {} } };\n\n  Object.keys(exportFormat.properties).forEach((key) => {\n    if (key === 'qLayoutExclude') {\n      if (exportFormat.properties[key].quarantine) {\n        newProperties.qLayoutExclude.quarantine = extend(true, {}, exportFormat.properties[key].quarantine);\n      }\n    } else if (key === 'qHyperCubeDef' && hypercubePath) {\n      utils.setValue(newProperties, `${hypercubePath}.qHyperCubeDef`, exportFormat.properties.qHyperCubeDef);\n    } else if (initialProperties.hasOwnProperty(key) || isMasterItemProperty(key)) {\n      // TODO: qExtendsId ??\n      newProperties[key] = exportFormat.properties[key];\n    } else {\n      newProperties.qLayoutExclude.disabled[key] = exportFormat.properties[key];\n    }\n  });\n\n  newProperties = extend(true, {}, initialProperties, newProperties);\n  if (newProperties.components === null) {\n    newProperties.components = [];\n  }\n  return newProperties;\n}\n\nfunction getMaxMinDimensionMeasure({ exportFormat, dataDefinition = {} }) {\n  const dataGroup = exportFormat.data[0];\n  const dimensionDef = dataDefinition.dimensions || { max: 0 };\n  const measureDef = dataDefinition.measures || { max: 0 };\n  const maxMeasures = resolveValue(measureDef.max, dataGroup.dimensions.length, MAX_SAFE_INTEGER);\n  const minMeasures = resolveValue(measureDef.min, dataGroup.dimensions.length, 0);\n  const maxDimensions = resolveValue(dimensionDef.max, maxMeasures, MAX_SAFE_INTEGER);\n  const minDimensions = resolveValue(dimensionDef.min, minMeasures, 0);\n  return { maxDimensions, minDimensions, maxMeasures, minMeasures };\n}\n\nfunction shouldInitLayoutExclude({ exportFormat, maxDimensions, minDimensions, maxMeasures, minMeasures }) {\n  const dataGroup = exportFormat.data[0];\n  return (\n    (dataGroup.dimensions.length > maxDimensions && maxDimensions > 0) ||\n    (dataGroup.measures.length > maxMeasures && maxMeasures > 0) ||\n    (dataGroup.excludedDimensions.length > 0 &&\n      dataGroup.dimensions.length + dataGroup.excludedDimensions.length > minDimensions) ||\n    (dataGroup.excludedMeasures.length > 0 &&\n      dataGroup.measures.length + dataGroup.excludedMeasures.length > minMeasures) ||\n    (!maxMeasures && dataGroup.measures.length > 0) ||\n    (!maxDimensions && dataGroup.dimensions.length > 0)\n  );\n}\n\nfunction initLayoutExclude({ exportFormat, maxDimensions, minDimensions, maxMeasures, minMeasures, newHyperCubeDef }) {\n  const dataGroup = exportFormat.data[0];\n  if (!newHyperCubeDef.qLayoutExclude) {\n    newHyperCubeDef.qLayoutExclude = {};\n  }\n\n  if (!newHyperCubeDef.qLayoutExclude.qHyperCubeDef) {\n    newHyperCubeDef.qLayoutExclude.qHyperCubeDef = {};\n  }\n\n  if (\n    (dataGroup.dimensions.length > maxDimensions && maxDimensions > 0) ||\n    (dataGroup.excludedDimensions &&\n      dataGroup.excludedDimensions.length &&\n      dataGroup.dimensions.length + dataGroup.excludedDimensions.length > minDimensions)\n  ) {\n    if (!newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions = [];\n    }\n  }\n\n  if (\n    (dataGroup.measures.length > maxMeasures && maxMeasures > 0) ||\n    (dataGroup.excludedMeasures &&\n      dataGroup.excludedMeasures.length &&\n      dataGroup.measures.length + dataGroup.excludedMeasures.length > minMeasures)\n  ) {\n    if (!newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures = [];\n    }\n  }\n\n  if (!maxMeasures && dataGroup.measures.length) {\n    // if the object don't support measures put them in alternative measures instead\n    if (!newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures = [];\n    }\n  }\n\n  if (!maxDimensions && dataGroup.dimensions.length) {\n    // if the object don't support dimensions put them in alternative dimensions instead\n    if (!newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions = [];\n    }\n  }\n}\n\nfunction addDefaultDimensions({ exportFormat, maxDimensions, minDimensions, newHyperCubeDef, defaultDimension }) {\n  const dataGroup = exportFormat.data[0];\n  let i;\n  if (maxDimensions > 0) {\n    for (i = 0; i < dataGroup.dimensions.length; ++i) {\n      if (newHyperCubeDef.qDimensions.length < maxDimensions) {\n        newHyperCubeDef.qDimensions.push(createDefaultDimension(dataGroup.dimensions[i], defaultDimension));\n      } else {\n        newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.push(\n          createDefaultDimension(dataGroup.dimensions[i], defaultDimension)\n        );\n      }\n    }\n  } else if (dataGroup.dimensions.length) {\n    for (i = 0; i < dataGroup.dimensions.length; ++i) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.push(\n        createDefaultDimension(dataGroup.dimensions[i], defaultDimension)\n      );\n    }\n  }\n\n  if (dataGroup.excludedDimensions.length) {\n    for (i = 0; i < dataGroup.excludedDimensions.length; ++i) {\n      if (newHyperCubeDef.qDimensions.length < minDimensions) {\n        newHyperCubeDef.qDimensions.push(createDefaultDimension(dataGroup.excludedDimensions[i], defaultDimension));\n      } else {\n        newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.push(\n          createDefaultDimension(dataGroup.excludedDimensions[i], defaultDimension)\n        );\n      }\n    }\n  }\n}\n\nfunction addDefaultMeasures({ exportFormat, maxMeasures, minMeasures, newHyperCubeDef, defaultMeasure }) {\n  const dataGroup = exportFormat.data[0];\n  let i;\n  if (maxMeasures > 0) {\n    for (i = 0; i < dataGroup.measures.length; ++i) {\n      if (newHyperCubeDef.qMeasures.length < maxMeasures) {\n        newHyperCubeDef.qMeasures.push(createDefaultMeasure(dataGroup.measures[i], defaultMeasure));\n      } else {\n        newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.push(\n          createDefaultMeasure(dataGroup.measures[i], defaultMeasure)\n        );\n      }\n    }\n  } else if (dataGroup.measures.length) {\n    for (i = 0; i < dataGroup.measures.length; ++i) {\n      newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.push(\n        createDefaultMeasure(dataGroup.measures[i], defaultMeasure)\n      );\n    }\n  }\n\n  if (dataGroup.excludedMeasures.length) {\n    for (i = 0; i < dataGroup.excludedMeasures.length; ++i) {\n      if (newHyperCubeDef.qMeasures.length < minMeasures) {\n        newHyperCubeDef.qMeasures.push(createDefaultMeasure(dataGroup.excludedMeasures[i], defaultMeasure));\n      } else {\n        newHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.push(\n          createDefaultMeasure(dataGroup.excludedMeasures[i], defaultMeasure)\n        );\n      }\n    }\n  }\n}\n\nfunction updateDimensionsOnAdded({ newProperties, dataDefinition, hypercubePath }) {\n  if (dataDefinition.dimensions && typeof dataDefinition.dimensions.added === 'function') {\n    const newHyperCubeDef = utils.getValue(newProperties, hypercubePath || '').qHyperCubeDef;\n    const dimensions = [...newHyperCubeDef.qDimensions];\n    newHyperCubeDef.qDimensions = [];\n    dimensions.forEach((dimension) => {\n      newHyperCubeDef.qDimensions.push(dimension);\n      dataDefinition.dimensions.added(dimension, newProperties);\n    });\n  }\n}\n\nfunction updateMeasuresOnAdded({ newProperties, dataDefinition, hypercubePath }) {\n  if (dataDefinition.measures && typeof dataDefinition.measures.added === 'function') {\n    const newHyperCubeDef = utils.getValue(newProperties, hypercubePath || '').qHyperCubeDef;\n    const measures = [...newHyperCubeDef.qMeasures];\n    newHyperCubeDef.qMeasures = [];\n    measures.forEach((measure) => {\n      newHyperCubeDef.qMeasures.push(measure);\n      dataDefinition.measures.added(measure, newProperties);\n    });\n  }\n}\n\nexport default {\n  restoreChangedProperties,\n  isMasterItemProperty,\n  importCommonProperties,\n  copyPropertyIfExist,\n  copyPropertyOrSetDefault,\n  createDefaultDimension,\n  createDefaultMeasure,\n  resolveValue,\n  getHypercubePath,\n  getDefaultDimension,\n  getDefaultMeasure,\n  setInterColumnSortOrder,\n  createNewProperties,\n  getMaxMinDimensionMeasure,\n  shouldInitLayoutExclude,\n  initLayoutExclude,\n  addDefaultDimensions,\n  addDefaultMeasures,\n  updateDimensionsOnAdded,\n  updateMeasuresOnAdded,\n};\n","import exportProperties from './export-properties';\nimport importProperties from './import-properties';\n\n/**\n * @interface hyperCubeConversion\n * @since 1.1.0\n * @implements {ConversionType}\n */\n\nexport default /** @lends hyperCubeConversion */ {\n  exportProperties: (ar) => exportProperties(ar),\n  importProperties: (ar) => importProperties(ar),\n};\n","/* eslint-disable no-prototype-builtins */\nimport createExportFormat from '../export-format';\nimport utils from '../utils';\nimport arrayUtils from '../array-util';\nimport helpers from '../helpers';\n\nexport default function exportProperties({ propertyTree, hypercubePath }) {\n  const exportFormat = createExportFormat();\n  const properties = propertyTree.qProperty;\n  const hcdParent = utils.getValue(properties, hypercubePath || '');\n  const hcd = hcdParent.qHyperCubeDef;\n  const dataGroup = exportFormat.data[0];\n\n  if (!hcd.qInterColumnSortOrder) {\n    hcd.qInterColumnSortOrder = [];\n  }\n\n  // export dimensions\n  dataGroup.dimensions.push(...hcd.qDimensions);\n\n  // excluded dimensions\n  if (hcd.qLayoutExclude && hcd.qLayoutExclude.qHyperCubeDef && hcd.qLayoutExclude.qHyperCubeDef.qDimensions) {\n    dataGroup.excludedDimensions.push(...hcd.qLayoutExclude.qHyperCubeDef.qDimensions);\n  }\n\n  // export measures\n  dataGroup.measures.push(...hcd.qMeasures);\n\n  // excluded measures\n  if (hcd.qLayoutExclude && hcd.qLayoutExclude.qHyperCubeDef && hcd.qLayoutExclude.qHyperCubeDef.qMeasures) {\n    dataGroup.excludedMeasures.push(...hcd.qLayoutExclude.qHyperCubeDef.qMeasures);\n  }\n\n  // export sort order\n  dataGroup.interColumnSortOrder = hcd.qInterColumnSortOrder.concat();\n\n  // if we have a excluded sort order, try apply that instead\n  if (\n    hcd.qLayoutExclude &&\n    hcd.qLayoutExclude.qHyperCubeDef &&\n    hcd.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder\n  ) {\n    const order = hcd.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();\n    // If the exporting sort order hasn't changed compared to the excluded we can apply the full excluded instead\n    if (arrayUtils.isOrderedSubset(order, dataGroup.interColumnSortOrder)) {\n      dataGroup.interColumnSortOrder = order;\n    }\n  }\n\n  delete hcd.qLayoutExclude;\n\n  Object.keys(properties).forEach((prop) => {\n    exportFormat.properties[prop] = properties[prop];\n  });\n\n  if (hypercubePath) {\n    exportFormat.properties.qHyperCubeDef = hcdParent.qHyperCubeDef;\n    delete hcdParent.qHyperCubeDef;\n  }\n\n  if (!properties.qLayoutExclude) {\n    properties.qLayoutExclude = {};\n  }\n\n  if (properties.qLayoutExclude.disabled) {\n    Object.keys(properties.qLayoutExclude.disabled).forEach((prop) => {\n      if (!exportFormat.properties.hasOwnProperty(prop)) {\n        exportFormat.properties[prop] = properties.qLayoutExclude.disabled[prop];\n      }\n    });\n\n    delete properties.qLayoutExclude.disabled;\n  }\n\n  if (properties.qLayoutExclude.changed) {\n    helpers.restoreChangedProperties(properties);\n    delete properties.qLayoutExclude.changed;\n  }\n\n  if (!properties.qLayoutExclude.quarantine || utils.isEmpty(properties.qLayoutExclude.quarantine)) {\n    delete properties.qLayoutExclude;\n  }\n\n  return exportFormat;\n}\n","/**\n * Used for exporting and importing properties between backend models. An object that exports to\n * ExportFormat should put dimensions and measures inside one data group. If an object has two hypercubes,\n * each of the cubes should export dimensions and measures in two separate data groups.\n * An object that imports from this structure is responsible for putting the existing properties where they should be\n * in the new model.\n * @interface ExportFormat\n * @since 1.1.0\n * @property {(ExportDataDef[])=} data\n * @property {object=} properties\n */\n\n/**\n * @since 1.1.0\n * @interface ExportDataDef\n * @property {qix.NxDimension[]} dimensions\n * @property {qix.NxMeasure[]} measures\n * @property {qix.NxDimension[]} excludedDimensions\n * @property {qix.NxMeasure[]} excludedMeasures\n * @property {number[]} interColumnSortOrder\n */\n\n/**\n * @since 1.1.0\n * @ignore\n * @param {number} nDataGroups\n * @return {ExportFormat}\n */\nfunction createExportFormat(nDataGroups = 1) {\n  const exportFormat = {\n    data: [],\n    properties: {},\n  };\n\n  for (let i = 0; i < nDataGroups; ++i) {\n    exportFormat.data.push({\n      dimensions: [],\n      measures: [],\n      excludedDimensions: [],\n      excludedMeasures: [],\n      interColumnSortOrder: [],\n    });\n  }\n  return exportFormat;\n}\n\nexport default createExportFormat;\n","import utils from '../utils';\nimport helpers from '../helpers';\n\nexport default function importProperties({\n  exportFormat,\n  initialProperties = {},\n  dataDefinition = {},\n  defaultPropertyValues = {},\n  hypercubePath,\n}) {\n  const newPropertyTree = { qChildren: [] };\n  const newProperties = helpers.createNewProperties({ exportFormat, initialProperties, hypercubePath });\n  const initHyperCubeDef = utils.getValue(initialProperties, hypercubePath || '').qHyperCubeDef;\n  const newHyperCubeDef = utils.getValue(newProperties, hypercubePath || '').qHyperCubeDef;\n  const { maxDimensions, minDimensions, maxMeasures, minMeasures } = helpers.getMaxMinDimensionMeasure({\n    exportFormat,\n    dataDefinition,\n  });\n  const { defaultDimension = helpers.getDefaultDimension(), defaultMeasure = helpers.getDefaultMeasure() } =\n    defaultPropertyValues;\n\n  // empty dimensions and measures of new hypercube\n  newHyperCubeDef.qDimensions.length = 0;\n  newHyperCubeDef.qMeasures.length = 0;\n\n  // create layout exclude structures if needed\n  if (helpers.shouldInitLayoutExclude({ exportFormat, maxDimensions, minDimensions, maxMeasures, minMeasures })) {\n    helpers.initLayoutExclude({\n      exportFormat,\n      maxDimensions,\n      minDimensions,\n      maxMeasures,\n      minMeasures,\n      newHyperCubeDef,\n    });\n  }\n\n  // and now fill them in.\n  helpers.addDefaultDimensions({ exportFormat, maxDimensions, minDimensions, newHyperCubeDef, defaultDimension });\n  helpers.addDefaultMeasures({ exportFormat, maxMeasures, minMeasures, newHyperCubeDef, defaultMeasure });\n\n  helpers.setInterColumnSortOrder({ exportFormat, newHyperCubeDef });\n\n  helpers.copyPropertyIfExist('qMaxStackedCells', initHyperCubeDef, newHyperCubeDef);\n  helpers.copyPropertyIfExist('qNoOfLeftDims', initHyperCubeDef, newHyperCubeDef);\n\n  helpers.copyPropertyOrSetDefault('qInitialDataFetch', initHyperCubeDef, newHyperCubeDef, [\n    { qTop: 0, qLeft: 0, qWidth: 0, qHeight: 0 },\n  ]);\n  helpers.copyPropertyOrSetDefault('qMode', initHyperCubeDef, newHyperCubeDef, 'S');\n  helpers.copyPropertyOrSetDefault('qReductionMode', initHyperCubeDef, newHyperCubeDef, 'N');\n  helpers.copyPropertyOrSetDefault('qSortbyYValue', initHyperCubeDef, newHyperCubeDef);\n  helpers.copyPropertyOrSetDefault('qIndentMode', initHyperCubeDef, newHyperCubeDef);\n  helpers.copyPropertyOrSetDefault('qShowTotalsAbove', initHyperCubeDef, newHyperCubeDef);\n\n  // always copy type and visualization\n  helpers.importCommonProperties(newProperties, exportFormat, initialProperties);\n\n  helpers.updateDimensionsOnAdded({ newProperties, dataDefinition, hypercubePath });\n  helpers.updateMeasuresOnAdded({ newProperties, dataDefinition, hypercubePath });\n\n  newPropertyTree.qProperty = newProperties;\n\n  return newPropertyTree;\n}\n","import hypercube from './hypercube';\nimport utils from './utils';\nimport helpers from './helpers';\nimport arrayUtil from './array-util';\n\nconst getType = async ({ halo, name, version }) => {\n  const { types } = halo;\n  const SN = await types\n    .get({\n      name,\n      version,\n    })\n    .supernova();\n  return SN;\n};\n\nconst getPath = (qae) => utils.getValue(qae, 'data.targets.0.propertyPath');\n\nconst getDefaultExportPropertiesFn = (path) => {\n  const steps = path.split('/');\n  if (steps.indexOf('qHyperCubeDef') > -1) {\n    return hypercube.exportProperties;\n  }\n  return undefined; // TODO: add listbox and other\n};\n\nconst getExportPropertiesFnc = (qae) => {\n  if (qae.exportProperties) {\n    return qae.exportProperties;\n  }\n  const path = getPath(qae);\n  return getDefaultExportPropertiesFn(path);\n};\n\nconst getDefaultImportPropertiesFnc = (path) => {\n  const steps = path.split('/');\n  if (steps.indexOf('qHyperCubeDef') > -1) {\n    return hypercube.importProperties;\n  }\n  return undefined; // TODO: add listbox and other\n};\n\nconst getImportPropertiesFnc = (qae) => {\n  if (qae.importProperties) {\n    return qae.importProperties;\n  }\n  const path = getPath(qae);\n  return getDefaultImportPropertiesFnc(path);\n};\n\nexport const convertTo = async ({ halo, model, cellRef, newType, properties, viewDataMode = false }) => {\n  const propertyTree = properties ? { qProperty: properties } : await model.getFullPropertyTree();\n  const sourceQae = cellRef.current.getQae();\n  const exportProperties = getExportPropertiesFnc(sourceQae);\n  if (!exportProperties) {\n    throw new Error('Source chart does not support conversion');\n  }\n  const targetSnType = await getType({ halo, name: newType });\n  const targetQae = targetSnType.qae;\n  const importProperties = getImportPropertiesFnc(targetQae);\n  if (!importProperties) {\n    throw new Error('Target chart does not support conversion');\n  }\n  const exportFormat = exportProperties({\n    propertyTree,\n    hypercubePath: helpers.getHypercubePath(sourceQae),\n    viewDataMode,\n  });\n  const initial = utils.getValue(targetQae, 'properties.initial', {});\n  const initialProperties = {\n    qInfo: {\n      qType: newType,\n    },\n    visualization: newType,\n    ...initial,\n  };\n  const newPropertyTree = importProperties({\n    exportFormat,\n    initialProperties,\n    dataDefinition: utils.getValue(targetQae, 'data.targets.0.', {}),\n    hypercubePath: helpers.getHypercubePath(targetQae),\n    viewDataMode,\n  });\n  return newPropertyTree;\n};\n/**\n * @interface ConversionType\n * @since 1.1.0\n * @property {importProperties} importProperties\n * @property {exportProperties} exportProperties\n */\n\n/**\n * @entry\n * @namespace\n * @alias Conversion\n * @since 1.1.0\n * @description Provides conversion functionality to extensions.\n * @example\n * import { conversion } from '@nebula.js/stardust';\n *\n * export default function() {\n *   return {\n *     qae: {\n *       ...\n *       importProperties: ( exportFormat, initialProperties ) =>  conversion.hyperCube.importProperties(exportFormat, initialProperties),\n *       exportProperties: ( fullPropertyTree ) => conversion.hyperCube.exportProperties(fullPropertyTree)\n *     },\n *     ...\n *   };\n * }\n *\n */\nconst conversion = {\n  /**\n   * @type {hyperCubeConversion}\n   * @since 1.1.0\n   * @description Provides conversion functionality to extensions with hyperCubes.\n   */\n  hypercube,\n};\n\nexport { utils, arrayUtil, helpers, getPath };\n\nexport default conversion;\n","/* eslint no-param-reassign: 0, no-restricted-globals: 0 */\nimport originalExtend from 'extend';\n\nconst extend = originalExtend.bind(null, true);\nconst JSONPatch = {};\nconst { isArray } = Array;\nfunction isObject(v) {\n  return v != null && !Array.isArray(v) && typeof v === 'object';\n}\nfunction isUndef(v) {\n  return typeof v === 'undefined';\n}\nfunction isFunction(v) {\n  return typeof v === 'function';\n}\n\n/**\n * Generate an exact duplicate (with no references) of a specific value.\n *\n * @private\n * @param {Object} The value to duplicate\n * @returns {Object} a unique, duplicated value\n */\nfunction generateValue(val) {\n  if (val) {\n    return extend({}, { val }).val;\n  }\n  return val;\n}\n\n/**\n * An additional type checker used to determine if the property is of internal\n * use or not a type that can be translated into JSON (like functions).\n *\n * @private\n * @param {Object} obj The object which has the property to check\n * @param {String} The property name to check\n * @returns {Boolean} Whether the property is deemed special or not\n */\nfunction isSpecialProperty(obj, key) {\n  return isFunction(obj[key]) || key.substring(0, 2) === '$$' || key.substring(0, 1) === '_';\n}\n\n/**\n * Checks whether a key is safe to use as a property name to prevent\n * prototype pollution attacks.\n *\n * @private\n * @param {String} key The key to check\n * @returns {Boolean} Whether the key is safe to use\n */\nfunction isSafeKey(key) {\n  return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';\n}\n\n/**\n * Finds the parent object from a JSON-Pointer (\"/foo/bar/baz\" = \"bar\" is \"baz\" parent),\n * also creates the object structure needed.\n *\n * @private\n * @param {Object} data The root object to traverse through\n * @param {String} The JSON-Pointer string to use when traversing\n * @returns {Object} The parent object\n */\nfunction getParent(data, str) {\n  const seperator = '/';\n  const parts = str.substring(1).split(seperator).slice(0, -1);\n  let numPart;\n\n  parts.forEach((part) => {\n    if (!isSafeKey(part)) {\n      throw new Error(`Unsafe key in path: ${part}`);\n    }\n    numPart = +part;\n    const newPart = !isNaN(numPart) ? [] : {};\n    data[numPart || part] = isUndef(data[numPart || part]) ? newPart : data[part];\n    data = data[numPart || part];\n  });\n\n  return data;\n}\n\n/**\n * Cleans an object of all its properties, unless they're deemed special or\n * cannot be removed by configuration.\n *\n * @private\n * @param {Object} obj The object to clean\n */\nfunction emptyObject(obj) {\n  Object.keys(obj).forEach((key) => {\n    const config = Object.getOwnPropertyDescriptor(obj, key);\n\n    if (config.configurable && !isSpecialProperty(obj, key) && isSafeKey(key)) {\n      delete obj[key];\n    }\n  });\n}\n\n/**\n * Compare an object with another, could be object, array, number, string, bool.\n * @private\n *\n * @param {Object} a The first object to compare\n * @param {Object} a The second object to compare\n * @returns {Boolean} Whether the objects are identical\n */\nfunction compare(a, b) {\n  let isIdentical = true;\n\n  if (isObject(a) && isObject(b)) {\n    if (Object.keys(a).length !== Object.keys(b).length) {\n      return false;\n    }\n    Object.keys(a).forEach((key) => {\n      if (!compare(a[key], b[key])) {\n        isIdentical = false;\n      }\n    });\n    return isIdentical;\n  }\n  if (isArray(a) && isArray(b)) {\n    if (a.length !== b.length) {\n      return false;\n    }\n    for (let i = 0, l = a.length; i < l; i += 1) {\n      if (!compare(a[i], b[i])) {\n        return false;\n      }\n    }\n    return true;\n  }\n  return a === b;\n}\n\n/**\n * Generates patches by comparing two arrays.\n *\n * @private\n * @param {Array} oldA The old (original) array, which will be patched\n * @param {Array} newA The new array, which will be used to compare against\n * @returns {Array} An array of patches (if any)\n */\nfunction patchArray(original, newA, basePath) {\n  let patches = [];\n  const oldA = original.slice();\n  let tmpIdx = -1;\n\n  function findIndex(a, id, idx) {\n    if (a[idx] && isUndef(a[idx].qInfo)) {\n      return null;\n    }\n    if (a[idx] && a[idx].qInfo.qId === id) {\n      // shortcut if identical\n      return idx;\n    }\n    for (let ii = 0, ll = a.length; ii < ll; ii += 1) {\n      if (a[ii] && a[ii].qInfo.qId === id) {\n        return ii;\n      }\n    }\n    return -1;\n  }\n\n  if (compare(newA, oldA)) {\n    // array is unchanged\n    return patches;\n  }\n\n  if (!isUndef(newA[0]) && isUndef(newA[0].qInfo)) {\n    // we cannot create patches without unique identifiers, replace array...\n    patches.push({\n      op: 'replace',\n      path: basePath,\n      value: newA,\n    });\n    return patches;\n  }\n\n  for (let i = oldA.length - 1; i >= 0; i -= 1) {\n    tmpIdx = findIndex(newA, oldA[i].qInfo && oldA[i].qInfo.qId, i);\n    if (tmpIdx === -1) {\n      patches.push({\n        op: 'remove',\n        path: `${basePath}/${i}`,\n      });\n      oldA.splice(i, 1);\n    } else {\n      patches = patches.concat(JSONPatch.generate(oldA[i], newA[tmpIdx], `${basePath}/${i}`));\n    }\n  }\n\n  for (let i = 0, l = newA.length; i < l; i += 1) {\n    tmpIdx = findIndex(oldA, newA[i].qInfo && newA[i].qInfo.qId);\n    if (tmpIdx === -1) {\n      patches.push({\n        op: 'add',\n        path: `${basePath}/${i}`,\n        value: newA[i],\n      });\n      oldA.splice(i, 0, newA[i]);\n    } else if (tmpIdx !== i) {\n      patches.push({\n        op: 'move',\n        path: `${basePath}/${i}`,\n        from: `${basePath}/${tmpIdx}`,\n      });\n      oldA.splice(i, 0, oldA.splice(tmpIdx, 1)[0]);\n    }\n  }\n  return patches;\n}\n\n/**\n * Generate an array of JSON-Patch:es following the JSON-Patch Specification Draft.\n *\n * See [specification draft](http://tools.ietf.org/html/draft-ietf-appsawg-json-patch-10)\n *\n * Does NOT currently generate patches for arrays (will replace them)\n * @private\n *\n * @param {Object} original The object to patch to\n * @param {Object} newData The object to patch from\n * @param {String} [basePath] The base path to use when generating the paths for\n *                            the patches (normally not used)\n * @returns {Array} An array of patches\n */\nJSONPatch.generate = function generate(original, newData, basePath) {\n  basePath = basePath || '';\n  let patches = [];\n\n  Object.keys(newData).forEach((key) => {\n    const val = generateValue(newData[key]);\n    const oldVal = original[key];\n    const tmpPath = `${basePath}/${key}`;\n\n    if (compare(val, oldVal) || isSpecialProperty(newData, key)) {\n      return;\n    }\n    if (isUndef(oldVal)) {\n      // property does not previously exist\n      patches.push({\n        op: 'add',\n        path: tmpPath,\n        value: val,\n      });\n    } else if (isObject(val) && isObject(oldVal)) {\n      // we need to generate sub-patches for this, since it already exist\n      patches = patches.concat(JSONPatch.generate(oldVal, val, tmpPath));\n    } else if (isArray(val) && isArray(oldVal)) {\n      patches = patches.concat(patchArray(oldVal, val, tmpPath));\n    } else {\n      // it's a simple property (bool, string, number)\n      patches.push({\n        op: 'replace',\n        path: `${basePath}/${key}`,\n        value: val,\n      });\n    }\n  });\n\n  Object.keys(original).forEach((key) => {\n    if (isUndef(newData[key]) && !isSpecialProperty(original, key)) {\n      // this property does not exist anymore\n      patches.push({\n        op: 'remove',\n        path: `${basePath}/${key}`,\n      });\n    }\n  });\n\n  return patches;\n};\n\n/**\n * Apply a list of patches to an object.\n * @private\n *\n * @param {Object} original The object to patch\n * @param {Array} patches The list of patches to apply\n */\nJSONPatch.apply = function apply(original, patches) {\n  patches.forEach((patch) => {\n    let parent = getParent(original, patch.path);\n    let key = patch.path.split('/').splice(-1)[0];\n    let target = key && isNaN(+key) ? parent[key] : parent[+key] || parent;\n    const from = patch.from ? patch.from.split('/').splice(-1)[0] : null;\n\n    if (!isSafeKey(key) || (from !== null && !isSafeKey(from))) {\n      const unsafeKey = !isSafeKey(key) ? key : from;\n      throw new Error(`Unsafe key in patch path: ${unsafeKey}`);\n    }\n\n    if (patch.path === '/') {\n      parent = null;\n      target = original;\n    }\n\n    if (patch.op === 'add' || patch.op === 'replace') {\n      if (isArray(parent)) {\n        // trust indexes from patches, so don't replace the index if it's an add\n        if (key === '-') {\n          key = parent.length;\n        }\n        parent.splice(+key, patch.op === 'add' ? 0 : 1, patch.value);\n      } else if (isArray(target) && isArray(patch.value)) {\n        const newValues = patch.value.slice();\n        // keep array reference if possible...\n        target.length = 0;\n        target.push(...newValues);\n      } else if (isObject(target) && isObject(patch.value)) {\n        // keep object reference if possible...\n        emptyObject(target);\n        extend(target, patch.value);\n      } else if (!parent) {\n        throw new Error('Patchee is not an object we can patch');\n      } else {\n        // simple value\n        parent[key] = patch.value;\n      }\n    } else if (patch.op === 'move') {\n      const oldParent = getParent(original, patch.from);\n      if (isArray(parent)) {\n        parent.splice(+key, 0, oldParent.splice(+from, 1)[0]);\n      } else {\n        parent[key] = oldParent[from];\n        delete oldParent[from];\n      }\n    } else if (patch.op === 'remove') {\n      if (isArray(parent)) {\n        parent.splice(+key, 1);\n      } else {\n        delete parent[key];\n      }\n    }\n  });\n};\n\n/**\n * Deep clone an object.\n * @private\n *\n * @param {Object} obj The object to clone\n * @returns {Object} A new object identical to the `obj`\n */\nJSONPatch.clone = function clone(obj) {\n  return extend({}, obj);\n};\n\n/**\n * Creates a JSON-patch.\n * @private\n *\n * @param {String} op The operation of the patch. Available values: \"add\", \"remove\", \"move\"\n * @param {Object} [val] The value to set the `path` to. If `op` is `move`, `val`\n *                       is the \"from JSON-path\" path\n * @param {String} path The JSON-path for the property to change (e.g. \"/qHyperCubeDef/columnOrder\")\n * @returns {Object} A patch following the JSON-patch specification\n */\nJSONPatch.createPatch = function createPatch(op, val, path) {\n  const patch = {\n    op: op.toLowerCase(),\n    path,\n  };\n  if (patch.op === 'move') {\n    patch.from = val;\n  } else if (typeof val !== 'undefined') {\n    patch.value = val;\n  }\n  return patch;\n};\n\n/**\n * Apply the differences of two objects (keeping references if possible).\n * Identical to running `JSONPatch.apply(original, JSONPatch.generate(original, newData));`\n * @private\n *\n * @param {Object} original The object to update/patch\n * @param {Object} newData the object to diff against\n *\n * @example\n * var obj1 = { foo: [1,2,3], bar: { baz: true, qux: 1 } };\n * var obj2 = { foo: [4,5,6], bar: { baz: false } };\n * JSONPatch.updateObject(obj1, obj2);\n * // => { foo: [4,5,6], bar: { baz: false } };\n */\nJSONPatch.updateObject = function updateObject(original, newData) {\n  if (!Object.keys(original).length) {\n    extend(original, newData);\n    return;\n  }\n  JSONPatch.apply(original, JSONPatch.generate(original, newData));\n};\n\nexport default JSONPatch;\n","/* eslint no-underscore-dangle: 0 */\n/* eslint no-param-reassign: 0 */\n/* eslint no-console: 0 */\n/* eslint no-use-before-define: 0 */\n\n// Hooks implementation heavily inspired by preact hooks\n\nlet currentComponent;\nlet currentIndex;\n\nfunction depsChanged(prevDeps, deps) {\n  if (!prevDeps) {\n    return true;\n  }\n  if (deps.length !== prevDeps.length) {\n    return true;\n  }\n\n  for (let i = 0; i < deps.length; i++) {\n    if (prevDeps[i] !== deps[i]) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nexport function initiate(component, { explicitResize = false } = {}) {\n  component.__hooks = {\n    obsolete: false,\n    error: false,\n    waitForData: false,\n    chain: {\n      promise: null,\n      resolve: () => {},\n    },\n    list: [],\n    snaps: [],\n    menus: [],\n    actions: {\n      list: [],\n    },\n    pendingEffects: [],\n    pendingLayoutEffects: [],\n    pendingPromises: [],\n    resizer: {\n      setters: [],\n      explicitResize,\n    },\n    accessibility: {\n      setter: null,\n    },\n    contraintsWarning: true,\n  };\n}\n\nexport function teardown(component) {\n  flushPending(component.__hooks.list, true);\n\n  component.__hooks.obsolete = true;\n  component.__hooks.list.length = 0;\n  component.__hooks.pendingEffects.length = 0;\n  component.__hooks.pendingLayoutEffects.length = 0;\n  component.__hooks.actions = null;\n  component.__hooks.imperativeHandle = null;\n  component.__hooks.resizer = null;\n  component.__hooks.accessibility = null;\n\n  component.__actionsDispatch = null;\n\n  clearTimeout(component.__hooks.micro);\n  cancelAnimationFrame(component.__hooks.macro);\n}\n\nexport async function run(component) {\n  if (component.__hooks.obsolete) {\n    return Promise.resolve();\n  }\n\n  currentIndex = -1;\n  currentComponent = component;\n\n  let num = -1;\n\n  if (currentComponent.__hooks.initiated) {\n    num = currentComponent.__hooks.list.length;\n  }\n\n  try {\n    currentComponent.fn.call(null);\n  } catch (e) {\n    console.error(e);\n  }\n\n  currentComponent.__hooks.initiated = true;\n\n  if (__NEBULA_DEV__) {\n    if (num > -1 && num !== currentComponent.__hooks.list.length) {\n      console.error('Detected a change in the order of hooks called.');\n    }\n  }\n\n  const hooks = currentComponent.__hooks;\n  dispatchActions(currentComponent);\n\n  currentIndex = undefined;\n  currentComponent = undefined;\n\n  if (!hooks.chain.promise) {\n    hooks.chain.promise = new Promise((resolve) => {\n      hooks.chain.resolve = resolve;\n    });\n  }\n\n  flushMicro(hooks);\n  scheduleMacro(hooks);\n\n  return hooks.chain.promise;\n}\n\nfunction flushPending(list, skipUpdate) {\n  try {\n    list.forEach((fx) => {\n      // teardown existing\n      typeof fx.teardown === 'function' ? fx.teardown() : null;\n\n      // update\n      if (!skipUpdate) {\n        fx.teardown = fx.value[0]();\n      }\n    });\n  } catch (e) {\n    console.error(e);\n  }\n\n  list.length = 0;\n}\n\nfunction flushMicro(hooks) {\n  flushPending(hooks.pendingLayoutEffects);\n}\nfunction flushMacro(hooks) {\n  flushPending(hooks.pendingEffects);\n  hooks.macro = null;\n\n  maybeEndChain(hooks);\n}\n\nfunction maybeEndChain(hooks) {\n  if (hooks.pendingPromises.length || hooks.micro || hooks.macro) {\n    return;\n  }\n  hooks.chain.promise = null;\n  hooks.chain.resolve(!hooks.waitForData);\n}\n\nexport function runSnaps(component, layout) {\n  try {\n    return Promise.all(component.__hooks.snaps.map((h) => Promise.resolve(h.fn(layout)))).then(\n      (snaps) => snaps[snaps.length - 1]\n    );\n  } catch (e) {\n    console.error(e);\n  }\n  return Promise.resolve();\n}\n\nexport function runMenu(component, menu, event, menuBuilder) {\n  try {\n    return Promise.all(component.__hooks.menus.map((h) => Promise.resolve(h.fn(menu, event, menuBuilder)))).then(\n      (menus) => menus[menus.length - 1]\n    );\n  } catch (e) {\n    console.error(e);\n  }\n  return Promise.resolve();\n}\n\nexport function getImperativeHandle(component) {\n  return component.__hooks.imperativeHandle;\n}\n\nfunction dispatchActions(component) {\n  if (component.__actionsDispatch && component.__hooks.actions.changed) {\n    component.__actionsDispatch(component.__hooks.actions.list.slice());\n    component.__hooks.actions.changed = false;\n  }\n}\n\nexport function observeActions(component, callback) {\n  component.__actionsDispatch = callback;\n  if (component.__hooks) {\n    component.__hooks.actions.changed = true;\n    dispatchActions(component);\n  }\n}\n\nfunction getHook(idx) {\n  if (typeof currentComponent === 'undefined') {\n    throw new Error('Invalid stardust hook call. Hooks can only be called inside a visualization component.');\n  }\n  const hooks = currentComponent.__hooks;\n  if (idx >= hooks.list.length) {\n    hooks.list.push({});\n  }\n  return hooks.list[idx];\n}\n\nfunction scheduleMicro(component) {\n  if (component.__hooks.micro) {\n    return;\n  }\n\n  component.__hooks.micro = setTimeout(() => {\n    component.__hooks.micro = null;\n    run(component);\n  }, 0);\n}\n\nfunction scheduleMacro(hooks) {\n  if (hooks.macro) {\n    return;\n  }\n\n  hooks.macro = requestAnimationFrame(() => {\n    flushMacro(hooks);\n  });\n}\n\nfunction useInternalContext(name) {\n  getHook(++currentIndex);\n  const ctx = currentComponent.context;\n  return ctx[name];\n}\n\nexport function updateRectOnNextRun(component) {\n  if (component.__hooks) {\n    component.__hooks.resizer.update = true;\n  }\n}\n\n// ========  EXTERNAL =========\n\nexport function hook(cb) {\n  return {\n    __hooked: true,\n    fn: cb,\n    initiate,\n    run,\n    teardown,\n    runSnaps,\n    runMenu,\n    focus,\n    blur,\n    observeActions,\n    getImperativeHandle,\n    updateRectOnNextRun,\n  };\n}\n\n/**\n * @template S\n * @interface SetStateFn\n * @param {S|function(S):S} newState - The new state\n */\n\n/**\n * Creates a stateful value.\n * @entry\n * @template S\n * @param {S|function():S} initialState - The initial state.\n * @returns {Array<S,SetStateFn<S>>} The value and a function to update it.\n * @example\n * import { useState } from '@nebula.js/stardust';\n * // ...\n * // initiate with simple primitive value\n * const [zoomed, setZoomed] = useState(false);\n *\n * // update\n * setZoomed(true);\n *\n * // lazy initiation\n * const [value, setValue] = useState(() => heavy());\n *\n */\nexport function useState(initial) {\n  const h = getHook(++currentIndex);\n  if (!h.value) {\n    // initiate\n    h.component = currentComponent;\n    const setState = (s) => {\n      if (h.component.__hooks.obsolete) {\n        if (__NEBULA_DEV__) {\n          throw new Error(\n            'Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.'\n          );\n        }\n        return;\n      }\n      const v = typeof s === 'function' ? s(h.value[0]) : s;\n      if (v !== h.value[0]) {\n        h.value[0] = v;\n        scheduleMicro(h.component);\n      }\n    };\n    h.value = [typeof initial === 'function' ? initial() : initial, setState];\n  }\n  return h.value;\n}\n\n/**\n * Callback function that should return a function that in turns gets\n * called before the hook runs again or when the component is destroyed.\n * For example to remove any listeners added in the callback itself.\n * @typedef {function():(void | function():void)} EffectCallback\n */\n\n/**\n * Triggers a callback function when a dependent value changes.\n *\n * Omitting the dependency array will have the hook run on each update\n * and an empty dependency array runs only once.\n * @entry\n * @param {EffectCallback} effect - The callback.\n * @param {Array<any>=} deps - The dependencies that should trigger the callback.\n * @example\n * import { useEffect } from '@nebula.js/stardust';\n * // ...\n * useEffect(() => {\n *   console.log('mounted');\n *   return () => {\n *     console.log('unmounted');\n *   };\n * }, []);\n *\n * useEffect(() => {\n *   const clickHandler = () => { console.log('click') };\n *   const button = element.querySelector('.button');\n *   button.addEventListener('click', clickHandler);\n *   return () => {\n *     button.removeEventListener('click', clickHandler);\n *   };\n * }, []);\n */\nexport function useEffect(cb, deps) {\n  if (__NEBULA_DEV__) {\n    if (typeof deps !== 'undefined' && !Array.isArray(deps)) {\n      throw new Error('Invalid dependencies. Second argument must be an array.');\n    }\n  }\n  const h = getHook(++currentIndex);\n  if (depsChanged(h.value ? h.value[1] : undefined, deps)) {\n    h.value = [cb, deps];\n    if (currentComponent.__hooks.pendingEffects.indexOf(h) === -1) {\n      currentComponent.__hooks.pendingEffects.push(h);\n    }\n  }\n}\n\n// don't expose this hook since it's no different than useEffect except for the timing\nfunction useLayoutEffect(cb, deps) {\n  if (__NEBULA_DEV__) {\n    if (typeof deps !== 'undefined' && !Array.isArray(deps)) {\n      throw new Error('Invalid dependencies. Second argument must be an array.');\n    }\n  }\n  const h = getHook(++currentIndex);\n  if (depsChanged(h.value ? h.value[1] : undefined, deps)) {\n    h.value = [cb, deps];\n    currentComponent.__hooks.pendingLayoutEffects.push(h);\n  }\n}\n\n/**\n * Creates a stateful value when a dependent changes.\n * @entry\n * @template T\n * @param {function():T} factory - The factory function.\n * @param {Array<any>} deps - The dependencies.\n * @returns {T} The value returned from the factory function.\n * @example\n * import { useMemo } from '@nebula.js/stardust';\n * // ...\n * const v = useMemo(() => {\n *   return doSomeHeavyCalculation();\n * }), []);\n */\nexport function useMemo(fn, deps) {\n  if (__NEBULA_DEV__) {\n    if (!deps) {\n      console.warn('useMemo called without dependencies.');\n    }\n  }\n  const h = getHook(++currentIndex);\n  if (depsChanged(h.value ? h.value[0] : undefined, deps)) {\n    h.value = [deps, fn()];\n  }\n  return h.value[1];\n}\n\n/**\n * Reference object returned from useRef\n * @interface Ref\n * @template R\n * @property {R} current Current value\n */\n\n/**\n * Creates a reference to a value not needed for rendering\n *\n * While Nebula does not have a virtual DOM, it is still useful\n * to have a reference to an object that is retained across\n * renders and in it self does not trigger a render.\n * @entry\n * @template R\n * @param {R} initialValue - The initial value.\n * @returns {Ref<R>} An object with the current value\n * @example\n * import { useRef } from '@nebula.js/stardust';\n * // ...\n * // initiate with simple value\n * const timesRendered = useRef(0);\n *\n * useEffect(() => {\n *  render(layout);\n *  // increments the render counter, a useState would trigger another render\n *  timesRendered.current += 1;\n * },[layout]);\n *\n */\nexport function useRef(initialValue) {\n  return useMemo(() => ({ current: initialValue }), []);\n}\n\n/**\n * Runs a callback function when a dependent changes.\n *\n * Useful for async operations that otherwise cause no side effects.\n * Do not add for example listeners withing the callback as there is no teardown function.\n * @entry\n * @template P\n * @param {function():Promise<P>} factory - The factory function that calls the promise.\n * @param {Array<any>=} deps - The dependencies.\n * @returns {Array<P,Error>} The resolved value or rejected error\n * @example\n * import { usePromise } from '@nebula.js/stardust';\n * import { useModel } from '@nebula.js/stardust';\n * // ...\n * const model = useModel();\n * const [resolved, rejected] = usePromise(() => model.getLayout(), [model]);\n */\nexport function usePromise(p, deps) {\n  const [obj, setObj] = useState(() => ({\n    resolved: undefined,\n    rejected: undefined,\n    state: 'pending',\n  }));\n\n  const h = getHook(++currentIndex);\n  if (!h.component) {\n    h.component = currentComponent;\n  }\n\n  useLayoutEffect(() => {\n    let canceled = false;\n    h.teardown = () => {\n      canceled = true;\n      h.teardown = null;\n      const idx = h.component.__hooks.pendingPromises.indexOf(h);\n      if (idx > -1) {\n        h.component.__hooks.pendingPromises.splice(idx, 1);\n      }\n    };\n\n    // setObj({\n    //   ...obj,\n    //   state: 'pending',\n    // });\n\n    p()\n      .then((v) => {\n        if (canceled) {\n          return;\n        }\n        h.teardown && h.teardown();\n        setObj({\n          resolved: v,\n          rejected: undefined,\n          state: 'resolved',\n        });\n      })\n      .catch((e) => {\n        if (canceled) {\n          return;\n        }\n        h.teardown && h.teardown();\n        setObj({\n          resolved: undefined,\n          rejected: e,\n          state: 'resolved',\n        });\n      });\n\n    h.component.__hooks.pendingPromises.push(h);\n\n    return () => {\n      h.teardown && h.teardown();\n    };\n  }, deps);\n  return [obj.resolved, obj.rejected];\n}\n\n// ---- composed hooks ------\n/**\n * Gets the HTMLElement this visualization is rendered into.\n * @entry\n * @returns {HTMLElement}\n * @example\n * import { useElement } from '@nebula.js/stardust';\n * // ...\n * const el = useElement();\n * el.innerHTML = 'Hello!';\n */\nexport function useElement() {\n  return useInternalContext('element');\n}\n\n/**\n * @interface Rect\n * @property {number} top\n * @property {number} left\n * @property {number} width\n * @property {number} height\n */\n\n/**\n * Gets the size of the HTMLElement the visualization is rendered into.\n * @entry\n * @returns {Rect} The size of the element.\n * @example\n * import { useRect } from '@nebula.js/stardust';\n * // ...\n * const rect = useRect();\n * useEffect(() => {\n *   console.log('resize');\n * }, [rect.width, rect.height])\n */\nexport function useRect() {\n  const element = useElement();\n  const ref = currentComponent.__hooks.resizer;\n\n  const [rect, setRect] = useState(() => {\n    const { left, top, width, height } = element.getBoundingClientRect();\n    return { left, top, width, height };\n  });\n\n  ref.current = rect;\n\n  if (ref.setters.indexOf(setRect) === -1) {\n    ref.setters.push(setRect);\n  }\n\n  // a forced resize should alwas update size regardless of whether ResizeObserver is available\n  if (ref.update && ref.resize) {\n    ref.update = false;\n    ref.resize();\n  }\n\n  useLayoutEffect(() => {\n    if (ref.initiated) {\n      return undefined;\n    }\n    ref.initiated = true;\n\n    const handleResize = () => {\n      // TODO - should we really care about left/top?\n      const { left, top, width, height } = element.getBoundingClientRect();\n      const r = ref.current;\n\n      if (r.width !== width || r.height !== height || r.left !== left || r.top !== top) {\n        ref.setters.forEach((setR) => setR({ left, top, width, height }));\n      }\n    };\n\n    ref.resize = () => {\n      handleResize();\n    };\n\n    // if component is configured with explicitResize, then we skip the\n    // size observer and let the user control the resize themselves\n    if (ref.explicitResize) {\n      return () => {\n        ref.resize = undefined;\n      };\n    }\n\n    // TODO - document that ResizeObserver needs to be polyfilled by the user\n    // if they want auto resize to work\n    if (typeof ResizeObserver === 'function') {\n      let resizeObserver = new ResizeObserver(handleResize);\n      resizeObserver.observe(element);\n      return () => {\n        resizeObserver.unobserve(element);\n        resizeObserver.disconnect(element);\n        resizeObserver = null;\n        ref.resize = undefined;\n      };\n    }\n    return undefined;\n  }, [element]);\n\n  return rect;\n}\n\n/**\n * Gets the layout of the generic object associated with this visualization.\n * @entry\n * @returns {qix.GenericObjectLayout}\n * @example\n * import { useLayout } from '@nebula.js/stardust';\n * // ...\n * const layout = useLayout();\n * console.log(layout);\n */\nexport function useLayout() {\n  return useInternalContext('layout');\n}\n\n/**\n * Gets the layout of the generic object associated with this visualization.\n *\n * Unlike the regular layout, a _stale_ layout is not changed when a generic object enters\n * the modal state. This is mostly notable in that `qSelectionInfo.qInSelections` in the layout is\n * always `false`.\n * The returned value from `useStaleLayout()` and `useLayout()` are identical when the object\n * is not in a modal state.\n * @entry\n * @returns {qix.GenericObjectLayout}\n * @example\n * import { useStaleLayout } from '@nebula.js/stardust';\n * // ...\n * const staleLayout = useStaleLayout();\n * console.log(staleLayout);\n */\nexport function useStaleLayout() {\n  const layout = useInternalContext('layout');\n  const [ref] = useState({ current: layout });\n  if (!layout.qSelectionInfo || !layout.qSelectionInfo.qInSelections) {\n    ref.current = layout;\n  }\n  return ref.current;\n}\n\n/**\n * Gets the layout of the app associated with this visualization.\n * @entry\n * @returns {qix.NxAppLayout} The app layout\n * @example\n * import { useAppLayout } from '@nebula.js/stardust';\n * // ...\n * const appLayout = useAppLayout();\n * console.log(appLayout.qLocaleInfo);\n */\nexport function useAppLayout() {\n  return useInternalContext('appLayout');\n}\n\n/**\n * Gets the generic object API of the generic object connected to this visualization.\n * @entry\n * @returns {qix.GenericObject|undefined}\n * @example\n * import { useModel } from '@nebula.js/stardust';\n * // ...\n * const model = useModel();\n * useEffect(() => {\n *   model.getInfo().then(info => {\n *     console.log(info);\n *   })\n * }, []);\n */\nexport function useModel() {\n  const model = useInternalContext('model');\n  return model && model.session ? model : undefined;\n}\n\n/**\n * Gets the doc API.\n * @entry\n * @returns {qix.Doc|undefined} The doc API.\n * @example\n * import { useApp } from '@nebula.js/stardust';\n * // ...\n * const app = useApp();\n * useEffect(() => {\n *   app.getAllInfos().then(infos => {\n *     console.log(infos);\n *   })\n * }, []);\n */\nexport function useApp() {\n  const app = useInternalContext('app');\n  return app && app.session ? app : undefined;\n}\n\n/**\n * Gets the global API.\n * @entry\n * @returns {qix.Global|undefined} The global API.\n * @example\n * import { useGlobal } from '@nebula.js/stardust';\n *\n * // ...\n * const g = useGlobal();\n * useEffect(() => {\n *   g.engineVersion().then(version => {\n *     console.log(version);\n *   })\n * }, []);\n */\nexport function useGlobal() {\n  const global = useInternalContext('global');\n  return global && global.session ? global : undefined;\n}\n\n/**\n * Gets the object selections.\n * @entry\n * @returns {ObjectSelections} The object selections.\n * @example\n * import { useSelections } from '@nebula.js/stardust';\n * import { useElement } from '@nebula.js/stardust';\n * import { useEffect } from '@nebula.js/stardust';\n * // ...\n * const selections = useSelections();\n * const element = useElement();\n * useEffect(() => {\n *   const onClick = () => {\n *     selections.begin('/qHyperCubeDef');\n *   };\n *   element.addEventListener('click', onClick);\n *   return () => {\n *     element.removeEventListener('click', onClick);\n *   };\n * }, []);\n */\nexport function useSelections() {\n  return useInternalContext('selections');\n}\n\n/**\n * Gets the theme.\n * @entry\n * @returns {Theme} The theme.\n * @example\n * import { useTheme } from '@nebula.js/stardust';\n *\n * const theme = useTheme();\n * console.log(theme.getContrastingColorTo('#ff0000'));\n */\nexport function useTheme() {\n  return useInternalContext('theme');\n}\n\n/**\n * Gets the embed instance used.\n * @entry\n * @since 1.7.0\n * @returns {Embed} The embed instance used.\n * @example\n * import { useEmbed } from '@nebula.js/stardust';\n *\n * const embed = useEmbed();\n * embed.render(...)\n */\nexport function useEmbed() {\n  return useInternalContext('nebbie');\n}\n\n/**\n * Gets the translator.\n * @entry\n * @returns {Translator} The translator.\n * @example\n * import { useTranslator } from '@nebula.js/stardust';\n * // ...\n * const translator = useTranslator();\n * console.log(translator.get('SomeString'));\n */\nexport function useTranslator() {\n  return useInternalContext('translator');\n}\n\n/**\n * Gets the device type. ('touch' or 'desktop')\n * @entry\n * @returns {string} device type.\n * @example\n * import { useDeviceType } from '@nebula.js/stardust';\n * // ...\n * const deviceType = useDeviceType();\n * if (deviceType === 'touch') { ... };\n */\nexport function useDeviceType() {\n  return useInternalContext('deviceType');\n}\n\n/**\n * Gets the navigation api to control sheet navigation. When useNavigation is used in Sense, it returns Sense.navigation.\n * @entry\n * @experimental\n * @since 5.4.0\n * @returns {Navigation} navigation api.\n * @example\n * import { useNavigation } from \"@nebula.js/stardust\";\n * // ...\n * const navigation = useNavigation();\n * const [activeSheetId, setActiveSheetId] = useState(navigation?.getCurrentSheetId() || \"\");\n */\nexport function useNavigation() {\n  return useInternalContext('navigation');\n}\n\n/**\n * Gets the array of plugins provided when rendering the visualization.\n * @entry\n * @returns {Plugin[]} array of plugins.\n * @example\n * // provide plugins that can be used when rendering\n * embed(app).render({\n *   element,\n *   type: 'my-chart',\n *   plugins: [plugin]\n * });\n *\n * @example\n * // It's up to the chart implementation to make use of plugins in any way\n * import { usePlugins } from '@nebula.js/stardust';\n * // ...\n * const plugins = usePlugins();\n * plugins.forEach((plugin) => {\n *   // Invoke plugin\n *   plugin.fn();\n * });\n */\nexport function usePlugins() {\n  return useInternalContext('plugins');\n}\n\n/**\n * @template A\n * @interface ActionDefinition\n * @property {A} action\n * @property {boolean=} hidden\n * @property {boolean=} disabled\n * @property {object=} icon\n * @property {string} [icon.viewBox=\"0 0 16 16\"]\n * @property {Array<object>} icon.shapes\n * @property {string} icon.shapes[].type\n * @property {object=} icon.shapes[].attrs\n */\n\n/**\n * Registers a custom action.\n * @entry\n * @template A\n * @param {function():ActionDefinition<A>} factory\n * @param {Array<any>=} deps\n * @returns {A}\n *\n * @example\n * import { useAction } from '@nebula.js/stardust';\n * // ...\n * const [zoomed, setZoomed] = useState(false);\n * const act = useAction(() => ({\n *   hidden: false,\n *   disabled: zoomed,\n *   action() {\n *     setZoomed(prev => !prev);\n *   },\n *   icon: {}\n * }), [zoomed]);\n */\nexport function useAction(fn, deps) {\n  const [ref] = useState({\n    action() {\n      ref._config.action.call(null);\n    },\n  });\n\n  if (!ref.component) {\n    ref.component = currentComponent;\n    currentComponent.__hooks.actions.list.push(ref);\n  }\n  useMemo(() => {\n    const a = fn();\n    ref._config = a;\n\n    ref.active = a.active || false;\n    ref.disabled = a.disabled || false;\n    ref.hidden = a.hidden || false;\n    ref.label = a.label || '';\n    ref.getSvgIconShape = a.icon ? () => a.icon : undefined;\n\n    ref.key = a.key || ref.component.__hooks.actions.list.length;\n\n    ref.component.__hooks.actions.changed = true;\n  }, deps);\n\n  return ref.action;\n}\n\n/**\n * @interface Constraints\n * @deprecated Use Interactions instead\n * @property {boolean=} passive=false Whether or not passive constraints are on. Should block any passive interaction by users, ie: tooltips\n * @property {boolean=} active=false Whether or not active constraints are on. Should block any active interaction by users, ie: scroll, click\n * @property {boolean=} select=false Whether or not select constraints are on. Should block any selection action. Implied when active is true.\n * @property {boolean=} edit=true Whether or not edit actions are available. Should block any edit action.\n */\n\n/**\n * Gets the desired constraints that should be applied when rendering the visualization.\n *\n * The constraints are set on the embed configuration before the visualization is rendered\n * and should be respected when implementing the visualization.\n * @entry\n * @deprecated Change to useInteractions instead\n * @returns {Constraints}\n * @example\n * // configure embed to disallow active interactions when rendering\n * embed(app, {\n *  context: {\n *    constraints: {\n *      active: true, // do not allow interactions\n *    }\n *  }\n * }).render({ element, id: 'sdfsdf' });\n *\n * @example\n * import { useConstraints } from '@nebula.js/stardust';\n * // ...\n * const constraints = useConstraints();\n * useEffect(() => {\n *   if (constraints.active) {\n *     // do not add any event listener if active constraint is set\n *     return undefined;\n *   }\n *   const listener = () => {};\n *   element.addEventListener('click', listener);\n *   return () => {\n *     element.removeEventListener('click', listener);\n *   };\n * }, [constraints])\n *\n */\nexport function useConstraints() {\n  if (__NEBULA_DEV__) {\n    if (currentComponent.__hooks.contraintsWarning) {\n      console.warn(\n        'useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints.'\n      );\n      currentComponent.__hooks.contraintsWarning = false;\n    }\n  }\n  return useInternalContext('constraints');\n}\n\n/**\n * @interface Interactions\n * @property {boolean=} passive=true Whether or not passive interactions are on. Allows passive interaction by users, ie: tooltips\n * @property {boolean=} active=true Whether or not active interactions are on. Allows active interaction by users, ie: scroll, click\n * @property {boolean=} select=true Whether or not select interactions are on. Allows selection actions. Implied when active is false.\n * @property {boolean=} edit=false Whether or not edit actions are on. Allows edit actions.\n */\n/**\n * Gets the desired interaction states that should be applied when rendering the visualization.\n *\n * The interactions are set on the embed configuration before the visualization is rendered\n * and should be respected when implementing the visualization.\n * @entry\n * @returns {Interactions}\n * @example\n * // configure embed to disallow active interactions when rendering\n * embed(app, {\n *  context: {\n *    interactions: {\n *      active: false, // do not allow interactions\n *    }\n *  }\n * }).render({ element, id: 'sdfsdf' });\n *\n * @example\n * import { useInteractionState } from '@nebula.js/stardust';\n * // ...\n * const interactions = useInteractionState();\n * useEffect(() => {\n *   if (!interactions.active) {\n *     // do not add any event listener if active constraint is set\n *     return undefined;\n *   }\n *   const listener = () => {};\n *   element.addEventListener('click', listener);\n *   return () => {\n *     element.removeEventListener('click', listener);\n *   };\n * }, [interactions])\n *\n */\nexport function useInteractionState() {\n  return useInternalContext('interactions');\n}\n\n/**\n * Gets the options object provided when rendering the visualization.\n *\n * This is an empty object by default but enables customization of the visualization through this object.\n * Options are different from setting properties on the generic object in that options\n * are only temporary settings applied to the visualization when rendered.\n *\n * You have the responsibility to provide documentation of the options you support, if any.\n * @entry\n * @returns {object}\n *\n * @example\n * // when embedding the visualization, anything can be set in options\n * embed(app).render({\n *   element,\n *   type: 'my-chart',\n *   options: {\n *     showNavigation: true,\n *   }\n * });\n *\n * @example\n * // it is up to you use and implement the provided options\n * import { useOptions } from '@nebula.js/stardust';\n * import { useEffect } from '@nebula.js/stardust';\n * // ...\n * const options = useOptions();\n * useEffect(() => {\n *   if (!options.showNavigation) {\n *     // hide navigation\n *   } else {\n *     // show navigation\n *   }\n * }, [options.showNavigation]);\n *\n */\nexport function useOptions() {\n  return useInternalContext('options');\n}\n\n/**\n * This is an empty object by default, but enables you to provide a custom API of your visualization to\n * make it possible to control after it has been rendered.\n *\n * You can only use this hook once, calling it more than once is considered an error.\n * @entry\n * @template T\n * @param {function():T} factory\n * @param {Array<any>=} deps\n * @example\n * import { useImperativeHandle } form '@nebula.js/stardust';\n * // ...\n * useImperativeHandle(() => ({\n *   resetZoom() {\n *     setZoomed(false);\n *   }\n * }));\n *\n * @example\n * // when embedding the visualization, you can get a handle to this API\n * // and use it to control the visualization\n * const ctl = await embed(app).render({\n *   element,\n *   type: 'my-chart',\n * });\n * ctl.getImperativeHandle().resetZoom();\n */\nexport function useImperativeHandle(fn, deps) {\n  const h = getHook(++currentIndex);\n  if (!h.imperative) {\n    if (__NEBULA_DEV__) {\n      if (currentComponent.__hooks.imperativeHandle) {\n        throw new Error('useImperativeHandle already used.');\n      }\n    }\n    h.imperative = true;\n  }\n\n  if (depsChanged(h.value ? h.value[0] : undefined, deps)) {\n    const v = fn();\n    h.value = [deps, v];\n    currentComponent.__hooks.imperativeHandle = v;\n  }\n}\n\n/**\n * Registers a callback that is called when a snapshot is taken.\n * @entry\n * @param {function(qix.GenericObjectLayout): Promise<qix.GenericObjectLayout>} snapshotCallback\n * @example\n * import { onTakeSnapshot } from '@nebula.js/stardust';\n * import { useState } from '@nebula.js/stardust';\n * import { useLayout } from '@nebula.js/stardust';\n *\n * const layout = useLayout();\n * const [zoomed] = useState(layout.isZoomed || false);\n *\n * onTakeSnapshot((copyOfLayout) => {\n *   copyOfLayout.isZoomed = zoomed;\n *   return Promise.resolve(copyOfLayout);\n * });\n */\nexport function onTakeSnapshot(cb) {\n  const h = getHook(++currentIndex);\n  if (!h.value) {\n    h.value = 1;\n    currentComponent.__hooks.snaps.push(h);\n  }\n  h.fn = cb;\n}\n\n/**\n * Registers a callback that is called when the context menu opens\n * @entry\n * @param {function(menu, event): void} addItemCallback\n * @ignore\n * @example\n * import { onContextMenu } from '@nebula.js/stardust';\n * onContextMenu((menu, event) => {\n *  menu.addItem(item, index);\n * });\n */\nexport function onContextMenu(cb) {\n  const h = getHook(++currentIndex);\n  if (!h.value) {\n    h.value = 1;\n    currentComponent.__hooks.menus.push(h);\n  }\n  h.fn = cb;\n}\n\n/**\n * @interface RenderState\n * @property {any} pending\n * @property {any} restore\n */\n\n/**\n * Gets render state instance.\n *\n * Used to update properties and get a new layout without triggering onInitialRender.\n * @entry\n * @returns {RenderState} The render state.\n * @example\n * import { useRenderState } from '@nebula.js/stardust';\n *\n * const renderState = useRenderState();\n * useState(() => {\n *   if(needPropertiesUpdate(...)) {\n *      useRenderState.pending();\n *      updateProperties(...);\n *   } else {\n *      useRenderState.restore();\n *      ...\n *   }\n * }, [...]);\n */\nexport function useRenderState() {\n  getHook(++currentIndex);\n  const hooks = currentComponent.__hooks;\n  return {\n    pending: () => {\n      hooks.waitForData = true;\n    },\n    restore: () => {\n      hooks.waitForData = false;\n    },\n  };\n}\n\n/**\n * @class Emitter\n * @description The emitter instance. Implements https://nodejs.org/api/events.html#class-eventemitter.\n */\n\n/**\n * Gets an event emitter instance for the visualization.\n * @entry\n * @returns {Emitter}\n * @example\n * // In a Nebula visualization\n * import { useEmitter } from '@nebula.js/stardust';\n * useEffect(()=> {\n *   // on some trigger\n *   emitter.emit(\"trigger\", params)\n * }, [...])\n *\n * // In a mashup\n * const viz = await n.render({\n *   element: el,\n *   id: 'abcdef'\n * });\n * viz.addListener(\"trigger\", ()=> {\n *   // do something\n * })\n */\nexport function useEmitter() {\n  return useInternalContext('emitter');\n}\n\n/**\n * @interface Keyboard\n * @property {boolean} enabled Whether or not Nebula handles keyboard navigation or not.\n * @property {boolean} active Set to true when the chart is activated, ie a user tabs to the chart and presses Enter or Space.\n * @property {function(boolean)=} blur Function used by the visualization to tell Nebula it wants to relinquish focus\n * @property {function=} focus Function used by the visualization to tell Nebula it wants to focus\n * @property {function(boolean)=} focusSelection Function used by the visualization to tell Nebula that focus the selection toolbar\n */\n\n/**\n * Gets the desired keyboard settings and status to applied when rendering the visualization.\n * A visualization should in general only have tab stops if either `keyboard.enabled` is false or if active is true.\n * This means that either Nebula isn't configured to handle keyboard input or the chart is currently focused.\n * Enabling or disabling keyboardNavigation are set on the embed configuration and\n * should be respected by the visualization.\n * @entry\n * @returns {Keyboard}\n * @example\n * // configure nebula to enable navigation between charts\n * embed(app, {\n *   context: {\n *     keyboardNavigation: true, // tell Nebula to handle navigation\n *   }\n * }).render({ element, id: 'sdfsdf' });\n *\n * @example\n * import { useKeyboard } from '@nebula.js/stardust';\n * // ...\n * const keyboard = useKeyboard();\n * useEffect(() => {\n *  // Set a tab stop on our button if in focus or if Nebulas navigation is disabled\n *  button.setAttribute('tabIndex', keyboard.active || !keyboard.enabled ? 0 : -1);\n *  // If navigation is enabled and focus has shifted, lets focus the button\n *  keyboard.enabled && keyboard.active && button.focus();\n * }, [keyboard])\n *\n */\n\nexport function useKeyboard() {\n  const keyboardNavigation = useInternalContext('keyboardNavigation');\n  const focusHandler = useInternalContext('focusHandler');\n\n  if (!currentComponent.__hooks.accessibility.exitFunction) {\n    const exitFunction = function (resetFocus = false) {\n      const acc = this.__hooks.accessibility;\n      if (acc && acc.enabled && acc.active) {\n        blur(this);\n        focusHandler && focusHandler.blurCallback && focusHandler.blurCallback(resetFocus);\n      }\n    }.bind(currentComponent);\n\n    currentComponent.__hooks.accessibility.exitFunction = exitFunction;\n\n    const focusFunction = function () {\n      const acc = this.__hooks.accessibility;\n      if (acc && acc.enabled && !acc.active) {\n        focusHandler && focusHandler.blurCallback && focusHandler.blurCallback(false);\n        focus(this);\n      }\n    }.bind(currentComponent);\n\n    currentComponent.__hooks.accessibility.focusFunction = focusFunction;\n\n    const focusSelectionFunction = function (focusLast = false) {\n      const acc = this.__hooks.accessibility;\n      if (acc && acc.enabled) {\n        focusHandler && focusHandler.focusToolbarButton && focusHandler.focusToolbarButton(focusLast);\n      }\n    }.bind(currentComponent);\n\n    currentComponent.__hooks.accessibility.focusSelectionFunction = focusSelectionFunction;\n  }\n  const focusFunc = currentComponent.__hooks.accessibility.focusFunction;\n  const exitFunc = currentComponent.__hooks.accessibility.exitFunction;\n  const focusSelectionFunc = currentComponent.__hooks.accessibility.focusSelectionFunction;\n\n  const [acc, setAcc] = useState({\n    active: false,\n    enabled: keyboardNavigation,\n    blur: exitFunc,\n    focus: focusFunc,\n    focusSelection: focusSelectionFunc,\n  });\n  currentComponent.__hooks.accessibility.setter = setAcc;\n  currentComponent.__hooks.accessibility.enabled = keyboardNavigation;\n\n  useEffect(\n    () =>\n      setAcc({\n        active: false,\n        enabled: keyboardNavigation,\n        blur: exitFunc,\n        focus: focusFunc,\n        focusSelection: focusSelectionFunc,\n      }),\n    [keyboardNavigation]\n  );\n\n  return acc;\n}\n\nexport function focus(component) {\n  const acc = component.__hooks.accessibility;\n\n  if (acc.active) {\n    return;\n  }\n  acc.active = true;\n  if (acc && acc.setter) {\n    acc.setter({\n      active: true,\n      enabled: acc.enabled,\n      blur: acc.exitFunction,\n      focus: acc.focusFunction,\n      focusSelection: acc.focusSelectionFunction,\n    });\n  }\n}\n\nexport function blur(component) {\n  const acc = component.__hooks.accessibility;\n  // Incomplete/Invalid/Legacy viz hasn't been initialized with hooks\n  if (!acc || !acc.active) {\n    return;\n  }\n  acc.active = false;\n\n  if (acc && acc.setter) {\n    acc.setter({\n      active: false,\n      enabled: acc.enabled,\n      blur: acc.exitFunction,\n      focus: acc.focusFunction,\n      focusSelection: acc.focusSelectionFunction,\n    });\n  }\n}\n","/* eslint no-underscore-dangle: 0 */\n\nimport EventEmitter from 'node-event-emitter';\n\nimport JSONPatch from './json-patch';\nimport actionhero from './action-hero';\n\nimport { hook, run } from './hooks';\n\nconst defaultComponent = {\n  app: null,\n  model: null,\n  actions: null,\n  selections: null,\n  created: () => {},\n  mounted: () => {},\n  render: () => {},\n  resize: () => {},\n  willUnmount: () => {},\n  destroy: () => {},\n  emit: () => {},\n  getViewState: () => {},\n\n  // temporary\n  observeActions() {},\n  setSnapshotData: (snapshot) => Promise.resolve(snapshot),\n};\n\nconst reservedKeys = Object.keys(defaultComponent);\n\nconst mixin = (obj) => {\n  /* eslint no-param-reassign: 0 */\n  Object.keys(EventEmitter.prototype).forEach((key) => {\n    obj[key] = EventEmitter.prototype[key];\n  });\n  EventEmitter.init(obj);\n  return obj;\n};\n\nfunction createWithHooks(generator, opts, galaxy) {\n  if (__NEBULA_DEV__) {\n    if (generator.component.run !== run) {\n      // eslint-disable-next-line no-console\n      console.warn('Detected multiple supernova modules, this might cause problems.');\n    }\n  }\n  const qGlobal = opts.app && opts.app.session ? opts.app.session.getObjectApi({ handle: -1 }) : undefined;\n\n  // use a deep comparison for 'small' objects\n  let hasRun = false;\n  const current = {};\n  const deepCheck = ['appLayout', 'constraints', 'interactions'];\n  const forcedConstraints = {};\n  const forcedInteractions = {};\n\n  // select should be a constraint when a real model is not available\n  if (!opts.model || !opts.model.session) {\n    forcedConstraints.select = true;\n    forcedConstraints.edit = true;\n    forcedInteractions.select = false;\n    forcedInteractions.edit = false;\n  }\n\n  const c = {\n    context: {\n      // static values that are not expected to\n      // change during the component's life\n      // --------------------\n      model: opts.model,\n      app: opts.app,\n      global: qGlobal,\n      selections: opts.selections,\n      nebbie: opts.nebbie,\n      element: undefined, // set on mount\n      emitter: opts.emitter,\n      // ---- singletons ----\n      deviceType: galaxy.deviceType,\n      theme: undefined,\n      translator: galaxy.translator,\n      navigation: opts.navigation,\n      // --- dynamic values ---\n      layout: {},\n      appLayout: {},\n      keyboardNavigation: opts.keyboardNavigation,\n      externalFocusManagement: opts.externalFocusManagement || false,\n      focusHandler: opts.focusHandler,\n      constraints: forcedConstraints,\n      interactions: forcedInteractions,\n      options: {},\n      plugins: [],\n    },\n    fn: generator.component.fn,\n    created() {},\n    mounted(element) {\n      this.context.element = element;\n      generator.component.initiate(c, {\n        explicitResize: !!opts.explicitResize,\n      });\n    },\n    render(r) {\n      let changed = !hasRun || false;\n\n      if (r) {\n        if (r.layout && r.layout !== this.context.layout) {\n          changed = true;\n          this.context.layout = r.layout;\n        }\n        if (r.context && r.context.theme) {\n          // changed is set further down only if the name is different\n          this.context.theme = r.context.theme;\n        }\n        // false equals undefined, so we to cast to bool here\n        if (r.context && !!r.context.keyboardNavigation !== !!this.context.keyboardNavigation) {\n          this.context.keyboardNavigation = !!r.context.keyboardNavigation;\n          changed = true;\n        }\n\n        if (r.context && r.context.focusHandler) {\n          // Needs to be added here due to how the client renders\n          this.context.focusHandler = r.context.focusHandler;\n        }\n\n        if (r.options) {\n          // options could contain anything including methods, classes, cyclical references\n          // so we can't use JSON parse for comparison.\n          // but we can do a shallow reference check on the first level to check if\n          // options have changed. if it has changed then create a new reference for\n          // the options object to ensure callbacks are triggered\n          const op = {};\n          let opChanged = false;\n          Object.keys(r.options).forEach((key) => {\n            op[key] = r.options[key];\n            if (this.context.options[key] !== r.options[key]) {\n              opChanged = true;\n            }\n          });\n          if (opChanged) {\n            this.context.options = op;\n            changed = true;\n          }\n        }\n\n        if (r.plugins) {\n          let pluginsChanged = this.context.plugins.length !== r.plugins.length;\n          r.plugins.forEach((plugin, index) => {\n            if (this.context.plugins[index] !== plugin) {\n              pluginsChanged = true;\n            }\n          });\n          if (pluginsChanged) {\n            this.context.plugins = [...r.plugins];\n            changed = true;\n          }\n        }\n\n        // do a deep check on 'small' objects\n        deepCheck.forEach((key) => {\n          const ref = r.context;\n          if (ref && Object.prototype.hasOwnProperty.call(ref, key)) {\n            let s = JSON.stringify(ref[key]);\n            if (key === 'constraints') {\n              s = JSON.stringify({ ...ref[key], ...forcedConstraints });\n            }\n            if (key === 'interactions') {\n              s = JSON.stringify({ ...ref[key], ...forcedInteractions });\n            }\n            if (s !== current[key]) {\n              changed = true;\n              current[key] = s;\n              // create new object reference to ensure useEffect/useMemo/useCallback\n              // is triggered if the object is used a dependency\n              this.context[key] = JSON.parse(s);\n            }\n          }\n        });\n      } else {\n        changed = true;\n      }\n\n      // theme and translator are singletons so their reference won't change, we do\n      // however need to observe if their internal content has changed (name, language) and\n      // trigger an update if they have\n      if (this.context.theme && this.context.theme.name() !== current.themeName) {\n        changed = true;\n        current.themeName = this.context.theme.name();\n      }\n      if (this.context.translator.language() !== current.language) {\n        changed = true;\n        current.language = c.context.translator.language();\n      }\n\n      // TODO - observe what hooks are used, and only trigger run if values associated\n      // with those hooks have changed, i.e. if layout has changed but useLayout() isn't called\n      // then there is no need to call run\n\n      if (changed) {\n        hasRun = true;\n        this.currentResult = generator.component.run(this);\n        return this.currentResult;\n      }\n      return this.currentResult || Promise.resolve();\n    },\n    resize() {\n      // resize should never really by necesseary since the ResizeObserver\n      // in useRect observes changes on the size of the object, the only time it might\n      // be necessary is on IE 11 when the object is resized without the window changing size\n      generator.component.updateRectOnNextRun(this);\n      return this.render();\n    },\n    willUnmount() {\n      generator.component.teardown(this);\n    },\n    setSnapshotData(layout) {\n      return generator.component.runSnaps(this, layout);\n    },\n    onContextMenu(menu, event, menuBuilder) {\n      return generator.component.runMenu(this, menu, event, menuBuilder);\n    },\n    focus() {\n      const ref = generator.component.getImperativeHandle(this);\n      if (ref && typeof ref.focus === 'function') {\n        ref.focus();\n        return;\n      }\n      generator.component.focus(this);\n    },\n    blur() {\n      generator.component.blur(this);\n    },\n    getImperativeHandle() {\n      return generator.component.getImperativeHandle(this);\n    },\n    destroy() {},\n    observeActions(callback) {\n      generator.component.observeActions(this, callback);\n    },\n    isHooked: true,\n  };\n\n  deepCheck.forEach((key) => {\n    current[key] = JSON.stringify(c.context[key]);\n  });\n  current.themeName = c.context.theme ? c.context.theme.name() : undefined;\n  current.language = c.context.translator ? c.context.translator.language() : undefined;\n\n  Object.assign(c, {\n    selections: opts.selections,\n  });\n\n  return [c, null];\n}\n\nfunction createClassical(generator, opts) {\n  if (__NEBULA_DEV__) {\n    // eslint-disable-next-line no-console\n    console.warn('Obsolete API - time to get hooked!');\n  }\n  const componentInstance = {\n    ...defaultComponent,\n  };\n\n  mixin(componentInstance);\n\n  const userInstance = {\n    emit(...args) {\n      componentInstance.emit(...args);\n    },\n  };\n\n  Object.keys(generator.component || {}).forEach((key) => {\n    if (reservedKeys.indexOf(key) !== -1) {\n      componentInstance[key] = generator.component[key].bind(userInstance);\n    } else {\n      userInstance[key] = generator.component[key];\n    }\n  });\n\n  const hero = actionhero({\n    sn: generator,\n    component: userInstance,\n  });\n\n  const qGlobal = opts.app && opts.app.session ? opts.app.session.getObjectApi({ handle: -1 }) : null;\n\n  Object.assign(userInstance, {\n    model: opts.model,\n    app: opts.app,\n    global: qGlobal,\n    selections: opts.selections,\n    actions: hero.actions,\n  });\n\n  Object.assign(componentInstance, {\n    actions: hero.actions,\n    model: opts.model,\n    app: opts.app,\n    selections: opts.selections,\n  });\n\n  return [componentInstance, hero];\n}\n\nexport default function create(generator, opts, galaxy) {\n  if (typeof generator.component === 'function') {\n    generator.component = hook(generator.component);\n  }\n  const [componentInstance, hero] =\n    generator.component && generator.component.__hooked\n      ? createWithHooks(generator, opts, galaxy)\n      : createClassical(generator, opts);\n\n  const teardowns = [];\n\n  if (opts.model.__snInterceptor) {\n    // remove old hook - happens only when proper cleanup hasn't been done\n    opts.model.__snInterceptor.teardown();\n  }\n\n  if (generator.qae.properties.onChange) {\n    // TODO - handle multiple sn\n    // TODO - check privileges\n\n    opts.model.__snInterceptor = {\n      setProperties: opts.model.setProperties,\n      applyPatches: opts.model.applyPatches,\n      teardown: undefined,\n    };\n\n    opts.model.setProperties = function setProperties(...args) {\n      // try/catch here to guard against charts not checking properties correctly\n      try {\n        generator.qae.properties.onChange.call({ model: opts.model }, ...args);\n      } catch {\n        if (__NEBULA_DEV__) {\n          console.warn('Error in chart setProperties interceptor onChange call '); // eslint-disable-line no-console\n        }\n      }\n      return opts.model.__snInterceptor.setProperties.call(this, ...args);\n    };\n\n    opts.model.applyPatches = function applyPatches(qPatches, qSoftPatch) {\n      const method = qSoftPatch ? 'getEffectiveProperties' : 'getProperties';\n      return opts.model[method]().then((currentProperties) => {\n        // apply patches to current props\n        const original = JSONPatch.clone(currentProperties);\n        const patches = qPatches.map((p) => ({ op: p.qOp, value: JSON.parse(p.qValue), path: p.qPath }));\n        JSONPatch.apply(currentProperties, patches);\n        try {\n          generator.qae.properties.onChange.call({ model: opts.model }, currentProperties);\n        } catch {\n          if (__NEBULA_DEV__) {\n            console.warn('Error in chart applyPatches interceptor onChange call '); // eslint-disable-line no-console\n          }\n        }\n        // calculate new patches from after change\n        const newPatches = JSONPatch.generate(original, currentProperties).map((p) => ({\n          qOp: p.op,\n          qValue: JSON.stringify(p.value),\n          qPath: p.path,\n        }));\n\n        return opts.model.__snInterceptor.applyPatches.call(this, newPatches, qSoftPatch);\n      });\n    };\n\n    opts.model.__snInterceptor.teardown = () => {\n      if (opts.model.__snInterceptor) {\n        opts.model.setProperties = opts.model.__snInterceptor.setProperties;\n        delete opts.model.__snInterceptor;\n      }\n    };\n\n    teardowns.push(opts.model.__snInterceptor.teardown);\n  }\n\n  return {\n    generator,\n    component: componentInstance,\n    selectionToolbar: {\n      items: hero ? hero.selectionToolbarItems : [],\n    },\n    destroy() {\n      teardowns.forEach((t) => t());\n    },\n    logicalSize: generator.definition.logicalSize || (() => false),\n  };\n}\n","import EventEmitter from 'node-event-emitter';\n\nconst mixin = (obj) => {\n  /* eslint no-param-reassign: 0 */\n  Object.keys(EventEmitter.prototype).forEach((key) => {\n    obj[key] = EventEmitter.prototype[key];\n  });\n  EventEmitter.init(obj);\n  return obj;\n};\n\nconst actionWrapper = (component) => (item) => {\n  const wrapped = mixin({\n    ...item,\n    action() {\n      if (typeof item.action === 'function') {\n        item.action.call(wrapped, component);\n      }\n      wrapped.emit('changed');\n    },\n    enabled() {\n      if (typeof item.enabled === 'function') {\n        return item.enabled.call(wrapped, component);\n      }\n      return true;\n    },\n    active:\n      typeof item.active === 'function'\n        ? function active() {\n            return item.active.call(wrapped, component);\n          }\n        : undefined,\n  });\n\n  return wrapped;\n};\n\nexport default function ({ sn, component }) {\n  const actions = {};\n  const selectionToolbarItems = [];\n  const w = actionWrapper(component);\n  ((sn.definition.selectionToolbar || {}).items || []).forEach((item) => {\n    const wrapped = w(item);\n    // TODO - check if key exists\n    actions[item.key] = wrapped;\n    selectionToolbarItems.push(wrapped);\n  });\n\n  (sn.definition.actions || []).forEach((item) => {\n    const wrapped = w(item);\n    // TODO - check if key exists\n    actions[item.key] = wrapped;\n  });\n\n  return {\n    actions,\n    selectionToolbarItems,\n    destroy() {\n      selectionToolbarItems.length = 0;\n    },\n  };\n}\n","export const TOTAL_MAX = {\n  DIMENSIONS: 1000, // Maximum number of active dimensions + disabled dimensions\n  MEASURES: 1000, // Maximum number of active measures + disabled measures\n};\n\nexport const AUTOCALENDAR_NAME = '.autoCalendar';\n\nexport const INITIAL_SORT_CRITERIAS = [\n  {\n    qSortByLoadOrder: 1,\n    qSortByNumeric: 1,\n    qSortByAscii: 1,\n  },\n];\n\nexport const uid = () => {\n  const idGen = [\n    [10, 31],\n    [0, 31],\n    [0, 31],\n    [0, 31],\n    [0, 31],\n    [0, 31],\n  ];\n  const toChar = ([min, max]) => min + ((Math.random() * (max - min)) | 0).toString(32);\n  return idGen.map(toChar).join('');\n};\n","import { AUTOCALENDAR_NAME, uid } from '../constants';\n\nexport const getField = (expression) => {\n  let exp = expression;\n  exp = exp.trim();\n  if (exp.charAt(0) === '=') {\n    exp = exp.substring(1);\n    exp = exp.trim();\n  }\n  const lastIndex = exp.length - 1;\n  if (exp.charAt(0) === '[' && exp.charAt(lastIndex) === ']') {\n    exp = exp.substring(1, lastIndex);\n    exp = exp.trim();\n  }\n  return exp;\n};\n\nexport const findFieldById = (fields, id) => (fields && fields.find((field) => field.qDef?.cId === id)) || null;\n\nexport const findLibraryItem = (id, masterItemList) =>\n  (masterItemList && masterItemList.find((item) => item.qInfo.qId === id)) || null;\n\nexport const findFieldByName = (name, fieldList) =>\n  (fieldList && fieldList.find((field) => field.qName === name)) || null;\n\nexport const initializeId = (field) => ({\n  ...field,\n  qDef: {\n    ...field.qDef,\n    cId: field.qDef?.cId ?? uid(),\n  },\n});\n\nexport const initializeDim = (field) => ({\n  ...initializeId(field),\n  qOtherTotalSpec: field.qOtherTotalSpec ?? {},\n});\n\nexport const setAutoSort = (fields, dimension, self) => {\n  const dim = dimension;\n  fields.forEach((field, index) => {\n    const tags = field.qTags;\n    const sortCriterias = {\n      qSortByLoadOrder: 1,\n    };\n\n    if (typeof self.dimensionDefinition.autoSort === 'function') {\n      self.dimensionDefinition.autoSort(dim, self.properties, tags, sortCriterias, self);\n    } else {\n      // Default auto sorting\n      sortCriterias.qSortByNumeric = 1;\n      sortCriterias.qSortByAscii = 1;\n    }\n\n    if (!dim.qDef.qSortCriterias) {\n      dim.qDef.qSortCriterias = [sortCriterias];\n    } else {\n      dim.qDef.qSortCriterias[index] = sortCriterias;\n    }\n  });\n};\n\nexport const isDateField = (field) =>\n  field?.qDerivedFieldData && (field?.qTags?.indexOf('$date') > -1 || field?.qTags?.indexOf('$timestamp') > -1);\n\nexport const isGeoField = (field) => field.qTags.indexOf('$geoname') > -1;\n\nexport const trimAutoCalendarName = (fieldName) => (fieldName ? fieldName.split(AUTOCALENDAR_NAME).join('') : '');\n\nexport const useMasterNumberFormat = (formatting) => {\n  const format = formatting;\n  format.quarantine = {\n    qNumFormat: format.qNumFormat || {},\n    isCustomFormatted: format.isCustomFormatted || false,\n  };\n  format.qNumFormat = null;\n  format.isCustomFormatted = undefined;\n};\n","import { arrayUtil, utils } from '@nebula.js/conversion';\nimport { TOTAL_MAX, uid } from '../constants';\n\nexport const notSupportedError = new Error('Not supported in this object, need to implement in subclass.');\n\nexport const setFieldProperties = (hcFieldProperties) => {\n  if (!hcFieldProperties) {\n    return [];\n  }\n  const updatedProperties = [...hcFieldProperties];\n\n  return updatedProperties.map((field) => {\n    if (field.qDef?.autoSort && field.autoSort !== undefined) {\n      return {\n        ...field,\n        qDef: {\n          ...field.qDef,\n          autoSort: field.autoSort,\n        },\n        autoSort: undefined,\n      };\n    }\n    return field;\n  });\n};\n\nexport const getHyperCube = (layout, path) => {\n  if (!layout) {\n    return undefined;\n  }\n  return path && utils.getValue(layout, path) ? utils.getValue(layout, path).qHyperCube : layout.qHyperCube;\n};\n\nexport function setDefaultProperties(self) {\n  const current = self;\n  current.hcProperties.qDimensions = current.getDimensions() ?? [];\n  current.hcProperties.qMeasures = current.getMeasures() ?? [];\n  current.hcProperties.qInterColumnSortOrder = current.hcProperties.qInterColumnSortOrder ?? [];\n  current.hcProperties.qLayoutExclude = current.hcProperties.qLayoutExclude ?? {\n    qHyperCubeDef: { qDimensions: [], qMeasures: [] },\n  };\n  current.hcProperties.qLayoutExclude.qHyperCubeDef = current.hcProperties.qLayoutExclude.qHyperCubeDef ?? {\n    qDimensions: [],\n    qMeasures: [],\n  };\n  current.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions = current.getAlternativeDimensions() ?? [];\n  current.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures = current.getAlternativeMeasures() ?? [];\n}\n\nexport function setPropForLineChartWithForecast(self) {\n  const current = self;\n  if (\n    current.hcProperties.isHCEnabled &&\n    current.hcProperties.qDynamicScript.length === 0 &&\n    current.hcProperties.qMode === 'S'\n  ) {\n    current.hcProperties.qDynamicScript = [];\n  }\n}\n\nexport function getDeletedFields(fields, indexes) {\n  // Keep the original deleted order\n  return fields.filter((_, idx) => indexes.includes(idx));\n}\n\nexport function getRemainedFields(fields, indexes) {\n  return fields.filter((_, idx) => !indexes.includes(idx));\n}\n\n// ----------------------------------\n// ----------- DIMENSIONS -----------\n// ----------------------------------\n\nexport function addAlternativeDimension(self, dimension, index = undefined) {\n  const altDimensions = self.getAlternativeDimensions();\n  const idx = index ?? altDimensions.length;\n  altDimensions.splice(idx, 0, dimension);\n  return Promise.resolve(dimension);\n}\n\nexport function addDimensionToColumnSortOrder(self, dimensions, index) {\n  arrayUtil.indexAdded(self.hcProperties.qInterColumnSortOrder, index ?? dimensions.length - 1);\n}\n\nexport function addDimensionToColumnOrder(self, dimension) {\n  if (dimension && typeof self.dimensionDefinition.add === 'function') {\n    return Promise.resolve(self.dimensionDefinition.add.call(null, dimension, self.properties, self)).then(\n      () => dimension\n    );\n  }\n  return Promise.resolve(dimension);\n}\n\nexport function moveDimensionToColumnOrder(self, dimension) {\n  if (typeof self.dimensionDefinition.move === 'function') {\n    return Promise.resolve(self.dimensionDefinition.move.call(self, dimension, self.properties, self)).then(\n      () => dimension\n    );\n  }\n  return Promise.resolve(dimension);\n}\n\nexport function replaceDimensionOrder(self, index, dimension) {\n  if (!dimension) {\n    return undefined;\n  }\n\n  const dimensions = self.getDimensions();\n  const replacedDimension = dimensions[index];\n\n  const newDimension = {\n    ...dimension,\n    qDef: {\n      ...dimension.qDef,\n      cId: uid(),\n    },\n  };\n\n  dimensions[index] = newDimension;\n  if (newDimension && typeof self.dimensionDefinition.replace === 'function') {\n    self.dimensionDefinition.replace.call(null, newDimension, replacedDimension, index, self.properties, self);\n  }\n\n  return newDimension;\n}\n\nexport function removeDimensionFromColumnSortOrder(self, index) {\n  arrayUtil.indexRemoved(self.hcProperties.qInterColumnSortOrder, index);\n}\n\nexport function removeDimensionFromColumnOrder(self, index) {\n  const [dimension] = self.getDimensions().splice(index, 1);\n  if (dimension && typeof self.dimensionDefinition.remove === 'function') {\n    return Promise.resolve(self.dimensionDefinition.remove.call(null, dimension, self.properties, self, index));\n  }\n\n  return Promise.resolve();\n}\n\nexport function isTotalDimensionsExceeded(self, dimensions) {\n  const altDimensions = self.getAlternativeDimensions();\n  return altDimensions.length + dimensions.length >= TOTAL_MAX.DIMENSIONS;\n}\n\nexport function isDimensionAlternative(self, alternative) {\n  const dimensions = self.getAlternativeDimensions();\n  return alternative || (self.maxDimensions() <= dimensions.length && dimensions.length < TOTAL_MAX.DIMENSIONS);\n}\n\nexport async function addActiveDimension(\n  self,\n  dimension,\n  initialLength,\n  existingDimensions,\n  addedDimensions,\n  addedActive\n) {\n  await self.autoSortDimension(dimension);\n\n  // Update sorting order\n  arrayUtil.indexAdded(self.hcProperties.qInterColumnSortOrder, initialLength + addedActive);\n\n  existingDimensions.push(dimension);\n  addedDimensions.push(dimension);\n\n  if (typeof self.dimensionDefinition.add === 'function') {\n    self.dimensionDefinition.add.call(self, dimension, self.properties, self);\n  }\n}\n\nexport function moveDimensionFromMainToAlternative(fromIndex, toIndex, dimensions, altDimensions) {\n  const alternativeToIndex = toIndex - dimensions.length;\n\n  let [movingDimension] = altDimensions.splice(0, 1);\n  dimensions.push(movingDimension);\n\n  [movingDimension] = dimensions.splice(fromIndex, 1);\n  altDimensions.splice(alternativeToIndex, 0, movingDimension);\n\n  return Promise.resolve(movingDimension);\n}\n\nexport function moveDimensionFromAlternativeToMain(fromIndex, toIndex, dimensions, altDimensions) {\n  const alternativeToIndex = fromIndex - dimensions.length;\n\n  let [movingDimension] = dimensions.splice(dimensions.length - 1, 1);\n  altDimensions.splice(0, 0, movingDimension);\n\n  [movingDimension] = altDimensions.splice(alternativeToIndex + 1, 1);\n  dimensions.splice(toIndex, 0, movingDimension);\n\n  return Promise.resolve(movingDimension);\n}\n\nexport function moveDimensionWithinAlternative(fromIndex, toIndex, dimensions, altDimensions) {\n  const alternativeFromIdx = fromIndex - dimensions.length;\n  const alternativeToIndex = toIndex - dimensions.length;\n  arrayUtil.move(altDimensions, alternativeFromIdx, alternativeToIndex);\n}\n\n// ----------------------------------\n// ------------ MEASURES ------------\n// ----------------------------------\n\nexport function addAlternativeMeasure(self, measure, index = undefined) {\n  const measures = self.getAlternativeMeasures();\n  const idx = index ?? measures.length;\n  measures.splice(idx, 0, measure);\n  return Promise.resolve(measure);\n}\n\nexport function addMeasureToColumnSortOrder(self, measures) {\n  arrayUtil.indexAdded(self.hcProperties.qInterColumnSortOrder, self.getDimensions().length + measures.length - 1);\n}\n\nexport function addMeasureToColumnOrder(self, measure) {\n  if (measure && typeof self.measureDefinition.add === 'function') {\n    return Promise.resolve(self.measureDefinition.add.call(null, measure, self.properties, self));\n  }\n  return Promise.resolve();\n}\n\nexport function moveMeasureColumnOrder(self, measure) {\n  if (typeof self.measureDefinition.move === 'function') {\n    return Promise.resolve(self.measureDefinition.move.call(null, measure, self.properties, self, true)).then(\n      () => measure\n    );\n  }\n\n  return Promise.resolve(measure);\n}\n\nexport function isTotalMeasureExceeded(self, measures) {\n  // Adding more measures than TOTAL_MAX_MEASURES is not allowed and we expect this.maxMeasures() to always be <= TOTAL_MAX_MEASURES\n  const altMeasures = self.getAlternativeMeasures();\n  return altMeasures.length + measures.length >= TOTAL_MAX.MEASURES;\n}\n\nexport function isMeasureAlternative(self, alternative) {\n  const measures = self.getMeasures();\n  return alternative || (self.maxMeasures() <= measures.length && measures.length < TOTAL_MAX.MEASURES);\n}\n\nexport function addActiveMeasure(self, measure, existingMeasures, addedMeasures, addedActive) {\n  const dimensions = self.getDimensions();\n  const meas = { ...measure };\n  meas.qSortBy = {\n    qSortByLoadOrder: 1,\n    qSortByNumeric: -1,\n  };\n\n  arrayUtil.indexAdded(\n    self.hcProperties.qInterColumnSortOrder,\n    dimensions.length + existingMeasures.length + addedActive\n  );\n  existingMeasures.push(meas);\n  addedMeasures.push(meas);\n\n  if (typeof self.measureDefinition.add === 'function') {\n    self.measureDefinition.add.call(null, meas, self.properties, self);\n  }\n\n  return Promise.resolve(addedMeasures);\n}\n\nexport function removeMeasureFromColumnSortOrder(self, index) {\n  arrayUtil.indexRemoved(self.hcProperties.qInterColumnSortOrder, self.getDimensions().length + index);\n}\n\nexport function removeMeasureFromColumnOrder(self, index) {\n  const [measure] = self.getMeasures().splice(index, 1);\n  if (measure && typeof self.measureDefinition.remove === 'function') {\n    return Promise.resolve(self.measureDefinition.remove.call(null, measure, self.properties, self, index));\n  }\n  return Promise.resolve();\n}\n\nexport function removeAltMeasureByIndex(self, index) {\n  return self.getAlternativeMeasures().splice(index, 1);\n}\n\nexport function replaceMeasureToColumnOrder(self, index, measure) {\n  const measures = self.getMeasures();\n  const replacedMeasure = measures[index];\n\n  const newMeasure = {\n    ...measure,\n    qDef: {\n      ...measure.qDef,\n      cId: uid(),\n    },\n  };\n\n  measures[index] = newMeasure;\n\n  if (newMeasure && typeof self.measureDefinition.replace === 'function') {\n    self.dimensionDefinition.replace.call(null, newMeasure, replacedMeasure, index, self.properties, self);\n  }\n\n  return newMeasure;\n}\n\nexport function moveMeasureFromMainToAlternative(fromIndex, toIndex, measures, altMeasures) {\n  const alternativeToIndex = toIndex - measures.length;\n\n  let [movingMeasure] = altMeasures.splice(0, 1);\n  measures.push(movingMeasure);\n\n  [movingMeasure] = measures.splice(fromIndex, 1);\n  altMeasures.splice(alternativeToIndex, 0, movingMeasure);\n\n  return Promise.resolve(movingMeasure);\n}\n\nexport function moveMeasureFromAlternativeToMain(fromIndex, toIndex, measures, altMeasures) {\n  const alternativeFromIndex = fromIndex - measures.length;\n\n  let [movingMeasure] = measures.splice(measures.length - 1, 1);\n  altMeasures.splice(0, 0, movingMeasure);\n\n  [movingMeasure] = altMeasures.splice(alternativeFromIndex + 1, 1);\n  measures.splice(toIndex, 0, movingMeasure);\n\n  return Promise.resolve(movingMeasure);\n}\n\nexport function moveMeasureWithinAlternative(fromIndex, toIndex, measures, altMeasures) {\n  const alternativeFromIndex = fromIndex - measures.length;\n  const alternativeToIndex = toIndex - measures.length;\n  arrayUtil.move(altMeasures, alternativeFromIndex, alternativeToIndex);\n}\n","import extend from 'extend';\nimport { findFieldById, initializeDim, useMasterNumberFormat } from './utils/field-helper/field-utils';\nimport { INITIAL_SORT_CRITERIAS } from './utils/constants';\nimport { notSupportedError } from './utils/hypercube-helper/hypercube-utils';\n\n/**\n * @private\n * @class DataPropertyHandler\n * @description A class to handle data properties for dimensions and measures in a data model.\n * @param {object} opts - Parameters to add a hypercube handlers\n * @param {qix.Doc} opts.app\n * @param {object} opts.dimensionDefinition\n * @param {object} opts.measureDefinition\n * @param {object} opts.dimensionProperties\n * @param {object} opts.measureProperties\n * @param {object} opts.globalChangeListeners\n * @entry\n * @export\n * @example\n * import DataPropertyHandler from '@nebula.js/stardust';\n *\n * class PivotHyperCubeHandler extends DataPropertyHandler {\n *\n *   addDimensionAsFirstRow: (hypercube: HyperCubeDef, dimension: NxDimension) => {\n *     const dimensions = this.getDimensions().length;\n *     const { qInterColumnSortOrder } = hypercube;\n *\n *     if(dimensions !== 0 && dimensions < this.maxDimensions()) {\n *       hypercube.qNoOfLeftDims = 1;\n *       qInterColumnSortOrder?.unshift(dimensions);\n *       dimensions.splice(0, 0, dimension);\n *     }\n *   }\n * }\n */\nclass DataPropertyHandler {\n  constructor(opts) {\n    const options = opts || {};\n\n    this.dimensionDefinition = options.dimensionDefinition || { max: 0 };\n    this.measureDefinition = options.measureDefinition || { max: 0 };\n\n    this.dimensionProperties = options.dimensionProperties ?? {};\n    this.measureProperties = options.measureProperties ?? {};\n    this.globalChangeListeners = options.globalChangeListeners;\n    this.app = options.app;\n  }\n\n  /**\n   * @private\n   * @typeof {object} LibraryDimension\n   * @property {string} id\n   * @property {qix.NxDimension=} defaults\n   */\n\n  /**\n   * @private\n   * @typeof {object} FieldDimension\n   * @property {string} field\n   * @property {string=} label\n   * @property {qix.NxDimension=} defaults\n   */\n\n  /**\n   * @private\n   * @typeof {object} LibraryMeasure\n   * @property {string} id\n   * @property {qix.NxMeasure=} defaults\n   */\n\n  /**\n   * @private\n   * @typeof {object} ExpressionMeasure\n   * @property {string} expression\n   * @property {string=} label\n   * @property {qix.NxMeasure=} defaults\n   */\n\n  /**\n   * Sets the properties for the handler.\n   * @private\n   * @param {object=} properties - The properties object to set.\n   * @description Updates the handler's properties and analysis type flag.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.setProperties({ metaData: { isAnalysisType: true } });\n   */\n  setProperties(properties) {\n    this.properties = properties;\n    this.isAnalysisType = this.properties?.metaData?.isAnalysisType;\n  }\n\n  /**\n   * Sets the global change listeners.\n   * @private\n   * @param {Function[]} arr - Array of listener functions.\n   * @description Assigns global change listeners to the handler.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.setGlobalChangeListeners([listener1, listener2]);\n   */\n  setGlobalChangeListeners(arr) {\n    this.globalChangeListeners = arr;\n  }\n\n  /**\n   * @private\n   * @param {object=} layout - The layout object to set.\n   * @description Sets the layout for the handler.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.setLayout(layoutObj);\n   */\n  setLayout(layout) {\n    this.layout = layout;\n  }\n\n  /**\n   * @private\n   * @throws {Error}\n   * @description Throws an error indicating the method must be overridden.\n   * @memberof DataPropertyHandler\n   * @example\n   * DataPropertyHandler.type(); // Throws error\n   */\n  // eslint-disable-next-line class-methods-use-this\n  type() {\n    throw new Error('Must override this method');\n  }\n\n  // ---------------------------------------\n  // ---------------DIMENSION---------------\n  // ---------------------------------------\n\n  /**\n   * @private\n   * @returns {Array} Empty array.\n   * @description Returns the default dimension array.\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  getDimensions() {\n    return [];\n  }\n\n  /**\n   * Gets a dimension by id from dimensions or alternative dimensions.\n   * @private\n   * @param {string} id\n   * @returns {qix.NxDimension} - The found dimension.\n   * @description Searches for a dimension by id in both main and alternative dimensions.\n   * @memberof DataPropertyHandler\n   * @example\n   * const dim = handler.getDimension('dimId');\n   */\n  getDimension(id) {\n    const dimensions = this.getDimensions();\n    const alternativeDimensions = this.getAlternativeDimensions();\n\n    return findFieldById(dimensions, id) ?? findFieldById(alternativeDimensions, id);\n  }\n\n  /**\n   * Throws an error indicating the method must be implemented in subclasses.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  getAlternativeDimensions() {\n    throw new Error('Method not implemented.');\n  }\n\n  /**\n   * Throws an error indicating addDimension is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  addDimension() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating addDimensions is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  addDimensions() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating removeDimension is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  removeDimension() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating removeDimensions is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  removeDimensions() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating autoSortDimension is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  autoSortDimension() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating replaceDimension is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  replaceDimension() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating getSorting is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  getSorting() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Creates a type of library dimension with a field definition.\n   * @private\n   * @property {string} id\n   * @property {qix.NxDimension=} defaults\n   * @returns {qix.NxDimension} The created dimension object.\n   * @description Initializes a dimension and applying default properties and sort criteria.\n   * @memberof DataPropertyHandler\n   * @example\n   * const dim = handler.createLibraryDimension('dimId', { qDef: { qSortCriterias: [{ qSortByAscii: 1 }] } });\n   */\n  createLibraryDimension(id, defaults) {\n    let dimension = extend(true, {}, this.dimensionProperties || {}, defaults || {});\n\n    dimension = initializeDim(dimension);\n\n    dimension.qLibraryId = id;\n    dimension.qDef.autoSort = true;\n    dimension.qDef.qSortCriterias = INITIAL_SORT_CRITERIAS;\n\n    delete dimension.qDef.qFieldDefs;\n    delete dimension.qDef.qFieldLabels;\n\n    return dimension;\n  }\n\n  /**\n   * Creates a type of field dimension with a field definition.\n   * @private\n   * @property {string} field\n   * @property {string=} label\n   * @property {qix.NxDimension=} defaults\n   * @returns {qix.NxDimension} The created dimension object.\n   * @description Initializes a dimension with field definitions, labels, and default properties.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.createFieldDimension('currentField', 'label');\n   */\n  createFieldDimension(field, label, defaults) {\n    let dimension = extend(true, {}, this.dimensionProperties || {}, defaults || {});\n\n    dimension = initializeDim(dimension);\n\n    if (!field) {\n      dimension.qDef.qFieldDefs = [];\n      dimension.qDef.qFieldLabels = [];\n      dimension.qDef.qSortCriterias = [];\n    }\n\n    dimension.qDef.qFieldDefs = [field];\n    dimension.qDef.qFieldLabels = label ? [label] : [''];\n    dimension.qDef.qSortCriterias = INITIAL_SORT_CRITERIAS;\n    dimension.qDef.autoSort = true;\n\n    return dimension;\n  }\n\n  /**\n   * Adds a field dimension to the handler.\n   * @private\n   * @property {string} field\n   * @property {string=} label\n   * @property {qix.NxDimension=} defaults\n   * @returns {Promise<qix.NxDimension=>} The result of addDimension.\n   * @description Creates and adds a field dimension.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addFieldDimension('currentField', 'label');\n   */\n  addFieldDimension(field, label, defaults) {\n    const dimension = this.createFieldDimension(field, label, defaults);\n    return this.addDimension(dimension);\n  }\n\n  /**\n   * @private\n   * @param {FieldDimension[]} fieldDimensions - Array of field dimension.\n   * @returns {Promise<qix.NxDimension[]>} The result of addDimensions.\n   * @description Creates and adds multiple field dimensions.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addFieldDimensions([{ field: 'A', label: 'AA' }, { field: 'B', label: 'BB' }]);\n   */\n  addFieldDimensions(fieldDimensions) {\n    const dimensions = fieldDimensions.map(({ field, label, defaults }) =>\n      this.createFieldDimension(field, label, defaults)\n    );\n    return this.addDimensions(dimensions);\n  }\n\n  /**\n   * Adds a library dimension to the handler.\n   * @private\n   * @property {string} id\n   * @property {qix.NxDimension=} defaults\n   * @returns {Promise<qix.NxDimension=>} The result of addDimension.\n   * @description Creates and adds a library dimension.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addLibraryDimension('A', { qDef: { qSortCriterias: [{ qSortByAscii: 1 }] }});\n   */\n  addLibraryDimension(id, defaults) {\n    const dimension = this.createLibraryDimension(id, defaults);\n    return this.addDimension(dimension);\n  }\n\n  /**\n   * Adds multiple library dimensions to the handler.\n   * @private\n   * @param {LibraryDimension[]} libraryDimensions - Array of library dimension.\n   * @returns {Promise<qix.NxDimension[]>} The result of addDimensions.\n   * @description Creates and adds multiple library dimensions.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addLibraryDimensions([{ id: 'A' }, { id: 'B', defaults: { qDef: { qSortCriterias: [{ qSortByAscii: 1 }] } } }]);\n   */\n  addLibraryDimensions(libraryDimensions) {\n    const dimensions = libraryDimensions.map(({ id, defaults }) => this.createLibraryDimension(id, defaults));\n    const result = this.addDimensions(dimensions);\n    return result;\n  }\n\n  /**\n   * Adds multiple alternative library dimensions to the handler.\n   * @private\n   * @param {string[]} ids - Array of dimension ids.\n   * @returns {Promise<qix.NxDimension[]>} The result of addDimensions.\n   * @description Creates and adds multiple alternative library dimensions.\n   * @memberof DataPropertyHandler\n   * @example\n   * await handler.addAltLibraryDimensions([{ id: 'A' }, { id: 'B' }]);\n   */\n  async addAltLibraryDimensions(ids) {\n    const dimensions = ids.map(({ id }) => this.createLibraryDimension(id));\n    return this.addDimensions(dimensions, true);\n  }\n\n  /**\n   * Adds multiple alternative field dimensions to the handler.\n   * @private\n   * @param {string[]} fields - Array of field dimension.\n   * @returns {Promise<qix.NxDimension[]>} The result of addDimensions.\n   * @description Creates and adds multiple alternative field dimensions.\n   * @memberof DataPropertyHandler\n   * @example\n   * await handler.addAltFieldDimensions([{ field: 'A' }, { field: 'B' }]);\n   */\n  async addAltFieldDimensions(fields) {\n    const dimensions = fields.map(({ field }) => this.createFieldDimension(field));\n    return this.addDimensions(dimensions, true);\n  }\n\n  /**\n   * Adds an alternative field dimension to the handler.\n   * @private\n   * @param {string} field\n   * @returns {Promise<qix.NxDimension=>} The result of addDimension.\n   * @description Creates and adds an alternative field dimension.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAlternativeFieldDimension('field');\n   */\n  addAlternativeFieldDimension(field) {\n    const dimension = this.createFieldDimension(field);\n    return this.addDimension(dimension, true);\n  }\n\n  /**\n   * Adds an alternative library dimension to the handler.\n   * @private\n   * @property {string} id\n   * @property {qix.NxDimension=} defaults\n   * @returns {Promise<qix.NxDimension=>} The result of addDimension.\n   * @description Creates and adds an alternative library dimension.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAlternativeLibraryDimension('A', { qDef: { qSortCriterias: [{ qSortByAscii: -1 }] } });\n   */\n  addAlternativeLibraryDimension(id, defaults) {\n    const dimension = this.createLibraryDimension(id, defaults);\n    return this.addDimension(dimension, true);\n  }\n\n  /**\n   * Gets the minimum number of dimensions allowed.\n   * @private\n   * @returns {number} The minimum number of dimensions.\n   * @description Returns the minimum number of dimensions allowed by the handler.\n   * @memberof DataPropertyHandler\n   * @example\n   * const min = handler.minDimensions();\n   */\n  minDimensions() {\n    if (typeof this.dimensionDefinition.min === 'function') {\n      return this.dimensionDefinition.min.call(null, this.properties, this);\n    }\n    return this.dimensionDefinition.min || 0;\n  }\n\n  /**\n   * Gets the maximum number of dimensions allowed.\n   * @private\n   * @param {number} [decrement=0] - The number to decrement from the current number of measures.\n   * @returns {number} The maximum number of dimensions allowed.\n   * @description Checks if the max property is a function and calls it with the current number of measures, or returns a default value.\n   * @memberof DataPropertyHandler\n   * @example\n   * const max = handler.maxDimensions();\n   */\n  maxDimensions(decrement = 0) {\n    const measureLength = this.getMeasures().length - decrement;\n\n    if (typeof this.dimensionDefinition.max === 'function') {\n      const dimParams = [measureLength];\n      return this.dimensionDefinition.max?.apply(null, dimParams);\n    }\n\n    return Number.isNaN(+this.dimensionDefinition.max) ? 10000 : this.dimensionDefinition.max;\n  }\n\n  /**\n   * Checks if a new dimension can be added.\n   * @private\n   * @returns {boolean} True if a new dimension can be added, false otherwise.\n   * @description Returns whether the handler can add another dimension.\n   * @memberof DataPropertyHandler\n   * @example\n   * if (handler.canAddDimension()) { handler.addFieldDimension('A'); }\n   */\n  canAddDimension() {\n    return this.getDimensions().length < this.maxDimensions();\n  }\n\n  // ---------------------------------------\n  // ----------------MEASURE----------------\n  // ---------------------------------------\n\n  /**\n   * @private\n   * @returns {Array} Empty array.\n   * @description Returns the default measure array.\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  getMeasures() {\n    return [];\n  }\n\n  /**\n   * Throws an error indicating the method must be implemented in subclasses.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  getAlternativeMeasures() {\n    throw new Error('Method not implemented.');\n  }\n\n  /**\n   * Throws an error indicating addMeasure is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  addMeasure() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating addMeasures is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  addMeasures() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating removeMeasure is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  removeMeasure() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating removeMeasures is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  removeMeasures() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating autoSortMeasure is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  autoSortMeasure() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Throws an error indicating replaceMeasure is not supported in the base class.\n   * @private\n   * @throws {Error}\n   * @memberof DataPropertyHandler\n   */\n  // eslint-disable-next-line class-methods-use-this\n  replaceMeasure() {\n    throw notSupportedError;\n  }\n\n  /**\n   * Gets a measure by id from measures or alternative measures.\n   * @private\n   * @param {string} id - The measure id to find.\n   * @returns {qix.NxMeasure} The found measure or undefined.\n   * @description Searches for a measure by id in both main and alternative measures.\n   * @memberof DataPropertyHandler\n   * @example\n   * const measure = handler.getMeasure('measId');\n   */\n  getMeasure(id) {\n    const measures = this.getMeasures();\n    const alternativeMeasures = this.getAlternativeMeasures();\n\n    return findFieldById(measures, id) ?? findFieldById(alternativeMeasures, id);\n  }\n\n  /**\n   * Creates an expression measure.\n   * @private\n   * @property {string} expression\n   * @property {string=} label\n   * @property {qix.NxMeasure=} defaults\n   * @returns {Promise<qix.NxMeasure=>} The created measure object.\n   * @description Initializes a measure with an expression, label, and default properties.\n   * @memberof DataPropertyHandler\n   * @example\n   * const meas = handler.createExpressionMeasure('Sum(Sales)', 'Total Sales');\n   */\n  createExpressionMeasure(expression, label, defaults) {\n    const measure = extend(true, {}, this.measureProperties || {}, defaults || {});\n\n    measure.qDef = measure.qDef ?? {};\n    measure.qDef.qNumFormat = measure.qDef.qNumFormat ?? {};\n\n    measure.qDef.qDef = expression;\n    measure.qDef.qLabel = label;\n    measure.qDef.autoSort = true;\n\n    return measure;\n  }\n\n  /**\n   * Adds an expression measure to the handler.\n   * @private\n   * @property {string} expression\n   * @property {string=} label\n   * @property {qix.NxMeasure=} defaults\n   * @returns {Promise<qix.NxMeasure=>} The result of addMeasure.\n   * @description Creates and adds an expression measure.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addExpressionMeasure('Sum(Sales)', 'Total Sales');\n   */\n  addExpressionMeasure(expression, label, defaults) {\n    const measure = this.createExpressionMeasure(expression, label, defaults);\n    return this.addMeasure(measure);\n  }\n\n  /**\n   * Adds multiple expression measures to the handler.\n   * @private\n   * @param {ExpressionMeasure[]} expressionMeasures - Array of expression measures.\n   * @returns {Promise<qix.NxMeasure[]>} The result of addMeasures.\n   * @description Creates and adds multiple expression measures.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addExpressionMeasures([{ expression: 'Sum(A)' }, { expression: 'Sum(B)', label: 'B' }]);\n   */\n  addExpressionMeasures(expressionMeasures) {\n    const measures = expressionMeasures.map(({ expression, label, defaults }) =>\n      this.createExpressionMeasure(expression, label, defaults)\n    );\n    return this.addMeasures(measures, false);\n  }\n\n  /**\n   * Creates a library measure.\n   * @private\n   * @property {string} id\n   * @property {qix.NxMeasure=} defaults\n   * @returns {qix.NxMeasure} The created measure object.\n   * @description Initializes a library measure with default properties.\n   * @memberof DataPropertyHandler\n   * @example\n   * const meas = handler.createLibraryMeasure('measId', { qDef: { qNumFormat: { qType: 'F' } } });\n   */\n  createLibraryMeasure(id, defaults) {\n    const measure = extend(true, {}, this.measureProperties || {}, defaults || {});\n\n    measure.qDef = measure.qDef ?? {};\n    measure.qDef.qNumFormat = measure.qDef.qNumFormat ?? {};\n\n    useMasterNumberFormat(measure.qDef);\n\n    measure.qLibraryId = id;\n    measure.qDef.autoSort = true;\n\n    delete measure.qDef.qDef;\n    delete measure.qDef.qLabel;\n\n    return measure;\n  }\n\n  /**\n   * Adds a library measure to the handler.\n   * @private\n   * @property {string} id\n   * @property {qix.NxMeasure=} defaults\n   * @returns {Promise<qix.NxMeasure=>} The result of addMeasure.\n   * @description Creates and adds a library measure.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addLibraryMeasure('measId', { qDef: { qNumFormat: { qType: 'F' } } });\n   */\n  addLibraryMeasure(id, defaults) {\n    const measure = this.createLibraryMeasure(id, defaults);\n    return this.addMeasure(measure);\n  }\n\n  /**\n   * Adds multiple library measures to the handler.\n   * @private\n   * @param {LibraryMeasure[]} libraryMeasures - Array of library measures.\n   * @returns {Promise<qix.NxMeasure[]>} The result of addMeasures.\n   * @description Creates and adds multiple library measures.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addLibraryMeasures([{ id: 'A' }, { id: 'B', defaults: { qDef: { qNumFormat: { ... } } } }]);\n   */\n  addLibraryMeasures(libraryMeasures) {\n    const measures = libraryMeasures.map(({ id, defaults }) => this.createLibraryMeasure(id, defaults));\n    return this.addMeasures(measures, false);\n  }\n\n  /**\n   * Adds multiple alternative library measures to the handler.\n   * @private\n   * @param {LibraryMeasure[]} libraryMeasures - Array of library measure.\n   * @returns {Promise<qix.NxMeasure[]>} The result of addMeasures.\n   * @description Creates and adds multiple alternative library measures.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAltLibraryMeasures([{ id: 'A' }, { id: 'B', defaults: { qDef: { qNumFormat: { ... } } } }]);\n   */\n  addAltLibraryMeasures(libraryMeasures) {\n    const measures = libraryMeasures.map(({ id, defaults }) => this.createLibraryMeasure(id, defaults));\n    return this.addMeasures(measures, true);\n  }\n\n  /**\n   * Adds multiple alternative expression measures to the handler.\n   * @private\n   * @param {ExpressionMeasure[]} expressionMeasures - Array of expression measure.\n   * @returns {Promise<qix.NxMeasure[]>} The result of addMeasures.\n   * @description Creates and adds multiple alternative expression measures.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAltExpressionMeasures([{ expression: 'Sum(A)' }, { expression: 'Sum(B)' }]);\n   */\n  addAltExpressionMeasures(expressionMeasures) {\n    const measures = expressionMeasures.map(({ expression }) => this.createExpressionMeasure({ expression }));\n    return this.addMeasures(measures, true);\n  }\n\n  /**\n   * Adds an alternative expression measure to the handler.\n   * @private\n   * @property {string} expression\n   * @property {string=} label\n   * @property {qix.NxMeasure=} defaults\n   * @returns {Promise<qix.NxMeasure=>} The result of addMeasure.\n   * @description Creates and adds an alternative expression measure.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAlternativeExpressionMeasure('Sum(Sales)', 'Total Sales');\n   */\n  addAlternativeExpressionMeasure(expression, label, defaults) {\n    const measure = this.createExpressionMeasure(expression, label, defaults);\n    return this.addMeasure(measure, true);\n  }\n\n  /**\n   * Adds an alternative library measure to the handler.\n   * @private\n   * @property {string} id\n   * @property {qix.NxMeasure=} defaults\n   * @returns {qix.NxMeasure=} The result of addMeasure.\n   * @description Creates and adds an alternative library measure.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.addAlternativeLibraryMeasure('measId', { qDef: { qNumFormat: { qType: 'F' } } });\n   */\n  addAlternativeLibraryMeasure(id, defaults) {\n    const measure = this.createLibraryMeasure(id, defaults);\n    return this.addMeasure(measure, true);\n  }\n\n  /**\n   * Gets the minimum number of measures allowed.\n   * @private\n   * @returns {number} The minimum number of measures.\n   * @description Returns the minimum number of measures allowed by the handler.\n   * @memberof DataPropertyHandler\n   * @example\n   * const min = handler.minMeasures();\n   */\n  minMeasures() {\n    if (typeof this.measureDefinition.min === 'function') {\n      return this.measureDefinition.min.call(null, this.properties, this);\n    }\n    return this.measureDefinition.min || 0;\n  }\n\n  /**\n   * Gets the maximum number of measures allowed.\n   * @private\n   * @param {number} [decrement=0] - The number to decrement from the current number of dimensions.\n   * @returns {number} The maximum number of measures allowed.\n   * @description Checks if the max property is a function and calls it with the current number of dimensions, or returns a default value.\n   * @memberof DataPropertyHandler\n   * @example\n   * const max = handler.maxMeasures();\n   */\n  maxMeasures(decrement = 0) {\n    if (typeof this.measureDefinition.max === 'function') {\n      const dimLength = this.getDimensions().length - decrement;\n      const measureParams = [dimLength];\n      return this.measureDefinition.max.apply(null, measureParams);\n    }\n    return Number.isNaN(+this.measureDefinition.max) ? 10000 : this.measureDefinition.max;\n  }\n\n  /**\n   * Checks if a new measure can be added.\n   * @private\n   * @returns {boolean} True if a new measure can be added, false otherwise.\n   * @description Returns whether the handler can add another measure.\n   * @memberof DataPropertyHandler\n   * @example\n   * if (handler.canAddMeasure()) { handler.addExpressionMeasure('Sum(A)'); }\n   */\n  canAddMeasure() {\n    return this.getMeasures().length < this.maxMeasures();\n  }\n\n  // ---------------------------------------\n  // ---------------OTHERS------------------\n  // ---------------------------------------\n\n  /**\n   * Calls all global change listeners with the current properties, handler, and layout.\n   * @private\n   * @param {object} layout - The layout object to pass to listeners.\n   * @description Invokes all registered global change listeners.\n   * @memberof DataPropertyHandler\n   * @example\n   * handler.updateGlobalChangeListeners(layoutObj);\n   */\n  updateGlobalChangeListeners(layout) {\n    if (this.globalChangeListeners) {\n      (this.globalChangeListeners || []).forEach((func) => {\n        if (func && typeof func === 'function') {\n          func(this.properties, this, { layout });\n        }\n      });\n    }\n  }\n}\n\nexport default DataPropertyHandler;\n","import { removeDimensionFromColumnOrder, removeDimensionFromColumnSortOrder } from './hypercube-utils';\n\nasync function removeMainDimension(self, index) {\n  removeDimensionFromColumnSortOrder(self, index);\n  await removeDimensionFromColumnOrder(self, index);\n}\n\nexport default removeMainDimension;\n","import { removeMeasureFromColumnOrder, removeMeasureFromColumnSortOrder } from './hypercube-utils';\n\nasync function removeMainMeasure(self, index) {\n  removeMeasureFromColumnSortOrder(self, index);\n  await removeMeasureFromColumnOrder(self, index);\n}\n\nexport default removeMainMeasure;\n","function removeAlternativeDimension(self, index) {\n  const [dimension] = self.getAlternativeDimensions().splice(index, 1);\n  if (dimension && typeof self.dimensionDefinition.remove === 'function') {\n    dimension.isAlternative = true;\n\n    return Promise.resolve(self.dimensionDefinition.remove.call(null, dimension, self.properties, self, index)).then(\n      () => {\n        delete dimension.isAlternative;\n      }\n    );\n  }\n  return undefined;\n}\n\nexport default removeAlternativeDimension;\n","import { utils, arrayUtil } from '@nebula.js/conversion';\nimport DataPropertyHandler from './data-property-handler';\nimport * as hcUtils from './utils/hypercube-helper/hypercube-utils';\nimport getAutoSortLibraryDimension from './utils/field-helper/get-sorted-library-field';\nimport getAutoSortDimension from './utils/field-helper/get-sorted-field';\nimport { initializeDim, initializeId } from './utils/field-helper/field-utils';\nimport addMainDimension from './utils/hypercube-helper/add-main-dimension';\nimport addMainMeasure from './utils/hypercube-helper/add-main-measure';\nimport removeMainDimension from './utils/hypercube-helper/remove-main-dimension';\nimport removeAlternativeMeasure from './utils/hypercube-helper/remove-alternative-measure';\nimport removeMainMeasure from './utils/hypercube-helper/remove-main-measure';\nimport removeAlternativeDimension from './utils/hypercube-helper/remove-alternative-dimension';\nimport reinsertMainDimension from './utils/hypercube-helper/reinsert-main-dimension';\nimport reinsertMainMeasure from './utils/hypercube-helper/reinsert-main-measure';\n\n/**\n * HyperCubeHandler for managing hypercube data structure.\n * @private\n * @class HyperCubeHandler\n * @description This class provides methods to handle hypercube properties, dimensions, and measures.\n * @param {object} opts Parameters to add a hypercube handlers\n * @param {qix.Doc} opts.app\n * @param {object} opts.dimensionDefinition\n * @param {object} opts.measureDefinition\n * @param {object} opts.dimensionProperties\n * @param {object} opts.measureProperties\n * @param {object} opts.globalChangeListeners\n * @param {object} opts.path\n * @entry\n * @export\n * @example\n * import { HyperCubeHandler } from '@nebula.js/stardust';\n *\n * class PivotHyperCubeHandler extends HyperCubeHandler {\n *\n *   adjustPseudoDimOrder: (pseudoIdx?: number) => {\n *    const numberOfDims = this.getDimensions().length;\n *    const interColumnSortOrder = this.hcProperties.qInterColumnSortOrder;\n *\n *    if (!interColumnSortOrder) {\n *      return;\n *    }\n *\n *    interColumnSortOrder.splice(pseudoIdx || 0, 1);\n *    interColumnSortOrder.push(numberOfDims);\n *    interColumnSortOrder.splice((pseudoIdx || -1) + 1, 0, -1);\n *  };\n * }\n */\nclass HyperCubeHandler extends DataPropertyHandler {\n  constructor(opts) {\n    super(opts);\n    this.path = opts.path;\n  }\n\n  /**\n   * @private\n   * @param {object=} properties\n   * @returns early return if properties is falsy\n   */\n  setProperties(properties) {\n    if (!properties) {\n      return;\n    }\n\n    super.setProperties(properties);\n\n    this.hcProperties = this.path ? utils.getValue(properties, `${this.path}.qHyperCubeDef`) : properties.qHyperCubeDef;\n\n    if (!this.hcProperties) {\n      return;\n    }\n\n    hcUtils.setDefaultProperties(this);\n    hcUtils.setPropForLineChartWithForecast(this);\n\n    // Set auto-sort property (compatibility 0.85 -> 0.9), can probably be removed in 1.0\n    this.hcProperties.qDimensions = hcUtils.setFieldProperties(this.hcProperties.qDimensions);\n    this.hcProperties.qMeasures = hcUtils.setFieldProperties(this.hcProperties.qMeasures);\n  }\n\n  // ----------------------------------\n  // ----------- DIMENSIONS -----------\n  // ----------------------------------\n\n  /**\n   * @private\n   * @returns {qix.NxDimension[]} dimensions\n   * @description Returns the dimensions of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const dimensions = hyperCubeHandler.getDimensions();\n   */\n  getDimensions() {\n    return this.hcProperties ? this.hcProperties.qDimensions : [];\n  }\n\n  /**\n   * @private\n   * @returns {qix.NxDimension[]} alternative dimensions\n   * @description Returns the alternative dimensions of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const alternativeDimensions = hyperCubeHandler.getAlternativeDimensions();\n   */\n  getAlternativeDimensions() {\n    return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qDimensions ?? [];\n  }\n\n  /**\n   * @private\n   * @param {string} cId\n   * @returns {qix.NxDimensionInfo} dimension layout\n   * @description Returns the dimension layout of the hypercube for a given cId.\n   * @memberof HyperCubeHandler\n   * @example\n   * const dimensionLayout = hyperCubeHandler.getDimensionLayout('cId');\n   */\n  getDimensionLayout(cId) {\n    return this.getDimensionLayouts().filter((item) => cId === item.cId)[0];\n  }\n\n  /**\n   * @private\n   * @returns {qix.NxDimensionInfo[]} dimension layouts\n   * @description Returns the dimension layouts of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const dimensionLayouts = hyperCubeHandler.getDimensionLayouts();\n   */\n  getDimensionLayouts() {\n    const hc = hcUtils.getHyperCube(this.layout, this.path);\n    return hc ? hc.qDimensionInfo : [];\n  }\n\n  /**\n   * @private\n   * @param {qix.NxDimension} dimension\n   * @param {boolean} alternative\n   * @param {number=} idx\n   * @returns {qix.NxDimension} dimension\n   * @description Adds a dimension to the hypercube and updates the orders of the dimensions.\n   * If the dimension is an alternative, it will be added to the alternative dimensions.\n   * @memberof HyperCubeHandler\n   * @example\n   * const dimension = hyperCubeHandler.addDimension({qDef :{ cId: 'id', qSortCriterias: [{qSortByLoadOrder: 1}]}}, true, 1);\n   */\n  addDimension(dimension, alternative, idx) {\n    const dim = initializeDim(dimension);\n\n    if (hcUtils.isDimensionAlternative(this, alternative)) {\n      return hcUtils.addAlternativeDimension(this, dim, idx);\n    }\n\n    return addMainDimension(this, dim, idx);\n  }\n\n  /**\n   * @private\n   * @param {qix.NxDimension[]} dimensions\n   * @param {boolean} alternative\n   * @returns {qix.NxDimension[]} added dimensions\n   * @description Adds multiple dimensions to the hypercube.\n   * If the dimensions are alternatives, they will be added to the alternative dimensions.\n   * If the total number of dimensions exceeds the limit, it will stop adding dimensions.\n   * @memberof HyperCubeHandler\n   * @example\n   * const addedDimensions = await hyperCubeHandler.addDimensions([{qDef :{ cId: 'id01'}}, {qDef :{ cId: 'id02'}}], false);\n   */\n  async addDimensions(dimensions, alternative = false) {\n    const existingDimensions = this.getDimensions();\n    const initialLength = existingDimensions.length;\n    const addedDimensions = [];\n    let addedActive = 0;\n\n    // eslint-disable-next-line no-restricted-syntax\n    for await (const dimension of dimensions) {\n      if (hcUtils.isTotalDimensionsExceeded(this, existingDimensions)) {\n        return addedDimensions;\n      }\n\n      const dim = initializeDim(dimension);\n\n      if (hcUtils.isDimensionAlternative(this, alternative)) {\n        const altDim = await hcUtils.addAlternativeDimension(this, dim);\n        addedDimensions.push(altDim);\n      } else if (existingDimensions.length < this.maxDimensions()) {\n        await hcUtils.addActiveDimension(this, dim, initialLength, existingDimensions, addedDimensions, addedActive);\n        addedActive++;\n      }\n    }\n\n    return addedDimensions;\n  }\n\n  /**\n   * @private\n   * @param {number} index\n   * @param {boolean} alternative\n   * @description Removes a dimension from the hypercube by index.\n   * If the dimension is an alternative, it will be removed from the alternative dimensions.\n   * @memberof HyperCubeHandler\n   * @example\n   * hyperCubeHandler.removeDimension(0, true);\n   */\n  removeDimension(index, alternative) {\n    if (alternative) {\n      return removeAlternativeDimension(this, index);\n    }\n\n    return removeMainDimension(this, index);\n  }\n\n  /**\n   * @private\n   * @param {number[]} indexes\n   * @param {boolean} alternative\n   * @returns {qix.NxDimension[]} deleted dimensions\n   * @description Removes multiple dimensions from the hypercube by indexes.\n   * If the dimensions are alternatives, they will be removed from the alternative dimensions.\n   * If the indexes are empty, it will return an empty array.\n   * @memberof HyperCubeHandler\n   * @example\n   * const deletedDimensions = await hyperCubeHandler.removeDimensions({1, 0}, false);\n   */\n  async removeDimensions(indexes, alternative) {\n    const altDimensions = this.getAlternativeDimensions();\n    const dimensions = this.getDimensions();\n\n    if (indexes.length === 0) return [];\n    let deletedDimensions = [];\n    // Start deleting from the end of the list first otherwise the idx is messed up\n    const sortedIndexes = [...indexes].sort((a, b) => b - a);\n\n    if (alternative && altDimensions.length > 0) {\n      // Keep the original deleted order\n      deletedDimensions = hcUtils.getDeletedFields(altDimensions, indexes);\n      // eslint-disable-next-line no-restricted-syntax\n      for await (const index of sortedIndexes) {\n        await removeAlternativeDimension(this, index);\n      }\n    } else if (dimensions.length > 0) {\n      // Keep the original deleted order\n      deletedDimensions = hcUtils.getDeletedFields(dimensions, indexes);\n      // eslint-disable-next-line no-restricted-syntax\n      for await (const index of sortedIndexes) {\n        await removeMainDimension(this, index);\n      }\n    }\n\n    return deletedDimensions;\n  }\n\n  /**\n   * Replaces a dimension in the hypercube.\n   * @private\n   * @param {number} index - The index of the dimension to replace.\n   * @param {qix.NxDimension} dimension - The new dimension to replace the old one.\n   * @returns {Promise<qix.NxDimension>} replaced dimension.\n   * @memberof HyperCubeHandler\n   * @example\n   * const replacedDimension = await hyperCubeHandler.replaceDimension(2, {qDef :{ cId: 'id'}});\n   */\n  replaceDimension(index, dimension) {\n    return this.autoSortDimension(dimension).then(() => hcUtils.replaceDimensionOrder(this, index, dimension));\n  }\n\n  /**\n   * Reinserts a dimension into the hypercube.\n   * @private.\n   * @param {qix.NxDimension} dimension - The dimension to reinsert.\n   * @param {boolean} alternative - Whether the dimension is an alternative.\n   * @param {number} index - The index to insert the dimension at.\n   * @returns {Promise<qix.NxDimension>} The reinserted dimension.\n   * @memberof HyperCubeHandler\n   * @example\n   * await hyperCubeHandler.reinsertDimension({qDef :{ cId: 'id'}}, false, 2);\n   */\n  reinsertDimension(dimension, alternative, index) {\n    const dim = initializeId(dimension);\n\n    if (hcUtils.isDimensionAlternative(this, alternative)) {\n      return hcUtils.addAlternativeDimension(this, dim, index).then(() => {\n        hcUtils.moveDimensionToColumnOrder(this, dim);\n      });\n    }\n\n    return reinsertMainDimension(this, dim, index);\n  }\n\n  /**\n   * Moves a dimension within the hypercube.\n   * @private\n   * @param {number} fromIndex - The current index of the dimension.\n   * @param {number} toIndex - The new index of the dimension.\n   * @returns {Promise<qix.NxDimension[]>} updated dimensions.\n   * @memberof HyperCubeHandler\n   * @example\n   * await hyperCubeHandler.moveDimension(2, 1);\n   */\n  moveDimension(fromIndex, toIndex) {\n    const dimensions = this.getDimensions();\n    const altDimensions = this.getAlternativeDimensions();\n    if (fromIndex < dimensions.length && toIndex < dimensions.length) {\n      return Promise.resolve(arrayUtil.move(dimensions, fromIndex, toIndex));\n    }\n\n    if (fromIndex < dimensions.length && toIndex >= dimensions.length) {\n      return hcUtils.moveDimensionFromMainToAlternative(fromIndex, toIndex, dimensions, altDimensions);\n    }\n    if (fromIndex >= dimensions.length && toIndex < dimensions.length) {\n      return Promise.resolve(hcUtils.moveMeasureFromAlternativeToMain(fromIndex, toIndex, dimensions, altDimensions));\n    }\n\n    return Promise.resolve(hcUtils.moveDimensionWithinAlternative(fromIndex, toIndex, dimensions, altDimensions));\n  }\n\n  /**\n   * @private\n   * @param {qix.NxDimension} dimension\n   * @returns {qix.NxDimension} dimension with auto-sort properties\n   * @description Automatically sorts the dimension based on its properties.\n   * If the dimension has a qLibraryId, it will use the library dimension auto-sort.\n   * Otherwise, it will use the field dimension auto-sort.\n   * @memberof HyperCubeHandler\n   * @example\n   * const sortedDimension = hyperCubeHandler.autoSortDimension({qDef :{ cId: 'id'}});\n   */\n  autoSortDimension(dimension) {\n    if (dimension.qLibraryId) {\n      return getAutoSortLibraryDimension(this, dimension);\n    }\n    return getAutoSortDimension(this, dimension);\n  }\n\n  // ----------------------------------\n  // ------------ MEASURES ------------\n  // ----------------------------------\n\n  /**\n   * @private\n   * @returns {qix.NxMeasure[]} measures\n   * @description Returns the measures of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const measures = hyperCubeHandler.getMeasures();\n   */\n  getMeasures() {\n    return this.hcProperties ? this.hcProperties.qMeasures : [];\n  }\n\n  /**\n   * @private\n   * @returns {qix.NxMeasure[]} alternative measures\n   * @description Returns the alternative measures of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const alternativeMeasures = hyperCubeHandler.getAlternativeMeasures();\n   */\n  getAlternativeMeasures() {\n    return this.hcProperties?.qLayoutExclude?.qHyperCubeDef?.qMeasures ?? [];\n  }\n\n  /**\n   * @private\n   * @returns {qix.NxMeasureInfo[]} measure layouts\n   * @description Returns the measure layouts of the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const measureLayouts = hyperCubeHandler.getMeasureLayouts();\n   */\n  getMeasureLayouts() {\n    const hc = hcUtils.getHyperCube(this.layout, this.path);\n    return hc ? hc.qMeasureInfo : [];\n  }\n\n  /**\n   * @private\n   * @param {string} cId\n   * @returns {object} measure layout\n   * @description Returns the measure layout of the hypercube for a given cId.\n   * @memberof HyperCubeHandler\n   * @example\n   * const measureLayout = hyperCubeHandler.getMeasureLayout('cid');\n   */\n  getMeasureLayout(cId) {\n    return this.getMeasureLayouts().filter((item) => cId === item.cId)[0];\n  }\n\n  /**\n   * @private\n   * @param {qix.NxMeasure} measure\n   * @param {boolean} alternative\n   * @param {number=} index\n   * @returns {Promise<qix.NxMeasure>} added measure\n   * @description Adds a measure to the hypercube.\n   * If the measure is an alternative, it will be added to the alternative measures.\n   * If the total number of measures exceeds the limit, it will stop adding measures.\n   * @memberof HyperCubeHandler\n   * @example\n   * const measure = hyperCubeHandler.addMeasure({qDef :{ cId: 'id'}}, true, 0);\n   */\n  addMeasure(measure, alternative, index) {\n    const meas = initializeId(measure);\n\n    if (hcUtils.isMeasureAlternative(this, alternative)) {\n      return hcUtils.addAlternativeMeasure(this, meas, index);\n    }\n\n    return addMainMeasure(this, meas, index);\n  }\n\n  /**\n   * @private\n   * @param {qix.NxMeasure} measure\n   * @returns {Promise<qix.NxMeasure>} measure with auto-sort properties\n   * @description Automatically sorts the measure based on its properties.\n   * It sets the qSortByLoadOrder and qSortByNumeric properties.\n   * @memberof HyperCubeHandler\n   * @example\n   * const sortedMeasure = hyperCubeHandler.autoSortMeasure({qDef :{ cId: 'id'}});\n   */\n  // eslint-disable-next-line class-methods-use-this\n  autoSortMeasure(measure) {\n    const meas = measure;\n    meas.qSortBy = {\n      qSortByLoadOrder: 1,\n      qSortByNumeric: -1,\n    };\n    return Promise.resolve(meas);\n  }\n\n  /**\n   * @private\n   * @param {qix.NxMeasure[]} measures\n   * @param {boolean} alternative\n   * @returns {qix.NxMeasure[]} added measures\n   * @description Adds multiple measures to the hypercube.\n   * If the measures are alternatives, they will be added to the alternative measures.\n   * If the total number of measures exceeds the limit, it will stop adding measures.\n   * @memberof HyperCubeHandler\n   * @example\n   * const addedMeasures = await hyperCubeHandler.addMeasures([{qDef :{ cId: 'id01'}}, {qDef :{ cId: 'id02'}}], true);\n   */\n  addMeasures(measures, alternative = false) {\n    const existingMeasures = this.getMeasures();\n    const addedMeasures = [];\n    let addedActive = 0;\n\n    measures.forEach(async (measure) => {\n      if (hcUtils.isTotalMeasureExceeded(this, existingMeasures)) {\n        return false;\n      }\n\n      const meas = initializeId(measure);\n\n      if (hcUtils.isMeasureAlternative(this, alternative || false)) {\n        hcUtils.addAlternativeMeasure(this, meas);\n        addedMeasures.push(meas);\n      } else if (existingMeasures.length < this.maxMeasures()) {\n        await hcUtils.addActiveMeasure(this, meas, existingMeasures, addedMeasures, addedActive);\n        addedActive++;\n      }\n      return true;\n    });\n    return addedMeasures;\n  }\n\n  /**\n   * @private\n   * @param {number} index\n   * @param {boolean} alternative\n   * @description Removes a measure from the hypercube by index.\n   * If the measure is an alternative, it will be removed from the alternative measures.\n   * @memberof HyperCubeHandler\n   * @example\n   * hyperCubeHandler.removeMeasure(0, false);\n   */\n  removeMeasure(index, alternative) {\n    if (alternative) {\n      return hcUtils.removeAltMeasureByIndex(this, index);\n    }\n    return removeMainMeasure(this, index);\n  }\n\n  /**\n   * @private\n   * @param {number[]} indexes\n   * @param {boolean} alternative\n   * @returns {Promise<number[]>} deleted measures\n   * @description Removes multiple measures from the hypercube by indexes.\n   * If the measures are alternatives, they will be removed from the alternative measures.\n   * If the indexes are empty, it will return an empty array.\n   * @memberof HyperCubeHandler\n   * @example\n   * const deletedMeasures = await hyperCubeHandler.removeMeasures({0,1}, true);\n   */\n  async removeMeasures(indexes, alternative) {\n    const measures = this.getMeasures();\n    const altMeasures = this.getAlternativeMeasures();\n    let deletedMeasures = [];\n\n    if (indexes.length === 0) return deletedMeasures;\n\n    if (alternative && altMeasures.length > 0) {\n      // Keep the original deleted order\n      deletedMeasures = hcUtils.getDeletedFields(altMeasures, indexes);\n      removeAlternativeMeasure(this, indexes);\n    } else if (measures.length > 0) {\n      // Keep the original deleted order\n      deletedMeasures = hcUtils.getDeletedFields(measures, indexes);\n      const sortedIndexes = [...indexes].sort((a, b) => b - a);\n\n      // eslint-disable-next-line no-restricted-syntax\n      for await (const index of sortedIndexes) {\n        await removeMainMeasure(this, index);\n      }\n    }\n\n    return deletedMeasures;\n  }\n\n  /**\n   * @private\n   * @param {number} index\n   * @param {qix.NxMeasure} measure\n   * @returns {Promise<qix.NxMeasure>} replaced measure\n   * @description Replaces a measure in the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const updatedMeasure = await hyperCubeHandler.replaceMeasure(0, {qDef :{ cId: 'id'}});\n   */\n  replaceMeasure(index, measure) {\n    return this.autoSortMeasure(measure).then(() => hcUtils.replaceMeasureToColumnOrder(this, index, measure));\n  }\n\n  /**\n   * @private\n   * @param {qix.NxMeasure} measure\n   * @param {boolean} alternative\n   * @param {number} index\n   * @returns {Promise<qix.NxMeasure>} reinserted measure\n   * @description Reinserts a measure into the hypercube.\n   * @memberof HyperCubeHandler\n   * @example\n   * const reinsertedMeasure = await hyperCubeHandler.reinsertMeasure({qDef :{ cId: 'id'}}, true, 0);\n   */\n  reinsertMeasure(measure, alternative, index) {\n    const meas = initializeId(measure);\n\n    if (hcUtils.isMeasureAlternative(this, alternative)) {\n      return hcUtils.addAlternativeMeasure(this, meas, index);\n    }\n\n    return reinsertMainMeasure(this, meas, index);\n  }\n\n  /**\n   * Moves a measure within the hypercube.\n   * @private\n   * @param {number} fromIndex\n   * @param {number} toIndex\n   * @returns {Promise<void>}\n   * @description Move measure from one index to another\n   * @memberof HyperCubeHandler\n   * @example\n   * const result = await hyperCubeHandler.moveMeasure(0, 1);\n   */\n  moveMeasure(fromIndex, toIndex) {\n    const measures = this.getMeasures();\n    const altMeasures = this.getAlternativeMeasures();\n\n    if (fromIndex < measures.length && toIndex < measures.length) {\n      // Move within main measures\n      return Promise.resolve(arrayUtil.move(measures, fromIndex, toIndex));\n    }\n\n    if (fromIndex < measures.length && toIndex >= measures.length) {\n      return hcUtils.moveMeasureFromMainToAlternative(fromIndex, toIndex, measures, altMeasures);\n    }\n\n    if (fromIndex >= measures.length && toIndex < measures.length) {\n      return hcUtils.moveMeasureFromAlternativeToMain(fromIndex, toIndex, measures, altMeasures);\n    }\n\n    return Promise.resolve(hcUtils.moveMeasureWithinAlternative(fromIndex, toIndex, measures, altMeasures));\n  }\n\n  // ----------------------------------\n  // ------------ OTHERS---- ----------\n  // ----------------------------------\n\n  /**\n   * Sets the sorting order for the hypercube.\n   * @private\n   * @param {number[]} arr - The new sorting order.\n   * @memberof HyperCubeHandler\n   * @example\n   * const newSortingOrder = [2, 0, 1];\n   * hyperCubeHandler.setSorting(newSortingOrder);\n   */\n  setSorting(arr) {\n    if (arr && arr.length === this.hcProperties.qInterColumnSortOrder.length) {\n      this.hcProperties.qInterColumnSortOrder = arr;\n    }\n  }\n\n  /**\n   * Gets the sorting order for the hypercube.\n   * @private\n   * @returns {number[]} The current sorting order.\n   * @memberof HyperCubeHandler\n   * @example\n   * const currentSortingOrder = hyperCubeHandler.getSorting();\n   */\n  getSorting() {\n    return this.hcProperties.qInterColumnSortOrder;\n  }\n\n  /**\n   * Changes the sorting order for the hypercube.\n   * @private\n   * @param {number} fromIdx - The index to move from.\n   * @param {number} toIdx - The index to move to.\n   * @memberof HyperCubeHandler\n   * @example\n   * const newSortingOrder = hyperCubeHandler.changeSorting(0, 1);\n   */\n  changeSorting(fromIdx, toIdx) {\n    utils.move(this.hcProperties.qInterColumnSortOrder, fromIdx, toIdx);\n  }\n\n  /**\n   * Returns whether the hypercube is in straight mode or pivot mode.\n   * @private\n   * @returns {string} 'S' for straight mode, 'P' for pivot mode\n   * @memberof HyperCubeHandler\n   */\n  IsHCInStraightMode() {\n    return this.hcProperties.qMode === 'S';\n  }\n\n  /**\n   * @private\n   * @param {boolean} value\n   * @description This flag indicates whether we enabled HC modifier and have at least one script\n   * @memberof HyperCubeHandler\n   */\n  setHCEnabled(value) {\n    if (this.hcProperties) {\n      this.hcProperties.isHCEnabled = value;\n    }\n  }\n\n  /**\n   * Gets the dynamic scripts for the hypercube.\n   * @private\n   * @returns {Array} The dynamic scripts.\n   * @memberof HyperCubeHandler\n   */\n  getDynamicScripts() {\n    return this.hcProperties?.qDynamicScript || [];\n  }\n}\n\nexport default HyperCubeHandler;\n","import updateDimensionOrders from './update-dimension-orders';\n\nfunction addMainDimension(self, dimension, index) {\n  const dimensions = self.getDimensions();\n  const idx = index ?? dimensions.length;\n\n  if (dimensions.length < self.maxDimensions()) {\n    return updateDimensionOrders(self, dimension, idx);\n  }\n\n  return Promise.resolve(dimension);\n}\n\nexport default addMainDimension;\n","import { addDimensionToColumnOrder, addDimensionToColumnSortOrder } from './hypercube-utils';\n\nfunction updateDimensionOrders(self, dimension, index) {\n  const dimensions = self.getDimensions();\n  dimensions.splice(index, 0, dimension);\n\n  return self.autoSortDimension(dimension).then(async () => {\n    addDimensionToColumnSortOrder(self, dimensions, index);\n    await addDimensionToColumnOrder(self, dimension);\n\n    return dimension;\n  });\n}\nexport default updateDimensionOrders;\n","import { addDimensionToColumnSortOrder, moveDimensionToColumnOrder } from './hypercube-utils';\n\nfunction reinsertMainDimension(self, dimension, index) {\n  const dimensions = self.getDimensions();\n  const idx = index ?? dimensions.length;\n\n  if (dimensions.length < self.maxDimensions()) {\n    dimensions.splice(idx, 0, dimension);\n\n    addDimensionToColumnSortOrder(self, dimensions);\n    return moveDimensionToColumnOrder(self, dimension);\n  }\n\n  return Promise.resolve(dimension);\n}\n\nexport default reinsertMainDimension;\n","import { findLibraryItem, setAutoSort } from './field-utils';\n\nfunction getAutoSortLibraryDimension(self, dimension) {\n  return self.app.getDimensionList().then((dimensionList) => {\n    const libDim = dimension?.qLibraryId && findLibraryItem(dimension.qLibraryId, dimensionList);\n    if (libDim) {\n      setAutoSort(libDim.qData.info, dimension, self);\n    }\n    return dimension;\n  });\n}\n\nexport default getAutoSortLibraryDimension;\n","import findFieldInExpandedList from './find-field-in-expandedList';\nimport { setAutoSort } from './field-utils';\n\nfunction getAutoSortDimension(self, dimension) {\n  return self.app.getFieldList().then((fieldList) => {\n    const field = dimension?.qDef?.qFieldDefs && findFieldInExpandedList(dimension.qDef.qFieldDefs[0], fieldList);\n    if (field) {\n      setAutoSort([field], dimension, self);\n    }\n    return dimension;\n  });\n}\n\nexport default getAutoSortDimension;\n","import expandFieldsWithDerivedData from './expand-field-derived-data';\nimport { findFieldByName, getField } from './field-utils';\n\nconst findFieldInExpandedList = (name, fieldList) => {\n  const expandedList = expandFieldsWithDerivedData(fieldList.slice(0));\n  const fieldName = getField(name);\n  return (expandedList && findFieldByName(fieldName, expandedList)) || null;\n};\n\nexport default findFieldInExpandedList;\n","import getDataGeoField from './get-data-geo-field';\nimport getDerivedFields from './get-derived-fields';\n\nconst expandFieldsWithDerivedData = (list) => {\n  const fieldList = [];\n  list.forEach((field) => {\n    fieldList.push(getDataGeoField(field));\n\n    const derivedFields = getDerivedFields(field);\n    fieldList.push(...derivedFields);\n  });\n\n  return fieldList;\n};\n\nexport default expandFieldsWithDerivedData;\n","import { isDateField, isGeoField } from './field-utils';\n\nconst getDataGeoField = (field) => {\n  const item = field;\n  item.isDateField = isDateField(item);\n  item.isGeoField = isGeoField(item);\n  return item;\n};\n\nexport default getDataGeoField;\n","import { trimAutoCalendarName } from './field-utils';\n\nconst getDerivedFields = (field) => {\n  const derivedFields = [];\n\n  if (!field.qDerivedFieldData) {\n    return derivedFields;\n  }\n\n  field.qDerivedFieldData.qDerivedFieldLists.forEach((derived) => {\n    derived.qFieldDefs.forEach((derivedField) => {\n      derivedFields.push({\n        qName: derivedField.qName,\n        displayName: trimAutoCalendarName(derivedField.qName),\n        qSrcTables: field.qSrcTables,\n        qTags: derivedField.qTags,\n        isDerived: true,\n        isDerivedFromDate: field.isDateField,\n        sourceField: field.qName,\n        derivedDefinitionName: derived.qDerivedDefinitionName,\n      });\n    });\n  });\n\n  return derivedFields;\n};\n\nexport default getDerivedFields;\n","import { addMeasureToColumnOrder, addMeasureToColumnSortOrder } from './hypercube-utils';\n\nfunction addMainMeasure(self, measure, index) {\n  const measures = self.getMeasures();\n  const idx = index ?? measures.length;\n\n  if (measures.length < self.maxMeasures()) {\n    measures.splice(idx, 0, measure);\n\n    return self.autoSortMeasure(measure).then(() => {\n      addMeasureToColumnSortOrder(self, measures);\n      addMeasureToColumnOrder(self, measure).then(() => measure);\n      return measure;\n    });\n  }\n\n  return Promise.resolve();\n}\n\nexport default addMainMeasure;\n","import { getRemainedFields } from './hypercube-utils';\n\nfunction removeAlternativeMeasure(self, indexes) {\n  const current = self;\n  const measures = current.getAlternativeMeasures();\n  const remainedFields = getRemainedFields(measures, indexes);\n  current.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures = remainedFields;\n}\n\nexport default removeAlternativeMeasure;\n","import { addMeasureToColumnSortOrder, moveMeasureColumnOrder } from './hypercube-utils';\n\nfunction reinsertMainMeasure(self, measure, index) {\n  const measures = self.getMeasures();\n  const idx = index ?? measures.length;\n\n  if (measures.length < self.maxMeasures()) {\n    measures.splice(idx, 0, measure);\n\n    addMeasureToColumnSortOrder(self, measures);\n    return moveMeasureColumnOrder(self, measure);\n  }\n\n  return Promise.resolve(measure);\n}\n\nexport default reinsertMainMeasure;\n","const noop = () => {};\n\n/**\n * @function importProperties\n * @description Imports properties for a chart with a hypercube.\n * @since 1.1.0\n * @param {Object} args\n * @param {ExportFormat} args.exportFormat The export object which is the output of exportProperties.\n * @param {Object=} args.initialProperties Initial properties of the target chart.\n * @param {Object=} args.dataDefinition Data definition of the target chart.\n * @param {Object=} args.defaultPropertyValues Default values for a number of properties of the target chart.\n * @param {string} args.hypercubePath Reference to the qHyperCubeDef.\n * @returns {Object} A properties tree\n */\n\n/**\n * @function exportProperties\n * @description Exports properties for a chart with a hypercube.\n * @since 1.1.0\n * @param {Object} args\n * @param {Object} args.propertyTree\n * @param {string} args.hypercubePath Reference to the qHyperCubeDef.\n * @returns {ExportFormat}\n */\n\n/**\n * @callback onPropertyChange\n * @param {qix.GenericObjectProperties} properties\n */\n\n/**\n * @interface QAEProperties\n * @property {qix.GenericObjectProperties=} initial\n * @property {onPropertyChange=} onChange\n */\n\n/**\n * @interface QAEDefinition\n * @property {(QAEProperties|qix.GenericObjectProperties)=} properties\n * @property {object=} data\n * @property {DataTarget[]} data.targets\n * @property {importProperties=} importProperties\n * @property {exportProperties=} exportProperties\n */\n\n/**\n * @interface DataTarget\n * @property {string} path\n * @property {FieldTarget<qix.NxDimension>=} dimensions\n * @property {FieldTarget<qix.NxMeasure>=} measures\n */\n\n/**\n * @callback fieldTargetAddedCallback\n * @template T\n * @param {T} field\n * @param {qix.GenericObjectProperties} properties\n */\n\n/**\n * @callback fieldTargetRemovedCallback\n * @template T\n * @param {T} field\n * @param {qix.GenericObjectProperties} properties\n * @param {number} index\n */\n\n/**\n * @interface FieldTarget\n * @template T\n * @property {function()|number} [min] Number or function that returns the minimum number of fields\n * @property {function()|number} [max] Number or function that returns the maximum number of fields\n * @property {fieldTargetAddedCallback<T>} [added]\n * @property {fieldTargetRemovedCallback<T>} [removed]\n */\n\nfunction fallback(x, value) {\n  if (typeof x === 'undefined') {\n    return () => value;\n  }\n  return () => x;\n}\n\nfunction defFn(input) {\n  const def = input || {};\n  return {\n    min: typeof def.min === 'function' ? def.min : fallback(def.min, 0),\n    max: typeof def.max === 'function' ? def.max : fallback(def.max, 1000),\n    added: def.added || def.add || noop, // TODO - deprecate add in favour of added\n    description: def.description || noop,\n    moved: def.moved || def.move || noop,\n    removed: def.removed || def.remove || noop,\n    replaced: def.replaced || def.replace || noop,\n    isDefined: () => !!input,\n  };\n}\n\nconst resolveValue = (data, reference, defaultValue) => {\n  const steps = reference.split('/');\n  let dataContainer = data;\n  if (dataContainer === undefined) {\n    return defaultValue;\n  }\n  for (let i = 0; i < steps.length; ++i) {\n    if (steps[i] === '') {\n      continue; // eslint-disable-line no-continue\n    }\n    if (typeof dataContainer[steps[i]] === 'undefined') {\n      return defaultValue;\n    }\n    dataContainer = dataContainer[steps[i]];\n  }\n\n  return dataContainer;\n};\n\nfunction target(def) {\n  const propertyPath = def.path || '/qHyperCubeDef';\n  const layoutPath = propertyPath.slice(0, -3);\n  if (/\\/(qHyperCube|qListObject|qChildList)$/.test(layoutPath) === false) {\n    const d = layoutPath.includes('/qHyperCube') ? 'qHyperCubeDef' : 'qListObjectDef';\n    throw new Error(\n      `Incorrect definition for ${d} at ${propertyPath}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`\n    );\n  }\n  return {\n    propertyPath,\n    layoutPath,\n    resolveLayout: (layout) => resolveValue(layout, layoutPath, {}),\n    dimensions: defFn(def.dimensions),\n    measures: defFn(def.measures),\n  };\n}\n\nexport default function qae(def = {}) {\n  let initial = def.properties || {};\n  let onChange;\n  if (def.properties && (def.properties.initial || def.properties.onChange)) {\n    initial = def.properties.initial;\n    onChange = def.properties.onChange;\n  }\n  const q = {\n    properties: {\n      initial,\n      onChange,\n    },\n    data: {\n      targets: ((def.data || {}).targets || []).map(target),\n    },\n    exportProperties: def.exportProperties,\n    importProperties: def.importProperties,\n  };\n\n  return q;\n}\n","import create from './creator';\nimport HyperCubeHandler from './handler/hypercube-handler';\n// import translator from './translator';\nimport qae from './qae';\n\n/**\n * The entry point for defining a visualization.\n * @interface Visualization\n * @param {Galaxy} galaxy\n * @returns {VisualizationDefinition}\n * @example\n * import { useElement, useLayout } from '@nebula.js/stardust';\n *\n * export default function() {\n *   return {\n *     qae: {\n *       properties: {\n *         dude: 'Heisenberg',\n *       }\n *     },\n *     component() {\n *       const el = useElement();\n *       const layout = useLayout();\n *       el.innerHTML = `What's my name? ${layout.dude}!!!`;\n *     }\n *   };\n * }\n */\n\n/**\n * @interface VisualizationDefinition\n * @property {QAEDefinition} qae\n * @property {function():void} component\n */\n\n/**\n * @interface snGenerator\n * @param {Visualization} Sn\n * @param {Galaxy} galaxy\n * @returns {generator}\n * @private\n */\nexport default function generatorFn(UserSN, galaxy) {\n  let sn;\n\n  // TODO validate galaxy API\n\n  if (typeof UserSN === 'function') {\n    sn = UserSN(galaxy);\n  } else {\n    sn = UserSN;\n  }\n\n  /**\n   * @alias generator\n   * @private\n   */\n  const generator = /** @lends generator */ {\n    /**\n     * @type {QAE}\n     */\n    qae: qae(sn.qae),\n    /**\n     * @type {SnComponent}\n     */\n    component: sn.component || {},\n    /**\n     * @param {object} p\n     * @param {EnigmaAppModel} p.app\n     * @param {EnigmaObjectModel} p.model\n     * @param {ObjectSelections} p.selections\n     */\n    create(params) {\n      return create(generator, params, galaxy);\n    },\n    definition: galaxy.flags.isEnabled('NEBULA_DATA_HANDLERS')\n      ? {\n          dataHandler: sn?.dataHandler ?? ((opts) => new HyperCubeHandler(opts)),\n        }\n      : {},\n  };\n\n  Object.keys(sn).forEach((key) => {\n    if (!generator[key]) {\n      generator.definition[key] = sn[key];\n    }\n  });\n\n  return generator;\n}\n","import SvgIcon from './SvgIcon';\n\nconst warning = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(warning(props));\n","/* eslint-disable react/no-array-index-key */\nimport React from 'react';\nimport { Grid, Typography, Icon } from '@mui/material';\nimport WarningTriangle from '@nebula.js/ui/icons/warning-triangle-2';\nimport Tick from '@nebula.js/ui/icons/tick';\nimport { useTheme } from '@nebula.js/ui/theme';\n\nfunction DescriptionRow({ d }) {\n  const theme = useTheme();\n  let color = 'inherit';\n  let styleColor = theme.palette.success.main;\n  if (d.missing) {\n    styleColor = theme.palette.warning.main;\n  } else if (d.error) {\n    color = 'error';\n    styleColor = theme.palette.error.main;\n  }\n  const style = { color: styleColor };\n  const WrappedIcon = (\n    <Typography style={{ lineHeight: '30px', paddingRight: theme.spacing(1) }}>\n      <Icon>{d.missing || d.error ? <WarningTriangle style={style} /> : <Tick style={style} />}</Icon>\n    </Typography>\n  );\n  return (\n    <Grid container alignItems=\"center\" wrap=\"nowrap\">\n      <Grid>{WrappedIcon}</Grid>\n      <Grid container sx={{ minWidth: 0 }} wrap=\"nowrap\">\n        <Typography noWrap component=\"p\">\n          <Typography component=\"span\" variant=\"subtitle2\" color={color}>\n            {d.description}\n          </Typography>\n          <Typography component=\"span\"> </Typography>\n          <Typography\n            component=\"span\"\n            variant=\"subtitle2\"\n            color={d.error ? 'error' : 'inherit'}\n            style={{ fontWeight: 400 }}\n          >\n            {d.label}\n          </Typography>\n        </Typography>\n      </Grid>\n    </Grid>\n  );\n}\n\nfunction Descriptions({ data }) {\n  const theme = useTheme();\n  return (\n    <Grid container style={{ maxWidth: '300px', overflow: 'hidden' }}>\n      {data.map((e, ix) => {\n        const Rows = e.descriptions.map((d, dix) => <DescriptionRow d={d} key={dix} />);\n        return (\n          Rows.length > 0 && (\n            <Grid\n              container\n              key={ix}\n              direction=\"column\"\n              style={{\n                paddingBottom: theme.spacing(2),\n              }}\n            >\n              <Typography noWrap key={ix} variant=\"subtitle1\" align=\"left\" color=\"textSecondary\">\n                {e.title}\n              </Typography>\n              {Rows}\n            </Grid>\n          )\n        );\n      })}\n    </Grid>\n  );\n}\n\nexport default function Error({ title = 'Error', message = '', data = [] }) {\n  return (\n    <Grid\n      container\n      direction=\"column\"\n      alignItems=\"center\"\n      justifyContent=\"center\"\n      style={{ position: 'relative', height: '100%', width: '100%' }}\n    >\n      <Grid>\n        <WarningTriangle style={{ fontSize: '38px' }} />\n      </Grid>\n      <Grid>\n        <Typography variant=\"h6\" align=\"center\" data-tid=\"error-title\">\n          {title}\n        </Typography>\n      </Grid>\n      <Grid>\n        <Typography variant=\"subtitle1\" align=\"center\" data-tid=\"error-message\">\n          {message}\n        </Typography>\n      </Grid>\n      <Descriptions data={data} />\n    </Grid>\n  );\n}\n\nexport { Descriptions, DescriptionRow };\n","/* eslint react/jsx-props-no-spreading: 0 */\n\nimport React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport { CircularProgress } from '@mui/material';\n\nconst PREFIX = 'Progress';\n\nconst classes = {\n  root: `${PREFIX}-root`,\n  front: `${PREFIX}-front`,\n  back: `${PREFIX}-back`,\n};\n\nconst Root = styled('div')(({ theme }) => ({\n  [`&.${classes.root}`]: {\n    position: 'relative',\n    display: 'inline-block',\n  },\n\n  [`& .${classes.front}`]: {\n    color: theme.palette.secondary.main,\n    animationDuration: '1500ms',\n    position: 'absolute',\n    left: 0,\n  },\n\n  [`& .${classes.back}`]: {\n    color: theme.palette.divider,\n  },\n}));\n\nconst SIZES = {\n  small: 16,\n  medium: 32,\n  large: 64,\n  xlarge: 128,\n};\n\nexport default function Progress({ size = 'medium', ...props }) {\n  const s = SIZES[size];\n\n  return (\n    <Root className={classes.root}>\n      <CircularProgress variant=\"determinate\" value={100} className={classes.back} size={s} thickness={3} {...props} />\n      <CircularProgress\n        variant=\"indeterminate\"\n        disableShrink\n        className={classes.front}\n        size={s}\n        thickness={3}\n        {...props}\n      />\n    </Root>\n  );\n}\n","/* eslint-disable react/jsx-props-no-spreading */\nimport React, { useContext } from 'react';\nimport { styled } from '@mui/material/styles';\nimport { Grid, Typography, Button } from '@mui/material';\nimport WarningTriangle from '@nebula.js/ui/icons/warning-triangle-2';\nimport InstanceContext from '../contexts/InstanceContext';\n\nimport Progress from './Progress';\n\nconst PREFIX = 'LongRunningQuery';\n\nconst classes = {\n  stripes: `${PREFIX}-stripes`,\n};\n\nconst StyledGrid = styled(Grid)(() => ({\n  [`& .${classes.stripes}`]: {\n    '&::before': {\n      position: 'absolute',\n      height: '100%',\n      width: '100%',\n      top: 0,\n      left: 0,\n      content: '\"\"',\n      backgroundSize: '14.14px 14.14px',\n      backgroundImage:\n        'linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)',\n      opacity: 0.1,\n    },\n  },\n}));\n\nexport function Cancel({ cancel, translator, ...props }) {\n  return (\n    <>\n      <StyledGrid container direction=\"column\" alignItems=\"center\" gap={2}>\n        <Grid>\n          <Progress />\n        </Grid>\n        <Grid>\n          <Typography variant=\"h6\" align=\"center\" data-tid=\"update-active\">\n            {translator.get('Object.Update.Active')}\n          </Typography>\n        </Grid>\n      </StyledGrid>\n      <Grid {...props}>\n        <Button variant=\"contained\" onClick={cancel}>\n          {translator.get('Cancel')}\n        </Button>\n      </Grid>\n    </>\n  );\n}\n\nexport function Retry({ retry, translator, ...props }) {\n  return (\n    <>\n      <Grid>\n        <WarningTriangle style={{ fontSize: '38px' }} />\n      </Grid>\n      <Grid>\n        <Typography variant=\"h6\" align=\"center\" data-tid=\"update-cancelled\">\n          {translator.get('Object.Update.Cancelled')}\n        </Typography>\n      </Grid>\n      <Grid>\n        <Button variant=\"contained\" onClick={retry} {...props}>\n          {translator.get('Retry')}\n        </Button>\n      </Grid>\n    </>\n  );\n}\n\nexport default function LongRunningQuery({ canCancel, canRetry, api }) {\n  const { translator } = useContext(InstanceContext);\n\n  return (\n    <Grid\n      container\n      direction=\"column\"\n      alignItems=\"center\"\n      justifyContent=\"center\"\n      className={classes.stripes}\n      style={{\n        position: 'absolute',\n        width: '100%',\n        height: '100%',\n        left: 0,\n        top: 0,\n      }}\n      gap={2}\n    >\n      {canCancel && <Cancel cancel={api.cancel} translator={translator} className={classes.cancel} />}\n      {canRetry && <Retry retry={api.retry} translator={translator} className={classes.retry} />}\n    </Grid>\n  );\n}\n","import React from 'react';\nimport { Grid } from '@mui/material';\n\nimport Progress from './Progress';\n\nexport default function Loading() {\n  return (\n    <Grid\n      container\n      direction=\"column\"\n      alignItems=\"center\"\n      justifyContent=\"center\"\n      style={{\n        position: 'absolute',\n        width: '100%',\n        height: '100%',\n        left: 0,\n        top: 0,\n      }}\n      gap={2}\n    >\n      <Progress size=\"large\" />\n    </Grid>\n  );\n}\n","const hiddenScreenReaderText = {\n  width: 0,\n  height: 0,\n};\nexport default hiddenScreenReaderText;\n","import React, { useEffect, useState } from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport { Grid, Tooltip, Typography } from '@mui/material';\nimport ActionsToolbar from './ActionsToolbar';\nimport hiddenScreenReaderText from '../utils/style/screen-reader';\n\nconst PREFIX = 'Header';\n\nconst classes = {\n  containerStyle: `${PREFIX}-containerStyle`,\n  containerTitleStyle: `${PREFIX}-containerTitleStyle`,\n};\n\nconst StyledGrid = styled(Grid)(({ theme }) => ({\n  [`&.${classes.containerStyle}`]: {\n    flexGrow: 0,\n  },\n\n  [`&.${classes.containerTitleStyle}`]: {\n    paddingBottom: theme.spacing(1),\n  },\n}));\n\n/**\n * @interface\n * @extends HTMLElement\n * @since 2.0.0\n */\nconst CellTitle = {\n  /** @type {'njs-cell-title'} */\n  className: 'njs-cell-title',\n};\n\n/**\n * @interface\n * @extends HTMLElement\n * @since 2.0.0\n */\nconst CellSubTitle = {\n  /** @type {'njs-cell-sub-title'} */\n  className: 'njs-cell-sub-title',\n};\n\nfunction Header({ id, layout, sn, anchorEl, hovering, focusHandler, titleStyles = {}, isRtl, translator }) {\n  const showTitle = layout.showTitles && !!layout.title;\n  const showSubtitle = layout.showTitles && !!layout.subtitle;\n  const showInSelectionActions = layout.qSelectionInfo && layout.qSelectionInfo.qInSelections;\n  const [actions, setActions] = useState([]);\n\n  useEffect(() => {\n    if (!sn || !sn.component || !sn.component.isHooked) {\n      return;\n    }\n    sn.component.observeActions((a) => {\n      setActions([...a, ...((sn && sn.selectionToolbar && sn.selectionToolbar.items) || [])]);\n    });\n  }, [sn]);\n\n  const showTitles = showTitle || showSubtitle;\n  const cls = [classes.containerStyle, ...(showTitles ? [classes.containerTitleStyle] : [])];\n  const showPopoverToolbar = hovering || showInSelectionActions;\n\n  const Toolbar = (\n    <ActionsToolbar\n      show={false}\n      selections={{\n        show: showInSelectionActions,\n        api: sn.component.selections,\n        onKeyDeactivate: focusHandler.refocusContent,\n      }}\n      actions={actions}\n      popover={{ show: showPopoverToolbar, anchorEl }}\n      focusHandler={focusHandler}\n      layout={layout}\n      isRtl={isRtl}\n    />\n  );\n  return (\n    <StyledGrid container wrap=\"nowrap\" className={cls.join(' ')}>\n      <Grid size=\"grow\" sx={{ minWidth: 0 }} dir={isRtl ? 'rtl' : 'ltr'}>\n        <Grid container wrap=\"nowrap\" direction=\"column\">\n          {showTitle ? (\n            <Tooltip title={layout.title}>\n              <Typography\n                id={`${id}_title`}\n                variant=\"h6\"\n                noWrap\n                className={CellTitle.className}\n                style={titleStyles.main}\n              >\n                {layout.title}\n              </Typography>\n            </Tooltip>\n          ) : (\n            <div\n              id={`${id}_title`}\n              style={hiddenScreenReaderText}\n              aria-label={translator.get('Accessibility.Object.NoTitle')}\n            />\n          )}\n          {showSubtitle && (\n            <Tooltip title={layout.subtitle}>\n              <Typography variant=\"body2\" noWrap className={CellSubTitle.className} style={titleStyles.subTitle}>\n                {layout.subtitle}\n              </Typography>\n            </Tooltip>\n          )}\n        </Grid>\n      </Grid>\n      <Grid>{Toolbar}</Grid>\n    </StyledGrid>\n  );\n}\n\nexport default Header;\n","import escapeField from './escape-field';\n\nexport const FilterType = {\n  VALUES: 'values',\n  CONDITION: 'condition',\n  SEARCH: 'search',\n  CLEAR_SELECTION: 'clear_selection',\n};\n\nexport const SearchMode = {\n  CONTAINS: 'contains',\n  MATCHES_EXACTLY: 'matches_exactly',\n  STARTS_WITH: 'starts_with',\n  ENDS_WITH: 'ends_with',\n  BEGINNING_OF_WORD: 'beginning_of_word',\n};\n\nexport const ConditionMode = {\n  GENERAL: 'general',\n};\n\nexport const ModifierType = {\n  FIXED_VALUE: 'fixed_value',\n};\n\nconst generateSearchValue = (filter) => {\n  let prefix = '';\n  let postfix = '';\n  const mode = filter.options?.mode;\n  switch (mode) {\n    case SearchMode.BEGINNING_OF_WORD:\n      prefix = '*^';\n      postfix = '*';\n      break;\n    case SearchMode.ENDS_WITH:\n      prefix = '*';\n      break;\n    case SearchMode.STARTS_WITH:\n      postfix = '*';\n      break;\n    case SearchMode.MATCHES_EXACTLY:\n      break;\n    case SearchMode.CONTAINS:\n    default:\n      prefix = '*';\n      postfix = '*';\n      break;\n  }\n  const value = filter.options.values?.[0] ?? '';\n  return value !== '' ? `\"${prefix}${value}${postfix}\"` : '';\n};\n\nconst generateConditionValue = (filter) => {\n  const { options } = filter;\n\n  const isGeneralMode = options?.mode === ConditionMode.GENERAL;\n  const isFixedModifier = options?.modifier?.type === ModifierType.FIXED_VALUE;\n  const modifierOperators = options?.modifier?.operator ? options.modifier.operator.split(' ') : [];\n\n  if (\n    modifierOperators.length === 0 ||\n    (!isFixedModifier && (!options.firstValue?.aggregator || !options.firstValue?.field)) ||\n    (isFixedModifier && !options.firstValue?.fixedValue) ||\n    (isGeneralMode && (!options.conditionField?.aggregator || !options.conditionField?.field))\n  ) {\n    return '';\n  }\n\n  let conditionField;\n  let firstValue;\n  let conditionPrefix = '=';\n  if (isGeneralMode && isFixedModifier) {\n    // general mode with fixed modifiers\n    conditionField = `${options.conditionField?.aggregator}(${escapeField(options.conditionField?.field)})`;\n    firstValue = `${options.firstValue?.fixedValue}`;\n  } else if (!isGeneralMode && isFixedModifier) {\n    // comparing mode with fixed modifiers\n    conditionField = ``;\n    firstValue = `${options.firstValue?.fixedValue}`;\n    conditionPrefix = '';\n  } else if (!isGeneralMode && !isFixedModifier) {\n    // comparing mode without fixed modifiers\n    conditionField = `${escapeField(filter.field)}`;\n    firstValue = `${options.firstValue?.aggregator}(total ${escapeField(options.firstValue?.field)})`;\n  } else {\n    // general mode without fixed modifiers\n    conditionField = `${options.conditionField?.aggregator}(${escapeField(options.conditionField?.field)})`;\n    firstValue = `${options.firstValue?.aggregator}(${escapeField(options.firstValue?.field)})`;\n  }\n  const leftConditionResult = `${conditionPrefix}${conditionField}${modifierOperators[0]}${firstValue}`;\n\n  let rightConditionResult = '';\n  if (modifierOperators.length > 1) {\n    if (\n      (!isFixedModifier && (!options.secondValue?.aggregator || !options.secondValue?.field)) ||\n      (isFixedModifier && !options.secondValue?.fixedValue)\n    ) {\n      return '';\n    }\n\n    let secondValue;\n    let rightConditionField;\n    if (isGeneralMode && isFixedModifier) {\n      // general mode with fixed modifiers\n      secondValue = `${options.secondValue?.fixedValue}`;\n      rightConditionField = ` and ${conditionField}`;\n    } else if (!isGeneralMode && isFixedModifier) {\n      // comparing mode with fixed modifiers\n      secondValue = `${options.secondValue?.fixedValue}`;\n      rightConditionField = '';\n    } else if (!isGeneralMode && !isFixedModifier) {\n      // comparing mode without fixed modifiers\n      secondValue = `${options.secondValue?.aggregator}(total ${escapeField(options.secondValue?.field)})`;\n      rightConditionField = ` and ${conditionField}`;\n    } else {\n      // general mode without fixed modifiers\n      secondValue = `${options.secondValue?.aggregator}(${escapeField(options.secondValue?.field)})`;\n      rightConditionField = ` and ${conditionField}`;\n    }\n    rightConditionResult = `${rightConditionField}${modifierOperators[1]}${secondValue}`;\n  }\n\n  return `\"${leftConditionResult}${rightConditionResult}\"`;\n};\n\nexport const generateFiltersLabels = (filters, translator) => {\n  if (!Array.isArray(filters)) {\n    // QB-15075: when the property `filters` was already used by older apps\n    return [];\n  }\n  const EXCLUDE = translator.get('Object.FilterLabel.Exclude');\n  const filtersToShow = filters.filter((filter) => filter.showInFooter !== false);\n  return filtersToShow\n    .map((filter) => {\n      let label = '';\n      switch (filter.type) {\n        case FilterType.SEARCH:\n          label += generateSearchValue(filter);\n          break;\n        case FilterType.CONDITION:\n          label += generateConditionValue(filter);\n          break;\n        case FilterType.CLEAR_SELECTION:\n          label += translator.get('Object.FilterLabel.All');\n          break;\n        case FilterType.VALUES:\n        default:\n          label += filter.options?.values\n            ? filter.options.values.join(', ')\n            : translator.get('Object.FilterLabel.Unknown');\n          break;\n      }\n\n      if (label !== '') {\n        // Trim quotes\n        label = label.replace(/^\"|\"$/g, '');\n        // Prefix with exclude if filter inverted\n        if (filter.exclude) label = `${EXCLUDE} ${label}`;\n      }\n\n      return {\n        field: filter.field,\n        label,\n      };\n    })\n    .filter((filter) => filter.label !== '');\n};\n\nexport const generateFiltersString = (filters, translator) =>\n  generateFiltersLabels(filters, translator)\n    .map((f) => `${f.field}: ${f.label}`)\n    .join('; ');\n","import SvgIcon from './SvgIcon';\n\nconst filter = (props) => ({\n  ...props,\n  shapes: [\n    {\n      type: 'path',\n      attrs: {\n        d: 'M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z',\n      },\n    },\n  ],\n});\nexport default (props) => SvgIcon(filter(props));\nexport { filter };\n","import React from 'react';\nimport { Typography, Grid, Tooltip } from '@mui/material';\nimport FilterIcon from '@nebula.js/ui/icons/filter';\nimport { generateFiltersLabels } from '../utils/generateFiltersInfo';\n\nfunction ItalicText({ styles, children }) {\n  return (\n    <Typography noWrap variant=\"body2\" style={{ ...styles, fontStyle: 'italic' }}>\n      {children}\n    </Typography>\n  );\n}\n\nfunction FiltersFooter({ layout, translator, filtersFootnoteString, footerStyle, isRtl }) {\n  const filtersFootnoteLabels = generateFiltersLabels(layout?.filters ?? [], translator);\n  const styles = {\n    color: footerStyle?.color,\n    fontFamily: footerStyle?.fontFamily,\n    fontSize: footerStyle?.fontSize,\n    fontWeight: footerStyle?.fontWeight,\n  };\n\n  return (\n    <Tooltip title={filtersFootnoteString}>\n      <Grid\n        container\n        wrap=\"nowrap\"\n        sx={{\n          backgroundColor: footerStyle?.backgroundColor,\n          padding: footerStyle?.padding,\n          borderTop: footerStyle?.borderTop,\n        }}\n        data-testid=\"filters-footnote\"\n        justifyContent={isRtl ? 'flex-end' : 'flex-start'}\n      >\n        <Grid sx={{ display: 'flex' }}>\n          <FilterIcon style={{ fontSize: '12px', color: footerStyle.color, margin: 'auto' }} />\n          <ItalicText styles={{ ...styles, marginLeft: '2px' }}>\n            {translator.get('Object.FiltersApplied')} &nbsp;\n          </ItalicText>\n        </Grid>\n        <Grid sx={{ display: 'flex' }}>\n          {filtersFootnoteLabels.map((filter) => (\n            <Grid container wrap=\"nowrap\" key={`${filter.field}-${filter.label}`}>\n              <ItalicText styles={{ ...styles, fontWeight: 'bold' }}>{`${filter.field}:`}</ItalicText>\n              <ItalicText styles={styles}> &nbsp; {filter.label} &nbsp;</ItalicText>\n            </Grid>\n          ))}\n        </Grid>\n      </Grid>\n    </Tooltip>\n  );\n}\n\nexport default FiltersFooter;\n","import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport { Typography, Grid, Tooltip } from '@mui/material';\nimport { generateFiltersString } from '../utils/generateFiltersInfo';\nimport FiltersFooter from './FiltersFooter';\n\nconst PREFIX = 'Footer';\n\nconst classes = {\n  itemStyle: `${PREFIX}-itemStyle`,\n};\n\nconst StyledGrid = styled(Grid)(() => ({\n  [`& .${classes.itemStyle}`]: {\n    minWidth: 0,\n    width: '100%',\n  },\n}));\n\n/**\n * @interface\n * @extends HTMLElement\n * @since 2.0.0\n */\nconst CellFooter = {\n  /** @type {'njs-cell-footer'} */\n  className: 'njs-cell-footer',\n};\n\nfunction Footer({ layout, titleStyles = {}, translator, flags, isCardTheme, isRtl }) {\n  const footerStyle = titleStyles.footer;\n  const hasFilters = layout?.filters?.length > 0 && layout?.qHyperCube?.qMeasureInfo?.length > 0;\n  const filtersFootnoteString = generateFiltersString(layout?.filters ?? [], translator);\n  const showFilters = !layout?.footnote && hasFilters && filtersFootnoteString;\n  const themePaddingEnabled = flags?.isEnabled('VNA-13_CELLPADDING_FROM_THEME');\n  const paddingTop = isCardTheme ? '1px' : '6px';\n\n  return layout && layout.showTitles && (layout.footnote || showFilters) ? (\n    <StyledGrid container>\n      <Grid\n        className={classes.itemStyle}\n        data-testid={CellFooter.className}\n        sx={{ paddingTop: (theme) => (themePaddingEnabled ? paddingTop : theme.spacing(1)) }}\n      >\n        {layout.footnote && (\n          <Tooltip title={layout.footnote}>\n            <Typography\n              noWrap\n              variant=\"body2\"\n              className={CellFooter.className}\n              style={footerStyle}\n              align={isRtl ? 'right' : 'left'}\n            >\n              {layout.footnote}\n            </Typography>\n          </Tooltip>\n        )}\n        {showFilters && (\n          <FiltersFooter\n            layout={layout}\n            translator={translator}\n            filtersFootnoteString={filtersFootnoteString}\n            footerStyle={footerStyle}\n            isRtl={isRtl}\n          />\n        )}\n      </Grid>\n    </StyledGrid>\n  ) : null;\n}\n\nexport default Footer;\n","export default class RenderDebouncer {\n  constructor() {\n    this.timer = null;\n    this.next = null;\n    this.running = false;\n  }\n\n  start() {\n    if (this.running) {\n      return;\n    }\n    this.running = true;\n    this.scheduleNext();\n  }\n\n  scheduleNext() {\n    this.timer = setTimeout(() => {\n      this.doNext();\n    }, 10);\n  }\n\n  async doNext() {\n    const fn = this.next;\n    this.next = null;\n    if (fn) {\n      await fn();\n      this.scheduleNext();\n    } else {\n      this.stop();\n    }\n  }\n\n  schedule(fn) {\n    this.next = fn;\n    this.start();\n  }\n\n  stop() {\n    if (!this.running) {\n      return;\n    }\n    clearTimeout(this.timer);\n    this.timer = null;\n    this.running = false;\n  }\n}\n","import React, { useState, useEffect, useCallback, useContext } from 'react';\nimport InstanceContext from '../contexts/InstanceContext';\nimport useRect from '../hooks/useRect';\nimport RenderDebouncer from '../utils/render-debouncer';\n\n/**\n * @interface VizElementAttributes\n * @extends NamedNodeMap\n * @property {string} data-render-count\n */\n\n/**\n * @interface\n * @extends HTMLElement\n * @property {VizElementAttributes} attributes\n */\nconst VizElement = {\n  /** @type {'njs-viz'} */\n  className: 'njs-viz',\n};\n\nfunction Supernova({ sn, snOptions: options, snPlugins: plugins, layout, appLayout, halo, cellId }) {\n  const { component } = sn;\n\n  const { theme: themeName, language, constraints, interactions, keyboardNavigation } = useContext(InstanceContext);\n  const [renderDebouncer] = useState(() => new RenderDebouncer());\n  const [isMounted, setIsMounted] = useState(false);\n  const [renderCnt, setRenderCnt] = useState(0);\n  const [containerRef, containerRect, containerNode] = useRect();\n  const [snNode, setSnNode] = useState(null);\n\n  const snRef = useCallback((ref) => {\n    if (!ref) {\n      return;\n    }\n    setSnNode(ref);\n  }, []);\n\n  // Mount / Unmount\n  useEffect(() => {\n    if (!snNode) return undefined;\n    component.created({ options });\n    component.mounted(snNode);\n    setIsMounted(true);\n    return () => {\n      renderDebouncer.stop();\n      component.willUnmount();\n    };\n  }, [snNode, component]);\n\n  // Render\n  useEffect(() => {\n    if (!isMounted || !snNode || !containerRect) {\n      return;\n    }\n    // TODO remove in-selections guard for old component API\n    if (!component.isHooked && layout && layout.qSelectionInfo && layout.qSelectionInfo.qInSelections) {\n      return;\n    }\n\n    renderDebouncer.schedule(() => {\n      const permissions = [];\n      if (!constraints.passive) {\n        permissions.push('passive');\n      }\n      if (!constraints.active) {\n        permissions.push('interact');\n      }\n      if (!constraints.select) {\n        permissions.push('select');\n      }\n      if (!constraints.edit) {\n        permissions.push('edit');\n      }\n      if (halo.app && halo.app.session) {\n        permissions.push('fetch');\n      }\n      return Promise.resolve(\n        component.render({\n          layout,\n          options,\n          plugins,\n          embed: halo.public.nebbie,\n          context: {\n            constraints,\n            interactions,\n            // halo.public.theme is a singleton so themeName is used as dep to make sure this effect is triggered\n            theme: halo.public.theme,\n            appLayout,\n            keyboardNavigation,\n\n            // TODO - remove when old component api is removed\n            ...(component.isHooked\n              ? {}\n              : {\n                  logicalSize: sn.logicalSize({ layout }),\n                  localeInfo: (appLayout || {}).qLocaleInfo,\n                  permissions,\n                }),\n          },\n        })\n      ).then((done) => {\n        if (done === false) {\n          return;\n        }\n        if (renderCnt === 0 && typeof options.onInitialRender === 'function') {\n          options.onInitialRender.call(null);\n        }\n        setRenderCnt(renderCnt + 1);\n      });\n    });\n  }, [\n    containerRect,\n    options,\n    plugins,\n    snNode,\n    containerNode,\n    layout,\n    appLayout,\n    themeName,\n    language,\n    constraints,\n    interactions,\n    isMounted,\n    keyboardNavigation,\n  ]);\n\n  return (\n    <div\n      ref={containerRef}\n      data-render-count={renderCnt}\n      style={{\n        position: 'relative',\n        height: '100%',\n      }}\n      className={VizElement.className}\n    >\n      <div ref={snRef} id={`${cellId}_content`} style={{ position: 'absolute', width: '100%', height: '100%' }} />\n    </div>\n  );\n}\n\nexport default Supernova;\n","import { useContext, useMemo } from 'react';\nimport {\n  resolveBgColor,\n  resolveBgImage,\n  resolveTextStyle,\n  resolveBorder,\n  resolveBorderRadius,\n  resolveBoxShadow,\n} from '../utils/style/styling-props';\nimport InstanceContext from '../contexts/InstanceContext';\n\nconst THEME_OBJECT_TYPE_MAP = {\n  linechart: 'lineChart',\n  barchart: 'barChart',\n  combochart: 'comboChart',\n  scatterplot: 'scatterPlot',\n  piechart: 'pieChart',\n  straightable: 'straightTable',\n  pivottable: 'pivotTable',\n  table: 'straightTable',\n  'pivot-table': 'pivotTable',\n  listbox: 'listBox',\n  referenceline: 'referenceLine',\n  datacolors: 'dataColors',\n  'text-image': 'textImage',\n  boxplot: 'boxPlot',\n  map: 'mapChart',\n  mapchart: 'mapChart',\n  bulletchart: 'bulletChart',\n  'sn-table': 'straightTableV2',\n  waterfallchart: 'waterfallChart',\n  'sn-tabbed-container': 'tabContainer',\n  'sn-slider': 'slider',\n};\n\nconst getThemeObjectType = (visualization) => {\n  if (THEME_OBJECT_TYPE_MAP[visualization.toLowerCase()]) {\n    return THEME_OBJECT_TYPE_MAP[visualization.toLowerCase()];\n  }\n  return visualization;\n};\n\nconst useStyling = ({ layout, theme, app, themeName, disableThemeBorder, queryParams }) => {\n  const { hostConfig } = useContext(InstanceContext);\n  const styling = useMemo(() => {\n    if (layout && theme) {\n      const generalComp = layout.components ? layout.components.find((comp) => comp.key === 'general') : null;\n      const objectType = getThemeObjectType(layout.visualization);\n      const titleStyles = {\n        main: resolveTextStyle(generalComp, 'main', theme, objectType),\n        footer: resolveTextStyle(generalComp, 'footer', theme, objectType),\n        subTitle: resolveTextStyle(generalComp, 'subTitle', theme, objectType),\n      };\n      const bgColor = resolveBgColor(generalComp, theme, objectType);\n      const bgImage = resolveBgImage(generalComp, app, queryParams, hostConfig?.host);\n      const border = resolveBorder(generalComp, theme, objectType, disableThemeBorder);\n      const borderRadius = resolveBorderRadius(generalComp, theme, objectType);\n      const boxShadow = resolveBoxShadow(generalComp, theme, objectType);\n      return { titleStyles, bgColor, bgImage, border, borderRadius, boxShadow };\n    }\n    return {};\n  }, [layout, theme, app, themeName, disableThemeBorder]);\n  return styling;\n};\n\nexport default useStyling;\n","/**\n * @class RenderError\n * @extends Error\n * @param {string} message\n * @param {Error} originalError\n * @property {Error} originalError\n */\n\nexport default class RenderError extends Error {\n  constructor(message, originalError) {\n    super(message);\n    this.originalError = originalError;\n    this.name = 'RenderError';\n  }\n}\n","import { generateFiltersString } from './generateFiltersInfo';\n\nconst NO_BORDER_IN_CARDS = ['action-button', 'sn-nav-menu', 'filterpane', 'sn-shape'];\nconst NO_PADDING_IN_CARDS = [\n  ...NO_BORDER_IN_CARDS,\n  'pivot-table',\n  'table',\n  'sn-table',\n  'sn-pivot-table',\n  'kpi',\n  'sn-calendar',\n  'sn-filter-pane',\n  'sn-layout-container',\n  'sn-tabbed-container',\n];\n\nconst getPaddTitle = (visualization) => NO_BORDER_IN_CARDS.indexOf(visualization) === -1;\n\nconst getTitlePadding = (visualization) => {\n  const paddTitle = getPaddTitle(visualization);\n  if (paddTitle) {\n    return '10px 10px 0';\n  }\n  return '10px 0 0';\n};\nconst getSubtitlePadding = (visualization, showTitle) => {\n  const paddTitle = getPaddTitle(visualization);\n  if (showTitle) {\n    if (paddTitle) {\n      return '0 10px';\n    }\n    return '0';\n  }\n  return getTitlePadding(visualization);\n};\n\nconst getPadding = ({ layout, isError, isCardTheme, titleStyles, translator }) => {\n  if (isCardTheme) {\n    const showTitle = layout?.showTitles && !!layout?.title;\n    const showSubtitle = layout?.showTitles && !!layout?.subtitle;\n    const hasFilters = layout?.filters?.length > 0 && layout?.qHyperCube?.qMeasureInfo?.length > 0;\n    const visualization = layout?.visualization;\n    const filtersFootnoteString = generateFiltersString(layout?.filters ?? [], translator);\n    const showFilters = !layout?.footnote && hasFilters && filtersFootnoteString;\n    const showFootnote = layout?.showTitles && (!!layout?.footnote || showFilters);\n\n    if (showTitle) {\n      // eslint-disable-next-line no-param-reassign\n      titleStyles.main.padding = getTitlePadding(visualization);\n    }\n    if (showSubtitle) {\n      // eslint-disable-next-line no-param-reassign\n      titleStyles.subTitle.padding = getSubtitlePadding(visualization, showTitle);\n    }\n    if (showFootnote) {\n      if (NO_BORDER_IN_CARDS.indexOf(visualization) === -1) {\n        // eslint-disable-next-line no-param-reassign\n        titleStyles.footer.borderTop = '1px solid #d9d9d9';\n      }\n      // eslint-disable-next-line no-param-reassign\n      titleStyles.footer.padding = '6px 10px';\n    }\n\n    let bodyPadding;\n    if (isError || NO_PADDING_IN_CARDS.indexOf(visualization) === -1) {\n      bodyPadding = `${showTitle || showSubtitle ? '0' : '10px'} 10px ${showFootnote ? '0' : '5px'}`;\n    }\n\n    return bodyPadding;\n  }\n  return undefined;\n};\n\nexport default getPadding;\n","const translationKeys = new Map();\nconst extensions = [\n  ['auto-chart', 'Object.AutoChart'],\n  ['dummy-chart', 'Dummy'],\n  ['barchart', 'Object.BarChart'],\n  ['combochart', 'Object.ComboChart'],\n  ['container', 'Object.Container'],\n  ['distributionplot', 'Object.DistributionPlot'],\n  ['boxplot', 'Object.BoxPlot'],\n  ['filterpane', 'Object.FilterPane'],\n  ['gauge', 'Object.Gauge'],\n  ['histogram', 'Object.Histogram'],\n  ['kpi', 'Object.Kpi'],\n  ['linechart', 'Object.LineChart'],\n  ['listbox', 'Object.Listbox'],\n  ['piechart', 'Object.PieChart'],\n  ['pivot-table', 'Object.PivotTable'],\n  ['map', 'Object.Map'],\n  ['scatterplot', 'Object.ScatterPlot'],\n  ['sn-table', 'Object.StraightTable'],\n  ['text-image', 'Object.TextImage'],\n  ['treemap', 'Object.Treemap'],\n  ['waterfallchart', 'Object.WaterfallChart'],\n  ['mekkochart', 'Object.MekkoChart'],\n  ['action-button', 'Object.ActionButton'],\n  ['sn-nav-menu', 'Object.NavMenu'],\n  ['bulletchart', 'Object.BulletChart'],\n  ['sn-nlg-chart', 'Object.NlgChart'],\n  ['sn-analysis-autochart', 'Common.AnalysisTypes'],\n  ['sn-tabbed-container', 'Object.TabContainer'],\n  ['qlik-sankey-chart-ext', 'Object.SankeyChart'],\n  ['qlik-radar-chart', 'Object.RadarChart'],\n  ['qlik-funnel-chart-ext', 'Object.FunnelChart'],\n  ['sn-grid-chart', 'Object.GridChart'],\n  ['sn-layout-container', 'Object.LayoutContainer'],\n];\nextensions.forEach(([key, value]) => {\n  translationKeys.set(key, value);\n});\nexport default translationKeys;\n","/* eslint-disable react/jsx-props-no-spreading */\nimport React, { forwardRef, useImperativeHandle, useEffect, useState, useContext, useReducer, useRef } from 'react';\nimport EventEmitter from 'node-event-emitter';\n\nimport { Grid, Paper } from '@mui/material';\nimport { useTheme } from '@nebula.js/ui/theme';\n\nimport CError from './Error';\nimport LongRunningQuery from './LongRunningQuery';\nimport Loading from './Loading';\nimport Header from './Header';\nimport Footer from './Footer';\nimport Supernova from './Supernova';\n\nimport useRect from '../hooks/useRect';\nimport useLayout, { useAppLayout } from '../hooks/useLayout';\nimport InstanceContext from '../contexts/InstanceContext';\nimport useObjectSelections from '../hooks/useObjectSelections';\nimport eventmixin from '../selections/event-mixin';\nimport useStyling from '../hooks/useStyling';\nimport RenderError from '../utils/render-error';\nimport getPadding from '../utils/cell-padding';\nimport translationKeys from '../utils/extension-translation-keys';\nimport hiddenScreenReaderText from '../utils/style/screen-reader';\n\n/**\n * @interface\n * @extends HTMLElement\n */\nconst CellElement = {\n  /** @type {'njs-cell'} */\n  className: 'njs-cell',\n};\n\n/**\n * @interface\n * @extends HTMLElement\n */\nconst CellBody = {\n  /** @type {'njs-cell-body'} */\n  className: 'njs-cell-body',\n};\n\nfunction support(prop, supportObject, layout) {\n  const value = supportObject[prop];\n  if (typeof value === 'function') {\n    return value.call(null, layout);\n  }\n  if (typeof value === 'boolean') {\n    return value;\n  }\n  return false;\n}\n\nconst initialState = (err) => ({\n  loading: false,\n  loaded: false,\n  longRunningQuery: false,\n  error: err ? { title: err.message } : null,\n  sn: null,\n  visualization: null,\n});\n\nconst contentReducer = (state, action) => {\n  // console.log('content reducer', action.type);\n  switch (action.type) {\n    case 'LOADING': {\n      return {\n        ...state,\n        loading: true,\n      };\n    }\n    case 'LOADED': {\n      return {\n        ...state,\n        loaded: true,\n        loading: false,\n        longRunningQuery: false,\n        error: null,\n        sn: action.sn,\n        visualization: action.visualization,\n      };\n    }\n    case 'RENDER': {\n      return {\n        ...state,\n        loaded: true,\n        loading: false,\n        longRunningQuery: false,\n        error: null,\n      };\n    }\n    case 'LONG_RUNNING_QUERY': {\n      return {\n        ...state,\n        longRunningQuery: true,\n      };\n    }\n    case 'ERROR': {\n      return {\n        ...state,\n        loading: false,\n        longRunningQuery: false,\n        error: action.error,\n      };\n    }\n    default: {\n      throw new Error(`Unhandled type: ${action.type}`);\n    }\n  }\n};\n\nfunction LoadingSn({ delay = 750 }) {\n  const [showLoading, setShowLoading] = useState(false);\n\n  useEffect(() => {\n    const handle = setTimeout(() => setShowLoading(true), delay);\n\n    return () => clearTimeout(handle);\n  }, []);\n\n  return showLoading ? <Loading /> : null;\n}\n\nconst handleModal = ({ sn, layout, model }) => {\n  const selections = sn && sn.component && sn.component.selections;\n  if (!selections || !selections.id || !model.id) {\n    return;\n  }\n  if (selections.id === model.id) {\n    if (layout && layout.qSelectionInfo && layout.qSelectionInfo.qInSelections && !selections.isModal()) {\n      const { targets } = sn.generator.qae.data;\n      const firstPropertyPath = targets[0].propertyPath;\n      selections.goModal(firstPropertyPath);\n    }\n    if (!layout.qSelectionInfo || !layout.qSelectionInfo.qInSelections) {\n      if (selections.isModal()) {\n        selections.noModal();\n      }\n    }\n  }\n};\n\nconst filterData = (d) => (d.qError ? d.qError.qErrorCode === 7005 : true);\nconst hasError = (e) => e && e.qError && e.qError.qErrorCode !== 7005;\n\nconst validateInfo = (min, info, getDescription, translatedError, translatedCalcCond) =>\n  [...Array(Math.max(min, info.length)).keys()].map((i) => {\n    const exists = !!(info && info[i]);\n    const softError = exists && info[i].qError && info[i].qError.qErrorCode === 7005;\n    const error = exists && !softError && info[i].qError;\n    const delimiter = ':';\n    const calcCondMsg = softError && info[i].qCalcCondMsg;\n    const label = `${\n      // eslint-disable-next-line no-nested-ternary\n      error ? translatedError : softError ? calcCondMsg || translatedCalcCond : (exists && info[i].qFallbackTitle) || ''\n    }`;\n    const customDescription = getDescription(i);\n    const description = customDescription ? `${customDescription}${label.length ? delimiter : ''}` : null;\n    return {\n      description,\n      label,\n      missing: (info && !exists && !error && i >= info.length) || softError,\n      error,\n    };\n  });\n\nconst getInfo = (info) => (info && (Array.isArray(info) ? info : [info])) || [];\n\nconst validateTarget = (translator, layout, properties, def) => {\n  const minD = def.dimensions.min();\n  const minM = def.measures.min();\n  const c = def.resolveLayout(layout);\n  const reqDimErrors = validateInfo(\n    minD,\n    getInfo(c.qDimensionInfo || c.qItems),\n    (i) => def.dimensions.description(properties, i, {}),\n    translator.get('Visualization.Invalid.Dimension'),\n    translator.get('Visualization.UnfulfilledCalculationCondition')\n  );\n  const reqMeasErrors = validateInfo(\n    minM,\n    getInfo(c.qMeasureInfo),\n    (i) => def.measures.description(properties, i, {}),\n    translator.get('Visualization.Invalid.Measure'),\n    translator.get('Visualization.UnfulfilledCalculationCondition')\n  );\n  return {\n    reqDimErrors,\n    reqMeasErrors,\n  };\n};\n\nconst validateCubes = (translator, targets, layout) => {\n  let hasUnfulfilledErrors = false;\n  let aggMinD = 0;\n  let aggMinM = 0;\n  let hasLayoutErrors = false;\n  let hasLayoutUnfulfilledCalculcationCondition = false;\n  const layoutErrors = [];\n\n  for (let i = 0; i < targets.length; ++i) {\n    const def = targets[i];\n\n    const minD = def.dimensions.min();\n    const minM = def.measures.min();\n\n    const c = def.resolveLayout(layout);\n\n    const dims = getInfo(c.qDimensionInfo || c.qItems);\n    const meas = getInfo(c.qMeasureInfo);\n\n    const d = dims.filter(filterData); // Filter out optional calc conditions\n    const m = meas.filter(filterData); // Filter out optional calc conditions\n    aggMinD += minD;\n    aggMinM += minM;\n    if (d.length < minD || m.length < minM) {\n      hasUnfulfilledErrors = true;\n    }\n\n    // Check for all non-calc-cond errors\n    hasUnfulfilledErrors = hasUnfulfilledErrors || dims.some(hasError) || meas.some(hasError);\n\n    if (c.qError) {\n      hasLayoutErrors = true;\n      hasLayoutUnfulfilledCalculcationCondition = c.qError.qErrorCode === 7005;\n      const title =\n        // eslint-disable-next-line no-nested-ternary\n        hasLayoutUnfulfilledCalculcationCondition && c.qCalcCondMsg\n          ? c.qCalcCondMsg\n          : hasLayoutUnfulfilledCalculcationCondition\n            ? translator.get('Visualization.UnfulfilledCalculationCondition')\n            : translator.get('Visualization.LayoutError');\n\n      layoutErrors.push({ title, descriptions: [] });\n    }\n  }\n  return {\n    hasUnfulfilledErrors,\n    aggMinD,\n    aggMinM,\n    hasLayoutErrors,\n    layoutErrors,\n  };\n};\n\nconst validateTargets = async (translator, layout, { targets }, model) => {\n  // Use a flattened requirements structure to combine all targets\n  const { hasUnfulfilledErrors, aggMinD, aggMinM, hasLayoutErrors, layoutErrors } = validateCubes(\n    translator,\n    targets,\n    layout\n  );\n\n  const reqDimErrors = [];\n  const reqMeasErrors = [];\n  let loopCacheProperties = null;\n\n  for (let i = 0; i < targets.length; ++i) {\n    const def = targets[i];\n    if (!hasLayoutErrors && hasUnfulfilledErrors) {\n      // eslint-disable-next-line no-await-in-loop\n      const properties = loopCacheProperties || (await model.getProperties());\n      loopCacheProperties = properties;\n      const res = validateTarget(translator, layout, properties, def);\n      reqDimErrors.push(...res.reqDimErrors);\n      reqMeasErrors.push(...res.reqMeasErrors);\n    }\n  }\n  const fulfilledDims = reqDimErrors.filter((e) => !(e.missing || e.error)).length;\n  const reqDimErrorsTitle = translator.get('Visualization.Incomplete.Dimensions', [fulfilledDims, aggMinD]);\n  const fulfilledMeas = reqMeasErrors.filter((e) => !(e.missing || e.error)).length;\n  const reqMeasErrorsTitle = translator.get('Visualization.Incomplete.Measures', [fulfilledMeas, aggMinM]);\n  const reqErrors = [\n    { title: reqDimErrorsTitle, descriptions: [...reqDimErrors] },\n    { title: reqMeasErrorsTitle, descriptions: [...reqMeasErrors] },\n  ];\n\n  const showError = hasLayoutErrors || hasUnfulfilledErrors;\n  const data = hasLayoutErrors ? layoutErrors : reqErrors;\n  const title = hasLayoutErrors ? layoutErrors[0].title : translator.get('Visualization.Incomplete');\n\n  return [showError, { title, data }];\n};\n\nconst getType = async ({ types, name, version }) => {\n  const SN = await types\n    .get({\n      name,\n      version,\n    })\n    .supernova();\n  return SN;\n};\n\nconst loadType = async ({\n  dispatch,\n  types,\n  visualization,\n  version,\n  model,\n  app,\n  selections,\n  nebbie,\n  focusHandler,\n  emitter,\n  onMount,\n  navigation,\n}) => {\n  try {\n    const snType = await getType({ types, name: visualization, version });\n    const sn = snType.create({\n      model,\n      app,\n      selections,\n      nebbie,\n      focusHandler,\n      emitter,\n      navigation,\n    });\n\n    if (sn) {\n      dispatch({ type: 'LOADED', sn, visualization });\n      onMount();\n    }\n  } catch (err) {\n    if (!version) {\n      dispatch({\n        type: 'ERROR',\n        error: {\n          title: `Could not find a version of '${visualization}' that supports current object version. Did you forget to register ${visualization}?`,\n        },\n      });\n    } else {\n      dispatch({ type: 'ERROR', error: { title: err.message, errorObject: err } });\n    }\n    onMount();\n  }\n};\n\nfunction createEmitter() {\n  return new EventEmitter();\n}\n\nconst Cell = forwardRef(\n  (\n    {\n      halo,\n      model: inputModel,\n      initialSnOptions,\n      initialSnPlugins,\n      initialError,\n      onMount,\n      currentId,\n      emitter,\n      navigation,\n      onError,\n    },\n    ref\n  ) => {\n    const { app, types } = halo;\n    const { nebbie } = halo.public;\n    const {\n      theme: themeName,\n      translator,\n      language,\n      keyboardNavigation,\n      externalFocusManagement,\n      disableCellPadding = false,\n      navigation: navigationApi,\n      queryParams,\n    } = useContext(InstanceContext);\n    const [internalEmitter] = useState(emitter || createEmitter);\n    const theme = useTheme();\n    const [cellRef, cellRect, cellNode] = useRect();\n    const [state, dispatch] = useReducer(contentReducer, initialState(initialError));\n    const [model, setModel] = useState(inputModel);\n    const [layout, { validating, canCancel, canRetry }, longrunning] = useLayout(model);\n    const [appLayout] = useAppLayout(app);\n    const [contentRef, contentRect, contentNode] = useRect();\n    const [snOptions, setSnOptions] = useState(initialSnOptions);\n    const [snPlugins, setSnPlugins] = useState(initialSnPlugins);\n    const cellElementId = `njs-cell-${currentId}`;\n    const [selections] = useObjectSelections(app, model, [`#${cellElementId}`, '.njs-action-toolbar-popover']); // elements which will not trigger the click out listener\n    const [hovering, setHover] = useState(false);\n    const hoveringDebouncer = useRef({ enter: null, leave: null });\n    const { titleStyles, bgColor, bgImage, border, borderRadius, boxShadow } = useStyling({\n      layout,\n      theme: halo.public.theme,\n      app: halo.app,\n      themeName,\n      disableThemeBorder: snOptions?.disableThemeBorder,\n      queryParams,\n    });\n    const isRtl = !!(snOptions?.direction === 'rtl');\n\n    const focusHandler = useRef({\n      focusToolbarButton(last) {\n        // eslint-disable-next-line react/no-this-in-sfc\n        this.emit(last ? 'focus_toolbar_last' : 'focus_toolbar_first');\n      },\n    });\n\n    useEffect(() => {\n      eventmixin(focusHandler.current);\n      focusHandler.current.blurCallback = (resetFocus) => {\n        if (focusHandler.current.onBlurHandler) {\n          focusHandler.current.onBlurHandler(resetFocus);\n          return;\n        }\n        halo.root.toggleFocusOfCells();\n        if (resetFocus && contentNode) {\n          contentNode.focus();\n        }\n      };\n      focusHandler.current.refocusContent = () => {\n        state.sn.component && typeof state.sn.component.focus === 'function' && state.sn.component.focus();\n      };\n    }, []);\n\n    const handleOnMouseEnter = () => {\n      if (hoveringDebouncer.current.leave) {\n        clearTimeout(hoveringDebouncer.current.leave);\n      }\n      if (hoveringDebouncer.enter) return;\n      hoveringDebouncer.current.enter = setTimeout(() => {\n        setHover(true);\n        hoveringDebouncer.current.enter = null;\n      }, 250);\n    };\n    const handleOnMouseLeave = () => {\n      if (hoveringDebouncer.current.enter) {\n        clearTimeout(hoveringDebouncer.current.enter);\n      }\n      if (hoveringDebouncer.current.leave) return;\n      hoveringDebouncer.current.leave = setTimeout(() => {\n        setHover(false);\n        hoveringDebouncer.current.leave = null;\n      }, 750);\n    };\n\n    const handleKeyDown = (e) => {\n      // Enter or space\n      if (['Enter', ' ', 'Spacebar'].includes(e.key)) {\n        halo.root.toggleFocusOfCells(currentId);\n      }\n    };\n\n    useEffect(() => {\n      if (initialError) {\n        // To resolve the Viz promise for missing types\n        onMount();\n        return undefined;\n      }\n      if (!appLayout || !layout) {\n        return undefined;\n      }\n      const validate = async (sn) => {\n        const [showError, error] = await validateTargets(translator, layout, sn.generator.qae.data, model);\n        if (showError) {\n          dispatch({ type: 'ERROR', error });\n        } else {\n          dispatch({ type: 'RENDER' });\n        }\n        handleModal({ sn: state.sn, layout, model });\n      };\n      const load = async (visualization, version) => {\n        dispatch({ type: 'LOADING' });\n        await loadType({\n          dispatch,\n          types,\n          visualization,\n          version,\n          model,\n          app,\n          selections,\n          nebbie,\n          focusHandler: focusHandler.current,\n          emitter: internalEmitter,\n          onMount,\n          navigation: navigation ?? navigationApi,\n        });\n      };\n\n      // Validate if it's still the same type\n      if (state.visualization === layout.visualization && state.sn) {\n        validate(state.sn);\n        return undefined;\n      }\n\n      // Load supernova\n      const withVersion = types.getSupportedVersion(layout.visualization, layout.version);\n      load(layout.visualization, withVersion);\n\n      return () => {};\n    }, [types, state.sn, model, selections, layout, appLayout, language]);\n    // Long running query\n    useEffect(() => {\n      if (!validating) {\n        return undefined;\n      }\n      const handle = setTimeout(() => dispatch({ type: 'LONG_RUNNING_QUERY' }), 2000);\n      return () => clearTimeout(handle);\n    }, [validating]);\n\n    // Expose cell ref api\n    useImperativeHandle(\n      ref,\n      () => ({\n        getQae() {\n          return state.sn.generator.qae;\n        },\n        getExtensionDefinition() {\n          return state.sn.generator.definition.ext;\n        },\n        // allow input of supportObject ot override when flipped to table\n        support(type, supportObject, outerLayout) {\n          if (layout && state.loaded && !state.error) {\n            const suppObj = supportObject || state.sn.generator.definition.ext?.support;\n            if (suppObj) {\n              return support(type, suppObj, outerLayout || layout);\n            }\n          }\n          return false;\n        },\n        toggleFocus(active) {\n          if (typeof state.sn.component.focus === 'function') {\n            if (active) {\n              state.sn.component.focus();\n            } else {\n              state.sn.component.blur();\n            }\n          }\n        },\n        setOnBlurHandler(cb) {\n          focusHandler.current.onBlurHandler = cb;\n        },\n        setSnOptions,\n        setSnPlugins,\n        setModel,\n        getImperativeHandle() {\n          if (state.sn?.component && typeof state.sn.component.getImperativeHandle === 'function') {\n            return state.sn.component.getImperativeHandle();\n          }\n          return {};\n        },\n        onContextMenu(...args) {\n          return state.sn?.component.onContextMenu(...args);\n        },\n        async takeSnapshot() {\n          const { width, height } = cellRect;\n\n          // clone layout to avoid mutation\n          let clonedLayout = JSON.parse(JSON.stringify(layout));\n          if (typeof state.sn.component.setSnapshotData === 'function') {\n            if (!clonedLayout.snapshotData) {\n              clonedLayout.snapshotData = {};\n            }\n            clonedLayout = (await state.sn.component.setSnapshotData(clonedLayout)) || clonedLayout;\n          }\n          return {\n            // TODO - this snapshot format needs to be documented and governed\n            key: String(+Date.now()),\n            meta: {\n              language: translator.language(),\n              theme: theme.name,\n              appLayout,\n              // direction: 'ltr',\n              size: {\n                width: Math.round(width),\n                height: Math.round(height),\n              },\n            },\n            layout: clonedLayout,\n          };\n        },\n        async exportImage() {\n          if (typeof halo.config.snapshot.capture !== 'function') {\n            throw new Error('Stardust embed has not been configured with snapshot.capture callback');\n          }\n          const snapshot = await this.takeSnapshot(); // eslint-disable-line\n          return halo.config.snapshot.capture(snapshot);\n        },\n        getHypercubePath() {\n          return state.sn.generator.definition.ext?.options?.hypercubePath;\n        },\n      }),\n      [state.sn, contentRect, cellRect, layout, theme.name, appLayout]\n    );\n\n    // console.log('content', state);\n    let Content = null;\n    if (state.loading && !state.longRunningQuery) {\n      Content = <LoadingSn />;\n    } else if (state.error) {\n      if (onError) {\n        const e = state.error.errorObject ? state.error.errorObject : new RenderError(state.error.title);\n        onError(e);\n      }\n      Content = <CError {...state.error} />;\n    } else if (state.loaded) {\n      Content = (\n        <Supernova\n          key={layout.visualization}\n          sn={state.sn}\n          halo={halo}\n          snOptions={snOptions}\n          snPlugins={snPlugins}\n          layout={layout}\n          appLayout={appLayout}\n          cellId={currentId}\n        />\n      );\n    }\n\n    const isCardTheme = !!halo.public.theme?.getStyle('', '', '_cards');\n    const flags = halo.public.galaxy?.flags;\n    let useOldCellPadding;\n    let bodyPadding;\n    if (disableCellPadding) {\n      useOldCellPadding = false;\n      bodyPadding = undefined;\n    } else if (!flags?.isEnabled('VNA-13_CELLPADDING_FROM_THEME')) {\n      useOldCellPadding = true;\n      bodyPadding = undefined;\n    } else {\n      useOldCellPadding = false;\n      bodyPadding = getPadding({\n        layout,\n        isError: state.error,\n        isCardTheme,\n        titleStyles,\n        translator,\n      });\n    }\n    const translationKey = translationKeys.get(layout?.visualization);\n    const translation = translator.get(translationKey);\n    return (\n      <Paper\n        style={{\n          position: 'relative',\n          width: '100%',\n          height: '100%',\n          overflow: 'hidden',\n          backgroundColor: bgColor || 'unset',\n          backgroundImage: bgImage && bgImage.url ? `url(${bgImage.url})` : undefined,\n          backgroundRepeat: 'no-repeat',\n          backgroundSize: bgImage && bgImage.size,\n          backgroundPosition: bgImage && bgImage.pos,\n          border,\n          borderRadius,\n          boxShadow,\n          boxSizing: 'border-box',\n        }}\n        elevation={0}\n        square\n        className={CellElement.className}\n        ref={cellRef}\n        id={cellElementId}\n        onMouseEnter={handleOnMouseEnter}\n        onMouseLeave={handleOnMouseLeave}\n      >\n        <Grid\n          container\n          direction=\"column\"\n          gap={0}\n          style={{\n            position: 'relative',\n            width: '100%',\n            height: '100%',\n            ...(useOldCellPadding ? { padding: theme.spacing(1) } : {}),\n            ...(state.longRunningQuery ? { opacity: '0.3' } : {}),\n          }}\n          aria-labelledby={`${currentId}_title ${currentId}_type ${currentId}_content`}\n        >\n          {layout && (\n            <div\n              id={`${currentId}_type`}\n              style={hiddenScreenReaderText}\n              aria-label={translation ?? layout.visualization}\n            />\n          )}\n          {cellNode && layout && state.sn && (\n            <Header\n              layout={layout}\n              sn={state.sn}\n              anchorEl={cellNode}\n              hovering={hovering}\n              focusHandler={focusHandler.current}\n              titleStyles={titleStyles}\n              isRtl={isRtl}\n              id={currentId}\n              translator={translator}\n            >\n              &nbsp;\n            </Header>\n          )}\n          <Grid\n            tabIndex={keyboardNavigation && !externalFocusManagement ? 0 : -1}\n            onKeyDown={keyboardNavigation && !externalFocusManagement ? handleKeyDown : null}\n            size=\"grow\"\n            className={CellBody.className}\n            style={{\n              height: '100%',\n              ...(bodyPadding ? { padding: bodyPadding } : {}),\n            }}\n            ref={contentRef}\n          >\n            {Content}\n          </Grid>\n          {cellNode && layout && state.sn && (\n            <Footer\n              layout={layout}\n              titleStyles={titleStyles}\n              translator={translator}\n              flags={flags}\n              isCardTheme={isCardTheme}\n              isRtl={isRtl}\n            />\n          )}\n        </Grid>\n        {state.longRunningQuery && <LongRunningQuery canCancel={canCancel} canRetry={canRetry} api={longrunning} />}\n      </Paper>\n    );\n  }\n);\nexport default Cell;\n","function isObject(v) {\n  return v != null && !Array.isArray(v) && typeof v === 'object';\n}\n\nfunction isEqual(a, b) {\n  if (isObject(a) && isObject(b)) {\n    return JSON.stringify(a) === JSON.stringify(b);\n  }\n  if (Array.isArray(a) || Array.isArray(b)) {\n    return false;\n  }\n  return a === b;\n}\n// eslint-disable-next-line default-param-last\nexport default function getPatches(path = '/', obj, old) {\n  const patches = [];\n  Object.keys(obj).forEach((prop) => {\n    const v = obj[prop];\n    if (typeof old[prop] === 'object' && typeof v === 'object' && !Array.isArray(v)) {\n      patches.push(...getPatches(`${path}${prop}/`, obj[prop], old[prop]));\n    } else if (!isEqual(v, old[prop])) {\n      patches.push({\n        qPath: path + prop,\n        qOp: 'add',\n        qValue: JSON.stringify(obj[prop]),\n      });\n    }\n  });\n  return patches;\n}\n","/**\n * An object literal containing meta information about the plugin and a function containing the plugin implementation.\n * @interface Plugin\n * @property {object} info Object that can hold various meta info about the plugin\n * @property {string} info.name The name of the plugin\n * @property {function} fn The implementation of the plugin. Input and return value is up to the plugin implementation to decide based on its purpose.\n * @experimental\n * @since 1.2.0\n * @example\n * const plugin = {\n *   info: {\n *     name: \"example-plugin\",\n *     type: \"meta-type\",\n *   },\n *   fn: () => {\n *     // Plugin implementation goes here\n *   }\n * };\n */\n\nexport default function validatePlugins(plugins) {\n  if (!Array.isArray(plugins)) {\n    throw new Error('Invalid plugin format: plugins should be an array!');\n  }\n  plugins.forEach((p) => {\n    if (typeof p !== 'object') {\n      throw new Error('Invalid plugin format: a plugin should be an object');\n    }\n    if (typeof p.info !== 'object' || typeof p.info.name !== 'string') {\n      throw new Error('Invalid plugin format: a plugin should have an info object containing a name');\n    }\n    if (typeof p.fn !== 'function') {\n      throw new Error(`Invalid plugin format: The plugin \"${p.info.name}\" has no \"fn\" function`);\n    }\n  });\n}\n","const canSetProperties = (layout) =>\n  !!(\n    layout &&\n    !layout.qHasSoftPatches &&\n    !layout.qExtendsId &&\n    (layout.qMeta?.privileges || []).indexOf('update') > -1\n  );\n\nexport default canSetProperties;\n","/* eslint-disable no-underscore-dangle */\nimport extend from 'extend';\nimport { JSONPatch } from '@nebula.js/supernova';\n\nconst saveSoftProperties = (model, prevEffectiveProperties, effectiveProperties) => {\n  if (!model) {\n    return Promise.resolve();\n  }\n\n  let patches = JSONPatch.generate(prevEffectiveProperties, effectiveProperties);\n  extend(true, prevEffectiveProperties, effectiveProperties);\n\n  if (patches && patches.length) {\n    patches = patches.map((p) => ({\n      qOp: p.op,\n      qValue: JSON.stringify(p.value),\n      qPath: p.path,\n    }));\n    if (model.__snInterceptor) {\n      return model.__snInterceptor.applyPatches.call(model, patches, true);\n    }\n    return model.applyPatches(patches, true);\n  }\n  return Promise.resolve();\n};\n\nexport default saveSoftProperties;\n","import EventEmitter from 'node-event-emitter';\nimport { convertTo as conversionConvertTo, helpers } from '@nebula.js/conversion';\nimport { HyperCubeHandler } from '@nebula.js/supernova';\nimport glueCell from './components/glue';\nimport getPatches from './utils/patcher';\nimport validatePlugins from './plugins/plugins';\nimport canSetProperties from './utils/can-set-properties';\nimport setProperties from './utils/set-properties';\nimport saveSoftProperties from './utils/save-soft-properties';\n\nconst noopi = () => {};\n\nexport default function viz({\n  model,\n  halo,\n  navigation,\n  initialError,\n  onDestroy = async () => {},\n  onRender = () => {},\n  onError = () => {},\n} = {}) {\n  let unmountCell = noopi;\n  let cellRef = null;\n  let mountedReference = null;\n  let onMount = null;\n  let onRenderResolve = null;\n  let viewDataObjectId;\n  let originalExtensionDef;\n  let originalLayout;\n  let successfulRender = false;\n\n  const mounted = new Promise((resolve) => {\n    onMount = resolve;\n  });\n\n  const rendered = new Promise((resolve) => {\n    onRenderResolve = resolve;\n  });\n\n  const createOnInitialRender = (override) => () => {\n    override?.(); // from options.onInitialRender\n    onRenderResolve(); // internal promise in viz to wait for render\n    onRender(); // from RenderConfig\n    successfulRender = true;\n  };\n\n  let initialSnOptions = {};\n  let initialSnPlugins = [];\n\n  const emitter = new EventEmitter();\n\n  const setSnOptions = async (opts) => {\n    const override = opts.onInitialRender;\n    if (mountedReference) {\n      (async () => {\n        await mounted;\n        cellRef.current.setSnOptions({\n          ...initialSnOptions,\n          ...opts,\n          ...{\n            onInitialRender: createOnInitialRender(override),\n          },\n        });\n      })();\n    } else {\n      // Handle setting options before mount\n      initialSnOptions = {\n        ...initialSnOptions,\n        ...opts,\n        ...{\n          onInitialRender: createOnInitialRender(override),\n        },\n      };\n    }\n  };\n\n  const setSnPlugins = async (plugins) => {\n    validatePlugins(plugins);\n    if (mountedReference) {\n      (async () => {\n        await mounted;\n        cellRef.current.setSnPlugins(plugins);\n      })();\n    } else {\n      // Handle setting plugins before mount\n      initialSnPlugins = plugins;\n    }\n  };\n\n  let newExperimental = {};\n  if (halo.context?.enablePrivateExperimental) {\n    // ===== undocumented experimental API - use at own risk ======\n    newExperimental = {\n      /**\n       *  @ignore\n       *  valid types: viewData, cssScaling, snapshot, exportData, exploration\n       *  questionable types: supportRefresh, quickMobile, fullscreen\n       *  deprecated?: sharing\n       *\n       */\n      support(type) {\n        if (mountedReference && successfulRender) {\n          return cellRef.current.support(type, originalExtensionDef?.support, originalLayout);\n        }\n        return false;\n      },\n      getPropertyPanelDefinition() {\n        if (mountedReference && successfulRender) {\n          return originalExtensionDef\n            ? originalExtensionDef.definition\n            : cellRef.current.getExtensionDefinition().definition;\n        }\n        return false;\n      },\n      /**\n       * Gets the generic hypercube handlers\n       * @private\n       * @returns {Promise<object|undefined>} methods to handle hypercube dimensions and measures definitions and properties.\n       */\n      async getHypercubePropertyHandler() {\n        await rendered;\n\n        const extensionDefinition = cellRef.current.getExtensionDefinition();\n        const dataDefinition = extensionDefinition.data;\n        const properties = await model.getEffectiveProperties();\n\n        if (dataDefinition) {\n          const options = {\n            app: model.app,\n            dimensionDefinition: dataDefinition.dimensions,\n            measureDefinition: dataDefinition.measures,\n            dimensionProperties: properties.qHyperCubeDef?.qDimensions?.[0] || helpers.getDefaultDimension(),\n            measureProperties: properties.qHyperCubeDef?.qMeasures?.[0] || helpers.getDefaultMeasure(),\n            globalChangeListeners: undefined,\n            path: cellRef.current.getHypercubePath(),\n          };\n\n          if (typeof extensionDefinition.propertyHandler === 'function') {\n            return extensionDefinition.propertyHandler(options);\n          }\n\n          return new HyperCubeHandler(options);\n        }\n\n        return undefined;\n      },\n      toggleFocus(focus) {\n        cellRef.current.toggleFocus(focus);\n      },\n      setOnBlurHandler(cb) {\n        cellRef.current.setOnBlurHandler(cb);\n      },\n      onContextMenu(...args) {\n        return cellRef.current.onContextMenu(...args);\n      },\n    };\n  }\n\n  /**\n   * @class\n   * @alias Viz\n   * @classdesc A controller to further modify a visualization after it has been rendered.\n   * @example\n   * const viz = await embed(app).render({\n   *   element,\n   *   type: 'barchart'\n   * });\n   * viz.destroy();\n   */\n  const api = /** @lends Viz# */ {\n    /**\n     * The id of this visualization's generic object.\n     * @type {string}\n     */\n    id: model.id,\n    /**\n     * This visualizations Enigma model, a representation of the generic object.\n     * @type {qix.GenericObject}\n     */\n    model,\n    /**\n     * Destroys the visualization and removes it from the the DOM.\n     * @returns {Promise<void>}\n     * @example\n     * const viz = await embed(app).render({\n     *   element,\n     *   id: 'abc'\n     * });\n     * viz.destroy();\n     */\n    async destroy() {\n      await onDestroy();\n      unmountCell();\n      unmountCell = noopi;\n    },\n    /**\n     * Converts the visualization to a different registered type.\n     *\n     * Will update properties if permissions allow, else will patch (can be forced with forcePatch parameter)\n     *\n     * Not all chart types are compatible, similar structures are required.\n     *\n     * @since 1.1.0\n     * @param {string} newType - Which registered type to convert to.\n     * @param {boolean=} forceUpdate - Whether to apply the change or not, else simply returns the resulting properties, defaults to true.\n     * @param {boolean=} forcePatch - Whether to always patch the change instead of making a permanent change\n     * @throws {Error} Throws an error if the source or target chart does not support conversion\n     * @returns {Promise<object>} Promise object that resolves to the full property tree of the converted visualization.\n     * @example\n     * const viz = await embed(app).render({\n     *   element,\n     *   id: 'abc'\n     * });\n     * await viz.convertTo('barChart');\n     * // Change the barchart to a linechart, only in the current session\n     * const newProperties = await viz.convertTo('lineChart', false, true);\n     * // Remove the conversion by clearing the patches\n     * await viz.model.clearSoftPatches();\n     */\n    async convertTo(newType, forceUpdate = true, forcePatch = false) {\n      if (forceUpdate) {\n        const layout = await model.getLayout();\n        if (canSetProperties(layout) && !forcePatch) {\n          const propertyTree = await conversionConvertTo({ halo, model, cellRef, newType });\n          await setProperties(model, propertyTree.qProperty);\n          return propertyTree;\n        }\n        const oldProperties = await model.getEffectiveProperties();\n        const propertyTree = await conversionConvertTo({ halo, model, cellRef, newType, properties: oldProperties });\n        const newProperties = propertyTree.qProperty;\n        await saveSoftProperties(model, oldProperties, newProperties);\n        return propertyTree;\n      }\n      const propertyTree = await conversionConvertTo({ halo, model, cellRef, newType });\n      return propertyTree;\n    },\n    /**\n     * Toggles the chart to a data view of the chart.\n     *\n     * The chart will be toggled to the type defined in the nebula context (dataViewType).\n     *\n     * The default dataViewType for nebula is sn-table. The specified chart type needs to be registered as well, in order to make it possible to render the data view.\n     *\n     * @experimental\n     * @since 4.9.0\n     * @param {boolean=} showDataView - If included, forces the chart into a specific state. True will show data view, and false will show the original chart. If not included it will always toggle between the two views.\n     */\n    async toggleDataView(showDataView) {\n      let newModel;\n      if (!viewDataObjectId && showDataView !== false) {\n        let newType = halo.context.dataViewType;\n        const oldProperties = await model.getEffectiveProperties();\n        // Check if dataViewType is registered. Otherwise potentially fallback to table\n        if (!halo.types.getSupportedVersion(newType)) {\n          if (halo.types.getSupportedVersion('table')) {\n            newType = 'table';\n          } else {\n            throw new Error('No data view type registered');\n          }\n        }\n\n        const propertyTree = await conversionConvertTo({\n          halo,\n          model,\n          cellRef,\n          newType,\n          properties: oldProperties,\n          viewDataMode: true,\n        });\n        newModel = await halo.app.createSessionObject(propertyTree.qProperty);\n        viewDataObjectId = newModel.id;\n        originalExtensionDef = cellRef.current.getExtensionDefinition();\n        originalLayout = await model.getLayout();\n      } else if (viewDataObjectId && showDataView !== true) {\n        newModel = model;\n        await halo.app.destroySessionObject(viewDataObjectId);\n        viewDataObjectId = undefined;\n        originalExtensionDef = undefined;\n        originalLayout = undefined;\n      }\n      if (newModel) {\n        cellRef.current.setModel(newModel);\n      }\n    },\n    /**\n     * Whether or not the chart has the data view toggled on.\n     * @type {boolean}\n     */\n    get viewDataToggled() {\n      return viewDataObjectId !== undefined;\n    },\n    /**\n     * Listens to custom events from inside the visualization. See useEmitter\n     * @param {string} eventName Event name to listen to\n     * @param {Function} listener Callback function to invoke\n     */\n    addListener(eventName, listener) {\n      emitter.addListener(eventName, listener);\n    },\n    /**\n     * Removes a listener\n     * @param {string} eventName Event name to remove from\n     * @param {Function} listener Callback function to remove\n     */\n    removeListener(eventName, listener) {\n      emitter.removeListener(eventName, listener);\n    },\n    /**\n     * Gets the specific api that a Viz exposes.\n     * @returns {Promise<object>} object that contains the internal Viz api.\n     */\n    async getImperativeHandle() {\n      await rendered;\n      return cellRef.current.getImperativeHandle();\n    },\n    /**\n     * Takes a snapshot of the Viz layout and state\n     * @experimental\n     * @private\n     * @returns {Promise<object>} viz layout object with snapshot settings\n     */\n    async takeSnapshot() {\n      await rendered;\n      return cellRef.current.takeSnapshot();\n    },\n    ...newExperimental,\n    // ===== unexposed experimental API - use at own risk ======\n    __DO_NOT_USE__: {\n      mount(element) {\n        if (mountedReference) {\n          throw new Error('Already mounted');\n        }\n        if (!(element instanceof HTMLElement)) {\n          throw new Error('Provided element is not a proper HTMLElement');\n        }\n        mountedReference = element;\n        [unmountCell, cellRef] = glueCell({\n          halo,\n          element,\n          model,\n          initialSnOptions,\n          initialSnPlugins,\n          initialError,\n          onMount,\n          emitter,\n          navigation,\n          onError,\n        });\n        return mounted;\n      },\n      async applyProperties(props) {\n        const current = await model.getEffectiveProperties();\n        const patches = getPatches('/', props, current);\n        if (patches.length) {\n          return model.applyPatches(patches, true);\n        }\n        return undefined;\n      },\n      options(opts) {\n        setSnOptions(opts);\n      },\n      plugins(plugins) {\n        setSnPlugins(plugins);\n      },\n      exportImage() {\n        return cellRef.current.exportImage();\n      },\n      takeSnapshot() {\n        return cellRef.current.takeSnapshot();\n      },\n      getModel() {\n        return model;\n      },\n      /**\n       * Contains functionality related to conversions between types in the current session\n       * @memberof Viz#\n       * @ignore\n       * @since 4.5.0\n       */\n      convert: {\n        /**\n         * Converts the visualization to a different registered type using a patch. Only persists in session\n         * @since 4.5.0\n         * @ignore\n         * @memberof Viz.convert\n         * @param {string} newType - Which registered type to convert to.\n         * @throws {Error} Throws an error if the source or target chart does not support conversion\n         * @returns {Promise<object>} Promise object that resolves to the full property tree of the converted visualization.\n         * @example\n         * const viz = await embed(app).render({\n         *   element,\n         *   id: 'abc'\n         * });\n         * viz.convert.toType('barChart');\n         */\n        async toType(newType) {\n          const oldProperties = await model.getEffectiveProperties();\n          const propertyTree = await conversionConvertTo({ halo, model, cellRef, newType, properties: oldProperties });\n          const newProperties = propertyTree.qProperty;\n          await saveSoftProperties(model, oldProperties, newProperties);\n          return propertyTree;\n        },\n        /**\n         * Reverts any conversion done on the visualization\n         * @since 4.5.0\n         * @ignore\n         * @memberof Viz.convert\n         * @returns {Promise<object>} Promise object that resolves when the conversion is undone, returns result.\n         * @example\n         * const viz = await embed(app).render({\n         *   element,\n         *   id: 'abc'\n         * });\n         * viz.convert.toType('barChart');\n         * viz.convert.revert();\n         */\n        async revert() {\n          await model.clearSoftPatches();\n        },\n      },\n    },\n\n    // old QVisualization API\n    // close() {},\n    // exportData() {},\n    // exportImg() {},\n    // exportPdf() {},\n    // setOptions() {}, // applied soft patch\n    // resize() {},\n    // show() {},\n  };\n\n  return api;\n}\n","/* eslint no-underscore-dangle:0 */\nimport vizualizationAPI from '../viz';\n\nexport default async function init(model, optional, halo, navigation, initialError, onDestroy = async () => {}) {\n  const { onRender, onError } = optional;\n  const api = vizualizationAPI({\n    model,\n    halo,\n    navigation,\n    initialError,\n    onDestroy,\n    onRender,\n    onError,\n  });\n  api.__DO_NOT_USE__.options(optional.options || {});\n\n  if (optional.plugins) {\n    api.__DO_NOT_USE__.plugins(optional.plugins);\n  }\n  if (optional.element) {\n    await api.__DO_NOT_USE__.mount(optional.element);\n  }\n\n  return api;\n}\n","/* eslint-disable no-underscore-dangle */\nconst setProperties = (model, newProperties) => {\n  if (model.__snInterceptor) {\n    return model.__snInterceptor.setProperties.call(model, newProperties);\n  }\n  return model.setProperties(newProperties);\n};\n\nexport default setProperties;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport Cell from './Cell';\nimport uid from '../object/uid';\n\nexport default function glue({\n  halo,\n  element,\n  model,\n  initialSnOptions,\n  initialSnPlugins,\n  onMount,\n  emitter,\n  initialError,\n  navigation,\n  onError,\n}) {\n  const { root } = halo;\n  const cellRef = React.createRef();\n  const currentId = uid();\n  const portal = ReactDOM.createPortal(\n    <Cell\n      ref={cellRef}\n      halo={halo}\n      model={model}\n      currentId={currentId}\n      initialSnOptions={initialSnOptions}\n      initialSnPlugins={initialSnPlugins}\n      initialError={initialError}\n      onMount={onMount}\n      emitter={emitter}\n      navigation={navigation}\n      onError={onError}\n    />,\n    element,\n    currentId\n  );\n\n  const unmount = () => {\n    root.remove(portal);\n    model.removeListener('closed', unmount);\n  };\n  model.on('closed', unmount);\n\n  // Cannot use model.id as it is not unique in a given mashup\n  root.addCell(currentId, cellRef);\n\n  (async () => {\n    try {\n      await root.add(portal, unmount);\n    } catch (e) {\n      unmount();\n      onMount();\n      onError(e);\n    }\n  })();\n\n  return [unmount, cellRef];\n}\n","import populateData from './populator';\n\n/**\n * @typedef {string | qix.NxDimension | qix.NxMeasure | LibraryField} Field\n */\n\n/**\n * @interface CreateConfig\n * @description Rendering configuration for creating and rendering a new object\n * @property {string} type\n * @property {string=} version\n * @property {(Field[])=} fields\n * @property {qix.GenericObjectProperties=} properties\n */\n\nexport default async function createObject(\n  { type, version, fields, properties, extendProperties /* , options, plugins, element */ },\n  halo,\n  generateOnly,\n  store\n) {\n  let mergedProps = {};\n  const children = [];\n  const { modelStore } = store;\n  // let error;\n  try {\n    const t = halo.types.get({ name: type, version });\n    mergedProps = await t.initialProperties(properties, extendProperties);\n    const sn = await t.supernova();\n    if (fields) {\n      await populateData(\n        {\n          sn,\n          properties: mergedProps,\n          fields,\n          children,\n        },\n        halo\n      );\n    }\n    if (properties && sn && sn.qae.properties.onChange) {\n      sn.qae.properties.onChange.call({}, mergedProps);\n    }\n  } catch (e) {\n    // error = e;\n    // minimal dummy object properties to allow it to be created\n    // and rendered with the error\n    if (!generateOnly) {\n      mergedProps = {\n        qInfo: {\n          qType: type,\n        },\n        visualization: type,\n      };\n    } else {\n      mergedProps = null;\n    }\n    // console.error(e); // eslint-disable-line\n  }\n  if (!generateOnly) {\n    const model = await halo.app.createObject(mergedProps);\n    if (children.length > 0) {\n      await model.setFullPropertyTree({\n        qProperty: mergedProps,\n        qChildren: children,\n      });\n    }\n    modelStore.set(model.id, model);\n    return model;\n  }\n  return mergedProps;\n}\n","import React, { useEffect, useState, useContext, useMemo, forwardRef, useImperativeHandle, useRef } from 'react';\nimport useLayout from '../hooks/useLayout';\nimport getObject from '../object/get-object';\nimport Cell from './Cell';\nimport uid from '../object/uid';\nimport { resolveBgColor, resolveBgImage } from '../utils/style/styling-props';\nimport InstanceContext from '../contexts/InstanceContext';\n\n/**\n * @interface\n * @extends HTMLElement\n * @experimental\n * @since 3.1.0\n */\nconst SheetElement = {\n  /** @type {'njs-sheet'} */\n  className: 'njs-sheet',\n};\n\nfunction getCellRenderer(cell, halo, initialSnOptions, initialSnPlugins, initialError, onMount, navigation, onError) {\n  const { x, y, width, height } = cell.bounds;\n\n  const style = { left: `${x}%`, top: `${y}%`, width: `${width}%`, height: `${height}%`, position: 'absolute' };\n  const flags = halo.public.galaxy?.flags;\n  if (flags?.isEnabled('VNA-13_CELLPADDING_FROM_THEME')) {\n    style.boxSizing = 'border-box';\n    style.padding = '4px';\n  }\n\n  return (\n    <div style={style} key={cell.model.id}>\n      <Cell\n        ref={cell.cellRef}\n        halo={halo}\n        model={cell.model}\n        currentId={cell.currentId}\n        initialSnOptions={initialSnOptions}\n        initialSnPlugins={initialSnPlugins}\n        initialError={initialError}\n        onMount={onMount}\n        navigation={navigation}\n        onError={onError}\n      />\n    </div>\n  );\n}\n\nfunction getBounds(pos, columns, rows) {\n  if (pos.bounds) {\n    return pos.bounds;\n  }\n  return {\n    y: (pos.row / rows) * 100,\n    x: (pos.col / columns) * 100,\n    width: (pos.colspan / columns) * 100,\n    height: (pos.rowspan / rows) * 100,\n  };\n}\n\nconst Sheet = forwardRef(\n  (\n    {\n      model: inputModel,\n      halo,\n      initialSnOptions,\n      initialSnPlugins,\n      initialError,\n      onMount,\n      unmount,\n      navigation,\n      onError,\n    },\n    ref\n  ) => {\n    const { root } = halo;\n    const [model, setModel] = useState(inputModel);\n    const [layout] = useLayout(model);\n    const { theme: themeName, modelStore } = useContext(InstanceContext);\n    const [cells, setCells] = useState([]);\n    const [bgColor, setBgColor] = useState(undefined);\n    const [bgImage, setBgImage] = useState(undefined);\n    const [deepHash, setDeepHash] = useState('');\n    const renderState = useRef({ cellCount: 0, cellsRendered: 0, initialRender: false });\n\n    navigation?.setCurrentSheetId?.(model.id);\n    /// For each object\n    useEffect(() => {\n      if (layout) {\n        const hash = JSON.stringify(layout.cells);\n        if (hash === deepHash) {\n          return;\n        }\n        setDeepHash(hash);\n        const fetchObjects = async () => {\n          /*\n          Need to always fetch and evaluate everything as the sheet need to support multiple instances of the same object?\n          No, there is no way to add the same chart twice, so the optimization should be worth it.\n        */\n\n          // Clear the cell list\n          cells.forEach((c) => {\n            root.removeCell(c.currentId);\n          });\n\n          const lCells = layout.cells;\n          renderState.cellCount = lCells.length;\n          renderState.cellsRendered = 0;\n\n          const renderCallback = () => {\n            renderState.cellsRendered++;\n            if (renderState.cellsRendered === renderState.cellCount && !renderState.initialRender) {\n              renderState.initialRender = true;\n              initialSnOptions.onInitialRender();\n            }\n          };\n\n          const { columns, rows } = layout;\n          // TODO - should try reuse existing objects on subsequent renders\n          // Non-id updates should only change the \"css\"\n          const cs = await Promise.all(\n            lCells.map(async (c) => {\n              let mounted;\n              const mountedPromise = new Promise((resolve) => {\n                mounted = resolve;\n              });\n\n              const cell = cells.find((ce) => ce.id === c.name);\n              if (cell) {\n                cell.bounds = getBounds(c, columns, rows);\n                delete cell.mountedPromise;\n                return cell;\n              }\n              const vs = await getObject({ id: c.name }, halo, modelStore);\n              return {\n                model: vs.model,\n                id: c.name,\n                bounds: getBounds(c, columns, rows),\n                cellRef: React.createRef(),\n                currentId: uid(),\n                mounted,\n                mountedPromise,\n                options: {\n                  ...initialSnOptions,\n                  ...{\n                    onInitialRender: renderCallback,\n                  },\n                },\n              };\n            })\n          );\n          cs.forEach((c) => root.addCell(c.currentId, c.cellRef));\n          setCells(cs);\n        };\n        fetchObjects();\n      }\n    }, [layout]);\n\n    useEffect(() => {\n      const onModelClose = () => {\n        model.removeListener('closed', onModelClose);\n        unmount();\n      };\n      model.on('closed', onModelClose);\n      return () => model.removeListener('closed', onModelClose);\n    }, [model]);\n\n    const cellRenderers = useMemo(\n      () =>\n        cells\n          ? cells.map((c) =>\n              getCellRenderer(c, halo, c.options, initialSnPlugins, initialError, c.mounted, navigation, onError)\n            )\n          : [],\n      [cells]\n    );\n\n    useEffect(() => {\n      const bgComp = layout?.components ? layout.components.find((comp) => comp.key === 'general') : null;\n      setBgColor(resolveBgColor(bgComp, halo.public.theme));\n      setBgImage(resolveBgImage(bgComp, halo.app));\n    }, [layout, halo.public.theme, halo.app, themeName]);\n\n    // Expose sheet ref api\n    useImperativeHandle(\n      ref,\n      () => ({\n        setModel,\n      }),\n      []\n    );\n\n    /* TODO\n    - sheet title + bg + logo etc + as option\n    - sheet exposed classnames for theming\n  */\n\n    const height =\n      !layout || layout.height === undefined || Number.isNaN(layout.height) ? '100%' : `${Number(layout.height)}%`;\n    const promises = cells.map((c) => c.mountedPromise);\n    const ps = promises.filter((p) => !!p);\n    if (ps.length) {\n      Promise.all(promises).then(() => {\n        // TODO - correct? Currently called each time a new cell is mounted?\n        onMount();\n      });\n    }\n    return (\n      <div\n        className={SheetElement.className}\n        style={{\n          width: `100%`,\n          height,\n          position: 'relative',\n          backgroundColor: bgColor,\n          backgroundImage: bgImage && bgImage.url ? `url(${bgImage.url})` : undefined,\n          backgroundRepeat: 'no-repeat',\n          backgroundSize: bgImage && bgImage.size,\n          backgroundPosition: bgImage && bgImage.pos,\n        }}\n      >\n        {cellRenderers}\n      </div>\n    );\n  }\n);\n\nexport default Sheet;\n","import init from './initiate';\n\nexport default async function getObject({ id, options, plugins, element }, halo, store) {\n  const { modelStore, rpcRequestModelStore } = store;\n  const key = `${id}`;\n  let rpc = rpcRequestModelStore.get(key);\n  if (!rpc) {\n    rpc = halo.app.getObject(id);\n    rpcRequestModelStore.set(key, rpc);\n  }\n  const model = await rpc;\n  modelStore.set(key, model);\n\n  return init(model, { options, plugins, element }, halo);\n}\n","import glueSheet from './components/sheetGlue';\nimport validatePlugins from './plugins/plugins';\nimport getPatches from './utils/patcher';\n\nconst noopi = () => {};\n\nexport default function sheet({\n  model,\n  halo,\n  navigation,\n  initialError,\n  onDestroy = async () => {},\n  onRender = () => {},\n  onError = () => {},\n} = {}) {\n  let unmountSheet = noopi;\n  let sheetRef = null;\n  let mountedReference = null;\n  let onMount = null;\n  let onRenderResolve = null;\n\n  const mounted = new Promise((resolve) => {\n    onMount = resolve;\n  });\n\n  const rendered = new Promise((resolve) => {\n    onRenderResolve = resolve;\n  });\n\n  const createOnInitialRender = (override) => () => {\n    override?.(); // from options.onInitialRender\n    onRenderResolve(); // internal promise in viz to wait for render\n    onRender(); // from RenderConfig\n  };\n\n  let initialSnOptions = {};\n  let initialSnPlugins = [];\n\n  const setSnOptions = async (opts) => {\n    const override = opts.onInitialRender;\n    if (mountedReference) {\n      (async () => {\n        await mounted;\n        sheetRef.current.setSnOptions({\n          ...initialSnOptions,\n          ...opts,\n          ...{\n            onInitialRender: createOnInitialRender(override),\n          },\n        });\n      })();\n    } else {\n      // Handle setting options before mount\n      initialSnOptions = {\n        ...initialSnOptions,\n        ...opts,\n        ...{\n          onInitialRender: createOnInitialRender(override),\n        },\n      };\n    }\n  };\n\n  const setSnPlugins = async (plugins) => {\n    validatePlugins(plugins);\n    if (mountedReference) {\n      (async () => {\n        await mounted;\n        sheetRef.current.setSnPlugins(plugins);\n      })();\n    } else {\n      // Handle setting plugins before mount\n      initialSnPlugins = plugins;\n    }\n  };\n\n  /**\n   * @class\n   * @alias Sheet\n   * @classdesc A controller to further modify a visualization after it has been rendered.\n   * @experimental\n   * @since 3.1.0\n   * @example\n   * const sheet = await embed(app).render({\n   *   element,\n   *   id: \"jD5Gd\"\n   * });\n   * sheet.destroy();\n   */\n  const api = /** @lends Sheet# */ {\n    /**\n     * The id of this sheets's generic object.\n     * @type {string}\n     */\n    id: model.id,\n    /**\n     * This sheets Enigma model, a representation of the generic object.\n     * @type {string}\n     */\n    model,\n    /**\n     * The navigation api to control sheet navigation.\n     * @experimental\n     * @since 5.4.0\n     * @type {Navigation}\n     */\n    navigation,\n    /**\n     * Gets the specific api that a Viz exposes.\n     * @private currently empty and private\n     * @returns {Promise<object>} object that contains the internal Viz api.\n     */\n    async getImperativeHandle() {\n      await rendered;\n      return sheetRef.current.getImperativeHandle();\n    },\n    /**\n     * Destroys the sheet and removes it from the the DOM.\n     * @example\n     * const sheet = await embed(app).render({\n     *   element,\n     *   id: \"jD5Gd\"\n     * });\n     * sheet.destroy();\n     */\n    async destroy() {\n      await onDestroy();\n      unmountSheet();\n      unmountSheet = noopi;\n    },\n    // ===== unexposed experimental API - use at own risk ======\n    __DO_NOT_USE__: {\n      mount(element) {\n        if (mountedReference) {\n          throw new Error('Already mounted');\n        }\n        if (!(element instanceof HTMLElement)) {\n          throw new Error('Provided element is not a proper HTMLElement');\n        }\n        mountedReference = element;\n        [unmountSheet, sheetRef] = glueSheet({\n          halo,\n          element,\n          model,\n          initialSnOptions,\n          initialSnPlugins,\n          initialError,\n          onMount,\n          navigation,\n          onError,\n        });\n        return mounted;\n      },\n      async applyProperties(props) {\n        const current = await model.getEffectiveProperties();\n        const patches = getPatches('/', props, current);\n        if (patches.length) {\n          return model.applyPatches(patches, true);\n        }\n        return undefined;\n      },\n      options(opts) {\n        setSnOptions(opts);\n      },\n      plugins(plugins) {\n        setSnPlugins(plugins);\n      },\n      exportImage() {\n        throw new Error('Not implemented');\n      },\n      takeSnapshot() {\n        throw new Error('Not implemented');\n      },\n      getModel() {\n        return model;\n      },\n    },\n  };\n\n  return api;\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport Sheet from './Sheet';\n\nexport default function glue({\n  halo,\n  element,\n  model,\n  initialSnOptions,\n  initialSnPlugins,\n  onMount,\n  initialError,\n  navigation,\n  onError,\n}) {\n  const { root } = halo;\n  const sheetRef = React.createRef();\n  let portal;\n  const unmount = () => {\n    root.remove(portal);\n  };\n  portal = ReactDOM.createPortal(\n    <Sheet\n      ref={sheetRef}\n      halo={halo}\n      model={model}\n      initialSnOptions={initialSnOptions}\n      initialSnPlugins={initialSnPlugins}\n      initialError={initialError}\n      onMount={onMount}\n      unmount={unmount}\n      navigation={navigation}\n      onError={onError}\n    />,\n    element,\n    model.id\n  );\n  navigation.setSheetRef(sheetRef);\n\n  root.add(portal, unmount);\n  return [unmount, sheetRef];\n}\n","export default function (flags = {}) {\n  /**\n   * @interface Flags\n   */\n\n  return /** @lends Flags */ {\n    /**\n     * Checks whether the specified flag is enabled.\n     * @param {string} flag - The value flag to check.\n     * @returns {boolean} True if the specified flag is enabled, false otherwise.\n     */\n    isEnabled: (f) => flags[f] === true,\n  };\n}\n","'use strict'\n\n// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n  if (!options) {\n    return emptyOpts\n  }\n\n  if (typeof options !== 'object') {\n    return looseOption\n  }\n\n  return options\n}\nmodule.exports = parseOptions\n","'use strict'\n\n// Note: this is the semver.org version of the spec that it implements\n// Not necessarily the package version of this code.\nconst SEMVER_SPEC_VERSION = '2.0.0'\n\nconst MAX_LENGTH = 256\nconst MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||\n/* istanbul ignore next */ 9007199254740991\n\n// Max safe segment length for coercion.\nconst MAX_SAFE_COMPONENT_LENGTH = 16\n\n// Max safe length for a build identifier. The max length minus 6 characters for\n// the shortest version with a build 0.0.0+BUILD.\nconst MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6\n\nconst RELEASE_TYPES = [\n  'major',\n  'premajor',\n  'minor',\n  'preminor',\n  'patch',\n  'prepatch',\n  'prerelease',\n]\n\nmodule.exports = {\n  MAX_LENGTH,\n  MAX_SAFE_COMPONENT_LENGTH,\n  MAX_SAFE_BUILD_LENGTH,\n  MAX_SAFE_INTEGER,\n  RELEASE_TYPES,\n  SEMVER_SPEC_VERSION,\n  FLAG_INCLUDE_PRERELEASE: 0b001,\n  FLAG_LOOSE: 0b010,\n}\n","'use strict'\n\nconst debug = (\n  typeof process === 'object' &&\n  process.env &&\n  process.env.NODE_DEBUG &&\n  /\\bsemver\\b/i.test(process.env.NODE_DEBUG)\n) ? (...args) => console.error('SEMVER', ...args)\n  : () => {}\n\nmodule.exports = debug\n","'use strict'\n\nconst {\n  MAX_SAFE_COMPONENT_LENGTH,\n  MAX_SAFE_BUILD_LENGTH,\n  MAX_LENGTH,\n} = require('./constants')\nconst debug = require('./debug')\nexports = module.exports = {}\n\n// The actual regexps go on exports.re\nconst re = exports.re = []\nconst safeRe = exports.safeRe = []\nconst src = exports.src = []\nconst safeSrc = exports.safeSrc = []\nconst t = exports.t = {}\nlet R = 0\n\nconst LETTERDASHNUMBER = '[a-zA-Z0-9-]'\n\n// Replace some greedy regex tokens to prevent regex dos issues. These regex are\n// used internally via the safeRe object since all inputs in this library get\n// normalized first to trim and collapse all extra whitespace. The original\n// regexes are exported for userland consumption and lower level usage. A\n// future breaking change could export the safer regex only with a note that\n// all input should have extra whitespace removed.\nconst safeRegexReplacements = [\n  ['\\\\s', 1],\n  ['\\\\d', MAX_LENGTH],\n  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],\n]\n\nconst makeSafeRegex = (value) => {\n  for (const [token, max] of safeRegexReplacements) {\n    value = value\n      .split(`${token}*`).join(`${token}{0,${max}}`)\n      .split(`${token}+`).join(`${token}{1,${max}}`)\n  }\n  return value\n}\n\nconst createToken = (name, value, isGlobal) => {\n  const safe = makeSafeRegex(value)\n  const index = R++\n  debug(name, index, value)\n  t[name] = index\n  src[index] = value\n  safeSrc[index] = safe\n  re[index] = new RegExp(value, isGlobal ? 'g' : undefined)\n  safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)\n}\n\n// The following Regular Expressions can be used for tokenizing,\n// validating, and parsing SemVer version strings.\n\n// ## Numeric Identifier\n// A single `0`, or a non-zero digit followed by zero or more digits.\n\ncreateToken('NUMERICIDENTIFIER', '0|[1-9]\\\\d*')\ncreateToken('NUMERICIDENTIFIERLOOSE', '\\\\d+')\n\n// ## Non-numeric Identifier\n// Zero or more digits, followed by a letter or hyphen, and then zero or\n// more letters, digits, or hyphens.\n\ncreateToken('NONNUMERICIDENTIFIER', `\\\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)\n\n// ## Main Version\n// Three dot-separated numeric identifiers.\n\ncreateToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n                   `(${src[t.NUMERICIDENTIFIER]})\\\\.` +\n                   `(${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n                        `(${src[t.NUMERICIDENTIFIERLOOSE]})\\\\.` +\n                        `(${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version Identifier\n// A numeric identifier, or a non-numeric identifier.\n// Non-numberic identifiers include numberic identifiers but can be longer.\n// Therefore non-numberic identifiers must go first.\n\ncreateToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIER]})`)\n\ncreateToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]\n}|${src[t.NUMERICIDENTIFIERLOOSE]})`)\n\n// ## Pre-release Version\n// Hyphen, followed by one or more dot-separated pre-release version\n// identifiers.\n\ncreateToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIER]})*))`)\n\ncreateToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]\n}(?:\\\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)\n\n// ## Build Metadata Identifier\n// Any combination of digits, letters, or hyphens.\n\ncreateToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)\n\n// ## Build Metadata\n// Plus sign, followed by one or more period-separated build metadata\n// identifiers.\n\ncreateToken('BUILD', `(?:\\\\+(${src[t.BUILDIDENTIFIER]\n}(?:\\\\.${src[t.BUILDIDENTIFIER]})*))`)\n\n// ## Full Version String\n// A main version, followed optionally by a pre-release version and\n// build metadata.\n\n// Note that the only major, minor, patch, and pre-release sections of\n// the version string are capturing groups.  The build metadata is not a\n// capturing group, because it should not ever be used in version\n// comparison.\n\ncreateToken('FULLPLAIN', `v?${src[t.MAINVERSION]\n}${src[t.PRERELEASE]}?${\n  src[t.BUILD]}?`)\n\ncreateToken('FULL', `^${src[t.FULLPLAIN]}$`)\n\n// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.\n// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty\n// common in the npm registry.\ncreateToken('LOOSEPLAIN', `[v=\\\\s]*${src[t.MAINVERSIONLOOSE]\n}${src[t.PRERELEASELOOSE]}?${\n  src[t.BUILD]}?`)\n\ncreateToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)\n\ncreateToken('GTLT', '((?:<|>)?=?)')\n\n// Something like \"2.*\" or \"1.2.x\".\n// Note that \"x.x\" is a valid xRange identifer, meaning \"any version\"\n// Only the first item is strictly required.\ncreateToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\\\*`)\ncreateToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\\\*`)\n\ncreateToken('XRANGEPLAIN', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIER]})` +\n                   `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n                   `(?:\\\\.(${src[t.XRANGEIDENTIFIER]})` +\n                   `(?:${src[t.PRERELEASE]})?${\n                     src[t.BUILD]}?` +\n                   `)?)?`)\n\ncreateToken('XRANGEPLAINLOOSE', `[v=\\\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n                        `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n                        `(?:\\\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +\n                        `(?:${src[t.PRERELEASELOOSE]})?${\n                          src[t.BUILD]}?` +\n                        `)?)?`)\n\ncreateToken('XRANGE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAIN]}$`)\ncreateToken('XRANGELOOSE', `^${src[t.GTLT]}\\\\s*${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Coercion.\n// Extract anything that could conceivably be a part of a valid semver\ncreateToken('COERCEPLAIN', `${'(^|[^\\\\d])' +\n              '(\\\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +\n              `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +\n              `(?:\\\\.(\\\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)\ncreateToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\\\d])`)\ncreateToken('COERCEFULL', src[t.COERCEPLAIN] +\n              `(?:${src[t.PRERELEASE]})?` +\n              `(?:${src[t.BUILD]})?` +\n              `(?:$|[^\\\\d])`)\ncreateToken('COERCERTL', src[t.COERCE], true)\ncreateToken('COERCERTLFULL', src[t.COERCEFULL], true)\n\n// Tilde ranges.\n// Meaning is \"reasonably at or greater than\"\ncreateToken('LONETILDE', '(?:~>?)')\n\ncreateToken('TILDETRIM', `(\\\\s*)${src[t.LONETILDE]}\\\\s+`, true)\nexports.tildeTrimReplace = '$1~'\n\ncreateToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// Caret ranges.\n// Meaning is \"at least and backwards compatible with\"\ncreateToken('LONECARET', '(?:\\\\^)')\n\ncreateToken('CARETTRIM', `(\\\\s*)${src[t.LONECARET]}\\\\s+`, true)\nexports.caretTrimReplace = '$1^'\n\ncreateToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)\ncreateToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)\n\n// A simple gt/lt/eq thing, or just \"\" to indicate \"any version\"\ncreateToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\\\s*(${src[t.LOOSEPLAIN]})$|^$`)\ncreateToken('COMPARATOR', `^${src[t.GTLT]}\\\\s*(${src[t.FULLPLAIN]})$|^$`)\n\n// An expression to strip any whitespace between the gtlt and the thing\n// it modifies, so that `> 1.2.3` ==> `>1.2.3`\ncreateToken('COMPARATORTRIM', `(\\\\s*)${src[t.GTLT]\n}\\\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)\nexports.comparatorTrimReplace = '$1$2$3'\n\n// Something like `1.2.3 - 1.2.4`\n// Note that these all use the loose form, because they'll be\n// checked against either the strict or loose comparator form\n// later.\ncreateToken('HYPHENRANGE', `^\\\\s*(${src[t.XRANGEPLAIN]})` +\n                   `\\\\s+-\\\\s+` +\n                   `(${src[t.XRANGEPLAIN]})` +\n                   `\\\\s*$`)\n\ncreateToken('HYPHENRANGELOOSE', `^\\\\s*(${src[t.XRANGEPLAINLOOSE]})` +\n                        `\\\\s+-\\\\s+` +\n                        `(${src[t.XRANGEPLAINLOOSE]})` +\n                        `\\\\s*$`)\n\n// Star ranges basically just allow anything at all.\ncreateToken('STAR', '(<|>)?=?\\\\s*\\\\*')\n// >=0.0.0 is like a star\ncreateToken('GTE0', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0\\\\s*$')\ncreateToken('GTE0PRE', '^\\\\s*>=\\\\s*0\\\\.0\\\\.0-0\\\\s*$')\n","'use strict'\n\nconst debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n  constructor (version, options) {\n    options = parseOptions(options)\n\n    if (version instanceof SemVer) {\n      if (version.loose === !!options.loose &&\n        version.includePrerelease === !!options.includePrerelease) {\n        return version\n      } else {\n        version = version.version\n      }\n    } else if (typeof version !== 'string') {\n      throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n    }\n\n    if (version.length > MAX_LENGTH) {\n      throw new TypeError(\n        `version is longer than ${MAX_LENGTH} characters`\n      )\n    }\n\n    debug('SemVer', version, options)\n    this.options = options\n    this.loose = !!options.loose\n    // this isn't actually relevant for versions, but keep it so that we\n    // don't run into trouble passing this.options around.\n    this.includePrerelease = !!options.includePrerelease\n\n    const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n    if (!m) {\n      throw new TypeError(`Invalid Version: ${version}`)\n    }\n\n    this.raw = version\n\n    // these are actually numbers\n    this.major = +m[1]\n    this.minor = +m[2]\n    this.patch = +m[3]\n\n    if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n      throw new TypeError('Invalid major version')\n    }\n\n    if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n      throw new TypeError('Invalid minor version')\n    }\n\n    if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n      throw new TypeError('Invalid patch version')\n    }\n\n    // numberify any prerelease numeric ids\n    if (!m[4]) {\n      this.prerelease = []\n    } else {\n      this.prerelease = m[4].split('.').map((id) => {\n        if (/^[0-9]+$/.test(id)) {\n          const num = +id\n          if (num >= 0 && num < MAX_SAFE_INTEGER) {\n            return num\n          }\n        }\n        return id\n      })\n    }\n\n    this.build = m[5] ? m[5].split('.') : []\n    this.format()\n  }\n\n  format () {\n    this.version = `${this.major}.${this.minor}.${this.patch}`\n    if (this.prerelease.length) {\n      this.version += `-${this.prerelease.join('.')}`\n    }\n    return this.version\n  }\n\n  toString () {\n    return this.version\n  }\n\n  compare (other) {\n    debug('SemVer.compare', this.version, this.options, other)\n    if (!(other instanceof SemVer)) {\n      if (typeof other === 'string' && other === this.version) {\n        return 0\n      }\n      other = new SemVer(other, this.options)\n    }\n\n    if (other.version === this.version) {\n      return 0\n    }\n\n    return this.compareMain(other) || this.comparePre(other)\n  }\n\n  compareMain (other) {\n    if (!(other instanceof SemVer)) {\n      other = new SemVer(other, this.options)\n    }\n\n    return (\n      compareIdentifiers(this.major, other.major) ||\n      compareIdentifiers(this.minor, other.minor) ||\n      compareIdentifiers(this.patch, other.patch)\n    )\n  }\n\n  comparePre (other) {\n    if (!(other instanceof SemVer)) {\n      other = new SemVer(other, this.options)\n    }\n\n    // NOT having a prerelease is > having one\n    if (this.prerelease.length && !other.prerelease.length) {\n      return -1\n    } else if (!this.prerelease.length && other.prerelease.length) {\n      return 1\n    } else if (!this.prerelease.length && !other.prerelease.length) {\n      return 0\n    }\n\n    let i = 0\n    do {\n      const a = this.prerelease[i]\n      const b = other.prerelease[i]\n      debug('prerelease compare', i, a, b)\n      if (a === undefined && b === undefined) {\n        return 0\n      } else if (b === undefined) {\n        return 1\n      } else if (a === undefined) {\n        return -1\n      } else if (a === b) {\n        continue\n      } else {\n        return compareIdentifiers(a, b)\n      }\n    } while (++i)\n  }\n\n  compareBuild (other) {\n    if (!(other instanceof SemVer)) {\n      other = new SemVer(other, this.options)\n    }\n\n    let i = 0\n    do {\n      const a = this.build[i]\n      const b = other.build[i]\n      debug('build compare', i, a, b)\n      if (a === undefined && b === undefined) {\n        return 0\n      } else if (b === undefined) {\n        return 1\n      } else if (a === undefined) {\n        return -1\n      } else if (a === b) {\n        continue\n      } else {\n        return compareIdentifiers(a, b)\n      }\n    } while (++i)\n  }\n\n  // preminor will bump the version up to the next minor release, and immediately\n  // down to pre-release. premajor and prepatch work the same way.\n  inc (release, identifier, identifierBase) {\n    if (release.startsWith('pre')) {\n      if (!identifier && identifierBase === false) {\n        throw new Error('invalid increment argument: identifier is empty')\n      }\n      // Avoid an invalid semver results\n      if (identifier) {\n        const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])\n        if (!match || match[1] !== identifier) {\n          throw new Error(`invalid identifier: ${identifier}`)\n        }\n      }\n    }\n\n    switch (release) {\n      case 'premajor':\n        this.prerelease.length = 0\n        this.patch = 0\n        this.minor = 0\n        this.major++\n        this.inc('pre', identifier, identifierBase)\n        break\n      case 'preminor':\n        this.prerelease.length = 0\n        this.patch = 0\n        this.minor++\n        this.inc('pre', identifier, identifierBase)\n        break\n      case 'prepatch':\n        // If this is already a prerelease, it will bump to the next version\n        // drop any prereleases that might already exist, since they are not\n        // relevant at this point.\n        this.prerelease.length = 0\n        this.inc('patch', identifier, identifierBase)\n        this.inc('pre', identifier, identifierBase)\n        break\n      // If the input is a non-prerelease version, this acts the same as\n      // prepatch.\n      case 'prerelease':\n        if (this.prerelease.length === 0) {\n          this.inc('patch', identifier, identifierBase)\n        }\n        this.inc('pre', identifier, identifierBase)\n        break\n      case 'release':\n        if (this.prerelease.length === 0) {\n          throw new Error(`version ${this.raw} is not a prerelease`)\n        }\n        this.prerelease.length = 0\n        break\n\n      case 'major':\n        // If this is a pre-major version, bump up to the same major version.\n        // Otherwise increment major.\n        // 1.0.0-5 bumps to 1.0.0\n        // 1.1.0 bumps to 2.0.0\n        if (\n          this.minor !== 0 ||\n          this.patch !== 0 ||\n          this.prerelease.length === 0\n        ) {\n          this.major++\n        }\n        this.minor = 0\n        this.patch = 0\n        this.prerelease = []\n        break\n      case 'minor':\n        // If this is a pre-minor version, bump up to the same minor version.\n        // Otherwise increment minor.\n        // 1.2.0-5 bumps to 1.2.0\n        // 1.2.1 bumps to 1.3.0\n        if (this.patch !== 0 || this.prerelease.length === 0) {\n          this.minor++\n        }\n        this.patch = 0\n        this.prerelease = []\n        break\n      case 'patch':\n        // If this is not a pre-release version, it will increment the patch.\n        // If it is a pre-release it will bump up to the same patch version.\n        // 1.2.0-5 patches to 1.2.0\n        // 1.2.0 patches to 1.2.1\n        if (this.prerelease.length === 0) {\n          this.patch++\n        }\n        this.prerelease = []\n        break\n      // This probably shouldn't be used publicly.\n      // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n      case 'pre': {\n        const base = Number(identifierBase) ? 1 : 0\n\n        if (this.prerelease.length === 0) {\n          this.prerelease = [base]\n        } else {\n          let i = this.prerelease.length\n          while (--i >= 0) {\n            if (typeof this.prerelease[i] === 'number') {\n              this.prerelease[i]++\n              i = -2\n            }\n          }\n          if (i === -1) {\n            // didn't increment anything\n            if (identifier === this.prerelease.join('.') && identifierBase === false) {\n              throw new Error('invalid increment argument: identifier already exists')\n            }\n            this.prerelease.push(base)\n          }\n        }\n        if (identifier) {\n          // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n          // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n          let prerelease = [identifier, base]\n          if (identifierBase === false) {\n            prerelease = [identifier]\n          }\n          if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n            if (isNaN(this.prerelease[1])) {\n              this.prerelease = prerelease\n            }\n          } else {\n            this.prerelease = prerelease\n          }\n        }\n        break\n      }\n      default:\n        throw new Error(`invalid increment argument: ${release}`)\n    }\n    this.raw = this.format()\n    if (this.build.length) {\n      this.raw += `+${this.build.join('.')}`\n    }\n    return this\n  }\n}\n\nmodule.exports = SemVer\n","'use strict'\n\nconst numeric = /^[0-9]+$/\nconst compareIdentifiers = (a, b) => {\n  const anum = numeric.test(a)\n  const bnum = numeric.test(b)\n\n  if (anum && bnum) {\n    a = +a\n    b = +b\n  }\n\n  return a === b ? 0\n    : (anum && !bnum) ? -1\n    : (bnum && !anum) ? 1\n    : a < b ? -1\n    : 1\n}\n\nconst rcompareIdentifiers = (a, b) => compareIdentifiers(b, a)\n\nmodule.exports = {\n  compareIdentifiers,\n  rcompareIdentifiers,\n}\n","'use strict'\n\nconst SemVer = require('../classes/semver')\nconst compare = (a, b, loose) =>\n  new SemVer(a, loose).compare(new SemVer(b, loose))\n\nmodule.exports = compare\n","'use strict'\n\nconst eq = require('./eq')\nconst neq = require('./neq')\nconst gt = require('./gt')\nconst gte = require('./gte')\nconst lt = require('./lt')\nconst lte = require('./lte')\n\nconst cmp = (a, op, b, loose) => {\n  switch (op) {\n    case '===':\n      if (typeof a === 'object') {\n        a = a.version\n      }\n      if (typeof b === 'object') {\n        b = b.version\n      }\n      return a === b\n\n    case '!==':\n      if (typeof a === 'object') {\n        a = a.version\n      }\n      if (typeof b === 'object') {\n        b = b.version\n      }\n      return a !== b\n\n    case '':\n    case '=':\n    case '==':\n      return eq(a, b, loose)\n\n    case '!=':\n      return neq(a, b, loose)\n\n    case '>':\n      return gt(a, b, loose)\n\n    case '>=':\n      return gte(a, b, loose)\n\n    case '<':\n      return lt(a, b, loose)\n\n    case '<=':\n      return lte(a, b, loose)\n\n    default:\n      throw new TypeError(`Invalid operator: ${op}`)\n  }\n}\nmodule.exports = cmp\n","'use strict'\n\nconst SPACE_CHARACTERS = /\\s+/g\n\n// hoisted class for cyclic dependency\nclass Range {\n  constructor (range, options) {\n    options = parseOptions(options)\n\n    if (range instanceof Range) {\n      if (\n        range.loose === !!options.loose &&\n        range.includePrerelease === !!options.includePrerelease\n      ) {\n        return range\n      } else {\n        return new Range(range.raw, options)\n      }\n    }\n\n    if (range instanceof Comparator) {\n      // just put it in the set and return\n      this.raw = range.value\n      this.set = [[range]]\n      this.formatted = undefined\n      return this\n    }\n\n    this.options = options\n    this.loose = !!options.loose\n    this.includePrerelease = !!options.includePrerelease\n\n    // First reduce all whitespace as much as possible so we do not have to rely\n    // on potentially slow regexes like \\s*. This is then stored and used for\n    // future error messages as well.\n    this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')\n\n    // First, split on ||\n    this.set = this.raw\n      .split('||')\n      // map the range to a 2d array of comparators\n      .map(r => this.parseRange(r.trim()))\n      // throw out any comparator lists that are empty\n      // this generally means that it was not a valid range, which is allowed\n      // in loose mode, but will still throw if the WHOLE range is invalid.\n      .filter(c => c.length)\n\n    if (!this.set.length) {\n      throw new TypeError(`Invalid SemVer Range: ${this.raw}`)\n    }\n\n    // if we have any that are not the null set, throw out null sets.\n    if (this.set.length > 1) {\n      // keep the first one, in case they're all null sets\n      const first = this.set[0]\n      this.set = this.set.filter(c => !isNullSet(c[0]))\n      if (this.set.length === 0) {\n        this.set = [first]\n      } else if (this.set.length > 1) {\n        // if we have any that are *, then the range is just *\n        for (const c of this.set) {\n          if (c.length === 1 && isAny(c[0])) {\n            this.set = [c]\n            break\n          }\n        }\n      }\n    }\n\n    this.formatted = undefined\n  }\n\n  get range () {\n    if (this.formatted === undefined) {\n      this.formatted = ''\n      for (let i = 0; i < this.set.length; i++) {\n        if (i > 0) {\n          this.formatted += '||'\n        }\n        const comps = this.set[i]\n        for (let k = 0; k < comps.length; k++) {\n          if (k > 0) {\n            this.formatted += ' '\n          }\n          this.formatted += comps[k].toString().trim()\n        }\n      }\n    }\n    return this.formatted\n  }\n\n  format () {\n    return this.range\n  }\n\n  toString () {\n    return this.range\n  }\n\n  parseRange (range) {\n    // memoize range parsing for performance.\n    // this is a very hot path, and fully deterministic.\n    const memoOpts =\n      (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |\n      (this.options.loose && FLAG_LOOSE)\n    const memoKey = memoOpts + ':' + range\n    const cached = cache.get(memoKey)\n    if (cached) {\n      return cached\n    }\n\n    const loose = this.options.loose\n    // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n    const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n    range = range.replace(hr, hyphenReplace(this.options.includePrerelease))\n    debug('hyphen replace', range)\n\n    // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n    range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n    debug('comparator trim', range)\n\n    // `~ 1.2.3` => `~1.2.3`\n    range = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n    debug('tilde trim', range)\n\n    // `^ 1.2.3` => `^1.2.3`\n    range = range.replace(re[t.CARETTRIM], caretTrimReplace)\n    debug('caret trim', range)\n\n    // At this point, the range is completely trimmed and\n    // ready to be split into comparators.\n\n    let rangeList = range\n      .split(' ')\n      .map(comp => parseComparator(comp, this.options))\n      .join(' ')\n      .split(/\\s+/)\n      // >=0.0.0 is equivalent to *\n      .map(comp => replaceGTE0(comp, this.options))\n\n    if (loose) {\n      // in loose mode, throw out any that are not valid comparators\n      rangeList = rangeList.filter(comp => {\n        debug('loose invalid filter', comp, this.options)\n        return !!comp.match(re[t.COMPARATORLOOSE])\n      })\n    }\n    debug('range list', rangeList)\n\n    // if any comparators are the null set, then replace with JUST null set\n    // if more than one comparator, remove any * comparators\n    // also, don't include the same comparator more than once\n    const rangeMap = new Map()\n    const comparators = rangeList.map(comp => new Comparator(comp, this.options))\n    for (const comp of comparators) {\n      if (isNullSet(comp)) {\n        return [comp]\n      }\n      rangeMap.set(comp.value, comp)\n    }\n    if (rangeMap.size > 1 && rangeMap.has('')) {\n      rangeMap.delete('')\n    }\n\n    const result = [...rangeMap.values()]\n    cache.set(memoKey, result)\n    return result\n  }\n\n  intersects (range, options) {\n    if (!(range instanceof Range)) {\n      throw new TypeError('a Range is required')\n    }\n\n    return this.set.some((thisComparators) => {\n      return (\n        isSatisfiable(thisComparators, options) &&\n        range.set.some((rangeComparators) => {\n          return (\n            isSatisfiable(rangeComparators, options) &&\n            thisComparators.every((thisComparator) => {\n              return rangeComparators.every((rangeComparator) => {\n                return thisComparator.intersects(rangeComparator, options)\n              })\n            })\n          )\n        })\n      )\n    })\n  }\n\n  // if ANY of the sets match ALL of its comparators, then pass\n  test (version) {\n    if (!version) {\n      return false\n    }\n\n    if (typeof version === 'string') {\n      try {\n        version = new SemVer(version, this.options)\n      } catch (er) {\n        return false\n      }\n    }\n\n    for (let i = 0; i < this.set.length; i++) {\n      if (testSet(this.set[i], version, this.options)) {\n        return true\n      }\n    }\n    return false\n  }\n}\n\nmodule.exports = Range\n\nconst LRU = require('../internal/lrucache')\nconst cache = new LRU()\n\nconst parseOptions = require('../internal/parse-options')\nconst Comparator = require('./comparator')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst {\n  safeRe: re,\n  t,\n  comparatorTrimReplace,\n  tildeTrimReplace,\n  caretTrimReplace,\n} = require('../internal/re')\nconst { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')\n\nconst isNullSet = c => c.value === '<0.0.0-0'\nconst isAny = c => c.value === ''\n\n// take a set of comparators and determine whether there\n// exists a version which can satisfy it\nconst isSatisfiable = (comparators, options) => {\n  let result = true\n  const remainingComparators = comparators.slice()\n  let testComparator = remainingComparators.pop()\n\n  while (result && remainingComparators.length) {\n    result = remainingComparators.every((otherComparator) => {\n      return testComparator.intersects(otherComparator, options)\n    })\n\n    testComparator = remainingComparators.pop()\n  }\n\n  return result\n}\n\n// comprised of xranges, tildes, stars, and gtlt's at this point.\n// already replaced the hyphen ranges\n// turn into a set of JUST comparators.\nconst parseComparator = (comp, options) => {\n  debug('comp', comp, options)\n  comp = replaceCarets(comp, options)\n  debug('caret', comp)\n  comp = replaceTildes(comp, options)\n  debug('tildes', comp)\n  comp = replaceXRanges(comp, options)\n  debug('xrange', comp)\n  comp = replaceStars(comp, options)\n  debug('stars', comp)\n  return comp\n}\n\nconst isX = id => !id || id.toLowerCase() === 'x' || id === '*'\n\n// ~, ~> --> * (any, kinda silly)\n// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0\n// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0\n// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0\n// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0\n// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0\n// ~0.0.1 --> >=0.0.1 <0.1.0-0\nconst replaceTildes = (comp, options) => {\n  return comp\n    .trim()\n    .split(/\\s+/)\n    .map((c) => replaceTilde(c, options))\n    .join(' ')\n}\n\nconst replaceTilde = (comp, options) => {\n  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]\n  return comp.replace(r, (_, M, m, p, pr) => {\n    debug('tilde', comp, _, M, m, p, pr)\n    let ret\n\n    if (isX(M)) {\n      ret = ''\n    } else if (isX(m)) {\n      ret = `>=${M}.0.0 <${+M + 1}.0.0-0`\n    } else if (isX(p)) {\n      // ~1.2 == >=1.2.0 <1.3.0-0\n      ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`\n    } else if (pr) {\n      debug('replaceTilde pr', pr)\n      ret = `>=${M}.${m}.${p}-${pr\n      } <${M}.${+m + 1}.0-0`\n    } else {\n      // ~1.2.3 == >=1.2.3 <1.3.0-0\n      ret = `>=${M}.${m}.${p\n      } <${M}.${+m + 1}.0-0`\n    }\n\n    debug('tilde return', ret)\n    return ret\n  })\n}\n\n// ^ --> * (any, kinda silly)\n// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0\n// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0\n// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0\n// ^1.2.3 --> >=1.2.3 <2.0.0-0\n// ^1.2.0 --> >=1.2.0 <2.0.0-0\n// ^0.0.1 --> >=0.0.1 <0.0.2-0\n// ^0.1.0 --> >=0.1.0 <0.2.0-0\nconst replaceCarets = (comp, options) => {\n  return comp\n    .trim()\n    .split(/\\s+/)\n    .map((c) => replaceCaret(c, options))\n    .join(' ')\n}\n\nconst replaceCaret = (comp, options) => {\n  debug('caret', comp, options)\n  const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]\n  const z = options.includePrerelease ? '-0' : ''\n  return comp.replace(r, (_, M, m, p, pr) => {\n    debug('caret', comp, _, M, m, p, pr)\n    let ret\n\n    if (isX(M)) {\n      ret = ''\n    } else if (isX(m)) {\n      ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`\n    } else if (isX(p)) {\n      if (M === '0') {\n        ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`\n      } else {\n        ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`\n      }\n    } else if (pr) {\n      debug('replaceCaret pr', pr)\n      if (M === '0') {\n        if (m === '0') {\n          ret = `>=${M}.${m}.${p}-${pr\n          } <${M}.${m}.${+p + 1}-0`\n        } else {\n          ret = `>=${M}.${m}.${p}-${pr\n          } <${M}.${+m + 1}.0-0`\n        }\n      } else {\n        ret = `>=${M}.${m}.${p}-${pr\n        } <${+M + 1}.0.0-0`\n      }\n    } else {\n      debug('no pr')\n      if (M === '0') {\n        if (m === '0') {\n          ret = `>=${M}.${m}.${p\n          }${z} <${M}.${m}.${+p + 1}-0`\n        } else {\n          ret = `>=${M}.${m}.${p\n          }${z} <${M}.${+m + 1}.0-0`\n        }\n      } else {\n        ret = `>=${M}.${m}.${p\n        } <${+M + 1}.0.0-0`\n      }\n    }\n\n    debug('caret return', ret)\n    return ret\n  })\n}\n\nconst replaceXRanges = (comp, options) => {\n  debug('replaceXRanges', comp, options)\n  return comp\n    .split(/\\s+/)\n    .map((c) => replaceXRange(c, options))\n    .join(' ')\n}\n\nconst replaceXRange = (comp, options) => {\n  comp = comp.trim()\n  const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]\n  return comp.replace(r, (ret, gtlt, M, m, p, pr) => {\n    debug('xRange', comp, ret, gtlt, M, m, p, pr)\n    const xM = isX(M)\n    const xm = xM || isX(m)\n    const xp = xm || isX(p)\n    const anyX = xp\n\n    if (gtlt === '=' && anyX) {\n      gtlt = ''\n    }\n\n    // if we're including prereleases in the match, then we need\n    // to fix this to -0, the lowest possible prerelease value\n    pr = options.includePrerelease ? '-0' : ''\n\n    if (xM) {\n      if (gtlt === '>' || gtlt === '<') {\n        // nothing is allowed\n        ret = '<0.0.0-0'\n      } else {\n        // nothing is forbidden\n        ret = '*'\n      }\n    } else if (gtlt && anyX) {\n      // we know patch is an x, because we have any x at all.\n      // replace X with 0\n      if (xm) {\n        m = 0\n      }\n      p = 0\n\n      if (gtlt === '>') {\n        // >1 => >=2.0.0\n        // >1.2 => >=1.3.0\n        gtlt = '>='\n        if (xm) {\n          M = +M + 1\n          m = 0\n          p = 0\n        } else {\n          m = +m + 1\n          p = 0\n        }\n      } else if (gtlt === '<=') {\n        // <=0.7.x is actually <0.8.0, since any 0.7.x should\n        // pass.  Similarly, <=7.x is actually <8.0.0, etc.\n        gtlt = '<'\n        if (xm) {\n          M = +M + 1\n        } else {\n          m = +m + 1\n        }\n      }\n\n      if (gtlt === '<') {\n        pr = '-0'\n      }\n\n      ret = `${gtlt + M}.${m}.${p}${pr}`\n    } else if (xm) {\n      ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`\n    } else if (xp) {\n      ret = `>=${M}.${m}.0${pr\n      } <${M}.${+m + 1}.0-0`\n    }\n\n    debug('xRange return', ret)\n\n    return ret\n  })\n}\n\n// Because * is AND-ed with everything else in the comparator,\n// and '' means \"any version\", just remove the *s entirely.\nconst replaceStars = (comp, options) => {\n  debug('replaceStars', comp, options)\n  // Looseness is ignored here.  star is always as loose as it gets!\n  return comp\n    .trim()\n    .replace(re[t.STAR], '')\n}\n\nconst replaceGTE0 = (comp, options) => {\n  debug('replaceGTE0', comp, options)\n  return comp\n    .trim()\n    .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')\n}\n\n// This function is passed to string.replace(re[t.HYPHENRANGE])\n// M, m, patch, prerelease, build\n// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5\n// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do\n// 1.2 - 3.4 => >=1.2.0 <3.5.0-0\n// TODO build?\nconst hyphenReplace = incPr => ($0,\n  from, fM, fm, fp, fpr, fb,\n  to, tM, tm, tp, tpr) => {\n  if (isX(fM)) {\n    from = ''\n  } else if (isX(fm)) {\n    from = `>=${fM}.0.0${incPr ? '-0' : ''}`\n  } else if (isX(fp)) {\n    from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`\n  } else if (fpr) {\n    from = `>=${from}`\n  } else {\n    from = `>=${from}${incPr ? '-0' : ''}`\n  }\n\n  if (isX(tM)) {\n    to = ''\n  } else if (isX(tm)) {\n    to = `<${+tM + 1}.0.0-0`\n  } else if (isX(tp)) {\n    to = `<${tM}.${+tm + 1}.0-0`\n  } else if (tpr) {\n    to = `<=${tM}.${tm}.${tp}-${tpr}`\n  } else if (incPr) {\n    to = `<${tM}.${tm}.${+tp + 1}-0`\n  } else {\n    to = `<=${to}`\n  }\n\n  return `${from} ${to}`.trim()\n}\n\nconst testSet = (set, version, options) => {\n  for (let i = 0; i < set.length; i++) {\n    if (!set[i].test(version)) {\n      return false\n    }\n  }\n\n  if (version.prerelease.length && !options.includePrerelease) {\n    // Find the set of versions that are allowed to have prereleases\n    // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0\n    // That should allow `1.2.3-pr.2` to pass.\n    // However, `1.2.4-alpha.notready` should NOT be allowed,\n    // even though it's within the range set by the comparators.\n    for (let i = 0; i < set.length; i++) {\n      debug(set[i].semver)\n      if (set[i].semver === Comparator.ANY) {\n        continue\n      }\n\n      if (set[i].semver.prerelease.length > 0) {\n        const allowed = set[i].semver\n        if (allowed.major === version.major &&\n            allowed.minor === version.minor &&\n            allowed.patch === version.patch) {\n          return true\n        }\n      }\n    }\n\n    // Version has a -pre, but it's not one of the ones we like.\n    return false\n  }\n\n  return true\n}\n","'use strict'\n\nclass LRUCache {\n  constructor () {\n    this.max = 1000\n    this.map = new Map()\n  }\n\n  get (key) {\n    const value = this.map.get(key)\n    if (value === undefined) {\n      return undefined\n    } else {\n      // Remove the key from the map and add it to the end\n      this.map.delete(key)\n      this.map.set(key, value)\n      return value\n    }\n  }\n\n  delete (key) {\n    return this.map.delete(key)\n  }\n\n  set (key, value) {\n    const deleted = this.delete(key)\n\n    if (!deleted && value !== undefined) {\n      // If cache is full, delete the least recently used item\n      if (this.map.size >= this.max) {\n        const firstKey = this.map.keys().next().value\n        this.delete(firstKey)\n      }\n\n      this.map.set(key, value)\n    }\n\n    return this\n  }\n}\n\nmodule.exports = LRUCache\n","'use strict'\n\nconst ANY = Symbol('SemVer ANY')\n// hoisted class for cyclic dependency\nclass Comparator {\n  static get ANY () {\n    return ANY\n  }\n\n  constructor (comp, options) {\n    options = parseOptions(options)\n\n    if (comp instanceof Comparator) {\n      if (comp.loose === !!options.loose) {\n        return comp\n      } else {\n        comp = comp.value\n      }\n    }\n\n    comp = comp.trim().split(/\\s+/).join(' ')\n    debug('comparator', comp, options)\n    this.options = options\n    this.loose = !!options.loose\n    this.parse(comp)\n\n    if (this.semver === ANY) {\n      this.value = ''\n    } else {\n      this.value = this.operator + this.semver.version\n    }\n\n    debug('comp', this)\n  }\n\n  parse (comp) {\n    const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n    const m = comp.match(r)\n\n    if (!m) {\n      throw new TypeError(`Invalid comparator: ${comp}`)\n    }\n\n    this.operator = m[1] !== undefined ? m[1] : ''\n    if (this.operator === '=') {\n      this.operator = ''\n    }\n\n    // if it literally is just '>' or '' then allow anything.\n    if (!m[2]) {\n      this.semver = ANY\n    } else {\n      this.semver = new SemVer(m[2], this.options.loose)\n    }\n  }\n\n  toString () {\n    return this.value\n  }\n\n  test (version) {\n    debug('Comparator.test', version, this.options.loose)\n\n    if (this.semver === ANY || version === ANY) {\n      return true\n    }\n\n    if (typeof version === 'string') {\n      try {\n        version = new SemVer(version, this.options)\n      } catch (er) {\n        return false\n      }\n    }\n\n    return cmp(version, this.operator, this.semver, this.options)\n  }\n\n  intersects (comp, options) {\n    if (!(comp instanceof Comparator)) {\n      throw new TypeError('a Comparator is required')\n    }\n\n    if (this.operator === '') {\n      if (this.value === '') {\n        return true\n      }\n      return new Range(comp.value, options).test(this.value)\n    } else if (comp.operator === '') {\n      if (comp.value === '') {\n        return true\n      }\n      return new Range(this.value, options).test(comp.semver)\n    }\n\n    options = parseOptions(options)\n\n    // Special cases where nothing can possibly be lower\n    if (options.includePrerelease &&\n      (this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {\n      return false\n    }\n    if (!options.includePrerelease &&\n      (this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {\n      return false\n    }\n\n    // Same direction increasing (> or >=)\n    if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {\n      return true\n    }\n    // Same direction decreasing (< or <=)\n    if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {\n      return true\n    }\n    // same SemVer and both sides are inclusive (<= or >=)\n    if (\n      (this.semver.version === comp.semver.version) &&\n      this.operator.includes('=') && comp.operator.includes('=')) {\n      return true\n    }\n    // opposite directions less than\n    if (cmp(this.semver, '<', comp.semver, options) &&\n      this.operator.startsWith('>') && comp.operator.startsWith('<')) {\n      return true\n    }\n    // opposite directions greater than\n    if (cmp(this.semver, '>', comp.semver, options) &&\n      this.operator.startsWith('<') && comp.operator.startsWith('>')) {\n      return true\n    }\n    return false\n  }\n}\n\nmodule.exports = Comparator\n\nconst parseOptions = require('../internal/parse-options')\nconst { safeRe: re, t } = require('../internal/re')\nconst cmp = require('../functions/cmp')\nconst debug = require('../internal/debug')\nconst SemVer = require('./semver')\nconst Range = require('./range')\n","'use strict'\n\nconst compare = require('./compare')\nconst eq = (a, b, loose) => compare(a, b, loose) === 0\nmodule.exports = eq\n","'use strict'\n\nconst compare = require('./compare')\nconst neq = (a, b, loose) => compare(a, b, loose) !== 0\nmodule.exports = neq\n","'use strict'\n\nconst compare = require('./compare')\nconst gt = (a, b, loose) => compare(a, b, loose) > 0\nmodule.exports = gt\n","'use strict'\n\nconst compare = require('./compare')\nconst gte = (a, b, loose) => compare(a, b, loose) >= 0\nmodule.exports = gte\n","'use strict'\n\nconst compare = require('./compare')\nconst lt = (a, b, loose) => compare(a, b, loose) < 0\nmodule.exports = lt\n","'use strict'\n\nconst compare = require('./compare')\nconst lte = (a, b, loose) => compare(a, b, loose) <= 0\nmodule.exports = lte\n","'use strict'\n\nconst Range = require('../classes/range')\nconst satisfies = (version, range, options) => {\n  try {\n    range = new Range(range, options)\n  } catch (er) {\n    return false\n  }\n  return range.test(version)\n}\nmodule.exports = satisfies\n","import RenderError from '../utils/render-error';\n\nconst LOADED = {};\n\n/**\n * @interface LoadType\n * @param {object} type\n * @param {string} type.name\n * @param {string} type.version\n * @returns {Promise<Visualization>}\n */\n\nexport async function load(name, version, { config }, loader) {\n  const key = `${name}__${version}`;\n  if (!LOADED[key]) {\n    const sKey = `${name}${(version && ` v${version}`) || ''}`;\n    if (loader && typeof loader !== 'function') {\n      throw new Error(`load of visualization '${sKey}' is not a fuction, wrap load promise in function`);\n    }\n    const p = (loader || config.load)({\n      name,\n      version,\n    });\n    const prom = Promise.resolve(p);\n    LOADED[key] = prom\n      .then((sn) => {\n        if (!sn) {\n          // TODO - improve validation\n          throw new Error(`load() of visualization '${sKey}' resolved to an invalid object`);\n        }\n        return sn;\n      })\n      .catch((e) => {\n        if (__NEBULA_DEV__) {\n          console.warn(e); // eslint-disable-line no-console\n        }\n        throw new RenderError(`Failed to load visualization: '${sKey}'`, e);\n      });\n  }\n\n  return LOADED[key];\n}\n\nexport function clearFromCache(name) {\n  Object.keys(LOADED).forEach((key) => {\n    if (key.split('__')[0] === name) {\n      LOADED[key] = undefined;\n    }\n  });\n}\n","import type from './type';\nimport { clearFromCache } from './load';\n\nexport function semverSort(arr) {\n  const unversioned = arr.filter((v) => v === 'undefined');\n  return [\n    ...unversioned,\n    ...arr\n      .filter((v) => v !== 'undefined')\n      .map((v) => v.split('.').map((n) => parseInt(n, 10)))\n      .sort((a, b) => a[0] - b[0] || a[1] - b[1] || a[2] - b[2])\n      .map((n) => n.join('.')),\n  ];\n}\n\nexport function typeCollection(name, halo) {\n  const versions = {};\n  let sortedVersions = null;\n\n  return {\n    get: (version) => versions[version],\n    register: (version, opts) => {\n      if (versions[version]) {\n        throw new Error(`Supernova '${name}@${version}' already registered.`);\n      }\n\n      versions[version] = type(\n        {\n          name,\n          version,\n        },\n        halo,\n        opts\n      );\n      sortedVersions = null;\n    },\n    getMatchingVersionFromProperties: (propertyVersion) => {\n      if (!sortedVersions) {\n        sortedVersions = semverSort(Object.keys(versions));\n      }\n      for (let i = sortedVersions.length - 1; i >= 0; i--) {\n        const t = versions[sortedVersions[i]];\n        if (t.supportsPropertiesVersion(propertyVersion)) {\n          return sortedVersions[i];\n        }\n      }\n      return null;\n    },\n    versions,\n  };\n}\n\nexport function create({ halo, parent }) {\n  const tc = {};\n\n  const p = parent || {\n    get: () => undefined,\n  };\n\n  return {\n    register: (typeInfo, opts) => {\n      if (!tc[typeInfo.name]) {\n        tc[typeInfo.name] = typeCollection(typeInfo.name, halo);\n      }\n      tc[typeInfo.name].register(typeInfo.version, opts);\n    },\n    getSupportedVersion: (name, propertyVersion) => {\n      if (!tc[name]) {\n        return undefined;\n      }\n      return tc[name].getMatchingVersionFromProperties(propertyVersion);\n    },\n    get(typeInfo) {\n      const { name } = typeInfo;\n      let { version } = typeInfo;\n      if (!tc[name]) {\n        // Chart not registered, so we'll do that now.\n        if (__NEBULA_DEV__) {\n          console.warn(`Visualization ${name} is not registered. Adding it now.`); // eslint-disable-line no-console\n        }\n        this.register({ name, version });\n      } else if (!tc[name].versions[version]) {\n        // Fall back to existing version\n        const versionToUse = Object.keys(tc[name].versions)[0];\n        if (__NEBULA_DEV__) {\n          console.warn(`Version ${version} of ${name} is not registered. Falling back to version ${versionToUse}`); // eslint-disable-line no-console\n        }\n        version = versionToUse;\n      }\n      return tc[name].get(version) || p.get(typeInfo);\n    },\n    getList: () =>\n      Object.keys(tc).map((key) => ({\n        name: key,\n        versions: Object.keys(tc[key].versions).map((v) => (v === 'undefined' ? undefined : v)),\n      })),\n    clearFromCache: (name) => {\n      if (tc[name]) {\n        tc[name] = undefined;\n      }\n      clearFromCache(name);\n    },\n  };\n}\n","import { generator as SNFactory } from '@nebula.js/supernova';\nimport extend from 'extend';\nimport satisfies from 'semver/functions/satisfies';\nimport { load } from './load';\n\n/**\n * @interface TypeInfo\n * @property {string} name\n * @property {string=} version\n * @property {LoadType} load\n * @property {object=} meta\n */\n\nexport default function create(info, halo, opts = {}) {\n  let sn;\n  let stringified;\n  const { meta } = opts;\n  const type = {\n    name: info.name,\n    version: info.version,\n    supportsPropertiesVersion(v) {\n      if (v && meta && meta.deps && meta.deps.properties) {\n        return satisfies(v, meta.deps.properties);\n      }\n      return true;\n    },\n    supernova: () =>\n      load(type.name, type.version, halo, opts.load).then((SNDefinition) => {\n        sn = sn || SNFactory(SNDefinition, halo.public.galaxy);\n        stringified = JSON.stringify(sn.qae.properties.initial);\n        return sn;\n      }),\n    initialProperties(initial, extendProperties = false) {\n      return this.supernova().then(() => {\n        const props = {\n          qInfo: {\n            qType: type.name,\n          },\n          visualization: type.name,\n          version: type.version,\n          showTitles: true,\n          ...JSON.parse(stringified),\n        };\n        if (extendProperties) {\n          extend(true, props, initial);\n          return props;\n        }\n        return {\n          ...props,\n          ...initial,\n        };\n      });\n    },\n  };\n\n  return type;\n}\n","/* eslint no-underscore-dangle:0 */\nimport auth from '@qlik/api/auth';\nimport React from 'react';\nimport appLocaleFn from './locale/app-locale';\nimport appThemeFn from './app-theme';\nimport deviceTypeFn from './device-type';\n\nimport bootNebulaApp from './components/NebulaApp';\nimport AppSelectionsPortal from './components/selections/AppSelections';\nimport ListBoxPortal, { getOptions as getListboxPortalOptions } from './components/listbox/ListBoxPortal';\nimport ListBoxPopoverWrapper, {\n  getOptions as getListboxPopoverOptions,\n} from './components/listbox/ListBoxPopoverWrapper';\n\nimport createSessionObject from './object/create-session-object';\nimport createObject from './object/create-object';\nimport get from './object/get-generic-object';\nimport raceWithAbort from './utils/abort-utils';\nimport flagsFn from './flags/flags';\nimport { create as typesFn } from './sn/types';\nimport uid from './object/uid';\nimport eventmixin from './selections/event-mixin';\n\n/**\n * @interface SnapshotConfiguration\n * @private\n */\nconst DEFAULT_SNAPSHOT_CONFIG = /** @lends SnapshotConfiguration */ {\n  /**\n   * @param {string} id\n   * @returns {Promise<SnapshotLayout>}\n   */\n  get: async (id) => {\n    const res = await fetch(`/njs/snapshot/${id}`);\n    if (!res.ok) {\n      throw new Error(res.statusText);\n    }\n    return res.json();\n  },\n  capture(payload) {\n    return fetch(`/njs/capture`, {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n      },\n      body: JSON.stringify(payload),\n    }).then((res) => res.json());\n  },\n};\n\n/**\n * @interface Component\n * @property {string} key The key of the component. Currently supporting components \"theme\" and \"selections\".\n * @example\n * const n = embed(app);\n * const inst = await n.field('field_name');\n * inst.mount(document.querySelector('.listbox'), {\n *   components: [{\n *    key: 'theme',\n *    header: {\n *      fontColor: { color: '#f00' },\n *      fontSize: 23,\n *    },\n *    content: {\n *      fontSize: 16,\n *      useContrastColor: false,\n *    }\n *   },{\n *    key: 'selections',\n *    colors: {\n *      selected: { color: '#0f0' },\n *      alternative: { color: '#ededed' },\n *      excluded: { color: '#ccc' },\n *      selectedExcluded: { color: '#bbb' },\n *      possible: { color: '#fefefe' },\n *      possible: { color: '#fefefe' },\n *    }\n *  }]\n * });\n */\n\n/**\n * Fallback load function for missing types\n * @typedef {Function(LoadType):Promise<Visualization>} LoadFallback\n */\n\n/**\n * @interface Configuration\n * @property {LoadFallback=} load Fallback load function for missing types\n * @property {Context=} context Settings for the rendering instance\n * @property {Array<TypeInfo>=} types Visualization types to register\n * @property {Array<ThemeInfo>=} themes Themes to register\n * @property {object=} hostConfig Qlik api compatible host config, see https://github.com/qlik-oss/qlik-api-ts/blob/main/docs/authentication.md#the-host-config\n * @property {object=} anything\n * @example\n * import { embed } from '@nebula.js/stardust'\n * n = embed(app, {\n *   context: {\n *     keyboardNavigation: true,\n *     theme: 'purple',\n *   },\n *   load: ({ name, version }) => {\n *     if (name === 'linechart') {\n *       return Promise.resolve(line);\n *     }\n *   },\n *   types: [\n *     {\n *       name: 'bar',\n *       load: () => Promise.resolve(bar),\n *     },\n *   ],\n *   themes: [\n *     {\n *       id: 'purple',\n *       load: () => Promise.resolve(purpleThemeJson),\n *     },\n *   ],\n * });\n */\n\nconst DEFAULT_CONFIG = {\n  context: {},\n  load: () => undefined,\n  types: [],\n  themes: [],\n  anything: {},\n  flags: {\n    KPI_REACTCOLORPICKER: true,\n    CLIENT_IM_3365: true,\n  },\n  snapshot: DEFAULT_SNAPSHOT_CONFIG,\n};\n\n/**\n * @interface Context\n */\nconst DEFAULT_CONTEXT = /** @lends Context */ {\n  /** @type {string=} */\n  theme: 'light',\n  /** @type {string=} */\n  language: 'en-US',\n  /** @type {string=} */\n  deviceType: 'auto',\n  /**\n   * @type {Constraints=}\n   * @deprecated\n   * */\n  constraints: {},\n  /** @type {Interactions=} */\n  interactions: {},\n  /** @type {boolean=} */\n  keyboardNavigation: false,\n  /** @type {boolean=} */\n  disableCellPadding: false,\n  /**\n   * Type used for toggling to the data view (toggleDataView)\n   * This type need to be registered as well\n   * @type {string=}\n   * */\n  dataViewType: 'sn-table',\n  /** @type {Navigation=} */\n  navigation: undefined,\n};\n\nDEFAULT_CONFIG.context = DEFAULT_CONTEXT;\n\n/**\n * @interface Galaxy\n */\n\nconst mergeObj = (o1 = {}, o2 = {}) => ({\n  ...o1,\n  ...o2,\n});\nconst mergeArray = (a1 = [], a2 = []) =>\n  // Simple merge and deduplication\n  [...a1, ...a2].filter((v, i, a) => a.indexOf(v) === i);\nconst mergeConfigs = (base, c) => ({\n  context: mergeObj(base.context, c.context),\n  load: c.load || base.load,\n  loadTheme: c.loadTheme || base.loadTheme,\n  snapshot: {\n    ...(c.snapshot || base.snapshot),\n  },\n  types: mergeArray(base.types, c.types),\n  themes: mergeArray(base.themes, c.themes),\n  flags: mergeObj(base.flags, c.flags),\n  hostConfig: c.hostConfig || base.hostConfig,\n  anything: mergeObj(base.anything, c.anything),\n});\n\n/**\n * @ignore\n * @typedef {function(promise)} PromiseFunction A callback function which receives a request promise as the first argument.\n */\n\n/**\n * @ignore\n * @typedef {function(function)} ReceiverFunction A callback function which receives another function as input.\n */\n\nfunction nuked(configuration = {}) {\n  const locale = appLocaleFn(configuration.context.language);\n\n  /**\n   * Initiates a new `Embed` instance using the specified enigma `app`.\n   * @entry\n   * @function embed\n   * @param {qix.Doc} app\n   * @param {Configuration=} instanceConfig\n   * @returns {Embed}\n   * @example\n   * import { embed } from '@nebula.js/stardust'\n   * const n = embed(app);\n   * n.render({ id: 'abc' });\n   */\n  function embed(app, instanceConfig) {\n    if (instanceConfig) {\n      return embed.createConfiguration(instanceConfig)(app);\n    }\n\n    let currentContext = {\n      ...configuration.context,\n      translator: locale.translator,\n      hostConfig: configuration.hostConfig,\n    };\n\n    const [root, modelStore] = bootNebulaApp({\n      app,\n      context: currentContext,\n    });\n\n    const appTheme = appThemeFn({\n      themes: configuration.themes,\n      loadTheme: configuration.loadTheme,\n      root,\n    });\n    currentContext.themeApi = appTheme.externalAPI;\n\n    const publicAPIs = {\n      galaxy: /** @lends Galaxy */ {\n        /** @type {Translator} */\n        translator: locale.translator,\n        /** @type {Theme} */\n        theme: appTheme.externalAPI,\n        // TODO - validate flags input\n        /** @type {Flags} */\n        flags: flagsFn(configuration.flags),\n        /** @type {string} */\n        deviceType: deviceTypeFn(configuration.context.deviceType),\n        /** @type {object} */\n        hostConfig: configuration.hostConfig,\n        /** @type {object} */\n        anything: configuration.anything,\n      },\n      theme: appTheme.externalAPI,\n      translator: locale.translator,\n      nebbie: null, // actual value is set further down\n    };\n\n    const halo = {\n      app,\n      root,\n      config: configuration,\n      public: publicAPIs,\n      context: currentContext,\n      types: null,\n    };\n\n    const types = typesFn({ halo });\n\n    configuration.types.forEach((t) =>\n      types.register(\n        {\n          name: t.name,\n          version: t.version,\n        },\n        {\n          meta: t.meta,\n          load: t.load,\n        }\n      )\n    );\n\n    let currentSetupPromise = new Promise((resolve) => {\n      const p = async () => {\n        await appTheme.setTheme(configuration.context.theme);\n\n        if (configuration.hostConfig && auth && auth.getWebResourceAuthParams) {\n          const { queryParams } = await auth.getWebResourceAuthParams({ hostConfig: configuration.hostConfig });\n          currentContext.queryParams = queryParams;\n          root.context(currentContext);\n        }\n      };\n      p().then(resolve);\n    });\n\n    let selectionsApi = null;\n    let selectionsComponentReference = null;\n\n    /**\n     * @ignore\n     * @typedef { 'fieldPopoverClose' } EmbedEventTypes\n     */\n\n    /**\n     * Event listener function on instance\n     *\n     * @ignore\n     * @method\n     * @name Embed#on\n     * @param {EmbedEventTypes} eventType event type that function needs to listen\n     * @param {Function} callback a callback function to run when event emits\n     * @example\n     * api.on('someEvent', () => {...});\n     */\n\n    /**\n     * @class\n     * @alias Embed\n     */\n    const api = /** @lends Embed# */ {\n      /**\n       * Renders a visualization or sheet into an HTMLElement.\n       * Visualizations can either be existing objects or created on the fly.\n       * Support for sense sheets is experimental.\n       * @param {RenderConfig} cfg The render configuration.\n       * @returns {Promise<Viz|Sheet>} A controller to the rendered visualization or sheet.\n       * @example\n       * // render from existing object\n       * n.render({\n       *   element: el,\n       *   id: 'abcdef'\n       * });\n       * @example\n       * // render on the fly\n       * n.render({\n       *   element: el,\n       *   type: 'barchart',\n       *   fields: ['Product', { qLibraryId: 'u378hn', type: 'measure' }]\n       * });\n       * @example\n       * // with AbortSignal\n       * const controller = new AbortController();\n       * n.render({\n       *   element: el,\n       *   type: 'barchart',\n       *   fields: ['Product', '=Sum(Sales)'],\n       *   signal: controller.signal\n       * });\n       * // Later: cancel the render\n       * controller.abort();\n       */\n      render: async (cfg) => {\n        await currentSetupPromise;\n        cfg.signal?.throwIfAborted();\n\n        const vizApiPromise = cfg.id ? get(cfg, halo, modelStore) : createSessionObject(cfg, halo, modelStore);\n\n        if (cfg.signal) {\n          const abortHandler = () => {\n            vizApiPromise.then((vizApi) => vizApi?.destroy()).catch(() => {});\n          };\n\n          cfg.signal.addEventListener('abort', abortHandler, { once: true });\n\n          return raceWithAbort(vizApiPromise, cfg.signal).finally(() => {\n            cfg.signal.removeEventListener('abort', abortHandler);\n          });\n        }\n\n        return vizApiPromise;\n      },\n      // TODO - document\n      destroy: async () => {\n        root.destroy();\n      },\n      /**\n       * Creates a visualization model\n       * @param {CreateConfig} cfg The create configuration.\n       * @returns {Promise<qix.GenericObject>} An engima model\n       * @example\n       * // create a barchart in the app and return the model\n       * const model = await n.create({\n       *     type: 'barchart',\n       *     fields: ['Product', { qLibraryId: 'u378hn', type: 'measure' }],\n       *     properties: { showTitle: true }\n       *   }\n       * );\n       */\n      create: async (cfg) => createObject(cfg, halo, false, modelStore),\n      /**\n       * Generates properties for a visualization object\n       * @param {CreateConfig} cfg The create configuration.\n       * @returns {Promise<object>} The objects properties\n       * @example\n       * // generate properties for a barchart\n       * const properties = await n.generateProperties({\n       *     type: 'barchart',\n       *     fields: ['Product', { qLibraryId: 'u378hn', type: 'measure' }],\n       *     properties: { showTitle: true }\n       *   },\n       * );\n       */\n      generateProperties: async (cfg) => createObject(cfg, halo, true, modelStore),\n      /**\n       * Updates the current context of this embed instance.\n       * Use this when you want to change some part of the current context, like theme.\n       * @param {Context} ctx - The context to update.\n       * @returns {Promise<undefined>}\n       * @example\n       * // change theme\n       * n.context({ theme: 'dark'});\n       * @example\n       * // change interactions\n       * n.context({ interactions: { select: false } });\n       */\n      context: async (ctx) => {\n        // filter valid values to avoid triggering unnecessary rerender\n        let changes;\n        ['theme', 'language', 'constraints', 'interactions', 'keyboardNavigation'].forEach((key) => {\n          if (Object.prototype.hasOwnProperty.call(ctx, key) && ctx[key] !== currentContext[key]) {\n            if (!changes) {\n              changes = {};\n            }\n            changes[key] = ctx[key];\n          }\n        });\n        if (!changes) {\n          return;\n        }\n        currentContext = {\n          ...currentContext,\n          ...changes,\n          translator: locale.translator,\n        };\n\n        if (changes.theme) {\n          await currentSetupPromise;\n          currentSetupPromise = appTheme.setTheme(changes.theme);\n          await currentSetupPromise;\n        }\n\n        if (changes.language) {\n          halo.public.translator.language(changes.language);\n        }\n\n        root.context(currentContext);\n      },\n      /**\n       * Gets the app selections of this instance.\n       * @returns {Promise<AppSelections>}\n       * @example\n       * const selections = await n.selections();\n       * selections.mount(element);\n       */\n      selections: async () => {\n        if (!selectionsApi) {\n          selectionsApi = /** @lends AppSelections# */ {\n            /**\n             * Mounts the app selection UI into the provided HTMLElement.\n             * @param {HTMLElement} element\n             * @example\n             * selections.mount(element);\n             */\n            mount(element) {\n              if (selectionsComponentReference) {\n                if (__NEBULA_DEV__) {\n                  console.error('Already mounted'); // eslint-disable-line no-console\n                }\n                return;\n              }\n              selectionsComponentReference = AppSelectionsPortal({\n                element,\n                app,\n              });\n              root.add(selectionsComponentReference);\n            },\n            /**\n             * Unmounts the app selection UI from the DOM.\n             * @example\n             * selections.unmount();\n             */\n            unmount() {\n              if (selectionsComponentReference) {\n                root.remove(selectionsComponentReference);\n                selectionsComponentReference = null;\n              }\n            },\n          };\n        }\n        return selectionsApi;\n      },\n      /**\n       * Gets the listbox instance of the specified field\n       * @param {string|LibraryField|QInfo} fieldIdentifier Fieldname as a string, a Library dimension or an object id\n       * @returns {Promise<FieldInstance>}\n       * @since 1.1.0\n       * @example\n       * const fieldInstance = await n.field(\"MyField\");\n       * fieldInstance.mount(element, { title: \"Hello Field\"});\n       */\n      field: async (fieldIdentifier) => {\n        let qId;\n        const fieldName = typeof fieldIdentifier === 'string' ? fieldIdentifier : fieldIdentifier.qLibraryId;\n        if (fieldIdentifier.qId) {\n          qId = fieldIdentifier.qId;\n        } else if (!fieldName) {\n          throw new Error(`Field identifier or object id must be provided`);\n        }\n\n        /**\n         * @typedef { 'ltr' | 'rtl' } Direction\n         */\n\n        /**\n         * @typedef { 'vertical' | 'horizontal' } ListLayout\n         */\n\n        /**\n         * @typedef { 'none' | 'value' | 'percent' | 'relative' } FrequencyMode\n         */\n\n        /**\n         * @typedef { boolean | 'toggle' } SearchMode\n         */\n\n        /**\n         * @typedef { 'selectionActivated' | 'selectionDeactivated' } FieldEventTypes\n         */\n\n        /**\n         * Event listener function on instance\n         *\n         * @method\n         * @name FieldInstance#on\n         * @param {FieldEventTypes} eventType event type that function needs to listen\n         * @param {Function} callback a callback function to run when event emits\n         * @example\n         * const handleSomeEvent () => {...};\n         * fieldInstance.on('someEvent', handleSomeEvent);\n         * ...\n         * fieldInstance.removeListener('someEvent', handleSomeEvent);\n         */\n\n        /**\n         * Remove listener on instance\n         *\n         * @method\n         * @name FieldInstance#removeListener\n         * @param {FieldEventTypes} eventType event type\n         * @param {Function} callback handler\n         */\n\n        /**\n         * @class\n         * @alias FieldInstance\n         * @since 1.1.0\n         */\n        const fieldSels = {\n          fieldName,\n          /**\n           * Mounts the field as a listbox into the provided HTMLElement.\n           * @param {HTMLElement} element\n           * @param {object=} options Settings for the embedded listbox\n           * @param {string=} options.title Custom title, defaults to fieldname (not applicable for existing objects)\n           * @param {Direction=} [options.direction=ltr] Direction setting ltr|rtl.\n           * @param {ListLayout=} [options.listLayout=vertical] Layout direction vertical|horizontal (not applicable for existing objects)\n           * @param {FrequencyMode=} [options.frequencyMode=none] Show frequency none|value|percent|relative\n           * @param {boolean=} [options.histogram=false] Show histogram bar (not applicable for existing objects)\n           * @param {SearchMode=} [options.search=true] Show the search bar permanently, using the toggle button or when in selection: false|true|toggle\n           * @param {boolean=} [options.showLock=false] Show the button for toggling locked state.\n           * @param {boolean=} [options.toolbar=true] Show the toolbar\n           * @param {boolean=} [options.checkboxes=false] Show values as checkboxes instead of as fields (not applicable for existing objects)\n           * @param {boolean=} [options.dense=false] Reduces padding and text size (not applicable for existing objects)\n           * @param {string=} [options.stateName=\"$\"] Sets the state to make selections in (not applicable for existing objects)\n           * @param {Component[]} [options.components] Override individual components' styling, otherwise set by the theme or the default style.\n           * @param {object=} [options.properties={}] Properties object to extend default properties with\n           * @returns {Promise<void>} A promise that resolves when the data is fetched.\n           *\n           * @since 1.1.0\n           * @instance\n           * @example\n           * fieldInstance.mount(element);\n           */\n          async mount(element, options = {}) {\n            if (!element) {\n              throw new Error(`Element for ${fieldName || qId} not provided`);\n            }\n            if (this._instance) {\n              throw new Error(`Field or object ${fieldName || qId} already mounted`);\n            }\n            const onSelectionActivated = () => fieldSels.emit('selectionActivated');\n            const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');\n\n            return new Promise((resolve) => {\n              [this._instance, this._ref] = ListBoxPortal({\n                element,\n                app,\n                fieldIdentifier,\n                qId,\n                options: getListboxPortalOptions({\n                  onSelectionActivated,\n                  onSelectionDeactivated,\n                  ...options,\n                }),\n                stateName: options.stateName || '$',\n                renderedCallback: resolve,\n              });\n              root.add(this._instance);\n            });\n          },\n          /**\n           * Unmounts the field listbox from the DOM.\n           * @since 1.1.0\n           * @instance\n           * @example\n           * listbox.unmount();\n           */\n          unmount() {\n            if (this._instance) {\n              root.remove(this._instance);\n              this._instance = null;\n              this._ref = null;\n            }\n          },\n          // ===== unexposed experimental API - use at own risk ======\n          __DO_NOT_USE__: {\n            options(opts) {\n              const onSelectionActivated = () => fieldSels.emit('selectionActivated');\n              const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');\n              if (fieldSels._ref?.current) {\n                const options = getListboxPortalOptions({\n                  onSelectionActivated,\n                  onSelectionDeactivated,\n                  ...opts,\n                });\n                fieldSels._ref.current.setOptions(options);\n              }\n            },\n          },\n        };\n        eventmixin(fieldSels);\n        return fieldSels;\n      },\n      /**\n       * Gets a list of registered visualization types and versions\n       * @function\n       * @returns {Array<Object>} types\n       * @example\n       * const types = n.getRegisteredTypes();\n       * // Contains\n       * //[\n       * // {\n       * //   name: \"barchart\"\n       * //   versions:[undefined, \"1.2.0\"]\n       * // }\n       * //]\n       */\n      getRegisteredTypes: types.getList,\n      __DO_NOT_USE__: {\n        types,\n        popover(anchorElement, fieldIdentifier, options) {\n          if (api._popoverInstance) {\n            root.remove(api._popoverInstance);\n            api._popoverInstance = null;\n          }\n          const onPopoverClose = () => api.emit('fieldPopoverClose');\n          const opts = getListboxPopoverOptions({ onPopoverClose, ...options });\n          api._popoverInstance = React.createElement(ListBoxPopoverWrapper, {\n            element: anchorElement,\n            key: uid(),\n            app,\n            fieldIdentifier,\n            options: opts,\n            stateName: options.stateName || '$',\n          });\n          root.add(api._popoverInstance);\n        },\n      },\n    };\n\n    halo.public.nebbie = api;\n    halo.types = types;\n\n    eventmixin(api);\n    return api;\n  }\n\n  /**\n   * Creates a new `embed` scope bound to the specified `configuration`.\n   *\n   * The configuration is merged with all previous scopes.\n   * @memberof embed\n   * @param {Configuration} configuration - The configuration object\n   * @returns {embed}\n   * @example\n   * import { embed } from '@nebula.js/stardust';\n   * // create a 'master' config which registers all types\n   * const m = embed.createConfiguration({\n   *   types: [{\n   *     name: 'mekko',\n   *     version: '1.0.0',\n   *     load: () => Promise.resolve(mekko)\n   *   }],\n   * });\n   *\n   * // create an alternate config with dark theme\n   * // and inherit the config from the previous\n   * const d = m.createConfiguration({\n   *  context: {\n   *    theme: 'dark'\n   *  }\n   * });\n   *\n   * m(app).render({ type: 'mekko' }); // will render the object with default theme\n   * d(app).render({ type: 'mekko' }); // will render the object with 'dark' theme\n   * embed(app).render({ type: 'mekko' }); // will throw error since 'mekko' is not a register type on the default instance\n   */\n  embed.createConfiguration = (c) => nuked(mergeConfigs(configuration, c));\n  embed.config = configuration;\n\n  return embed;\n}\n\n/**\n * @typedef {any} ThemeJSON\n */\n\n/**\n * @interface ThemeInfo\n * @property {string} id Theme identifier\n * @property {function(): Promise<ThemeJSON>} load A function that should return a Promise that resolves to a raw JSON theme.\n */\n\n/**\n * @interface QInfo\n * @property {string} qId Generic object id\n */\n\nexport default nuked(DEFAULT_CONFIG);\n","import createKeyStore from './create-key-store';\n\nexport default function initializeStores(appId) {\n  const [useRpcResultStore, rpcResultStore] = createKeyStore({});\n  const [useRpcRequestStore, rpcRequestStore] = createKeyStore({});\n  const [useRpcRequestSessionModelStore, rpcRequestSessionModelStore] = createKeyStore({});\n  const [useRpcRequestModelStore, rpcRequestModelStore] = createKeyStore({});\n\n  const [useModelChangedStore, modelChangedStore] = createKeyStore({});\n  const [, modelInitializedStore] = createKeyStore({});\n\n  const modelStoreMiddleware = ({ type, value: model }) => {\n    const initialized = modelInitializedStore.get(model.id);\n    modelInitializedStore.set(model.id, {});\n    const onChanged = () => {\n      rpcRequestStore.clear(model.id);\n      modelChangedStore.set(model.id, {});\n      modelChangedStore.dispatch(true); // Force new state to trigger hooks\n    };\n    const unsubscribe = () => {\n      model.removeListener('closed', unsubscribe);\n      model.removeListener('changed', onChanged);\n      rpcResultStore.clear(model.id);\n      rpcRequestStore.clear(model.id);\n      rpcRequestSessionModelStore.clear(model.id);\n      rpcRequestModelStore.clear(model.id);\n      modelChangedStore.clear(model.id);\n      modelInitializedStore.clear(model.id);\n    };\n    switch (type) {\n      case 'SET':\n        if (!initialized) {\n          model.on('changed', onChanged);\n          model.once('closed', unsubscribe);\n        }\n        break;\n      default:\n        break;\n    }\n    return unsubscribe;\n  };\n\n  const [useModelStore, modelStore] = createKeyStore({}, modelStoreMiddleware);\n\n  const subscribe = (model) => {\n    const unsubscribe = modelStoreMiddleware({ type: 'SET', value: model });\n    return () => {\n      unsubscribe();\n      modelStore.clear(model.id);\n    };\n  };\n\n  const destroy = () => {\n    modelStore.destroy();\n  };\n\n  return {\n    subscribe,\n    destroy,\n    useModelStore,\n    modelStore,\n    useModelChangedStore,\n    useRpcResultStore,\n    rpcResultStore,\n    useRpcRequestStore,\n    rpcRequestStore,\n    useRpcRequestModelStore,\n    rpcRequestModelStore,\n    useRpcRequestSessionModelStore,\n    rpcRequestSessionModelStore,\n    modelChangedStore,\n    appId,\n  };\n}\n","import createKeyStore from './create-key-store';\n\nexport default function initializeStores(appId) {\n  const [useAppSelectionsStore, appSelectionsStore] = createKeyStore({});\n  const [useAppModalStore, appModalStore] = createKeyStore({});\n  const [useModalObjectStore, modalObjectStore] = createKeyStore({});\n\n  return {\n    useAppSelectionsStore,\n    useAppModalStore,\n    appSelectionsStore,\n    appModalStore,\n    useModalObjectStore,\n    modalObjectStore,\n    appId,\n  };\n}\n","import init from './initiate';\nimport initSheet from './initiate-sheet';\nimport createNavigationApi from './navigation/navigation';\n\nexport default async function getObject(\n  { id, options, plugins, element, onRender, onError, navigation: inputNavigation },\n  halo,\n  store\n) {\n  const { modelStore, rpcRequestModelStore } = store;\n  const key = `${id}`;\n  let rpc = rpcRequestModelStore.get(key);\n  if (!rpc) {\n    rpc = halo.app.getObject(id);\n    rpcRequestModelStore.set(key, rpc);\n  }\n  const model = await rpc;\n  modelStore.set(key, model);\n  const navigation =\n    inputNavigation || (model.genericType === 'sheet' ? createNavigationApi(halo, store, model) : undefined);\n  if (model.genericType === 'sheet') {\n    return initSheet(model, { options, plugins, element, onRender, onError }, halo, navigation);\n  }\n\n  return init(model, { options, plugins, element, onRender, onError }, halo, navigation);\n}\n","import eventmixin from '../../selections/event-mixin';\n\nexport default function createNavigationApi(halo, store, model) {\n  const { galaxy } = halo.public;\n  if (galaxy.anything?.sense?.navigation) {\n    return galaxy.anything?.sense?.navigation;\n  }\n\n  const State = { model };\n\n  /**\n   * @class Navigation\n   * @description The navigation api instance.\n   * @implements Emitter\n   * @experimental\n   * @since 5.4.0\n   * @example\n   * const navigation = useNavigation();\n   * //...\n   * useEffect(() => {\n   *   const onSheetChanged = () => {\n   *     // do something\n   *   };\n   *   if (navigation?.addListener) {\n   *     navigation.addListener(\"sheetChanged\", onSheetChanged);\n   *   }\n   *   return () => {\n   *     if (navigation?.removeListener) {\n   *       navigation.removeListener(\"sheetChanged\", onSheetChanged);\n   *     }\n   *   };\n   * }, [navigation]);\n   *\n   * const onSheetClick = (sheetId: string) => {\n   *   navigation?.goToSheet(sheetId);\n   * };\n   */\n  const navigationAPI = /** @lends Navigation# */ {\n    /**\n     * Navigate to the supplied sheet and emit 'sheetChanged' event if the target sheet Id is valid.\n     * This allows a navigation object to synchronize its current sheet item with the active sheet.\n     * @experimental\n     * @since 5.4.0\n     * @param {string} sheetId Id of the sheet to navigate to\n     */\n    goToSheet: async (sheetId) => {\n      if (!State.sheetRef) {\n        return;\n      }\n      const { modelStore, rpcRequestModelStore } = store;\n      const key = `${sheetId}`;\n      let rpc = rpcRequestModelStore.get(key);\n      if (!rpc) {\n        rpc = halo.app.getObject(sheetId);\n        rpcRequestModelStore.set(key, rpc);\n      }\n      let newModel;\n      try {\n        newModel = await rpc;\n        if (newModel.genericType !== 'sheet') {\n          return;\n        }\n      } catch (e) {\n        return;\n      }\n      modelStore.set(key, newModel);\n      State.sheetRef?.current?.setModel?.(newModel);\n      State.model = newModel;\n      navigationAPI.emit('sheetChanged');\n    },\n    /**\n     * @private\n     * Set the sheet ref\n     * @param {object} sheetRef sheet ref object\n     */\n    setSheetRef: (sheetRef) => {\n      State.sheetRef = sheetRef;\n    },\n    /**\n     * Return the current sheet id\n     * @experimental\n     * @since 5.4.0\n     * @returns {string|false} The current sheet Id. false means there is no current sheet.\n     */\n    getCurrentSheetId: () => {\n      if (State.model) {\n        return State.model.id;\n      }\n      return false;\n    },\n  };\n  eventmixin(navigationAPI);\n  return navigationAPI;\n}\n","/* eslint no-underscore-dangle:0 */\nimport sheetAPI from '../sheet';\n\nexport default async function initSheet(model, optional, halo, navigation, initialError, onDestroy = async () => {}) {\n  const { onRender, onError } = optional;\n  const api = sheetAPI({\n    model,\n    halo,\n    navigation,\n    initialError,\n    onDestroy,\n    onRender,\n    onError,\n  });\n  if (optional.options) {\n    api.__DO_NOT_USE__.options(optional.options);\n  }\n  if (optional.plugins) {\n    api.__DO_NOT_USE__.plugins(optional.plugins);\n  }\n  if (optional.element) {\n    await api.__DO_NOT_USE__.mount(optional.element);\n  }\n\n  return api;\n}\n","import populateData from './populator';\nimport init from './initiate';\n\n/**\n * @typedef {string | qix.NxDimension | qix.NxMeasure | LibraryField} Field\n */\n\n/**\n * @interface RenderConfig\n * @description Configuration for rendering a visualisation, either creating or fetching an existing object.\n * @property {HTMLElement} element Target html element to render in to\n * @property {object=} options Options passed into the visualisation\n * @property {function=} onRender Callback function called after rendering successfully\n * @property {function(RenderError)=} onError Callback function called if an error occurs. Also called with AbortError when signal aborts.\n * @property {Plugin[]} [plugins] plugins passed into the visualisation\n * @property {AbortSignal=} signal Optional AbortSignal to cancel the render operation. When aborted, destroy() is called for cleanup before onError() is called with the AbortError.\n * @property {string=} id For existing objects: Engine identifier of object to render\n * @property {string=} type For creating objects: Type of visualisation to render\n * @property {string=} version For creating objects: Version of visualization to render\n * @property {(Field[])=} fields For creating objects: Data fields to use\n * @property {boolean=} [extendProperties=false] For creating objects: Whether to deeply extend properties or not. If false then subtrees will be overwritten.\n * @property {qix.GenericObjectProperties=} properties For creating objects: Explicit properties to set\n * @example\n * // A config for Creating objects:\n * const createConfig = {\n *   type: 'bar',\n *   element: document.querySelector('.bar'),\n *   extendProperties: true,\n *   fields: ['[Country names]', '=Sum(Sales)'],\n *   properties: {\n *     legend: {\n *       show: false,\n *     },\n *   }\n * };\n * nebbie.render(createConfig);\n * // A config for rendering an existing object:\n * const renderConfig = {\n *   id: 'jG5LP',\n *   element: document.querySelector('.line'),\n * };\n * nebbie.render(renderConfig);\n * // Using AbortSignal to cancel rendering:\n * const controller = new AbortController();\n * const abortConfig = {\n *   type: 'bar',\n *   element: document.querySelector('.bar'),\n *   fields: ['Country', '=Sum(Sales)'],\n *   signal: controller.signal,\n *   onError: (err) => {\n *     if (err.name === 'AbortError') {\n *       console.log('Render was cancelled');\n *     } else {\n *       console.error('Render failed:', err);\n *     }\n *   }\n * };\n * const vizPromise = nebbie.render(abortConfig);\n * // Cancel the render operation\n * controller.abort();\n */\nexport default async function createSessionObject(\n  { type, version, fields, properties, options, plugins, element, extendProperties, navigation, onRender, onError },\n  halo,\n  store\n) {\n  let mergedProps = {};\n  const children = [];\n  const { modelStore, subscribe } = store;\n  let error;\n  try {\n    const t = halo.types.get({ name: type, version });\n    mergedProps = await t.initialProperties(properties, extendProperties);\n    const sn = await t.supernova();\n    if (fields) {\n      await populateData(\n        {\n          sn,\n          properties: mergedProps,\n          fields,\n          children,\n        },\n        halo\n      );\n    }\n    if (properties && sn && sn.qae.properties.onChange) {\n      sn.qae.properties.onChange.call({}, mergedProps);\n    }\n  } catch (e) {\n    error = e;\n    // minimal dummy object properties to allow it to be created\n    // and rendered with the error\n    mergedProps = {\n      qInfo: {\n        qType: type,\n      },\n      visualization: type,\n    };\n    // console.error(e); // eslint-disable-line\n  }\n  const model = await halo.app.createSessionObject(mergedProps);\n  if (children.length > 0) {\n    await model.setFullPropertyTree({\n      qProperty: mergedProps,\n      qChildren: children,\n    });\n  }\n  modelStore.set(model.id, model);\n  const unsubscribe = subscribe(model);\n  const onDestroy = async () => {\n    await halo.app.destroySessionObject(model.id);\n    unsubscribe();\n  };\n  return init(model, { options, plugins, element, onRender, onError }, halo, navigation, error, onDestroy);\n}\n","/**\n * Utilities for implementing abortable APIs following MDN best practices.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal#implementing_an_abortable_api\n */\n\n/**\n * Races a promise with an AbortSignal, throwing an AbortError if the signal is aborted.\n * Follows the MDN pattern for implementing abortable APIs:\n * 1. Check if already aborted before starting work\n * 2. Race the promise with abort event\n * 3. Clean up abort listener when promise settles\n *\n * @param {Promise<T>} promise - The promise to race with the abort signal\n * @param {AbortSignal} [signal] - Optional abort signal\n * @returns {Promise<T>} The original promise result, or rejects with AbortError\n * @throws {DOMException} Throws with name 'AbortError' if signal is aborted\n * @example\n * const controller = new AbortController();\n * const result = await raceWithAbort(\n *   someAsyncOperation(),\n *   controller.signal\n * );\n */\nexport default function raceWithAbort(promise, signal) {\n  // If no signal provided, just return the original promise\n  if (!signal) {\n    return promise;\n  }\n\n  // Check if already aborted before starting\n  if (typeof signal.throwIfAborted === 'function') {\n    signal.throwIfAborted();\n  }\n\n  let abortReject;\n  const abortPromise = new Promise((_, reject) => {\n    abortReject = reject;\n  });\n\n  const onAbort = () => abortReject?.(signal.reason);\n  signal.addEventListener('abort', onAbort, { once: true });\n\n  return Promise.race([promise, abortPromise]).finally(() => {\n    signal.removeEventListener('abort', onAbort);\n  });\n}\n","function SessionMock() {\n  return {\n    getObjectApi() {\n      return Promise.resolve({\n        id: `sessapi - ${+Date.now()}`,\n      });\n    },\n  };\n}\n\nexport default SessionMock;\n","/* eslint-disable no-underscore-dangle */\nimport extend from 'extend';\n\n// To cover test\n\nconst crt = globalThis.crypto || { getRandomValues: () => 123456 };\n\n// https://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid\n// Not using crypto.randomUUID due to missing safari support < 15\nfunction uuidv4() {\n  return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, (c) =>\n    (c ^ (crt.getRandomValues(new Uint8Array(1))[0] & (15 >> (c / 4)))).toString(16)\n  );\n}\n\nfunction CreateSessionObjectMock(session) {\n  return (props) => {\n    const properties = extend({}, props);\n    properties.qInfo = properties.qInfo || {};\n    properties.qInfo.qId = properties.qInfo.qId || `mock-${uuidv4()}`;\n\n    const mockedInclusions = properties._mock;\n    let layout = properties;\n\n    if (mockedInclusions) {\n      delete properties._mock;\n      layout = extend({}, properties, mockedInclusions);\n    }\n    return Promise.resolve({\n      on: () => {},\n      once: () => {},\n      getLayout: () => Promise.resolve(layout),\n      getProperties: () => Promise.resolve(properties),\n      getEffectiveProperties: () => Promise.resolve(properties),\n      removeListener: () => {},\n      id: properties.qInfo.qId,\n      properties,\n      session,\n    });\n  };\n}\n\nexport default CreateSessionObjectMock;\n","/**\n * Get value for a fixture property.\n *\n * The value is either static (e.g. pass a string / object / similar) or dynamic when passing a function.\n *\n * It falls back to the default value in case the fixture has no value specified.\n *\n * Example\n * ```js\n * const fixture = {\n *  id: 'grid-chart-1',\n * };\n * const app = {\n *   id: getValue(fixture.id, { defaultValue: 'object-id-${+Date.now()}'}),\n * }\n * ```\n * @type function\n * @ignore\n * @param {any} prop Fixture property. Either a fixed value (string / object / boolean / ...) or a function invoked when the value is needed.\n * @param {object} options Options.\n * @param {Array<any>} options.args Arguments used to evaluate the property value.\n * @param {any} options.defaultValue Default value in case not value is defined in fixture.\n * @returns {any} The property value.\n */\nexport const getPropValue = (prop, { args = [], defaultValue } = {}) => {\n  if (typeof prop === 'function') {\n    return prop(...args);\n  }\n  if (prop !== undefined) {\n    return prop;\n  }\n  return defaultValue;\n};\n\n/**\n * Get function for a fixture property.\n *\n * When the returned function is invoked it resolves the value - using `defaultValue` as fallback - and returns it. The value is returned as a promise if `option.usePromise` is `true`.\n *\n * Example:\n * ```js\n * const fixture = {\n *   getHyperCubeData(path, page) {\n *     return [ ... ];\n *   }\n * }\n * const app = {\n *   getHyperCubeData: getPropFn(fixture.getHyperCubeData, { defaultValue: [], usePromise: true })\n * };\n * ```\n * @type function\n * @ignore\n * @param {any} prop Fixture property. Either a fixed value (string / object / boolean / ...) or a function invoked when the value is needed.\n * @param {object} options Options.\n * @param {any} options.defaultValue Default value in case not value is defined in fixture.\n * @param {boolean} options.async When `true` the returns value is wrapped in a promise, otherwise the value is directly returned.\n * @param {number} options.number Delay before value is returned.\n * @returns {function} A fixture property function\n */\nexport const getPropFn =\n  (prop, { defaultValue, async = true, delay = 0 } = {}) =>\n  (...args) => {\n    const value = getPropValue(prop, { defaultValue, args });\n    return async\n      ? new Promise((resolve) => {\n          setTimeout(() => resolve(value), delay);\n        })\n      : value;\n  };\n","import { getPropValue, getPropFn } from '../prop';\n\n/**\n * Properties on `getObject()` operating synchronously.\n * @ignore\n * @type Array\n */\nconst PROPS_SYNC = [\n  'addListener',\n  'emit',\n  'listeners',\n  'on',\n  'once',\n  'removeAllListeners',\n  'removeListener',\n  'setMaxListerners',\n];\n\n/**\n * Is property operating asynchrously.\n * @param {string} name Property name.\n * @ignore\n * @returns `true` if property is operating asynchrously, otherwise `false`.\n */\nfunction isPropAsync(name) {\n  return !PROPS_SYNC.includes(name);\n}\n\n/**\n * Get `qId` for visualization.\n * @param {object} genericObject Generic object describing behaviour of mock\n * @ignore\n * @returns The `qId`, undefined if not present\n */\nfunction getQId(genericObject) {\n  const layout = getPropValue(genericObject.getLayout);\n  return layout.qInfo && layout.qInfo.qId;\n}\n\n/**\n * Create a mock of a generic object. Mandatory properties are added, functions returns async values where applicable etc.\n * @param {object} genericObject Generic object describing behaviour of mock\n * @param {EnigmaMockerOptions} options Options.\n * @ignore\n * @returns The mocked object\n */\nfunction createMock(genericObject, options) {\n  let qId = getQId(genericObject);\n  const { delay } = options;\n  const { id, session, ...props } = genericObject;\n\n  if (id && qId && id !== qId) {\n    throw new Error(`Generic object has multiple IDs, qInfo.qId: ${qId}, id: ${id}`);\n  }\n\n  qId = qId || id || `object - ${+Date.now()}`;\n\n  const mock = {\n    id: qId,\n    session: getPropValue(session, { defaultValue: true }),\n    on: () => {},\n    once: () => {},\n    removeListener: () => {},\n    ...Object.entries(props).reduce(\n      (fns, [name, value]) => ({\n        ...fns,\n        [name]: getPropFn(value, { async: isPropAsync(name), delay }),\n      }),\n      {}\n    ),\n    genericType: genericObject.type,\n  };\n  return { [qId]: mock };\n}\n\n/**\n * Create mocked objects from list of generic objects.\n * @param {Array<object>} genericObjects Generic objects describing behaviour of mock\n * @param {EnigmaMockerOptions} options options\n * @ignore\n * @returns Object with mocks where key is `qId` and value is the mocked object.\n */\nfunction createMocks(genericObjects, options) {\n  return genericObjects.reduce(\n    (mocks, genericObject) => ({\n      ...mocks,\n      ...createMock(genericObject, options),\n    }),\n    {}\n  );\n}\n\n/**\n * Validates if mandatory information is available.\n * @param {object} genericObject Generic object to validate\n * @ignore\n * @throws {}\n * <ul>\n *   <li>{Error} If getLayout is missing</li>\n *   <li>{Error} If getLayout.qInfo.qId is missing</li>\n * </ul>\n */\nfunction validate(genericObject) {\n  if (!genericObject.getLayout) {\n    throw new Error('Generic object is missing \"getLayout\"');\n  }\n  const qId = getQId(genericObject);\n  if (!qId) {\n    throw new Error('Generic object is missing \"qId\" for path \"getLayout().qInfo.qId\"');\n  }\n}\n\n/**\n * Creates mock of `getObject(id)` based on an array of generic objects.\n * @param {Array<object>} genericObjects Generic objects.\n * @param {EnigmaMockerOptions} options Options.\n * @ignore\n * @returns Function to retrieve the mocked generic object with the corresponding id.\n */\nfunction GetObjectMock(genericObjects = [], options = {}) {\n  if (!Array.isArray(genericObjects) || genericObjects.length === 0) {\n    return () => {\n      throw new Error('No \"genericObjects\" specified');\n    };\n  }\n\n  genericObjects.forEach(validate);\n  const mocks = createMocks(genericObjects, options);\n\n  return async (id) => Promise.resolve(mocks[id]);\n}\n\nexport default GetObjectMock;\n","function GetAppLayoutMock(options) {\n  return () => Promise.resolve({ id: 'app-layout', qLocaleInfo: options?.appLocaleInfo });\n}\n\nexport default GetAppLayoutMock;\n","import fGO from './from-generic-objects';\n\n/**\n * @interface EnigmaMockerOptions\n * @property {object=} appMethods Object with methods to add to the mocked app.\n * @property {number} delay Simulate delay (in ms) for calls in enigma-mocker.\n * @description Options for Enigma Mocker\n * @experimental\n * @since 3.0.0\n */\n\n/**\n * @entry\n * @namespace\n * @alias EnigmaMocker\n * @description Mocks Engima app functionality for demo and testing purposes.\n */\nconst mocker = /** @lends EnigmaMocker# */ {\n  /**\n   * Mocks Engima app functionality. It accepts one / many generic objects as input argument and returns the mocked Enigma app. Each generic object represents one visualisation and specifies how it behaves. For example, what layout to use the data to present.\n   *\n   * The generic object is represented with a Javascript object with a number of properties. The name of the property correlates to the name in the Enigma model for `app.getObject(id)`. For example, the property `getLayout` in the generic object is used to define `app.getObject(id).getLayout()`. Any property can be added to the fixture (just make sure it exists and behaves as in the Enigma model!).\n   *\n   * The value for each property is either fixed (string / boolean / number / object) or a function. Arguments are forwarded to the function to allow for greater flexibility. For example, this can be used to return different hypercube data when scrolling in the chart.\n   * @type function\n   * @experimental\n   * @since 3.0.0\n   * @param {Array<object>} genericObjects Generic objects controlling behaviour of visualizations.\n   * @param {EnigmaMockerOptions=} options Options\n   * @returns {Promise<qix.Doc>}\n   * @example\n   * const genericObject = {\n   *   getLayout() {\n   *     return {\n   *       qInfo: {\n   *         qId: 'qqj4zx',\n   *         qType: 'sn-grid-chart'\n   *       },\n   *       ...\n   *     }\n   *   },\n   *   getHyperCubeData(path, page) {\n   *     return [ ... ];\n   *   }\n   * };\n   * const app = await EnigmaMocker.fromGenericObjects([genericObject]);\n   */\n  fromGenericObjects(genericObjects, options = {}) {\n    return fGO(genericObjects, options);\n  },\n};\n\nexport default mocker;\n","import SessionMock from './mocks/session-mock';\nimport CreateSessionObjectMock from './mocks/create-session-object-mock';\nimport GetObjectMock from './mocks/get-object-mock';\nimport GetAppLayoutMock from './mocks/get-app-layout-mock';\n\nexport default function fromGenericObjects(genericObjects, options = {}) {\n  const session = new SessionMock();\n  const createSessionObject = new CreateSessionObjectMock(session);\n  const getObject = new GetObjectMock(genericObjects, options);\n  const getAppLayout = new GetAppLayoutMock(options);\n\n  const app = {\n    ...(options.appMethods || {}),\n    id: `app - ${+Date.now()}`,\n    session,\n    createSessionObject,\n    destroySessionObject: async () => {},\n    getObject,\n    getAppLayout,\n    getListObject: async (props) => getObject(props.qInfo?.qId),\n  };\n\n  return Promise.resolve(app);\n}\n","/* eslint no-underscore-dangle: 0 */\nimport 'regenerator-runtime/runtime'; // Polyfill for using async/await\nimport embed from '@nebula.js/nucleus';\nimport { generator, hook } from '@nebula.js/supernova';\nimport theme from '@nebula.js/theme';\nimport locale from '@nebula.js/locale';\nimport conversion from '@nebula.js/conversion';\nimport EnigmaMocker from '@nebula.js/enigma-mocker';\n\n// mashup api\nexport { embed, conversion, EnigmaMocker };\n\n// component api\nexport {\n  useState,\n  useEffect,\n  useMemo,\n  useImperativeHandle,\n  useKeyboard,\n  usePromise,\n  useAction,\n  useRect,\n  useModel,\n  useApp,\n  useGlobal,\n  useElement,\n  useSelections,\n  useTheme,\n  useLayout,\n  useRef,\n  useStaleLayout,\n  useAppLayout,\n  useTranslator,\n  useDeviceType,\n  useNavigation,\n  usePlugins,\n  useConstraints,\n  useInteractionState,\n  useOptions,\n  useEmbed,\n  useRenderState,\n  useEmitter,\n  onTakeSnapshot,\n  onContextMenu,\n  HyperCubeHandler,\n  DataPropertyHandler,\n} from '@nebula.js/supernova';\n\n// component internals\nconst __DO_NOT_USE__ = { generator, hook, theme, locale };\nexport { __DO_NOT_USE__ };\n","//#region node_modules/.pnpm/@qlik+runtime-module-loader@1.4.1/node_modules/@qlik/runtime-module-loader/dist/index.js\nif (!window.__qlikMainPrivateResolvers) window.__qlikMainPrivateResolvers = {};\nif (!window.__qlikMainPrivateResolvers.mainUrlPromise) window.__qlikMainPrivateResolvers.mainUrlPromise = new Promise((resolve) => {\n\tif (window.__qlikMainPrivateResolvers) window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => {\n\t\tresolve(value);\n\t};\n});\nif (!window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise) window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise = new Promise((resolve) => {\n\tif (window.__qlikMainPrivateResolvers) window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig = (value) => {\n\t\tresolve(value);\n\t};\n});\nif (!window.__qlikMainPrivateResolvers.qlikMainPromise) window.__qlikMainPrivateResolvers.qlikMainPromise = (async () => {\n\tif (window.QlikMain) return window.QlikMain;\n\tif (!window.__qlikMainPrivateResolvers?.mainJsUrlAndHostConfigPromise || !window.__qlikMainPrivateResolvers.mainUrlPromise) throw new Error(\"No main url promise found, report this issue\");\n\tconst noHostWarningTimer = setTimeout(() => {\n\t\tconsole.warn(\"Waiting for a host parameter pointing to a Qlik runtime system\");\n\t}, 5e3);\n\tconst { url, hostConfig } = await Promise.race([window.__qlikMainPrivateResolvers.mainJsUrlAndHostConfigPromise, window.__qlikMainPrivateResolvers.mainUrlPromise.then((mainJsUrl) => ({\n\t\turl: mainJsUrl,\n\t\thostConfig: window.__qlikMainPrivateResolvers?.forwardCompatibleHostConfig\n\t}))]);\n\tclearTimeout(noHostWarningTimer);\n\tconst useWindowsCookies = await handleWindowsAuthentication(url, hostConfig);\n\treturn new Promise((resolve) => {\n\t\tif (window.QlikMain) resolve(window.QlikMain);\n\t\telse {\n\t\t\tconst script = window.document.createElement(\"script\");\n\t\t\tif (url) script.src = url;\n\t\t\tif (useWindowsCookies) script.crossOrigin = \"use-credentials\";\n\t\t\tscript.addEventListener(\"error\", () => {\n\t\t\t\tconsole.error(`Qlik runtime system not found: ${url}`);\n\t\t\t});\n\t\t\tscript.addEventListener(\"load\", () => {\n\t\t\t\tif (window.QlikMain) resolve(window.QlikMain);\n\t\t\t});\n\t\t\twindow.document.head.appendChild(script);\n\t\t}\n\t});\n})();\nfunction provideHostConfigForMainJsUrl(hostConfig) {\n\tif (!window.__qlikMainPrivateResolvers) throw new Error(\"No main url resolver found\");\n\tfunction toMainJsUrl(hc) {\n\t\tif (!window.__qlikMainPrivateResolvers) throw new Error(\"No main url resolver found\");\n\t\tlet url = hc?.embedRuntimeUrl || hc?.url || hc?.host;\n\t\tif (!url && hc?.authType === \"noauth\") url = \"https://cdn.qlikcloud.com/qmfe\";\n\t\tif (!url) return;\n\t\tlet locationUrl;\n\t\tif (url.toLowerCase().startsWith(\"https://\") || url.toLowerCase().startsWith(\"http://\")) locationUrl = url;\n\t\telse locationUrl = `https://${url}`;\n\t\twhile (locationUrl.endsWith(\"/\")) locationUrl = locationUrl.slice(0, -1);\n\t\treturn `${locationUrl}/qlik-embed/main.js`;\n\t}\n\tconst potentialMainJsUrl = toMainJsUrl(hostConfig);\n\tif (potentialMainJsUrl && window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig) window.__qlikMainPrivateResolvers.resolveMainJsUrlAndHostConfig({\n\t\turl: potentialMainJsUrl,\n\t\thostConfig\n\t});\n\tif (potentialMainJsUrl && window.__qlikMainPrivateResolvers.resolveMainJsUrl) {\n\t\twindow.__qlikMainPrivateResolvers.forwardCompatibleHostConfig = hostConfig;\n\t\twindow.__qlikMainPrivateResolvers.resolveMainJsUrl(potentialMainJsUrl);\n\t}\n}\nasync function importRuntimeModule(name, hostConfig) {\n\tif (hostConfig?.runtimeModuleMocks?.[name]) return hostConfig.runtimeModuleMocks?.[name];\n\tprovideHostConfigForMainJsUrl(hostConfig);\n\treturn importFromCdn(name);\n}\nasync function importFromCdn(name) {\n\tif (!window.__qlikMainPrivateResolvers?.qlikMainPromise) throw new Error(\"No main url resolver found\");\n\treturn (await window.__qlikMainPrivateResolvers.qlikMainPromise).import(name);\n}\nasync function handleWindowsAuthentication(url, hostConfig) {\n\tif (hostConfig?.authType === \"windowscookie\") {\n\t\tif (hostConfig.getAccessToken) {\n\t\t\tconst token2 = await resolveTokenIfPresent(hostConfig.getAccessToken);\n\t\t\tif (token2) await fetch(url, {\n\t\t\t\tmethod: \"GET\",\n\t\t\t\tmode: \"cors\",\n\t\t\t\tcredentials: \"include\",\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\t\tAuthorization: `Bearer ${token2}`\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn true;\n\t\t}\n\t\tif (hostConfig.loginUri) {\n\t\t\tif (!(await fetch(url, {\n\t\t\t\tmethod: \"GET\",\n\t\t\t\tmode: \"cors\",\n\t\t\t\tcredentials: \"include\",\n\t\t\t\tredirect: \"manual\"\n\t\t\t})).ok) {\n\t\t\t\twindow.location.replace(hostConfig.loginUri);\n\t\t\t\treturn new Promise(() => {});\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}\nasync function resolveTokenIfPresent(getAccessToken) {\n\tif (typeof getAccessToken === \"function\") return getAccessToken();\n\tif (typeof getAccessToken === \"string\") {\n\t\tconst accessTokenFn = lookupGlobalGetAccessTokenFn(getAccessToken);\n\t\tif (typeof accessTokenFn !== \"function\") throw new Error(`getAccessToken function \"${getAccessToken}\" not found on globalThis. Please make sure it is defined.`);\n\t\treturn accessTokenFn();\n\t}\n}\nfunction lookupGlobalGetAccessTokenFn(getAccessToken) {\n\treturn globalThis[getAccessToken];\n}\n\n//#endregion\nexport { importRuntimeModule };","//#region src/auth/auth-types.ts\n/**\n* These properties are always allowed in the host config, even if they are not defined in the HostConfig interface\n* for the specific auth module.\n*/\nconst hostConfigCommonProperties = [\n\t\"authType\",\n\t\"autoRedirect\",\n\t\"authRedirectUserConfirmation\",\n\t\"embedRuntimeUrl\",\n\t\"host\",\n\t\"onAuthFailed\"\n];\nconst authTypesThatCanBeOmitted = [\n\t\"apikey\",\n\t\"oauth2\",\n\t\"cookie\",\n\t\"windowscookie\",\n\t\"reference\",\n\t\"anonymous\",\n\t\"pfx\"\n];\n\n//#endregion\nexport { authTypesThatCanBeOmitted, hostConfigCommonProperties };","import { a as sortKeys, i as isNode, r as isBrowser, t as cleanFalsyValues } from \"./utils-COWNd3uN.js\";\nimport { authTypesThatCanBeOmitted, hostConfigCommonProperties } from \"../auth-types.js\";\n\n//#region src/platform/platform-functions.ts\nconst getPlatform = async (options = {}) => {\n\tconst hc = resolveHostConfig(options.hostConfig);\n\tif (hc.authType === \"mock-backend-rest-recorder\") return hc.recordGetPlatform();\n\tif (hc?.authType === \"mock-backend\") return hc.mockGetPlatform();\n\tif (hc?.authType === \"noauth\") return result({ isUnknown: true });\n\tlet productInfo = isBrowser() ? window.QlikMain?.PRODUCT_INFO : void 0;\n\tif (!productInfo) {\n\t\tconst { data, status } = await getProductInfo(options);\n\t\tproductInfo = data;\n\t\tif (status === 404) return result({ isUnknown: true });\n\t\tif (!productInfo || status <= 399 && status >= 300) return result({\n\t\t\tisQSE: true,\n\t\t\tisWindows: true\n\t\t});\n\t}\n\tconst deploymentType = (productInfo.composition?.deploymentType || \"\").toLowerCase();\n\tif (deploymentType === \"qliksenseserver\") return result({\n\t\tisQSE: true,\n\t\tisWindows: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n\tif (deploymentType === \"qliksensedesktop\") return result({\n\t\tisQSD: true,\n\t\tisWindows: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n\tif (deploymentType === \"qliksensemobile\") return result({\n\t\tisQSE: true,\n\t\tisWindows: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n\tif (deploymentType === \"cloud-console\") return result({\n\t\tisCloud: true,\n\t\tisCloudConsole: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n\tif (productInfo.composition?.provider === \"fedramp\") return result({\n\t\tisCloud: true,\n\t\tisQCG: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n\treturn result({\n\t\tisCloud: true,\n\t\tisQCS: true,\n\t\tmeta: extractMeta(productInfo)\n\t});\n};\nconst productInfoPromises = {};\n/**\n* Retrieves the full complete url to the product-info file. The full URL\n* is the cache key. Without templating the URL we'd cache `\"\"` as an entry.\n* @private\n*/\nfunction templateUrl(baseUrl) {\n\treturn `${baseUrl}/resources/autogenerated/product-info.json`;\n}\n/**\n* Retrieves the product information as a JSON object.\n* It makes an HTTP GET request to fetch the autogenerated product-info.json file.\n*\n* `data` is `undefined` if the file can not be retrieved.\n*/\nconst getProductInfo = async ({ hostConfig, noCache } = {}) => {\n\tconst completeUrl = templateUrl(toValidLocationUrl(hostConfig));\n\ttry {\n\t\tif (!(completeUrl in productInfoPromises)) {\n\t\t\tconst fetchOptions = {};\n\t\t\tif (globalThis.QlikMain?.resourceNeedsCredentials(completeUrl)) fetchOptions.credentials = \"include\";\n\t\t\tproductInfoPromises[completeUrl] = fetch(completeUrl, fetchOptions).then(async (res) => {\n\t\t\t\tif (res.ok) return {\n\t\t\t\t\tdata: await res.json(),\n\t\t\t\t\tstatus: res.status\n\t\t\t\t};\n\t\t\t\treturn {\n\t\t\t\t\tdata: void 0,\n\t\t\t\t\tstatus: res.status\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t\tconst response = await productInfoPromises[completeUrl];\n\t\tif (response.status >= 400 || !response.data) delete productInfoPromises[completeUrl];\n\t\treturn response;\n\t} catch {\n\t\tdelete productInfoPromises[completeUrl];\n\t\treturn {\n\t\t\tdata: void 0,\n\t\t\tstatus: 500\n\t\t};\n\t} finally {\n\t\tif (noCache) delete productInfoPromises[completeUrl];\n\t}\n};\n/** @internal */\nconst extractMeta = (data) => {\n\tconst urls = data.externalUrls;\n\tif (!urls) return;\n\tconst productName = data.composition?.productName ?? \"Qlik\";\n\tconst releaseLabel = data.composition?.releaseLabel || \"-\";\n\tconst productLabel = releaseLabel === \"-\" ? productName : `${productName} (${releaseLabel})`;\n\treturn {\n\t\tproductId: data.composition?.senseId ?? \"qlik\",\n\t\tproductLabel,\n\t\tversion: data.composition?.version,\n\t\turls: {\n\t\t\tpersonalHelpBaseUrl: urls.personalHelpBaseUrl,\n\t\t\tpersonalUpgradeBase: urls.personalUpgradeBase,\n\t\t\tpersonalUpgradeUrl: urls.personalUpgradeUrl,\n\t\t\tserverHelpBaseUrl: urls.serverHelpBaseUrl,\n\t\t\tqlikWebPageUrl: urls.qlikWebPageUrl\n\t\t}\n\t};\n};\nconst result = (data) => ({\n\tisCloud: false,\n\tisQCS: false,\n\tisQCG: false,\n\tisCloudConsole: false,\n\tisWindows: false,\n\tisQSE: false,\n\tisQSD: false,\n\tisUnknown: false,\n\t...data\n});\n\n//#endregion\n//#region src/utils/random.ts\nconst NANOID_ALPHABET = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-\";\nconst HEX_ALPHABET = \"0123456789abcdef\";\n/**\n* Generates a random string from the given alphabet using crypto.getRandomValues\n* Works in both browser and Node.js environments\n*/\nfunction generateRandomFromAlphabet(alphabet, length) {\n\tconst bytes = new Uint8Array(length);\n\tglobalThis.crypto.getRandomValues(bytes);\n\tlet result = \"\";\n\tfor (let i = 0; i < length; i++) result += alphabet[bytes[i] % alphabet.length];\n\treturn result;\n}\n/**\n* Method helper for generating a random string [a-zA-Z0-9\\-_]{length}\n* @param length - the length of the string\n*/\nfunction generateRandomString(targetLength) {\n\treturn generateRandomFromAlphabet(NANOID_ALPHABET, targetLength);\n}\n/**\n* Method helper for generating a random hexadecimal-string [0-9a-f]{length}\n* @param length - the length of the string\n*/\nfunction generateRandomHexString(targetLength) {\n\treturn generateRandomFromAlphabet(HEX_ALPHABET, targetLength);\n}\n\n//#endregion\n//#region src/auth/internal/host-config-functions.ts\nconst emptyHostConfig = {};\nconst normalizedHostConfigs = /* @__PURE__ */ new Map();\n/**\n* Returns a new host config with all default and falsy values removed.\n* @param hostConfig - The host config to fill with defaults\n* @returns\n*/\nfunction removeDefaults(hostConfig) {\n\tconst cleanedHostConfig = cleanFalsyValues(hostConfig) || {};\n\tif (cleanedHostConfig.host) cleanedHostConfig.host = toValidLocationUrl(cleanedHostConfig);\n\tif (isBrowser()) {\n\t\tif (toValidLocationUrl(cleanedHostConfig) === window.location.origin) delete cleanedHostConfig.host;\n\t}\n\tif (cleanedHostConfig.authType && authTypesThatCanBeOmitted.includes(cleanedHostConfig.authType)) delete cleanedHostConfig.authType;\n\treturn cleanedHostConfig;\n}\nfunction globalReplacer(key, value) {\n\tif (typeof value === \"function\") return;\n\treturn value;\n}\n/**\n* Serializes the provided hostConfig, if present, otherwise the default one.\n*/\nfunction serializeHostConfig$1(hostConfig) {\n\tconst sorted = sortKeys(removeDefaults(resolveHostConfig(hostConfig)));\n\treturn JSON.stringify(sorted, globalReplacer);\n}\nconst registeredHostConfigs = /* @__PURE__ */ new Map();\n/**\n* Registers a host config with the given name.\n* @param name The name of the host config to be used to reference the host config later.\n* @param hostConfig The host config to register.\n*/\nfunction registerHostConfig$1(name, hostConfig) {\n\tconst reference = hostConfig?.reference || null;\n\tif (reference && !registeredHostConfigs.has(reference)) throw new InvalidHostConfigError(`Host config with reference \"${reference}\" is not registered. Please register it before using it.`);\n\tif (registeredHostConfigs.has(name)) console.warn(`registerHostConfig: Host config with name \"${name}\" is already registered. Overwriting.`);\n\tregisteredHostConfigs.set(name, hostConfig);\n}\n/**\n* Unregisters a host config with the given name.\n* @param name The name of the host config to unregister.\n*/\nfunction unregisterHostConfig$1(name) {\n\tif (registeredHostConfigs.has(name)) registeredHostConfigs.delete(name);\n\telse console.warn(`unregisterHostConfig: Host config with name \"${name}\" not found.`);\n}\n/**\n* Gets the host config with the given name.\n* @private\n* @param name The name of the host config to get.\n* @returns The host config, or undefined if not found.\n*/\nfunction getRegisteredHostConfig(name) {\n\treturn registeredHostConfigs.get(name);\n}\n/**\n* Sets the default host config that will be used for all api calls that do not include a HostConfig\n* @private\n* @param hostConfig the default HostConfig to use\n*/\nfunction setDefaultHostConfig$1(hostConfig) {\n\tregisterHostConfig$1(\"default\", hostConfig || {});\n}\n/**\n* Gets the default host config that will be used for all qmfe api calls that do not include a HostConfig.\n* @private\n* @returns The default host config that will be used for all qmfe api calls that do not include a HostConfig\n*/\nfunction getDefaultHostConfig$1() {\n\treturn getRegisteredHostConfig(\"default\") || {};\n}\nfunction normalizeHostConfig$1(hostConfig) {\n\tconst suppliedHostConfigOrEmpty = hostConfig || emptyHostConfig;\n\tconst serializedHostConfigKey = serializeHostConfig$1(suppliedHostConfigOrEmpty);\n\tlet normalizedHostConfig = normalizedHostConfigs.get(serializedHostConfigKey);\n\tif (!normalizedHostConfig) {\n\t\tnormalizedHostConfig = removeDefaults(resolveHostConfig(suppliedHostConfigOrEmpty));\n\t\tnormalizedHostConfigs.set(serializedHostConfigKey, normalizedHostConfig);\n\t}\n\treturn normalizedHostConfig;\n}\n\n//#endregion\n//#region src/auth/internal/page-redirect-request-listeners.ts\n/**\n* A store containing all listener registries for different host configurations.\n*/\nconst listenerRegistries$1 = /* @__PURE__ */ new Map();\n/**\n* Retrieves the listener registry for a given host configuration, creating one if it doesn't exist.\n*/\nfunction getRegistryForHostConfig(hostConfig) {\n\tconst key = serializeHostConfig$1(hostConfig);\n\tlet registry = listenerRegistries$1.get(key);\n\tif (!registry) {\n\t\tregistry = {\n\t\t\tredirectRequestedListeners: /* @__PURE__ */ new Set(),\n\t\t\tredirectStartedListeners: /* @__PURE__ */ new Set()\n\t\t};\n\t\tlistenerRegistries$1.set(key, registry);\n\t}\n\treturn registry;\n}\n/**\n* Registers a listener for page redirects requested by auth modules.\n* @param hostConfig\n* @param listener\n* @returns\n*/\nfunction onPageRedirectRequested$1(hostConfig, listener) {\n\tconst registry = getRegistryForHostConfig(hostConfig);\n\tregistry.redirectRequestedListeners.add(listener);\n\treturn () => {\n\t\tregistry.redirectRequestedListeners.delete(listener);\n\t};\n}\nfunction onPageRedirectStarted$1(hostConfig, listener) {\n\tconst registry = getRegistryForHostConfig(hostConfig);\n\tregistry.redirectStartedListeners.add(listener);\n\treturn () => {\n\t\tregistry.redirectStartedListeners.delete(listener);\n\t};\n}\nfunction requestRedirect(hostConfig) {\n\tconst registry = getRegistryForHostConfig(hostConfig);\n\tconst hasRedirectListener = registry.redirectRequestedListeners.size > 0 || hostConfig.authRedirectUserConfirmation;\n\tif (hostConfig.autoRedirect || !hasRedirectListener) return Promise.resolve();\n\tif (typeof hostConfig.authRedirectUserConfirmation === \"function\") return hostConfig.authRedirectUserConfirmation().catch(() => {});\n\treturn new Promise((resolve) => {\n\t\tconst proceed = () => {\n\t\t\tfor (const startedListener of registry.redirectStartedListeners) try {\n\t\t\t\tstartedListener();\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn(error);\n\t\t\t}\n\t\t\tresolve();\n\t\t};\n\t\tfor (const requestListener of registry.redirectRequestedListeners) try {\n\t\t\trequestListener({ proceed });\n\t\t} catch (error) {\n\t\t\tconsole.warn(error);\n\t\t}\n\t});\n}\n\n//#endregion\n//#region src/utils/expose-internal-test-apis.ts\nfunction exposeInternalApiOnWindow(name, fn) {\n\tconst hostname = globalThis.location?.hostname?.toLowerCase();\n\tconst isLocalhost = hostname === \"localhost\";\n\tconst isQlikStageDomain = hostname?.endsWith(\".qlik-stage.com\");\n\tif (isLocalhost || isQlikStageDomain) {\n\t\tif (globalThis.QlikMain) {\n\t\t\tif (globalThis.QlikMain.INTERNAL__DO_NOT_USE.qix === void 0) globalThis.QlikMain.INTERNAL__DO_NOT_USE.qix = {};\n\t\t\tglobalThis.QlikMain.INTERNAL__DO_NOT_USE.qix[name] = fn;\n\t\t}\n\t}\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/oauth/storage-helpers.ts\nconst storagePrefix = \"qlik-qmfe-api\";\nfunction getTopicFromOauthHostConfig(hostConfig) {\n\tlet topic = hostConfig.clientId + (hostConfig.scope ? `_${hostConfig.scope}` : \"_user_default\");\n\tif (hostConfig.subject) topic += `_${hostConfig.subject}`;\n\tif (hostConfig.userId) topic += `_${hostConfig.userId}`;\n\treturn topic;\n}\nfunction getTopicFromAnonHostConfig(hostConfig) {\n\treturn `${hostConfig.accessCode}_${hostConfig.clientId}`;\n}\n/**\n* A map from oauth client id to promise of an access token\n*/\nconst cachedTokens = {};\n/**\n* Used for testing.\n*/\nfunction clearAllCachedTokens() {\n\tfor (const key in cachedTokens) delete cachedTokens[key];\n}\nexposeInternalApiOnWindow(\"clearAllAccessTokens\", () => {\n\tconsole.log(\"Clearing tokens\", cachedTokens);\n\tObject.keys(cachedTokens).forEach((key) => {\n\t\tconsole.log(\"Clearing access tokens for\", key);\n\t\tdeleteFromLocalStorage(key, [\"access-token\", \"refresh-token\"]);\n\t\tdeleteFromSessionStorage(key, [\"access-token\", \"refresh-token\"]);\n\t});\n\tclearAllCachedTokens();\n});\nfunction saveInLocalStorage(topic, name, value) {\n\tlocalStorage.setItem(`${storagePrefix}-${topic}-${name}`, value);\n}\nfunction saveInSessionStorage(topic, name, value) {\n\tsessionStorage.setItem(`${storagePrefix}-${topic}-${name}`, value);\n}\nfunction saveInCustomSecretStorage(storage, topic, name, value) {\n\treturn storage.store(`${storagePrefix}-${topic}-${name}`, value);\n}\nfunction loadFromLocalStorage(topic, name) {\n\treturn localStorage.getItem(`${\"qlik-qmfe-api\"}-${topic}-${name}`) || void 0;\n}\nfunction loadFromSessionStorage(topic, name) {\n\treturn sessionStorage.getItem(`${\"qlik-qmfe-api\"}-${topic}-${name}`) || void 0;\n}\nfunction loadFromCustomSecretStorage(storage, topic, name) {\n\treturn storage.get(`${storagePrefix}-${topic}-${name}`);\n}\nfunction deleteFromLocalStorage(topic, names) {\n\tnames.forEach((name) => localStorage.removeItem(`${storagePrefix}-${topic}-${name}`));\n}\nfunction deleteFromSessionStorage(topic, names) {\n\tnames.forEach((name) => sessionStorage.removeItem(`${storagePrefix}-${topic}-${name}`));\n}\nfunction deleteFromCustomSecretStorage(storage, topic, names) {\n\treturn Promise.all(names.map((name) => storage.delete(`${storagePrefix}-${topic}-${name}`)));\n}\nfunction loadAndDeleteFromSessionStorage(topic, name) {\n\tconst id = `${storagePrefix}-${topic}-${name}`;\n\tconst result = sessionStorage.getItem(id) || void 0;\n\tsessionStorage.removeItem(id);\n\treturn result;\n}\n/**\n* Returns true if the provided storage object implements the SecretStorage interface, false otherwise.\n*/\nfunction isCustomSecretStorage(storage) {\n\treturn typeof storage === \"object\" && storage !== null && typeof storage.store === \"function\" && typeof storage.get === \"function\" && typeof storage.delete === \"function\";\n}\nasync function loadOauthTokensFromStorage(topic, accessTokenStorage) {\n\tlet accessToken;\n\tlet refreshToken;\n\tif (accessTokenStorage === \"local\") {\n\t\taccessToken = loadFromLocalStorage(topic, \"access-token\");\n\t\trefreshToken = loadFromLocalStorage(topic, \"refresh-token\");\n\t} else if (accessTokenStorage === \"session\") {\n\t\taccessToken = loadFromSessionStorage(topic, \"access-token\");\n\t\trefreshToken = loadFromSessionStorage(topic, \"refresh-token\");\n\t} else if (isCustomSecretStorage(accessTokenStorage)) {\n\t\taccessToken = await loadFromCustomSecretStorage(accessTokenStorage, topic, \"access-token\");\n\t\trefreshToken = await loadFromCustomSecretStorage(accessTokenStorage, topic, \"refresh-token\");\n\t}\n\tif (accessToken) return {\n\t\taccessToken,\n\t\trefreshToken\n\t};\n}\nasync function loadCachedOauthTokens(hostConfig) {\n\treturn cachedTokens[getTopicFromOauthHostConfig(hostConfig)];\n}\nasync function loadOrAcquireAccessTokenOauth(hostConfig, acquireTokens) {\n\tif (!hostConfig.clientId) throw new InvalidHostConfigError(\"A host config with authType set to \\\"oauth2\\\" has to also provide a clientId\");\n\treturn loadOrAcquireAccessToken(getTopicFromOauthHostConfig(hostConfig), acquireTokens, hostConfig.noCache, hostConfig.accessTokenStorage);\n}\nasync function loadOrAcquireAccessTokenAnon(hostConfig, acquireTokens) {\n\tif (!hostConfig.accessCode) throw new InvalidHostConfigError(\"A host config with authType set to \\\"anonymous\\\" has to also provide an accessCode\");\n\treturn loadOrAcquireAccessToken(getTopicFromAnonHostConfig(hostConfig), acquireTokens, false, void 0);\n}\nasync function loadOrAcquireAccessToken(topic, acquireTokens, noCache, accessTokenStorage) {\n\tif (noCache) return acquireTokens();\n\tcachedTokens[topic] = cachedTokens[topic] || (async () => {\n\t\tlet tokens = await loadOauthTokensFromStorage(topic, accessTokenStorage);\n\t\tif (tokens) return tokens;\n\t\ttokens = await acquireTokens();\n\t\tif (accessTokenStorage === \"local\" && tokens) {\n\t\t\tif (tokens.accessToken) saveInLocalStorage(topic, \"access-token\", tokens.accessToken);\n\t\t\tif (tokens.refreshToken) saveInLocalStorage(topic, \"refresh-token\", tokens.refreshToken);\n\t\t} else if (accessTokenStorage === \"session\" && tokens) {\n\t\t\tif (tokens.accessToken) saveInSessionStorage(topic, \"access-token\", tokens.accessToken);\n\t\t\tif (tokens.refreshToken) saveInSessionStorage(topic, \"refresh-token\", tokens.refreshToken);\n\t\t} else if (isCustomSecretStorage(accessTokenStorage) && tokens) {\n\t\t\tif (tokens.accessToken) await saveInCustomSecretStorage(accessTokenStorage, topic, \"access-token\", tokens.accessToken);\n\t\t\tif (tokens.refreshToken) await saveInCustomSecretStorage(accessTokenStorage, topic, \"refresh-token\", tokens.refreshToken);\n\t\t}\n\t\treturn tokens;\n\t})();\n\treturn cachedTokens[topic];\n}\nfunction clearStoredOauthTokens(hostConfig) {\n\tconst topic = getTopicFromOauthHostConfig(hostConfig);\n\tdelete cachedTokens[topic];\n\tif (isBrowser()) {\n\t\tdeleteFromLocalStorage(topic, [\"access-token\", \"refresh-token\"]);\n\t\tdeleteFromSessionStorage(topic, [\"access-token\", \"refresh-token\"]);\n\t}\n\tif (isCustomSecretStorage(hostConfig.accessTokenStorage)) deleteFromCustomSecretStorage(hostConfig.accessTokenStorage, topic, [\"access-token\", \"refresh-token\"]);\n}\nfunction clearStoredAnonymousTokens(hostConfig) {\n\tconst topic = getTopicFromAnonHostConfig(hostConfig);\n\tdelete cachedTokens[topic];\n\tif (isBrowser()) {\n\t\tdeleteFromLocalStorage(topic, [\"access-token\", \"refresh-token\"]);\n\t\tdeleteFromSessionStorage(topic, [\"access-token\", \"refresh-token\"]);\n\t}\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/oauth/oauth-utils.ts\nfunction toPerformInteractiveLoginFunction(performInteractiveLogin) {\n\tif (typeof performInteractiveLogin === \"string\") {\n\t\tconst fn = lookupInteractiveLoginFn(performInteractiveLogin);\n\t\tif (!fn) throw new Error(`No such function: ${performInteractiveLogin}`);\n\t\treturn fn;\n\t}\n\treturn performInteractiveLogin;\n}\nfunction lookupGetAccessFn(getAccessToken) {\n\treturn globalThis[getAccessToken];\n}\nfunction lookupInteractiveLoginFn(name) {\n\treturn globalThis[name];\n}\nfunction handlePossibleErrors(data) {\n\tif (data.errors) throw new AuthorizationError(data.errors);\n}\nfunction toQueryString(queryParams) {\n\tconst queryParamsKeys = Object.keys(queryParams);\n\tqueryParamsKeys.sort();\n\treturn queryParamsKeys.map((k) => `${k}=${queryParams[k]}`).join(\"&\");\n}\nfunction byteArrayToBase64(hashArray) {\n\tlet result;\n\tif (isBrowser()) {\n\t\tconst byteArrayToString = String.fromCharCode.apply(null, hashArray);\n\t\tresult = btoa(byteArrayToString);\n\t} else if (isNode()) result = Buffer.from(hashArray).toString(\"base64\");\n\telse throw new Error(\"Environment not supported for oauth2 authentication\");\n\treturn result;\n}\n/**\n* @param message string to hash\n* @returns sha-256 hashed string\n*/\nasync function sha256(message) {\n\tconst msgBuffer = new TextEncoder().encode(message);\n\tconst hashBuffer = await globalThis.crypto.subtle.digest(\"SHA-256\", msgBuffer);\n\treturn byteArrayToBase64(Array.from(new Uint8Array(hashBuffer))).replaceAll(/\\+/g, \"-\").replaceAll(/\\//g, \"_\").replace(/=+$/, \"\");\n}\nasync function createInteractiveLoginUrl(hostConfig, redirectUri, state, verifier) {\n\tconst clientId = hostConfig.clientId || \"\";\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\tconst codeChallenge = await sha256(verifier);\n\treturn `${locationUrl}/oauth/authorize?${toQueryString({\n\t\tresponse_type: \"code\",\n\t\tclient_id: clientId,\n\t\tredirect_uri: redirectUri,\n\t\tscope: hostConfig.scope || \"user_default\",\n\t\tstate,\n\t\tcode_challenge: codeChallenge,\n\t\tcode_challenge_method: \"S256\"\n\t})}`;\n}\nasync function startFullPageLoginFlow(hostConfig) {\n\tconst clientId = hostConfig.clientId || \"\";\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\tconst verifier = generateRandomString(128);\n\tconst state = generateRandomString(43);\n\tconst codeChallenge = await sha256(verifier);\n\tconst redirectUri = hostConfig.redirectUri || globalThis.location.href;\n\tconst topic = getTopicFromOauthHostConfig(hostConfig);\n\tclearStoredOauthTokens(hostConfig);\n\tsaveInSessionStorage(topic, \"state\", state);\n\tsaveInSessionStorage(topic, \"verifier\", verifier);\n\tsaveInSessionStorage(topic, \"href\", globalThis.location.href);\n\tsaveInSessionStorage(\"\", \"client-in-progress\", topic);\n\tconst url = `${locationUrl}/oauth/authorize?${toQueryString({\n\t\tresponse_type: \"code\",\n\t\tclient_id: clientId,\n\t\tredirect_uri: redirectUri,\n\t\tscope: hostConfig.scope || \"user_default\",\n\t\tstate,\n\t\tcode_challenge: codeChallenge,\n\t\tcode_challenge_method: \"S256\"\n\t})}`;\n\tglobalThis.location.replace(url);\n}\nasync function exchangeCodeAndVerifierForAccessTokenData(hostConfig, code, verifier, redirectUri) {\n\ttry {\n\t\tconst data = await (await fetch(`${toValidLocationUrl(hostConfig)}/oauth/token`, {\n\t\t\tmethod: \"POST\",\n\t\t\tcredentials: \"include\",\n\t\t\tmode: \"cors\",\n\t\t\theaders: { \"content-type\": \"application/json\" },\n\t\t\tredirect: \"follow\",\n\t\t\tbody: JSON.stringify({\n\t\t\t\tgrant_type: \"authorization_code\",\n\t\t\t\tscope: hostConfig.scope || \"user_default\",\n\t\t\t\t...code ? { code } : {},\n\t\t\t\tredirect_uri: redirectUri || globalThis.location.href,\n\t\t\t\t...verifier ? { code_verifier: verifier } : {},\n\t\t\t\tclient_id: hostConfig.clientId\n\t\t\t})\n\t\t})).json();\n\t\thandlePossibleErrors(data);\n\t\treturn {\n\t\t\taccessToken: data.access_token,\n\t\t\trefreshToken: data.refresh_token,\n\t\t\terrors: data.errors\n\t\t};\n\t} catch (err) {\n\t\tconsole.error(err);\n\t\treturn new Promise(() => {});\n\t}\n}\nfunction createBodyWithCredentialsEtc(clientId, clientSecret, scope, subject, userId) {\n\tconst commonProps = {\n\t\tclient_id: clientId,\n\t\tclient_secret: clientSecret,\n\t\tscope\n\t};\n\tif (subject) return {\n\t\t...commonProps,\n\t\tgrant_type: \"urn:qlik:oauth:user-impersonation\",\n\t\tuser_lookup: {\n\t\t\tfield: \"subject\",\n\t\t\tvalue: subject\n\t\t}\n\t};\n\tif (userId) return {\n\t\t...commonProps,\n\t\tgrant_type: \"urn:qlik:oauth:user-impersonation\",\n\t\tuser_lookup: {\n\t\t\tfield: \"userId\",\n\t\t\tvalue: userId\n\t\t}\n\t};\n\treturn {\n\t\t...commonProps,\n\t\tgrant_type: \"client_credentials\"\n\t};\n}\nasync function getOauthTokensWithCredentials(baseUrl, clientId, clientSecret, scope = \"user_default\", subject, userId) {\n\tconst data = await (await fetch(`${baseUrl}/oauth/token`, {\n\t\tmethod: \"POST\",\n\t\tmode: \"cors\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify(createBodyWithCredentialsEtc(clientId, clientSecret, scope, subject, userId))\n\t})).json();\n\treturn {\n\t\taccessToken: data.access_token,\n\t\trefreshToken: data.refresh_token,\n\t\terrors: data.errors\n\t};\n}\nasync function getOauthTokensWithRefreshToken(baseUrl, refreshToken, clientSecret) {\n\tconst data = await (await fetch(`${baseUrl}/oauth/token`, {\n\t\tmethod: \"POST\",\n\t\tmode: \"cors\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify({\n\t\t\tgrant_type: \"refresh_token\",\n\t\t\trefresh_token: refreshToken,\n\t\t\tclient_secret: clientSecret\n\t\t})\n\t})).json();\n\treturn {\n\t\taccessToken: data.access_token,\n\t\trefreshToken: data.refresh_token,\n\t\terrors: data.errors\n\t};\n}\nasync function getAnonymousOauthAccessToken(baseUrl, accessCode, clientId, trackingCode) {\n\tconst data = await (await fetch(`${baseUrl}/oauth/token/anonymous-embed`, {\n\t\tmethod: \"POST\",\n\t\tmode: \"cors\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tbody: JSON.stringify({\n\t\t\teac: accessCode,\n\t\t\tclient_id: clientId,\n\t\t\tgrant_type: \"urn:qlik:oauth:anonymous-embed\",\n\t\t\ttracking_code: trackingCode\n\t\t})\n\t})).json();\n\treturn {\n\t\taccessToken: data.access_token,\n\t\trefreshToken: data.refresh_token,\n\t\terrors: data.errors\n\t};\n}\n/**\n* Fetches the access token from storage or memory.\n* This code is intended to run in a node environment\n*/\nasync function getOAuthTokensForNode(hostConfig) {\n\tconst { clientId, clientSecret, performInteractiveLogin } = hostConfig;\n\tif (!clientId || !clientSecret && !performInteractiveLogin) throw new InvalidHostConfigError(\"A host config with authType set to \\\"oauth2\\\" has to provide a clientId and a clientSecret or a performInteractiveLogin function\");\n\treturn await loadOrAcquireAccessTokenOauth(hostConfig, async () => {\n\t\tif (hostConfig.performInteractiveLogin) return getOauthTokensWithInteractiveLogin(hostConfig);\n\t\tif (!hostConfig.clientId || !hostConfig.clientSecret) throw new InvalidHostConfigError(\"A host config with authType set to \\\"oauth2\\\" has to provide a clientId and a clientSecret\");\n\t\treturn getOauthTokensWithCredentials(toValidLocationUrl(hostConfig), hostConfig.clientId, hostConfig.clientSecret, hostConfig.scope, hostConfig.subject, hostConfig.userId);\n\t});\n}\n/**\n* Fetches the access token from storage or memory. If no one is found a code and verifier is expected to be found in the sesion storage\n* This code is intended to run in a browser\n*/\nasync function getOAuthTokensForBrowser(hostConfig) {\n\tconst { clientId } = hostConfig;\n\tif (!clientId) throw new InvalidHostConfigError(\"A host config with authType set to \\\"oauth2\\\" has to also provide a clientId\");\n\tconst oauthTokens = await loadOrAcquireAccessTokenOauth(hostConfig, async () => {\n\t\tif (hostConfig.getAccessToken) try {\n\t\t\treturn {\n\t\t\t\taccessToken: typeof hostConfig.getAccessToken === \"string\" ? await lookupGetAccessFn(hostConfig.getAccessToken)() : await hostConfig.getAccessToken(),\n\t\t\t\trefreshToken: void 0,\n\t\t\t\terrors: void 0\n\t\t\t};\n\t\t} catch {\n\t\t\treturn errorMessageToAuthData(\"Could not fetch access token using custom function\");\n\t\t}\n\t\tif (hostConfig.performInteractiveLogin) return getOauthTokensWithInteractiveLogin(hostConfig);\n\t\tconst topic = getTopicFromOauthHostConfig(hostConfig);\n\t\tconst code = loadAndDeleteFromSessionStorage(topic, \"code\");\n\t\tconst verifier = loadAndDeleteFromSessionStorage(topic, \"verifier\");\n\t\tif (code && verifier) {\n\t\t\tconst tokenResponse = await exchangeCodeAndVerifierForAccessTokenData(hostConfig, code, verifier, hostConfig.redirectUri);\n\t\t\tif (tokenResponse) return tokenResponse;\n\t\t}\n\t});\n\tif (oauthTokens) return oauthTokens;\n\tif (hostConfig.performInteractiveLogin) return new Promise(() => {});\n\tawait requestRedirect(hostConfig);\n\tstartFullPageLoginFlow(hostConfig);\n\treturn new Promise(() => {});\n}\nasync function getOauthTokensWithInteractiveLogin(hostConfig) {\n\tif (!hostConfig.performInteractiveLogin) return errorMessageToAuthData(\"No performInteractiveLogin function in hostConfig\");\n\tlet usedRedirectUri;\n\ttry {\n\t\tconst verifier = generateRandomString(128);\n\t\tconst originalState = generateRandomString(43);\n\t\tconst { code, state } = extractCodeAndState(await toPerformInteractiveLoginFunction(hostConfig.performInteractiveLogin)({ getLoginUrl: async ({ redirectUri }) => {\n\t\t\tusedRedirectUri = redirectUri;\n\t\t\treturn createInteractiveLoginUrl(hostConfig, redirectUri, originalState, verifier);\n\t\t} }));\n\t\tif (!usedRedirectUri) return errorMessageToAuthData(\"No redirect uri provided\");\n\t\tif (originalState !== state) return errorMessageToAuthData(\"State returned by custom interactive login function does not match original\");\n\t\tif (!code) return errorMessageToAuthData(\"No code found in response from custom interactive login function\");\n\t\treturn await exchangeCodeAndVerifierForAccessTokenData(hostConfig, code, verifier, usedRedirectUri);\n\t} catch (error) {\n\t\treturn {\n\t\t\taccessToken: void 0,\n\t\t\trefreshToken: void 0,\n\t\t\terrors: [{\n\t\t\t\tcode: \"\",\n\t\t\t\tstatus: 401,\n\t\t\t\ttitle: \"Could not perform custom interactive login\",\n\t\t\t\tdetail: String(error)\n\t\t\t}]\n\t\t};\n\t}\n}\nlet lastOauthTokensCall = Promise.resolve(\"\");\nasync function getOAuthAccessToken(hostConfig) {\n\tif (isNode()) {\n\t\tconst tokens = await getOAuthTokensForNode(hostConfig);\n\t\tif (tokens) {\n\t\t\thandlePossibleErrors(tokens);\n\t\t\treturn tokens.accessToken || \"\";\n\t\t}\n\t\treturn \"\";\n\t}\n\tif (isBrowser()) lastOauthTokensCall = lastOauthTokensCall.then(async () => {\n\t\tconst tokens = await getOAuthTokensForBrowser(hostConfig);\n\t\tif (tokens) {\n\t\t\thandlePossibleErrors(tokens);\n\t\t\treturn tokens.accessToken || \"\";\n\t\t}\n\t\treturn \"\";\n\t});\n\treturn lastOauthTokensCall;\n}\nasync function refreshAccessToken(hostConfig) {\n\tconst tokens = await loadCachedOauthTokens(hostConfig);\n\tclearStoredOauthTokens(hostConfig);\n\tif (tokens && tokens.refreshToken && hostConfig.clientSecret) {\n\t\tconst refreshedTokens = await loadOrAcquireAccessTokenOauth(hostConfig, async () => {\n\t\t\tif (!tokens || !tokens.refreshToken || !hostConfig.clientSecret) throw new Error(\"Trying to refresh tokens without refreshToken or clientSecret\");\n\t\t\treturn getOauthTokensWithRefreshToken(toValidLocationUrl(hostConfig), tokens.refreshToken, hostConfig.clientSecret);\n\t\t});\n\t\tif (refreshedTokens) handlePossibleErrors(refreshedTokens);\n\t}\n}\nfunction extractCodeAndState(input) {\n\tif (typeof input === \"string\") {\n\t\tlet parsedUrl;\n\t\ttry {\n\t\t\tparsedUrl = new URL(input);\n\t\t} catch {\n\t\t\tparsedUrl = new URL(input, \"http://localhost\");\n\t\t}\n\t\tconst queryParams = new URLSearchParams(parsedUrl.search);\n\t\treturn {\n\t\t\tcode: queryParams.get(\"code\") || \"\",\n\t\t\tstate: queryParams.get(\"state\") || \"\"\n\t\t};\n\t}\n\treturn input;\n}\nfunction errorMessageToAuthData(message) {\n\treturn {\n\t\taccessToken: void 0,\n\t\trefreshToken: void 0,\n\t\terrors: [{\n\t\t\tcode: \"\",\n\t\t\tstatus: 401,\n\t\t\ttitle: message,\n\t\t\tdetail: \"\"\n\t\t}]\n\t};\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/oauth/temporary-token.ts\nasync function exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, purpose) {\n\tconst response = await fetch(`${toValidLocationUrl(hostConfig)}/oauth/token`, {\n\t\tmethod: \"POST\",\n\t\tcredentials: \"include\",\n\t\tmode: \"cors\",\n\t\theaders: { \"content-type\": \"application/json\" },\n\t\tredirect: \"follow\",\n\t\tbody: JSON.stringify({\n\t\t\tsubject_token: accessToken,\n\t\t\tsubject_token_type: \"urn:ietf:params:oauth:token-type:access_token\",\n\t\t\tgrant_type: \"urn:ietf:params:oauth:grant-type:token-exchange\",\n\t\t\tpurpose,\n\t\t\tredirect_uri: globalThis.location?.href,\n\t\t\tclient_id: hostConfig.clientId\n\t\t})\n\t});\n\tif (response.status !== 200) throw await toError(response);\n\treturn (await response.json()).access_token;\n}\nasync function toError(response) {\n\tconst body = await response.text();\n\ttry {\n\t\treturn new AuthorizationError(JSON.parse(body).errors);\n\t} catch {\n\t\treturn new AuthorizationError([{\n\t\t\tcode: \"unknown\",\n\t\t\tstatus: response.status,\n\t\t\tdetail: body,\n\t\t\ttitle: \"Unknown authentication error\"\n\t\t}]);\n\t}\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/anonymous.ts\n/**\n* Retries the passed in function after calling handleAuthenticationError\n*/\nasync function handlePotentialAuthenticationErrorAndRetry$1(hostConfig, fn) {\n\ttry {\n\t\treturn await fn();\n\t} catch (err) {\n\t\tconst { retry } = await handleAuthenticationError$10({\n\t\t\thostConfig,\n\t\t\tcanRetry: true\n\t\t});\n\t\tif (retry) return fn();\n\t\tthrow err;\n\t}\n}\nasync function getOrCreateTrackingCode(hostConfig) {\n\tlet trackingCode;\n\tif (isBrowser()) {\n\t\tconst topic = getTopicFromAnonHostConfig(hostConfig);\n\t\ttrackingCode = loadFromLocalStorage(topic, \"tracking-code\");\n\t\tif (!trackingCode) trackingCode = createTrackingCode();\n\t\tsaveInLocalStorage(topic, \"tracking-code\", trackingCode);\n\t} else trackingCode = createTrackingCode();\n\treturn trackingCode;\n}\nfunction createTrackingCode() {\n\tconst timeStamp = Math.floor(Date.now() / 1e3).toString(16);\n\treturn `${timeStamp}${generateRandomHexString(40 - timeStamp.length)}`;\n}\nasync function getAnonymousAccessToken(hostConfig) {\n\tconst { accessCode, clientId } = hostConfig;\n\tif (!accessCode || !clientId) throw new InvalidHostConfigError(\"A host config with authType set to \\\"anonymous\\\" has to provide both an accessCode and clientId\");\n\tconst tokens = await loadOrAcquireAccessTokenAnon(hostConfig, async () => {\n\t\treturn getAnonymousOauthAccessToken(toValidLocationUrl(hostConfig), accessCode, clientId, await getOrCreateTrackingCode(hostConfig));\n\t});\n\tif (!tokens) return \"\";\n\tif (tokens.errors) throw new AuthorizationError(tokens.errors);\n\tif (tokens.accessToken) return tokens.accessToken;\n\treturn \"\";\n}\nasync function getRestCallAuthParams$10({ hostConfig }) {\n\treturn {\n\t\theaders: { Authorization: `Bearer ${await getAnonymousAccessToken(hostConfig)}` },\n\t\tqueryParams: {},\n\t\tcredentials: \"omit\"\n\t};\n}\nasync function getWebSocketAuthParams$10({ hostConfig }) {\n\tif (isNode()) return { headers: { Authorization: `Bearer ${await getAnonymousAccessToken(hostConfig)}` } };\n\treturn { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry$1(hostConfig, async () => {\n\t\treturn exchangeAccessTokenForTemporaryToken(hostConfig, await getAnonymousAccessToken(hostConfig), \"websocket\");\n\t}) } };\n}\nasync function getWebResourceAuthParams$2({ hostConfig }) {\n\treturn { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry$1(hostConfig, async () => {\n\t\treturn exchangeAccessTokenForTemporaryToken(hostConfig, await getAnonymousAccessToken(hostConfig), \"websocket\");\n\t}) } };\n}\nasync function handleAuthenticationError$10({ hostConfig }) {\n\tclearStoredAnonymousTokens(hostConfig);\n\treturn {\n\t\tpreventDefault: false,\n\t\tretry: true\n\t};\n}\nvar anonymous_default = {\n\trequiredProps: [\"clientId\", \"accessCode\"],\n\toptionalProps: [],\n\tgetRestCallAuthParams: getRestCallAuthParams$10,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$10,\n\tgetWebResourceAuthParams: getWebResourceAuthParams$2,\n\thandleAuthenticationError: handleAuthenticationError$10\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/apikey.ts\nfunction getRestCallAuthParams$9({ hostConfig }) {\n\treturn Promise.resolve({\n\t\theaders: { Authorization: `Bearer ${hostConfig?.apiKey}` },\n\t\tqueryParams: {},\n\t\tcredentials: \"omit\"\n\t});\n}\nasync function getWebSocketAuthParams$9({ hostConfig }) {\n\tif (isBrowser()) throw new Error(\"Not supported in browser environment\");\n\treturn Promise.resolve({ headers: { Authorization: `Bearer ${hostConfig?.apiKey}` } });\n}\nfunction handleAuthenticationError$9() {\n\treturn Promise.resolve({});\n}\nvar apikey_default = {\n\trequiredProps: [\"apiKey\"],\n\toptionalProps: [],\n\tgetRestCallAuthParams: getRestCallAuthParams$9,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$9,\n\thandleAuthenticationError: handleAuthenticationError$9\n};\n\n//#endregion\n//#region src/invoke-fetch/invoke-fetch-errors.ts\n/**\n* Error thrown by the invokeFetch function\n*/\nvar InvokeFetchError = class extends Error {\n\tstatus;\n\theaders;\n\tdata;\n\tconstructor(errorMessage, status, headers, data) {\n\t\tsuper(errorMessage);\n\t\tthis.status = status;\n\t\tthis.headers = headers;\n\t\tthis.data = data;\n\t\tthis.stack = cleanStack(this.stack);\n\t}\n};\n/**\n* Error thrown if a request-body cannot be encoded.\n*/\nvar EncodingError = class extends Error {\n\tcontentType;\n\tdata;\n\tconstructor(errorMessage, contentType, data) {\n\t\tsuper(errorMessage);\n\t\tthis.contentType = contentType;\n\t\tthis.data = data;\n\t\tthis.stack = cleanStack(this.stack);\n\t}\n};\nconst regex = /^.+\\/qmfe-api(?:\\.js)?:(\\d+)(?::\\d+)?$/gim;\nconst isFromQmfeApi = (line) => {\n\tconst matches = line.match(regex);\n\treturn Boolean(matches && matches.length > 0);\n};\n/**\n* Function that removes stack entries that are from the qmfe-api module\n*/\nfunction cleanStack(stack) {\n\tif (!stack) return stack;\n\tconst newStack = [];\n\tconst lines = stack.split(\"\\n\");\n\tlines.reverse();\n\tfor (const line of lines) {\n\t\tif (isFromQmfeApi(line)) break;\n\t\tnewStack.unshift(line);\n\t}\n\treturn newStack.join(\"\\n\");\n}\n\n//#endregion\n//#region src/invoke-fetch/internal/invoke-fetch-helpers.ts\n/**\n* Appends the specified query parameters (encoded) to the provided url.\n* @private\n*/\nfunction appendQueryToUrl(url, queryParams) {\n\tconst queryString = encodeQueryParams(queryParams);\n\tlet firstQueryDelim;\n\tif (url.indexOf(\"?\") === -1) firstQueryDelim = \"?\";\n\telse firstQueryDelim = \"&\";\n\treturn `${url}${firstQueryDelim}${queryString}`;\n}\n/**\n* Encode the query map into a query string\n* @private\n*/\nfunction encodeQueryParams(query) {\n\tif (!query) return \"\";\n\treturn Object.entries(query).map((kv) => {\n\t\tconst [, value] = kv;\n\t\tif (value === void 0) return;\n\t\treturn kv.map((val) => encodeURIComponent(decodeURIComponent(val))).join(\"=\");\n\t}).filter(Boolean).join(\"&\");\n}\n/**\n* Replaces the variable placeholders in the path template with the variable values\n* @param pathTemplate\n* @param pathVariables\n* @private\n*/\nfunction applyPathVariables(pathTemplate, pathVariables) {\n\tlet result = pathTemplate;\n\tif (pathVariables) Object.keys(pathVariables).forEach((key) => {\n\t\tresult = result.replace(`{${key}}`, pathVariables[key]);\n\t});\n\treturn result;\n}\n/**\n* Join url and query to a complete url\n* @private\n*/\nfunction toCompleteUrl(url, query) {\n\tif (query !== \"\") return `${url}?${query}`;\n\treturn url;\n}\n/**\n* Returns true if the status code is 301 or 302 or for ..../qps/csrftoken with 403 which really should be 401 on windows but isn't for historical reasons\n*/\nfunction means401OnWindows(completeUrl, statusCode) {\n\tconst url = new URL(completeUrl, \"http://dummy\");\n\tconst isQpsCsrfTokenUrl = url.pathname.endsWith(\"/qps/csrftoken\") && url.searchParams.has(\"xrfkey\");\n\treturn statusCode === 301 || statusCode === 302 || isQpsCsrfTokenUrl && statusCode === 403;\n}\n\n//#endregion\n//#region src/invoke-fetch/internal/invoke-xhr.ts\nasync function invokeXHR(completeUrl, { method, headers, credentials, keepalive, body, signal, progress }) {\n\tconst xhr = new XMLHttpRequest();\n\tlet resolve;\n\tlet reject;\n\tconst promise = new Promise((res, rej) => {\n\t\tresolve = res;\n\t\treject = rej;\n\t});\n\txhr.open(method || \"GET\", completeUrl);\n\tif (typeof headers === \"object\") for (const [key, value] of Object.entries(headers)) xhr.setRequestHeader(key, value);\n\telse throw Error(\"malformed headers\", headers);\n\tif (keepalive) xhr.setRequestHeader(\"Connection\", \"keep-alive\");\n\tif (signal) signal.addEventListener(\"abort\", () => {\n\t\txhr.abort();\n\t\treject();\n\t});\n\tif (credentials === \"include\") xhr.withCredentials = true;\n\telse xhr.withCredentials = false;\n\tif (progress?.onUpload) xhr.upload.onprogress = (event) => {\n\t\tconst { loaded, total, lengthComputable } = event;\n\t\tprogress.onUpload?.({\n\t\t\tloaded,\n\t\t\ttotal: lengthComputable ? total : void 0\n\t\t});\n\t};\n\tif (progress?.onDownload) xhr.onprogress = (event) => {\n\t\tconst { loaded, total, lengthComputable } = event;\n\t\tprogress.onDownload?.({\n\t\t\tloaded,\n\t\t\ttotal: lengthComputable ? total : void 0\n\t\t});\n\t};\n\txhr.onloadend = () => {\n\t\tconst { status } = xhr;\n\t\tconst responseHeaders = {};\n\t\tfor (const line of xhr.getAllResponseHeaders().split(\"\\r\\n\")) {\n\t\t\tconst [key, value] = line.split(\":\", 2);\n\t\t\tif (key && value) responseHeaders[key] = value;\n\t\t}\n\t\tif (xhr.response) resolve(new Response(xhr.response, {\n\t\t\tstatus,\n\t\t\theaders: responseHeaders\n\t\t}));\n\t\telse resolve(new Response(void 0, {\n\t\t\tstatus,\n\t\t\theaders: responseHeaders\n\t\t}));\n\t};\n\ttry {\n\t\tconst bod = body;\n\t\txhr.send(bod);\n\t} catch (e) {\n\t\treturn Promise.reject(new InvokeFetchError(getErrorMessage(e), 0, new Headers(), {}));\n\t}\n\treturn promise;\n}\n\n//#endregion\n//#region src/invoke-fetch/internal/response-cache.ts\nconst responseCaches = {};\nglobalThis.__API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED = responseCaches;\nif (globalThis.QlikMain?.INTERNAL__DO_NOT_USE) globalThis.QlikMain.INTERNAL__DO_NOT_USE.apiCache = responseCaches;\nlet defaultCacheTime = 1e3 * 60 * 10;\n/**\n* The global namespace is used as a fallback if an entry is not found in a specific cache.\n* This cache can be used internally, specifically by BFF interceptors,\n* where we cannot reliably map a response to an API-module.\n*/\nconst globalCacheNamespace = \".global\";\n/**\n* Gets a cached response-promise from the specified API-namespace (or global cache).\n* A promise is returned if options.noCache is not true, the promise exists and is not too\n* old (based on defaults and cache-options).\n*\n* @param api The cache-namespace of the API.\n* @param props CachingContext\n* @returns The cached response (cloned and ready to use) or undefined.\n*/\nfunction getFromCache(api, props) {\n\tif (isForbiddenApiName(api)) throw new Error(`Forbidden api name: ${api}`);\n\tif (props?.options?.noCache) return;\n\tconst { method, completeUrl, cacheKey } = props;\n\tconst caches = getPossibleCaches(api);\n\tif (isModifyingOperation(method, completeUrl)) return;\n\tlet entry;\n\tfor (const cache of caches) if (cacheKey in cache) {\n\t\tentry = cache[cacheKey];\n\t\tif (entry && typeof entry.value !== \"undefined\" && shouldUseCachedResult(props?.options, entry, defaultCacheTime)) break;\n\t\tentry = void 0;\n\t}\n\tif (!entry) return;\n\tentry.lastHit = /* @__PURE__ */ new Date();\n\tentry.hitCount += 1;\n\tentry.accessedPaths.add(globalThis.location ? globalThis.location.pathname : \"node\");\n\tconst value = entry.value;\n\treturn cloneResultPromise(value);\n}\n/**\n* Updates the cache of 'api' with the response-promise based on the caching-context.\n* If the promise comes from a modifying operation, related cache entries will be removed.\n* The returned promise is either the original promise (if it isn't cached) or a\n* cloned promise that is safe to use.\n*\n* Note: The original response-promise should not be reused directly, use the returned\n* equivalent instead.\n*\n* @private\n* @param api The cache-namespace of the API.\n* @param props CachingContext\n* @param responsePromise Promise<InvokeFetchResponse>, the thing to cache\n* @returns\n*/\nfunction updateCache(api, props, responsePromise) {\n\tif (isForbiddenApiName(api)) throw new Error(`Forbidden api name: ${api}`);\n\tif (!responseCaches[api]) responseCaches[api] = {};\n\tconst { cacheKey } = props;\n\tif (isModifyingOperation(props.method, props.completeUrl)) return responsePromise.then((res) => {\n\t\tconst caches = getPossibleCaches(api);\n\t\tfor (const cache of caches) clearRelatedCacheEntries(cache, cacheKey);\n\t\treturn res;\n\t});\n\tconst cacheNamespace = responseCaches[api];\n\tconst responsePromiseWithCacheClearing = responsePromise.catch((error) => {\n\t\tdelete cacheNamespace[cacheKey];\n\t\treturn Promise.reject(error);\n\t});\n\tcacheNamespace[cacheKey] = {\n\t\tlastPulled: Date.now(),\n\t\tvalue: responsePromiseWithCacheClearing,\n\t\tlastHit: null,\n\t\thitCount: 0,\n\t\taccessedPaths: /* @__PURE__ */ new Set()\n\t};\n\treturn cloneResultPromise(responsePromiseWithCacheClearing);\n}\n/**\n* Returns true if it is ok the to use the cached promise from a previous invocation\n* @private\n*/\nfunction shouldUseCachedResult(options, cacheEntry, defaultMaxCacheTime) {\n\tif (options?.noCache) return false;\n\tif (!cacheEntry || typeof cacheEntry.value === \"undefined\") return false;\n\tif (options?.useCacheIfAfter) return options.useCacheIfAfter.getTime() <= cacheEntry.lastPulled;\n\tconst age = Date.now() - cacheEntry.lastPulled;\n\tif (typeof options?.maxCacheAge === \"number\") return age <= options?.maxCacheAge;\n\treturn age < defaultMaxCacheTime;\n}\n/**\n* Builds a key used for caching based on a CachingContext\n* @private\n* @param cachingContext\n* @returns a key used for caching\n*/\nfunction toCacheKey({ url, query, headers, serializedHostConfig }) {\n\tlet cacheKey = url;\n\tif (query && Object.keys(query).length > 0) {\n\t\tconst queryString = encodeQueryParams(query);\n\t\tif (url.includes(\"?\")) cacheKey = cacheKey.concat(`&${queryString}`);\n\t\telse cacheKey = cacheKey.concat(`?${queryString}`);\n\t}\n\tif (headers && Object.keys(headers).length > 0) cacheKey = cacheKey.concat(`+headers=${JSON.stringify(headers)}`);\n\tif (serializedHostConfig && serializedHostConfig !== \"{}\") cacheKey = cacheKey.concat(`+host-config=${serializedHostConfig}`);\n\treturn cacheKey;\n}\n/**\n* Convenience function for getting a list of caches that are OK to use\n* in the context of an API-namespace.\n* @param api\n* @returns\n*/\nfunction getPossibleCaches(api) {\n\tconst caches = [];\n\tif (responseCaches[api]) caches.push(responseCaches[api]);\n\tif (responseCaches[\".global\"]) caches.push(responseCaches[globalCacheNamespace]);\n\treturn caches;\n}\n/**\n* @private\n* Clears all cache entries where the modifying URL starts with the cached URL\n* @param cache\n* @param cacheKey\n*/\nfunction clearRelatedCacheEntries(cache, cacheKey) {\n\tconst modifyingUrl = cacheKeyToUrl(cacheKey);\n\tfor (const existingCacheKey in cache) {\n\t\tconst cleanUrl = cacheKeyToUrl(existingCacheKey);\n\t\tif (modifyingUrl.startsWith(cleanUrl) || cleanUrl.startsWith(modifyingUrl)) delete cache[existingCacheKey];\n\t}\n}\n/**\n* Removes query, headers and host-config from the cache key to get a clean URL.\n*/\nfunction cacheKeyToUrl(cachedUrl) {\n\tconst queryIdx = cachedUrl.indexOf(\"?\");\n\tif (queryIdx >= 0) return cachedUrl.substring(0, queryIdx);\n\tconst headersIdx = cachedUrl.indexOf(\"+headers=\");\n\tif (headersIdx >= 0) return cachedUrl.substring(0, headersIdx);\n\tconst hostConfigIdx = cachedUrl.indexOf(\"+host-config=\");\n\tif (hostConfigIdx >= 0) return cachedUrl.substring(0, hostConfigIdx);\n\treturn cachedUrl;\n}\n/**\n* Clone mutable-objects using JSON.stringify.\n* Strings, Blobs and ReadableStreams are not cloned.\n* @private\n*/\nfunction clone(value) {\n\tif (typeof value === \"undefined\" || value === null) return value;\n\tif (value && (value instanceof Blob || value instanceof Object && value.toString() === \"[object Blob]\")) return value;\n\tif (value && value instanceof ReadableStream) return value;\n\tif (typeof value === \"string\") return value;\n\treturn JSON.parse(JSON.stringify(value));\n}\n/**\n* Clones the result so that no one can tamper with the cache. Note that the headers object is NOT cloned\n* @private\n*/\nfunction cloneResultPromise(value) {\n\treturn value.then((resp) => {\n\t\tconst result = {\n\t\t\tdata: clone(resp.data),\n\t\t\theaders: resp.headers,\n\t\t\tstatus: resp.status\n\t\t};\n\t\tif (resp.next) result.next = resp.next;\n\t\tif (resp.prev) result.prev = resp.prev;\n\t\treturn result;\n\t});\n}\n/**\n* Clears cached responses\n* @param api the api to clear cache in\n*/\nfunction clearApiCacheInternal(api) {\n\tresponseCaches[api] = {};\n}\n/**\n* Returns true if the method might modify things requiring caches to be cleared\n*/\nfunction isModifyingOperation(method, url) {\n\tif (method === \"get\" || method === \"GET\") return false;\n\tif (url.endsWith(\"/api/v1/licenses/allotments\") && (method === \"post\" || method === \"POST\")) return false;\n\treturn true;\n}\nfunction isForbiddenApiName(api) {\n\treturn api === \"__proto__\";\n}\n\n//#endregion\n//#region src/invoke-fetch/internal/invoke-fetch-methods.ts\nfunction getErrorMessage(error) {\n\tif (error instanceof Error) {\n\t\tif (error.cause) {\n\t\t\tif (error.message) return `${error.message} - ${getErrorMessage(error.cause)}`;\n\t\t\treturn getErrorMessage(error.cause);\n\t\t}\n\t\treturn error.message;\n\t}\n\treturn String(error);\n}\nasync function fetchAndTransformExceptions(input, init) {\n\ttry {\n\t\treturn await fetch(input, init);\n\t} catch (e) {\n\t\treturn Promise.reject(new InvokeFetchError(getErrorMessage(e), 0, new Headers(), {}));\n\t}\n}\nasync function performActualHttpFetch(method, completeUrl, unencodedBody, contentType, options, authHeaders, credentials, userAgent) {\n\tconst { body, contentTypeHeader, requestOptions } = encodeBody(unencodedBody, contentType ?? \"\");\n\tconst headers = {\n\t\t...contentTypeHeader,\n\t\t...authHeaders,\n\t\t...options?.headers,\n\t\t...getServiceOverrideHeaderFromLocalStorage()\n\t};\n\tif (!headers[\"User-Agent\"] && userAgent) headers[\"User-Agent\"] = userAgent;\n\tconst request = {\n\t\tmethod,\n\t\tcredentials,\n\t\tmode: \"cors\",\n\t\theaders,\n\t\tredirect: await isWindows(options?.hostConfig) ? \"manual\" : \"follow\",\n\t\tkeepalive: options?.keepalive,\n\t\tprogress: options?.progress,\n\t\tbody,\n\t\t...requestOptions\n\t};\n\tlet fetchTimeoutId;\n\tif (options?.signal) request.signal = options.signal;\n\telse if (options?.timeoutMs && options.timeoutMs > 0) {\n\t\tconst controller = new AbortController();\n\t\tfetchTimeoutId = setTimeout(() => {\n\t\t\tcontroller.abort();\n\t\t}, options.timeoutMs);\n\t\trequest.signal = controller.signal;\n\t}\n\tlet response;\n\tif (options?.progress) response = await invokeXHR(completeUrl, request);\n\telse response = await fetchAndTransformExceptions(completeUrl, request);\n\tif (fetchTimeoutId) clearTimeout(fetchTimeoutId);\n\treturn await parseFetchResponse(response, completeUrl);\n}\nfunction encodeBody(unencodedBody, contentType) {\n\tif (!unencodedBody) return {\n\t\tbody: null,\n\t\tcontentTypeHeader: {},\n\t\trequestOptions: {}\n\t};\n\tconst contentTypeHeader = {};\n\tconst requestOptions = {};\n\tlet body;\n\tswitch (contentType) {\n\t\tcase \"\":\n\t\tcase \"application/json\":\n\t\t\tcontentTypeHeader[\"Content-Type\"] = \"application/json\";\n\t\t\tbody = JSON.stringify(unencodedBody);\n\t\t\tbreak;\n\t\tcase \"multipart/form-data\":\n\t\t\tbody = encodeMultipartBody(unencodedBody);\n\t\t\tbreak;\n\t\tcase \"application/octet-stream\":\n\t\t\tcontentTypeHeader[\"Content-Type\"] = contentType;\n\t\t\trequestOptions[\"duplex\"] = \"half\";\n\t\t\tbody = unencodedBody;\n\t\t\tbreak;\n\t\tcase \"text/plain\":\n\t\t\tif (typeof unencodedBody === \"string\") {\n\t\t\t\tcontentTypeHeader[\"Content-Type\"] = contentType;\n\t\t\t\tbody = unencodedBody;\n\t\t\t} else throw new EncodingError(`Cannot send ${typeof unencodedBody} as ${contentType}, body should be a string.`, contentType, unencodedBody);\n\t\t\tbreak;\n\t\tdefault: throw new EncodingError(`Unsupported content-type \"${contentType}\", supported are: application/json, multipart/form-data, application/octet-stream and text/plain`, contentType, unencodedBody);\n\t}\n\treturn {\n\t\tbody,\n\t\tcontentTypeHeader,\n\t\trequestOptions\n\t};\n}\nfunction encodeMultipartBody(unencodedBody) {\n\tconst contentType = \"multipart/form-data\";\n\tif (typeof unencodedBody !== \"object\") throw new EncodingError(`Cannot encode ${typeof unencodedBody} as ${contentType}, body should be an object.`, contentType, unencodedBody);\n\tif (Array.isArray(unencodedBody)) throw new EncodingError(`Cannot encode ${typeof unencodedBody} as ${contentType}, body should be an object.`, contentType, unencodedBody);\n\tif (unencodedBody instanceof FormData) return unencodedBody;\n\tconst form = new FormData();\n\tObject.entries(unencodedBody).forEach((entry) => {\n\t\tconst [key, value] = entry;\n\t\tswitch (typeof value) {\n\t\t\tcase \"boolean\":\n\t\t\tcase \"number\":\n\t\t\tcase \"string\":\n\t\t\t\tform.set(key, `${value}`);\n\t\t\t\tbreak;\n\t\t\tcase \"object\":\n\t\t\t\tif (value instanceof Blob) form.set(key, value);\n\t\t\t\telse if (value instanceof Uint8Array) {\n\t\t\t\t\tconst data = new Blob([value], { type: \"application/octet-stream\" });\n\t\t\t\t\tform.set(key, data);\n\t\t\t\t} else {\n\t\t\t\t\tconst json = JSON.stringify(value);\n\t\t\t\t\tconst data = new Blob([json], { type: \"application/json\" });\n\t\t\t\t\tform.set(key, data, \"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault: throw new EncodingError(`Cannot encode multipart-field \"${key}\" with value of type ${typeof value}, values must be objects, strings, numbers or boolean.`, contentType, unencodedBody);\n\t\t}\n\t});\n\treturn form;\n}\nasync function getInvokeFetchUrlParams({ method, pathTemplate, pathVariables, query, options }) {\n\tconst locationUrl = toValidLocationUrl(options?.hostConfig);\n\tconst { headers: authHeaders, queryParams: authQueryParams, credentials } = await getRestCallAuthParams({\n\t\thostConfig: options?.hostConfig,\n\t\tmethod\n\t});\n\tconst url = locationUrl + applyPathVariables(pathTemplate, pathVariables);\n\tconst completeUrl = toCompleteUrl(url, encodeQueryParams({\n\t\t...query,\n\t\t...authQueryParams\n\t}));\n\tconst serializedHostConfig = serializeHostConfig(options?.hostConfig);\n\treturn {\n\t\tcompleteUrl,\n\t\tauthHeaders,\n\t\tcredentials,\n\t\tcacheKey: toCacheKey({\n\t\t\turl,\n\t\t\tquery,\n\t\t\theaders: options?.headers,\n\t\t\tserializedHostConfig\n\t\t})\n\t};\n}\nfunction invokeFetchWithUrl(api, props) {\n\treturn invokeFetchWithUrlAndRetry(api, props, async () => {\n\t\tconst { authHeaders, credentials } = await getInvokeFetchUrlParams(props);\n\t\treturn invokeFetchWithUrlAndRetry(api, {\n\t\t\t...props,\n\t\t\tauthHeaders,\n\t\t\tcredentials,\n\t\t\toptions: {\n\t\t\t\t...props.options,\n\t\t\t\tnoCache: true\n\t\t\t}\n\t\t}, void 0);\n\t});\n}\nfunction invokeFetchWithUrlAndRetry(api, props, performRetry) {\n\tconst { method, completeUrl, body, options, authHeaders, credentials, cacheKey, contentType, userAgent } = props;\n\tconst cachingContext = {\n\t\tmethod,\n\t\tcompleteUrl,\n\t\tcacheKey,\n\t\toptions\n\t};\n\tconst cachedResponse = getFromCache(api, cachingContext);\n\tif (cachedResponse) return cachedResponse;\n\tconst resultPromiseFromBackend = performActualHttpFetch(method, completeUrl, body, contentType, options, authHeaders, credentials, userAgent);\n\tconst resultAfterAuthenticationCheck = interceptAuthenticationErrors(options?.hostConfig, completeUrl, resultPromiseFromBackend, performRetry);\n\treturn updateCache(api, cachingContext, addPagingFunctions(api, {\n\t\t...props,\n\t\tvalue: resultAfterAuthenticationCheck\n\t}));\n}\n/**\n* Adds paging functions to the response object if there are paging links present in the response body\n*/\nfunction addPagingFunctions(api, { method, body, options, authHeaders, credentials, value }) {\n\treturn value.then((resp) => {\n\t\tconst dataWithPotentialLinks = resp.data;\n\t\tif (!dataWithPotentialLinks) return resp;\n\t\tconst serializedHostConfig = serializeHostConfig(options?.hostConfig);\n\t\tconst prevUrl = dataWithPotentialLinks.links?.prev?.href;\n\t\tconst nextUrl = dataWithPotentialLinks.links?.next?.href;\n\t\tif (prevUrl) resp.prev = (prevOptions) => invokeFetchWithUrl(api, {\n\t\t\tmethod,\n\t\t\tcompleteUrl: prevUrl,\n\t\t\tbody,\n\t\t\toptions: prevOptions || options,\n\t\t\tauthHeaders,\n\t\t\tcredentials,\n\t\t\tcacheKey: toCacheKey({\n\t\t\t\turl: prevUrl,\n\t\t\t\theaders: options?.headers,\n\t\t\t\tserializedHostConfig\n\t\t\t})\n\t\t});\n\t\tif (nextUrl) resp.next = (nextOptions) => invokeFetchWithUrl(api, {\n\t\t\tmethod,\n\t\t\tcompleteUrl: nextUrl,\n\t\t\tbody,\n\t\t\toptions: nextOptions || options,\n\t\t\tauthHeaders,\n\t\t\tcredentials,\n\t\t\tcacheKey: toCacheKey({\n\t\t\t\turl: nextUrl,\n\t\t\t\theaders: options?.headers,\n\t\t\t\tserializedHostConfig\n\t\t\t})\n\t\t});\n\t\treturn resp;\n\t});\n}\nfunction neverResolvingPromise() {\n\treturn new Promise(() => {});\n}\nasync function interceptAuthenticationErrors(hostConfig, completeUrl, resultPromise, performRetry) {\n\ttry {\n\t\treturn await resultPromise;\n\t} catch (error) {\n\t\tconst err = error;\n\t\tconst errorBody = err.data;\n\t\tif (err.status === 401 || err.status === 403 && errorBody?.code === \"CSRF-TOKEN-2\" || means401OnWindows(completeUrl, err.status) && await isWindows(hostConfig)) {\n\t\t\tif (globalThis.loggingOut) return neverResolvingPromise();\n\t\t\tconst { retry, preventDefault } = await handleAuthenticationError({\n\t\t\t\thostConfig,\n\t\t\t\tstatus: err.status,\n\t\t\t\theaders: err.headers,\n\t\t\t\terrorBody,\n\t\t\t\tcanRetry: !!performRetry\n\t\t\t});\n\t\t\tif (retry && performRetry) return performRetry();\n\t\t\tif (preventDefault) return neverResolvingPromise();\n\t\t}\n\t\tthrow error;\n\t}\n}\n/** Set the X-Qlik-Overrides header according to what's written to localStorage\n*  by qmfe-devtool */\nfunction getServiceOverrideHeaderFromLocalStorage() {\n\tif (!isBrowser()) return {};\n\tconst header = localStorage.getItem(\"qmfe-api-service-overrides-header\");\n\tif (!header) return {};\n\treturn { \"X-Qlik-Overrides\": header };\n}\n/** Convert a Blob to a DownloadableBlob */\nfunction toDownloadableBlob(blob, name) {\n\tconst result = blob;\n\tif (name) result.download = (filename) => download(blob, filename ?? name);\n\telse result.download = (filename) => download(blob, filename);\n\treturn result;\n}\n/** Convenience-function for downloading a blob. */\nasync function download(blob, filename) {\n\tif (isBrowser()) {\n\t\tconst a = document.createElement(\"a\");\n\t\tconst blobUrl = window.URL.createObjectURL(blob);\n\t\ta.href = blobUrl;\n\t\ta.download = filename;\n\t\ta.click();\n\t\twindow.URL.revokeObjectURL(blobUrl);\n\t} else {\n\t\tconst { writeFileSync } = await import(\"fs\");\n\t\tconst arrayBuffer = await blob.arrayBuffer();\n\t\twriteFileSync(filename, new Uint8Array(arrayBuffer));\n\t}\n}\n\n//#endregion\n//#region src/invoke-fetch/invoke-fetch-functions.ts\nconst defaultUserAgent = \"qmfe-api/latest\";\n/**\n* Makes an HTTP call with the browser's fetch API to the endpoint configured in the call's arguments\n* @param api Name of api to call. Will be used for caching responses.\n* @param invokeFetchProps InvokeFetchProperties\n*/\nasync function invokeFetch(api, props, interceptors) {\n\tconst effectiveInterceptors = interceptors || getInterceptors();\n\tconst invokeFetchFinal = (reqeust) => invokeFetchIntercepted(api, reqeust);\n\treturn (effectiveInterceptors || []).reduce((proceed, interceptor) => (request) => interceptor(request, proceed), invokeFetchFinal)(props);\n}\n/** @private Runs the intercepted version of invoke fetch */\nasync function invokeFetchIntercepted(api, props) {\n\tif (props.options?.hostConfig?.authType === \"mock-backend-rest-recorder\") return Promise.resolve(props.options?.hostConfig.recordInvokeFetch(props));\n\tif (props.options?.hostConfig?.authType === \"mock-backend\") return Promise.resolve(props.options?.hostConfig.mockInvokeFetch(props));\n\tcheckForCrossDomainRequest(props.options?.hostConfig);\n\tif (props.options?.hostConfig?.authType === \"noauth\") {\n\t\tconsole.info(\"API call blocked: noauth auth module is configured, no API calls should be made\");\n\t\treturn {\n\t\t\tstatus: 204,\n\t\t\theaders: new Headers(),\n\t\t\tdata: null\n\t\t};\n\t}\n\tlet userAgent;\n\tif (props?.userAgent) userAgent = props.userAgent;\n\telse if (isBrowser()) userAgent = `${window.navigator.userAgent} ${defaultUserAgent}`;\n\telse userAgent = defaultUserAgent;\n\tconst { completeUrl, authHeaders, credentials, cacheKey } = await getInvokeFetchUrlParams(props);\n\treturn invokeFetchWithUrl(api, {\n\t\t...props,\n\t\tmethod: props.method.toUpperCase(),\n\t\tcompleteUrl,\n\t\tauthHeaders,\n\t\tcredentials,\n\t\tcacheKey,\n\t\tuserAgent\n\t});\n}\n/**\n* Clears cached responses for a certain api\n* @example\n* clearNameSpaceCache(\"spaces\"); // clears the cache for the \"spaces\" api\n* @param api the api namespace to clear cache in\n*/\nfunction clearApiCache(api) {\n\tclearApiCacheInternal(api);\n}\n/**\n* Function that extracts the payload from the fetch response.\n* @param fetchResponse fetch response\n* @param url to where the request as made\n* @returns parsed fetch response\n*/\nasync function parseFetchResponse(fetchResponse, url) {\n\tlet resultData;\n\tconst contentType = fetchResponse.headers.get(\"content-type\")?.split(\";\")[0];\n\tconst contentDisposition = fetchResponse.headers.get(\"content-disposition\")?.split(\";\");\n\tif (contentDisposition && contentDisposition[0] === \"attachment\") {\n\t\tlet filename = \"\";\n\t\tfor (let i = 1; i < contentDisposition.length; i++) {\n\t\t\tconst attr = contentDisposition[i].trim();\n\t\t\tif (attr.indexOf(\"filename\") === 0) {\n\t\t\t\tconst start = attr.indexOf(\"\\\"\");\n\t\t\t\tconst end = attr.lastIndexOf(\"\\\"\");\n\t\t\t\tfilename = attr.slice(start + 1, end);\n\t\t\t}\n\t\t}\n\t\tresultData = toDownloadableBlob(await fetchResponse.blob(), filename);\n\t} else switch (contentType) {\n\t\tcase \"image/png\":\n\t\tcase \"image/jpeg\":\n\t\tcase \"image/x-icon\":\n\t\tcase \"application/offset+octet-stream\":\n\t\tcase \"application/octet-stream\":\n\t\tcase \"application/zip\":\n\t\tcase \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":\n\t\tcase \"application/pdf\":\n\t\t\tresultData = toDownloadableBlob(await fetchResponse.blob());\n\t\t\tbreak;\n\t\tcase \"text/event-stream\":\n\t\t\tresultData = fetchResponse.body;\n\t\t\tbreak;\n\t\tcase void 0:\n\t\tdefault: {\n\t\t\tlet bodyText;\n\t\t\ttry {\n\t\t\t\tbodyText = await fetchResponse.text();\n\t\t\t} catch (error) {\n\t\t\t\tthrow new InvokeFetchError(`request to '${url}' failed while reading response body: ${error instanceof Error ? error.message : String(error)}`, fetchResponse.status, fetchResponse.headers, void 0);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tresultData = JSON.parse(bodyText);\n\t\t\t} catch {\n\t\t\t\tresultData = bodyText;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}\n\tconst { status, statusText, headers } = fetchResponse;\n\tconst errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;\n\tif (status >= 300) throw new InvokeFetchError(errorMsg, status, headers, resultData);\n\tif (status === 0) throw new InvokeFetchError(errorMsg, 302, headers, resultData);\n\treturn {\n\t\tstatus,\n\t\theaders,\n\t\tdata: resultData\n\t};\n}\n\n//#endregion\n//#region src/http/http-constants.ts\n/**\n* Name of the CSRF Token header.\n*/\nconst QLIK_CSRF_TOKEN = \"qlik-csrf-token\";\n\n//#endregion\n//#region src/http/http-functions.ts\n/**\n* Clears the CSRF token\n* @param location an optional location that is used to clear the csrf tokens when embedded\n*/\nfunction clearCsrfToken(hostConfig) {\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\tdelete csrfTokens[locationUrl];\n\tclearApiCache(\"csrf-token\");\n}\n/**\n* Fetches the CSRF token from the server. The token is cached and will be reused for subsequent calls.\n* @param hostConfig HostConfig object containing the location url and authentication options\n* @param noCache Set to true to force a new token to be fetched\n* @returns csrf token\n*/\nasync function getCsrfToken(hostConfig, noCache) {\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\tlet pathTemplate;\n\tif (await isWindows(hostConfig)) pathTemplate = \"/qps/csrftoken\";\n\telse pathTemplate = \"/api/v1/csrf-token\";\n\tconst fetchCsrfToken = async () => {\n\t\ttry {\n\t\t\tconst csrfToken = (await invokeFetch(\"csrf-token\", {\n\t\t\t\tmethod: \"get\",\n\t\t\t\tpathTemplate,\n\t\t\t\toptions: {\n\t\t\t\t\thostConfig,\n\t\t\t\t\tmaxCacheAge: 5e3,\n\t\t\t\t\tnoCache\n\t\t\t\t}\n\t\t\t})).headers.get(QLIK_CSRF_TOKEN);\n\t\t\tif (!csrfToken) return \"\";\n\t\t\treturn csrfToken;\n\t\t} catch (e) {\n\t\t\tif (e.status === 404) return \"\";\n\t\t\tthrow e;\n\t\t}\n\t};\n\tif (noCache) {\n\t\tcsrfTokens[locationUrl] = fetchCsrfToken();\n\t\treturn csrfTokens[locationUrl];\n\t}\n\tcsrfTokens[locationUrl] = csrfTokens[locationUrl] || fetchCsrfToken();\n\treturn csrfTokens[locationUrl];\n}\nconst csrfTokens = {};\n\n//#endregion\n//#region src/auth/internal/internal-auth-functions.ts\n/**\n* Returns the fetch credentials string based on the host config. Note that this\n* assumes cookies are used so it should only be used by the cookie auth modes\n* @param hostConfig the HostConfig containing authentication details\n* @private\n*/\nfunction internalGetCredentialsForCookieAuth(hostConfig) {\n\tif (hostConfig.crossSiteCookies === false) return \"same-origin\";\n\tif (isHostCrossOrigin(hostConfig)) return \"include\";\n\treturn \"same-origin\";\n}\nasync function resolveTokenIfPresent(getAccessToken) {\n\tif (typeof getAccessToken === \"function\") return getAccessToken();\n\tif (typeof getAccessToken === \"string\") {\n\t\tconst accessTokenFn = lookupGlobalGetAccessTokenFn(getAccessToken);\n\t\tif (typeof accessTokenFn !== \"function\") throw new Error(`getAccessToken function \"${getAccessToken}\" not found on globalThis. Please make sure it is defined.`);\n\t\treturn accessTokenFn();\n\t}\n}\nfunction lookupGlobalGetAccessTokenFn(getAccessToken) {\n\treturn globalThis[getAccessToken];\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/cookie.ts\n/**\n* Returns true if the verb might modify things requiring caches to be cleared\n*/\nfunction isModifyingVerb(verb) {\n\treturn !(verb === \"get\" || verb === \"GET\");\n}\nasync function getRestCallAuthParams$8({ hostConfig, method }) {\n\tconst headers = {};\n\tif (isModifyingVerb(method)) headers[\"qlik-csrf-token\"] = await getCsrfToken(hostConfig);\n\tif (hostConfig.webIntegrationId) headers[\"qlik-web-integration-id\"] = hostConfig.webIntegrationId;\n\treturn {\n\t\theaders,\n\t\tqueryParams: {},\n\t\tcredentials: internalGetCredentialsForCookieAuth(hostConfig)\n\t};\n}\nasync function getWebSocketAuthParams$8({ hostConfig }) {\n\tif (isNode()) {\n\t\tconst headers = {};\n\t\theaders[\"qlik-csrf-token\"] = await getCsrfToken(hostConfig);\n\t\tif (hostConfig.webIntegrationId) headers[\"qlik-web-integration-id\"] = hostConfig.webIntegrationId;\n\t\treturn { headers };\n\t}\n\tconst params = { \"qlik-csrf-token\": await getCsrfToken(hostConfig, true) };\n\tif (hostConfig.webIntegrationId) params[\"qlik-web-integration-id\"] = hostConfig.webIntegrationId;\n\treturn { queryParams: params };\n}\nasync function handleAuthenticationError$8({ hostConfig, status }) {\n\tclearCsrfToken(hostConfig);\n\tif (status === 403) return {\n\t\tpreventDefault: false,\n\t\tretry: true\n\t};\n\tconst webIntegrationParam = hostConfig.webIntegrationId ? `qlik-web-integration-id=${hostConfig?.webIntegrationId}&` : \"\";\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\tawait requestRedirect(hostConfig);\n\tglobalThis.location.replace(`${locationUrl}/login?${webIntegrationParam}returnto=${encodeURIComponent(globalThis.location.href)}`);\n\treturn { preventDefault: true };\n}\n/** @private */\nvar cookie_default = {\n\trequiredProps: [],\n\toptionalProps: [\n\t\t\"webIntegrationId\",\n\t\t\"crossSiteCookies\",\n\t\t\"anonymousMode\"\n\t],\n\tgetRestCallAuthParams: getRestCallAuthParams$8,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$8,\n\thandleAuthenticationError: handleAuthenticationError$8\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/noauth.ts\nfunction getRestCallAuthParams$7(_props) {\n\treturn Promise.resolve({\n\t\theaders: {},\n\t\tqueryParams: {},\n\t\tcredentials: \"same-origin\"\n\t});\n}\nfunction getWebSocketAuthParams$7(_props) {\n\treturn Promise.resolve({ queryParams: {} });\n}\nfunction handleAuthenticationError$7(_props) {\n\treturn Promise.resolve({});\n}\n/** @private */\nvar noauth_default = {\n\trequiredProps: [],\n\toptionalProps: [],\n\tgetRestCallAuthParams: getRestCallAuthParams$7,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$7,\n\thandleAuthenticationError: handleAuthenticationError$7\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/none.ts\nfunction getRestCallAuthParams$6() {\n\treturn Promise.resolve({\n\t\theaders: {},\n\t\tqueryParams: {},\n\t\tcredentials: \"same-origin\"\n\t});\n}\nfunction getWebSocketAuthParams$6() {\n\treturn Promise.resolve({ queryParams: {} });\n}\nfunction handleAuthenticationError$6() {\n\treturn Promise.resolve({});\n}\n/** @private */\nvar none_default = {\n\trequiredProps: [],\n\toptionalProps: [],\n\tgetRestCallAuthParams: getRestCallAuthParams$6,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$6,\n\thandleAuthenticationError: handleAuthenticationError$6\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/oauth/callback.ts\n/**\n* Receives the oauth code and state callback query parameters,\n* verifies the state, saves the code in session storage, and then\n* redirects the page to the final href if it is set and differes from current uri\n*/\nfunction handleOAuthCallback() {\n\tconst urlParams = new URLSearchParams(globalThis.location.search);\n\tconst callbackCode = urlParams.get(\"code\") || void 0;\n\tconst callbackState = urlParams.get(\"state\") || void 0;\n\tif (urlParams.get(\"error\")) {\n\t\tconst element = document.createElement(\"pre\");\n\t\telement.innerText = `<code>${JSON.stringify({\n\t\t\terror: urlParams.get(\"error\"),\n\t\t\terror_code: urlParams.get(\"error_code\"),\n\t\t\terror_description: urlParams.get(\"error_description\"),\n\t\t\terror_detail: urlParams.get(\"error_detail\"),\n\t\t\terror_uri: urlParams.get(\"error_uri\")\n\t\t})}</code>`;\n\t\tdocument.body.prepend(element);\n\t}\n\tconst topic = loadAndDeleteFromSessionStorage(\"\", \"client-in-progress\");\n\tif (topic && callbackCode && callbackState) {\n\t\tconst stateFromLocalStorage = loadAndDeleteFromSessionStorage(topic, \"state\");\n\t\tconst finalRedirectUri = loadAndDeleteFromSessionStorage(topic, \"href\");\n\t\tif (stateFromLocalStorage && stateFromLocalStorage === callbackState && finalRedirectUri) {\n\t\t\tsaveInSessionStorage(topic, \"code\", callbackCode);\n\t\t\tif (finalRedirectUri !== globalThis.location.href) globalThis.location.replace(finalRedirectUri);\n\t\t}\n\t}\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/oauth.ts\nif (isBrowser()) handleOAuthCallback();\n/**\n* Retries the passed in function after calling handleAuthenticationError\n*/\nasync function handlePotentialAuthenticationErrorAndRetry(hostConfig, fn) {\n\ttry {\n\t\treturn await fn();\n\t} catch (err) {\n\t\tconst { retry } = await handleAuthenticationError$5({\n\t\t\thostConfig,\n\t\t\tcanRetry: true\n\t\t});\n\t\tif (retry) return fn();\n\t\tthrow err;\n\t}\n}\nasync function getRestCallAuthParams$5({ hostConfig }) {\n\treturn {\n\t\theaders: { Authorization: `Bearer ${await getOAuthAccessToken(hostConfig)}` },\n\t\tqueryParams: {},\n\t\tcredentials: \"omit\"\n\t};\n}\nasync function getWebSocketAuthParams$5({ hostConfig }) {\n\tif (isNode()) return { headers: { Authorization: `Bearer ${await getOAuthAccessToken(hostConfig)}` } };\n\treturn { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry(hostConfig, async () => {\n\t\treturn exchangeAccessTokenForTemporaryToken(hostConfig, await getOAuthAccessToken(hostConfig), \"websocket\");\n\t}) } };\n}\nasync function getWebResourceAuthParams$1({ hostConfig }) {\n\treturn { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry(hostConfig, async () => {\n\t\treturn exchangeAccessTokenForTemporaryToken(hostConfig, await getOAuthAccessToken(hostConfig), \"webresource\");\n\t}) } };\n}\nasync function handleAuthenticationError$5({ hostConfig }) {\n\tif (hostConfig.getAccessToken) {\n\t\tclearStoredOauthTokens(hostConfig);\n\t\treturn {\n\t\t\tpreventDefault: false,\n\t\t\tretry: true\n\t\t};\n\t}\n\tif (hostConfig.performInteractiveLogin) {\n\t\tclearStoredOauthTokens(hostConfig);\n\t\treturn { retry: true };\n\t}\n\tif (isBrowser()) {\n\t\tawait requestRedirect(hostConfig);\n\t\tstartFullPageLoginFlow(hostConfig);\n\t\treturn { preventDefault: true };\n\t}\n\tawait refreshAccessToken(hostConfig);\n\treturn {\n\t\tpreventDefault: false,\n\t\tretry: true\n\t};\n}\nvar oauth_default = {\n\trequiredProps: [\"clientId\"],\n\toptionalProps: [\n\t\t\"clientSecret\",\n\t\t\"redirectUri\",\n\t\t\"accessTokenStorage\",\n\t\t\"scope\",\n\t\t\"subject\",\n\t\t\"userId\",\n\t\t\"noCache\",\n\t\t\"getAccessToken\",\n\t\t\"performInteractiveLogin\"\n\t],\n\tgetRestCallAuthParams: getRestCallAuthParams$5,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$5,\n\tgetWebResourceAuthParams: getWebResourceAuthParams$1,\n\thandleAuthenticationError: handleAuthenticationError$5\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/reference.ts\nfunction getRestCallAuthParams$4() {\n\tthrow new Error(\"getRestCallAuthParams should never be called for reference auth module\");\n}\nfunction getWebSocketAuthParams$4() {\n\tthrow new Error(\"getWebSocketAuthParams should never be called for reference auth module\");\n}\nfunction handleAuthenticationError$4() {\n\tthrow new Error(\"handleAuthenticationError should never be called for reference auth module\");\n}\n/**\n* This auth module is only here to provide a reference for the auth type \"reference\". It should never be used in practice.\n*  @private */\nvar reference_default = {\n\trequiredProps: [\"reference\"],\n\toptionalProps: [],\n\tgetRestCallAuthParams: getRestCallAuthParams$4,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$4,\n\thandleAuthenticationError: handleAuthenticationError$4\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/windows-cookie/xrf-keys.ts\nconst xrfKeys = {};\n/**\n* @returns {string} 16 character long xrf-key\n*/\nfunction createXrfKey() {\n\tlet result = \"\";\n\tfor (let i = 0; i < 16; i += 1) {\n\t\tconst j = Math.floor(Math.random() * 62);\n\t\tif (j < 10) result += j;\n\t\telse if (j > 9 && j < 36) result += String.fromCharCode(j + 55);\n\t\telse result += String.fromCharCode(j + 61);\n\t}\n\treturn result;\n}\nfunction getXrfKey(hostConfig) {\n\tconst locationUrl = toValidLocationUrl(hostConfig);\n\txrfKeys[locationUrl] = xrfKeys[locationUrl] || createXrfKey();\n\treturn xrfKeys[locationUrl];\n}\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/windows-cookie.ts\nasync function getRestCallAuthParams$3({ hostConfig }) {\n\treturn {\n\t\theaders: { \"X-Qlik-XrfKey\": getXrfKey(hostConfig) },\n\t\tqueryParams: { xrfkey: getXrfKey(hostConfig) },\n\t\tcredentials: internalGetCredentialsForCookieAuth(hostConfig)\n\t};\n}\nasync function getWebSocketAuthParams$3({ hostConfig }) {\n\treturn { queryParams: {\n\t\txrfkey: getXrfKey(hostConfig),\n\t\t\"qlik-csrf-token\": await getCsrfToken(hostConfig, true)\n\t} };\n}\nasync function handleAuthenticationError$3({ hostConfig }) {\n\tif (hostConfig.loginUri) {\n\t\tawait requestRedirect(hostConfig);\n\t\tglobalThis.location.replace(hostConfig.loginUri.replace(\"{location}\", encodeURIComponent(globalThis.location.href)));\n\t\treturn { preventDefault: true };\n\t}\n\tif (hostConfig.getAccessToken) {\n\t\tconst token = await resolveTokenIfPresent(hostConfig.getAccessToken);\n\t\tif (token) {\n\t\t\tawait fetch(`${toValidLocationUrl(hostConfig)}/qlik-embed/main.js`, {\n\t\t\t\tmethod: \"GET\",\n\t\t\t\tmode: \"cors\",\n\t\t\t\tcredentials: \"include\",\n\t\t\t\theaders: {\n\t\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\t\tAuthorization: `Bearer ${token}`\n\t\t\t\t},\n\t\t\t\tcache: \"no-cache\"\n\t\t\t});\n\t\t\treturn { retry: true };\n\t\t}\n\t}\n\treturn {};\n}\n/** @private */\nvar windows_cookie_default = {\n\trequiredProps: [],\n\toptionalProps: [\n\t\t\"loginUri\",\n\t\t\"crossSiteCookies\",\n\t\t\"getAccessToken\"\n\t],\n\tgetRestCallAuthParams: getRestCallAuthParams$3,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$3,\n\thandleAuthenticationError: handleAuthenticationError$3\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/windows-cookie-node.ts\nconst nodeCookieStore = /* @__PURE__ */ new Map();\nfunction clearCookieInStore(hostConfig) {\n\tconst key = serializeHostConfig(hostConfig);\n\tnodeCookieStore.delete(key);\n}\nfunction setCookieInStore(hostConfig, cookie) {\n\tconst key = serializeHostConfig(hostConfig);\n\tnodeCookieStore.set(key, cookie);\n}\nfunction getCookieInStore(hostConfig) {\n\tconst key = serializeHostConfig(hostConfig);\n\treturn nodeCookieStore.get(key);\n}\nasync function getCookie(hostConfig) {\n\tlet cookie = getCookieInStore(hostConfig);\n\tif (!cookie) {\n\t\tconst token = await resolveTokenIfPresent(hostConfig.getAccessToken);\n\t\tif (!token) throw new Error(\"Failed to acquire access token\");\n\t\tcookie = (await fetch(`${toValidLocationUrl(hostConfig)}/qlik-embed/main.js`, {\n\t\t\tmethod: \"GET\",\n\t\t\tmode: \"cors\",\n\t\t\tcredentials: \"include\",\n\t\t\theaders: {\n\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\tAuthorization: `Bearer ${token}`\n\t\t\t}\n\t\t})).headers.get(\"Set-Cookie\") || void 0;\n\t\tif (cookie) setCookieInStore(hostConfig, cookie);\n\t}\n\tif (!cookie) throw new Error(\"Failed to exchange access token for cookie\");\n\treturn cookie;\n}\nasync function getRestCallAuthParams$2({ hostConfig }) {\n\treturn {\n\t\tqueryParams: { xrfkey: getXrfKey(hostConfig) },\n\t\theaders: {\n\t\t\tCookie: await getCookie(hostConfig),\n\t\t\t\"X-Qlik-XrfKey\": getXrfKey(hostConfig)\n\t\t},\n\t\tcredentials: internalGetCredentialsForCookieAuth(hostConfig)\n\t};\n}\nasync function getWebSocketAuthParams$2({ hostConfig }) {\n\treturn {\n\t\tqueryParams: { \"qlik-csrf-token\": await getCsrfToken(hostConfig, true) },\n\t\theaders: { Cookie: await getCookie(hostConfig) }\n\t};\n}\nasync function handleAuthenticationError$2({ hostConfig }) {\n\tclearCookieInStore(hostConfig);\n\treturn { retry: true };\n}\n/** @private */\nvar windows_cookie_node_default = {\n\trequiredProps: [],\n\toptionalProps: [\n\t\t\"loginUri\",\n\t\t\"crossSiteCookies\",\n\t\t\"getAccessToken\"\n\t],\n\tvalidateHostConfig: (hostConfig) => {\n\t\tif (typeof hostConfig.getAccessToken === \"function\") return true;\n\t\tif (typeof hostConfig.getAccessToken === \"string\") {\n\t\t\tif (!!!globalThis[hostConfig.getAccessToken]) throw new InvalidHostConfigError(\"The \\\"getAccessToken\\\" function name provided does not exist on globalThis.\");\n\t\t\treturn true;\n\t\t}\n\t\tthrow new InvalidHostConfigError(\"The \\\"getAccessToken\\\" property must be a function or the name of a globally defined function.\");\n\t},\n\tgetRestCallAuthParams: getRestCallAuthParams$2,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$2,\n\thandleAuthenticationError: handleAuthenticationError$2\n};\n\n//#endregion\n//#region src/auth/internal/default-auth-modules/pfx.ts\nfunction getRestCallAuthParams$1({ hostConfig }) {\n\treturn Promise.resolve({\n\t\theaders: {},\n\t\tqueryParams: {},\n\t\tcredentials: \"omit\",\n\t\tpfxOptions: {\n\t\t\tpfx: hostConfig?.pfx,\n\t\t\tpassphrase: hostConfig?.passphrase\n\t\t}\n\t});\n}\nasync function getWebSocketAuthParams$1({ hostConfig }) {\n\tif (isBrowser()) throw new Error(\"Not supported in browser environment\");\n\tconst xQlikUserHeader = hostConfig?.userHeader || \"UserDirectory=INTERNAL; UserId=sa_engine\";\n\treturn Promise.resolve({\n\t\theaders: { \"X-Qlik-User\": xQlikUserHeader },\n\t\tpfxOptions: {\n\t\t\tpfx: hostConfig?.pfx,\n\t\t\tpassphrase: hostConfig?.passphrase || \"\"\n\t\t}\n\t});\n}\nfunction handleAuthenticationError$1() {\n\treturn Promise.resolve({});\n}\nvar pfx_default = {\n\trequiredProps: [\"pfx\"],\n\toptionalProps: [\"passphrase\", \"userHeader\"],\n\tgetRestCallAuthParams: getRestCallAuthParams$1,\n\tgetWebSocketAuthParams: getWebSocketAuthParams$1,\n\thandleAuthenticationError: handleAuthenticationError$1\n};\n\n//#endregion\n//#region src/auth/internal/auth-module-registry.ts\n/**\n* Auth module registry\n*/\nconst authModules = {};\n/**\n* A promise that gets recreated when an auth module is currently being loaded\n*/\nlet ongoingAuthModuleLoading = Promise.resolve();\nlet authModulesRegistered = false;\n(function registerDefaultAuthModules() {\n\tif (!authModulesRegistered) {\n\t\tregisterAuthModule$1(\"apikey\", apikey_default);\n\t\tregisterAuthModule$1(\"cookie\", cookie_default);\n\t\tregisterAuthModule$1(\"none\", none_default);\n\t\tregisterAuthModule$1(\"noauth\", noauth_default);\n\t\tregisterAuthModule$1(\"oauth2\", oauth_default);\n\t\tregisterAuthModule$1(\"anonymous\", anonymous_default);\n\t\tregisterAuthModule$1(\"pfx\", pfx_default);\n\t\tif (isBrowser()) registerAuthModule$1(\"windowscookie\", windows_cookie_default);\n\t\telse registerAuthModule$1(\"windowscookie\", windows_cookie_node_default);\n\t\tregisterAuthModule$1(\"reference\", reference_default);\n\t\tauthModulesRegistered = true;\n\t}\n})();\n/**\n* Registers an auth module that can handle authentication. An auth module is used by specifying its name as authType in the HostConfig passed in to api calls.\n* @param name the name of the module\n* @param authModule the implementation of the AuthModule interface\n*/\nfunction registerAuthModule$1(name, authModule) {\n\tauthModules[name.toLowerCase()] = authModule;\n}\n/**\n* Get the names of all registered AuthModules.\n* @returns Array of all registered AuthModules\n*/\nfunction getRegisteredAuthModules() {\n\treturn Object.keys(authModules);\n}\n/**\n*  Gets the auth module with the given name. The name is case insensitive.\n* @param authType The name of the auth module to get. The name is case insensitive.\n* @returns\n*/\nfunction getRegisteredAuthModule(authType) {\n\treturn authModules[authType.toLowerCase()];\n}\n/**\n* Gets the auth module for a host config. If only clientId is set, then authType is assumed and set to \"oauth2\".\n* If host config is undefined or empty, then authType is assumed and set to \"cookie\" or \"windowscookie\" depending\n*  on which platform the host is running on.\n*\n* @private\n* @param hostConfig\n*/\nasync function getAuthModule(hostConfig) {\n\tconst hostConfigToUse = resolveHostConfig(hostConfig);\n\tconst authType = await determineAuthType$1(hostConfigToUse);\n\tif (ongoingAuthModuleLoading) await ongoingAuthModuleLoading;\n\tlet authModule = getRegisteredAuthModule(authType);\n\tif (!authModule) {\n\t\t/**\n\t\t* This is basically poor mans synchronous block so that one globally defined asynchronous auth module factory function\n\t\t* is not called more than once if several calls to getAuthModule come in in sequence.\n\t\t*/\n\t\tongoingAuthModuleLoading = (async () => {\n\t\t\tauthModule = await resolveGloballyDefinedAuthModule(authType);\n\t\t\tif (authModule) registerAuthModule$1(authType, authModule);\n\t\t})();\n\t\tawait ongoingAuthModuleLoading;\n\t}\n\tif (!authModule) throw new InvalidAuthTypeError(authType);\n\tif (authModule.validateHostConfig) authModule.validateHostConfig({\n\t\tauthType,\n\t\t...hostConfigToUse\n\t});\n\telse internalValidateHostConfig({\n\t\tauthType,\n\t\t...hostConfigToUse\n\t}, {\n\t\trequiredProps: authModule.requiredProps || [],\n\t\toptionalProps: authModule.optionalProps || []\n\t});\n\treturn authModule;\n}\nasync function resolveGloballyDefinedAuthModule(authType) {\n\tconst globalVariable = globalThis[authType];\n\tif (globalVariable) {\n\t\tlet potentialAuthModule;\n\t\tif (typeof globalVariable === \"function\") potentialAuthModule = await globalVariable();\n\t\telse potentialAuthModule = globalVariable;\n\t\tif (potentialAuthModule && potentialAuthModule.getRestCallAuthParams && potentialAuthModule.getWebSocketAuthParams && potentialAuthModule.handleAuthenticationError) return potentialAuthModule;\n\t\tconsole.error(\"Not a valid auth module\", potentialAuthModule);\n\t\tthrow new InvalidAuthTypeError(authType);\n\t}\n\treturn Promise.resolve(void 0);\n}\n/**\n* @private\n* Helper function for validating a host config in runtime\n* @param hostConfig - The host config to validate\n* @param options - Options for validation\n* @param options.requiredProps - The required properties in the host config\n* @param options.optionalProps - The optional properties in the host config\n* @throws {InvalidHostConfigError} If the host config is invalid\n* @returns {boolean} Returns true if the host config is valid\n* */\nfunction internalValidateHostConfig(hostConfig, { requiredProps, optionalProps }) {\n\tconst missingRequiredProps = [];\n\tfor (const requiredProp of requiredProps) if (!hostConfig[requiredProp]) missingRequiredProps.push(requiredProp);\n\tif (missingRequiredProps.length > 0) throw new InvalidHostConfigError(`missing required properties in host config; '${missingRequiredProps.join(\"', '\")}'`);\n\tconst validProps = [\n\t\t...hostConfigCommonProperties,\n\t\t...requiredProps,\n\t\t...optionalProps\n\t];\n\tconst invalidKeys = [];\n\tObject.keys(hostConfig).forEach((key) => {\n\t\tif (!validProps.includes(key)) invalidKeys.push(key);\n\t});\n\tif (invalidKeys.length > 0) console.warn(`WARNING: unknown properties in host config; '${invalidKeys.join(\"', '\")}'`);\n\treturn true;\n}\n/**\n* Determines the authType associated with a HostConfig even if it's\n* not explicitly set.\n*/\nasync function determineAuthType$1(hostConfig) {\n\tif (hostConfig.authType) return hostConfig.authType;\n\tif (hostConfig.apiKey) return \"apikey\";\n\tif (hostConfig.accessCode) return \"anonymous\";\n\tif (hostConfig.clientId) return \"oauth2\";\n\tif (hostConfig.webIntegrationId) return \"cookie\";\n\tif (hostConfig.reference) return \"reference\";\n\tif (hostConfig.pfx) return \"pfx\";\n\tif (await isWindows(hostConfig)) return \"windowscookie\";\n\treturn \"cookie\";\n}\n\n//#endregion\n//#region src/auth/auth-errors.ts\n/** Error is thrown when a host config has incorrect or missing settings */\nvar InvalidHostConfigError = class extends Error {\n\tconstructor(message) {\n\t\tsuper(`Invalid host config: ${message}`);\n\t\tthis.name = \"InvalidHostConfigError\";\n\t}\n};\n/** Error is thrown when a host config has an auth type with incompatible settings */\nvar UnexpectedAuthTypeError = class extends Error {\n\tconstructor(...expectedAuthTypes) {\n\t\tconst ors = expectedAuthTypes.map((item, index) => index === 0 ? `\"${item}\"` : `or \"${item}\"`).join(\" \");\n\t\tsuper(`HostConfig is not properly configured. authType is expected to be ${ors}`);\n\t\tthis.name = \"UnexpectedAuthTypeError\";\n\t}\n};\n/** Error is thrown when a host config uses an auth type that has not been registered */\nvar InvalidAuthTypeError = class extends Error {\n\tconstructor(authType) {\n\t\tconst validAuthModules = getRegisteredAuthModules();\n\t\tsuper(`Not a valid auth type: ${authType}, valid auth types are; '${validAuthModules.filter((name) => name.toLowerCase() !== \"qmfeembedframerauthmodule\").join(\"', '\")}'`);\n\t\tthis.name = \"InvalidAuthTypeError\";\n\t}\n};\nfunction errorToString({ title, detail, code, status }) {\n\tif (detail) return `${title} - ${detail} (Status: ${status}, Code: ${code})`;\n\treturn `${title} (Status: ${status}, Code: ${code})`;\n}\nvar AuthorizationError = class extends Error {\n\terrors;\n\tconstructor(errors) {\n\t\tif (typeof errors !== \"object\") {\n\t\t\tsuper(\"Unknown error\");\n\t\t\treturn;\n\t\t}\n\t\tconst errorArray = Array.isArray(errors) ? errors : [errors];\n\t\tsuper(errorArray.map(errorToString).join(\", \"));\n\t\tthis.errors = errorArray;\n\t}\n};\n\n//#endregion\n//#region src/auth/internal/fatal-auth-error-listeners.ts\nconst listenerRegistries = /* @__PURE__ */ new Map();\nlet lastErrorMessage = \"\";\nlet lastHostConfig;\n/**\n* Retrieves the listener registry for a given host configuration, creating one if it doesn't exist.\n*/\nfunction getAuthErrorListenerRegistryForHostConfig(hostConfig) {\n\tconst key = serializeHostConfig$1(hostConfig);\n\tlet registry = listenerRegistries.get(key);\n\tif (!registry) {\n\t\tregistry = { listeners: /* @__PURE__ */ new Set() };\n\t\tlistenerRegistries.set(key, registry);\n\t}\n\treturn registry;\n}\n/**\n* Emits a fatal authentication error to all registered listeners plus to the onAuthFailed property in the hostConfig.\n* If there are no listeners or onAuthFailed callback, the error message is logged to the console.\n*/\nfunction emitFatalAuthError(hostConfig, normalizedError) {\n\tif (hostConfig === lastHostConfig && normalizedError.message === lastErrorMessage) return;\n\tlastHostConfig = hostConfig;\n\tlastErrorMessage = normalizedError.message;\n\tlet someOneIsListening = false;\n\tconst registry = getAuthErrorListenerRegistryForHostConfig(hostConfig);\n\tfor (const listener of registry.listeners) try {\n\t\tsomeOneIsListening = true;\n\t\tlistener(normalizedError);\n\t} catch (listenerError) {\n\t\tconsole.warn(\"Error in auth error listener\", listenerError);\n\t}\n\tif (hostConfig.onAuthFailed) try {\n\t\tsomeOneIsListening = true;\n\t\thostConfig.onAuthFailed(normalizedError);\n\t} catch (callbackError) {\n\t\tconsole.warn(\"Error in onAuthFailed callback\", callbackError);\n\t}\n\tif (!someOneIsListening) console.error(normalizedError.message);\n}\n/**\n* Registers a listener for fatal auth errors. This means errors in the actual auth mechanism, i.e. misconfigurations etc.\n*/\nfunction onFatalAuthError$1(hostConfig, callback) {\n\tconst registry = getAuthErrorListenerRegistryForHostConfig(hostConfig);\n\tregistry.listeners.add(callback);\n\treturn () => {\n\t\tregistry.listeners.delete(callback);\n\t};\n}\n\n//#endregion\n//#region src/auth/auth-functions.ts\n/**\n* Set initial loggingOut value to false to make sure it has a value before any auth module is loaded\n*/\nglobalThis.loggingOut = false;\n/**\n* Determines the authType associated with a HostConfig even if it's\n* not explicitly set.\n* @param hostConfig the HostConfig containing authentication details\n* @returns promise that resolvs with the determined authentication type\n*/\nfunction determineAuthType(hostConfig) {\n\treturn determineAuthType$1(hostConfig);\n}\n/**\n* Determines if a host is cross origin or not\n* @param hostConfig the HostConfig containing authentication details\n* @private\n*/\nfunction isHostCrossOrigin(hostConfig) {\n\tif (!globalThis.location?.origin) return true;\n\tconst hostConfigToUse = resolveHostConfig(hostConfig);\n\tif (Object.keys(hostConfigToUse).length === 0) return false;\n\ttry {\n\t\treturn new URL(toValidLocationUrl(hostConfigToUse)).origin !== globalThis.location.origin;\n\t} catch {}\n\treturn false;\n}\n/**\n* Determines if the host we're connecting to is running on windows or not\n* @param hostConfig the HostConfig containing authentication details\n*/\nasync function isWindows(hostConfig) {\n\tconst hostConfigToUse = resolveHostConfig(hostConfig);\n\tif (typeof hostConfigToUse.forceIsWindows === \"boolean\") return hostConfigToUse.forceIsWindows;\n\tif (hostConfigToUse.host?.endsWith(\".qlik-stage.com\") || hostConfigToUse.host?.endsWith(\".qlikcloud.com\") || hostConfigToUse.host?.endsWith(\".qlikcloudgov.com\")) return false;\n\tif (hostConfigToUse.authType === \"cookie\") return false;\n\tif (hostConfigToUse.authType === \"windowscookie\") return true;\n\treturn (await getPlatform({ hostConfig })).isWindows;\n}\n/**\n* Returns a valid location url based on the supplied location string. If location is undefined the default is returned\n* @param hostConfig the HostConfig containing authentication details\n*/\nfunction toValidLocationUrl(hostConfig) {\n\tconst url = resolveHostConfig(hostConfig)?.host?.trim();\n\tlet locationUrl;\n\tif (!url) locationUrl = \"\";\n\telse if (url.toLowerCase().startsWith(\"https://\") || url.toLowerCase().startsWith(\"http://\")) locationUrl = url;\n\telse locationUrl = `https://${url}`;\n\twhile (locationUrl[locationUrl.length - 1] === \"/\") locationUrl = locationUrl.substring(0, locationUrl.length - 1);\n\treturn locationUrl;\n}\n/**\n* Returns a valid websocket location url based on the supplied location string. If location is undefined the default is returned\n* @param hostConfig the HostConfig containing authentication details\n*/\nfunction toValidWebsocketLocationUrl(hostConfig) {\n\tconst url = resolveHostConfig(hostConfig)?.host;\n\tlet locationUrl;\n\tif (!url) locationUrl = globalThis.location.origin;\n\telse if (url.toLowerCase().startsWith(\"https://\") || url.toLowerCase().startsWith(\"http://\")) locationUrl = url;\n\telse locationUrl = `https://${url}`;\n\twhile (locationUrl[locationUrl.length - 1] === \"/\") locationUrl = locationUrl.substring(0, locationUrl.length - 1);\n\treturn locationUrl.replace(leadingHttp, \"ws\");\n}\n/**\n* Returns a record of query parameters that needs to be added to websockets\n* @param hostConfig the HostConfig containing authentication details\n*/\nasync function getWebSocketAuthParams(props) {\n\tconst hostConfigToUse = resolveHostConfig(props.hostConfig);\n\ttry {\n\t\treturn await (await getAuthModule(hostConfigToUse)).getWebSocketAuthParams({\n\t\t\t...props,\n\t\t\thostConfig: hostConfigToUse\n\t\t});\n\t} catch (err) {\n\t\temitFatalAuthError(hostConfigToUse, normalizeAuthModuleError(err));\n\t\tthrow err;\n\t}\n}\n/**\n* Returns a record of query parameters that needs to be added to resources requests, e.g.\n* image tags, etc.\n* @param hostConfig the HostConfig containing authentication details\n*/\nasync function getWebResourceAuthParams(props) {\n\tconst hostConfigToUse = resolveHostConfig(props.hostConfig);\n\ttry {\n\t\treturn await (await getAuthModule(hostConfigToUse)).getWebResourceAuthParams?.({\n\t\t\t...props,\n\t\t\thostConfig: hostConfigToUse\n\t\t}) || { queryParams: {} };\n\t} catch (err) {\n\t\temitFatalAuthError(hostConfigToUse, normalizeAuthModuleError(err));\n\t\tthrow err;\n\t}\n}\n/**\n* Calls and return handleAuthenticationError on the authModule a host config is associated with.\n*/\nasync function handleAuthenticationError(props) {\n\tconst hostConfigToUse = resolveHostConfig(props.hostConfig);\n\tconst result = await (await getAuthModule(hostConfigToUse)).handleAuthenticationError({\n\t\t...props,\n\t\thostConfig: hostConfigToUse\n\t});\n\tconst willRetry = props.canRetry && result.retry;\n\tconst willHangUntilANewPageIsLoaded = result.preventDefault;\n\tif (!willRetry && !willHangUntilANewPageIsLoaded) {\n\t\tconst { status, errorBody } = props;\n\t\temitFatalAuthError(hostConfigToUse, normalizeInbandAuthError({\n\t\t\tstatus,\n\t\t\terrorBody\n\t\t}));\n\t}\n\treturn result;\n}\n/**\n* Returns a record of headers and a record of query params that needs to be added to outgoing rest calls\n* @param props.hostConfig the HostConfig containing authentication details\n* @param props.method the http method, which may affect what authentication are needed.\n*/\nasync function getRestCallAuthParams(props) {\n\tconst hostConfigToUse = resolveHostConfig(props.hostConfig);\n\ttry {\n\t\treturn await (await getAuthModule(hostConfigToUse)).getRestCallAuthParams({\n\t\t\t...props,\n\t\t\thostConfig: hostConfigToUse\n\t\t});\n\t} catch (err) {\n\t\temitFatalAuthError(hostConfigToUse, normalizeAuthModuleError(err));\n\t\tthrow err;\n\t}\n}\n/**\n* Returns a record of headers and a record of query params that needs to be added to outgoing rest calls\n* @param props.hostConfig the HostConfig containing authentication details\n* @param props.method the http method, which may affect what authentication are needed.\n*/\nasync function getAccessToken(props) {\n\tconst authorizationHeader = (await getRestCallAuthParams({\n\t\tmethod: \"GET\",\n\t\t...props\n\t})).headers?.Authorization;\n\tif (authorizationHeader.indexOf(\"Bearer \") === 0) return authorizationHeader.substring(7);\n\tthrow new Error(\"Unknown format of authorization header returned by remote auth module\");\n}\n/**\n* Registers an auth module that can handle authentication. An auth module is used by specifying its name as authType in the HostConfig passed in to api calls.\n* @param name the name of the module\n* @param authModule the implementation of the AuthModule interface\n*/\nfunction registerAuthModule(name, authModule) {\n\tregisterAuthModule$1(name, authModule);\n}\n/**\n* Sets the default host config that will be used for all api calls that do not include a HostConfig\n* @param hostConfig the default HostConfig to use\n*/\nfunction setDefaultHostConfig(hostConfig) {\n\tsetDefaultHostConfig$1(hostConfig);\n}\n/**\n* Registers a host config with the given name.\n* @param name The name of the host config to be used to reference the host config later.\n* @param hostConfig The host config to register.\n*/\nfunction registerHostConfig(name, hostConfig) {\n\tregisterHostConfig$1(name, hostConfig);\n}\n/**\n* Unregisters a host config with the given name.\n* @param name The name of the host config to unregister.\n*/\nfunction unregisterHostConfig(name) {\n\tunregisterHostConfig$1(name);\n}\n/**\n* Serializes the provided hostConfig, if present, otherwise the default one.\n*/\nfunction serializeHostConfig(hostConfig) {\n\treturn serializeHostConfig$1(hostConfig);\n}\n/**\n* Throws errors if hostConfig is missing or missing properties on cross domain requests\n*/\nfunction checkForCrossDomainRequest(hostConfig) {\n\tconst hostConfigToUse = resolveHostConfig(hostConfig);\n\tif (isHostCrossOrigin(hostConfigToUse)) {\n\t\tif (Object.keys(hostConfigToUse).length === 0) throw new InvalidHostConfigError(\"a host config must be provided when making a cross domain request\");\n\t\tif (!hostConfigToUse.host) throw new InvalidHostConfigError(\"A 'host' property must be set in host config when making a cross domain request\");\n\t}\n}\n/**\n* Returns a normalized host config that will always be the same instance when the serialized host config is the same.\n*/\nfunction normalizeHostConfig(hostConfig) {\n\treturn normalizeHostConfig$1(hostConfig);\n}\n/**\n* Logs out the user and sets `global.loggingOut` to true.\n* **NOTE**: Does not abort pending requests.\n*/\nconst logout = () => {\n\tglobalThis.loggingOut = true;\n\tglobalThis.location.href = \"/logout\";\n};\nconst leadingHttp = /^http/;\n/**\n* Normalizes the error object returned from the auth module to a FatalAuthError\n* @param errorBody The error body to normalize\n* @param status The status code of the error\n* @returns Either the error message or a default message\n* @private\n*/\nfunction normalizeInbandAuthError({ errorBody, status }) {\n\tconst authError = errorBody;\n\tif (typeof authError?.errors === \"object\") return { message: new AuthorizationError(authError?.errors).message };\n\treturn { message: `HTTP ${status}` };\n}\n/**\n* Normalizes the error object returned from the auth module to a FatalAuthError\n* @param err The error to normalize\n* @returns Either the error message or a default message\n* @private\n*/\nfunction normalizeAuthModuleError(err) {\n\treturn { message: err.message || \"Unknown error\" };\n}\n/**\n* Replaces the supplied host config according the following rules:\n* * If the host config is a reference to a registered host config, the registered host config will be used.\n* * If the host config is undefined or empty, the default host config will be returned.\n* * If the host config is not a reference and not empty or undefined, it will be returned as is.\n* * If the host config is empty or undefined an empty object (which represents the default cookie mode) is returned.\n* @param hostConfig - The host config to resolve\n*/\nfunction resolveHostConfig(hostConfig) {\n\tif (hostConfig?.reference) {\n\t\tconst refConfig = getRegisteredHostConfig(hostConfig.reference);\n\t\tif (!refConfig) throw new InvalidHostConfigError(`Host config with name \"${hostConfig.reference}\" not found.`);\n\t\treturn refConfig;\n\t}\n\tif (hostConfig && Object.keys(hostConfig).length > 0) return hostConfig;\n\treturn getDefaultHostConfig$1();\n}\n/**\n* Returns the default host config that is used for all qmfe api calls that do not include a host config\n*/\nfunction getDefaultHostConfig() {\n\treturn getDefaultHostConfig$1();\n}\n/**\n* Registers a callback to be invoked when a fatal authentication error occurs for the provided hostConfig.\n* @param callback The callback function to register\n* @returns A function to unregister the callback\n*/\nfunction onFatalAuthError(hostConfig, callback) {\n\treturn onFatalAuthError$1(hostConfig, callback);\n}\n/**\n* Registers a listener for page redirect requested by the auth module that is handling authentication for the provided host configuration.\n* This is typically used when embedded to let the end user explicitly approve a redirect by for instance clicking an \"authorize\" button. The user can then decide to leave that UI unauthorized\n* and stay on the page.\n* The listener is provided a `proceed` function that if called continues the redirect process. Before actually redirecting the page, the onPageRedirectStarted listeners are called.\n* Note that if more than one listener is registered, it still takes just one proceed call to continue the redirect process so it can not be used to block the redirect.\n*/\nfunction onPageRedirectRequested(hostConfig, listener) {\n\treturn onPageRedirectRequested$1(hostConfig, listener);\n}\n/**\n* Registers a listener that will be called when a page redirect is started by the auth module that is handling authentication for the provided host configuration.\n*/\nfunction onPageRedirectStarted(hostConfig, listener) {\n\treturn onPageRedirectStarted$1(hostConfig, listener);\n}\n\n//#endregion\n//#region src/interceptors/boot-interceptors.ts\n/**\n* @internal\n* The paths expected in the from core-init BFF response.\n* Exposed for testing.\n*/\nconst coreBootPaths = new Set([\n\t\"/api/v1/brands/active\",\n\t\"/api/v1/claims/me\",\n\t\"/api/v1/licenses/allotments\",\n\t\"/api/v1/licenses/allotments/me\",\n\t\"/api/v1/licenses/number\",\n\t\"/api/v1/licenses/status\",\n\t\"/api/v1/tenant-settings\",\n\t\"/api/v1/tenants/me\",\n\t\"/api/v1/user-settings\",\n\t\"/api/v1/users/me\",\n\t\"/api/v1/user-locale\"\n]);\n/**\n* @internal\n* The path of the core-init BFF response.\n* Exposed for testing.\n*/\nconst coreBootEndpoint = \"/api/v1/boot/core-init\";\nlet coreBootPromises = {};\nlet enableDespiteNode = false;\nfunction interceptorEnabled() {\n\treturn !isNode() || enableDespiteNode;\n}\n/**\n* An interceptor that populates the cache from the response of a _backend\n* for frontend_ endpoint. This endpoint contains the response of the most common\n* initial calls, mainly from **qmfe-core**.\n*\n* If the interceptor finds a matching call it runs once and then removes itself after\n* populating the cache causing the original request (and following ones) to hit the cache instead.\n*\n* The endpoint is implemented in the _customizations_ service and should\n* contain the responses of the requests specified in 'coreBootPaths'.\n*/\nconst coreBootInterceptor = async (request, proceed) => {\n\tif (!interceptorEnabled()) return proceed(request);\n\tif (request.pathTemplate !== \"/api/v1/features\" && !coreBootPaths.has(request.pathTemplate)) return proceed(request);\n\tconst hostConfig = request.options?.hostConfig;\n\tif (hostConfig?.authType === \"noauth\" || await isWindows(hostConfig) || (await getPlatform({ hostConfig })).isCloudConsole) return proceed(request);\n\tconst serializedHostConfig = serializeHostConfig$1(request.options?.hostConfig);\n\tcoreBootPromises[serializedHostConfig] ??= callCoreBootAndFillCache(hostConfig, serializedHostConfig);\n\tif (request.pathTemplate !== \"/api/v1/features\") await coreBootPromises[serializedHostConfig];\n\treturn proceed(request);\n};\nasync function callCoreBootAndFillCache(hostConfig, serializedHostConfig) {\n\tconst bootRequest = {\n\t\tmethod: \"GET\",\n\t\tpathTemplate: coreBootEndpoint,\n\t\toptions: { hostConfig }\n\t};\n\ttry {\n\t\tconst bootResponse = await invokeFetch(\".global\", bootRequest);\n\t\tconst locationUrl = toValidLocationUrl(hostConfig);\n\t\tpopulateCacheFrom(bootResponse.data, coreBootPaths, serializedHostConfig, locationUrl);\n\t} catch (e) {\n\t\tconsole.error(\"Failed to bootstrap core-info:\", e);\n\t}\n}\nfunction populateCacheFrom(responses, pathsToInclude, serializedHostConfig, locationUrl) {\n\tif (!responses) return;\n\tfor (const res of responses) {\n\t\tif (!pathsToInclude.has(res.path)) continue;\n\t\tconst completeUrl = locationUrl + res.path;\n\t\tconst { status, method, data } = res;\n\t\tif (typeof data === \"undefined\") continue;\n\t\tif (status && (status < 200 || status >= 300)) continue;\n\t\tconst response = Promise.resolve({\n\t\t\tstatus: status || 200,\n\t\t\tdata\n\t\t});\n\t\tconst cacheKey = toCacheKey({\n\t\t\turl: completeUrl,\n\t\t\tserializedHostConfig\n\t\t});\n\t\tupdateCache(globalCacheNamespace, {\n\t\t\tmethod: method || \"GET\",\n\t\t\tcompleteUrl,\n\t\t\tcacheKey\n\t\t}, response);\n\t}\n}\n\n//#endregion\n//#region src/interceptors/interceptors.ts\nlet GLOBAL_INTERCEPTORS;\nfunction createInterceptors() {\n\tconst interceptors = [...GLOBAL_INTERCEPTORS?.getInterceptors() || []];\n\treturn {\n\t\t/**\n\t\t* Adds an interceptor to the global interceptor stack\n\t\t* Returns the newly added interceptor\n\t\t* @param interceptor the interceptor to add\n\t\t* @returns the newly added interceptor\n\t\t*/\n\t\taddInterceptor: (interceptor) => {\n\t\t\tinterceptors.push(interceptor);\n\t\t\treturn interceptor;\n\t\t},\n\t\t/**\n\t\t* Removes an interceptor from the global interceptor stack\n\t\t* Returns null if the interceptor was not found\n\t\t* @param interceptor the interceptor remove\n\t\t* @returns the removed interceptor or null if not found\n\t\t*/\n\t\tremoveInterceptor: (interceptor) => {\n\t\t\tconst index = interceptors.indexOf(interceptor);\n\t\t\tlet removed;\n\t\t\tif (index !== -1) removed = interceptors.splice(index, 1)[0];\n\t\t\treturn removed || null;\n\t\t},\n\t\t/**\n\t\t* Gets all registered interceptors\n\t\t*/\n\t\tgetInterceptors: () => interceptors\n\t};\n}\nlet addDefaultInterceptorsRun = false;\nfunction addDefaultInterceptors() {\n\tif (addDefaultInterceptorsRun) return;\n\tif (isBrowser()) {\n\t\tconst readFlagsFromUrlQuery = () => {\n\t\t\tconst featuresParam = new URLSearchParams(window.location.search).get(\"features\");\n\t\t\tif (!featuresParam) return {};\n\t\t\treturn featuresParam.split(\",\").map((item) => item.trim()).reduce((map, obj) => {\n\t\t\t\tconst value = !obj.startsWith(\"!\");\n\t\t\t\tconst key = value ? obj : obj.substring(1);\n\t\t\t\tmap[key] = value;\n\t\t\t\treturn map;\n\t\t\t}, {});\n\t\t};\n\t\tconst readFlagsFromLocalStorage = () => {\n\t\t\ttry {\n\t\t\t\tconst featuresParam = localStorage.getItem(\"qcs-features\");\n\t\t\t\tif (featuresParam) return JSON.parse(featuresParam);\n\t\t\t\treturn {};\n\t\t\t} catch {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t};\n\t\tconst flagsFromUrl = readFlagsFromUrlQuery();\n\t\tconst flagsFromLocalStorage = readFlagsFromLocalStorage();\n\t\tconst featuresInterceptor = async (request, proceed) => {\n\t\t\tlet resultPromise;\n\t\t\tif (request.pathTemplate === \"/api/v1/features\") {\n\t\t\t\tresultPromise = proceed(request);\n\t\t\t\tconst result = await resultPromise;\n\t\t\t\treturn {\n\t\t\t\t\t...result,\n\t\t\t\t\tdata: {\n\t\t\t\t\t\t...result.data,\n\t\t\t\t\t\t...flagsFromLocalStorage,\n\t\t\t\t\t\t...flagsFromUrl\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn proceed(request);\n\t\t};\n\t\tGLOBAL_INTERCEPTORS.addInterceptor(featuresInterceptor);\n\t\tGLOBAL_INTERCEPTORS.addInterceptor(coreBootInterceptor);\n\t}\n\taddDefaultInterceptorsRun = true;\n}\n/**\n* The global interceptor stack\n*/\nGLOBAL_INTERCEPTORS = createInterceptors();\n/**\n* Adds an interceptor to the global interceptor stack\n* Returns the newly added interceptor\n* @param interceptor the interceptor to add\n* @returns the newly added interceptor\n*/\nfunction addInterceptor(interceptor) {\n\treturn GLOBAL_INTERCEPTORS.addInterceptor(interceptor);\n}\n/**\n* Removes an interceptor from the global interceptor stack\n* @param interceptor the interceptor remove\n*/\nfunction removeInterceptor(interceptor) {\n\treturn GLOBAL_INTERCEPTORS.removeInterceptor(interceptor);\n}\n/**\n* Gets all registered interceptors\n*/\nfunction getInterceptors() {\n\treturn GLOBAL_INTERCEPTORS.getInterceptors();\n}\n/**\n* The interceptors API\n*/\nconst interceptors = {\n\taddInterceptor,\n\tremoveInterceptor,\n\tgetInterceptors,\n\tcreateInterceptors\n};\n\n//#endregion\nexport { InvalidHostConfigError as A, getPlatform as B, serializeHostConfig as C, unregisterHostConfig as D, toValidWebsocketLocationUrl as E, appendQueryToUrl as F, EncodingError as I, InvokeFetchError as L, clearApiCache as M, invokeFetch as N, AuthorizationError as O, parseFetchResponse as P, exposeInternalApiOnWindow as R, registerHostConfig as S, toValidLocationUrl as T, normalizeHostConfig as _, interceptors as a, onPageRedirectStarted as b, getAccessToken as c, getWebResourceAuthParams as d, getWebSocketAuthParams as f, logout as g, isWindows as h, getInterceptors as i, UnexpectedAuthTypeError as j, InvalidAuthTypeError as k, getDefaultHostConfig as l, isHostCrossOrigin as m, addInterceptor as n, removeInterceptor as o, handleAuthenticationError as p, createInterceptors as r, determineAuthType as s, addDefaultInterceptors as t, getRestCallAuthParams as u, onFatalAuthError as v, setDefaultHostConfig as w, registerAuthModule as x, onPageRedirectRequested as y, generateRandomString as z };","import { A as InvalidHostConfigError, C as serializeHostConfig, D as unregisterHostConfig, E as toValidWebsocketLocationUrl, O as AuthorizationError, S as registerHostConfig, T as toValidLocationUrl, _ as normalizeHostConfig, b as onPageRedirectStarted, c as getAccessToken, d as getWebResourceAuthParams, f as getWebSocketAuthParams, g as logout, h as isWindows, j as UnexpectedAuthTypeError, k as InvalidAuthTypeError, l as getDefaultHostConfig, m as isHostCrossOrigin, p as handleAuthenticationError, s as determineAuthType, u as getRestCallAuthParams, v as onFatalAuthError, w as setDefaultHostConfig, x as registerAuthModule, y as onPageRedirectRequested } from \"./interceptors-DSlOn_k7.js\";\n\n//#region src/auth/auth.ts\n/**\n* Provides functionalities for authentication with Qlik backends.\n*/\nconst auth = {\n\tdetermineAuthType,\n\tgetDefaultHostConfig,\n\tgetRestCallAuthParams,\n\tgetWebResourceAuthParams,\n\tgetWebSocketAuthParams,\n\thandleAuthenticationError,\n\tisHostCrossOrigin,\n\tisWindows,\n\tlogout,\n\tregisterAuthModule,\n\tregisterHostConfig,\n\tserializeHostConfig,\n\tsetDefaultHostConfig,\n\ttoValidLocationUrl,\n\ttoValidWebsocketLocationUrl,\n\tunregisterHostConfig,\n\tnormalizeHostConfig,\n\tonFatalAuthError,\n\tonPageRedirectRequested,\n\tonPageRedirectStarted\n};\n\n//#endregion\nexport { AuthorizationError, InvalidAuthTypeError, InvalidHostConfigError, UnexpectedAuthTypeError, auth as default, determineAuthType, getAccessToken, getDefaultHostConfig, getRestCallAuthParams, getWebResourceAuthParams, getWebSocketAuthParams, handleAuthenticationError, isHostCrossOrigin, isWindows, logout, normalizeHostConfig, onFatalAuthError, onPageRedirectRequested, onPageRedirectStarted, registerAuthModule, registerHostConfig, serializeHostConfig, setDefaultHostConfig, toValidLocationUrl, toValidWebsocketLocationUrl, unregisterHostConfig };"]}