\n /* eslint-enable @typescript-eslint/no-unused-vars */\n isReadOnly, isCode, isBlock, exitDelay, maxWidth, entryDelay, switchDelay, onCopy, hoverTip, clickTip, textAriaLabel, toggleAriaLabel, variant, position, className, additionalActions } = _a, divProps = __rest(_a, [\"isExpanded\", \"onChange\", \"isReadOnly\", \"isCode\", \"isBlock\", \"exitDelay\", \"maxWidth\", \"entryDelay\", \"switchDelay\", \"onCopy\", \"hoverTip\", \"clickTip\", \"textAriaLabel\", \"toggleAriaLabel\", \"variant\", \"position\", \"className\", \"additionalActions\"]);\n const textIdPrefix = 'text-input-';\n const toggleIdPrefix = 'toggle-';\n const contentIdPrefix = 'content-';\n return (react.createElement(\"div\", Object.assign({ className: css(styles$a.clipboardCopy, variant === 'inline-compact' && styles$a.modifiers.inline, isBlock && styles$a.modifiers.block, this.state.expanded && styles$a.modifiers.expanded, className) }, divProps),\n variant === 'inline-compact' && (react.createElement(GenerateId, { prefix: \"\" }, id => (react.createElement(react.Fragment, null,\n !isCode && (react.createElement(\"span\", { className: css(styles$a.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),\n isCode && (react.createElement(\"code\", { className: css(styles$a.clipboardCopyText, styles$a.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),\n react.createElement(\"span\", { className: css(styles$a.clipboardCopyActions) },\n react.createElement(\"span\", { className: css(styles$a.clipboardCopyActionsItem) },\n react.createElement(ClipboardCopyButton, { variant: \"plain\", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, \"aria-label\": hoverTip, onClick: (event) => {\n if (this.timer) {\n window.clearTimeout(this.timer);\n this.setState({ copied: false });\n }\n onCopy(event, this.state.text);\n this.setState({ copied: true }, () => {\n this.timer = window.setTimeout(() => {\n this.setState({ copied: false });\n this.timer = null;\n }, switchDelay);\n });\n } }, this.state.copied ? clickTip : hoverTip)),\n additionalActions && additionalActions))))),\n variant !== 'inline-compact' && (react.createElement(GenerateId, { prefix: \"\" }, id => (react.createElement(react.Fragment, null,\n react.createElement(\"div\", { className: css(styles$a.clipboardCopyGroup) },\n variant === 'expansion' && (react.createElement(ClipboardCopyToggle, { isExpanded: this.state.expanded, onClick: this.expandContent, id: `${toggleIdPrefix}${id}`, textId: `${textIdPrefix}${id}`, contentId: `${contentIdPrefix}${id}`, \"aria-label\": toggleAriaLabel })),\n react.createElement(TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, \"aria-label\": textAriaLabel }),\n react.createElement(ClipboardCopyButton, { exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, \"aria-label\": hoverTip, onClick: (event) => {\n if (this.timer) {\n window.clearTimeout(this.timer);\n this.setState({ copied: false });\n }\n onCopy(event, this.state.text);\n this.setState({ copied: true }, () => {\n this.timer = window.setTimeout(() => {\n this.setState({ copied: false });\n this.timer = null;\n }, switchDelay);\n });\n } }, this.state.copied ? clickTip : hoverTip)),\n this.state.expanded && (react.createElement(ClipboardCopyExpanded, { isReadOnly: isReadOnly, isCode: isCode, id: `content-${id}`, onChange: this.updateText }, this.state.text))))))));\n };\n this.state = {\n text: this.props.children,\n expanded: this.props.isExpanded,\n copied: false\n };\n }\n}\nClipboardCopy.displayName = 'ClipboardCopy';\nClipboardCopy.defaultProps = {\n hoverTip: 'Copy to clipboard',\n clickTip: 'Successfully copied to clipboard!',\n isReadOnly: false,\n isExpanded: false,\n isCode: false,\n variant: 'inline',\n position: TooltipPosition.top,\n maxWidth: '150px',\n exitDelay: 1600,\n entryDelay: 300,\n switchDelay: 2000,\n onCopy: clipboardCopyFunc,\n onChange: () => undefined,\n textAriaLabel: 'Copyable input',\n toggleAriaLabel: 'Show content',\n additionalActions: null\n};\n\nvar contextSelector = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"contextSelector\": \"pf-c-context-selector\",\n \"contextSelectorMenu\": \"pf-c-context-selector__menu\",\n \"contextSelectorMenuFooter\": \"pf-c-context-selector__menu-footer\",\n \"contextSelectorMenuList\": \"pf-c-context-selector__menu-list\",\n \"contextSelectorMenuListItem\": \"pf-c-context-selector__menu-list-item\",\n \"contextSelectorMenuSearch\": \"pf-c-context-selector__menu-search\",\n \"contextSelectorToggle\": \"pf-c-context-selector__toggle\",\n \"contextSelectorToggleIcon\": \"pf-c-context-selector__toggle-icon\",\n \"contextSelectorToggleText\": \"pf-c-context-selector__toggle-text\",\n \"modifiers\": {\n \"fullHeight\": \"pf-m-full-height\",\n \"large\": \"pf-m-large\",\n \"pageInsets\": \"pf-m-page-insets\",\n \"active\": \"pf-m-active\",\n \"expanded\": \"pf-m-expanded\",\n \"plain\": \"pf-m-plain\",\n \"text\": \"pf-m-text\",\n \"disabled\": \"pf-m-disabled\"\n }\n};\n});\n\nvar styles$b = /*@__PURE__*/getDefaultExportFromCjs(contextSelector);\n\nclass ContextSelectorToggle extends react.Component {\n constructor() {\n super(...arguments);\n this.toggle = react.createRef();\n this.componentDidMount = () => {\n document.addEventListener('mousedown', this.onDocClick);\n document.addEventListener('touchstart', this.onDocClick);\n document.addEventListener('keydown', this.onEscPress);\n };\n this.componentWillUnmount = () => {\n document.removeEventListener('mousedown', this.onDocClick);\n document.removeEventListener('touchstart', this.onDocClick);\n document.removeEventListener('keydown', this.onEscPress);\n };\n this.onDocClick = (event) => {\n const { isOpen, parentRef, onToggle } = this.props;\n if (isOpen && parentRef && !parentRef.contains(event.target)) {\n onToggle(null, false);\n this.toggle.current.focus();\n }\n };\n this.onEscPress = (event) => {\n const { isOpen, parentRef, onToggle } = this.props;\n const keyCode = event.keyCode || event.which;\n if (isOpen && keyCode === KEY_CODES.ESCAPE_KEY && parentRef && parentRef.contains(event.target)) {\n onToggle(null, false);\n this.toggle.current.focus();\n }\n };\n this.onKeyDown = (event) => {\n const { isOpen, onToggle, onEnter } = this.props;\n if ((event.keyCode === KEY_CODES.TAB && !isOpen) || event.key !== KEY_CODES.ENTER) {\n return;\n }\n event.preventDefault();\n if ((event.keyCode === KEY_CODES.TAB || event.keyCode === KEY_CODES.ENTER || event.key !== KEY_CODES.SPACE) &&\n isOpen) {\n onToggle(null, !isOpen);\n }\n else if ((event.keyCode === KEY_CODES.ENTER || event.key === ' ') && !isOpen) {\n onToggle(null, !isOpen);\n onEnter();\n }\n };\n }\n render() {\n const _a = this.props, { className, toggleText, isOpen, onToggle, id, isPlain, isText, \n /* eslint-disable @typescript-eslint/no-unused-vars */\n isActive, onEnter, parentRef } = _a, \n /* eslint-enable @typescript-eslint/no-unused-vars */\n props = __rest(_a, [\"className\", \"toggleText\", \"isOpen\", \"onToggle\", \"id\", \"isPlain\", \"isText\", \"isActive\", \"onEnter\", \"parentRef\"]);\n return (react.createElement(\"button\", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$b.contextSelectorToggle, isActive && styles$b.modifiers.active, isPlain && styles$b.modifiers.plain, isText && styles$b.modifiers.text, className), type: \"button\", onClick: event => onToggle(event, !isOpen), \"aria-expanded\": isOpen, onKeyDown: this.onKeyDown }),\n react.createElement(\"span\", { className: css(styles$b.contextSelectorToggleText) }, toggleText),\n react.createElement(\"span\", { className: css(styles$b.contextSelectorToggleIcon) },\n react.createElement(CaretDownIcon, { \"aria-hidden\": true }))));\n }\n}\nContextSelectorToggle.displayName = 'ContextSelectorToggle';\nContextSelectorToggle.defaultProps = {\n className: '',\n toggleText: '',\n isOpen: false,\n onEnter: () => undefined,\n parentRef: null,\n isActive: false,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onToggle: (event, value) => undefined\n};\n\nclass ContextSelectorMenuList extends react.Component {\n constructor() {\n super(...arguments);\n this.refsCollection = [];\n this.sendRef = (index, ref) => {\n this.refsCollection[index] = ref;\n };\n this.render = () => {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _a = this.props, { className, isOpen, children } = _a, props = __rest(_a, [\"className\", \"isOpen\", \"children\"]);\n return (react.createElement(\"ul\", Object.assign({ className: css(styles$b.contextSelectorMenuList, className), hidden: !isOpen, role: \"menu\" }, props), this.extendChildren()));\n };\n }\n extendChildren() {\n return react.Children.map(this.props.children, (child, index) => react.cloneElement(child, {\n sendRef: this.sendRef,\n index\n }));\n }\n}\nContextSelectorMenuList.displayName = 'ContextSelectorMenuList';\nContextSelectorMenuList.defaultProps = {\n children: null,\n className: '',\n isOpen: true\n};\n\nconst ContextSelectorContext = react.createContext({\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onSelect: (event, value) => undefined\n});\n\nvar inputGroup = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"formControl\": \"pf-c-form-control\",\n \"inputGroup\": \"pf-c-input-group\",\n \"inputGroupText\": \"pf-c-input-group__text\",\n \"modifiers\": {\n \"plain\": \"pf-m-plain\"\n }\n};\n});\n\nvar styles$c = /*@__PURE__*/getDefaultExportFromCjs(inputGroup);\n\nclass FormSelect extends react.Component {\n constructor(props) {\n super(props);\n this.handleChange = (event) => {\n this.props.onChange(event.currentTarget.value, event);\n };\n if (!props.id && !props['aria-label']) {\n // eslint-disable-next-line no-console\n console.error('FormSelect requires either an id or aria-label to be specified');\n }\n this.state = {\n ouiaStateId: getDefaultOUIAId(FormSelect.displayName, props.validated)\n };\n }\n render() {\n const _a = this.props, { children, className, value, validated, isDisabled, isRequired, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"children\", \"className\", \"value\", \"validated\", \"isDisabled\", \"isRequired\", \"ouiaId\", \"ouiaSafe\"]);\n /* find selected option and get placeholder flag */\n const selectedOption = react.Children.toArray(children).find((option) => option.props.value === value);\n const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;\n return (react.createElement(\"select\", Object.assign({}, props, { className: css(formStyles.formControl, className, validated === ValidatedOptions.success && formStyles.modifiers.success, validated === ValidatedOptions.warning && formStyles.modifiers.warning, isSelectedPlaceholder && formStyles.modifiers.placeholder), \"aria-invalid\": validated === ValidatedOptions.error }, getOUIAProps(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));\n }\n}\nFormSelect.displayName = 'FormSelect';\nFormSelect.defaultProps = {\n className: '',\n value: '',\n validated: 'default',\n isDisabled: false,\n isRequired: false,\n onBlur: () => undefined,\n onFocus: () => undefined,\n onChange: () => undefined,\n ouiaSafe: true\n};\n\nconst c_form_control_textarea_Height = {\n \"name\": \"--pf-c-form-control--textarea--Height\",\n \"value\": \"auto\",\n \"var\": \"var(--pf-c-form-control--textarea--Height)\"\n};\n\nvar TextAreResizeOrientation;\n(function (TextAreResizeOrientation) {\n TextAreResizeOrientation[\"horizontal\"] = \"horizontal\";\n TextAreResizeOrientation[\"vertical\"] = \"vertical\";\n TextAreResizeOrientation[\"both\"] = \"both\";\n})(TextAreResizeOrientation || (TextAreResizeOrientation = {}));\nclass TextAreaBase extends react.Component {\n constructor(props) {\n super(props);\n this.handleChange = (event) => {\n // https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/\n const field = event.currentTarget;\n if (this.props.autoResize && canUseDOM) {\n field.style.setProperty(c_form_control_textarea_Height.name, 'inherit');\n const computed = window.getComputedStyle(field);\n // Calculate the height\n const height = parseInt(computed.getPropertyValue('border-top-width')) +\n parseInt(computed.getPropertyValue('padding-top')) +\n field.scrollHeight +\n parseInt(computed.getPropertyValue('padding-bottom')) +\n parseInt(computed.getPropertyValue('border-bottom-width'));\n field.style.setProperty(c_form_control_textarea_Height.name, `${height}px`);\n }\n if (this.props.onChange) {\n this.props.onChange(field.value, event);\n }\n };\n if (!props.id && !props['aria-label']) {\n // eslint-disable-next-line no-console\n console.error('TextArea: TextArea requires either an id or aria-label to be specified');\n }\n }\n render() {\n const _a = this.props, { className, value, validated, isRequired, isDisabled, isReadOnly, resizeOrientation, innerRef, readOnly, disabled, \n /* eslint-disable @typescript-eslint/no-unused-vars */\n autoResize, onChange } = _a, \n /* eslint-enable @typescript-eslint/no-unused-vars */\n props = __rest(_a, [\"className\", \"value\", \"validated\", \"isRequired\", \"isDisabled\", \"isReadOnly\", \"resizeOrientation\", \"innerRef\", \"readOnly\", \"disabled\", \"autoResize\", \"onChange\"]);\n const orientation = `resize${capitalize(resizeOrientation)}`;\n return (react.createElement(\"textarea\", Object.assign({ className: css(formStyles.formControl, className, resizeOrientation !== TextAreResizeOrientation.both && formStyles.modifiers[orientation], validated === ValidatedOptions.success && formStyles.modifiers.success, validated === ValidatedOptions.warning && formStyles.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { \"aria-invalid\": validated === ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));\n }\n}\nTextAreaBase.displayName = 'TextArea';\nTextAreaBase.defaultProps = {\n innerRef: react.createRef(),\n className: '',\n isRequired: false,\n isDisabled: false,\n validated: 'default',\n resizeOrientation: 'both',\n 'aria-label': null\n};\nconst TextArea = react.forwardRef((props, ref) => (react.createElement(TextAreaBase, Object.assign({}, props, { innerRef: ref }))));\nTextArea.displayName = 'TextArea';\n\nconst InputGroup = (_a) => {\n var { className = '', children } = _a, props = __rest(_a, [\"className\", \"children\"]);\n const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);\n const idItem = react.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$c.inputGroup, className) }, props), idItem\n ? react.Children.map(children, (child) => formCtrls.includes(child.type.displayName)\n ? react.cloneElement(child, { 'aria-describedby': idItem.props.id })\n : child)\n : children));\n};\nInputGroup.displayName = 'InputGroup';\n\n// seed for the aria-labelledby ID\nlet currentId$2 = 0;\nconst newId = currentId$2++;\nclass ContextSelector extends react.Component {\n constructor(props) {\n super(props);\n this.parentRef = react.createRef();\n this.onEnterPressed = (event) => {\n if (event.charCode === KEY_CODES.ENTER) {\n this.props.onSearchButtonClick();\n }\n };\n this.state = {\n ouiaStateId: getDefaultOUIAId(ContextSelector.displayName)\n };\n }\n render() {\n const toggleId = `pf-context-selector-toggle-id-${newId}`;\n const screenReaderLabelId = `pf-context-selector-label-id-${newId}`;\n const searchButtonId = `pf-context-selector-search-button-id-${newId}`;\n const _a = this.props, { children, className, isOpen, isFullHeight, onToggle, onSelect, screenReaderLabel, toggleText, searchButtonAriaLabel, searchInputValue, onSearchInputChange, searchInputPlaceholder, onSearchButtonClick, menuAppendTo, ouiaId, ouiaSafe, isPlain, isText, footer } = _a, props = __rest(_a, [\"children\", \"className\", \"isOpen\", \"isFullHeight\", \"onToggle\", \"onSelect\", \"screenReaderLabel\", \"toggleText\", \"searchButtonAriaLabel\", \"searchInputValue\", \"onSearchInputChange\", \"searchInputPlaceholder\", \"onSearchButtonClick\", \"menuAppendTo\", \"ouiaId\", \"ouiaSafe\", \"isPlain\", \"isText\", \"footer\"]);\n const menuContainer = (react.createElement(\"div\", { className: css(styles$b.contextSelectorMenu) }, isOpen && (react.createElement(FocusTrap, { focusTrapOptions: { clickOutsideDeactivates: true } },\n react.createElement(\"div\", { className: css(styles$b.contextSelectorMenuSearch) },\n react.createElement(InputGroup, null,\n react.createElement(TextInput, { value: searchInputValue, type: \"search\", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, \"aria-labelledby\": searchButtonId }),\n react.createElement(Button, { variant: ButtonVariant.control, \"aria-label\": searchButtonAriaLabel, id: searchButtonId, onClick: onSearchButtonClick },\n react.createElement(SearchIcon, { \"aria-hidden\": \"true\" })))),\n react.createElement(ContextSelectorContext.Provider, { value: { onSelect } },\n react.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),\n footer))));\n const popperContainer = (react.createElement(\"div\", Object.assign({ className: css(styles$b.contextSelector, isOpen && styles$b.modifiers.expanded, className), ref: this.parentRef }, props), isOpen && menuContainer));\n const mainContainer = (react.createElement(\"div\", Object.assign({ className: css(styles$b.contextSelector, isOpen && styles$b.modifiers.expanded, isFullHeight && styles$b.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),\n screenReaderLabel && (react.createElement(\"span\", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),\n react.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: this.parentRef.current, \"aria-labelledby\": `${screenReaderLabelId} ${toggleId}`, isPlain: isPlain, isText: isText }),\n isOpen && menuAppendTo === 'inline' && menuContainer));\n const getParentElement = () => {\n if (this.parentRef && this.parentRef.current) {\n return this.parentRef.current.parentElement;\n }\n return null;\n };\n return menuAppendTo === 'inline' ? (mainContainer) : (react.createElement(Popper, { trigger: mainContainer, popper: popperContainer, appendTo: menuAppendTo === 'parent' ? getParentElement() : menuAppendTo, isVisible: isOpen }));\n }\n}\nContextSelector.displayName = 'ContextSelector';\nContextSelector.defaultProps = {\n children: null,\n className: '',\n isOpen: false,\n onToggle: () => undefined,\n onSelect: () => undefined,\n screenReaderLabel: '',\n toggleText: '',\n searchButtonAriaLabel: 'Search menu items',\n searchInputValue: '',\n onSearchInputChange: () => undefined,\n searchInputPlaceholder: 'Search',\n onSearchButtonClick: () => undefined,\n menuAppendTo: 'inline',\n ouiaSafe: true,\n footer: null,\n isPlain: false,\n isText: false\n};\n\nclass ContextSelectorItem extends react.Component {\n constructor() {\n super(...arguments);\n this.ref = react.createRef();\n }\n componentDidMount() {\n /* eslint-disable-next-line */\n this.props.sendRef(this.props.index, this.ref.current);\n }\n render() {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _a = this.props, { className, children, onClick, isDisabled, index, sendRef, href } = _a, props = __rest(_a, [\"className\", \"children\", \"onClick\", \"isDisabled\", \"index\", \"sendRef\", \"href\"]);\n const Component = href ? 'a' : 'button';\n const isDisabledLink = href && isDisabled;\n return (react.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (react.createElement(\"li\", { role: \"none\" },\n react.createElement(Component, Object.assign({ className: css(styles$b.contextSelectorMenuListItem, isDisabledLink && styles$b.modifiers.disabled, className), ref: this.ref, onClick: event => {\n if (!isDisabled) {\n onClick(event);\n onSelect(event, children);\n }\n }, disabled: isDisabled && !href, href: href }, (isDisabledLink && { 'aria-disabled': true, tabIndex: -1 }), props), children)))));\n }\n}\nContextSelectorItem.displayName = 'ContextSelectorItem';\nContextSelectorItem.defaultProps = {\n children: null,\n className: '',\n isDisabled: false,\n onClick: () => undefined,\n index: undefined,\n sendRef: () => { },\n href: null\n};\n\nvar dataListGrid = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"dataList\": \"pf-c-data-list\",\n \"dataListCell\": \"pf-c-data-list__cell\",\n \"dataListExpandableContent\": \"pf-c-data-list__expandable-content\",\n \"dataListItemContent\": \"pf-c-data-list__item-content\",\n \"modifiers\": {\n \"icon\": \"pf-m-icon\",\n \"alignRight\": \"pf-m-align-right\",\n \"noFill\": \"pf-m-no-fill\",\n \"flex_2\": \"pf-m-flex-2\",\n \"flex_3\": \"pf-m-flex-3\",\n \"flex_4\": \"pf-m-flex-4\",\n \"flex_5\": \"pf-m-flex-5\",\n \"gridNone\": \"pf-m-grid-none\",\n \"gridSm\": \"pf-m-grid-sm\",\n \"gridMd\": \"pf-m-grid-md\",\n \"gridLg\": \"pf-m-grid-lg\",\n \"gridXl\": \"pf-m-grid-xl\",\n \"grid_2xl\": \"pf-m-grid-2xl\"\n }\n};\n});\n\nvar stylesGrid = /*@__PURE__*/getDefaultExportFromCjs(dataListGrid);\n\nconst gridBreakpointClasses = {\n none: stylesGrid.modifiers.gridNone,\n always: 'pf-m-grid',\n sm: stylesGrid.modifiers.gridSm,\n md: stylesGrid.modifiers.gridMd,\n lg: stylesGrid.modifiers.gridLg,\n xl: stylesGrid.modifiers.gridXl,\n '2xl': stylesGrid.modifiers.grid_2xl\n};\nvar DataListWrapModifier;\n(function (DataListWrapModifier) {\n DataListWrapModifier[\"nowrap\"] = \"nowrap\";\n DataListWrapModifier[\"truncate\"] = \"truncate\";\n DataListWrapModifier[\"breakWord\"] = \"breakWord\";\n})(DataListWrapModifier || (DataListWrapModifier = {}));\nconst DataListContext = react.createContext({\n isSelectable: false\n});\nconst moveItem = (arr, i1, toIndex) => {\n const fromIndex = arr.indexOf(i1);\n if (fromIndex === toIndex) {\n return arr;\n }\n const temp = arr.splice(fromIndex, 1);\n arr.splice(toIndex, 0, temp[0]);\n return arr;\n};\nclass DataList extends react.Component {\n constructor(props) {\n super(props);\n this.dragFinished = false;\n this.html5DragDrop = false;\n this.arrayCopy = react.Children.toArray(this.props.children);\n this.ref = react.createRef();\n this.state = {\n tempItemOrder: [],\n draggedItemId: null,\n draggingToItemIndex: null,\n dragging: false\n };\n this.getIndex = (id) => Array.from(this.ref.current.children).findIndex(item => item.id === id);\n this.move = (itemOrder) => {\n const ulNode = this.ref.current;\n const nodes = Array.from(ulNode.children);\n if (nodes.map(node => node.id).every((id, i) => id === itemOrder[i])) {\n return;\n }\n while (ulNode.firstChild) {\n ulNode.removeChild(ulNode.lastChild);\n }\n itemOrder.forEach(id => {\n ulNode.appendChild(nodes.find(n => n.id === id));\n });\n };\n this.dragStart0 = (el) => {\n const { onDragStart } = this.props;\n const draggedItemId = el.id;\n el.classList.add(__pika_web_default_export_for_treeshaking__.modifiers.ghostRow);\n el.setAttribute('aria-pressed', 'true');\n this.setState({\n draggedItemId,\n dragging: true\n });\n onDragStart && onDragStart(draggedItemId);\n };\n this.dragStart = (evt) => {\n evt.dataTransfer.effectAllowed = 'move';\n evt.dataTransfer.setData('text/plain', evt.currentTarget.id);\n this.dragStart0(evt.currentTarget);\n };\n this.onDragCancel = () => {\n this.move(this.props.itemOrder);\n Array.from(this.ref.current.children).forEach(el => {\n el.classList.remove(__pika_web_default_export_for_treeshaking__.modifiers.ghostRow);\n el.classList.remove(__pika_web_default_export_for_treeshaking__.modifiers.dragOver);\n el.setAttribute('aria-pressed', 'false');\n });\n this.setState({\n draggedItemId: null,\n draggingToItemIndex: null,\n dragging: false\n });\n if (this.props.onDragCancel) {\n this.props.onDragCancel();\n }\n };\n this.dragLeave = (evt) => {\n // This event false fires when we call `this.move()`, so double check we're out of zone\n if (!this.isValidDrop(evt)) {\n this.move(this.props.itemOrder);\n this.setState({\n draggingToItemIndex: null\n });\n }\n };\n this.dragEnd0 = (el) => {\n el.classList.remove(__pika_web_default_export_for_treeshaking__.modifiers.ghostRow);\n el.classList.remove(__pika_web_default_export_for_treeshaking__.modifiers.dragOver);\n el.setAttribute('aria-pressed', 'false');\n this.setState({\n draggedItemId: null,\n draggingToItemIndex: null,\n dragging: false\n });\n };\n this.dragEnd = (evt) => {\n this.dragEnd0(evt.target);\n };\n this.isValidDrop = (evt) => {\n const ulRect = this.ref.current.getBoundingClientRect();\n return (evt.clientX > ulRect.x &&\n evt.clientX < ulRect.x + ulRect.width &&\n evt.clientY > ulRect.y &&\n evt.clientY < ulRect.y + ulRect.height);\n };\n this.drop = (evt) => {\n if (this.isValidDrop(evt)) {\n this.props.onDragFinish(this.state.tempItemOrder);\n }\n else {\n this.onDragCancel();\n }\n };\n this.dragOver0 = (id) => {\n const draggingToItemIndex = Array.from(this.ref.current.children).findIndex(item => item.id === id);\n if (draggingToItemIndex !== this.state.draggingToItemIndex) {\n const tempItemOrder = moveItem([...this.props.itemOrder], this.state.draggedItemId, draggingToItemIndex);\n this.move(tempItemOrder);\n this.setState({\n draggingToItemIndex,\n tempItemOrder\n });\n }\n };\n this.dragOver = (evt) => {\n evt.preventDefault();\n const curListItem = evt.target.closest('li');\n if (!curListItem || !this.ref.current.contains(curListItem) || curListItem.id === this.state.draggedItemId) {\n // We're going nowhere, don't bother calling `dragOver0`\n return null;\n }\n else {\n this.dragOver0(curListItem.id);\n }\n };\n this.handleDragButtonKeys = (evt) => {\n const { dragging } = this.state;\n if (![' ', 'Escape', 'Enter', 'ArrowUp', 'ArrowDown'].includes(evt.key) || !this.html5DragDrop) {\n if (dragging) {\n evt.preventDefault();\n }\n return;\n }\n evt.preventDefault();\n const dragItem = evt.target.closest('li');\n if (evt.key === ' ' || (evt.key === 'Enter' && !dragging)) {\n this.dragStart0(dragItem);\n }\n else if (dragging) {\n if (evt.key === 'Escape' || evt.key === 'Enter') {\n this.setState({\n dragging: false\n });\n this.dragFinished = true;\n if (evt.key === 'Enter') {\n this.dragEnd0(dragItem);\n this.props.onDragFinish(this.state.tempItemOrder);\n }\n else {\n this.onDragCancel();\n }\n }\n else if (evt.key === 'ArrowUp') {\n const nextSelection = dragItem.previousSibling;\n if (nextSelection) {\n this.dragOver0(nextSelection.id);\n dragItem.querySelector(`.${__pika_web_default_export_for_treeshaking__.dataListItemDraggableButton}`).focus();\n }\n }\n else if (evt.key === 'ArrowDown') {\n const nextSelection = dragItem.nextSibling;\n if (nextSelection) {\n this.dragOver0(nextSelection.id);\n dragItem.querySelector(`.${__pika_web_default_export_for_treeshaking__.dataListItemDraggableButton}`).focus();\n }\n }\n }\n };\n this.html5DragDrop = Boolean(props.onDragFinish || props.onDragStart || props.onDragMove || props.onDragCancel);\n if (this.html5DragDrop) {\n // eslint-disable-next-line no-console\n console.warn(\"DataList's onDrag API is deprecated. Use DragDrop instead.\");\n }\n }\n componentDidUpdate(oldProps) {\n if (this.dragFinished) {\n this.dragFinished = false;\n this.setState({\n tempItemOrder: [...this.props.itemOrder],\n draggedItemId: null,\n dragging: false\n });\n }\n if (oldProps.itemOrder !== this.props.itemOrder) {\n this.move(this.props.itemOrder);\n }\n }\n render() {\n const _a = this.props, { className, children, onSelectDataListItem, selectedDataListItemId, isCompact, wrapModifier, \n /* eslint-disable @typescript-eslint/no-unused-vars */\n onDragStart, onDragMove, onDragCancel, onDragFinish, gridBreakpoint, itemOrder } = _a, \n /* eslint-enable @typescript-eslint/no-unused-vars */\n props = __rest(_a, [\"className\", \"children\", \"onSelectDataListItem\", \"selectedDataListItemId\", \"isCompact\", \"wrapModifier\", \"onDragStart\", \"onDragMove\", \"onDragCancel\", \"onDragFinish\", \"gridBreakpoint\", \"itemOrder\"]);\n const { dragging } = this.state;\n const isSelectable = onSelectDataListItem !== undefined;\n const updateSelectedDataListItem = (id) => {\n onSelectDataListItem(id);\n };\n const dragProps = this.html5DragDrop && {\n onDragOver: this.dragOver,\n onDrop: this.dragOver,\n onDragLeave: this.dragLeave\n };\n return (react.createElement(DataListContext.Provider, { value: {\n isSelectable,\n selectedDataListItemId,\n updateSelectedDataListItem,\n isDraggable: this.html5DragDrop,\n dragStart: this.dragStart,\n dragEnd: this.dragEnd,\n drop: this.drop,\n dragKeyHandler: this.handleDragButtonKeys\n } },\n react.createElement(\"ul\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataList, isCompact && __pika_web_default_export_for_treeshaking__.modifiers.compact, gridBreakpointClasses[gridBreakpoint], wrapModifier && __pika_web_default_export_for_treeshaking__.modifiers[wrapModifier], dragging && __pika_web_default_export_for_treeshaking__.modifiers.dragOver, className), style: props.style }, props, dragProps, { ref: this.ref }), children)));\n }\n}\nDataList.displayName = 'DataList';\nDataList.defaultProps = {\n children: null,\n className: '',\n selectedDataListItemId: '',\n isCompact: false,\n gridBreakpoint: 'md',\n wrapModifier: null\n};\n\nconst DataListAction = (_a) => {\n var { children, className, visibility, \n /* eslint-disable @typescript-eslint/no-unused-vars */\n id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isPlainButtonAction } = _a, \n /* eslint-enable @typescript-eslint/no-unused-vars */\n props = __rest(_a, [\"children\", \"className\", \"visibility\", \"id\", 'aria-label', 'aria-labelledby', \"isPlainButtonAction\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemAction, formatBreakpointMods(visibility, __pika_web_default_export_for_treeshaking__), className) }, props), isPlainButtonAction ? react.createElement(\"div\", { className: css(__pika_web_default_export_for_treeshaking__.dataListAction) }, children) : children));\n};\nDataListAction.displayName = 'DataListAction';\n\nconst DataListCell = (_a) => {\n var { children = null, className = '', width = 1, isFilled = true, alignRight = false, isIcon = false, wrapModifier = null } = _a, props = __rest(_a, [\"children\", \"className\", \"width\", \"isFilled\", \"alignRight\", \"isIcon\", \"wrapModifier\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListCell, width > 1 && __pika_web_default_export_for_treeshaking__.modifiers[`flex_${width}`], !isFilled && __pika_web_default_export_for_treeshaking__.modifiers.noFill, alignRight && __pika_web_default_export_for_treeshaking__.modifiers.alignRight, isIcon && __pika_web_default_export_for_treeshaking__.modifiers.icon, className, wrapModifier && __pika_web_default_export_for_treeshaking__.modifiers[wrapModifier]) }, props), children));\n};\nDataListCell.displayName = 'DataListCell';\n\nconst DataListCheck = (_a) => {\n var { className = '', \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onChange = (checked, event) => { }, isValid = true, isDisabled = false, isChecked = null, checked = null, otherControls = false } = _a, props = __rest(_a, [\"className\", \"onChange\", \"isValid\", \"isDisabled\", \"isChecked\", \"checked\", \"otherControls\"]);\n const check = (react.createElement(\"div\", { className: css(__pika_web_default_export_for_treeshaking__.dataListCheck) },\n react.createElement(\"input\", Object.assign({}, props, { type: \"checkbox\", onChange: event => onChange(event.currentTarget.checked, event), \"aria-invalid\": !isValid, disabled: isDisabled, checked: isChecked || checked }))));\n return (react.createElement(react.Fragment, null,\n !otherControls && react.createElement(\"div\", { className: css(__pika_web_default_export_for_treeshaking__.dataListItemControl, className) }, check),\n otherControls && check));\n};\nDataListCheck.displayName = 'DataListCheck';\n\nconst DataListControl = (_a) => {\n var { children, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemControl, className) }, props), children));\n};\nDataListControl.displayName = 'DataListControl';\n\nconst DataListDragButton = (_a) => {\n var { className = '', isDisabled = false } = _a, props = __rest(_a, [\"className\", \"isDisabled\"]);\n return (react.createElement(DataListContext.Consumer, null, ({ dragKeyHandler }) => (react.createElement(\"button\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemDraggableButton, isDisabled && __pika_web_default_export_for_treeshaking__.modifiers.disabled, className), onKeyDown: dragKeyHandler, type: \"button\", disabled: isDisabled }, props),\n react.createElement(\"span\", { className: css(__pika_web_default_export_for_treeshaking__.dataListItemDraggableIcon) },\n react.createElement(GripVerticalIcon, null))))));\n};\nDataListDragButton.displayName = 'DataListDragButton';\n\nfunction findDataListDragButton(node) {\n if (!react.isValidElement(node)) {\n return null;\n }\n if (node.type === DataListDragButton) {\n return node;\n }\n if (node.props.children) {\n for (const child of react.Children.toArray(node.props.children)) {\n const button = findDataListDragButton(child);\n if (button) {\n return button;\n }\n }\n }\n return null;\n}\nclass DataListItem extends react.Component {\n render() {\n const _a = this.props, { children, isExpanded, className, id, 'aria-labelledby': ariaLabelledBy } = _a, props = __rest(_a, [\"children\", \"isExpanded\", \"className\", \"id\", 'aria-labelledby']);\n return (react.createElement(DataListContext.Consumer, null, ({ isSelectable, selectedDataListItemId, updateSelectedDataListItem, isDraggable, dragStart, dragEnd, drop }) => {\n const selectDataListItem = (event) => {\n let target = event.target;\n while (event.currentTarget !== target) {\n if (('onclick' in target && target.onclick) ||\n target.parentNode.classList.contains(__pika_web_default_export_for_treeshaking__.dataListItemAction) ||\n target.parentNode.classList.contains(__pika_web_default_export_for_treeshaking__.dataListItemControl)) {\n // check other event handlers are not present.\n return;\n }\n else {\n target = target.parentNode;\n }\n }\n updateSelectedDataListItem(id);\n };\n const onKeyDown = (event) => {\n if (event.key === KeyTypes.Enter) {\n updateSelectedDataListItem(id);\n }\n };\n // We made the DataListDragButton determine if the entire item is draggable instead of\n // DataListItem like we should have.\n // Recursively search children for the DataListDragButton and see if it's disabled...\n const dragButton = findDataListDragButton(children);\n const dragProps = isDraggable && {\n draggable: dragButton ? !dragButton.props.isDisabled : true,\n onDrop: drop,\n onDragEnd: dragEnd,\n onDragStart: dragStart\n };\n return (react.createElement(\"li\", Object.assign({ id: id, className: css(__pika_web_default_export_for_treeshaking__.dataListItem, isExpanded && __pika_web_default_export_for_treeshaking__.modifiers.expanded, isSelectable && __pika_web_default_export_for_treeshaking__.modifiers.selectable, selectedDataListItemId && selectedDataListItemId === id && __pika_web_default_export_for_treeshaking__.modifiers.selected, className), \"aria-labelledby\": ariaLabelledBy }, (isSelectable && { tabIndex: 0, onClick: selectDataListItem, onKeyDown }), (isSelectable && selectedDataListItemId === id && { 'aria-selected': true }), props, dragProps), react.Children.map(children, child => react.isValidElement(child) &&\n react.cloneElement(child, {\n rowid: ariaLabelledBy\n }))));\n }));\n }\n}\nDataListItem.displayName = 'DataListItem';\nDataListItem.defaultProps = {\n isExpanded: false,\n className: '',\n id: '',\n children: null,\n 'aria-labelledby': ''\n};\n\nconst DataListItemCells = (_a) => {\n var { className = '', dataListCells, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n rowid = '' } = _a, props = __rest(_a, [\"className\", \"dataListCells\", \"rowid\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemContent, className) }, props), dataListCells));\n};\nDataListItemCells.displayName = 'DataListItemCells';\n\nconst DataListItemRow = (_a) => {\n var { children, className = '', rowid = '', wrapModifier = null } = _a, props = __rest(_a, [\"children\", \"className\", \"rowid\", \"wrapModifier\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemRow, className, wrapModifier && __pika_web_default_export_for_treeshaking__.modifiers[wrapModifier]) }, props), react.Children.map(children, child => react.isValidElement(child) &&\n react.cloneElement(child, {\n rowid\n }))));\n};\nDataListItemRow.displayName = 'DataListItemRow';\n\nconst DataListToggle = (_a) => {\n var { className = '', isExpanded = false, 'aria-controls': ariaControls = '', 'aria-label': ariaLabel = 'Details', rowid = '', id } = _a, props = __rest(_a, [\"className\", \"isExpanded\", 'aria-controls', 'aria-label', \"rowid\", \"id\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(__pika_web_default_export_for_treeshaking__.dataListItemControl, className) }, props),\n react.createElement(\"div\", { className: css(__pika_web_default_export_for_treeshaking__.dataListToggle) },\n react.createElement(Button, { id: id, variant: ButtonVariant.plain, \"aria-controls\": ariaControls !== '' && ariaControls, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabel !== 'Details' ? null : `${rowid} ${id}`, \"aria-expanded\": isExpanded },\n react.createElement(\"div\", { className: css(__pika_web_default_export_for_treeshaking__.dataListToggleIcon) },\n react.createElement(AngleRightIcon, null))))));\n};\nDataListToggle.displayName = 'DataListToggle';\n\nvar descriptionList = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"descriptionList\": \"pf-c-description-list\",\n \"descriptionListDescription\": \"pf-c-description-list__description\",\n \"descriptionListGroup\": \"pf-c-description-list__group\",\n \"descriptionListTerm\": \"pf-c-description-list__term\",\n \"descriptionListText\": \"pf-c-description-list__text\",\n \"modifiers\": {\n \"inlineGrid\": \"pf-m-inline-grid\",\n \"autoColumnWidths\": \"pf-m-auto-column-widths\",\n \"autoFit\": \"pf-m-auto-fit\",\n \"compact\": \"pf-m-compact\",\n \"fluid\": \"pf-m-fluid\",\n \"helpText\": \"pf-m-help-text\",\n \"1Col\": \"pf-m-1-col\",\n \"2Col\": \"pf-m-2-col\",\n \"3Col\": \"pf-m-3-col\",\n \"horizontal\": \"pf-m-horizontal\",\n \"vertical\": \"pf-m-vertical\",\n \"1ColOnSm\": \"pf-m-1-col-on-sm\",\n \"2ColOnSm\": \"pf-m-2-col-on-sm\",\n \"3ColOnSm\": \"pf-m-3-col-on-sm\",\n \"horizontalOnSm\": \"pf-m-horizontal-on-sm\",\n \"verticalOnSm\": \"pf-m-vertical-on-sm\",\n \"1ColOnMd\": \"pf-m-1-col-on-md\",\n \"2ColOnMd\": \"pf-m-2-col-on-md\",\n \"3ColOnMd\": \"pf-m-3-col-on-md\",\n \"horizontalOnMd\": \"pf-m-horizontal-on-md\",\n \"verticalOnMd\": \"pf-m-vertical-on-md\",\n \"1ColOnLg\": \"pf-m-1-col-on-lg\",\n \"2ColOnLg\": \"pf-m-2-col-on-lg\",\n \"3ColOnLg\": \"pf-m-3-col-on-lg\",\n \"horizontalOnLg\": \"pf-m-horizontal-on-lg\",\n \"verticalOnLg\": \"pf-m-vertical-on-lg\",\n \"1ColOnXl\": \"pf-m-1-col-on-xl\",\n \"2ColOnXl\": \"pf-m-2-col-on-xl\",\n \"3ColOnXl\": \"pf-m-3-col-on-xl\",\n \"horizontalOnXl\": \"pf-m-horizontal-on-xl\",\n \"verticalOnXl\": \"pf-m-vertical-on-xl\",\n \"1ColOn_2xl\": \"pf-m-1-col-on-2xl\",\n \"2ColOn_2xl\": \"pf-m-2-col-on-2xl\",\n \"3ColOn_2xl\": \"pf-m-3-col-on-2xl\",\n \"horizontalOn_2xl\": \"pf-m-horizontal-on-2xl\",\n \"verticalOn_2xl\": \"pf-m-vertical-on-2xl\"\n }\n};\n});\n\nvar styles$d = /*@__PURE__*/getDefaultExportFromCjs(descriptionList);\n\nconst setAutoFitMinModifiers = (autoFitMinModifier) => {\n const prefix = '--pf-c-description-list--GridTemplateColumns--min';\n const mods = autoFitMinModifier;\n return Object.keys(mods || {}).reduce((acc, curr) => curr === 'default' ? Object.assign(Object.assign({}, acc), { [prefix]: mods[curr] }) : Object.assign(Object.assign({}, acc), { [`${prefix}-on-${curr}`]: mods[curr] }), {});\n};\nconst DescriptionList = (_a) => {\n var { className = '', children = null, isHorizontal = false, isAutoColumnWidths, isAutoFit, isInlineGrid, isCompact, isFluid, columnModifier, autoFitMinModifier, orientation, style } = _a, props = __rest(_a, [\"className\", \"children\", \"isHorizontal\", \"isAutoColumnWidths\", \"isAutoFit\", \"isInlineGrid\", \"isCompact\", \"isFluid\", \"columnModifier\", \"autoFitMinModifier\", \"orientation\", \"style\"]);\n return (react.createElement(\"dl\", Object.assign({ className: css(styles$d.descriptionList, (isHorizontal || isFluid) && styles$d.modifiers.horizontal, isAutoColumnWidths && styles$d.modifiers.autoColumnWidths, isAutoFit && styles$d.modifiers.autoFit, formatBreakpointMods(columnModifier, styles$d), formatBreakpointMods(orientation, styles$d), isInlineGrid && styles$d.modifiers.inlineGrid, isCompact && styles$d.modifiers.compact, isFluid && styles$d.modifiers.fluid, className), style: autoFitMinModifier || style\n ? Object.assign(Object.assign({}, (isAutoFit ? setAutoFitMinModifiers(autoFitMinModifier) : {})), style) : undefined }, props), children));\n};\nDescriptionList.displayName = 'DescriptionList';\n\nconst DescriptionListDescription = (_a) => {\n var { children = null, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"dd\", Object.assign({ className: css(styles$d.descriptionListDescription, className) }, props),\n react.createElement(\"div\", { className: 'pf-c-description-list__text' }, children)));\n};\nDescriptionListDescription.displayName = 'DescriptionListDescription';\n\nconst DescriptionListGroup = (_a) => {\n var { className, children } = _a, props = __rest(_a, [\"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$d.descriptionListGroup, className) }, props), children));\n};\nDescriptionListGroup.displayName = 'DescriptionListGroup';\n\nconst DescriptionListTerm = (_a) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"dt\", Object.assign({ className: css(styles$d.descriptionListTerm, className) }, props),\n react.createElement(\"span\", { className: css(styles$d.descriptionListText) }, children)));\n};\nDescriptionListTerm.displayName = 'DescriptionListTerm';\n\nvar drawer = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"drawer\": \"pf-c-drawer\",\n \"drawerActions\": \"pf-c-drawer__actions\",\n \"drawerBody\": \"pf-c-drawer__body\",\n \"drawerClose\": \"pf-c-drawer__close\",\n \"drawerContent\": \"pf-c-drawer__content\",\n \"drawerHead\": \"pf-c-drawer__head\",\n \"drawerMain\": \"pf-c-drawer__main\",\n \"drawerPanel\": \"pf-c-drawer__panel\",\n \"drawerPanelMain\": \"pf-c-drawer__panel-main\",\n \"drawerSection\": \"pf-c-drawer__section\",\n \"drawerSplitter\": \"pf-c-drawer__splitter\",\n \"drawerSplitterHandle\": \"pf-c-drawer__splitter-handle\",\n \"modifiers\": {\n \"panelBottom\": \"pf-m-panel-bottom\",\n \"inline\": \"pf-m-inline\",\n \"noBorder\": \"pf-m-no-border\",\n \"resizable\": \"pf-m-resizable\",\n \"static\": \"pf-m-static\",\n \"panelLeft\": \"pf-m-panel-left\",\n \"expanded\": \"pf-m-expanded\",\n \"resizing\": \"pf-m-resizing\",\n \"noBackground\": \"pf-m-no-background\",\n \"light_200\": \"pf-m-light-200\",\n \"noPadding\": \"pf-m-no-padding\",\n \"padding\": \"pf-m-padding\",\n \"vertical\": \"pf-m-vertical\",\n \"width_25\": \"pf-m-width-25\",\n \"width_33\": \"pf-m-width-33\",\n \"width_50\": \"pf-m-width-50\",\n \"width_66\": \"pf-m-width-66\",\n \"width_75\": \"pf-m-width-75\",\n \"width_100\": \"pf-m-width-100\",\n \"width_25OnLg\": \"pf-m-width-25-on-lg\",\n \"width_33OnLg\": \"pf-m-width-33-on-lg\",\n \"width_50OnLg\": \"pf-m-width-50-on-lg\",\n \"width_66OnLg\": \"pf-m-width-66-on-lg\",\n \"width_75OnLg\": \"pf-m-width-75-on-lg\",\n \"width_100OnLg\": \"pf-m-width-100-on-lg\",\n \"width_25OnXl\": \"pf-m-width-25-on-xl\",\n \"width_33OnXl\": \"pf-m-width-33-on-xl\",\n \"width_50OnXl\": \"pf-m-width-50-on-xl\",\n \"width_66OnXl\": \"pf-m-width-66-on-xl\",\n \"width_75OnXl\": \"pf-m-width-75-on-xl\",\n \"width_100OnXl\": \"pf-m-width-100-on-xl\",\n \"width_25On_2xl\": \"pf-m-width-25-on-2xl\",\n \"width_33On_2xl\": \"pf-m-width-33-on-2xl\",\n \"width_50On_2xl\": \"pf-m-width-50-on-2xl\",\n \"width_66On_2xl\": \"pf-m-width-66-on-2xl\",\n \"width_75On_2xl\": \"pf-m-width-75-on-2xl\",\n \"width_100On_2xl\": \"pf-m-width-100-on-2xl\",\n \"inlineOnLg\": \"pf-m-inline-on-lg\",\n \"staticOnLg\": \"pf-m-static-on-lg\",\n \"inlineOnXl\": \"pf-m-inline-on-xl\",\n \"staticOnXl\": \"pf-m-static-on-xl\",\n \"inlineOn_2xl\": \"pf-m-inline-on-2xl\",\n \"staticOn_2xl\": \"pf-m-static-on-2xl\"\n },\n \"pageMain\": \"pf-c-page__main\"\n};\n});\n\nvar styles$e = /*@__PURE__*/getDefaultExportFromCjs(drawer);\n\nvar DrawerColorVariant;\n(function (DrawerColorVariant) {\n DrawerColorVariant[\"default\"] = \"default\";\n DrawerColorVariant[\"light200\"] = \"light-200\";\n})(DrawerColorVariant || (DrawerColorVariant = {}));\nconst DrawerContext = react.createContext({\n isExpanded: false,\n isStatic: false,\n onExpand: () => { },\n position: 'right',\n drawerRef: null\n});\nconst Drawer = (_a) => {\n var { className = '', children, isExpanded = false, isInline = false, isStatic = false, position = 'right', onExpand = () => { } } = _a, props = __rest(_a, [\"className\", \"children\", \"isExpanded\", \"isInline\", \"isStatic\", \"position\", \"onExpand\"]);\n const drawerRef = react.useRef();\n return (react.createElement(DrawerContext.Provider, { value: { isExpanded, isStatic, onExpand, position, drawerRef } },\n react.createElement(\"div\", Object.assign({ className: css(styles$e.drawer, isExpanded && styles$e.modifiers.expanded, isInline && styles$e.modifiers.inline, isStatic && styles$e.modifiers.static, position === 'left' && styles$e.modifiers.panelLeft, position === 'bottom' && styles$e.modifiers.panelBottom, className), ref: drawerRef }, props), children)));\n};\nDrawer.displayName = 'Drawer';\n\nconst DrawerActions = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children } = _a, props = __rest(_a, [\"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerActions, className) }, props), children));\n};\nDrawerActions.displayName = 'DrawerActions';\n\nconst DrawerCloseButton = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest(_a, [\"className\", \"onClose\", 'aria-label']);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerClose, className) }, props),\n react.createElement(Button, { variant: \"plain\", onClick: onClose, \"aria-label\": ariaLabel },\n react.createElement(TimesIcon, null))));\n};\nDrawerCloseButton.displayName = 'DrawerCloseButton';\n\nconst DrawerMain = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children } = _a, props = __rest(_a, [\"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerMain, className) }, props), children));\n};\nDrawerMain.displayName = 'DrawerMain';\n\nconst DrawerContent = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children, panelContent, colorVariant = DrawerColorVariant.default } = _a, props = __rest(_a, [\"className\", \"children\", \"panelContent\", \"colorVariant\"]);\n return (react.createElement(DrawerMain, null,\n react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerContent, colorVariant === DrawerColorVariant.light200 && styles$e.modifiers.light_200, className) }, props), children),\n panelContent));\n};\nDrawerContent.displayName = 'DrawerContent';\n\nconst DrawerContentBody = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children, hasPadding = false } = _a, props = __rest(_a, [\"className\", \"children\", \"hasPadding\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerBody, hasPadding && styles$e.modifiers.padding, className) }, props), children));\n};\nDrawerContentBody.displayName = 'DrawerContentBody';\n\nconst DrawerPanelBody = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children, hasNoPadding = false } = _a, props = __rest(_a, [\"className\", \"children\", \"hasNoPadding\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerBody, hasNoPadding && styles$e.modifiers.noPadding, className) }, props), children));\n};\nDrawerPanelBody.displayName = 'DrawerPanelBody';\n\nconst DrawerHead = (_a) => {\n var { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n className = '', children, hasNoPadding = false } = _a, props = __rest(_a, [\"className\", \"children\", \"hasNoPadding\"]);\n return (react.createElement(DrawerPanelBody, { hasNoPadding: hasNoPadding },\n react.createElement(\"div\", Object.assign({ className: css(styles$e.drawerHead, className) }, props), children)));\n};\nDrawerHead.displayName = 'DrawerHead';\n\nlet isResizing = null;\nlet newSize = 0;\nconst DrawerPanelContent = (_a) => {\n var { className = '', id, children, hasNoBorder = false, isResizable = false, onResize, minSize, defaultSize, maxSize, increment = 5, resizeAriaLabel = 'Resize', resizeAriaDescribedBy = 'Press space to begin resizing, and use the arrow keys to grow or shrink the panel. Press enter or escape to finish resizing.', widths, colorVariant = DrawerColorVariant.default } = _a, props = __rest(_a, [\"className\", \"id\", \"children\", \"hasNoBorder\", \"isResizable\", \"onResize\", \"minSize\", \"defaultSize\", \"maxSize\", \"increment\", \"resizeAriaLabel\", \"resizeAriaDescribedBy\", \"widths\", \"colorVariant\"]);\n const panel = react.useRef();\n const { position, isExpanded, isStatic, onExpand, drawerRef } = react.useContext(DrawerContext);\n const hidden = isStatic ? false : !isExpanded;\n const [isExpandedInternal, setIsExpandedInternal] = react.useState(!hidden);\n let currWidth = 0;\n let panelRect;\n let right;\n let left;\n let bottom;\n let setInitialVals = true;\n react.useEffect(() => {\n if (!isStatic && isExpanded) {\n setIsExpandedInternal(isExpanded);\n }\n }, [isStatic, isExpanded]);\n const handleTouchStart = (e) => {\n e.stopPropagation();\n document.addEventListener('touchmove', callbackTouchMove, { passive: false });\n document.addEventListener('touchend', callbackTouchEnd);\n isResizing = true;\n };\n const handleMousedown = (e) => {\n e.stopPropagation();\n e.preventDefault();\n document.addEventListener('mousemove', callbackMouseMove);\n document.addEventListener('mouseup', callbackMouseUp);\n drawerRef.current.classList.add(css(styles$e.modifiers.resizing));\n isResizing = true;\n setInitialVals = true;\n };\n const handleMouseMove = (e) => {\n const mousePos = position === 'bottom' ? e.clientY : e.clientX;\n handleControlMove(e, mousePos);\n };\n const handleTouchMove = (e) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n const touchPos = position === 'bottom' ? e.touches[0].clientY : e.touches[0].clientX;\n handleControlMove(e, touchPos);\n };\n const handleControlMove = (e, controlPosition) => {\n e.stopPropagation();\n if (!isResizing) {\n return;\n }\n if (setInitialVals) {\n panelRect = panel.current.getBoundingClientRect();\n right = panelRect.right;\n left = panelRect.left;\n bottom = panelRect.bottom;\n setInitialVals = false;\n }\n const mousePos = controlPosition;\n let newSize = 0;\n if (position === 'right') {\n newSize = right - mousePos;\n }\n else if (position === 'left') {\n newSize = mousePos - left;\n }\n else {\n newSize = bottom - mousePos;\n }\n if (position === 'bottom') {\n panel.current.style.overflowAnchor = 'none';\n }\n panel.current.style.setProperty('--pf-c-drawer__panel--md--FlexBasis', newSize + 'px');\n currWidth = newSize;\n };\n const handleMouseup = () => {\n if (!isResizing) {\n return;\n }\n drawerRef.current.classList.remove(css(styles$e.modifiers.resizing));\n isResizing = false;\n onResize && onResize(currWidth, id);\n setInitialVals = true;\n document.removeEventListener('mousemove', callbackMouseMove);\n document.removeEventListener('mouseup', callbackMouseUp);\n };\n const handleTouchEnd = (e) => {\n e.stopPropagation();\n if (!isResizing) {\n return;\n }\n isResizing = false;\n onResize && onResize(currWidth, id);\n document.removeEventListener('touchmove', callbackTouchMove);\n document.removeEventListener('touchend', callbackTouchEnd);\n };\n const callbackMouseMove = react.useCallback(handleMouseMove, []);\n const callbackTouchEnd = react.useCallback(handleTouchEnd, []);\n const callbackTouchMove = react.useCallback(handleTouchMove, []);\n const callbackMouseUp = react.useCallback(handleMouseup, []);\n const handleKeys = (e) => {\n const key = e.key;\n if (key !== ' ' &&\n key !== 'Escape' &&\n key !== 'Enter' &&\n key !== 'ArrowUp' &&\n key !== 'ArrowDown' &&\n key !== 'ArrowLeft' &&\n key !== 'ArrowRight') {\n if (isResizing) {\n e.preventDefault();\n }\n return;\n }\n e.preventDefault();\n if (key === ' ' || key === 'Escape' || key === 'Enter') {\n if (key === ' ') {\n isResizing = true;\n }\n else {\n isResizing = false;\n onResize && onResize(currWidth, id);\n }\n const panelRect = panel.current.getBoundingClientRect();\n newSize = position === 'bottom' ? panelRect.height : panelRect.width;\n }\n if (isResizing) {\n let delta = 0;\n if (key === 'ArrowRight') {\n delta = position === 'left' ? increment : -increment;\n }\n else if (key === 'ArrowLeft') {\n delta = position === 'left' ? -increment : increment;\n }\n else if (key === 'ArrowUp') {\n delta = increment;\n }\n else if (key === 'ArrowDown') {\n delta = -increment;\n }\n newSize = newSize + delta;\n if (position === 'bottom') {\n panel.current.style.overflowAnchor = 'none';\n }\n panel.current.style.setProperty('--pf-c-drawer__panel--md--FlexBasis', newSize + 'px');\n currWidth = newSize;\n }\n };\n const boundaryCssVars = {};\n if (defaultSize) {\n boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis'] = defaultSize;\n }\n if (minSize) {\n boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--min'] = minSize;\n }\n if (maxSize) {\n boundaryCssVars['--pf-c-drawer__panel--md--FlexBasis--max'] = maxSize;\n }\n return (react.createElement(\"div\", Object.assign({ id: id, className: css(styles$e.drawerPanel, isResizable && styles$e.modifiers.resizable, hasNoBorder && styles$e.modifiers.noBorder, formatBreakpointMods(widths, styles$e), colorVariant === DrawerColorVariant.light200 && styles$e.modifiers.light_200, className), ref: panel, onTransitionEnd: ev => {\n if (!hidden && ev.nativeEvent.propertyName === 'transform') {\n onExpand();\n }\n setIsExpandedInternal(!hidden);\n }, hidden: hidden }, ((defaultSize || minSize || maxSize) && {\n style: boundaryCssVars\n }), props), isExpandedInternal && (react.createElement(react.Fragment, null,\n isResizable && (react.createElement(react.Fragment, null,\n react.createElement(\"div\", { className: css(styles$e.drawerSplitter, position !== 'bottom' && styles$e.modifiers.vertical), role: \"separator\", tabIndex: 0, \"aria-orientation\": position === 'bottom' ? 'horizontal' : 'vertical', \"aria-label\": resizeAriaLabel, \"aria-describedby\": resizeAriaDescribedBy, onMouseDown: handleMousedown, onKeyDown: handleKeys, onTouchStart: handleTouchStart },\n react.createElement(\"div\", { className: css(styles$e.drawerSplitterHandle), \"aria-hidden\": true })),\n react.createElement(\"div\", { className: css(styles$e.drawerPanelMain) }, children))),\n !isResizable && children))));\n};\nDrawerPanelContent.displayName = 'DrawerPanelContent';\n\nconst AngleDoubleLeftIconConfig = {\n name: 'AngleDoubleLeftIcon',\n height: 512,\n width: 448,\n svgPath: 'M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst AngleDoubleLeftIcon = createIcon(AngleDoubleLeftIconConfig);\n\nconst AngleLeftIconConfig = {\n name: 'AngleLeftIcon',\n height: 512,\n width: 256,\n svgPath: 'M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst AngleLeftIcon = createIcon(AngleLeftIconConfig);\n\nconst AngleDoubleRightIconConfig = {\n name: 'AngleDoubleRightIcon',\n height: 512,\n width: 448,\n svgPath: 'M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst AngleDoubleRightIcon = createIcon(AngleDoubleRightIconConfig);\n\nconst EmptyStatePrimary = (_a) => {\n var { children, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$E.emptyStatePrimary, className) }, props), children));\n};\nEmptyStatePrimary.displayName = 'EmptyStatePrimary';\n\nvar expandableSection = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"expandableSection\": \"pf-c-expandable-section\",\n \"expandableSectionContent\": \"pf-c-expandable-section__content\",\n \"expandableSectionToggle\": \"pf-c-expandable-section__toggle\",\n \"expandableSectionToggleIcon\": \"pf-c-expandable-section__toggle-icon\",\n \"expandableSectionToggleText\": \"pf-c-expandable-section__toggle-text\",\n \"modifiers\": {\n \"expanded\": \"pf-m-expanded\",\n \"detached\": \"pf-m-detached\",\n \"limitWidth\": \"pf-m-limit-width\",\n \"displayLg\": \"pf-m-display-lg\",\n \"active\": \"pf-m-active\",\n \"expandTop\": \"pf-m-expand-top\",\n \"overpassFont\": \"pf-m-overpass-font\"\n }\n};\n});\n\nvar styles$f = /*@__PURE__*/getDefaultExportFromCjs(expandableSection);\n\nclass ExpandableSection extends react.Component {\n constructor(props) {\n super(props);\n this.state = {\n isExpanded: props.isExpanded\n };\n }\n calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded) {\n if (propOrStateIsExpanded && toggleTextExpanded !== '') {\n return toggleTextExpanded;\n }\n if (!propOrStateIsExpanded && toggleTextCollapsed !== '') {\n return toggleTextCollapsed;\n }\n return toggleText;\n }\n render() {\n const _a = this.props, { onToggle: onToggleProp, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n isActive, className, toggleText, toggleTextExpanded, toggleTextCollapsed, children, isExpanded, isDetached, displaySize, isWidthLimited, contentId } = _a, props = __rest(_a, [\"onToggle\", \"isActive\", \"className\", \"toggleText\", \"toggleTextExpanded\", \"toggleTextCollapsed\", \"children\", \"isExpanded\", \"isDetached\", \"displaySize\", \"isWidthLimited\", \"contentId\"]);\n let onToggle = onToggleProp;\n let propOrStateIsExpanded = isExpanded;\n // uncontrolled\n if (isExpanded === undefined) {\n propOrStateIsExpanded = this.state.isExpanded;\n onToggle = isOpen => {\n this.setState({ isExpanded: isOpen }, () => onToggleProp(this.state.isExpanded));\n };\n }\n const computedToggleText = this.calculateToggleText(toggleText, toggleTextExpanded, toggleTextCollapsed, propOrStateIsExpanded);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$f.expandableSection, propOrStateIsExpanded && styles$f.modifiers.expanded, isActive && styles$f.modifiers.active, isDetached && styles$f.modifiers.detached, displaySize === 'large' && styles$f.modifiers.displayLg, isWidthLimited && styles$f.modifiers.limitWidth, className) }),\n !isDetached && (react.createElement(\"button\", { className: css(styles$f.expandableSectionToggle), type: \"button\", \"aria-expanded\": propOrStateIsExpanded, onClick: () => onToggle(!propOrStateIsExpanded) },\n react.createElement(\"span\", { className: css(styles$f.expandableSectionToggleIcon) },\n react.createElement(AngleRightIcon, { \"aria-hidden\": true })),\n react.createElement(\"span\", { className: css(styles$f.expandableSectionToggleText) }, computedToggleText))),\n react.createElement(\"div\", { className: css(styles$f.expandableSectionContent), hidden: !propOrStateIsExpanded, id: contentId }, children)));\n }\n}\nExpandableSection.displayName = 'ExpandableSection';\nExpandableSection.defaultProps = {\n className: '',\n toggleText: '',\n toggleTextExpanded: '',\n toggleTextCollapsed: '',\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onToggle: (isExpanded) => undefined,\n isActive: false,\n isDetached: false,\n displaySize: 'default',\n isWidthLimited: false,\n contentId: ''\n};\n\nvar fileUpload = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"fileUpload\": \"pf-c-file-upload\",\n \"fileUploadFileDetails\": \"pf-c-file-upload__file-details\",\n \"fileUploadFileDetailsSpinner\": \"pf-c-file-upload__file-details-spinner\",\n \"fileUploadFileSelect\": \"pf-c-file-upload__file-select\",\n \"formControl\": \"pf-c-form-control\",\n \"modifiers\": {\n \"dragHover\": \"pf-m-drag-hover\",\n \"loading\": \"pf-m-loading\",\n \"control\": \"pf-m-control\"\n }\n};\n});\n\nvar styles$g = /*@__PURE__*/getDefaultExportFromCjs(fileUpload);\n\nvar fileReaderType;\n(function (fileReaderType) {\n fileReaderType[\"text\"] = \"text\";\n fileReaderType[\"dataURL\"] = \"dataURL\";\n})(fileReaderType || (fileReaderType = {}));\n/**\n * Read a file using the FileReader API, either as a plain text string or as a DataURL string.\n * Returns a promise which will resolve with the file contents as a string or reject with a DOMException.\n *\n * @param {File} fileHandle - File object to read\n * @param {fileReaderType} type - How to read it\n */\nfunction readFile(fileHandle, type) {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => resolve(reader.result);\n reader.onerror = () => reject(reader.error);\n if (type === fileReaderType.text) {\n reader.readAsText(fileHandle);\n }\n else if (type === fileReaderType.dataURL) {\n reader.readAsDataURL(fileHandle);\n }\n else {\n reject('unknown type');\n }\n });\n}\n\nconst FileUploadField = (_a) => {\n var { id, type, value = '', filename = '', onChange = () => { }, onBrowseButtonClick = () => { }, onClearButtonClick = () => { }, onTextAreaClick, onTextChange, className = '', isDisabled = false, isReadOnly = false, isLoading = false, spinnerAriaValueText, isRequired = false, isDragActive = false, validated = 'default', 'aria-label': ariaLabel = 'File upload', filenamePlaceholder = 'Drag a file here or browse to upload', filenameAriaLabel = filename ? 'Read only filename' : filenamePlaceholder, browseButtonText = 'Browse...', clearButtonText = 'Clear', isClearButtonDisabled = !filename && !value, containerRef = null, allowEditingUploadedText = false, hideDefaultPreview = false, children = null } = _a, props = __rest(_a, [\"id\", \"type\", \"value\", \"filename\", \"onChange\", \"onBrowseButtonClick\", \"onClearButtonClick\", \"onTextAreaClick\", \"onTextChange\", \"className\", \"isDisabled\", \"isReadOnly\", \"isLoading\", \"spinnerAriaValueText\", \"isRequired\", \"isDragActive\", \"validated\", 'aria-label', \"filenamePlaceholder\", \"filenameAriaLabel\", \"browseButtonText\", \"clearButtonText\", \"isClearButtonDisabled\", \"containerRef\", \"allowEditingUploadedText\", \"hideDefaultPreview\", \"children\"]);\n const onTextAreaChange = (newValue, event) => {\n onChange(newValue, filename, event);\n onTextChange === null || onTextChange === void 0 ? void 0 : onTextChange(newValue);\n };\n return (react.createElement(\"div\", Object.assign({ className: css(styles$g.fileUpload, isDragActive && styles$g.modifiers.dragHover, isLoading && styles$g.modifiers.loading, className), ref: containerRef }, props),\n react.createElement(\"div\", { className: styles$g.fileUploadFileSelect },\n react.createElement(InputGroup, null,\n react.createElement(TextInput, { isReadOnly // Always read-only regardless of isReadOnly prop (which is just for the TextArea)\n : true, isDisabled: isDisabled, id: `${id}-filename`, name: `${id}-filename`, \"aria-label\": filenameAriaLabel, placeholder: filenamePlaceholder, \"aria-describedby\": `${id}-browse-button`, value: filename }),\n react.createElement(Button, { id: `${id}-browse-button`, variant: ButtonVariant.control, onClick: onBrowseButtonClick, isDisabled: isDisabled }, browseButtonText),\n react.createElement(Button, { variant: ButtonVariant.control, isDisabled: isDisabled || isClearButtonDisabled, onClick: onClearButtonClick }, clearButtonText))),\n react.createElement(\"div\", { className: styles$g.fileUploadFileDetails },\n !hideDefaultPreview && type === fileReaderType.text && (react.createElement(TextArea, { readOnly: isReadOnly || (!!filename && !allowEditingUploadedText), disabled: isDisabled, isRequired: isRequired, resizeOrientation: TextAreResizeOrientation.vertical, validated: validated, id: id, name: id, \"aria-label\": ariaLabel, value: value, onChange: onTextAreaChange, onClick: onTextAreaClick })),\n isLoading && (react.createElement(\"div\", { className: styles$g.fileUploadFileDetailsSpinner },\n react.createElement(Spinner, { size: spinnerSize.lg, \"aria-valuetext\": spinnerAriaValueText })))),\n children));\n};\nFileUploadField.displayName = 'FileUploadField';\n\nconst FileUpload = (_a) => {\n var { id, type, value = type === fileReaderType.text || type === fileReaderType.dataURL ? '' : null, filename = '', children = null, onChange = () => { }, onFileInputChange = null, onReadStarted = () => { }, onReadFinished = () => { }, onReadFailed = () => { }, onClearClick, onClick = event => event.preventDefault(), onTextChange, onDataChange, dropzoneProps = {} } = _a, props = __rest(_a, [\"id\", \"type\", \"value\", \"filename\", \"children\", \"onChange\", \"onFileInputChange\", \"onReadStarted\", \"onReadFinished\", \"onReadFailed\", \"onClearClick\", \"onClick\", \"onTextChange\", \"onDataChange\", \"dropzoneProps\"]);\n const onDropAccepted = (acceptedFiles, event) => {\n if (acceptedFiles.length > 0) {\n const fileHandle = acceptedFiles[0];\n if (event.type === 'drop') {\n onFileInputChange === null || onFileInputChange === void 0 ? void 0 : onFileInputChange(event, fileHandle);\n }\n if (type === fileReaderType.text || type === fileReaderType.dataURL) {\n onChange('', fileHandle.name, event); // Show the filename while reading\n onReadStarted(fileHandle);\n readFile(fileHandle, type)\n .then(data => {\n onReadFinished(fileHandle);\n onChange(data, fileHandle.name, event);\n onDataChange === null || onDataChange === void 0 ? void 0 : onDataChange(data);\n })\n .catch((error) => {\n onReadFailed(error, fileHandle);\n onReadFinished(fileHandle);\n onChange('', '', event); // Clear the filename field on a failure\n onDataChange === null || onDataChange === void 0 ? void 0 : onDataChange('');\n });\n }\n else {\n onChange(fileHandle, fileHandle.name, event);\n }\n }\n dropzoneProps.onDropAccepted && dropzoneProps.onDropAccepted(acceptedFiles, event);\n };\n const onDropRejected = (rejectedFiles, event) => {\n if (rejectedFiles.length > 0) {\n onChange('', rejectedFiles[0].name, event);\n }\n dropzoneProps.onDropRejected && dropzoneProps.onDropRejected(rejectedFiles, event);\n };\n const fileInputRef = react.useRef();\n const setFileValue = (filename) => {\n fileInputRef.current.value = filename;\n };\n const onClearButtonClick = (event) => {\n onChange('', '', event);\n onClearClick === null || onClearClick === void 0 ? void 0 : onClearClick(event);\n setFileValue(null);\n };\n return (react.createElement(Dropzone, Object.assign({ multiple: false }, dropzoneProps, { onDropAccepted: onDropAccepted, onDropRejected: onDropRejected }), ({ getRootProps, getInputProps, isDragActive, open }) => {\n const oldInputProps = getInputProps();\n const inputProps = Object.assign(Object.assign({}, oldInputProps), { onChange: (e) => __awaiter(void 0, void 0, void 0, function* () {\n var _a;\n (_a = oldInputProps.onChange) === null || _a === void 0 ? void 0 : _a.call(oldInputProps, e);\n const files = yield fromEvent(e.nativeEvent);\n if (files.length === 1) {\n onFileInputChange === null || onFileInputChange === void 0 ? void 0 : onFileInputChange(e, files[0]);\n }\n }) });\n return (react.createElement(FileUploadField, Object.assign({}, getRootProps(Object.assign(Object.assign({}, props), { refKey: 'containerRef', onClick: event => event.preventDefault() })), { tabIndex: null, id: id, type: type, filename: filename, value: value, onChange: onChange, isDragActive: isDragActive, onBrowseButtonClick: open, onClearButtonClick: onClearButtonClick, onTextAreaClick: onClick, onTextChange: onTextChange }),\n react.createElement(\"input\", Object.assign({}, inputProps, { ref: input => {\n fileInputRef.current = input;\n inputProps.ref(input);\n } })),\n children));\n }));\n};\nFileUpload.displayName = 'FileUpload';\n\nconst ActionGroup = (_a) => {\n var { children = null, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n const customClassName = css(formStyles$1.formGroup, formStyles$1.modifiers.action, className);\n const formActionsComponent = react.createElement(\"div\", { className: css(formStyles$1.formActions) }, children);\n return (react.createElement(\"div\", Object.assign({}, props, { className: customClassName }),\n react.createElement(\"div\", { className: css(formStyles$1.formGroupControl) }, formActionsComponent)));\n};\nActionGroup.displayName = 'ActionGroup';\n\nconst Form = (_a) => {\n var { children = null, className = '', isHorizontal = false, isWidthLimited = false } = _a, props = __rest(_a, [\"children\", \"className\", \"isHorizontal\", \"isWidthLimited\"]);\n return (react.createElement(\"form\", Object.assign({ noValidate: true }, props, { className: css(formStyles$1.form, isHorizontal && formStyles$1.modifiers.horizontal, isWidthLimited && formStyles$1.modifiers.limitWidth, className) }), children));\n};\nForm.displayName = 'Form';\n\nconst FormGroup = (_a) => {\n var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId } = _a, props = __rest(_a, [\"children\", \"className\", \"label\", \"labelInfo\", \"labelIcon\", \"isRequired\", \"validated\", \"isInline\", \"hasNoPaddingTop\", \"isStack\", \"helperText\", \"isHelperTextBeforeField\", \"helperTextInvalid\", \"helperTextIcon\", \"helperTextInvalidIcon\", \"fieldId\"]);\n const validHelperText = typeof helperText !== 'string' ? (helperText) : (react.createElement(\"div\", { className: css(formStyles$1.formHelperText, validated === ValidatedOptions.success && formStyles$1.modifiers.success, validated === ValidatedOptions.warning && formStyles$1.modifiers.warning), id: `${fieldId}-helper`, \"aria-live\": \"polite\" },\n helperTextIcon && react.createElement(\"span\", { className: css(formStyles$1.formHelperTextIcon) }, helperTextIcon),\n helperText));\n const inValidHelperText = typeof helperTextInvalid !== 'string' ? (helperTextInvalid) : (react.createElement(\"div\", { className: css(formStyles$1.formHelperText, formStyles$1.modifiers.error), id: `${fieldId}-helper`, \"aria-live\": \"polite\" },\n helperTextInvalidIcon && react.createElement(\"span\", { className: css(formStyles$1.formHelperTextIcon) }, helperTextInvalidIcon),\n helperTextInvalid));\n const showValidHelperTxt = (validationType) => validationType !== ValidatedOptions.error && helperText ? validHelperText : '';\n const helperTextToDisplay = validated === ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);\n const labelContent = (react.createElement(react.Fragment, null,\n react.createElement(\"label\", { className: css(formStyles$1.formLabel), htmlFor: fieldId },\n react.createElement(\"span\", { className: css(formStyles$1.formLabelText) }, label),\n isRequired && (react.createElement(\"span\", { className: css(formStyles$1.formLabelRequired), \"aria-hidden\": \"true\" },\n ' ',\n ASTERISK))),\n ' ',\n react.isValidElement(labelIcon) && labelIcon));\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(formStyles$1.formGroup, className) }),\n label && (react.createElement(\"div\", { className: css(formStyles$1.formGroupLabel, labelInfo && formStyles$1.modifiers.info, hasNoPaddingTop && formStyles$1.modifiers.noPaddingTop) },\n labelInfo && (react.createElement(react.Fragment, null,\n react.createElement(\"div\", { className: css(formStyles$1.formGroupLabelMain) }, labelContent),\n react.createElement(\"div\", { className: css(formStyles$1.formGroupLabelInfo) }, labelInfo))),\n !labelInfo && labelContent)),\n react.createElement(\"div\", { className: css(formStyles$1.formGroupControl, isInline && formStyles$1.modifiers.inline, isStack && formStyles$1.modifiers.stack) },\n isHelperTextBeforeField && helperTextToDisplay,\n children,\n !isHelperTextBeforeField && helperTextToDisplay)));\n};\nFormGroup.displayName = 'FormGroup';\n\nconst MinusIconConfig = {\n name: 'MinusIcon',\n height: 512,\n width: 448,\n svgPath: 'M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst MinusIcon = createIcon(MinusIconConfig);\n\nvar jumpLinks = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"jumpLinks\": \"pf-c-jump-links\",\n \"jumpLinksItem\": \"pf-c-jump-links__item\",\n \"jumpLinksLabel\": \"pf-c-jump-links__label\",\n \"jumpLinksLink\": \"pf-c-jump-links__link\",\n \"jumpLinksLinkText\": \"pf-c-jump-links__link-text\",\n \"jumpLinksList\": \"pf-c-jump-links__list\",\n \"jumpLinksMain\": \"pf-c-jump-links__main\",\n \"jumpLinksToggle\": \"pf-c-jump-links__toggle\",\n \"jumpLinksToggleIcon\": \"pf-c-jump-links__toggle-icon\",\n \"jumpLinksToggleText\": \"pf-c-jump-links__toggle-text\",\n \"modifiers\": {\n \"center\": \"pf-m-center\",\n \"vertical\": \"pf-m-vertical\",\n \"expandable\": \"pf-m-expandable\",\n \"nonExpandable\": \"pf-m-non-expandable\",\n \"expandableOnSm\": \"pf-m-expandable-on-sm\",\n \"nonExpandableOnSm\": \"pf-m-non-expandable-on-sm\",\n \"expandableOnMd\": \"pf-m-expandable-on-md\",\n \"nonExpandableOnMd\": \"pf-m-non-expandable-on-md\",\n \"expandableOnLg\": \"pf-m-expandable-on-lg\",\n \"nonExpandableOnLg\": \"pf-m-non-expandable-on-lg\",\n \"expandableOnXl\": \"pf-m-expandable-on-xl\",\n \"nonExpandableOnXl\": \"pf-m-non-expandable-on-xl\",\n \"expandableOn_2xl\": \"pf-m-expandable-on-2xl\",\n \"nonExpandableOn_2xl\": \"pf-m-non-expandable-on-2xl\",\n \"expanded\": \"pf-m-expanded\",\n \"current\": \"pf-m-current\"\n }\n};\n});\n\nvar styles$h = /*@__PURE__*/getDefaultExportFromCjs(jumpLinks);\n\nvar sidebar = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"gutter\": \"pf-m-gutter\",\n \"panelRight\": \"pf-m-panel-right\",\n \"stack\": \"pf-m-stack\",\n \"split\": \"pf-m-split\",\n \"sticky\": \"pf-m-sticky\",\n \"static\": \"pf-m-static\",\n \"noBackground\": \"pf-m-no-background\",\n \"widthDefault\": \"pf-m-width-default\",\n \"width_25\": \"pf-m-width-25\",\n \"width_33\": \"pf-m-width-33\",\n \"width_50\": \"pf-m-width-50\",\n \"width_66\": \"pf-m-width-66\",\n \"width_75\": \"pf-m-width-75\",\n \"width_100\": \"pf-m-width-100\",\n \"widthDefaultOnSm\": \"pf-m-width-default-on-sm\",\n \"width_25OnSm\": \"pf-m-width-25-on-sm\",\n \"width_33OnSm\": \"pf-m-width-33-on-sm\",\n \"width_50OnSm\": \"pf-m-width-50-on-sm\",\n \"width_66OnSm\": \"pf-m-width-66-on-sm\",\n \"width_75OnSm\": \"pf-m-width-75-on-sm\",\n \"width_100OnSm\": \"pf-m-width-100-on-sm\",\n \"widthDefaultOnMd\": \"pf-m-width-default-on-md\",\n \"width_25OnMd\": \"pf-m-width-25-on-md\",\n \"width_33OnMd\": \"pf-m-width-33-on-md\",\n \"width_50OnMd\": \"pf-m-width-50-on-md\",\n \"width_66OnMd\": \"pf-m-width-66-on-md\",\n \"width_75OnMd\": \"pf-m-width-75-on-md\",\n \"width_100OnMd\": \"pf-m-width-100-on-md\",\n \"widthDefaultOnLg\": \"pf-m-width-default-on-lg\",\n \"width_25OnLg\": \"pf-m-width-25-on-lg\",\n \"width_33OnLg\": \"pf-m-width-33-on-lg\",\n \"width_50OnLg\": \"pf-m-width-50-on-lg\",\n \"width_66OnLg\": \"pf-m-width-66-on-lg\",\n \"width_75OnLg\": \"pf-m-width-75-on-lg\",\n \"width_100OnLg\": \"pf-m-width-100-on-lg\",\n \"widthDefaultOnXl\": \"pf-m-width-default-on-xl\",\n \"width_25OnXl\": \"pf-m-width-25-on-xl\",\n \"width_33OnXl\": \"pf-m-width-33-on-xl\",\n \"width_50OnXl\": \"pf-m-width-50-on-xl\",\n \"width_66OnXl\": \"pf-m-width-66-on-xl\",\n \"width_75OnXl\": \"pf-m-width-75-on-xl\",\n \"width_100OnXl\": \"pf-m-width-100-on-xl\",\n \"widthDefaultOn_2xl\": \"pf-m-width-default-on-2xl\",\n \"width_25On_2xl\": \"pf-m-width-25-on-2xl\",\n \"width_33On_2xl\": \"pf-m-width-33-on-2xl\",\n \"width_50On_2xl\": \"pf-m-width-50-on-2xl\",\n \"width_66On_2xl\": \"pf-m-width-66-on-2xl\",\n \"width_75On_2xl\": \"pf-m-width-75-on-2xl\",\n \"width_100On_2xl\": \"pf-m-width-100-on-2xl\"\n },\n \"sidebar\": \"pf-c-sidebar\",\n \"sidebarContent\": \"pf-c-sidebar__content\",\n \"sidebarMain\": \"pf-c-sidebar__main\",\n \"sidebarPanel\": \"pf-c-sidebar__panel\"\n};\n});\n\nvar styles$i = /*@__PURE__*/getDefaultExportFromCjs(sidebar);\n\nconst JumpLinksList = (_a) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"ul\", Object.assign({ className: css(styles$h.jumpLinksList, className) }, props), children));\n};\nJumpLinksList.displayName = 'JumpLinksList';\n\nconst JumpLinksItem = (_a) => {\n var { isActive, href, \n // eslint-disable-next-line\n node, children, onClick, className } = _a, props = __rest(_a, [\"isActive\", \"href\", \"node\", \"children\", \"onClick\", \"className\"]);\n const childrenArr = react.Children.toArray(children);\n const sublists = childrenArr.filter(child => child.type === JumpLinksList);\n children = childrenArr.filter(child => child.type !== JumpLinksList);\n return (react.createElement(\"li\", Object.assign({ className: css(styles$h.jumpLinksItem, isActive && styles$h.modifiers.current, className) }, props),\n react.createElement(\"a\", { className: styles$h.jumpLinksLink, href: href, onClick: onClick },\n react.createElement(\"span\", { className: styles$h.jumpLinksLinkText }, children)),\n sublists));\n};\nJumpLinksItem.displayName = 'JumpLinksItem';\n\nconst c_jump_links__toggle_Display = {\n \"name\": \"--pf-c-jump-links__toggle--Display\",\n \"value\": \"none\",\n \"var\": \"var(--pf-c-jump-links__toggle--Display)\"\n};\n\n// Recursively find JumpLinkItems and return an array of all their scrollNodes\nconst getScrollItems = (children, res) => {\n react.Children.forEach(children, (child) => {\n if (canUseDOM && document.getElementById && document.querySelector && child.type === JumpLinksItem) {\n const scrollNode = child.props.node || child.props.href;\n if (typeof scrollNode === 'string') {\n if (scrollNode.startsWith('#')) {\n // Allow spaces and other special characters as `id`s to be nicer to consumers\n // https://stackoverflow.com/questions/70579/what-are-valid-values-for-the-id-attribute-in-html\n res.push(document.getElementById(scrollNode.substr(1)));\n }\n else {\n res.push(document.querySelector(scrollNode));\n }\n }\n else if (scrollNode instanceof HTMLElement) {\n res.push(scrollNode);\n }\n }\n if ([react.Fragment, JumpLinksList, JumpLinksItem].includes(child.type)) {\n getScrollItems(child.props.children, res);\n }\n });\n return res;\n};\nfunction isResponsive(jumpLinks) {\n // https://github.com/patternfly/patternfly/blob/main/src/patternfly/components/JumpLinks/jump-links.scss#L103\n return (jumpLinks &&\n getComputedStyle(jumpLinks)\n .getPropertyValue(c_jump_links__toggle_Display.name)\n .includes('block'));\n}\nconst JumpLinks = (_a) => {\n var { isCentered, isVertical, children, label, 'aria-label': ariaLabel = typeof label === 'string' ? label : null, scrollableSelector, activeIndex: activeIndexProp = 0, offset = 0, expandable, isExpanded: isExpandedProp = false, alwaysShowLabel = true, toggleAriaLabel = 'Toggle jump links', className } = _a, props = __rest(_a, [\"isCentered\", \"isVertical\", \"children\", \"label\", 'aria-label', \"scrollableSelector\", \"activeIndex\", \"offset\", \"expandable\", \"isExpanded\", \"alwaysShowLabel\", \"toggleAriaLabel\", \"className\"]);\n const hasScrollSpy = Boolean(scrollableSelector);\n const [scrollItems, setScrollItems] = react.useState(hasScrollSpy ? getScrollItems(children, []) : []);\n const [activeIndex, setActiveIndex] = react.useState(activeIndexProp);\n const [isExpanded, setIsExpanded] = react.useState(isExpandedProp);\n // Boolean to disable scroll listener from overriding active state of clicked jumplink\n const isLinkClicked = react.useRef(false);\n // Allow expanding to be controlled for a niche use case\n react.useEffect(() => setIsExpanded(isExpandedProp), [isExpandedProp]);\n const navRef = react.useRef();\n let scrollableElement;\n const scrollSpy = react.useCallback(() => {\n if (!canUseDOM || !hasScrollSpy || !(scrollableElement instanceof HTMLElement)) {\n return;\n }\n if (isLinkClicked.current) {\n isLinkClicked.current = false;\n return;\n }\n const scrollPosition = Math.ceil(scrollableElement.scrollTop + offset);\n window.requestAnimationFrame(() => {\n let newScrollItems = scrollItems;\n // Items might have rendered after this component. Do a quick refresh.\n if (!newScrollItems[0] || newScrollItems.includes(null)) {\n newScrollItems = getScrollItems(children, []);\n setScrollItems(newScrollItems);\n }\n const scrollElements = newScrollItems\n .map((e, index) => ({\n y: e ? e.offsetTop : null,\n index\n }))\n .filter(({ y }) => y !== null)\n .sort((e1, e2) => e2.y - e1.y);\n for (const { y, index } of scrollElements) {\n if (scrollPosition >= y) {\n return setActiveIndex(index);\n }\n }\n });\n }, [scrollItems, hasScrollSpy, scrollableElement]);\n react.useEffect(() => {\n scrollableElement = document.querySelector(scrollableSelector);\n if (!(scrollableElement instanceof HTMLElement)) {\n return;\n }\n scrollableElement.addEventListener('scroll', scrollSpy);\n return () => scrollableElement.removeEventListener('scroll', scrollSpy);\n }, [scrollableSelector, scrollSpy]);\n react.useEffect(() => {\n scrollSpy();\n }, []);\n let jumpLinkIndex = 0;\n const cloneChildren = (children) => !hasScrollSpy\n ? children\n : react.Children.map(children, (child) => {\n if (child.type === JumpLinksItem) {\n const { onClick: onClickProp, isActive: isActiveProp } = child.props;\n const itemIndex = jumpLinkIndex++;\n const scrollItem = scrollItems[itemIndex];\n return react.cloneElement(child, {\n onClick(ev) {\n isLinkClicked.current = true;\n // Items might have rendered after this component. Do a quick refresh.\n let newScrollItems;\n if (!scrollItem) {\n newScrollItems = getScrollItems(children, []);\n setScrollItems(newScrollItems);\n }\n const newScrollItem = scrollItem || newScrollItems[itemIndex];\n if (newScrollItem) {\n // we have to support scrolling to an offset due to sticky sidebar\n const scrollableElement = document.querySelector(scrollableSelector);\n if (scrollableElement instanceof HTMLElement) {\n if (isResponsive(navRef.current)) {\n // Remove class immediately so we can get collapsed height\n if (navRef.current) {\n navRef.current.classList.remove(styles$h.modifiers.expanded);\n }\n let stickyParent = navRef.current && navRef.current.parentElement;\n while (stickyParent && !stickyParent.classList.contains(styles$i.modifiers.sticky)) {\n stickyParent = stickyParent.parentElement;\n }\n setIsExpanded(false);\n if (stickyParent) {\n offset += stickyParent.scrollHeight;\n }\n }\n scrollableElement.scrollTo(0, newScrollItem.offsetTop - offset);\n }\n newScrollItem.focus();\n ev.preventDefault();\n setActiveIndex(itemIndex);\n }\n if (onClickProp) {\n onClickProp(ev);\n }\n },\n isActive: isActiveProp || activeIndex === itemIndex,\n children: cloneChildren(child.props.children)\n });\n }\n else if (child.type === react.Fragment) {\n return cloneChildren(child.props.children);\n }\n else if (child.type === JumpLinksList) {\n return react.cloneElement(child, { children: cloneChildren(child.props.children) });\n }\n return child;\n });\n return (react.createElement(\"nav\", Object.assign({ className: css(styles$h.jumpLinks, isCentered && styles$h.modifiers.center, isVertical && styles$h.modifiers.vertical, formatBreakpointMods(expandable, styles$h), isExpanded && styles$h.modifiers.expanded, className), \"aria-label\": ariaLabel, ref: navRef }, props),\n react.createElement(\"div\", { className: styles$h.jumpLinksMain },\n react.createElement(\"div\", { className: css('pf-c-jump-links__header') },\n expandable && (react.createElement(\"div\", { className: styles$h.jumpLinksToggle },\n react.createElement(Button, { variant: \"plain\", onClick: () => setIsExpanded(!isExpanded), \"aria-label\": toggleAriaLabel, \"aria-expanded\": isExpanded },\n react.createElement(\"span\", { className: styles$h.jumpLinksToggleIcon },\n react.createElement(AngleRightIcon, null)),\n label && react.createElement(\"span\", { className: css(styles$h.jumpLinksToggleText) },\n \" \",\n label,\n \" \")))),\n label && alwaysShowLabel && react.createElement(\"div\", { className: css(styles$h.jumpLinksLabel) }, label)),\n react.createElement(\"ul\", { className: styles$h.jumpLinksList }, cloneChildren(children)))));\n};\nJumpLinks.displayName = 'JumpLinks';\n\nvar label = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"label\": \"pf-c-label\",\n \"labelContent\": \"pf-c-label__content\",\n \"labelIcon\": \"pf-c-label__icon\",\n \"labelText\": \"pf-c-label__text\",\n \"modifiers\": {\n \"compact\": \"pf-m-compact\",\n \"blue\": \"pf-m-blue\",\n \"green\": \"pf-m-green\",\n \"orange\": \"pf-m-orange\",\n \"red\": \"pf-m-red\",\n \"purple\": \"pf-m-purple\",\n \"cyan\": \"pf-m-cyan\",\n \"outline\": \"pf-m-outline\",\n \"overflow\": \"pf-m-overflow\",\n \"editableActive\": \"pf-m-editable-active\"\n }\n};\n});\n\nvar labelStyles = /*@__PURE__*/getDefaultExportFromCjs(label);\n\nvar labelGroup = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"labelGroup\": \"pf-c-label-group\",\n \"labelGroupClose\": \"pf-c-label-group__close\",\n \"labelGroupLabel\": \"pf-c-label-group__label\",\n \"labelGroupList\": \"pf-c-label-group__list\",\n \"labelGroupListItem\": \"pf-c-label-group__list-item\",\n \"labelGroupMain\": \"pf-c-label-group__main\",\n \"labelGroupTextarea\": \"pf-c-label-group__textarea\",\n \"modifiers\": {\n \"category\": \"pf-m-category\",\n \"vertical\": \"pf-m-vertical\",\n \"editable\": \"pf-m-editable\",\n \"textarea\": \"pf-m-textarea\"\n }\n};\n});\n\nvar styles$j = /*@__PURE__*/getDefaultExportFromCjs(labelGroup);\n\nconst colorStyles = {\n blue: labelStyles.modifiers.blue,\n cyan: labelStyles.modifiers.cyan,\n green: labelStyles.modifiers.green,\n orange: labelStyles.modifiers.orange,\n purple: labelStyles.modifiers.purple,\n red: labelStyles.modifiers.red,\n grey: ''\n};\nconst Label = (_a) => {\n var { children, className = '', color = 'grey', variant = 'filled', isCompact = false, isEditable = false, editableProps, isTruncated = false, tooltipPosition, icon, onClose, onEditCancel, onEditComplete, closeBtn, closeBtnAriaLabel, closeBtnProps, href, isOverflowLabel, render } = _a, props = __rest(_a, [\"children\", \"className\", \"color\", \"variant\", \"isCompact\", \"isEditable\", \"editableProps\", \"isTruncated\", \"tooltipPosition\", \"icon\", \"onClose\", \"onEditCancel\", \"onEditComplete\", \"closeBtn\", \"closeBtnAriaLabel\", \"closeBtnProps\", \"href\", \"isOverflowLabel\", \"render\"]);\n const [isEditableActive, setIsEditableActive] = react.useState(false);\n const editableDivRef = react.createRef();\n react.useEffect(() => {\n document.addEventListener('click', onDocClick);\n document.addEventListener('keydown', onKeyDown);\n return () => {\n document.removeEventListener('click', onDocClick);\n document.removeEventListener('keydown', onKeyDown);\n };\n });\n const onDocClick = (event) => {\n if (isEditableActive &&\n editableDivRef &&\n editableDivRef.current &&\n !editableDivRef.current.contains(event.target)) {\n onEditComplete && onEditComplete(editableDivRef.current.textContent);\n setIsEditableActive(false);\n }\n };\n const onKeyDown = (event) => {\n const key = event.key;\n if (!editableDivRef || !editableDivRef.current || !editableDivRef.current.contains(event.target)) {\n return;\n }\n if (isEditableActive && (key === 'Enter' || key === 'Tab')) {\n event.preventDefault();\n event.stopImmediatePropagation();\n onEditComplete && onEditComplete(editableDivRef.current.textContent);\n setIsEditableActive(false);\n }\n if (isEditableActive && key === 'Escape') {\n event.preventDefault();\n event.stopImmediatePropagation();\n // Reset div text to initial children prop - pre-edit\n editableDivRef.current.textContent = children;\n onEditCancel && onEditCancel(children);\n setIsEditableActive(false);\n }\n if (!isEditableActive && key === 'Enter') {\n event.preventDefault();\n event.stopImmediatePropagation();\n setIsEditableActive(true);\n // Set cursor position to end of text\n const el = event.target;\n const range = document.createRange();\n const sel = window.getSelection();\n range.selectNodeContents(el);\n range.collapse(false);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n };\n const LabelComponent = (isOverflowLabel ? 'button' : 'span');\n const Component = href ? 'a' : 'span';\n const button = closeBtn ? (closeBtn) : (react.createElement(Button, Object.assign({ type: \"button\", variant: \"plain\", onClick: onClose, \"aria-label\": closeBtnAriaLabel || `Close ${children}` }, closeBtnProps),\n react.createElement(TimesIcon, null)));\n const textRef = react.createRef();\n // ref to apply tooltip when rendered is used\n const componentRef = react.useRef();\n const [isTooltipVisible, setIsTooltipVisible] = react.useState(false);\n useIsomorphicLayoutEffect(() => {\n setIsTooltipVisible(textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth);\n }, []);\n let content = (react.createElement(react.Fragment, null,\n icon && react.createElement(\"span\", { className: css(labelStyles.labelIcon) }, icon),\n isTruncated && (react.createElement(\"span\", { ref: textRef, className: css(labelStyles.labelText) }, children)),\n !isTruncated && children));\n if (isEditable) {\n content = (react.createElement(react.Fragment, null,\n react.createElement(\"div\", { className: css(inlineStyles.inlineEdit) },\n react.createElement(\"div\", Object.assign({ tabIndex: 0, ref: editableDivRef, className: css(inlineStyles.inlineEditEditableText), role: \"textbox\" }, (isEditableActive && { contentEditable: true }), { suppressContentEditableWarning: true }, editableProps), children))));\n }\n let labelComponentChild = (react.createElement(Component, Object.assign({ className: css(labelStyles.labelContent) }, (href && { href })), content));\n if (render) {\n labelComponentChild = (react.createElement(react.Fragment, null,\n isTooltipVisible && react.createElement(Tooltip, { reference: componentRef, content: children, position: tooltipPosition }),\n render({\n className: labelStyles.labelContent,\n content,\n componentRef\n })));\n }\n else if (isTooltipVisible) {\n labelComponentChild = (react.createElement(Tooltip, { content: children, position: tooltipPosition },\n react.createElement(Component, Object.assign({ className: css(labelStyles.labelContent) }, (href && { href })), content)));\n }\n return (react.createElement(LabelComponent, Object.assign({}, props, { className: css(labelStyles.label, colorStyles[color], variant === 'outline' && labelStyles.modifiers.outline, isOverflowLabel && labelStyles.modifiers.overflow, isCompact && labelStyles.modifiers.compact, isEditable && styles$j.modifiers.editable, isEditableActive && labelStyles.modifiers.editableActive, className) }, (isEditable && {\n onClick: (evt) => {\n const isEvtFromButton = evt.target.closest('button');\n if (isEvtFromButton !== null) {\n return;\n }\n setIsEditableActive(true);\n editableDivRef.current.focus();\n }\n })),\n labelComponentChild,\n onClose && button));\n};\nLabel.displayName = 'Label';\n\nvar list = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"list\": \"pf-c-list\",\n \"listItem\": \"pf-c-list__item\",\n \"listItemIcon\": \"pf-c-list__item-icon\",\n \"modifiers\": {\n \"iconLg\": \"pf-m-icon-lg\",\n \"plain\": \"pf-m-plain\",\n \"inline\": \"pf-m-inline\",\n \"bordered\": \"pf-m-bordered\"\n }\n};\n});\n\nvar styles$k = /*@__PURE__*/getDefaultExportFromCjs(list);\n\nvar OrderType;\n(function (OrderType) {\n OrderType[\"number\"] = \"1\";\n OrderType[\"lowercaseLetter\"] = \"a\";\n OrderType[\"uppercaseLetter\"] = \"A\";\n OrderType[\"lowercaseRomanNumber\"] = \"i\";\n OrderType[\"uppercaseRomanNumber\"] = \"I\";\n})(OrderType || (OrderType = {}));\nvar ListVariant;\n(function (ListVariant) {\n ListVariant[\"inline\"] = \"inline\";\n})(ListVariant || (ListVariant = {}));\nvar ListComponent;\n(function (ListComponent) {\n ListComponent[\"ol\"] = \"ol\";\n ListComponent[\"ul\"] = \"ul\";\n})(ListComponent || (ListComponent = {}));\nconst List = (_a) => {\n var { className = '', children = null, variant = null, isBordered = false, isPlain = false, iconSize = 'default', type = OrderType.number, ref = null, component = ListComponent.ul } = _a, props = __rest(_a, [\"className\", \"children\", \"variant\", \"isBordered\", \"isPlain\", \"iconSize\", \"type\", \"ref\", \"component\"]);\n return component === ListComponent.ol ? (react.createElement(\"ol\", Object.assign({ ref: ref, type: type }, props, { className: css(styles$k.list, variant && styles$k.modifiers[variant], isBordered && styles$k.modifiers.bordered, isPlain && styles$k.modifiers.plain, iconSize && iconSize === 'large' && styles$k.modifiers.iconLg, className) }), children)) : (react.createElement(\"ul\", Object.assign({ ref: ref }, props, { className: css(styles$k.list, variant && styles$k.modifiers[variant], isBordered && styles$k.modifiers.bordered, isPlain && styles$k.modifiers.plain, iconSize && iconSize === 'large' && styles$k.modifiers.iconLg, className) }), children));\n};\nList.displayName = 'List';\n\nconst ListItem = (_a) => {\n var { icon = null, children = null } = _a, props = __rest(_a, [\"icon\", \"children\"]);\n return (react.createElement(\"li\", Object.assign({ className: css(icon && styles$k.listItem) }, props),\n icon && react.createElement(\"span\", { className: css(styles$k.listItemIcon) }, icon),\n children));\n};\nListItem.displayName = 'ListItem';\n\nvar modalBox = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"modalBox\": \"pf-c-modal-box\",\n \"modalBoxBody\": \"pf-c-modal-box__body\",\n \"modalBoxDescription\": \"pf-c-modal-box__description\",\n \"modalBoxFooter\": \"pf-c-modal-box__footer\",\n \"modalBoxHeader\": \"pf-c-modal-box__header\",\n \"modalBoxHeaderMain\": \"pf-c-modal-box__header-main\",\n \"modalBoxTitle\": \"pf-c-modal-box__title\",\n \"modalBoxTitleIcon\": \"pf-c-modal-box__title-icon\",\n \"modalBoxTitleText\": \"pf-c-modal-box__title-text\",\n \"modifiers\": {\n \"sm\": \"pf-m-sm\",\n \"md\": \"pf-m-md\",\n \"lg\": \"pf-m-lg\",\n \"alignTop\": \"pf-m-align-top\",\n \"danger\": \"pf-m-danger\",\n \"warning\": \"pf-m-warning\",\n \"success\": \"pf-m-success\",\n \"default\": \"pf-m-default\",\n \"info\": \"pf-m-info\",\n \"help\": \"pf-m-help\",\n \"icon\": \"pf-m-icon\"\n }\n};\n});\n\nvar modalStyles = /*@__PURE__*/getDefaultExportFromCjs(modalBox);\n\nconst ModalBoxBody = (_a) => {\n var { children = null, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(modalStyles.modalBoxBody, className) }), children));\n};\nModalBoxBody.displayName = 'ModalBoxBody';\n\nconst ModalBoxCloseButton = (_a) => {\n var { className = '', onClose = () => undefined } = _a, props = __rest(_a, [\"className\", \"onClose\"]);\n return (react.createElement(Button, Object.assign({ className: className, variant: \"plain\", onClick: onClose, \"aria-label\": \"Close\" }, props),\n react.createElement(TimesIcon, null)));\n};\nModalBoxCloseButton.displayName = 'ModalBoxCloseButton';\n\nconst c_modal_box_m_align_top_spacer = {\n \"name\": \"--pf-c-modal-box--m-align-top--spacer\",\n \"value\": \"0.5rem\",\n \"var\": \"var(--pf-c-modal-box--m-align-top--spacer)\"\n};\n\nconst ModalBox = (_a) => {\n var { children, className = '', variant = 'default', position, positionOffset, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, style } = _a, props = __rest(_a, [\"children\", \"className\", \"variant\", \"position\", \"positionOffset\", 'aria-labelledby', 'aria-label', 'aria-describedby', \"style\"]);\n if (positionOffset) {\n style = style || {};\n style[c_modal_box_m_align_top_spacer.name] = positionOffset;\n }\n return (react.createElement(\"div\", Object.assign({}, props, { role: \"dialog\", \"aria-label\": ariaLabel || null, \"aria-labelledby\": ariaLabelledby || null, \"aria-describedby\": ariaDescribedby, \"aria-modal\": \"true\", className: css(modalStyles.modalBox, className, position === 'top' && modalStyles.modifiers.alignTop, variant === 'large' && modalStyles.modifiers.lg, variant === 'small' && modalStyles.modifiers.sm, variant === 'medium' && modalStyles.modifiers.md), style: style }), children));\n};\nModalBox.displayName = 'ModalBox';\n\nconst ModalBoxFooter = (_a) => {\n var { children = null, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"footer\", Object.assign({}, props, { className: css(modalStyles.modalBoxFooter, className) }), children));\n};\nModalBoxFooter.displayName = 'ModalBoxFooter';\n\nconst ModalBoxDescription = (_a) => {\n var { children = null, className = '', id = '' } = _a, props = __rest(_a, [\"children\", \"className\", \"id\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { id: id, className: css(modalStyles.modalBoxDescription, className) }), children));\n};\nModalBoxDescription.displayName = 'ModalBoxDescription';\n\nconst ModalBoxHeader = (_a) => {\n var { children = null, className = '', help = null } = _a, props = __rest(_a, [\"children\", \"className\", \"help\"]);\n return (react.createElement(\"header\", Object.assign({ className: css(modalStyles.modalBoxHeader, help && modalStyles.modifiers.help, className) }, props),\n help && (react.createElement(react.Fragment, null,\n react.createElement(\"div\", { className: css(modalStyles.modalBoxHeaderMain) }, children),\n react.createElement(\"div\", { className: \"pf-c-modal-box__header-help\" }, help))),\n !help && children));\n};\nModalBoxHeader.displayName = 'ModalBoxHeader';\n\nconst isVariantIcon = (icon) => ['success', 'danger', 'warning', 'info', 'default'].includes(icon);\nconst ModalBoxTitle = (_a) => {\n var { className = '', id, title, titleIconVariant, titleLabel = '' } = _a, props = __rest(_a, [\"className\", \"id\", \"title\", \"titleIconVariant\", \"titleLabel\"]);\n const [isTooltipVisible, setIsTooltipVisible] = react.useState(false);\n const h1 = react.useRef();\n const label = titleLabel || (isVariantIcon(titleIconVariant) ? `${capitalize(titleIconVariant)} alert:` : titleLabel);\n const variantIcons = {\n success: react.createElement(CheckCircleIcon, null),\n danger: react.createElement(ExclamationCircleIcon, null),\n warning: react.createElement(ExclamationTriangleIcon, null),\n info: react.createElement(InfoCircleIcon, null),\n default: react.createElement(BellIcon, null)\n };\n const CustomIcon = !isVariantIcon(titleIconVariant) && titleIconVariant;\n useIsomorphicLayoutEffect(() => {\n setIsTooltipVisible(h1.current && h1.current.offsetWidth < h1.current.scrollWidth);\n }, []);\n const content = (react.createElement(\"h1\", Object.assign({ id: id, ref: h1, className: css(modalStyles.modalBoxTitle, titleIconVariant && modalStyles.modifiers.icon, className) }, props),\n titleIconVariant && (react.createElement(\"span\", { className: css(modalStyles.modalBoxTitleIcon) }, isVariantIcon(titleIconVariant) ? variantIcons[titleIconVariant] : react.createElement(CustomIcon, null))),\n label && react.createElement(\"span\", { className: css(a11yStyles.screenReader) }, label),\n react.createElement(\"span\", { className: css(modalStyles.modalBoxTitleText) }, title)));\n return isTooltipVisible ? (react.createElement(Tooltip, { content: title, isVisible: true }, content)) : (content);\n};\nModalBoxTitle.displayName = 'ModalBoxTitle';\n\nconst ModalContent = (_a) => {\n var { children, className = '', isOpen = false, header = null, help = null, description = null, title = '', titleIconVariant = null, titleLabel = '', 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, showClose = true, footer = null, actions = [], onClose = () => undefined, variant = 'default', position, positionOffset, width = -1, boxId, labelId, descriptorId, disableFocusTrap = false, hasNoBodyWrapper = false, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, [\"children\", \"className\", \"isOpen\", \"header\", \"help\", \"description\", \"title\", \"titleIconVariant\", \"titleLabel\", 'aria-label', 'aria-describedby', 'aria-labelledby', \"showClose\", \"footer\", \"actions\", \"onClose\", \"variant\", \"position\", \"positionOffset\", \"width\", \"boxId\", \"labelId\", \"descriptorId\", \"disableFocusTrap\", \"hasNoBodyWrapper\", \"ouiaId\", \"ouiaSafe\"]);\n if (!isOpen) {\n return null;\n }\n const modalBoxHeader = header ? (react.createElement(ModalBoxHeader, { help: help }, header)) : (title && (react.createElement(ModalBoxHeader, { help: help },\n react.createElement(ModalBoxTitle, { title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, id: labelId }),\n description && react.createElement(ModalBoxDescription, { id: descriptorId }, description))));\n const modalBoxFooter = footer ? (react.createElement(ModalBoxFooter, null, footer)) : (actions.length > 0 && react.createElement(ModalBoxFooter, null, actions));\n const modalBody = hasNoBodyWrapper ? (children) : (react.createElement(ModalBoxBody, Object.assign({}, props, (!description && !ariaDescribedby && { id: descriptorId })), children));\n const boxStyle = width === -1 ? {} : { width };\n const ariaLabelledbyFormatted = () => {\n if (ariaLabelledby === null) {\n return null;\n }\n const idRefList = [];\n if ((ariaLabel && boxId) !== '') {\n idRefList.push(ariaLabel && boxId);\n }\n if (ariaLabelledby) {\n idRefList.push(ariaLabelledby);\n }\n if (title) {\n idRefList.push(labelId);\n }\n return idRefList.join(' ');\n };\n const modalBox = (react.createElement(ModalBox, Object.assign({ id: boxId, style: boxStyle, className: css(className, isVariantIcon(titleIconVariant) &&\n modalStyles.modifiers[titleIconVariant]), variant: variant, position: position, positionOffset: positionOffset, \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledbyFormatted(), \"aria-describedby\": ariaDescribedby || (hasNoBodyWrapper ? null : descriptorId) }, getOUIAProps(ModalContent.displayName, ouiaId, ouiaSafe)),\n showClose && react.createElement(ModalBoxCloseButton, { onClose: onClose }),\n modalBoxHeader,\n modalBody,\n modalBoxFooter));\n return (react.createElement(Backdrop, null,\n react.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true }, className: css(styles$F.bullseye) }, modalBox)));\n};\nModalContent.displayName = 'ModalContent';\n\nvar ModalVariant;\n(function (ModalVariant) {\n ModalVariant[\"small\"] = \"small\";\n ModalVariant[\"medium\"] = \"medium\";\n ModalVariant[\"large\"] = \"large\";\n ModalVariant[\"default\"] = \"default\";\n})(ModalVariant || (ModalVariant = {}));\nclass Modal extends react.Component {\n constructor(props) {\n super(props);\n this.boxId = '';\n this.labelId = '';\n this.descriptorId = '';\n this.handleEscKeyClick = (event) => {\n const { onEscapePress } = this.props;\n if (event.keyCode === KEY_CODES.ESCAPE_KEY && this.props.isOpen) {\n onEscapePress ? onEscapePress(event) : this.props.onClose();\n }\n };\n this.getElement = (appendTo) => {\n if (typeof appendTo === 'function') {\n return appendTo();\n }\n return appendTo || document.body;\n };\n this.toggleSiblingsFromScreenReaders = (hide) => {\n const { appendTo } = this.props;\n const target = this.getElement(appendTo);\n const bodyChildren = target.children;\n for (const child of Array.from(bodyChildren)) {\n if (child !== this.state.container) {\n hide ? child.setAttribute('aria-hidden', '' + hide) : child.removeAttribute('aria-hidden');\n }\n }\n };\n this.isEmpty = (value) => value === null || value === undefined || value === '';\n const boxIdNum = Modal.currentId++;\n const labelIdNum = boxIdNum + 1;\n const descriptorIdNum = boxIdNum + 2;\n this.boxId = props.id || `pf-modal-part-${boxIdNum}`;\n this.labelId = `pf-modal-part-${labelIdNum}`;\n this.descriptorId = `pf-modal-part-${descriptorIdNum}`;\n this.state = {\n container: undefined,\n ouiaStateId: getDefaultOUIAId(Modal.displayName, props.variant)\n };\n }\n componentDidMount() {\n const { appendTo, title, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, hasNoBodyWrapper, header } = this.props;\n const target = this.getElement(appendTo);\n const container = document.createElement('div');\n this.setState({ container });\n target.appendChild(container);\n target.addEventListener('keydown', this.handleEscKeyClick, false);\n if (this.props.isOpen) {\n target.classList.add(css(styles.backdropOpen));\n }\n else {\n target.classList.remove(css(styles.backdropOpen));\n }\n if (this.isEmpty(title) && this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby)) {\n // eslint-disable-next-line no-console\n console.error('Modal: Specify at least one of: title, aria-label, aria-labelledby.');\n }\n if (this.isEmpty(ariaLabel) && this.isEmpty(ariaLabelledby) && (hasNoBodyWrapper || header)) {\n // eslint-disable-next-line no-console\n console.error('Modal: When using hasNoBodyWrapper or setting a custom header, ensure you assign an accessible name to the the modal container with aria-label or aria-labelledby.');\n }\n }\n componentDidUpdate() {\n const { appendTo } = this.props;\n const target = this.getElement(appendTo);\n if (this.props.isOpen) {\n target.classList.add(css(styles.backdropOpen));\n this.toggleSiblingsFromScreenReaders(true);\n }\n else {\n target.classList.remove(css(styles.backdropOpen));\n this.toggleSiblingsFromScreenReaders(false);\n }\n }\n componentWillUnmount() {\n const { appendTo } = this.props;\n const target = this.getElement(appendTo);\n if (this.state.container) {\n target.removeChild(this.state.container);\n }\n target.removeEventListener('keydown', this.handleEscKeyClick, false);\n target.classList.remove(css(styles.backdropOpen));\n }\n render() {\n const _a = this.props, { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n appendTo, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onEscapePress, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, title, titleIconVariant, titleLabel, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"appendTo\", \"onEscapePress\", 'aria-labelledby', 'aria-label', 'aria-describedby', \"title\", \"titleIconVariant\", \"titleLabel\", \"ouiaId\", \"ouiaSafe\"]);\n const { container } = this.state;\n if (!canUseDOM || !container) {\n return null;\n }\n return reactDom.createPortal(react.createElement(ModalContent, Object.assign({}, props, { boxId: this.boxId, labelId: this.labelId, descriptorId: this.descriptorId, title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, \"aria-label\": ariaLabel, \"aria-describedby\": ariaDescribedby, \"aria-labelledby\": ariaLabelledby, ouiaId: ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe: ouiaSafe })), container);\n }\n}\nModal.displayName = 'Modal';\nModal.currentId = 0;\nModal.defaultProps = {\n className: '',\n isOpen: false,\n title: '',\n titleIconVariant: null,\n titleLabel: '',\n 'aria-label': '',\n showClose: true,\n 'aria-describedby': '',\n 'aria-labelledby': '',\n id: undefined,\n actions: [],\n onClose: () => undefined,\n variant: 'default',\n hasNoBodyWrapper: false,\n appendTo: () => document.body,\n ouiaSafe: true\n};\n\nvar nav = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"divider\": \"pf-c-divider\",\n \"menu\": \"pf-c-menu\",\n \"menuContent\": \"pf-c-menu__content\",\n \"menuItem\": \"pf-c-menu__item\",\n \"menuListItem\": \"pf-c-menu__list-item\",\n \"modifiers\": {\n \"flyout\": \"pf-m-flyout\",\n \"top\": \"pf-m-top\",\n \"left\": \"pf-m-left\",\n \"current\": \"pf-m-current\",\n \"horizontal\": \"pf-m-horizontal\",\n \"tertiary\": \"pf-m-tertiary\",\n \"horizontalSubnav\": \"pf-m-horizontal-subnav\",\n \"light\": \"pf-m-light\",\n \"scrollable\": \"pf-m-scrollable\",\n \"overflowHidden\": \"pf-m-overflow-hidden\",\n \"expandable\": \"pf-m-expandable\",\n \"expanded\": \"pf-m-expanded\",\n \"drilldown\": \"pf-m-drilldown\",\n \"hover\": \"pf-m-hover\",\n \"start\": \"pf-m-start\"\n },\n \"nav\": \"pf-c-nav\",\n \"navItem\": \"pf-c-nav__item\",\n \"navLink\": \"pf-c-nav__link\",\n \"navList\": \"pf-c-nav__list\",\n \"navScrollButton\": \"pf-c-nav__scroll-button\",\n \"navSection\": \"pf-c-nav__section\",\n \"navSectionTitle\": \"pf-c-nav__section-title\",\n \"navSubnav\": \"pf-c-nav__subnav\",\n \"navToggle\": \"pf-c-nav__toggle\",\n \"navToggleIcon\": \"pf-c-nav__toggle-icon\"\n};\n});\n\nvar styles$l = /*@__PURE__*/getDefaultExportFromCjs(nav);\n\nconst NavContext = react.createContext({});\nclass Nav extends react.Component {\n constructor() {\n super(...arguments);\n this.state = {\n isScrollable: false,\n ouiaStateId: getDefaultOUIAId(Nav.displayName, this.props.variant),\n flyoutRef: null\n };\n }\n // Callback from NavItem\n onSelect(event, groupId, itemId, to, preventDefault, onClick) {\n if (preventDefault) {\n event.preventDefault();\n }\n this.props.onSelect({ groupId, itemId, event, to });\n if (onClick) {\n onClick(event, itemId, groupId, to);\n }\n }\n // Callback from NavExpandable\n onToggle(event, groupId, toggleValue) {\n this.props.onToggle({\n event,\n groupId,\n isExpanded: toggleValue\n });\n }\n render() {\n const _a = this.props, { 'aria-label': ariaLabel, children, className, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onSelect, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onToggle, theme, ouiaId, ouiaSafe, variant } = _a, props = __rest(_a, ['aria-label', \"children\", \"className\", \"onSelect\", \"onToggle\", \"theme\", \"ouiaId\", \"ouiaSafe\", \"variant\"]);\n const isHorizontal = ['horizontal', 'tertiary'].includes(variant);\n return (react.createElement(NavContext.Provider, { value: {\n onSelect: (event, groupId, itemId, to, preventDefault, onClick) => this.onSelect(event, groupId, itemId, to, preventDefault, onClick),\n onToggle: (event, groupId, expanded) => this.onToggle(event, groupId, expanded),\n updateIsScrollable: (isScrollable) => this.setState({ isScrollable }),\n isHorizontal: ['horizontal', 'tertiary', 'horizontal-subnav'].includes(variant),\n flyoutRef: this.state.flyoutRef,\n setFlyoutRef: flyoutRef => this.setState({ flyoutRef })\n } },\n react.createElement(\"nav\", Object.assign({ className: css(styles$l.nav, theme === 'light' && styles$l.modifiers.light, isHorizontal && styles$l.modifiers.horizontal, variant === 'tertiary' && styles$l.modifiers.tertiary, variant === 'horizontal-subnav' && styles$l.modifiers.horizontalSubnav, this.state.isScrollable && styles$l.modifiers.scrollable, className), \"aria-label\": ariaLabel || (variant === 'tertiary' ? 'Local' : 'Global') }, getOUIAProps(Nav.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props), children)));\n }\n}\nNav.displayName = 'Nav';\nNav.defaultProps = {\n onSelect: () => undefined,\n onToggle: () => undefined,\n theme: 'dark',\n ouiaSafe: true\n};\n\nvar page = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"avatar\": \"pf-c-avatar\",\n \"brand\": \"pf-c-brand\",\n \"button\": \"pf-c-button\",\n \"card\": \"pf-c-card\",\n \"contextSelector\": \"pf-c-context-selector\",\n \"drawer\": \"pf-c-drawer\",\n \"masthead\": \"pf-c-masthead\",\n \"modifiers\": {\n \"light\": \"pf-m-light\",\n \"menu\": \"pf-m-menu\",\n \"hidden\": \"pf-m-hidden\",\n \"hiddenOnSm\": \"pf-m-hidden-on-sm\",\n \"visibleOnSm\": \"pf-m-visible-on-sm\",\n \"hiddenOnMd\": \"pf-m-hidden-on-md\",\n \"visibleOnMd\": \"pf-m-visible-on-md\",\n \"hiddenOnLg\": \"pf-m-hidden-on-lg\",\n \"visibleOnLg\": \"pf-m-visible-on-lg\",\n \"hiddenOnXl\": \"pf-m-hidden-on-xl\",\n \"visibleOnXl\": \"pf-m-visible-on-xl\",\n \"hiddenOn_2xl\": \"pf-m-hidden-on-2xl\",\n \"visibleOn_2xl\": \"pf-m-visible-on-2xl\",\n \"read\": \"pf-m-read\",\n \"selected\": \"pf-m-selected\",\n \"unread\": \"pf-m-unread\",\n \"attention\": \"pf-m-attention\",\n \"expanded\": \"pf-m-expanded\",\n \"collapsed\": \"pf-m-collapsed\",\n \"limitWidth\": \"pf-m-limit-width\",\n \"alignCenter\": \"pf-m-align-center\",\n \"stickyTop\": \"pf-m-sticky-top\",\n \"stickyBottom\": \"pf-m-sticky-bottom\",\n \"overflowScroll\": \"pf-m-overflow-scroll\",\n \"shadowBottom\": \"pf-m-shadow-bottom\",\n \"shadowTop\": \"pf-m-shadow-top\",\n \"fill\": \"pf-m-fill\",\n \"noFill\": \"pf-m-no-fill\",\n \"dark_100\": \"pf-m-dark-100\",\n \"dark_200\": \"pf-m-dark-200\",\n \"padding\": \"pf-m-padding\",\n \"noPadding\": \"pf-m-no-padding\",\n \"paddingOnSm\": \"pf-m-padding-on-sm\",\n \"noPaddingOnSm\": \"pf-m-no-padding-on-sm\",\n \"paddingOnMd\": \"pf-m-padding-on-md\",\n \"noPaddingOnMd\": \"pf-m-no-padding-on-md\",\n \"paddingOnLg\": \"pf-m-padding-on-lg\",\n \"noPaddingOnLg\": \"pf-m-no-padding-on-lg\",\n \"paddingOnXl\": \"pf-m-padding-on-xl\",\n \"noPaddingOnXl\": \"pf-m-no-padding-on-xl\",\n \"paddingOn_2xl\": \"pf-m-padding-on-2xl\",\n \"noPaddingOn_2xl\": \"pf-m-no-padding-on-2xl\"\n },\n \"nav\": \"pf-c-nav\",\n \"notificationBadge\": \"pf-c-notification-badge\",\n \"page\": \"pf-c-page\",\n \"pageDrawer\": \"pf-c-page__drawer\",\n \"pageHeader\": \"pf-c-page__header\",\n \"pageHeaderBrand\": \"pf-c-page__header-brand\",\n \"pageHeaderBrandLink\": \"pf-c-page__header-brand-link\",\n \"pageHeaderBrandToggle\": \"pf-c-page__header-brand-toggle\",\n \"pageHeaderNav\": \"pf-c-page__header-nav\",\n \"pageHeaderTools\": \"pf-c-page__header-tools\",\n \"pageHeaderToolsGroup\": \"pf-c-page__header-tools-group\",\n \"pageHeaderToolsItem\": \"pf-c-page__header-tools-item\",\n \"pageMain\": \"pf-c-page__main\",\n \"pageMainBody\": \"pf-c-page__main-body\",\n \"pageMainBreadcrumb\": \"pf-c-page__main-breadcrumb\",\n \"pageMainDrawer\": \"pf-c-page__main-drawer\",\n \"pageMainGroup\": \"pf-c-page__main-group\",\n \"pageMainNav\": \"pf-c-page__main-nav\",\n \"pageMainSection\": \"pf-c-page__main-section\",\n \"pageMainSubnav\": \"pf-c-page__main-subnav\",\n \"pageMainTabs\": \"pf-c-page__main-tabs\",\n \"pageMainWizard\": \"pf-c-page__main-wizard\",\n \"pageSidebar\": \"pf-c-page__sidebar\",\n \"pageSidebarBody\": \"pf-c-page__sidebar-body\"\n};\n});\n\nvar styles$m = /*@__PURE__*/getDefaultExportFromCjs(page);\n\nconst global_breakpoint_xl = {\n \"name\": \"--pf-global--breakpoint--xl\",\n \"value\": \"1200px\",\n \"var\": \"var(--pf-global--breakpoint--xl)\"\n};\n\nconst PageGroup = (_a) => {\n var { className = '', children, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest(_a, [\"className\", \"children\", \"sticky\", \"hasShadowTop\", \"hasShadowBottom\", \"hasOverflowScroll\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$m.pageMainGroup, sticky === 'top' && styles$m.modifiers.stickyTop, sticky === 'bottom' && styles$m.modifiers.stickyBottom, hasShadowTop && styles$m.modifiers.shadowTop, hasShadowBottom && styles$m.modifiers.shadowBottom, hasOverflowScroll && styles$m.modifiers.overflowScroll, className) }), children));\n};\nPageGroup.displayName = 'PageGroup';\n\nvar PageLayouts;\n(function (PageLayouts) {\n PageLayouts[\"vertical\"] = \"vertical\";\n PageLayouts[\"horizontal\"] = \"horizontal\";\n})(PageLayouts || (PageLayouts = {}));\nconst PageContext = react.createContext({\n isManagedSidebar: false,\n isNavOpen: false,\n onNavToggle: () => null\n});\nconst PageContextProvider = PageContext.Provider;\nconst PageContextConsumer = PageContext.Consumer;\nclass Page extends react.Component {\n constructor(props) {\n super(props);\n this.mainRef = react.createRef();\n this.getWindowWidth = () => (canUseDOM ? window.innerWidth : 1200);\n this.isMobile = () => \n // eslint-disable-next-line radix\n this.getWindowWidth() < Number.parseInt(global_breakpoint_xl.value, 10);\n this.resize = () => {\n const { onPageResize } = this.props;\n const mobileView = this.isMobile();\n if (onPageResize) {\n onPageResize({ mobileView, windowSize: this.getWindowWidth() });\n }\n if (mobileView !== this.state.mobileView) {\n this.setState({ mobileView });\n }\n };\n this.handleResize = debounce(this.resize, 250);\n this.handleMainClick = () => {\n if (this.isMobile() && this.state.mobileIsNavOpen && this.mainRef.current) {\n this.setState({ mobileIsNavOpen: false });\n }\n };\n this.onNavToggleMobile = () => {\n this.setState(prevState => ({\n mobileIsNavOpen: !prevState.mobileIsNavOpen\n }));\n };\n this.onNavToggleDesktop = () => {\n this.setState(prevState => ({\n desktopIsNavOpen: !prevState.desktopIsNavOpen\n }));\n };\n const { isManagedSidebar, defaultManagedSidebarIsOpen } = props;\n const managedSidebarOpen = !isManagedSidebar ? true : defaultManagedSidebarIsOpen;\n this.state = {\n desktopIsNavOpen: managedSidebarOpen,\n mobileIsNavOpen: false,\n mobileView: false\n };\n }\n componentDidMount() {\n const { isManagedSidebar, onPageResize } = this.props;\n if (isManagedSidebar || onPageResize) {\n if (canUseDOM) {\n window.addEventListener('resize', this.handleResize);\n }\n const currentRef = this.mainRef.current;\n if (currentRef) {\n currentRef.addEventListener('mousedown', this.handleMainClick);\n currentRef.addEventListener('touchstart', this.handleMainClick);\n }\n // Initial check if should be shown\n this.resize();\n }\n }\n componentWillUnmount() {\n const { isManagedSidebar, onPageResize } = this.props;\n if (isManagedSidebar || onPageResize) {\n if (canUseDOM) {\n window.removeEventListener('resize', this.handleResize);\n }\n const currentRef = this.mainRef.current;\n if (currentRef) {\n currentRef.removeEventListener('mousedown', this.handleMainClick);\n currentRef.removeEventListener('touchstart', this.handleMainClick);\n }\n }\n }\n render() {\n const _a = this.props, { breadcrumb, isBreadcrumbWidthLimited, className, children, header, sidebar, notificationDrawer, isNotificationDrawerExpanded, onNotificationDrawerExpand, isTertiaryNavWidthLimited, skipToContent, role, mainContainerId, isManagedSidebar, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n defaultManagedSidebarIsOpen, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onPageResize, mainAriaLabel, mainTabIndex, tertiaryNav, isTertiaryNavGrouped, isBreadcrumbGrouped, additionalGroupedContent, groupProps } = _a, rest = __rest(_a, [\"breadcrumb\", \"isBreadcrumbWidthLimited\", \"className\", \"children\", \"header\", \"sidebar\", \"notificationDrawer\", \"isNotificationDrawerExpanded\", \"onNotificationDrawerExpand\", \"isTertiaryNavWidthLimited\", \"skipToContent\", \"role\", \"mainContainerId\", \"isManagedSidebar\", \"defaultManagedSidebarIsOpen\", \"onPageResize\", \"mainAriaLabel\", \"mainTabIndex\", \"tertiaryNav\", \"isTertiaryNavGrouped\", \"isBreadcrumbGrouped\", \"additionalGroupedContent\", \"groupProps\"]);\n const { mobileView, mobileIsNavOpen, desktopIsNavOpen } = this.state;\n const context = {\n isManagedSidebar,\n onNavToggle: mobileView ? this.onNavToggleMobile : this.onNavToggleDesktop,\n isNavOpen: mobileView ? mobileIsNavOpen : desktopIsNavOpen\n };\n let nav = null;\n if (tertiaryNav && isTertiaryNavWidthLimited) {\n nav = (react.createElement(\"div\", { className: css(styles$m.pageMainNav, styles$m.modifiers.limitWidth) },\n react.createElement(\"div\", { className: css(styles$m.pageMainBody) }, tertiaryNav)));\n }\n else if (tertiaryNav) {\n nav = react.createElement(\"div\", { className: css(styles$m.pageMainNav) }, tertiaryNav);\n }\n let crumb = null;\n if (breadcrumb && isBreadcrumbWidthLimited) {\n crumb = (react.createElement(\"section\", { className: css(styles$m.pageMainBreadcrumb, styles$m.modifiers.limitWidth) },\n react.createElement(\"div\", { className: css(styles$m.pageMainBody) }, breadcrumb)));\n }\n else if (breadcrumb) {\n crumb = react.createElement(\"section\", { className: css(styles$m.pageMainBreadcrumb) }, breadcrumb);\n }\n const isGrouped = isTertiaryNavGrouped || isBreadcrumbGrouped || additionalGroupedContent;\n const group = isGrouped ? (react.createElement(PageGroup, Object.assign({}, groupProps),\n isTertiaryNavGrouped && nav,\n isBreadcrumbGrouped && crumb,\n additionalGroupedContent)) : null;\n const main = (react.createElement(\"main\", { ref: this.mainRef, role: role, id: mainContainerId, className: css(styles$m.pageMain), tabIndex: mainTabIndex, \"aria-label\": mainAriaLabel },\n group,\n !isTertiaryNavGrouped && nav,\n !isBreadcrumbGrouped && crumb,\n children));\n const panelContent = react.createElement(DrawerPanelContent, null, notificationDrawer);\n return (react.createElement(PageContextProvider, { value: context },\n react.createElement(\"div\", Object.assign({}, rest, { className: css(styles$m.page, className) }),\n skipToContent,\n header,\n sidebar,\n notificationDrawer && (react.createElement(\"div\", { className: css(styles$m.pageDrawer) },\n react.createElement(Drawer, { isExpanded: isNotificationDrawerExpanded, onExpand: onNotificationDrawerExpand },\n react.createElement(DrawerContent, { panelContent: panelContent },\n react.createElement(DrawerContentBody, null, main))))),\n !notificationDrawer && main)));\n }\n}\nPage.displayName = 'Page';\nPage.defaultProps = {\n isManagedSidebar: false,\n isBreadcrumbWidthLimited: false,\n defaultManagedSidebarIsOpen: true,\n onPageResize: () => null,\n mainTabIndex: -1,\n isNotificationDrawerExpanded: false,\n onNotificationDrawerExpand: () => null\n};\n\nconst PageSidebarContext = react.createContext({\n isNavOpen: true\n});\nconst PageSidebar = (_a) => {\n var { className = '', nav, isNavOpen = true, theme = 'dark' } = _a, props = __rest(_a, [\"className\", \"nav\", \"isNavOpen\", \"theme\"]);\n return (react.createElement(PageContextConsumer, null, ({ isManagedSidebar, isNavOpen: managedIsNavOpen }) => {\n const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;\n return (react.createElement(\"div\", Object.assign({ id: \"page-sidebar\", className: css(styles$m.pageSidebar, theme === 'light' && styles$m.modifiers.light, navOpen && styles$m.modifiers.expanded, !navOpen && styles$m.modifiers.collapsed, className), \"aria-hidden\": !navOpen }, props),\n react.createElement(\"div\", { className: css(styles$m.pageSidebarBody) },\n react.createElement(PageSidebarContext.Provider, { value: { isNavOpen: navOpen } }, nav))));\n }));\n};\nPageSidebar.displayName = 'PageSidebar';\n\nclass NavList extends react.Component {\n constructor() {\n super(...arguments);\n this.state = {\n scrollViewAtStart: false,\n scrollViewAtEnd: false\n };\n this.navList = react.createRef();\n this.handleScrollButtons = () => {\n const container = this.navList.current;\n if (container) {\n // check if it elements are in view\n const scrollViewAtStart = isElementInView(container, container.firstChild, false);\n const scrollViewAtEnd = isElementInView(container, container.lastChild, false);\n this.setState({\n scrollViewAtStart,\n scrollViewAtEnd\n });\n this.context.updateIsScrollable(!scrollViewAtStart || !scrollViewAtEnd);\n }\n };\n this.scrollLeft = () => {\n // find first Element that is fully in view on the left, then scroll to the element before it\n const container = this.navList.current;\n if (container) {\n const childrenArr = Array.from(container.children);\n let firstElementInView;\n let lastElementOutOfView;\n for (let i = 0; i < childrenArr.length && !firstElementInView; i++) {\n if (isElementInView(container, childrenArr[i], false)) {\n firstElementInView = childrenArr[i];\n lastElementOutOfView = childrenArr[i - 1];\n }\n }\n if (lastElementOutOfView) {\n container.scrollLeft -= lastElementOutOfView.scrollWidth;\n }\n this.handleScrollButtons();\n }\n };\n this.scrollRight = () => {\n // find last Element that is fully in view on the right, then scroll to the element after it\n const container = this.navList.current;\n if (container) {\n const childrenArr = Array.from(container.children);\n let lastElementInView;\n let firstElementOutOfView;\n for (let i = childrenArr.length - 1; i >= 0 && !lastElementInView; i--) {\n if (isElementInView(container, childrenArr[i], false)) {\n lastElementInView = childrenArr[i];\n firstElementOutOfView = childrenArr[i + 1];\n }\n }\n if (firstElementOutOfView) {\n container.scrollLeft += firstElementOutOfView.scrollWidth;\n }\n this.handleScrollButtons();\n }\n };\n }\n componentDidMount() {\n if (canUseDOM) {\n window.addEventListener('resize', this.handleScrollButtons, false);\n }\n this.handleScrollButtons();\n }\n componentWillUnmount() {\n if (canUseDOM) {\n window.removeEventListener('resize', this.handleScrollButtons, false);\n }\n }\n render() {\n const _a = this.props, { children, className, ariaLeftScroll, ariaRightScroll } = _a, props = __rest(_a, [\"children\", \"className\", \"ariaLeftScroll\", \"ariaRightScroll\"]);\n const { scrollViewAtStart, scrollViewAtEnd } = this.state;\n return (react.createElement(NavContext.Consumer, null, ({ isHorizontal }) => (react.createElement(PageSidebarContext.Consumer, null, ({ isNavOpen }) => (react.createElement(react.Fragment, null,\n isHorizontal && (react.createElement(\"button\", { className: css(styles$l.navScrollButton), \"aria-label\": ariaLeftScroll, onClick: this.scrollLeft, disabled: scrollViewAtStart, tabIndex: isNavOpen ? null : -1 },\n react.createElement(AngleLeftIcon, null))),\n react.createElement(\"ul\", Object.assign({ ref: this.navList, className: css(styles$l.navList, className), onScroll: this.handleScrollButtons }, props), children),\n isHorizontal && (react.createElement(\"button\", { className: css(styles$l.navScrollButton), \"aria-label\": ariaRightScroll, onClick: this.scrollRight, disabled: scrollViewAtEnd, tabIndex: isNavOpen ? null : -1 },\n react.createElement(AngleRightIcon, null)))))))));\n }\n}\nNavList.displayName = 'NavList';\nNavList.contextType = NavContext;\nNavList.defaultProps = {\n ariaLeftScroll: 'Scroll left',\n ariaRightScroll: 'Scroll right'\n};\n\nconst NavGroup = (_a) => {\n var { title, children = null, className = '', id = getUniqueId() } = _a, props = __rest(_a, [\"title\", \"children\", \"className\", \"id\"]);\n return (react.createElement(\"section\", Object.assign({ className: css(styles$l.navSection, className), \"aria-labelledby\": id }, props),\n react.createElement(\"h2\", { className: css(styles$l.navSectionTitle), id: id }, title),\n react.createElement(\"ul\", { className: css(styles$l.navList, className) }, children)));\n};\nNavGroup.displayName = 'NavGroup';\n\nconst NavItem = (_a) => {\n var { children, styleChildren = true, className, to, isActive = false, groupId = null, itemId = null, preventDefault = false, onClick = null, component = 'a', flyout, onShowFlyout, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"children\", \"styleChildren\", \"className\", \"to\", \"isActive\", \"groupId\", \"itemId\", \"preventDefault\", \"onClick\", \"component\", \"flyout\", \"onShowFlyout\", \"ouiaId\", \"ouiaSafe\"]);\n const { flyoutRef, setFlyoutRef } = react.useContext(NavContext);\n const { isNavOpen } = react.useContext(PageSidebarContext);\n const [flyoutTarget, setFlyoutTarget] = react.useState(null);\n const [isHovered, setIsHovered] = react.useState(false);\n const ref = react.useRef();\n const flyoutVisible = ref === flyoutRef;\n const popperRef = react.useRef();\n const Component = component;\n const hasFlyout = flyout !== undefined;\n const showFlyout = (show, override) => {\n if ((!flyoutVisible || override) && show) {\n setFlyoutRef(ref);\n }\n else if ((flyoutVisible || override) && !show) {\n setFlyoutRef(null);\n }\n onShowFlyout && show && onShowFlyout();\n };\n const onMouseOver = (event) => {\n const evtContainedInFlyout = event.target.closest('.pf-c-nav__item.pf-m-flyout');\n if (hasFlyout && !flyoutVisible) {\n showFlyout(true);\n }\n else if (flyoutRef !== null && !evtContainedInFlyout) {\n setFlyoutRef(null);\n }\n };\n const onFlyoutClick = (event) => {\n const target = event.target;\n const closestItem = target.closest('.pf-m-flyout');\n if (!closestItem) {\n if (hasFlyout) {\n showFlyout(false, true);\n }\n else if (flyoutRef !== null) {\n setFlyoutRef(null);\n }\n }\n };\n const handleFlyout = (event) => {\n var _a, _b;\n const key = event.key;\n const target = event.target;\n if (!(((_a = popperRef === null || popperRef === void 0 ? void 0 : popperRef.current) === null || _a === void 0 ? void 0 : _a.contains(target)) || (hasFlyout && ((_b = ref === null || ref === void 0 ? void 0 : ref.current) === null || _b === void 0 ? void 0 : _b.contains(target))))) {\n return;\n }\n if (key === ' ' || key === 'ArrowRight') {\n event.stopPropagation();\n event.preventDefault();\n if (!flyoutVisible) {\n showFlyout(true);\n setFlyoutTarget(target);\n }\n }\n if (key === 'Escape' || key === 'ArrowLeft') {\n if (flyoutVisible) {\n event.stopPropagation();\n event.preventDefault();\n showFlyout(false);\n }\n }\n };\n react.useEffect(() => {\n if (hasFlyout) {\n window.addEventListener('click', onFlyoutClick);\n }\n return () => {\n if (hasFlyout) {\n window.removeEventListener('click', onFlyoutClick);\n }\n };\n }, []);\n react.useEffect(() => {\n if (flyoutTarget) {\n if (flyoutVisible) {\n const flyoutItems = Array.from(popperRef.current.getElementsByTagName('UL')[0].children).filter(el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider')));\n flyoutItems[0].firstChild.focus();\n }\n else {\n flyoutTarget.focus();\n }\n }\n }, [flyoutVisible, flyoutTarget]);\n const flyoutButton = (react.createElement(\"span\", { className: css(styles$l.navToggle) },\n react.createElement(\"span\", { className: css(styles$l.navToggleIcon) },\n react.createElement(AngleRightIcon, { \"aria-hidden\": true }))));\n const renderDefaultLink = (context) => {\n const preventLinkDefault = preventDefault || !to;\n return (react.createElement(Component, Object.assign({ href: to, onClick: (e) => context.onSelect(e, groupId, itemId, to, preventLinkDefault, onClick), className: css(styles$l.navLink, isActive && styles$l.modifiers.current, isHovered && styles$l.modifiers.hover, className), \"aria-current\": isActive ? 'page' : null, tabIndex: isNavOpen ? null : '-1' }, props),\n children,\n flyout && flyoutButton));\n };\n const renderClonedChild = (context, child) => react.cloneElement(child, Object.assign(Object.assign({ onClick: (e) => context.onSelect(e, groupId, itemId, to, preventDefault, onClick), 'aria-current': isActive ? 'page' : null }, (styleChildren && {\n className: css(styles$l.navLink, isActive && styles$l.modifiers.current, child.props && child.props.className)\n })), { tabIndex: child.props.tabIndex || isNavOpen ? null : -1, children: hasFlyout ? (react.createElement(react.Fragment, null,\n child.props.children,\n flyoutButton)) : (child.props.children) }));\n const ouiaProps = useOUIAProps(NavItem.displayName, ouiaId, ouiaSafe);\n const handleMouseEnter = () => {\n setIsHovered(true);\n };\n const handleMouseLeave = () => {\n setIsHovered(false);\n };\n const flyoutPopper = (react.createElement(Popper, { reference: ref, popper: react.createElement(\"div\", { ref: popperRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, flyout), placement: \"right-start\", isVisible: flyoutVisible, onDocumentKeyDown: handleFlyout }));\n const navItem = (react.createElement(react.Fragment, null,\n react.createElement(\"li\", Object.assign({ onMouseOver: onMouseOver, className: css(styles$l.navItem, hasFlyout && styles$l.modifiers.flyout, className), ref: ref }, ouiaProps),\n react.createElement(NavContext.Consumer, null, context => react.isValidElement(children)\n ? renderClonedChild(context, children)\n : renderDefaultLink(context))),\n flyout && flyoutPopper));\n return navItem;\n};\nNavItem.displayName = 'NavItem';\n\nconst TextContent = (_a) => {\n var { children = null, className = '', isVisited = false } = _a, props = __rest(_a, [\"children\", \"className\", \"isVisited\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$1.content, isVisited && styles$1.modifiers.visited, className) }), children));\n};\nTextContent.displayName = 'TextContent';\n\nvar TextVariants;\n(function (TextVariants) {\n TextVariants[\"h1\"] = \"h1\";\n TextVariants[\"h2\"] = \"h2\";\n TextVariants[\"h3\"] = \"h3\";\n TextVariants[\"h4\"] = \"h4\";\n TextVariants[\"h5\"] = \"h5\";\n TextVariants[\"h6\"] = \"h6\";\n TextVariants[\"p\"] = \"p\";\n TextVariants[\"a\"] = \"a\";\n TextVariants[\"small\"] = \"small\";\n TextVariants[\"blockquote\"] = \"blockquote\";\n TextVariants[\"pre\"] = \"pre\";\n})(TextVariants || (TextVariants = {}));\nconst Text = (_a) => {\n var { children = null, className = '', component = TextVariants.p, isVisitedLink = false, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"isVisitedLink\", \"ouiaId\", \"ouiaSafe\"]);\n const Component = component;\n const ouiaProps = useOUIAProps(Text.displayName, ouiaId, ouiaSafe);\n return (react.createElement(Component, Object.assign({}, ouiaProps, props, { \"data-pf-content\": true, className: css(isVisitedLink && component === TextVariants.a && styles$1.modifiers.visited, className) }), children));\n};\nText.displayName = 'Text';\n\nvar optionsMenu = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"divider\": \"pf-c-divider\",\n \"modifiers\": {\n \"plain\": \"pf-m-plain\",\n \"text\": \"pf-m-text\",\n \"active\": \"pf-m-active\",\n \"expanded\": \"pf-m-expanded\",\n \"disabled\": \"pf-m-disabled\",\n \"top\": \"pf-m-top\",\n \"alignRight\": \"pf-m-align-right\"\n },\n \"optionsMenu\": \"pf-c-options-menu\",\n \"optionsMenuGroup\": \"pf-c-options-menu__group\",\n \"optionsMenuGroupTitle\": \"pf-c-options-menu__group-title\",\n \"optionsMenuMenu\": \"pf-c-options-menu__menu\",\n \"optionsMenuMenuItem\": \"pf-c-options-menu__menu-item\",\n \"optionsMenuMenuItemIcon\": \"pf-c-options-menu__menu-item-icon\",\n \"optionsMenuToggle\": \"pf-c-options-menu__toggle\",\n \"optionsMenuToggleButton\": \"pf-c-options-menu__toggle-button\",\n \"optionsMenuToggleButtonIcon\": \"pf-c-options-menu__toggle-button-icon\",\n \"optionsMenuToggleIcon\": \"pf-c-options-menu__toggle-icon\",\n \"optionsMenuToggleText\": \"pf-c-options-menu__toggle-text\"\n};\n});\n\nvar styles$n = /*@__PURE__*/getDefaultExportFromCjs(optionsMenu);\n\nconst global_breakpoint_md = {\n \"name\": \"--pf-global--breakpoint--md\",\n \"value\": \"768px\",\n \"var\": \"var(--pf-global--breakpoint--md)\"\n};\n\nconst global_breakpoint_lg = {\n \"name\": \"--pf-global--breakpoint--lg\",\n \"value\": \"992px\",\n \"var\": \"var(--pf-global--breakpoint--lg)\"\n};\n\nconst global_breakpoint_2xl = {\n \"name\": \"--pf-global--breakpoint--2xl\",\n \"value\": \"1450px\",\n \"var\": \"var(--pf-global--breakpoint--2xl)\"\n};\n\nconst BarsIconConfig = {\n name: 'BarsIcon',\n height: 512,\n width: 448,\n svgPath: 'M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst BarsIcon = createIcon(BarsIconConfig);\n\nconst PageHeader = (_a) => {\n var { className = '', logo = null, logoProps = null, logoComponent = 'a', headerTools = null, topNav = null, isNavOpen = true, isManagedSidebar: deprecatedIsManagedSidebar = undefined, role = undefined, showNavToggle = false, onNavToggle = () => undefined, 'aria-label': ariaLabel = 'Global navigation', 'aria-controls': ariaControls = null } = _a, props = __rest(_a, [\"className\", \"logo\", \"logoProps\", \"logoComponent\", \"headerTools\", \"topNav\", \"isNavOpen\", \"isManagedSidebar\", \"role\", \"showNavToggle\", \"onNavToggle\", 'aria-label', 'aria-controls']);\n const LogoComponent = logoComponent;\n if ([false, true].includes(deprecatedIsManagedSidebar)) {\n console.warn('isManagedSidebar is deprecated in the PageHeader component. To make the sidebar toggle uncontrolled, pass this prop in the Page component');\n }\n return (react.createElement(PageContextConsumer, null, ({ isManagedSidebar, onNavToggle: managedOnNavToggle, isNavOpen: managedIsNavOpen }) => {\n const navToggle = isManagedSidebar ? managedOnNavToggle : onNavToggle;\n const navOpen = isManagedSidebar ? managedIsNavOpen : isNavOpen;\n return (react.createElement(\"header\", Object.assign({ role: role, className: css(styles$m.pageHeader, className) }, props),\n (showNavToggle || logo) && (react.createElement(\"div\", { className: css(styles$m.pageHeaderBrand) },\n showNavToggle && (react.createElement(\"div\", { className: css(styles$m.pageHeaderBrandToggle) },\n react.createElement(Button, { id: \"nav-toggle\", onClick: navToggle, \"aria-label\": ariaLabel, \"aria-controls\": ariaControls, \"aria-expanded\": navOpen ? 'true' : 'false', variant: ButtonVariant.plain },\n react.createElement(BarsIcon, null)))),\n logo && (react.createElement(LogoComponent, Object.assign({ className: css(styles$m.pageHeaderBrandLink) }, logoProps), logo)))),\n topNav && react.createElement(\"div\", { className: css(styles$m.pageHeaderNav) }, topNav),\n headerTools));\n }));\n};\nPageHeader.displayName = 'PageHeader';\n\nvar PageSectionVariants;\n(function (PageSectionVariants) {\n PageSectionVariants[\"default\"] = \"default\";\n PageSectionVariants[\"light\"] = \"light\";\n PageSectionVariants[\"dark\"] = \"dark\";\n PageSectionVariants[\"darker\"] = \"darker\";\n})(PageSectionVariants || (PageSectionVariants = {}));\nvar PageSectionTypes;\n(function (PageSectionTypes) {\n PageSectionTypes[\"default\"] = \"default\";\n PageSectionTypes[\"nav\"] = \"nav\";\n PageSectionTypes[\"subNav\"] = \"subnav\";\n PageSectionTypes[\"breadcrumb\"] = \"breadcrumb\";\n PageSectionTypes[\"tabs\"] = \"tabs\";\n PageSectionTypes[\"wizard\"] = \"wizard\";\n})(PageSectionTypes || (PageSectionTypes = {}));\nconst variantType = {\n [PageSectionTypes.default]: styles$m.pageMainSection,\n [PageSectionTypes.nav]: styles$m.pageMainNav,\n [PageSectionTypes.subNav]: styles$m.pageMainSubnav,\n [PageSectionTypes.breadcrumb]: styles$m.pageMainBreadcrumb,\n [PageSectionTypes.tabs]: styles$m.pageMainTabs,\n [PageSectionTypes.wizard]: styles$m.pageMainWizard\n};\nconst variantStyle = {\n [PageSectionVariants.default]: '',\n [PageSectionVariants.light]: styles$m.modifiers.light,\n [PageSectionVariants.dark]: styles$m.modifiers.dark_200,\n [PageSectionVariants.darker]: styles$m.modifiers.dark_100\n};\nconst PageSection = (_a) => {\n var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest(_a, [\"className\", \"children\", \"variant\", \"type\", \"padding\", \"isFilled\", \"isWidthLimited\", \"sticky\", \"hasShadowTop\", \"hasShadowBottom\", \"hasOverflowScroll\"]);\n return (react.createElement(\"section\", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$m), variantStyle[variant], isFilled === false && styles$m.modifiers.noFill, isFilled === true && styles$m.modifiers.fill, isWidthLimited && styles$m.modifiers.limitWidth, sticky === 'top' && styles$m.modifiers.stickyTop, sticky === 'bottom' && styles$m.modifiers.stickyBottom, hasShadowTop && styles$m.modifiers.shadowTop, hasShadowBottom && styles$m.modifiers.shadowBottom, hasOverflowScroll && styles$m.modifiers.overflowScroll, className) }),\n isWidthLimited && react.createElement(\"div\", { className: css(styles$m.pageMainBody) }, children),\n !isWidthLimited && children));\n};\nPageSection.displayName = 'PageSection';\n\nconst PageHeaderTools = (_a) => {\n var { children, className } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$m.pageHeaderTools, className) }, props), children));\n};\nPageHeaderTools.displayName = 'PageHeaderTools';\n\nconst PageHeaderToolsGroup = (_a) => {\n var { children, className, visibility } = _a, props = __rest(_a, [\"children\", \"className\", \"visibility\"]);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$m.pageHeaderToolsGroup, formatBreakpointMods(visibility, styles$m), className) }, props), children));\n};\nPageHeaderToolsGroup.displayName = 'PageHeaderToolsGroup';\n\nconst PageHeaderToolsItem = ({ children, id, className, visibility, isSelected }) => (react.createElement(\"div\", { className: css(styles$m.pageHeaderToolsItem, isSelected && styles$m.modifiers.selected, formatBreakpointMods(visibility, styles$m), className), id: id }, children));\nPageHeaderToolsItem.displayName = 'PageHeaderToolsItem';\n\nconst ToggleTemplate = ({ firstIndex = 0, lastIndex = 0, itemCount = 0, itemsTitle = 'items', ofWord = 'of' }) => (react.createElement(react.Fragment, null,\n react.createElement(\"b\", null,\n firstIndex,\n \" - \",\n lastIndex),\n ' ',\n ofWord,\n \" \",\n react.createElement(\"b\", null, itemCount),\n \" \",\n itemsTitle));\nToggleTemplate.displayName = 'ToggleTemplate';\n\nvar pagination = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"formControl\": \"pf-c-form-control\",\n \"modifiers\": {\n \"bottom\": \"pf-m-bottom\",\n \"static\": \"pf-m-static\",\n \"first\": \"pf-m-first\",\n \"last\": \"pf-m-last\",\n \"sticky\": \"pf-m-sticky\",\n \"compact\": \"pf-m-compact\",\n \"displaySummary\": \"pf-m-display-summary\",\n \"displayFull\": \"pf-m-display-full\",\n \"displaySummaryOnSm\": \"pf-m-display-summary-on-sm\",\n \"displayFullOnSm\": \"pf-m-display-full-on-sm\",\n \"displaySummaryOnMd\": \"pf-m-display-summary-on-md\",\n \"displayFullOnMd\": \"pf-m-display-full-on-md\",\n \"displaySummaryOnLg\": \"pf-m-display-summary-on-lg\",\n \"displayFullOnLg\": \"pf-m-display-full-on-lg\",\n \"displaySummaryOnXl\": \"pf-m-display-summary-on-xl\",\n \"displayFullOnXl\": \"pf-m-display-full-on-xl\",\n \"displaySummaryOn_2xl\": \"pf-m-display-summary-on-2xl\",\n \"displayFullOn_2xl\": \"pf-m-display-full-on-2xl\"\n },\n \"optionsMenu\": \"pf-c-options-menu\",\n \"optionsMenuToggle\": \"pf-c-options-menu__toggle\",\n \"pagination\": \"pf-c-pagination\",\n \"paginationNav\": \"pf-c-pagination__nav\",\n \"paginationNavControl\": \"pf-c-pagination__nav-control\",\n \"paginationNavPageSelect\": \"pf-c-pagination__nav-page-select\",\n \"paginationTotalItems\": \"pf-c-pagination__total-items\"\n};\n});\n\nvar styles$o = /*@__PURE__*/getDefaultExportFromCjs(pagination);\n\nclass Navigation extends react.Component {\n constructor(props) {\n super(props);\n this.handleNewPage = (_evt, newPage) => {\n const { perPage, onSetPage } = this.props;\n const startIdx = (newPage - 1) * perPage;\n const endIdx = newPage * perPage;\n return onSetPage(_evt, newPage, perPage, startIdx, endIdx);\n };\n this.state = { userInputPage: this.props.page };\n }\n static parseInteger(input, lastPage) {\n // eslint-disable-next-line radix\n let inputPage = Number.parseInt(input, 10);\n if (!Number.isNaN(inputPage)) {\n inputPage = inputPage > lastPage ? lastPage : inputPage;\n inputPage = inputPage < 1 ? 1 : inputPage;\n }\n return inputPage;\n }\n onChange(event, lastPage) {\n const inputPage = Navigation.parseInteger(event.target.value, lastPage);\n this.setState({ userInputPage: Number.isNaN(inputPage) ? event.target.value : inputPage });\n }\n onKeyDown(event, page, lastPage, onPageInput) {\n if (event.keyCode === KEY_CODES.ENTER) {\n const inputPage = Navigation.parseInteger(this.state.userInputPage, lastPage);\n onPageInput(event, Number.isNaN(inputPage) ? page : inputPage);\n this.handleNewPage(event, Number.isNaN(inputPage) ? page : inputPage);\n }\n }\n componentDidUpdate(lastState) {\n if (this.props.page !== lastState.page &&\n this.props.page <= this.props.lastPage &&\n this.state.userInputPage !== this.props.page) {\n this.setState({ userInputPage: this.props.page });\n }\n }\n render() {\n const _a = this.props, { page, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n perPage, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onSetPage, isDisabled, itemCount, lastPage, firstPage, pagesTitle, toLastPage, toNextPage, toFirstPage, toPreviousPage, currPage, paginationTitle, ofWord, onNextClick, onPreviousClick, onFirstClick, onLastClick, onPageInput, className, isCompact } = _a, props = __rest(_a, [\"page\", \"perPage\", \"onSetPage\", \"isDisabled\", \"itemCount\", \"lastPage\", \"firstPage\", \"pagesTitle\", \"toLastPage\", \"toNextPage\", \"toFirstPage\", \"toPreviousPage\", \"currPage\", \"paginationTitle\", \"ofWord\", \"onNextClick\", \"onPreviousClick\", \"onFirstClick\", \"onLastClick\", \"onPageInput\", \"className\", \"isCompact\"]);\n const { userInputPage } = this.state;\n return (react.createElement(\"nav\", Object.assign({ className: css(styles$o.paginationNav, className), \"aria-label\": paginationTitle }, props),\n !isCompact && (react.createElement(\"div\", { className: css(styles$o.paginationNavControl, styles$o.modifiers.first) },\n react.createElement(Button, { variant: ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, \"aria-label\": toFirstPage, \"data-action\": \"first\", onClick: event => {\n onFirstClick(event, 1);\n this.handleNewPage(event, 1);\n this.setState({ userInputPage: 1 });\n } },\n react.createElement(AngleDoubleLeftIcon, null)))),\n react.createElement(\"div\", { className: styles$o.paginationNavControl },\n react.createElement(Button, { variant: ButtonVariant.plain, isDisabled: isDisabled || page === firstPage || page === 0, \"data-action\": \"previous\", onClick: event => {\n const newPage = page - 1 >= 1 ? page - 1 : 1;\n onPreviousClick(event, newPage);\n this.handleNewPage(event, newPage);\n this.setState({ userInputPage: newPage });\n }, \"aria-label\": toPreviousPage },\n react.createElement(AngleLeftIcon, null))),\n !isCompact && (react.createElement(\"div\", { className: styles$o.paginationNavPageSelect },\n react.createElement(\"input\", { className: css(styles$o.formControl), \"aria-label\": currPage, type: \"number\", disabled: isDisabled || (itemCount && page === firstPage && page === lastPage && itemCount >= 0) || page === 0, min: lastPage <= 0 && firstPage <= 0 ? 0 : 1, max: lastPage, value: userInputPage, onKeyDown: event => this.onKeyDown(event, page, lastPage, onPageInput), onChange: event => this.onChange(event, lastPage) }),\n (itemCount || itemCount === 0) && (react.createElement(\"span\", { \"aria-hidden\": \"true\" },\n ofWord,\n \" \",\n pagesTitle ? pluralize(lastPage, pagesTitle) : lastPage)))),\n react.createElement(\"div\", { className: styles$o.paginationNavControl },\n react.createElement(Button, { variant: ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, \"aria-label\": toNextPage, \"data-action\": \"next\", onClick: event => {\n const newPage = page + 1 <= lastPage ? page + 1 : lastPage;\n onNextClick(event, newPage);\n this.handleNewPage(event, newPage);\n this.setState({ userInputPage: newPage });\n } },\n react.createElement(AngleRightIcon, null))),\n !isCompact && (react.createElement(\"div\", { className: css(styles$o.paginationNavControl, styles$o.modifiers.last) },\n react.createElement(Button, { variant: ButtonVariant.plain, isDisabled: isDisabled || page === lastPage, \"aria-label\": toLastPage, \"data-action\": \"last\", onClick: event => {\n onLastClick(event, lastPage);\n this.handleNewPage(event, lastPage);\n this.setState({ userInputPage: lastPage });\n } },\n react.createElement(AngleDoubleRightIcon, null))))));\n }\n}\nNavigation.displayName = 'Navigation';\nNavigation.defaultProps = {\n className: '',\n isDisabled: false,\n isCompact: false,\n lastPage: 0,\n firstPage: 0,\n pagesTitle: '',\n toLastPage: 'Go to last page',\n toNextPage: 'Go to next page',\n toFirstPage: 'Go to first page',\n toPreviousPage: 'Go to previous page',\n currPage: 'Current page',\n paginationTitle: 'Pagination',\n ofWord: 'of',\n onNextClick: () => undefined,\n onPreviousClick: () => undefined,\n onFirstClick: () => undefined,\n onLastClick: () => undefined,\n onPageInput: () => undefined\n};\n\nlet toggleId = 0;\nconst OptionsToggle = ({ itemsTitle = 'items', optionsToggle = 'Items per page', \n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nitemsPerPageTitle = 'Items per page', ofWord = 'of', firstIndex = 0, lastIndex = 0, itemCount, widgetId = '', showToggle = true, \n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nonToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate, onEnter = null }) => (react.createElement(\"div\", { className: css(styles$n.optionsMenuToggle, isDisabled && styles$n.modifiers.disabled, styles$n.modifiers.plain, styles$n.modifiers.text) }, showToggle && (react.createElement(react.Fragment, null,\n react.createElement(\"span\", { className: css(styles$n.optionsMenuToggleText) }, typeof ToggleTemplate === 'string' ? (fillTemplate(ToggleTemplate, { firstIndex, lastIndex, ofWord, itemCount, itemsTitle })) : (react.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, ofWord: ofWord, itemCount: itemCount, itemsTitle: itemsTitle }))),\n react.createElement(DropdownToggle, { onEnter: onEnter, \"aria-label\": optionsToggle, onToggle: onToggle, isDisabled: isDisabled || (itemCount && itemCount <= 0), isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: styles$n.optionsMenuToggleButton, parentRef: parentRef })))));\nOptionsToggle.displayName = 'OptionsToggle';\n\nclass PaginationOptionsMenu extends react.Component {\n constructor(props) {\n super(props);\n this.parentRef = react.createRef();\n this.onToggle = (isOpen) => {\n this.setState({ isOpen });\n };\n this.onSelect = () => {\n this.setState((prevState) => ({ isOpen: !prevState.isOpen }));\n };\n this.handleNewPerPage = (_evt, newPerPage) => {\n const { page, onPerPageSelect, itemCount, defaultToFullPage } = this.props;\n let newPage = page;\n while (Math.ceil(itemCount / newPerPage) < newPage) {\n newPage--;\n }\n if (defaultToFullPage) {\n if (itemCount / newPerPage !== newPage) {\n while (newPage > 1 && itemCount - newPerPage * newPage < 0) {\n newPage--;\n }\n }\n }\n const startIdx = (newPage - 1) * newPerPage;\n const endIdx = newPage * newPerPage;\n return onPerPageSelect(_evt, newPerPage, newPage, startIdx, endIdx);\n };\n this.renderItems = () => {\n const { perPageOptions, perPage, perPageSuffix } = this.props;\n return perPageOptions.map(({ value, title }) => (react.createElement(DropdownItem, { key: value, component: \"button\", \"data-action\": `per-page-${value}`, className: css(perPage === value && 'pf-m-selected'), onClick: event => this.handleNewPerPage(event, value) },\n title,\n ` ${perPageSuffix}`,\n perPage === value && (react.createElement(\"div\", { className: css(styles$n.optionsMenuMenuItemIcon) },\n react.createElement(CheckIcon, null))))));\n };\n this.state = {\n isOpen: false\n };\n }\n render() {\n const { widgetId, isDisabled, itemsPerPageTitle, dropDirection, optionsToggle, perPageOptions, toggleTemplate, firstIndex, lastIndex, itemCount, itemsTitle, ofWord } = this.props;\n const { isOpen } = this.state;\n return (react.createElement(DropdownContext.Provider, { value: {\n id: widgetId,\n onSelect: this.onSelect,\n toggleIndicatorClass: styles$n.optionsMenuToggleButtonIcon,\n toggleTextClass: styles$n.optionsMenuToggleText,\n menuClass: styles$n.optionsMenuMenu,\n itemClass: styles$n.optionsMenuMenuItem,\n toggleClass: ' ',\n baseClass: styles$n.optionsMenu,\n disabledClass: styles$n.modifiers.disabled,\n menuComponent: 'ul',\n baseComponent: 'div',\n ouiaComponentType: PaginationOptionsMenu.displayName\n } },\n react.createElement(DropdownWithContext, { direction: dropDirection, isOpen: isOpen, toggle: react.createElement(OptionsToggle, { optionsToggle: optionsToggle, itemsPerPageTitle: itemsPerPageTitle, showToggle: perPageOptions && perPageOptions.length > 0, onToggle: this.onToggle, isOpen: isOpen, widgetId: widgetId, firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: itemsTitle, ofWord: ofWord, toggleTemplate: toggleTemplate, parentRef: this.parentRef.current, isDisabled: isDisabled }), dropdownItems: this.renderItems(), isPlain: true })));\n }\n}\nPaginationOptionsMenu.displayName = 'PaginationOptionsMenu';\nPaginationOptionsMenu.defaultProps = {\n className: '',\n widgetId: '',\n isDisabled: false,\n dropDirection: DropdownDirection.down,\n perPageOptions: [],\n itemsPerPageTitle: 'Items per page',\n perPageSuffix: 'per page',\n optionsToggle: 'Items per page',\n ofWord: 'of',\n perPage: 0,\n firstIndex: 0,\n lastIndex: 0,\n defaultToFullPage: false,\n itemsTitle: 'items',\n toggleTemplate: ToggleTemplate,\n onPerPageSelect: () => null\n};\n\nconst c_pagination__nav_page_select_c_form_control_width_chars = {\n \"name\": \"--pf-c-pagination__nav-page-select--c-form-control--width-chars\",\n \"value\": \"2\",\n \"var\": \"var(--pf-c-pagination__nav-page-select--c-form-control--width-chars)\"\n};\n\nvar PaginationVariant;\n(function (PaginationVariant) {\n PaginationVariant[\"top\"] = \"top\";\n PaginationVariant[\"bottom\"] = \"bottom\";\n})(PaginationVariant || (PaginationVariant = {}));\nconst defaultPerPageOptions = [\n {\n title: '10',\n value: 10\n },\n {\n title: '20',\n value: 20\n },\n {\n title: '50',\n value: 50\n },\n {\n title: '100',\n value: 100\n }\n];\nconst handleInputWidth = (lastPage, node) => {\n if (!node) {\n return;\n }\n const len = String(lastPage).length;\n if (len >= 3) {\n node.style.setProperty(c_pagination__nav_page_select_c_form_control_width_chars.name, `${len}`);\n }\n else {\n node.style.setProperty(c_pagination__nav_page_select_c_form_control_width_chars.name, '2');\n }\n};\nlet paginationId = 0;\nclass Pagination extends react.Component {\n constructor() {\n super(...arguments);\n this.paginationRef = react.createRef();\n this.state = {\n ouiaStateId: getDefaultOUIAId(Pagination.displayName, this.props.variant)\n };\n }\n getLastPage() {\n const { itemCount, perPage, page } = this.props;\n // when itemCount is not known let's set lastPage as page+1 as we don't know the total count\n return itemCount || itemCount === 0 ? Math.ceil(itemCount / perPage) || 0 : page + 1;\n }\n componentDidMount() {\n const node = this.paginationRef.current;\n handleInputWidth(this.getLastPage(), node);\n }\n componentDidUpdate(prevProps) {\n const node = this.paginationRef.current;\n if (prevProps.perPage !== this.props.perPage || prevProps.itemCount !== this.props.itemCount) {\n handleInputWidth(this.getLastPage(), node);\n }\n }\n render() {\n const _a = this.props, { children, className, variant, isDisabled, isCompact, isStatic, isSticky, perPage, titles, firstPage, page: propPage, offset, defaultToFullPage, itemCount, itemsStart, itemsEnd, perPageOptions, dropDirection: dropDirectionProp, widgetId, toggleTemplate, onSetPage, onPerPageSelect, onFirstClick, onPreviousClick, onNextClick, onPageInput, onLastClick, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"children\", \"className\", \"variant\", \"isDisabled\", \"isCompact\", \"isStatic\", \"isSticky\", \"perPage\", \"titles\", \"firstPage\", \"page\", \"offset\", \"defaultToFullPage\", \"itemCount\", \"itemsStart\", \"itemsEnd\", \"perPageOptions\", \"dropDirection\", \"widgetId\", \"toggleTemplate\", \"onSetPage\", \"onPerPageSelect\", \"onFirstClick\", \"onPreviousClick\", \"onNextClick\", \"onPageInput\", \"onLastClick\", \"ouiaId\", \"ouiaSafe\"]);\n const dropDirection = dropDirectionProp || (variant === 'bottom' && !isStatic ? 'up' : 'down');\n let page = propPage;\n if (!page && offset) {\n page = Math.ceil(offset / perPage);\n }\n if (page === 0 && !itemCount) {\n page = 1;\n }\n const lastPage = this.getLastPage();\n let firstIndex = (page - 1) * perPage + 1;\n let lastIndex = page * perPage;\n if (itemCount || itemCount === 0) {\n firstIndex = itemCount <= 0 ? 0 : (page - 1) * perPage + 1;\n if (page < firstPage && itemCount > 0) {\n page = firstPage;\n }\n else if (page > lastPage) {\n page = lastPage;\n }\n if (itemCount >= 0) {\n lastIndex = page === lastPage || itemCount === 0 ? itemCount : page * perPage;\n }\n }\n const toggleTemplateProps = { firstIndex, lastIndex, itemCount, itemsTitle: titles.items, ofWord: titles.ofWord };\n return (react.createElement(\"div\", Object.assign({ ref: this.paginationRef, className: css(styles$o.pagination, variant === PaginationVariant.bottom && styles$o.modifiers.bottom, isCompact && styles$o.modifiers.compact, isStatic && styles$o.modifiers.static, isSticky && styles$o.modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),\n variant === PaginationVariant.top && (react.createElement(\"div\", { className: css(styles$o.paginationTotalItems) },\n toggleTemplate && typeof toggleTemplate === 'string' && fillTemplate(toggleTemplate, toggleTemplateProps),\n toggleTemplate &&\n typeof toggleTemplate !== 'string' &&\n toggleTemplate(toggleTemplateProps),\n !toggleTemplate && (react.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: titles.items, ofWord: titles.ofWord })))),\n react.createElement(PaginationOptionsMenu, { itemsPerPageTitle: titles.itemsPerPage, perPageSuffix: titles.perPageSuffix, itemsTitle: isCompact ? '' : titles.items, optionsToggle: titles.optionsToggle, perPageOptions: perPageOptions, firstIndex: itemsStart !== null ? itemsStart : firstIndex, lastIndex: itemsEnd !== null ? itemsEnd : lastIndex, ofWord: titles.ofWord, defaultToFullPage: defaultToFullPage, itemCount: itemCount, page: page, perPage: perPage, lastPage: lastPage, onPerPageSelect: onPerPageSelect, dropDirection: dropDirection, widgetId: widgetId, toggleTemplate: toggleTemplate, isDisabled: isDisabled }),\n react.createElement(Navigation, { pagesTitle: titles.page, toLastPage: titles.toLastPage, toPreviousPage: titles.toPreviousPage, toNextPage: titles.toNextPage, toFirstPage: titles.toFirstPage, currPage: titles.currPage, paginationTitle: titles.paginationTitle, ofWord: titles.ofWord, page: itemCount && itemCount <= 0 ? 0 : page, perPage: perPage, itemCount: itemCount, firstPage: itemsStart !== null ? itemsStart : 1, lastPage: lastPage, onSetPage: onSetPage, onFirstClick: onFirstClick, onPreviousClick: onPreviousClick, onNextClick: onNextClick, onLastClick: onLastClick, onPageInput: onPageInput, isDisabled: isDisabled, isCompact: isCompact }),\n children));\n }\n}\nPagination.displayName = 'Pagination';\nPagination.defaultProps = {\n children: null,\n className: '',\n variant: PaginationVariant.top,\n isDisabled: false,\n isCompact: false,\n isSticky: false,\n perPage: defaultPerPageOptions[0].value,\n titles: {\n items: '',\n page: '',\n itemsPerPage: 'Items per page',\n perPageSuffix: 'per page',\n toFirstPage: 'Go to first page',\n toPreviousPage: 'Go to previous page',\n toLastPage: 'Go to last page',\n toNextPage: 'Go to next page',\n optionsToggle: 'Items per page',\n currPage: 'Current page',\n paginationTitle: 'Pagination',\n ofWord: 'of'\n },\n firstPage: 1,\n page: 0,\n offset: 0,\n defaultToFullPage: false,\n itemsStart: null,\n itemsEnd: null,\n perPageOptions: defaultPerPageOptions,\n widgetId: 'pagination-options-menu',\n onSetPage: () => undefined,\n onPerPageSelect: () => undefined,\n onFirstClick: () => undefined,\n onPreviousClick: () => undefined,\n onNextClick: () => undefined,\n onPageInput: () => undefined,\n onLastClick: () => undefined,\n ouiaSafe: true\n};\n\nvar radio = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"standalone\": \"pf-m-standalone\",\n \"disabled\": \"pf-m-disabled\"\n },\n \"radio\": \"pf-c-radio\",\n \"radioBody\": \"pf-c-radio__body\",\n \"radioDescription\": \"pf-c-radio__description\",\n \"radioInput\": \"pf-c-radio__input\",\n \"radioLabel\": \"pf-c-radio__label\"\n};\n});\n\nvar styles$p = /*@__PURE__*/getDefaultExportFromCjs(radio);\n\nclass Radio extends react.Component {\n constructor(props) {\n super(props);\n this.handleChange = (event) => {\n this.props.onChange(event.currentTarget.checked, event);\n };\n if (!props.label && !props['aria-label']) {\n // eslint-disable-next-line no-console\n console.error('Radio:', 'Radio requires an aria-label to be specified');\n }\n this.state = {\n ouiaStateId: getDefaultOUIAId(Radio.displayName)\n };\n }\n render() {\n const _a = this.props, { 'aria-label': ariaLabel, checked, className, defaultChecked, isLabelWrapped, isLabelBeforeButton, isChecked, isDisabled, isValid, label, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onChange, description, body, ouiaId, ouiaSafe = true } = _a, props = __rest(_a, ['aria-label', \"checked\", \"className\", \"defaultChecked\", \"isLabelWrapped\", \"isLabelBeforeButton\", \"isChecked\", \"isDisabled\", \"isValid\", \"label\", \"onChange\", \"description\", \"body\", \"ouiaId\", \"ouiaSafe\"]);\n if (!props.id) {\n // eslint-disable-next-line no-console\n console.error('Radio:', 'id is required to make input accessible');\n }\n const inputRendered = (react.createElement(\"input\", Object.assign({}, props, { className: css(styles$p.radioInput), type: \"radio\", onChange: this.handleChange, \"aria-invalid\": !isValid, disabled: isDisabled, checked: checked || isChecked }, (checked === undefined && { defaultChecked }), (!label && { 'aria-label': ariaLabel }), getOUIAProps(Radio.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))));\n let labelRendered = null;\n if (label && isLabelWrapped) {\n labelRendered = react.createElement(\"span\", { className: css(styles$p.radioLabel, isDisabled && styles$p.modifiers.disabled) }, label);\n }\n else if (label) {\n labelRendered = (react.createElement(\"label\", { className: css(styles$p.radioLabel, isDisabled && styles$p.modifiers.disabled), htmlFor: props.id }, label));\n }\n const descRender = description ? react.createElement(\"span\", { className: css(styles$p.radioDescription) }, description) : null;\n const bodyRender = body ? react.createElement(\"span\", { className: css(styles$p.radioBody) }, body) : null;\n const childrenRendered = isLabelBeforeButton ? (react.createElement(react.Fragment, null,\n labelRendered,\n inputRendered,\n descRender,\n bodyRender)) : (react.createElement(react.Fragment, null,\n inputRendered,\n labelRendered,\n descRender,\n bodyRender));\n return isLabelWrapped ? (react.createElement(\"label\", { className: css(styles$p.radio, className), htmlFor: props.id }, childrenRendered)) : (react.createElement(\"div\", { className: css(styles$p.radio, !label && styles$p.modifiers.standalone, className) }, childrenRendered));\n }\n}\nRadio.displayName = 'Radio';\nRadio.defaultProps = {\n className: '',\n isDisabled: false,\n isValid: true,\n onChange: () => { }\n};\n\nvar _switch = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"reverse\": \"pf-m-reverse\",\n \"off\": \"pf-m-off\",\n \"on\": \"pf-m-on\"\n },\n \"switch\": \"pf-c-switch\",\n \"switchInput\": \"pf-c-switch__input\",\n \"switchLabel\": \"pf-c-switch__label\",\n \"switchToggle\": \"pf-c-switch__toggle\",\n \"switchToggleIcon\": \"pf-c-switch__toggle-icon\"\n};\n});\n\nvar styles$q = /*@__PURE__*/getDefaultExportFromCjs(_switch);\n\nclass Switch extends react.Component {\n constructor(props) {\n super(props);\n if (!props.label && !props['aria-label']) {\n // eslint-disable-next-line no-console\n console.error('Switch: Switch requires either a label or an aria-label to be specified');\n }\n this.id = props.id || getUniqueId();\n this.state = {\n ouiaStateId: getDefaultOUIAId(Switch.displayName)\n };\n }\n render() {\n const _a = this.props, { \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n id, className, label, labelOff, isChecked, isDisabled, onChange, isReversed, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"id\", \"className\", \"label\", \"labelOff\", \"isChecked\", \"isDisabled\", \"onChange\", \"isReversed\", \"ouiaId\", \"ouiaSafe\"]);\n const isAriaLabelledBy = props['aria-label'] === '';\n return (react.createElement(\"label\", Object.assign({ className: css(styles$q.switch, isReversed && styles$q.modifiers.reverse, className), htmlFor: this.id }, getOUIAProps(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),\n react.createElement(\"input\", Object.assign({ id: this.id, className: css(styles$q.switchInput), type: \"checkbox\", onChange: event => onChange(event.target.checked, event), checked: isChecked, disabled: isDisabled, \"aria-labelledby\": isAriaLabelledBy ? `${this.id}-on` : null }, props)),\n label !== undefined ? (react.createElement(react.Fragment, null,\n react.createElement(\"span\", { className: css(styles$q.switchToggle) }),\n react.createElement(\"span\", { className: css(styles$q.switchLabel, styles$q.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, \"aria-hidden\": \"true\" }, label),\n react.createElement(\"span\", { className: css(styles$q.switchLabel, styles$q.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, \"aria-hidden\": \"true\" }, labelOff !== undefined ? labelOff : label))) : (react.createElement(\"span\", { className: css(styles$q.switchToggle) },\n react.createElement(\"div\", { className: css(styles$q.switchToggleIcon), \"aria-hidden\": \"true\" },\n react.createElement(CheckIcon, { noVerticalAlign: true }))))));\n }\n}\nSwitch.displayName = 'Switch';\nSwitch.defaultProps = {\n isChecked: true,\n isDisabled: false,\n isReversed: false,\n 'aria-label': '',\n onChange: () => undefined\n};\n\nvar tabs = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"modifiers\": {\n \"fill\": \"pf-m-fill\",\n \"scrollable\": \"pf-m-scrollable\",\n \"secondary\": \"pf-m-secondary\",\n \"noBorderBottom\": \"pf-m-no-border-bottom\",\n \"box\": \"pf-m-box\",\n \"vertical\": \"pf-m-vertical\",\n \"current\": \"pf-m-current\",\n \"colorSchemeLight_300\": \"pf-m-color-scheme--light-300\",\n \"expandable\": \"pf-m-expandable\",\n \"nonExpandable\": \"pf-m-non-expandable\",\n \"expandableOnSm\": \"pf-m-expandable-on-sm\",\n \"nonExpandableOnSm\": \"pf-m-non-expandable-on-sm\",\n \"expandableOnMd\": \"pf-m-expandable-on-md\",\n \"nonExpandableOnMd\": \"pf-m-non-expandable-on-md\",\n \"expandableOnLg\": \"pf-m-expandable-on-lg\",\n \"nonExpandableOnLg\": \"pf-m-non-expandable-on-lg\",\n \"expandableOnXl\": \"pf-m-expandable-on-xl\",\n \"nonExpandableOnXl\": \"pf-m-non-expandable-on-xl\",\n \"expandableOn_2xl\": \"pf-m-expandable-on-2xl\",\n \"nonExpandableOn_2xl\": \"pf-m-non-expandable-on-2xl\",\n \"expanded\": \"pf-m-expanded\",\n \"pageInsets\": \"pf-m-page-insets\",\n \"disabled\": \"pf-m-disabled\",\n \"ariaDisabled\": \"pf-m-aria-disabled\",\n \"insetNone\": \"pf-m-inset-none\",\n \"insetSm\": \"pf-m-inset-sm\",\n \"insetMd\": \"pf-m-inset-md\",\n \"insetLg\": \"pf-m-inset-lg\",\n \"insetXl\": \"pf-m-inset-xl\",\n \"inset_2xl\": \"pf-m-inset-2xl\",\n \"insetNoneOnSm\": \"pf-m-inset-none-on-sm\",\n \"insetSmOnSm\": \"pf-m-inset-sm-on-sm\",\n \"insetMdOnSm\": \"pf-m-inset-md-on-sm\",\n \"insetLgOnSm\": \"pf-m-inset-lg-on-sm\",\n \"insetXlOnSm\": \"pf-m-inset-xl-on-sm\",\n \"inset_2xlOnSm\": \"pf-m-inset-2xl-on-sm\",\n \"insetNoneOnMd\": \"pf-m-inset-none-on-md\",\n \"insetSmOnMd\": \"pf-m-inset-sm-on-md\",\n \"insetMdOnMd\": \"pf-m-inset-md-on-md\",\n \"insetLgOnMd\": \"pf-m-inset-lg-on-md\",\n \"insetXlOnMd\": \"pf-m-inset-xl-on-md\",\n \"inset_2xlOnMd\": \"pf-m-inset-2xl-on-md\",\n \"insetNoneOnLg\": \"pf-m-inset-none-on-lg\",\n \"insetSmOnLg\": \"pf-m-inset-sm-on-lg\",\n \"insetMdOnLg\": \"pf-m-inset-md-on-lg\",\n \"insetLgOnLg\": \"pf-m-inset-lg-on-lg\",\n \"insetXlOnLg\": \"pf-m-inset-xl-on-lg\",\n \"inset_2xlOnLg\": \"pf-m-inset-2xl-on-lg\",\n \"insetNoneOnXl\": \"pf-m-inset-none-on-xl\",\n \"insetSmOnXl\": \"pf-m-inset-sm-on-xl\",\n \"insetMdOnXl\": \"pf-m-inset-md-on-xl\",\n \"insetLgOnXl\": \"pf-m-inset-lg-on-xl\",\n \"insetXlOnXl\": \"pf-m-inset-xl-on-xl\",\n \"inset_2xlOnXl\": \"pf-m-inset-2xl-on-xl\",\n \"insetNoneOn_2xl\": \"pf-m-inset-none-on-2xl\",\n \"insetSmOn_2xl\": \"pf-m-inset-sm-on-2xl\",\n \"insetMdOn_2xl\": \"pf-m-inset-md-on-2xl\",\n \"insetLgOn_2xl\": \"pf-m-inset-lg-on-2xl\",\n \"insetXlOn_2xl\": \"pf-m-inset-xl-on-2xl\",\n \"inset_2xlOn_2xl\": \"pf-m-inset-2xl-on-2xl\"\n },\n \"tabs\": \"pf-c-tabs\",\n \"tabsItem\": \"pf-c-tabs__item\",\n \"tabsItemIcon\": \"pf-c-tabs__item-icon\",\n \"tabsItemText\": \"pf-c-tabs__item-text\",\n \"tabsLink\": \"pf-c-tabs__link\",\n \"tabsList\": \"pf-c-tabs__list\",\n \"tabsScrollButton\": \"pf-c-tabs__scroll-button\",\n \"tabsToggle\": \"pf-c-tabs__toggle\",\n \"tabsToggleButton\": \"pf-c-tabs__toggle-button\",\n \"tabsToggleIcon\": \"pf-c-tabs__toggle-icon\",\n \"tabsToggleText\": \"pf-c-tabs__toggle-text\"\n};\n});\n\nvar styles$r = /*@__PURE__*/getDefaultExportFromCjs(tabs);\n\nconst TabButton = (_a) => {\n var { children, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n tabContentRef, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"children\", \"tabContentRef\", \"ouiaId\", \"ouiaSafe\"]);\n const Component = (props.href ? 'a' : 'button');\n return (react.createElement(Component, Object.assign({}, getOUIAProps(TabButton.displayName, ouiaId, ouiaSafe), props), children));\n};\nTabButton.displayName = 'TabButton';\n\nconst TabsContext = react.createContext({\n variant: 'default',\n mountOnEnter: false,\n unmountOnExit: false,\n localActiveKey: '',\n uniqueId: '',\n handleTabClick: () => null\n});\nconst TabsContextProvider = TabsContext.Provider;\nconst TabsContextConsumer = TabsContext.Consumer;\n\nconst TabBase = (_a) => {\n var { title, eventKey, tabContentRef, id: childId, tabContentId, className: childClassName = '', ouiaId: childOuiaId, isDisabled, isAriaDisabled, inoperableEvents = ['onClick', 'onKeyPress'], href, innerRef } = _a, props = __rest(_a, [\"title\", \"eventKey\", \"tabContentRef\", \"id\", \"tabContentId\", \"className\", \"ouiaId\", \"isDisabled\", \"isAriaDisabled\", \"inoperableEvents\", \"href\", \"innerRef\"]);\n const preventedEvents = inoperableEvents.reduce((handlers, eventToPrevent) => (Object.assign(Object.assign({}, handlers), { [eventToPrevent]: (event) => {\n event.preventDefault();\n } })), {});\n const { mountOnEnter, localActiveKey, unmountOnExit, uniqueId, handleTabClick } = react.useContext(TabsContext);\n let ariaControls = tabContentId ? `${tabContentId}` : `pf-tab-section-${eventKey}-${childId || uniqueId}`;\n if ((mountOnEnter || unmountOnExit) && eventKey !== localActiveKey) {\n ariaControls = undefined;\n }\n const isButtonElement = Boolean(!href);\n const getDefaultTabIdx = () => {\n if (isDisabled) {\n return isButtonElement ? null : -1;\n }\n else if (isAriaDisabled) {\n return null;\n }\n };\n return (react.createElement(\"li\", { className: css(styles$r.tabsItem, eventKey === localActiveKey && styles$r.modifiers.current, childClassName), ref: innerRef },\n react.createElement(TabButton, Object.assign({ className: css(styles$r.tabsLink, isDisabled && href && styles$r.modifiers.disabled, isAriaDisabled && styles$r.modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, \"aria-disabled\": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, \"aria-controls\": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href }, props), title)));\n};\nconst Tab = react.forwardRef((props, ref) => react.createElement(TabBase, Object.assign({ innerRef: ref }, props)));\nTab.displayName = 'Tab';\n\nvar tabContent = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"light_300\": \"pf-m-light-300\",\n \"padding\": \"pf-m-padding\"\n },\n \"tabContent\": \"pf-c-tab-content\",\n \"tabContentBody\": \"pf-c-tab-content__body\"\n};\n});\n\nvar styles$s = /*@__PURE__*/getDefaultExportFromCjs(tabContent);\n\nconst variantStyle$1 = {\n default: '',\n light300: styles$s.modifiers.light_300\n};\nconst TabContentBase = (_a) => {\n var { id, activeKey, 'aria-label': ariaLabel, child, children, className, eventKey, innerRef, ouiaId, ouiaSafe } = _a, props = __rest(_a, [\"id\", \"activeKey\", 'aria-label', \"child\", \"children\", \"className\", \"eventKey\", \"innerRef\", \"ouiaId\", \"ouiaSafe\"]);\n if (children || child) {\n let labelledBy;\n if (ariaLabel) {\n labelledBy = null;\n }\n else {\n labelledBy = children ? `pf-tab-${eventKey}-${id}` : `pf-tab-${child.props.eventKey}-${id}`;\n }\n return (react.createElement(TabsContextConsumer, null, ({ variant }) => (react.createElement(\"section\", Object.assign({ ref: innerRef, hidden: children ? null : child.props.eventKey !== activeKey, className: children\n ? css('pf-c-tab-content', className, variantStyle$1[variant])\n : css('pf-c-tab-content', child.props.className, variantStyle$1[variant]), id: children ? id : `pf-tab-section-${child.props.eventKey}-${id}`, \"aria-label\": ariaLabel, \"aria-labelledby\": labelledBy, role: \"tabpanel\", tabIndex: 0 }, getOUIAProps('TabContent', ouiaId, ouiaSafe), props), children || child.props.children))));\n }\n return null;\n};\nconst TabContent = react.forwardRef((props, ref) => (react.createElement(TabContentBase, Object.assign({}, props, { innerRef: ref }))));\n\nvar TabsComponent;\n(function (TabsComponent) {\n TabsComponent[\"div\"] = \"div\";\n TabsComponent[\"nav\"] = \"nav\";\n})(TabsComponent || (TabsComponent = {}));\nconst variantStyle$2 = {\n default: '',\n light300: styles$r.modifiers.colorSchemeLight_300\n};\nclass Tabs extends react.Component {\n constructor(props) {\n super(props);\n this.tabList = react.createRef();\n this.handleScrollButtons = () => {\n const container = this.tabList.current;\n let disableLeftScrollButton = true;\n let disableRightScrollButton = true;\n let showScrollButtons = false;\n if (container && !this.props.isVertical) {\n // get first element and check if it is in view\n const overflowOnLeft = !isElementInView(container, container.firstChild, false);\n // get last element and check if it is in view\n const overflowOnRight = !isElementInView(container, container.lastChild, false);\n showScrollButtons = overflowOnLeft || overflowOnRight;\n disableLeftScrollButton = !overflowOnLeft;\n disableRightScrollButton = !overflowOnRight;\n }\n this.setState({\n showScrollButtons,\n disableLeftScrollButton,\n disableRightScrollButton\n });\n };\n this.scrollLeft = () => {\n // find first Element that is fully in view on the left, then scroll to the element before it\n if (this.tabList.current) {\n const container = this.tabList.current;\n const childrenArr = Array.from(container.children);\n let firstElementInView;\n let lastElementOutOfView;\n let i;\n for (i = 0; i < childrenArr.length && !firstElementInView; i++) {\n if (isElementInView(container, childrenArr[i], false)) {\n firstElementInView = childrenArr[i];\n lastElementOutOfView = childrenArr[i - 1];\n }\n }\n if (lastElementOutOfView) {\n container.scrollLeft -= lastElementOutOfView.scrollWidth;\n }\n }\n };\n this.scrollRight = () => {\n // find last Element that is fully in view on the right, then scroll to the element after it\n if (this.tabList.current) {\n const container = this.tabList.current;\n const childrenArr = Array.from(container.children);\n let lastElementInView;\n let firstElementOutOfView;\n for (let i = childrenArr.length - 1; i >= 0 && !lastElementInView; i--) {\n if (isElementInView(container, childrenArr[i], false)) {\n lastElementInView = childrenArr[i];\n firstElementOutOfView = childrenArr[i + 1];\n }\n }\n if (firstElementOutOfView) {\n container.scrollLeft += firstElementOutOfView.scrollWidth;\n }\n }\n };\n this.state = {\n showScrollButtons: false,\n disableLeftScrollButton: true,\n disableRightScrollButton: true,\n shownKeys: this.props.defaultActiveKey !== undefined ? [this.props.defaultActiveKey] : [this.props.activeKey],\n uncontrolledActiveKey: this.props.defaultActiveKey,\n uncontrolledIsExpandedLocal: this.props.defaultIsExpanded,\n ouiaStateId: getDefaultOUIAId(Tabs.displayName)\n };\n if (this.props.isVertical && this.props.expandable !== undefined) {\n if (!this.props.toggleAriaLabel && !this.props.toggleText) {\n // eslint-disable-next-line no-console\n console.error('Tabs:', 'toggleAriaLabel or the toggleText prop is required to make the toggle button accessible');\n }\n }\n }\n handleTabClick(event, eventKey, tabContentRef) {\n // When tab is an achor tag with href, cancel navigation event\n event.preventDefault();\n const { shownKeys } = this.state;\n const { onSelect, defaultActiveKey } = this.props;\n // if defaultActiveKey Tabs are uncontrolled, set new active key internally\n if (defaultActiveKey !== undefined) {\n this.setState({\n uncontrolledActiveKey: eventKey\n });\n }\n else {\n onSelect(event, eventKey);\n }\n // process any tab content sections outside of the component\n if (tabContentRef) {\n react.Children.toArray(this.props.children)\n .map(child => child)\n .filter(child => child.props && child.props.tabContentRef && child.props.tabContentRef.current)\n .forEach(child => (child.props.tabContentRef.current.hidden = true));\n // most recently selected tabContent\n if (tabContentRef.current) {\n tabContentRef.current.hidden = false;\n }\n }\n if (this.props.mountOnEnter) {\n this.setState({\n shownKeys: shownKeys.concat(eventKey)\n });\n }\n }\n componentDidMount() {\n if (!this.props.isVertical) {\n if (canUseDOM) {\n window.addEventListener('resize', this.handleScrollButtons, false);\n }\n // call the handle resize function to check if scroll buttons should be shown\n this.handleScrollButtons();\n }\n }\n componentWillUnmount() {\n if (!this.props.isVertical) {\n if (canUseDOM) {\n window.removeEventListener('resize', this.handleScrollButtons, false);\n }\n }\n }\n componentDidUpdate(prevProps) {\n const { activeKey, mountOnEnter } = this.props;\n const { shownKeys } = this.state;\n if (prevProps.activeKey !== activeKey && mountOnEnter && shownKeys.indexOf(activeKey) < 0) {\n this.setState({\n shownKeys: shownKeys.concat(activeKey)\n });\n }\n }\n render() {\n const _a = this.props, { className, children, activeKey, defaultActiveKey, id, isFilled, isSecondary, isVertical, isBox, leftScrollAriaLabel, rightScrollAriaLabel, 'aria-label': ariaLabel, component, ouiaId, ouiaSafe, mountOnEnter, unmountOnExit, usePageInsets, inset, variant, expandable, isExpanded, defaultIsExpanded, toggleText, toggleAriaLabel, onToggle } = _a, props = __rest(_a, [\"className\", \"children\", \"activeKey\", \"defaultActiveKey\", \"id\", \"isFilled\", \"isSecondary\", \"isVertical\", \"isBox\", \"leftScrollAriaLabel\", \"rightScrollAriaLabel\", 'aria-label', \"component\", \"ouiaId\", \"ouiaSafe\", \"mountOnEnter\", \"unmountOnExit\", \"usePageInsets\", \"inset\", \"variant\", \"expandable\", \"isExpanded\", \"defaultIsExpanded\", \"toggleText\", \"toggleAriaLabel\", \"onToggle\"]);\n const { showScrollButtons, disableLeftScrollButton, disableRightScrollButton, shownKeys, uncontrolledActiveKey, uncontrolledIsExpandedLocal } = this.state;\n const filteredChildren = react.Children.toArray(children)\n .filter(Boolean)\n .filter(child => !child.props.isHidden);\n const uniqueId = id || getUniqueId();\n const Component = component === TabsComponent.nav ? 'nav' : 'div';\n const localActiveKey = defaultActiveKey !== undefined ? uncontrolledActiveKey : activeKey;\n const isExpandedLocal = defaultIsExpanded !== undefined ? uncontrolledIsExpandedLocal : isExpanded;\n /* Uncontrolled expandable tabs */\n const toggleTabs = (newValue) => {\n if (isExpanded === undefined) {\n this.setState({ uncontrolledIsExpandedLocal: newValue });\n }\n else {\n onToggle(newValue);\n }\n };\n return (react.createElement(TabsContextProvider, { value: {\n variant,\n mountOnEnter,\n unmountOnExit,\n localActiveKey,\n uniqueId,\n handleTabClick: (...args) => this.handleTabClick(...args)\n } },\n react.createElement(Component, Object.assign({ \"aria-label\": ariaLabel, className: css(styles$r.tabs, isFilled && styles$r.modifiers.fill, isSecondary && styles$r.modifiers.secondary, isVertical && styles$r.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$r), isVertical && expandable && isExpandedLocal && styles$r.modifiers.expanded, isBox && styles$r.modifiers.box, showScrollButtons && !isVertical && styles$r.modifiers.scrollable, usePageInsets && styles$r.modifiers.pageInsets, formatBreakpointMods(inset, styles$r), variantStyle$2[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),\n expandable && isVertical && (react.createElement(GenerateId, null, randomId => (react.createElement(\"div\", { className: css(styles$r.tabsToggle) },\n react.createElement(\"div\", { className: css(styles$r.tabsToggleButton) },\n react.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: \"plain\", \"aria-label\": toggleAriaLabel, \"aria-expanded\": isExpandedLocal, id: `${randomId}-button`, \"aria-labelledby\": `${randomId}-text ${randomId}-button` },\n react.createElement(\"span\", { className: css(styles$r.tabsToggleIcon) },\n react.createElement(AngleRightIcon, { \"arian-hidden\": \"true\" })),\n toggleText && (react.createElement(\"span\", { className: css('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),\n react.createElement(\"button\", { className: css(styles$r.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), \"aria-label\": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, \"aria-hidden\": disableLeftScrollButton },\n react.createElement(AngleLeftIcon, null)),\n react.createElement(\"ul\", { className: css(styles$r.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons }, filteredChildren),\n react.createElement(\"button\", { className: css(styles$r.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), \"aria-label\": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, \"aria-hidden\": disableRightScrollButton },\n react.createElement(AngleRightIcon, null))),\n filteredChildren\n .filter(child => child.props.children &&\n !(unmountOnExit && child.props.eventKey !== localActiveKey) &&\n !(mountOnEnter && shownKeys.indexOf(child.props.eventKey) === -1))\n .map((child, index) => (react.createElement(TabContent, { key: index, activeKey: localActiveKey, child: child, id: child.props.id || uniqueId, ouiaId: child.props.ouiaId })))));\n }\n}\nTabs.displayName = 'Tabs';\nTabs.defaultProps = {\n activeKey: 0,\n onSelect: () => undefined,\n isFilled: false,\n isSecondary: false,\n isVertical: false,\n isBox: false,\n leftScrollAriaLabel: 'Scroll left',\n rightScrollAriaLabel: 'Scroll right',\n component: TabsComponent.div,\n mountOnEnter: false,\n unmountOnExit: false,\n ouiaSafe: true,\n variant: 'default',\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onToggle: (isExpanded) => undefined\n};\n\nconst TabTitleText = (_a) => {\n var { children, className = '' } = _a, props = __rest(_a, [\"children\", \"className\"]);\n return (react.createElement(\"span\", Object.assign({ className: css(styles$r.tabsItemText, className) }, props), children));\n};\nTabTitleText.displayName = 'TabTitleText';\n\nvar toggleGroup = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"compact\": \"pf-m-compact\",\n \"selected\": \"pf-m-selected\",\n \"disabled\": \"pf-m-disabled\"\n },\n \"toggleGroup\": \"pf-c-toggle-group\",\n \"toggleGroupButton\": \"pf-c-toggle-group__button\",\n \"toggleGroupIcon\": \"pf-c-toggle-group__icon\",\n \"toggleGroupItem\": \"pf-c-toggle-group__item\",\n \"toggleGroupText\": \"pf-c-toggle-group__text\"\n};\n});\n\nvar styles$t = /*@__PURE__*/getDefaultExportFromCjs(toggleGroup);\n\nconst ToggleGroup = (_a) => {\n var { className, children, isCompact = false, 'aria-label': ariaLabel } = _a, props = __rest(_a, [\"className\", \"children\", \"isCompact\", 'aria-label']);\n const toggleGroupItemList = [];\n react.Children.forEach(children, child => {\n toggleGroupItemList.push(child);\n });\n return (react.createElement(\"div\", Object.assign({ className: css(styles$t.toggleGroup, isCompact && styles$t.modifiers.compact, className), role: \"group\", \"aria-label\": ariaLabel }, props), toggleGroupItemList));\n};\nToggleGroup.displayName = 'ToggleGroup';\n\nvar ToggleGroupItemVariant;\n(function (ToggleGroupItemVariant) {\n ToggleGroupItemVariant[\"icon\"] = \"icon\";\n ToggleGroupItemVariant[\"text\"] = \"text\";\n})(ToggleGroupItemVariant || (ToggleGroupItemVariant = {}));\nconst ToggleGroupItemElement = ({ variant, children }) => (react.createElement(\"span\", { className: css(variant === 'icon' && styles$t.toggleGroupIcon, variant === 'text' && styles$t.toggleGroupText) }, children));\nToggleGroupItemElement.displayName = 'ToggleGroupItemElement';\n\nconst ToggleGroupItem = (_a) => {\n var { text, icon, className, isDisabled = false, isSelected = false, 'aria-label': ariaLabel = '', onChange = () => { }, buttonId = '' } = _a, props = __rest(_a, [\"text\", \"icon\", \"className\", \"isDisabled\", \"isSelected\", 'aria-label', \"onChange\", \"buttonId\"]);\n const handleChange = (event) => {\n onChange(!isSelected, event);\n };\n if (!ariaLabel && icon && !text) {\n /* eslint-disable no-console */\n console.warn('An accessible aria-label is required when using the toggle group item icon variant.');\n }\n return (react.createElement(\"div\", Object.assign({ className: css(styles$t.toggleGroupItem, className) }, props),\n react.createElement(\"button\", Object.assign({ type: \"button\", className: css(styles$t.toggleGroupButton, isSelected && styles$t.modifiers.selected), \"aria-pressed\": isSelected, onClick: handleChange }, (ariaLabel && { 'aria-label': ariaLabel }), (isDisabled && { disabled: true }), (buttonId && { id: buttonId })),\n icon ? react.createElement(ToggleGroupItemElement, { variant: ToggleGroupItemVariant.icon }, icon) : null,\n text ? react.createElement(ToggleGroupItemElement, { variant: ToggleGroupItemVariant.text }, text) : null)));\n};\nToggleGroupItem.displayName = 'ToggleGroupItem';\n\nvar toolbar = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"chipGroup\": \"pf-c-chip-group\",\n \"divider\": \"pf-c-divider\",\n \"modifiers\": {\n \"hidden\": \"pf-m-hidden\",\n \"hiddenOnSm\": \"pf-m-hidden-on-sm\",\n \"visibleOnSm\": \"pf-m-visible-on-sm\",\n \"hiddenOnMd\": \"pf-m-hidden-on-md\",\n \"visibleOnMd\": \"pf-m-visible-on-md\",\n \"hiddenOnLg\": \"pf-m-hidden-on-lg\",\n \"visibleOnLg\": \"pf-m-visible-on-lg\",\n \"hiddenOnXl\": \"pf-m-hidden-on-xl\",\n \"visibleOnXl\": \"pf-m-visible-on-xl\",\n \"hiddenOn_2xl\": \"pf-m-hidden-on-2xl\",\n \"visibleOn_2xl\": \"pf-m-visible-on-2xl\",\n \"pageInsets\": \"pf-m-page-insets\",\n \"sticky\": \"pf-m-sticky\",\n \"fullHeight\": \"pf-m-full-height\",\n \"static\": \"pf-m-static\",\n \"vertical\": \"pf-m-vertical\",\n \"buttonGroup\": \"pf-m-button-group\",\n \"iconButtonGroup\": \"pf-m-icon-button-group\",\n \"filterGroup\": \"pf-m-filter-group\",\n \"toggleGroup\": \"pf-m-toggle-group\",\n \"overflowMenu\": \"pf-m-overflow-menu\",\n \"bulkSelect\": \"pf-m-bulk-select\",\n \"expandAll\": \"pf-m-expand-all\",\n \"expanded\": \"pf-m-expanded\",\n \"searchFilter\": \"pf-m-search-filter\",\n \"chipGroup\": \"pf-m-chip-group\",\n \"label\": \"pf-m-label\",\n \"pagination\": \"pf-m-pagination\",\n \"chipContainer\": \"pf-m-chip-container\",\n \"plain\": \"pf-m-plain\",\n \"show\": \"pf-m-show\",\n \"showOnSm\": \"pf-m-show-on-sm\",\n \"showOnMd\": \"pf-m-show-on-md\",\n \"showOnLg\": \"pf-m-show-on-lg\",\n \"showOnXl\": \"pf-m-show-on-xl\",\n \"showOn_2xl\": \"pf-m-show-on-2xl\",\n \"alignRight\": \"pf-m-align-right\",\n \"alignLeft\": \"pf-m-align-left\",\n \"nowrap\": \"pf-m-nowrap\",\n \"wrap\": \"pf-m-wrap\",\n \"alignRightOnSm\": \"pf-m-align-right-on-sm\",\n \"alignLeftOnSm\": \"pf-m-align-left-on-sm\",\n \"nowrapOnSm\": \"pf-m-nowrap-on-sm\",\n \"wrapOnSm\": \"pf-m-wrap-on-sm\",\n \"alignRightOnMd\": \"pf-m-align-right-on-md\",\n \"alignLeftOnMd\": \"pf-m-align-left-on-md\",\n \"nowrapOnMd\": \"pf-m-nowrap-on-md\",\n \"wrapOnMd\": \"pf-m-wrap-on-md\",\n \"alignRightOnLg\": \"pf-m-align-right-on-lg\",\n \"alignLeftOnLg\": \"pf-m-align-left-on-lg\",\n \"nowrapOnLg\": \"pf-m-nowrap-on-lg\",\n \"wrapOnLg\": \"pf-m-wrap-on-lg\",\n \"alignRightOnXl\": \"pf-m-align-right-on-xl\",\n \"alignLeftOnXl\": \"pf-m-align-left-on-xl\",\n \"nowrapOnXl\": \"pf-m-nowrap-on-xl\",\n \"wrapOnXl\": \"pf-m-wrap-on-xl\",\n \"alignRightOn_2xl\": \"pf-m-align-right-on-2xl\",\n \"alignLeftOn_2xl\": \"pf-m-align-left-on-2xl\",\n \"nowrapOn_2xl\": \"pf-m-nowrap-on-2xl\",\n \"wrapOn_2xl\": \"pf-m-wrap-on-2xl\",\n \"spaceItemsNone\": \"pf-m-space-items-none\",\n \"spaceItemsSm\": \"pf-m-space-items-sm\",\n \"spaceItemsMd\": \"pf-m-space-items-md\",\n \"spaceItemsLg\": \"pf-m-space-items-lg\",\n \"spaceItemsNoneOnSm\": \"pf-m-space-items-none-on-sm\",\n \"spaceItemsSmOnSm\": \"pf-m-space-items-sm-on-sm\",\n \"spaceItemsMdOnSm\": \"pf-m-space-items-md-on-sm\",\n \"spaceItemsLgOnSm\": \"pf-m-space-items-lg-on-sm\",\n \"spaceItemsNoneOnMd\": \"pf-m-space-items-none-on-md\",\n \"spaceItemsSmOnMd\": \"pf-m-space-items-sm-on-md\",\n \"spaceItemsMdOnMd\": \"pf-m-space-items-md-on-md\",\n \"spaceItemsLgOnMd\": \"pf-m-space-items-lg-on-md\",\n \"spaceItemsNoneOnLg\": \"pf-m-space-items-none-on-lg\",\n \"spaceItemsSmOnLg\": \"pf-m-space-items-sm-on-lg\",\n \"spaceItemsMdOnLg\": \"pf-m-space-items-md-on-lg\",\n \"spaceItemsLgOnLg\": \"pf-m-space-items-lg-on-lg\",\n \"spaceItemsNoneOnXl\": \"pf-m-space-items-none-on-xl\",\n \"spaceItemsSmOnXl\": \"pf-m-space-items-sm-on-xl\",\n \"spaceItemsMdOnXl\": \"pf-m-space-items-md-on-xl\",\n \"spaceItemsLgOnXl\": \"pf-m-space-items-lg-on-xl\",\n \"spaceItemsNoneOn_2xl\": \"pf-m-space-items-none-on-2xl\",\n \"spaceItemsSmOn_2xl\": \"pf-m-space-items-sm-on-2xl\",\n \"spaceItemsMdOn_2xl\": \"pf-m-space-items-md-on-2xl\",\n \"spaceItemsLgOn_2xl\": \"pf-m-space-items-lg-on-2xl\",\n \"spacerNone\": \"pf-m-spacer-none\",\n \"spacerSm\": \"pf-m-spacer-sm\",\n \"spacerMd\": \"pf-m-spacer-md\",\n \"spacerLg\": \"pf-m-spacer-lg\",\n \"spacerNoneOnSm\": \"pf-m-spacer-none-on-sm\",\n \"spacerSmOnSm\": \"pf-m-spacer-sm-on-sm\",\n \"spacerMdOnSm\": \"pf-m-spacer-md-on-sm\",\n \"spacerLgOnSm\": \"pf-m-spacer-lg-on-sm\",\n \"spacerNoneOnMd\": \"pf-m-spacer-none-on-md\",\n \"spacerSmOnMd\": \"pf-m-spacer-sm-on-md\",\n \"spacerMdOnMd\": \"pf-m-spacer-md-on-md\",\n \"spacerLgOnMd\": \"pf-m-spacer-lg-on-md\",\n \"spacerNoneOnLg\": \"pf-m-spacer-none-on-lg\",\n \"spacerSmOnLg\": \"pf-m-spacer-sm-on-lg\",\n \"spacerMdOnLg\": \"pf-m-spacer-md-on-lg\",\n \"spacerLgOnLg\": \"pf-m-spacer-lg-on-lg\",\n \"spacerNoneOnXl\": \"pf-m-spacer-none-on-xl\",\n \"spacerSmOnXl\": \"pf-m-spacer-sm-on-xl\",\n \"spacerMdOnXl\": \"pf-m-spacer-md-on-xl\",\n \"spacerLgOnXl\": \"pf-m-spacer-lg-on-xl\",\n \"spacerNoneOn_2xl\": \"pf-m-spacer-none-on-2xl\",\n \"spacerSmOn_2xl\": \"pf-m-spacer-sm-on-2xl\",\n \"spacerMdOn_2xl\": \"pf-m-spacer-md-on-2xl\",\n \"spacerLgOn_2xl\": \"pf-m-spacer-lg-on-2xl\",\n \"insetNone\": \"pf-m-inset-none\",\n \"insetSm\": \"pf-m-inset-sm\",\n \"insetMd\": \"pf-m-inset-md\",\n \"insetLg\": \"pf-m-inset-lg\",\n \"insetXl\": \"pf-m-inset-xl\",\n \"inset_2xl\": \"pf-m-inset-2xl\",\n \"insetNoneOnSm\": \"pf-m-inset-none-on-sm\",\n \"insetSmOnSm\": \"pf-m-inset-sm-on-sm\",\n \"insetMdOnSm\": \"pf-m-inset-md-on-sm\",\n \"insetLgOnSm\": \"pf-m-inset-lg-on-sm\",\n \"insetXlOnSm\": \"pf-m-inset-xl-on-sm\",\n \"inset_2xlOnSm\": \"pf-m-inset-2xl-on-sm\",\n \"insetNoneOnMd\": \"pf-m-inset-none-on-md\",\n \"insetSmOnMd\": \"pf-m-inset-sm-on-md\",\n \"insetMdOnMd\": \"pf-m-inset-md-on-md\",\n \"insetLgOnMd\": \"pf-m-inset-lg-on-md\",\n \"insetXlOnMd\": \"pf-m-inset-xl-on-md\",\n \"inset_2xlOnMd\": \"pf-m-inset-2xl-on-md\",\n \"insetNoneOnLg\": \"pf-m-inset-none-on-lg\",\n \"insetSmOnLg\": \"pf-m-inset-sm-on-lg\",\n \"insetMdOnLg\": \"pf-m-inset-md-on-lg\",\n \"insetLgOnLg\": \"pf-m-inset-lg-on-lg\",\n \"insetXlOnLg\": \"pf-m-inset-xl-on-lg\",\n \"inset_2xlOnLg\": \"pf-m-inset-2xl-on-lg\",\n \"insetNoneOnXl\": \"pf-m-inset-none-on-xl\",\n \"insetSmOnXl\": \"pf-m-inset-sm-on-xl\",\n \"insetMdOnXl\": \"pf-m-inset-md-on-xl\",\n \"insetLgOnXl\": \"pf-m-inset-lg-on-xl\",\n \"insetXlOnXl\": \"pf-m-inset-xl-on-xl\",\n \"inset_2xlOnXl\": \"pf-m-inset-2xl-on-xl\",\n \"insetNoneOn_2xl\": \"pf-m-inset-none-on-2xl\",\n \"insetSmOn_2xl\": \"pf-m-inset-sm-on-2xl\",\n \"insetMdOn_2xl\": \"pf-m-inset-md-on-2xl\",\n \"insetLgOn_2xl\": \"pf-m-inset-lg-on-2xl\",\n \"insetXlOn_2xl\": \"pf-m-inset-xl-on-2xl\",\n \"inset_2xlOn_2xl\": \"pf-m-inset-2xl-on-2xl\"\n },\n \"pagination\": \"pf-c-pagination\",\n \"toolbar\": \"pf-c-toolbar\",\n \"toolbarContent\": \"pf-c-toolbar__content\",\n \"toolbarContentSection\": \"pf-c-toolbar__content-section\",\n \"toolbarExpandAllIcon\": \"pf-c-toolbar__expand-all-icon\",\n \"toolbarExpandableContent\": \"pf-c-toolbar__expandable-content\",\n \"toolbarGroup\": \"pf-c-toolbar__group\",\n \"toolbarItem\": \"pf-c-toolbar__item\",\n \"toolbarToggle\": \"pf-c-toolbar__toggle\"\n};\n});\n\nvar styles$u = /*@__PURE__*/getDefaultExportFromCjs(toolbar);\n\nconst ToolbarContext = react.createContext({\n isExpanded: false,\n toggleIsExpanded: () => { },\n chipGroupContentRef: null,\n updateNumberFilters: () => { },\n numberOfFilters: 0,\n clearAllFilters: () => { }\n});\nconst ToolbarContentContext = react.createContext({\n expandableContentRef: null,\n expandableContentId: '',\n chipContainerRef: null\n});\nconst globalBreakpoints = {\n md: parseInt(global_breakpoint_md.value),\n lg: parseInt(global_breakpoint_lg.value),\n xl: parseInt(global_breakpoint_xl.value),\n '2xl': parseInt(global_breakpoint_2xl.value)\n};\n\nvar ToolbarItemVariant;\n(function (ToolbarItemVariant) {\n ToolbarItemVariant[\"separator\"] = \"separator\";\n ToolbarItemVariant[\"bulk-select\"] = \"bulk-select\";\n ToolbarItemVariant[\"overflow-menu\"] = \"overflow-menu\";\n ToolbarItemVariant[\"pagination\"] = \"pagination\";\n ToolbarItemVariant[\"search-filter\"] = \"search-filter\";\n ToolbarItemVariant[\"label\"] = \"label\";\n ToolbarItemVariant[\"chip-group\"] = \"chip-group\";\n ToolbarItemVariant[\"expand-all\"] = \"expand-all\";\n})(ToolbarItemVariant || (ToolbarItemVariant = {}));\nconst ToolbarItem = (_a) => {\n var { className, variant, visibility, visiblity, alignment, spacer, widths, id, children, isAllExpanded } = _a, props = __rest(_a, [\"className\", \"variant\", \"visibility\", \"visiblity\", \"alignment\", \"spacer\", \"widths\", \"id\", \"children\", \"isAllExpanded\"]);\n if (variant === ToolbarItemVariant.separator) {\n return react.createElement(Divider, Object.assign({ className: css(styles$u.modifiers.vertical, className) }, props));\n }\n if (visiblity !== undefined) {\n // eslint-disable-next-line no-console\n console.warn('The ToolbarItem visiblity prop has been deprecated. ' +\n 'Please use the correctly spelled visibility prop instead.');\n }\n const widthStyles = {};\n if (widths) {\n Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));\n }\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbarItem, variant &&\n styles$u.modifiers[toCamel(variant)], isAllExpanded && styles$u.modifiers.expanded, formatBreakpointMods(visibility || visiblity, styles$u), formatBreakpointMods(alignment, styles$u), formatBreakpointMods(spacer, styles$u), className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));\n};\nToolbarItem.displayName = 'ToolbarItem';\n\nvar ToolbarGroupVariant;\n(function (ToolbarGroupVariant) {\n ToolbarGroupVariant[\"filter-group\"] = \"filter-group\";\n ToolbarGroupVariant[\"icon-button-group\"] = \"icon-button-group\";\n ToolbarGroupVariant[\"button-group\"] = \"button-group\";\n})(ToolbarGroupVariant || (ToolbarGroupVariant = {}));\nclass ToolbarGroupWithRef extends react.Component {\n render() {\n const _a = this.props, { visibility, visiblity, alignment, spacer, spaceItems, className, variant, children, innerRef } = _a, props = __rest(_a, [\"visibility\", \"visiblity\", \"alignment\", \"spacer\", \"spaceItems\", \"className\", \"variant\", \"children\", \"innerRef\"]);\n if (visiblity !== undefined) {\n // eslint-disable-next-line no-console\n console.warn('The ToolbarGroup visiblity prop has been deprecated. ' +\n 'Please use the correctly spelled visibility prop instead.');\n }\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbarGroup, variant && styles$u.modifiers[toCamel(variant)], formatBreakpointMods(visibility || visiblity, styles$u), formatBreakpointMods(alignment, styles$u), formatBreakpointMods(spacer, styles$u), formatBreakpointMods(spaceItems, styles$u), className) }, props, { ref: innerRef }), children));\n }\n}\nconst ToolbarGroup = react.forwardRef((props, ref) => (react.createElement(ToolbarGroupWithRef, Object.assign({}, props, { innerRef: ref }))));\n\nclass ToolbarChipGroupContent extends react.Component {\n render() {\n const _a = this.props, { className, isExpanded, chipGroupContentRef, clearAllFilters, showClearFiltersButton, clearFiltersButtonText, collapseListedFiltersBreakpoint, numberOfFilters } = _a, props = __rest(_a, [\"className\", \"isExpanded\", \"chipGroupContentRef\", \"clearAllFilters\", \"showClearFiltersButton\", \"clearFiltersButtonText\", \"collapseListedFiltersBreakpoint\", \"numberOfFilters\"]);\n const clearChipGroups = () => {\n clearAllFilters();\n };\n let collapseListedFilters = false;\n if (collapseListedFiltersBreakpoint === 'all') {\n collapseListedFilters = true;\n }\n else if (canUseDOM) {\n collapseListedFilters =\n (canUseDOM ? window.innerWidth : 1200) < globalBreakpoints[collapseListedFiltersBreakpoint];\n }\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$u.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),\n react.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$u.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),\n collapseListedFilters && numberOfFilters > 0 && !isExpanded && (react.createElement(ToolbarGroup, null,\n react.createElement(ToolbarItem, null,\n numberOfFilters,\n \" filters applied\"))),\n showClearFiltersButton && !isExpanded && (react.createElement(ToolbarItem, null,\n react.createElement(Button, { variant: \"link\", onClick: clearChipGroups, isInline: true }, clearFiltersButtonText)))));\n }\n}\nToolbarChipGroupContent.displayName = 'ToolbarChipGroupContent';\nToolbarChipGroupContent.defaultProps = {\n clearFiltersButtonText: 'Clear all filters',\n collapseListedFiltersBreakpoint: 'lg'\n};\n\nclass Toolbar extends react.Component {\n constructor() {\n super(...arguments);\n this.chipGroupContentRef = react.createRef();\n this.staticFilterInfo = {};\n this.state = {\n isManagedToggleExpanded: false,\n filterInfo: {},\n windowWidth: canUseDOM ? window.innerWidth : 1200,\n ouiaStateId: getDefaultOUIAId(Toolbar.displayName)\n };\n this.isToggleManaged = () => !(this.props.isExpanded || !!this.props.toggleIsExpanded);\n this.toggleIsExpanded = () => {\n this.setState(prevState => ({\n isManagedToggleExpanded: !prevState.isManagedToggleExpanded\n }));\n };\n this.closeExpandableContent = (e) => {\n if (e.target.innerWidth !== this.state.windowWidth) {\n this.setState(() => ({\n isManagedToggleExpanded: false,\n windowWidth: e.target.innerWidth\n }));\n }\n };\n this.updateNumberFilters = (categoryName, numberOfFilters) => {\n const filterInfoToUpdate = Object.assign({}, this.staticFilterInfo);\n if (!filterInfoToUpdate.hasOwnProperty(categoryName) || filterInfoToUpdate[categoryName] !== numberOfFilters) {\n filterInfoToUpdate[categoryName] = numberOfFilters;\n this.staticFilterInfo = filterInfoToUpdate;\n this.setState({ filterInfo: filterInfoToUpdate });\n }\n };\n this.getNumberOfFilters = () => Object.values(this.state.filterInfo).reduce((acc, cur) => acc + cur, 0);\n this.renderToolbar = (randomId) => {\n const _a = this.props, { clearAllFilters, clearFiltersButtonText, collapseListedFiltersBreakpoint, isExpanded: isExpandedProp, toggleIsExpanded, className, children, isFullHeight, isStatic, inset, usePageInsets, isSticky, ouiaId } = _a, props = __rest(_a, [\"clearAllFilters\", \"clearFiltersButtonText\", \"collapseListedFiltersBreakpoint\", \"isExpanded\", \"toggleIsExpanded\", \"className\", \"children\", \"isFullHeight\", \"isStatic\", \"inset\", \"usePageInsets\", \"isSticky\", \"ouiaId\"]);\n const { isManagedToggleExpanded } = this.state;\n const isToggleManaged = this.isToggleManaged();\n const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;\n const numberOfFilters = this.getNumberOfFilters();\n const showClearFiltersButton = numberOfFilters > 0;\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbar, isFullHeight && styles$u.modifiers.fullHeight, isStatic && styles$u.modifiers.static, usePageInsets && styles$u.modifiers.pageInsets, isSticky && styles$u.modifiers.sticky, formatBreakpointMods(inset, styles$u), className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),\n react.createElement(ToolbarContext.Provider, { value: {\n isExpanded,\n toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,\n chipGroupContentRef: this.chipGroupContentRef,\n updateNumberFilters: this.updateNumberFilters,\n numberOfFilters,\n clearAllFilters,\n clearFiltersButtonText,\n showClearFiltersButton,\n toolbarId: randomId\n } },\n children,\n react.createElement(ToolbarChipGroupContent, { isExpanded: isExpanded, chipGroupContentRef: this.chipGroupContentRef, clearAllFilters: clearAllFilters, showClearFiltersButton: showClearFiltersButton, clearFiltersButtonText: clearFiltersButtonText, numberOfFilters: numberOfFilters, collapseListedFiltersBreakpoint: collapseListedFiltersBreakpoint }))));\n };\n }\n componentDidMount() {\n if (this.isToggleManaged() && canUseDOM) {\n window.addEventListener('resize', this.closeExpandableContent);\n }\n }\n componentWillUnmount() {\n if (this.isToggleManaged() && canUseDOM) {\n window.removeEventListener('resize', this.closeExpandableContent);\n }\n }\n render() {\n return this.props.id ? (this.renderToolbar(this.props.id)) : (react.createElement(GenerateId, null, randomId => this.renderToolbar(randomId)));\n }\n}\nToolbar.displayName = 'Toolbar';\n\nclass ToolbarExpandableContent extends react.Component {\n render() {\n const _a = this.props, { className, expandableContentRef, chipContainerRef, \n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n isExpanded, clearAllFilters, clearFiltersButtonText, showClearFiltersButton } = _a, props = __rest(_a, [\"className\", \"expandableContentRef\", \"chipContainerRef\", \"isExpanded\", \"clearAllFilters\", \"clearFiltersButtonText\", \"showClearFiltersButton\"]);\n const { numberOfFilters } = this.context;\n const clearChipGroups = () => {\n clearAllFilters();\n };\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbarExpandableContent, className), ref: expandableContentRef }, props),\n react.createElement(ToolbarGroup, null),\n numberOfFilters > 0 && (react.createElement(ToolbarGroup, { className: styles$u.modifiers.chipContainer },\n react.createElement(ToolbarGroup, { ref: chipContainerRef }),\n showClearFiltersButton && (react.createElement(ToolbarItem, null,\n react.createElement(Button, { variant: \"link\", onClick: clearChipGroups, isInline: true }, clearFiltersButtonText)))))));\n }\n}\nToolbarExpandableContent.displayName = 'ToolbarExpandableContent';\nToolbarExpandableContent.contextType = ToolbarContext;\nToolbarExpandableContent.defaultProps = {\n isExpanded: false,\n clearFiltersButtonText: 'Clear all filters'\n};\n\nclass ToolbarContent extends react.Component {\n constructor() {\n super(...arguments);\n this.expandableContentRef = react.createRef();\n this.chipContainerRef = react.createRef();\n }\n render() {\n const _a = this.props, { className, children, isExpanded, toolbarId, visibility, visiblity, alignment, clearAllFilters, showClearFiltersButton, clearFiltersButtonText } = _a, props = __rest(_a, [\"className\", \"children\", \"isExpanded\", \"toolbarId\", \"visibility\", \"visiblity\", \"alignment\", \"clearAllFilters\", \"showClearFiltersButton\", \"clearFiltersButtonText\"]);\n if (visiblity !== undefined) {\n // eslint-disable-next-line no-console\n console.warn('The ToolbarContent visiblity prop has been deprecated. ' +\n 'Please use the correctly spelled visibility prop instead.');\n }\n return (react.createElement(\"div\", Object.assign({ className: css(styles$u.toolbarContent, formatBreakpointMods(visibility || visiblity, styles$u), formatBreakpointMods(alignment, styles$u), className) }, props),\n react.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, toolbarId: toolbarIdContext }) => {\n const expandableContentId = `${toolbarId ||\n toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;\n return (react.createElement(ToolbarContentContext.Provider, { value: {\n expandableContentRef: this.expandableContentRef,\n expandableContentId,\n chipContainerRef: this.chipContainerRef\n } },\n react.createElement(\"div\", { className: css(styles$u.toolbarContentSection) }, children),\n react.createElement(ToolbarExpandableContent, { id: expandableContentId, isExpanded: isExpanded, expandableContentRef: this.expandableContentRef, chipContainerRef: this.chipContainerRef, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext })));\n })));\n }\n}\nToolbarContent.displayName = 'ToolbarContent';\nToolbarContent.currentId = 0;\nToolbarContent.defaultProps = {\n isExpanded: false,\n showClearFiltersButton: false\n};\n\nvar numberInput = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"formControl\": \"pf-c-form-control\",\n \"inputGroup\": \"pf-c-input-group\",\n \"numberInput\": \"pf-c-number-input\",\n \"numberInputIcon\": \"pf-c-number-input__icon\",\n \"numberInputUnit\": \"pf-c-number-input__unit\"\n};\n});\n\nvar styles$v = /*@__PURE__*/getDefaultExportFromCjs(numberInput);\n\nconst NumberInput = (_a) => {\n var { value = 0, className, widthChars, isDisabled = false, onMinus = () => { }, onChange, onPlus = () => { }, unit, unitPosition = 'after', min, max, inputName, inputAriaLabel = 'Input', minusBtnAriaLabel = 'Minus', plusBtnAriaLabel = 'Plus', inputProps, minusBtnProps, plusBtnProps } = _a, props = __rest(_a, [\"value\", \"className\", \"widthChars\", \"isDisabled\", \"onMinus\", \"onChange\", \"onPlus\", \"unit\", \"unitPosition\", \"min\", \"max\", \"inputName\", \"inputAriaLabel\", \"minusBtnAriaLabel\", \"plusBtnAriaLabel\", \"inputProps\", \"minusBtnProps\", \"plusBtnProps\"]);\n const numberInputUnit = react.createElement(\"div\", { className: css(styles$v.numberInputUnit) }, unit);\n return (react.createElement(\"div\", Object.assign({ className: css(styles$v.numberInput, className) }, (widthChars && {\n style: Object.assign({ '--pf-c-number-input--c-form-control--width-chars': widthChars }, props.style)\n }), props),\n unit && unitPosition === 'before' && numberInputUnit,\n react.createElement(\"div\", { className: css(styles$v.inputGroup) },\n react.createElement(Button, Object.assign({ variant: \"control\", \"aria-label\": minusBtnAriaLabel, isDisabled: isDisabled || value === min, onClick: evt => onMinus(evt, inputName) }, minusBtnProps),\n react.createElement(\"span\", { className: css(styles$v.numberInputIcon) },\n react.createElement(MinusIcon, { \"aria-hidden\": \"true\" }))),\n react.createElement(\"input\", Object.assign({ className: css(styles$v.formControl), type: \"number\", value: value, name: inputName, \"aria-label\": inputAriaLabel }, (isDisabled && { disabled: isDisabled }), (onChange && { onChange }), (!onChange && { readOnly: true }), inputProps)),\n react.createElement(Button, Object.assign({ variant: \"control\", \"aria-label\": plusBtnAriaLabel, isDisabled: isDisabled || value === max, onClick: evt => onPlus(evt, inputName) }, plusBtnProps),\n react.createElement(\"span\", { className: css(styles$v.numberInputIcon) },\n react.createElement(PlusIcon, { \"aria-hidden\": \"true\" })))),\n unit && unitPosition === 'after' && numberInputUnit));\n};\nNumberInput.displayName = 'NumberInput';\n\nvar wizard = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"button\": \"pf-c-button\",\n \"card\": \"pf-c-card\",\n \"modalBox\": \"pf-c-modal-box\",\n \"modifiers\": {\n \"finished\": \"pf-m-finished\",\n \"expanded\": \"pf-m-expanded\",\n \"current\": \"pf-m-current\",\n \"expandable\": \"pf-m-expandable\",\n \"disabled\": \"pf-m-disabled\",\n \"noPadding\": \"pf-m-no-padding\"\n },\n \"pageMainWizard\": \"pf-c-page__main-wizard\",\n \"wizard\": \"pf-c-wizard\",\n \"wizardClose\": \"pf-c-wizard__close\",\n \"wizardDescription\": \"pf-c-wizard__description\",\n \"wizardFooter\": \"pf-c-wizard__footer\",\n \"wizardFooterCancel\": \"pf-c-wizard__footer-cancel\",\n \"wizardHeader\": \"pf-c-wizard__header\",\n \"wizardInnerWrap\": \"pf-c-wizard__inner-wrap\",\n \"wizardMain\": \"pf-c-wizard__main\",\n \"wizardMainBody\": \"pf-c-wizard__main-body\",\n \"wizardNav\": \"pf-c-wizard__nav\",\n \"wizardNavItem\": \"pf-c-wizard__nav-item\",\n \"wizardNavLink\": \"pf-c-wizard__nav-link\",\n \"wizardNavLinkText\": \"pf-c-wizard__nav-link-text\",\n \"wizardNavLinkToggle\": \"pf-c-wizard__nav-link-toggle\",\n \"wizardNavLinkToggleIcon\": \"pf-c-wizard__nav-link-toggle-icon\",\n \"wizardNavList\": \"pf-c-wizard__nav-list\",\n \"wizardOuterWrap\": \"pf-c-wizard__outer-wrap\",\n \"wizardTitle\": \"pf-c-wizard__title\",\n \"wizardToggle\": \"pf-c-wizard__toggle\",\n \"wizardToggleIcon\": \"pf-c-wizard__toggle-icon\",\n \"wizardToggleList\": \"pf-c-wizard__toggle-list\",\n \"wizardToggleListItem\": \"pf-c-wizard__toggle-list-item\",\n \"wizardToggleNum\": \"pf-c-wizard__toggle-num\",\n \"wizardToggleSeparator\": \"pf-c-wizard__toggle-separator\"\n};\n});\n\nvar styles$w = /*@__PURE__*/getDefaultExportFromCjs(wizard);\n\nconst WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => (react.createElement(\"footer\", { className: css(styles$w.wizardFooter) },\n react.createElement(Button, { variant: ButtonVariant.primary, type: \"submit\", onClick: onNext, isDisabled: !isValid }, nextButtonText),\n !activeStep.hideBackButton && (react.createElement(Button, { variant: ButtonVariant.secondary, onClick: onBack, isDisabled: firstStep }, backButtonText)),\n !activeStep.hideCancelButton && (react.createElement(\"div\", { className: styles$w.wizardFooterCancel },\n react.createElement(Button, { variant: ButtonVariant.link, onClick: onClose }, cancelButtonText)))));\nWizardFooterInternal.displayName = 'WizardFooterInternal';\n\nconst WizardBody = ({ children, hasNoBodyPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, mainComponent = 'div' }) => {\n const MainComponent = mainComponent;\n return (react.createElement(MainComponent, { \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy, className: css(styles$w.wizardMain) },\n react.createElement(\"div\", { className: css(styles$w.wizardMainBody, hasNoBodyPadding && styles$w.modifiers.noPadding) }, children)));\n};\nWizardBody.displayName = 'WizardBody';\n\nconst WizardToggle = ({ isNavOpen, onNavToggle, nav, steps, activeStep, children, hasNoBodyPadding = false, 'aria-label': ariaLabel = 'Wizard Toggle', mainAriaLabelledBy = null, mainAriaLabel = null, isInPage = true }) => {\n let activeStepIndex;\n let activeStepName;\n let activeStepSubName;\n for (let i = 0; i < steps.length; i++) {\n if ((activeStep.id && steps[i].id === activeStep.id) || steps[i].name === activeStep.name) {\n activeStepIndex = i + 1;\n activeStepName = steps[i].name;\n break;\n }\n else if (steps[i].steps) {\n for (const step of steps[i].steps) {\n if ((activeStep.id && step.id === activeStep.id) || step.name === activeStep.name) {\n activeStepIndex = i + 1;\n activeStepName = steps[i].name;\n activeStepSubName = step.name;\n break;\n }\n }\n }\n }\n return (react.createElement(react.Fragment, null,\n react.createElement(\"button\", { onClick: () => onNavToggle(!isNavOpen), className: css(styles$w.wizardToggle, isNavOpen && 'pf-m-expanded'), \"aria-label\": ariaLabel, \"aria-expanded\": isNavOpen },\n react.createElement(\"span\", { className: css(styles$w.wizardToggleList) },\n react.createElement(\"span\", { className: css(styles$w.wizardToggleListItem) },\n react.createElement(\"span\", { className: css(styles$w.wizardToggleNum) }, activeStepIndex),\n \" \",\n activeStepName,\n activeStepSubName && react.createElement(AngleRightIcon, { className: css(styles$w.wizardToggleSeparator), \"aria-hidden\": \"true\" })),\n activeStepSubName && react.createElement(\"span\", { className: css(styles$w.wizardToggleListItem) }, activeStepSubName)),\n react.createElement(\"span\", { className: css(styles$w.wizardToggleIcon) },\n react.createElement(CaretDownIcon, { \"aria-hidden\": \"true\" }))),\n react.createElement(\"div\", { className: css(styles$w.wizardOuterWrap) },\n react.createElement(\"div\", { className: css(styles$w.wizardInnerWrap) },\n nav(isNavOpen),\n react.createElement(WizardBody, { mainComponent: isInPage ? 'div' : 'main', \"aria-label\": mainAriaLabel, \"aria-labelledby\": mainAriaLabelledBy, hasNoBodyPadding: hasNoBodyPadding }, activeStep.component)),\n children)));\n};\nWizardToggle.displayName = 'WizardToggle';\n\nconst WizardNav = ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isOpen = false, returnList = false }) => {\n const innerList = react.createElement(\"ol\", { className: css(styles$w.wizardNavList) }, children);\n if (returnList) {\n return innerList;\n }\n return (react.createElement(\"nav\", { className: css(styles$w.wizardNav, isOpen && styles$w.modifiers.expanded), \"aria-label\": ariaLabel, \"aria-labelledby\": ariaLabelledBy },\n react.createElement(\"ol\", { className: css(styles$w.wizardNavList) }, children)));\n};\nWizardNav.displayName = 'WizardNav';\n\nconst WizardNavItem = (_a) => {\n var { children = null, content = '', isCurrent = false, isDisabled = false, step, onNavItemClick = () => undefined, navItemComponent = 'button', href = null, isExpandable = false } = _a, rest = __rest(_a, [\"children\", \"content\", \"isCurrent\", \"isDisabled\", \"step\", \"onNavItemClick\", \"navItemComponent\", \"href\", \"isExpandable\"]);\n const NavItemComponent = navItemComponent;\n const [isExpanded, setIsExpanded] = react.useState(false);\n react.useEffect(() => {\n setIsExpanded(isCurrent);\n }, [isCurrent]);\n if (navItemComponent === 'a' && !href && \"production\" !== 'production') {\n // eslint-disable-next-line no-console\n console.error('WizardNavItem: When using an anchor, please provide an href');\n }\n const btnProps = {\n disabled: isDisabled\n };\n const linkProps = {\n tabIndex: isDisabled ? -1 : undefined,\n href\n };\n return (react.createElement(\"li\", { className: css(styles$w.wizardNavItem, isExpandable && styles$w.modifiers.expandable, isExpandable && isExpanded && styles$w.modifiers.expanded) },\n react.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css(styles$w.wizardNavLink, isCurrent && styles$w.modifiers.current, isDisabled && styles$w.modifiers.disabled), \"aria-disabled\": isDisabled ? true : null, \"aria-current\": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (react.createElement(react.Fragment, null,\n react.createElement(\"span\", { className: css(styles$w.wizardNavLinkText) }, content),\n react.createElement(\"span\", { className: css(styles$w.wizardNavLinkToggle) },\n react.createElement(\"span\", { className: css(styles$w.wizardNavLinkToggleIcon) },\n react.createElement(AngleRightIcon, null))))) : (content)),\n children));\n};\nWizardNavItem.displayName = 'WizardNavItem';\n\nconst WizardContext = react.createContext({\n goToStepById: () => null,\n goToStepByName: () => null,\n onNext: () => null,\n onBack: () => null,\n onClose: () => null,\n activeStep: { name: null }\n});\nconst WizardContextProvider = WizardContext.Provider;\nconst WizardContextConsumer = WizardContext.Consumer;\n\nconst WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionId }) => (react.createElement(\"div\", { className: css(styles$w.wizardHeader) },\n !hideClose && (react.createElement(Button, { variant: \"plain\", className: css(styles$w.wizardClose), \"aria-label\": closeButtonAriaLabel, onClick: onClose },\n react.createElement(TimesIcon, { \"aria-hidden\": \"true\" }))),\n react.createElement(Title, { headingLevel: \"h2\", size: \"3xl\", className: css(styles$w.wizardTitle), \"aria-label\": title, id: titleId }, title || react.createElement(react.Fragment, null, \"\\u00A0\")),\n description && (react.createElement(\"p\", { className: css(styles$w.wizardDescription), id: descriptionId }, description))));\nWizardHeader.displayName = 'WizardHeader';\n\nclass Wizard extends react.Component {\n constructor(props) {\n super(props);\n this.handleKeyClicks = (event) => {\n if (event.keyCode === KEY_CODES.ESCAPE_KEY) {\n if (this.state.isNavOpen) {\n this.setState({ isNavOpen: !this.state.isNavOpen });\n }\n else if (this.props.isOpen) {\n this.props.onClose();\n }\n }\n };\n this.onNext = () => {\n const { onNext, onClose, onSave } = this.props;\n const { currentStep } = this.state;\n const flattenedSteps = this.getFlattenedSteps();\n const maxSteps = flattenedSteps.length;\n if (currentStep >= maxSteps) {\n // Hit the save button at the end of the wizard\n if (onSave) {\n return onSave();\n }\n return onClose();\n }\n else {\n const newStep = currentStep + 1;\n this.setState({\n currentStep: newStep\n });\n const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];\n const { id, name } = flattenedSteps[newStep - 1];\n return onNext && onNext({ id, name }, { prevId, prevName });\n }\n };\n this.onBack = () => {\n const { onBack } = this.props;\n const { currentStep } = this.state;\n const flattenedSteps = this.getFlattenedSteps();\n if (flattenedSteps.length < currentStep) {\n // Previous step was removed, just update the currentStep state\n const adjustedStep = flattenedSteps.length;\n this.setState({\n currentStep: adjustedStep\n });\n }\n else {\n const newStep = currentStep - 1 <= 0 ? 0 : currentStep - 1;\n this.setState({\n currentStep: newStep\n });\n const { id: prevId, name: prevName } = flattenedSteps[newStep];\n const { id, name } = flattenedSteps[newStep - 1];\n return onBack && onBack({ id, name }, { prevId, prevName });\n }\n };\n this.goToStep = (step) => {\n const { onGoToStep } = this.props;\n const { currentStep } = this.state;\n const flattenedSteps = this.getFlattenedSteps();\n const maxSteps = flattenedSteps.length;\n if (step < 1) {\n step = 1;\n }\n else if (step > maxSteps) {\n step = maxSteps;\n }\n this.setState({ currentStep: step, isNavOpen: false });\n const { id: prevId, name: prevName } = flattenedSteps[currentStep - 1];\n const { id, name } = flattenedSteps[step - 1];\n return onGoToStep && onGoToStep({ id, name }, { prevId, prevName });\n };\n this.goToStepById = (stepId) => {\n const flattenedSteps = this.getFlattenedSteps();\n let step;\n for (let i = 0; i < flattenedSteps.length; i++) {\n if (flattenedSteps[i].id === stepId) {\n step = i + 1;\n break;\n }\n }\n if (step) {\n this.setState({ currentStep: step });\n }\n };\n this.goToStepByName = (stepName) => {\n const flattenedSteps = this.getFlattenedSteps();\n let step;\n for (let i = 0; i < flattenedSteps.length; i++) {\n if (flattenedSteps[i].name === stepName) {\n step = i + 1;\n break;\n }\n }\n if (step) {\n this.setState({ currentStep: step });\n }\n };\n this.getFlattenedSteps = () => {\n const { steps } = this.props;\n const flattenedSteps = [];\n for (const step of steps) {\n if (step.steps) {\n for (const childStep of step.steps) {\n flattenedSteps.push(childStep);\n }\n }\n else {\n flattenedSteps.push(step);\n }\n }\n return flattenedSteps;\n };\n this.getFlattenedStepsIndex = (flattenedSteps, stepName) => {\n for (let i = 0; i < flattenedSteps.length; i++) {\n if (flattenedSteps[i].name === stepName) {\n return i + 1;\n }\n }\n return 0;\n };\n this.initSteps = (steps) => {\n // Set default Step values\n for (let i = 0; i < steps.length; i++) {\n if (steps[i].steps) {\n for (let j = 0; j < steps[i].steps.length; j++) {\n steps[i].steps[j] = Object.assign({ canJumpTo: true }, steps[i].steps[j]);\n }\n }\n steps[i] = Object.assign({ canJumpTo: true }, steps[i]);\n }\n return steps;\n };\n this.getElement = (appendTo) => {\n if (typeof appendTo === 'function') {\n return appendTo();\n }\n return appendTo || document.body;\n };\n const newId = Wizard.currentId++;\n this.titleId = props.titleId || `pf-wizard-title-${newId}`;\n this.descriptionId = props.descriptionId || `pf-wizard-description-${newId}`;\n this.state = {\n currentStep: this.props.startAtStep && Number.isInteger(this.props.startAtStep) ? this.props.startAtStep : 1,\n isNavOpen: false\n };\n }\n componentDidMount() {\n const target = typeof document !== 'undefined' ? document.body : null;\n if (target) {\n target.addEventListener('keydown', this.handleKeyClicks, false);\n }\n }\n componentWillUnmount() {\n const target = (typeof document !== 'undefined' && document.body) || null;\n if (target) {\n target.removeEventListener('keydown', this.handleKeyClicks, false);\n }\n }\n render() {\n const _a = this.props, { \n /* eslint-disable @typescript-eslint/no-unused-vars */\n width, height, title, description, onClose, onSave, onBack, onNext, onGoToStep, className, steps, startAtStep, nextButtonText = 'Next', backButtonText = 'Back', cancelButtonText = 'Cancel', hideClose, closeButtonAriaLabel = 'Close', navAriaLabel, navAriaLabelledBy, mainAriaLabel, mainAriaLabelledBy, hasNoBodyPadding, footer, appendTo, isOpen, titleId, descriptionId, isNavExpandable } = _a, rest = __rest(_a, [\"width\", \"height\", \"title\", \"description\", \"onClose\", \"onSave\", \"onBack\", \"onNext\", \"onGoToStep\", \"className\", \"steps\", \"startAtStep\", \"nextButtonText\", \"backButtonText\", \"cancelButtonText\", \"hideClose\", \"closeButtonAriaLabel\", \"navAriaLabel\", \"navAriaLabelledBy\", \"mainAriaLabel\", \"mainAriaLabelledBy\", \"hasNoBodyPadding\", \"footer\", \"appendTo\", \"isOpen\", \"titleId\", \"descriptionId\", \"isNavExpandable\"])\n /* eslint-enable @typescript-eslint/no-unused-vars */\n ;\n const { currentStep } = this.state;\n const flattenedSteps = this.getFlattenedSteps();\n const adjustedStep = flattenedSteps.length < currentStep ? flattenedSteps.length : currentStep;\n const activeStep = flattenedSteps[adjustedStep - 1];\n const computedSteps = this.initSteps(steps);\n const firstStep = activeStep === flattenedSteps[0];\n const isValid = activeStep && activeStep.enableNext !== undefined ? activeStep.enableNext : true;\n const nav = (isWizardNavOpen) => {\n const wizNavAProps = {\n isOpen: isWizardNavOpen,\n 'aria-label': navAriaLabel,\n 'aria-labelledby': (title || navAriaLabelledBy) && (navAriaLabelledBy || this.titleId)\n };\n return (react.createElement(WizardNav, Object.assign({}, wizNavAProps), computedSteps.map((step, index) => {\n if (step.isFinishedStep) {\n // Don't show finished step in the side nav\n return;\n }\n let enabled;\n let navItemStep;\n if (step.steps) {\n let hasActiveChild = false;\n let canJumpToParent = false;\n for (const subStep of step.steps) {\n if (activeStep.name === subStep.name) {\n // one of the children matches\n hasActiveChild = true;\n }\n if (subStep.canJumpTo) {\n canJumpToParent = true;\n }\n }\n navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.steps[0].name);\n return (react.createElement(WizardNavItem, { key: index, content: step.name, isExpandable: isNavExpandable, isCurrent: hasActiveChild, isDisabled: !canJumpToParent, step: navItemStep, onNavItemClick: this.goToStep },\n react.createElement(WizardNav, Object.assign({}, wizNavAProps, { returnList: true }), step.steps.map((childStep, indexChild) => {\n if (childStep.isFinishedStep) {\n // Don't show finished step in the side nav\n return;\n }\n navItemStep = this.getFlattenedStepsIndex(flattenedSteps, childStep.name);\n enabled = childStep.canJumpTo;\n return (react.createElement(WizardNavItem, { key: `child_${indexChild}`, content: childStep.name, isCurrent: activeStep.name === childStep.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep }));\n }))));\n }\n navItemStep = this.getFlattenedStepsIndex(flattenedSteps, step.name);\n enabled = step.canJumpTo;\n return (react.createElement(WizardNavItem, Object.assign({}, step.stepNavItemProps, { key: index, content: step.name, isCurrent: activeStep.name === step.name, isDisabled: !enabled, step: navItemStep, onNavItemClick: this.goToStep })));\n })));\n };\n const context = {\n goToStepById: this.goToStepById,\n goToStepByName: this.goToStepByName,\n onNext: this.onNext,\n onBack: this.onBack,\n onClose,\n activeStep\n };\n const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));\n const wizard = (react.createElement(WizardContextProvider, { value: context },\n react.createElement(\"div\", Object.assign({}, rest, { className: css(styles$w.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),\n title && (react.createElement(WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),\n react.createElement(WizardToggle, { mainAriaLabel: mainAriaLabel, isInPage: isOpen === undefined, mainAriaLabelledBy: (title || mainAriaLabelledBy) && (mainAriaLabelledBy || this.titleId), isNavOpen: this.state.isNavOpen, onNavToggle: isNavOpen => this.setState({ isNavOpen }), nav: nav, steps: steps, activeStep: activeStep, hasNoBodyPadding: hasNoBodyPadding }, footer || (react.createElement(WizardFooterInternal, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));\n if (isOpen !== undefined) {\n return (react.createElement(Modal, { width: width !== null ? width : undefined, isOpen: isOpen, variant: ModalVariant.large, \"aria-labelledby\": this.titleId, \"aria-describedby\": this.descriptionId, showClose: false, hasNoBodyWrapper: true }, wizard));\n }\n return wizard;\n }\n}\nWizard.displayName = 'Wizard';\nWizard.currentId = 0;\nWizard.defaultProps = {\n title: null,\n description: '',\n className: '',\n startAtStep: 1,\n nextButtonText: 'Next',\n backButtonText: 'Back',\n cancelButtonText: 'Cancel',\n hideClose: false,\n closeButtonAriaLabel: 'Close',\n navAriaLabel: null,\n navAriaLabelledBy: null,\n mainAriaLabel: null,\n mainAriaLabelledBy: null,\n hasNoBodyPadding: false,\n onBack: null,\n onNext: null,\n onGoToStep: null,\n width: null,\n height: null,\n footer: null,\n onClose: () => undefined,\n appendTo: null,\n isOpen: undefined,\n isNavExpandable: false\n};\n\nconst WizardFooter = ({ children }) => (react.createElement(\"footer\", { className: css(styles$w.wizardFooter) }, children));\nWizardFooter.displayName = 'WizardFooter';\n\nvar flex = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"flex\": \"pf-l-flex\",\n \"modifiers\": {\n \"flex\": \"pf-m-flex\",\n \"inlineFlex\": \"pf-m-inline-flex\",\n \"column\": \"pf-m-column\",\n \"columnReverse\": \"pf-m-column-reverse\",\n \"row\": \"pf-m-row\",\n \"rowReverse\": \"pf-m-row-reverse\",\n \"wrap\": \"pf-m-wrap\",\n \"wrapReverse\": \"pf-m-wrap-reverse\",\n \"nowrap\": \"pf-m-nowrap\",\n \"justifyContentFlexStart\": \"pf-m-justify-content-flex-start\",\n \"justifyContentFlexEnd\": \"pf-m-justify-content-flex-end\",\n \"justifyContentCenter\": \"pf-m-justify-content-center\",\n \"justifyContentSpaceBetween\": \"pf-m-justify-content-space-between\",\n \"justifyContentSpaceAround\": \"pf-m-justify-content-space-around\",\n \"justifyContentSpaceEvenly\": \"pf-m-justify-content-space-evenly\",\n \"alignItemsFlexStart\": \"pf-m-align-items-flex-start\",\n \"alignItemsFlexEnd\": \"pf-m-align-items-flex-end\",\n \"alignItemsCenter\": \"pf-m-align-items-center\",\n \"alignItemsStretch\": \"pf-m-align-items-stretch\",\n \"alignItemsBaseline\": \"pf-m-align-items-baseline\",\n \"alignContentFlexStart\": \"pf-m-align-content-flex-start\",\n \"alignContentFlexEnd\": \"pf-m-align-content-flex-end\",\n \"alignContentCenter\": \"pf-m-align-content-center\",\n \"alignContentStretch\": \"pf-m-align-content-stretch\",\n \"alignContentSpaceBetween\": \"pf-m-align-content-space-between\",\n \"alignContentSpaceAround\": \"pf-m-align-content-space-around\",\n \"alignRight\": \"pf-m-align-right\",\n \"alignLeft\": \"pf-m-align-left\",\n \"grow\": \"pf-m-grow\",\n \"shrink\": \"pf-m-shrink\",\n \"fullWidth\": \"pf-m-full-width\",\n \"flex_1\": \"pf-m-flex-1\",\n \"flex_2\": \"pf-m-flex-2\",\n \"flex_3\": \"pf-m-flex-3\",\n \"flex_4\": \"pf-m-flex-4\",\n \"flexDefault\": \"pf-m-flex-default\",\n \"flexNone\": \"pf-m-flex-none\",\n \"alignSelfFlexStart\": \"pf-m-align-self-flex-start\",\n \"alignSelfFlexEnd\": \"pf-m-align-self-flex-end\",\n \"alignSelfCenter\": \"pf-m-align-self-center\",\n \"alignSelfBaseline\": \"pf-m-align-self-baseline\",\n \"alignSelfStretch\": \"pf-m-align-self-stretch\",\n \"flexOnSm\": \"pf-m-flex-on-sm\",\n \"inlineFlexOnSm\": \"pf-m-inline-flex-on-sm\",\n \"columnOnSm\": \"pf-m-column-on-sm\",\n \"columnReverseOnSm\": \"pf-m-column-reverse-on-sm\",\n \"rowOnSm\": \"pf-m-row-on-sm\",\n \"rowReverseOnSm\": \"pf-m-row-reverse-on-sm\",\n \"wrapOnSm\": \"pf-m-wrap-on-sm\",\n \"wrapReverseOnSm\": \"pf-m-wrap-reverse-on-sm\",\n \"nowrapOnSm\": \"pf-m-nowrap-on-sm\",\n \"justifyContentFlexStartOnSm\": \"pf-m-justify-content-flex-start-on-sm\",\n \"justifyContentFlexEndOnSm\": \"pf-m-justify-content-flex-end-on-sm\",\n \"justifyContentCenterOnSm\": \"pf-m-justify-content-center-on-sm\",\n \"justifyContentSpaceBetweenOnSm\": \"pf-m-justify-content-space-between-on-sm\",\n \"justifyContentSpaceAroundOnSm\": \"pf-m-justify-content-space-around-on-sm\",\n \"justifyContentSpaceEvenlyOnSm\": \"pf-m-justify-content-space-evenly-on-sm\",\n \"alignItemsFlexStartOnSm\": \"pf-m-align-items-flex-start-on-sm\",\n \"alignItemsFlexEndOnSm\": \"pf-m-align-items-flex-end-on-sm\",\n \"alignItemsCenterOnSm\": \"pf-m-align-items-center-on-sm\",\n \"alignItemsStretchOnSm\": \"pf-m-align-items-stretch-on-sm\",\n \"alignItemsBaselineOnSm\": \"pf-m-align-items-baseline-on-sm\",\n \"alignContentFlexStartOnSm\": \"pf-m-align-content-flex-start-on-sm\",\n \"alignContentFlexEndOnSm\": \"pf-m-align-content-flex-end-on-sm\",\n \"alignContentCenterOnSm\": \"pf-m-align-content-center-on-sm\",\n \"alignContentStretchOnSm\": \"pf-m-align-content-stretch-on-sm\",\n \"alignContentSpaceBetweenOnSm\": \"pf-m-align-content-space-between-on-sm\",\n \"alignContentSpaceAroundOnSm\": \"pf-m-align-content-space-around-on-sm\",\n \"alignRightOnSm\": \"pf-m-align-right-on-sm\",\n \"alignLeftOnSm\": \"pf-m-align-left-on-sm\",\n \"growOnSm\": \"pf-m-grow-on-sm\",\n \"shrinkOnSm\": \"pf-m-shrink-on-sm\",\n \"fullWidthOnSm\": \"pf-m-full-width-on-sm\",\n \"flex_1OnSm\": \"pf-m-flex-1-on-sm\",\n \"flex_2OnSm\": \"pf-m-flex-2-on-sm\",\n \"flex_3OnSm\": \"pf-m-flex-3-on-sm\",\n \"flex_4OnSm\": \"pf-m-flex-4-on-sm\",\n \"flexDefaultOnSm\": \"pf-m-flex-default-on-sm\",\n \"flexNoneOnSm\": \"pf-m-flex-none-on-sm\",\n \"alignSelfFlexStartOnSm\": \"pf-m-align-self-flex-start-on-sm\",\n \"alignSelfFlexEndOnSm\": \"pf-m-align-self-flex-end-on-sm\",\n \"alignSelfCenterOnSm\": \"pf-m-align-self-center-on-sm\",\n \"alignSelfBaselineOnSm\": \"pf-m-align-self-baseline-on-sm\",\n \"alignSelfStretchOnSm\": \"pf-m-align-self-stretch-on-sm\",\n \"flexOnMd\": \"pf-m-flex-on-md\",\n \"inlineFlexOnMd\": \"pf-m-inline-flex-on-md\",\n \"columnOnMd\": \"pf-m-column-on-md\",\n \"columnReverseOnMd\": \"pf-m-column-reverse-on-md\",\n \"rowOnMd\": \"pf-m-row-on-md\",\n \"rowReverseOnMd\": \"pf-m-row-reverse-on-md\",\n \"wrapOnMd\": \"pf-m-wrap-on-md\",\n \"wrapReverseOnMd\": \"pf-m-wrap-reverse-on-md\",\n \"nowrapOnMd\": \"pf-m-nowrap-on-md\",\n \"justifyContentFlexStartOnMd\": \"pf-m-justify-content-flex-start-on-md\",\n \"justifyContentFlexEndOnMd\": \"pf-m-justify-content-flex-end-on-md\",\n \"justifyContentCenterOnMd\": \"pf-m-justify-content-center-on-md\",\n \"justifyContentSpaceBetweenOnMd\": \"pf-m-justify-content-space-between-on-md\",\n \"justifyContentSpaceAroundOnMd\": \"pf-m-justify-content-space-around-on-md\",\n \"justifyContentSpaceEvenlyOnMd\": \"pf-m-justify-content-space-evenly-on-md\",\n \"alignItemsFlexStartOnMd\": \"pf-m-align-items-flex-start-on-md\",\n \"alignItemsFlexEndOnMd\": \"pf-m-align-items-flex-end-on-md\",\n \"alignItemsCenterOnMd\": \"pf-m-align-items-center-on-md\",\n \"alignItemsStretchOnMd\": \"pf-m-align-items-stretch-on-md\",\n \"alignItemsBaselineOnMd\": \"pf-m-align-items-baseline-on-md\",\n \"alignContentFlexStartOnMd\": \"pf-m-align-content-flex-start-on-md\",\n \"alignContentFlexEndOnMd\": \"pf-m-align-content-flex-end-on-md\",\n \"alignContentCenterOnMd\": \"pf-m-align-content-center-on-md\",\n \"alignContentStretchOnMd\": \"pf-m-align-content-stretch-on-md\",\n \"alignContentSpaceBetweenOnMd\": \"pf-m-align-content-space-between-on-md\",\n \"alignContentSpaceAroundOnMd\": \"pf-m-align-content-space-around-on-md\",\n \"alignRightOnMd\": \"pf-m-align-right-on-md\",\n \"alignLeftOnMd\": \"pf-m-align-left-on-md\",\n \"growOnMd\": \"pf-m-grow-on-md\",\n \"shrinkOnMd\": \"pf-m-shrink-on-md\",\n \"fullWidthOnMd\": \"pf-m-full-width-on-md\",\n \"flex_1OnMd\": \"pf-m-flex-1-on-md\",\n \"flex_2OnMd\": \"pf-m-flex-2-on-md\",\n \"flex_3OnMd\": \"pf-m-flex-3-on-md\",\n \"flex_4OnMd\": \"pf-m-flex-4-on-md\",\n \"flexDefaultOnMd\": \"pf-m-flex-default-on-md\",\n \"flexNoneOnMd\": \"pf-m-flex-none-on-md\",\n \"alignSelfFlexStartOnMd\": \"pf-m-align-self-flex-start-on-md\",\n \"alignSelfFlexEndOnMd\": \"pf-m-align-self-flex-end-on-md\",\n \"alignSelfCenterOnMd\": \"pf-m-align-self-center-on-md\",\n \"alignSelfBaselineOnMd\": \"pf-m-align-self-baseline-on-md\",\n \"alignSelfStretchOnMd\": \"pf-m-align-self-stretch-on-md\",\n \"flexOnLg\": \"pf-m-flex-on-lg\",\n \"inlineFlexOnLg\": \"pf-m-inline-flex-on-lg\",\n \"columnOnLg\": \"pf-m-column-on-lg\",\n \"columnReverseOnLg\": \"pf-m-column-reverse-on-lg\",\n \"rowOnLg\": \"pf-m-row-on-lg\",\n \"rowReverseOnLg\": \"pf-m-row-reverse-on-lg\",\n \"wrapOnLg\": \"pf-m-wrap-on-lg\",\n \"wrapReverseOnLg\": \"pf-m-wrap-reverse-on-lg\",\n \"nowrapOnLg\": \"pf-m-nowrap-on-lg\",\n \"justifyContentFlexStartOnLg\": \"pf-m-justify-content-flex-start-on-lg\",\n \"justifyContentFlexEndOnLg\": \"pf-m-justify-content-flex-end-on-lg\",\n \"justifyContentCenterOnLg\": \"pf-m-justify-content-center-on-lg\",\n \"justifyContentSpaceBetweenOnLg\": \"pf-m-justify-content-space-between-on-lg\",\n \"justifyContentSpaceAroundOnLg\": \"pf-m-justify-content-space-around-on-lg\",\n \"justifyContentSpaceEvenlyOnLg\": \"pf-m-justify-content-space-evenly-on-lg\",\n \"alignItemsFlexStartOnLg\": \"pf-m-align-items-flex-start-on-lg\",\n \"alignItemsFlexEndOnLg\": \"pf-m-align-items-flex-end-on-lg\",\n \"alignItemsCenterOnLg\": \"pf-m-align-items-center-on-lg\",\n \"alignItemsStretchOnLg\": \"pf-m-align-items-stretch-on-lg\",\n \"alignItemsBaselineOnLg\": \"pf-m-align-items-baseline-on-lg\",\n \"alignContentFlexStartOnLg\": \"pf-m-align-content-flex-start-on-lg\",\n \"alignContentFlexEndOnLg\": \"pf-m-align-content-flex-end-on-lg\",\n \"alignContentCenterOnLg\": \"pf-m-align-content-center-on-lg\",\n \"alignContentStretchOnLg\": \"pf-m-align-content-stretch-on-lg\",\n \"alignContentSpaceBetweenOnLg\": \"pf-m-align-content-space-between-on-lg\",\n \"alignContentSpaceAroundOnLg\": \"pf-m-align-content-space-around-on-lg\",\n \"alignRightOnLg\": \"pf-m-align-right-on-lg\",\n \"alignLeftOnLg\": \"pf-m-align-left-on-lg\",\n \"growOnLg\": \"pf-m-grow-on-lg\",\n \"shrinkOnLg\": \"pf-m-shrink-on-lg\",\n \"fullWidthOnLg\": \"pf-m-full-width-on-lg\",\n \"flex_1OnLg\": \"pf-m-flex-1-on-lg\",\n \"flex_2OnLg\": \"pf-m-flex-2-on-lg\",\n \"flex_3OnLg\": \"pf-m-flex-3-on-lg\",\n \"flex_4OnLg\": \"pf-m-flex-4-on-lg\",\n \"flexDefaultOnLg\": \"pf-m-flex-default-on-lg\",\n \"flexNoneOnLg\": \"pf-m-flex-none-on-lg\",\n \"alignSelfFlexStartOnLg\": \"pf-m-align-self-flex-start-on-lg\",\n \"alignSelfFlexEndOnLg\": \"pf-m-align-self-flex-end-on-lg\",\n \"alignSelfCenterOnLg\": \"pf-m-align-self-center-on-lg\",\n \"alignSelfBaselineOnLg\": \"pf-m-align-self-baseline-on-lg\",\n \"alignSelfStretchOnLg\": \"pf-m-align-self-stretch-on-lg\",\n \"flexOnXl\": \"pf-m-flex-on-xl\",\n \"inlineFlexOnXl\": \"pf-m-inline-flex-on-xl\",\n \"columnOnXl\": \"pf-m-column-on-xl\",\n \"columnReverseOnXl\": \"pf-m-column-reverse-on-xl\",\n \"rowOnXl\": \"pf-m-row-on-xl\",\n \"rowReverseOnXl\": \"pf-m-row-reverse-on-xl\",\n \"wrapOnXl\": \"pf-m-wrap-on-xl\",\n \"wrapReverseOnXl\": \"pf-m-wrap-reverse-on-xl\",\n \"nowrapOnXl\": \"pf-m-nowrap-on-xl\",\n \"justifyContentFlexStartOnXl\": \"pf-m-justify-content-flex-start-on-xl\",\n \"justifyContentFlexEndOnXl\": \"pf-m-justify-content-flex-end-on-xl\",\n \"justifyContentCenterOnXl\": \"pf-m-justify-content-center-on-xl\",\n \"justifyContentSpaceBetweenOnXl\": \"pf-m-justify-content-space-between-on-xl\",\n \"justifyContentSpaceAroundOnXl\": \"pf-m-justify-content-space-around-on-xl\",\n \"justifyContentSpaceEvenlyOnXl\": \"pf-m-justify-content-space-evenly-on-xl\",\n \"alignItemsFlexStartOnXl\": \"pf-m-align-items-flex-start-on-xl\",\n \"alignItemsFlexEndOnXl\": \"pf-m-align-items-flex-end-on-xl\",\n \"alignItemsCenterOnXl\": \"pf-m-align-items-center-on-xl\",\n \"alignItemsStretchOnXl\": \"pf-m-align-items-stretch-on-xl\",\n \"alignItemsBaselineOnXl\": \"pf-m-align-items-baseline-on-xl\",\n \"alignContentFlexStartOnXl\": \"pf-m-align-content-flex-start-on-xl\",\n \"alignContentFlexEndOnXl\": \"pf-m-align-content-flex-end-on-xl\",\n \"alignContentCenterOnXl\": \"pf-m-align-content-center-on-xl\",\n \"alignContentStretchOnXl\": \"pf-m-align-content-stretch-on-xl\",\n \"alignContentSpaceBetweenOnXl\": \"pf-m-align-content-space-between-on-xl\",\n \"alignContentSpaceAroundOnXl\": \"pf-m-align-content-space-around-on-xl\",\n \"alignRightOnXl\": \"pf-m-align-right-on-xl\",\n \"alignLeftOnXl\": \"pf-m-align-left-on-xl\",\n \"growOnXl\": \"pf-m-grow-on-xl\",\n \"shrinkOnXl\": \"pf-m-shrink-on-xl\",\n \"fullWidthOnXl\": \"pf-m-full-width-on-xl\",\n \"flex_1OnXl\": \"pf-m-flex-1-on-xl\",\n \"flex_2OnXl\": \"pf-m-flex-2-on-xl\",\n \"flex_3OnXl\": \"pf-m-flex-3-on-xl\",\n \"flex_4OnXl\": \"pf-m-flex-4-on-xl\",\n \"flexDefaultOnXl\": \"pf-m-flex-default-on-xl\",\n \"flexNoneOnXl\": \"pf-m-flex-none-on-xl\",\n \"alignSelfFlexStartOnXl\": \"pf-m-align-self-flex-start-on-xl\",\n \"alignSelfFlexEndOnXl\": \"pf-m-align-self-flex-end-on-xl\",\n \"alignSelfCenterOnXl\": \"pf-m-align-self-center-on-xl\",\n \"alignSelfBaselineOnXl\": \"pf-m-align-self-baseline-on-xl\",\n \"alignSelfStretchOnXl\": \"pf-m-align-self-stretch-on-xl\",\n \"flexOn_2xl\": \"pf-m-flex-on-2xl\",\n \"inlineFlexOn_2xl\": \"pf-m-inline-flex-on-2xl\",\n \"columnOn_2xl\": \"pf-m-column-on-2xl\",\n \"columnReverseOn_2xl\": \"pf-m-column-reverse-on-2xl\",\n \"rowOn_2xl\": \"pf-m-row-on-2xl\",\n \"rowReverseOn_2xl\": \"pf-m-row-reverse-on-2xl\",\n \"wrapOn_2xl\": \"pf-m-wrap-on-2xl\",\n \"wrapReverseOn_2xl\": \"pf-m-wrap-reverse-on-2xl\",\n \"nowrapOn_2xl\": \"pf-m-nowrap-on-2xl\",\n \"justifyContentFlexStartOn_2xl\": \"pf-m-justify-content-flex-start-on-2xl\",\n \"justifyContentFlexEndOn_2xl\": \"pf-m-justify-content-flex-end-on-2xl\",\n \"justifyContentCenterOn_2xl\": \"pf-m-justify-content-center-on-2xl\",\n \"justifyContentSpaceBetweenOn_2xl\": \"pf-m-justify-content-space-between-on-2xl\",\n \"justifyContentSpaceAroundOn_2xl\": \"pf-m-justify-content-space-around-on-2xl\",\n \"justifyContentSpaceEvenlyOn_2xl\": \"pf-m-justify-content-space-evenly-on-2xl\",\n \"alignItemsFlexStartOn_2xl\": \"pf-m-align-items-flex-start-on-2xl\",\n \"alignItemsFlexEndOn_2xl\": \"pf-m-align-items-flex-end-on-2xl\",\n \"alignItemsCenterOn_2xl\": \"pf-m-align-items-center-on-2xl\",\n \"alignItemsStretchOn_2xl\": \"pf-m-align-items-stretch-on-2xl\",\n \"alignItemsBaselineOn_2xl\": \"pf-m-align-items-baseline-on-2xl\",\n \"alignContentFlexStartOn_2xl\": \"pf-m-align-content-flex-start-on-2xl\",\n \"alignContentFlexEndOn_2xl\": \"pf-m-align-content-flex-end-on-2xl\",\n \"alignContentCenterOn_2xl\": \"pf-m-align-content-center-on-2xl\",\n \"alignContentStretchOn_2xl\": \"pf-m-align-content-stretch-on-2xl\",\n \"alignContentSpaceBetweenOn_2xl\": \"pf-m-align-content-space-between-on-2xl\",\n \"alignContentSpaceAroundOn_2xl\": \"pf-m-align-content-space-around-on-2xl\",\n \"alignRightOn_2xl\": \"pf-m-align-right-on-2xl\",\n \"alignLeftOn_2xl\": \"pf-m-align-left-on-2xl\",\n \"growOn_2xl\": \"pf-m-grow-on-2xl\",\n \"shrinkOn_2xl\": \"pf-m-shrink-on-2xl\",\n \"fullWidthOn_2xl\": \"pf-m-full-width-on-2xl\",\n \"flex_1On_2xl\": \"pf-m-flex-1-on-2xl\",\n \"flex_2On_2xl\": \"pf-m-flex-2-on-2xl\",\n \"flex_3On_2xl\": \"pf-m-flex-3-on-2xl\",\n \"flex_4On_2xl\": \"pf-m-flex-4-on-2xl\",\n \"flexDefaultOn_2xl\": \"pf-m-flex-default-on-2xl\",\n \"flexNoneOn_2xl\": \"pf-m-flex-none-on-2xl\",\n \"alignSelfFlexStartOn_2xl\": \"pf-m-align-self-flex-start-on-2xl\",\n \"alignSelfFlexEndOn_2xl\": \"pf-m-align-self-flex-end-on-2xl\",\n \"alignSelfCenterOn_2xl\": \"pf-m-align-self-center-on-2xl\",\n \"alignSelfBaselineOn_2xl\": \"pf-m-align-self-baseline-on-2xl\",\n \"alignSelfStretchOn_2xl\": \"pf-m-align-self-stretch-on-2xl\",\n \"spaceItemsNone\": \"pf-m-space-items-none\",\n \"spaceItemsXs\": \"pf-m-space-items-xs\",\n \"spaceItemsSm\": \"pf-m-space-items-sm\",\n \"spaceItemsMd\": \"pf-m-space-items-md\",\n \"spaceItemsLg\": \"pf-m-space-items-lg\",\n \"spaceItemsXl\": \"pf-m-space-items-xl\",\n \"spaceItems_2xl\": \"pf-m-space-items-2xl\",\n \"spaceItems_3xl\": \"pf-m-space-items-3xl\",\n \"spaceItems_4xl\": \"pf-m-space-items-4xl\",\n \"spaceItemsNoneOnSm\": \"pf-m-space-items-none-on-sm\",\n \"spaceItemsXsOnSm\": \"pf-m-space-items-xs-on-sm\",\n \"spaceItemsSmOnSm\": \"pf-m-space-items-sm-on-sm\",\n \"spaceItemsMdOnSm\": \"pf-m-space-items-md-on-sm\",\n \"spaceItemsLgOnSm\": \"pf-m-space-items-lg-on-sm\",\n \"spaceItemsXlOnSm\": \"pf-m-space-items-xl-on-sm\",\n \"spaceItems_2xlOnSm\": \"pf-m-space-items-2xl-on-sm\",\n \"spaceItems_3xlOnSm\": \"pf-m-space-items-3xl-on-sm\",\n \"spaceItems_4xlOnSm\": \"pf-m-space-items-4xl-on-sm\",\n \"spaceItemsNoneOnMd\": \"pf-m-space-items-none-on-md\",\n \"spaceItemsXsOnMd\": \"pf-m-space-items-xs-on-md\",\n \"spaceItemsSmOnMd\": \"pf-m-space-items-sm-on-md\",\n \"spaceItemsMdOnMd\": \"pf-m-space-items-md-on-md\",\n \"spaceItemsLgOnMd\": \"pf-m-space-items-lg-on-md\",\n \"spaceItemsXlOnMd\": \"pf-m-space-items-xl-on-md\",\n \"spaceItems_2xlOnMd\": \"pf-m-space-items-2xl-on-md\",\n \"spaceItems_3xlOnMd\": \"pf-m-space-items-3xl-on-md\",\n \"spaceItems_4xlOnMd\": \"pf-m-space-items-4xl-on-md\",\n \"spaceItemsNoneOnLg\": \"pf-m-space-items-none-on-lg\",\n \"spaceItemsXsOnLg\": \"pf-m-space-items-xs-on-lg\",\n \"spaceItemsSmOnLg\": \"pf-m-space-items-sm-on-lg\",\n \"spaceItemsMdOnLg\": \"pf-m-space-items-md-on-lg\",\n \"spaceItemsLgOnLg\": \"pf-m-space-items-lg-on-lg\",\n \"spaceItemsXlOnLg\": \"pf-m-space-items-xl-on-lg\",\n \"spaceItems_2xlOnLg\": \"pf-m-space-items-2xl-on-lg\",\n \"spaceItems_3xlOnLg\": \"pf-m-space-items-3xl-on-lg\",\n \"spaceItems_4xlOnLg\": \"pf-m-space-items-4xl-on-lg\",\n \"spaceItemsNoneOnXl\": \"pf-m-space-items-none-on-xl\",\n \"spaceItemsXsOnXl\": \"pf-m-space-items-xs-on-xl\",\n \"spaceItemsSmOnXl\": \"pf-m-space-items-sm-on-xl\",\n \"spaceItemsMdOnXl\": \"pf-m-space-items-md-on-xl\",\n \"spaceItemsLgOnXl\": \"pf-m-space-items-lg-on-xl\",\n \"spaceItemsXlOnXl\": \"pf-m-space-items-xl-on-xl\",\n \"spaceItems_2xlOnXl\": \"pf-m-space-items-2xl-on-xl\",\n \"spaceItems_3xlOnXl\": \"pf-m-space-items-3xl-on-xl\",\n \"spaceItems_4xlOnXl\": \"pf-m-space-items-4xl-on-xl\",\n \"spaceItemsNoneOn_2xl\": \"pf-m-space-items-none-on-2xl\",\n \"spaceItemsXsOn_2xl\": \"pf-m-space-items-xs-on-2xl\",\n \"spaceItemsSmOn_2xl\": \"pf-m-space-items-sm-on-2xl\",\n \"spaceItemsMdOn_2xl\": \"pf-m-space-items-md-on-2xl\",\n \"spaceItemsLgOn_2xl\": \"pf-m-space-items-lg-on-2xl\",\n \"spaceItemsXlOn_2xl\": \"pf-m-space-items-xl-on-2xl\",\n \"spaceItems_2xlOn_2xl\": \"pf-m-space-items-2xl-on-2xl\",\n \"spaceItems_3xlOn_2xl\": \"pf-m-space-items-3xl-on-2xl\",\n \"spaceItems_4xlOn_2xl\": \"pf-m-space-items-4xl-on-2xl\",\n \"spacerNone\": \"pf-m-spacer-none\",\n \"spacerXs\": \"pf-m-spacer-xs\",\n \"spacerSm\": \"pf-m-spacer-sm\",\n \"spacerMd\": \"pf-m-spacer-md\",\n \"spacerLg\": \"pf-m-spacer-lg\",\n \"spacerXl\": \"pf-m-spacer-xl\",\n \"spacer_2xl\": \"pf-m-spacer-2xl\",\n \"spacer_3xl\": \"pf-m-spacer-3xl\",\n \"spacer_4xl\": \"pf-m-spacer-4xl\",\n \"spacerNoneOnSm\": \"pf-m-spacer-none-on-sm\",\n \"spacerXsOnSm\": \"pf-m-spacer-xs-on-sm\",\n \"spacerSmOnSm\": \"pf-m-spacer-sm-on-sm\",\n \"spacerMdOnSm\": \"pf-m-spacer-md-on-sm\",\n \"spacerLgOnSm\": \"pf-m-spacer-lg-on-sm\",\n \"spacerXlOnSm\": \"pf-m-spacer-xl-on-sm\",\n \"spacer_2xlOnSm\": \"pf-m-spacer-2xl-on-sm\",\n \"spacer_3xlOnSm\": \"pf-m-spacer-3xl-on-sm\",\n \"spacer_4xlOnSm\": \"pf-m-spacer-4xl-on-sm\",\n \"spacerNoneOnMd\": \"pf-m-spacer-none-on-md\",\n \"spacerXsOnMd\": \"pf-m-spacer-xs-on-md\",\n \"spacerSmOnMd\": \"pf-m-spacer-sm-on-md\",\n \"spacerMdOnMd\": \"pf-m-spacer-md-on-md\",\n \"spacerLgOnMd\": \"pf-m-spacer-lg-on-md\",\n \"spacerXlOnMd\": \"pf-m-spacer-xl-on-md\",\n \"spacer_2xlOnMd\": \"pf-m-spacer-2xl-on-md\",\n \"spacer_3xlOnMd\": \"pf-m-spacer-3xl-on-md\",\n \"spacer_4xlOnMd\": \"pf-m-spacer-4xl-on-md\",\n \"spacerNoneOnLg\": \"pf-m-spacer-none-on-lg\",\n \"spacerXsOnLg\": \"pf-m-spacer-xs-on-lg\",\n \"spacerSmOnLg\": \"pf-m-spacer-sm-on-lg\",\n \"spacerMdOnLg\": \"pf-m-spacer-md-on-lg\",\n \"spacerLgOnLg\": \"pf-m-spacer-lg-on-lg\",\n \"spacerXlOnLg\": \"pf-m-spacer-xl-on-lg\",\n \"spacer_2xlOnLg\": \"pf-m-spacer-2xl-on-lg\",\n \"spacer_3xlOnLg\": \"pf-m-spacer-3xl-on-lg\",\n \"spacer_4xlOnLg\": \"pf-m-spacer-4xl-on-lg\",\n \"spacerNoneOnXl\": \"pf-m-spacer-none-on-xl\",\n \"spacerXsOnXl\": \"pf-m-spacer-xs-on-xl\",\n \"spacerSmOnXl\": \"pf-m-spacer-sm-on-xl\",\n \"spacerMdOnXl\": \"pf-m-spacer-md-on-xl\",\n \"spacerLgOnXl\": \"pf-m-spacer-lg-on-xl\",\n \"spacerXlOnXl\": \"pf-m-spacer-xl-on-xl\",\n \"spacer_2xlOnXl\": \"pf-m-spacer-2xl-on-xl\",\n \"spacer_3xlOnXl\": \"pf-m-spacer-3xl-on-xl\",\n \"spacer_4xlOnXl\": \"pf-m-spacer-4xl-on-xl\",\n \"spacerNoneOn_2xl\": \"pf-m-spacer-none-on-2xl\",\n \"spacerXsOn_2xl\": \"pf-m-spacer-xs-on-2xl\",\n \"spacerSmOn_2xl\": \"pf-m-spacer-sm-on-2xl\",\n \"spacerMdOn_2xl\": \"pf-m-spacer-md-on-2xl\",\n \"spacerLgOn_2xl\": \"pf-m-spacer-lg-on-2xl\",\n \"spacerXlOn_2xl\": \"pf-m-spacer-xl-on-2xl\",\n \"spacer_2xlOn_2xl\": \"pf-m-spacer-2xl-on-2xl\",\n \"spacer_3xlOn_2xl\": \"pf-m-spacer-3xl-on-2xl\",\n \"spacer_4xlOn_2xl\": \"pf-m-spacer-4xl-on-2xl\"\n }\n};\n});\n\nvar styles$x = /*@__PURE__*/getDefaultExportFromCjs(flex);\n\nconst l_flex_item_Order = {\n \"name\": \"--pf-l-flex--item--Order\",\n \"value\": \"0\",\n \"var\": \"var(--pf-l-flex--item--Order)\"\n};\n\nconst Flex = (_a) => {\n var { children = null, className = '', component = 'div', spacer, spaceItems, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"spacer\", \"spaceItems\", \"grow\", \"shrink\", \"flex\", \"direction\", \"alignItems\", \"alignContent\", \"alignSelf\", \"align\", \"justifyContent\", \"display\", \"fullWidth\", \"flexWrap\", \"order\", \"style\"]);\n const Component = component;\n return (react.createElement(Component, Object.assign({ className: css(styles$x.flex, formatBreakpointMods(spacer, styles$x), formatBreakpointMods(spaceItems, styles$x), formatBreakpointMods(grow, styles$x), formatBreakpointMods(shrink, styles$x), formatBreakpointMods(flex, styles$x), formatBreakpointMods(direction, styles$x), formatBreakpointMods(alignItems, styles$x), formatBreakpointMods(alignContent, styles$x), formatBreakpointMods(alignSelf, styles$x), formatBreakpointMods(align, styles$x), formatBreakpointMods(justifyContent, styles$x), formatBreakpointMods(display, styles$x), formatBreakpointMods(fullWidth, styles$x), formatBreakpointMods(flexWrap, styles$x), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props), children));\n};\nFlex.displayName = 'Flex';\n\nconst FlexItem = (_a) => {\n var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"spacer\", \"grow\", \"shrink\", \"flex\", \"alignSelf\", \"align\", \"fullWidth\", \"order\", \"style\"]);\n const Component = component;\n return (react.createElement(Component, Object.assign({}, props, { className: css(formatBreakpointMods(spacer, styles$x), formatBreakpointMods(grow, styles$x), formatBreakpointMods(shrink, styles$x), formatBreakpointMods(flex, styles$x), formatBreakpointMods(alignSelf, styles$x), formatBreakpointMods(align, styles$x), formatBreakpointMods(fullWidth, styles$x), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }), children));\n};\nFlexItem.displayName = 'FlexItem';\n\nvar gallery = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"gallery\": \"pf-l-gallery\",\n \"modifiers\": {\n \"gutter\": \"pf-m-gutter\"\n }\n};\n});\n\nvar styles$y = /*@__PURE__*/getDefaultExportFromCjs(gallery);\n\nconst Gallery = (_a) => {\n var { children = null, className = '', component = 'div', hasGutter = false, minWidths, maxWidths } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"hasGutter\", \"minWidths\", \"maxWidths\"]);\n const minWidthStyles = {};\n const Component = component;\n if (minWidths) {\n Object.entries(minWidths || {}).map(([breakpoint, value]) => (minWidthStyles[`--pf-l-gallery--GridTemplateColumns--min${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));\n }\n const maxWidthStyles = {};\n if (maxWidths) {\n Object.entries(maxWidths || {}).map(([breakpoint, value]) => (maxWidthStyles[`--pf-l-gallery--GridTemplateColumns--max${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));\n }\n const widthStyles = Object.assign(Object.assign({}, minWidthStyles), maxWidthStyles);\n return (react.createElement(Component, Object.assign({ className: css(styles$y.gallery, hasGutter && styles$y.modifiers.gutter, className) }, props, ((minWidths || maxWidths) && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children));\n};\nGallery.displayName = 'Gallery';\n\nconst GalleryItem = (_a) => {\n var { children = null, component = 'div' } = _a, props = __rest(_a, [\"children\", \"component\"]);\n const Component = component;\n return react.createElement(Component, Object.assign({}, props), children);\n};\nGalleryItem.displayName = 'GalleryItem';\n\nvar grid = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"grid\": \"pf-l-grid\",\n \"gridItem\": \"pf-l-grid__item\",\n \"modifiers\": {\n \"all_1Col\": \"pf-m-all-1-col\",\n \"all_2Col\": \"pf-m-all-2-col\",\n \"all_3Col\": \"pf-m-all-3-col\",\n \"all_4Col\": \"pf-m-all-4-col\",\n \"all_5Col\": \"pf-m-all-5-col\",\n \"all_6Col\": \"pf-m-all-6-col\",\n \"all_7Col\": \"pf-m-all-7-col\",\n \"all_8Col\": \"pf-m-all-8-col\",\n \"all_9Col\": \"pf-m-all-9-col\",\n \"all_10Col\": \"pf-m-all-10-col\",\n \"all_11Col\": \"pf-m-all-11-col\",\n \"all_12Col\": \"pf-m-all-12-col\",\n \"all_1ColOnSm\": \"pf-m-all-1-col-on-sm\",\n \"all_2ColOnSm\": \"pf-m-all-2-col-on-sm\",\n \"all_3ColOnSm\": \"pf-m-all-3-col-on-sm\",\n \"all_4ColOnSm\": \"pf-m-all-4-col-on-sm\",\n \"all_5ColOnSm\": \"pf-m-all-5-col-on-sm\",\n \"all_6ColOnSm\": \"pf-m-all-6-col-on-sm\",\n \"all_7ColOnSm\": \"pf-m-all-7-col-on-sm\",\n \"all_8ColOnSm\": \"pf-m-all-8-col-on-sm\",\n \"all_9ColOnSm\": \"pf-m-all-9-col-on-sm\",\n \"all_10ColOnSm\": \"pf-m-all-10-col-on-sm\",\n \"all_11ColOnSm\": \"pf-m-all-11-col-on-sm\",\n \"all_12ColOnSm\": \"pf-m-all-12-col-on-sm\",\n \"all_1ColOnMd\": \"pf-m-all-1-col-on-md\",\n \"all_2ColOnMd\": \"pf-m-all-2-col-on-md\",\n \"all_3ColOnMd\": \"pf-m-all-3-col-on-md\",\n \"all_4ColOnMd\": \"pf-m-all-4-col-on-md\",\n \"all_5ColOnMd\": \"pf-m-all-5-col-on-md\",\n \"all_6ColOnMd\": \"pf-m-all-6-col-on-md\",\n \"all_7ColOnMd\": \"pf-m-all-7-col-on-md\",\n \"all_8ColOnMd\": \"pf-m-all-8-col-on-md\",\n \"all_9ColOnMd\": \"pf-m-all-9-col-on-md\",\n \"all_10ColOnMd\": \"pf-m-all-10-col-on-md\",\n \"all_11ColOnMd\": \"pf-m-all-11-col-on-md\",\n \"all_12ColOnMd\": \"pf-m-all-12-col-on-md\",\n \"all_1ColOnLg\": \"pf-m-all-1-col-on-lg\",\n \"all_2ColOnLg\": \"pf-m-all-2-col-on-lg\",\n \"all_3ColOnLg\": \"pf-m-all-3-col-on-lg\",\n \"all_4ColOnLg\": \"pf-m-all-4-col-on-lg\",\n \"all_5ColOnLg\": \"pf-m-all-5-col-on-lg\",\n \"all_6ColOnLg\": \"pf-m-all-6-col-on-lg\",\n \"all_7ColOnLg\": \"pf-m-all-7-col-on-lg\",\n \"all_8ColOnLg\": \"pf-m-all-8-col-on-lg\",\n \"all_9ColOnLg\": \"pf-m-all-9-col-on-lg\",\n \"all_10ColOnLg\": \"pf-m-all-10-col-on-lg\",\n \"all_11ColOnLg\": \"pf-m-all-11-col-on-lg\",\n \"all_12ColOnLg\": \"pf-m-all-12-col-on-lg\",\n \"all_1ColOnXl\": \"pf-m-all-1-col-on-xl\",\n \"all_2ColOnXl\": \"pf-m-all-2-col-on-xl\",\n \"all_3ColOnXl\": \"pf-m-all-3-col-on-xl\",\n \"all_4ColOnXl\": \"pf-m-all-4-col-on-xl\",\n \"all_5ColOnXl\": \"pf-m-all-5-col-on-xl\",\n \"all_6ColOnXl\": \"pf-m-all-6-col-on-xl\",\n \"all_7ColOnXl\": \"pf-m-all-7-col-on-xl\",\n \"all_8ColOnXl\": \"pf-m-all-8-col-on-xl\",\n \"all_9ColOnXl\": \"pf-m-all-9-col-on-xl\",\n \"all_10ColOnXl\": \"pf-m-all-10-col-on-xl\",\n \"all_11ColOnXl\": \"pf-m-all-11-col-on-xl\",\n \"all_12ColOnXl\": \"pf-m-all-12-col-on-xl\",\n \"all_1ColOn_2xl\": \"pf-m-all-1-col-on-2xl\",\n \"all_2ColOn_2xl\": \"pf-m-all-2-col-on-2xl\",\n \"all_3ColOn_2xl\": \"pf-m-all-3-col-on-2xl\",\n \"all_4ColOn_2xl\": \"pf-m-all-4-col-on-2xl\",\n \"all_5ColOn_2xl\": \"pf-m-all-5-col-on-2xl\",\n \"all_6ColOn_2xl\": \"pf-m-all-6-col-on-2xl\",\n \"all_7ColOn_2xl\": \"pf-m-all-7-col-on-2xl\",\n \"all_8ColOn_2xl\": \"pf-m-all-8-col-on-2xl\",\n \"all_9ColOn_2xl\": \"pf-m-all-9-col-on-2xl\",\n \"all_10ColOn_2xl\": \"pf-m-all-10-col-on-2xl\",\n \"all_11ColOn_2xl\": \"pf-m-all-11-col-on-2xl\",\n \"all_12ColOn_2xl\": \"pf-m-all-12-col-on-2xl\",\n \"1Col\": \"pf-m-1-col\",\n \"2Col\": \"pf-m-2-col\",\n \"3Col\": \"pf-m-3-col\",\n \"4Col\": \"pf-m-4-col\",\n \"5Col\": \"pf-m-5-col\",\n \"6Col\": \"pf-m-6-col\",\n \"7Col\": \"pf-m-7-col\",\n \"8Col\": \"pf-m-8-col\",\n \"9Col\": \"pf-m-9-col\",\n \"10Col\": \"pf-m-10-col\",\n \"11Col\": \"pf-m-11-col\",\n \"12Col\": \"pf-m-12-col\",\n \"offset_1Col\": \"pf-m-offset-1-col\",\n \"offset_2Col\": \"pf-m-offset-2-col\",\n \"offset_3Col\": \"pf-m-offset-3-col\",\n \"offset_4Col\": \"pf-m-offset-4-col\",\n \"offset_5Col\": \"pf-m-offset-5-col\",\n \"offset_6Col\": \"pf-m-offset-6-col\",\n \"offset_7Col\": \"pf-m-offset-7-col\",\n \"offset_8Col\": \"pf-m-offset-8-col\",\n \"offset_9Col\": \"pf-m-offset-9-col\",\n \"offset_10Col\": \"pf-m-offset-10-col\",\n \"offset_11Col\": \"pf-m-offset-11-col\",\n \"offset_12Col\": \"pf-m-offset-12-col\",\n \"1Row\": \"pf-m-1-row\",\n \"2Row\": \"pf-m-2-row\",\n \"3Row\": \"pf-m-3-row\",\n \"4Row\": \"pf-m-4-row\",\n \"5Row\": \"pf-m-5-row\",\n \"6Row\": \"pf-m-6-row\",\n \"7Row\": \"pf-m-7-row\",\n \"8Row\": \"pf-m-8-row\",\n \"9Row\": \"pf-m-9-row\",\n \"10Row\": \"pf-m-10-row\",\n \"11Row\": \"pf-m-11-row\",\n \"12Row\": \"pf-m-12-row\",\n \"1ColOnSm\": \"pf-m-1-col-on-sm\",\n \"2ColOnSm\": \"pf-m-2-col-on-sm\",\n \"3ColOnSm\": \"pf-m-3-col-on-sm\",\n \"4ColOnSm\": \"pf-m-4-col-on-sm\",\n \"5ColOnSm\": \"pf-m-5-col-on-sm\",\n \"6ColOnSm\": \"pf-m-6-col-on-sm\",\n \"7ColOnSm\": \"pf-m-7-col-on-sm\",\n \"8ColOnSm\": \"pf-m-8-col-on-sm\",\n \"9ColOnSm\": \"pf-m-9-col-on-sm\",\n \"10ColOnSm\": \"pf-m-10-col-on-sm\",\n \"11ColOnSm\": \"pf-m-11-col-on-sm\",\n \"12ColOnSm\": \"pf-m-12-col-on-sm\",\n \"offset_1ColOnSm\": \"pf-m-offset-1-col-on-sm\",\n \"offset_2ColOnSm\": \"pf-m-offset-2-col-on-sm\",\n \"offset_3ColOnSm\": \"pf-m-offset-3-col-on-sm\",\n \"offset_4ColOnSm\": \"pf-m-offset-4-col-on-sm\",\n \"offset_5ColOnSm\": \"pf-m-offset-5-col-on-sm\",\n \"offset_6ColOnSm\": \"pf-m-offset-6-col-on-sm\",\n \"offset_7ColOnSm\": \"pf-m-offset-7-col-on-sm\",\n \"offset_8ColOnSm\": \"pf-m-offset-8-col-on-sm\",\n \"offset_9ColOnSm\": \"pf-m-offset-9-col-on-sm\",\n \"offset_10ColOnSm\": \"pf-m-offset-10-col-on-sm\",\n \"offset_11ColOnSm\": \"pf-m-offset-11-col-on-sm\",\n \"offset_12ColOnSm\": \"pf-m-offset-12-col-on-sm\",\n \"1RowOnSm\": \"pf-m-1-row-on-sm\",\n \"2RowOnSm\": \"pf-m-2-row-on-sm\",\n \"3RowOnSm\": \"pf-m-3-row-on-sm\",\n \"4RowOnSm\": \"pf-m-4-row-on-sm\",\n \"5RowOnSm\": \"pf-m-5-row-on-sm\",\n \"6RowOnSm\": \"pf-m-6-row-on-sm\",\n \"7RowOnSm\": \"pf-m-7-row-on-sm\",\n \"8RowOnSm\": \"pf-m-8-row-on-sm\",\n \"9RowOnSm\": \"pf-m-9-row-on-sm\",\n \"10RowOnSm\": \"pf-m-10-row-on-sm\",\n \"11RowOnSm\": \"pf-m-11-row-on-sm\",\n \"12RowOnSm\": \"pf-m-12-row-on-sm\",\n \"1ColOnMd\": \"pf-m-1-col-on-md\",\n \"2ColOnMd\": \"pf-m-2-col-on-md\",\n \"3ColOnMd\": \"pf-m-3-col-on-md\",\n \"4ColOnMd\": \"pf-m-4-col-on-md\",\n \"5ColOnMd\": \"pf-m-5-col-on-md\",\n \"6ColOnMd\": \"pf-m-6-col-on-md\",\n \"7ColOnMd\": \"pf-m-7-col-on-md\",\n \"8ColOnMd\": \"pf-m-8-col-on-md\",\n \"9ColOnMd\": \"pf-m-9-col-on-md\",\n \"10ColOnMd\": \"pf-m-10-col-on-md\",\n \"11ColOnMd\": \"pf-m-11-col-on-md\",\n \"12ColOnMd\": \"pf-m-12-col-on-md\",\n \"offset_1ColOnMd\": \"pf-m-offset-1-col-on-md\",\n \"offset_2ColOnMd\": \"pf-m-offset-2-col-on-md\",\n \"offset_3ColOnMd\": \"pf-m-offset-3-col-on-md\",\n \"offset_4ColOnMd\": \"pf-m-offset-4-col-on-md\",\n \"offset_5ColOnMd\": \"pf-m-offset-5-col-on-md\",\n \"offset_6ColOnMd\": \"pf-m-offset-6-col-on-md\",\n \"offset_7ColOnMd\": \"pf-m-offset-7-col-on-md\",\n \"offset_8ColOnMd\": \"pf-m-offset-8-col-on-md\",\n \"offset_9ColOnMd\": \"pf-m-offset-9-col-on-md\",\n \"offset_10ColOnMd\": \"pf-m-offset-10-col-on-md\",\n \"offset_11ColOnMd\": \"pf-m-offset-11-col-on-md\",\n \"offset_12ColOnMd\": \"pf-m-offset-12-col-on-md\",\n \"1RowOnMd\": \"pf-m-1-row-on-md\",\n \"2RowOnMd\": \"pf-m-2-row-on-md\",\n \"3RowOnMd\": \"pf-m-3-row-on-md\",\n \"4RowOnMd\": \"pf-m-4-row-on-md\",\n \"5RowOnMd\": \"pf-m-5-row-on-md\",\n \"6RowOnMd\": \"pf-m-6-row-on-md\",\n \"7RowOnMd\": \"pf-m-7-row-on-md\",\n \"8RowOnMd\": \"pf-m-8-row-on-md\",\n \"9RowOnMd\": \"pf-m-9-row-on-md\",\n \"10RowOnMd\": \"pf-m-10-row-on-md\",\n \"11RowOnMd\": \"pf-m-11-row-on-md\",\n \"12RowOnMd\": \"pf-m-12-row-on-md\",\n \"1ColOnLg\": \"pf-m-1-col-on-lg\",\n \"2ColOnLg\": \"pf-m-2-col-on-lg\",\n \"3ColOnLg\": \"pf-m-3-col-on-lg\",\n \"4ColOnLg\": \"pf-m-4-col-on-lg\",\n \"5ColOnLg\": \"pf-m-5-col-on-lg\",\n \"6ColOnLg\": \"pf-m-6-col-on-lg\",\n \"7ColOnLg\": \"pf-m-7-col-on-lg\",\n \"8ColOnLg\": \"pf-m-8-col-on-lg\",\n \"9ColOnLg\": \"pf-m-9-col-on-lg\",\n \"10ColOnLg\": \"pf-m-10-col-on-lg\",\n \"11ColOnLg\": \"pf-m-11-col-on-lg\",\n \"12ColOnLg\": \"pf-m-12-col-on-lg\",\n \"offset_1ColOnLg\": \"pf-m-offset-1-col-on-lg\",\n \"offset_2ColOnLg\": \"pf-m-offset-2-col-on-lg\",\n \"offset_3ColOnLg\": \"pf-m-offset-3-col-on-lg\",\n \"offset_4ColOnLg\": \"pf-m-offset-4-col-on-lg\",\n \"offset_5ColOnLg\": \"pf-m-offset-5-col-on-lg\",\n \"offset_6ColOnLg\": \"pf-m-offset-6-col-on-lg\",\n \"offset_7ColOnLg\": \"pf-m-offset-7-col-on-lg\",\n \"offset_8ColOnLg\": \"pf-m-offset-8-col-on-lg\",\n \"offset_9ColOnLg\": \"pf-m-offset-9-col-on-lg\",\n \"offset_10ColOnLg\": \"pf-m-offset-10-col-on-lg\",\n \"offset_11ColOnLg\": \"pf-m-offset-11-col-on-lg\",\n \"offset_12ColOnLg\": \"pf-m-offset-12-col-on-lg\",\n \"1RowOnLg\": \"pf-m-1-row-on-lg\",\n \"2RowOnLg\": \"pf-m-2-row-on-lg\",\n \"3RowOnLg\": \"pf-m-3-row-on-lg\",\n \"4RowOnLg\": \"pf-m-4-row-on-lg\",\n \"5RowOnLg\": \"pf-m-5-row-on-lg\",\n \"6RowOnLg\": \"pf-m-6-row-on-lg\",\n \"7RowOnLg\": \"pf-m-7-row-on-lg\",\n \"8RowOnLg\": \"pf-m-8-row-on-lg\",\n \"9RowOnLg\": \"pf-m-9-row-on-lg\",\n \"10RowOnLg\": \"pf-m-10-row-on-lg\",\n \"11RowOnLg\": \"pf-m-11-row-on-lg\",\n \"12RowOnLg\": \"pf-m-12-row-on-lg\",\n \"1ColOnXl\": \"pf-m-1-col-on-xl\",\n \"2ColOnXl\": \"pf-m-2-col-on-xl\",\n \"3ColOnXl\": \"pf-m-3-col-on-xl\",\n \"4ColOnXl\": \"pf-m-4-col-on-xl\",\n \"5ColOnXl\": \"pf-m-5-col-on-xl\",\n \"6ColOnXl\": \"pf-m-6-col-on-xl\",\n \"7ColOnXl\": \"pf-m-7-col-on-xl\",\n \"8ColOnXl\": \"pf-m-8-col-on-xl\",\n \"9ColOnXl\": \"pf-m-9-col-on-xl\",\n \"10ColOnXl\": \"pf-m-10-col-on-xl\",\n \"11ColOnXl\": \"pf-m-11-col-on-xl\",\n \"12ColOnXl\": \"pf-m-12-col-on-xl\",\n \"offset_1ColOnXl\": \"pf-m-offset-1-col-on-xl\",\n \"offset_2ColOnXl\": \"pf-m-offset-2-col-on-xl\",\n \"offset_3ColOnXl\": \"pf-m-offset-3-col-on-xl\",\n \"offset_4ColOnXl\": \"pf-m-offset-4-col-on-xl\",\n \"offset_5ColOnXl\": \"pf-m-offset-5-col-on-xl\",\n \"offset_6ColOnXl\": \"pf-m-offset-6-col-on-xl\",\n \"offset_7ColOnXl\": \"pf-m-offset-7-col-on-xl\",\n \"offset_8ColOnXl\": \"pf-m-offset-8-col-on-xl\",\n \"offset_9ColOnXl\": \"pf-m-offset-9-col-on-xl\",\n \"offset_10ColOnXl\": \"pf-m-offset-10-col-on-xl\",\n \"offset_11ColOnXl\": \"pf-m-offset-11-col-on-xl\",\n \"offset_12ColOnXl\": \"pf-m-offset-12-col-on-xl\",\n \"1RowOnXl\": \"pf-m-1-row-on-xl\",\n \"2RowOnXl\": \"pf-m-2-row-on-xl\",\n \"3RowOnXl\": \"pf-m-3-row-on-xl\",\n \"4RowOnXl\": \"pf-m-4-row-on-xl\",\n \"5RowOnXl\": \"pf-m-5-row-on-xl\",\n \"6RowOnXl\": \"pf-m-6-row-on-xl\",\n \"7RowOnXl\": \"pf-m-7-row-on-xl\",\n \"8RowOnXl\": \"pf-m-8-row-on-xl\",\n \"9RowOnXl\": \"pf-m-9-row-on-xl\",\n \"10RowOnXl\": \"pf-m-10-row-on-xl\",\n \"11RowOnXl\": \"pf-m-11-row-on-xl\",\n \"12RowOnXl\": \"pf-m-12-row-on-xl\",\n \"1ColOn_2xl\": \"pf-m-1-col-on-2xl\",\n \"2ColOn_2xl\": \"pf-m-2-col-on-2xl\",\n \"3ColOn_2xl\": \"pf-m-3-col-on-2xl\",\n \"4ColOn_2xl\": \"pf-m-4-col-on-2xl\",\n \"5ColOn_2xl\": \"pf-m-5-col-on-2xl\",\n \"6ColOn_2xl\": \"pf-m-6-col-on-2xl\",\n \"7ColOn_2xl\": \"pf-m-7-col-on-2xl\",\n \"8ColOn_2xl\": \"pf-m-8-col-on-2xl\",\n \"9ColOn_2xl\": \"pf-m-9-col-on-2xl\",\n \"10ColOn_2xl\": \"pf-m-10-col-on-2xl\",\n \"11ColOn_2xl\": \"pf-m-11-col-on-2xl\",\n \"12ColOn_2xl\": \"pf-m-12-col-on-2xl\",\n \"offset_1ColOn_2xl\": \"pf-m-offset-1-col-on-2xl\",\n \"offset_2ColOn_2xl\": \"pf-m-offset-2-col-on-2xl\",\n \"offset_3ColOn_2xl\": \"pf-m-offset-3-col-on-2xl\",\n \"offset_4ColOn_2xl\": \"pf-m-offset-4-col-on-2xl\",\n \"offset_5ColOn_2xl\": \"pf-m-offset-5-col-on-2xl\",\n \"offset_6ColOn_2xl\": \"pf-m-offset-6-col-on-2xl\",\n \"offset_7ColOn_2xl\": \"pf-m-offset-7-col-on-2xl\",\n \"offset_8ColOn_2xl\": \"pf-m-offset-8-col-on-2xl\",\n \"offset_9ColOn_2xl\": \"pf-m-offset-9-col-on-2xl\",\n \"offset_10ColOn_2xl\": \"pf-m-offset-10-col-on-2xl\",\n \"offset_11ColOn_2xl\": \"pf-m-offset-11-col-on-2xl\",\n \"offset_12ColOn_2xl\": \"pf-m-offset-12-col-on-2xl\",\n \"1RowOn_2xl\": \"pf-m-1-row-on-2xl\",\n \"2RowOn_2xl\": \"pf-m-2-row-on-2xl\",\n \"3RowOn_2xl\": \"pf-m-3-row-on-2xl\",\n \"4RowOn_2xl\": \"pf-m-4-row-on-2xl\",\n \"5RowOn_2xl\": \"pf-m-5-row-on-2xl\",\n \"6RowOn_2xl\": \"pf-m-6-row-on-2xl\",\n \"7RowOn_2xl\": \"pf-m-7-row-on-2xl\",\n \"8RowOn_2xl\": \"pf-m-8-row-on-2xl\",\n \"9RowOn_2xl\": \"pf-m-9-row-on-2xl\",\n \"10RowOn_2xl\": \"pf-m-10-row-on-2xl\",\n \"11RowOn_2xl\": \"pf-m-11-row-on-2xl\",\n \"12RowOn_2xl\": \"pf-m-12-row-on-2xl\",\n \"gutter\": \"pf-m-gutter\"\n }\n};\n});\n\nvar styles$z = /*@__PURE__*/getDefaultExportFromCjs(grid);\n\nvar BaseSizes;\n(function (BaseSizes) {\n BaseSizes[\"xs\"] = \"xs\";\n BaseSizes[\"sm\"] = \"sm\";\n BaseSizes[\"md\"] = \"md\";\n BaseSizes[\"lg\"] = \"lg\";\n BaseSizes[\"xl\"] = \"xl\";\n BaseSizes[\"2xl\"] = \"2xl\";\n BaseSizes[\"3xl\"] = \"3xl\";\n BaseSizes[\"4xl\"] = \"4xl\";\n})(BaseSizes || (BaseSizes = {}));\nvar DeviceSizes;\n(function (DeviceSizes) {\n DeviceSizes[\"sm\"] = \"Sm\";\n DeviceSizes[\"md\"] = \"Md\";\n DeviceSizes[\"lg\"] = \"Lg\";\n DeviceSizes[\"xl\"] = \"Xl\";\n DeviceSizes[\"xl2\"] = \"_2xl\";\n})(DeviceSizes || (DeviceSizes = {}));\n\nconst l_grid_item_Order = {\n \"name\": \"--pf-l-grid--item--Order\",\n \"value\": \"0\",\n \"var\": \"var(--pf-l-grid--item--Order)\"\n};\n\nconst Grid = (_a) => {\n var { children = null, className = '', component = 'div', hasGutter, span = null, order, style } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"hasGutter\", \"span\", \"order\", \"style\"]);\n const classes = [styles$z.grid, span && styles$z.modifiers[`all_${span}Col`]];\n const Component = component;\n Object.entries(DeviceSizes).forEach(([propKey, gridSpanModifier]) => {\n const key = propKey;\n const propValue = props[key];\n if (propValue) {\n classes.push(styles$z.modifiers[`all_${propValue}ColOn${gridSpanModifier}`]);\n }\n delete props[key];\n });\n return (react.createElement(Component, Object.assign({ className: css(...classes, hasGutter && styles$z.modifiers.gutter, className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_grid_item_Order.name)) : undefined }, props), children));\n};\nGrid.displayName = 'Grid';\n\nconst GridItem = (_a) => {\n var { children = null, className = '', component = 'div', span = null, rowSpan = null, offset = null, order, style } = _a, props = __rest(_a, [\"children\", \"className\", \"component\", \"span\", \"rowSpan\", \"offset\", \"order\", \"style\"]);\n const classes = [\n styles$z.gridItem,\n span && styles$z.modifiers[`${span}Col`],\n rowSpan && styles$z.modifiers[`${rowSpan}Row`],\n offset && styles$z.modifiers[`offset_${offset}Col`]\n ];\n const Component = component;\n Object.entries(DeviceSizes).forEach(([propKey, classModifier]) => {\n const key = propKey;\n const rowSpanKey = `${key}RowSpan`;\n const offsetKey = `${key}Offset`;\n const spanValue = props[key];\n const rowSpanValue = props[rowSpanKey];\n const offsetValue = props[offsetKey];\n if (spanValue) {\n classes.push(styles$z.modifiers[`${spanValue}ColOn${classModifier}`]);\n }\n if (rowSpanValue) {\n classes.push(styles$z.modifiers[`${rowSpanValue}RowOn${classModifier}`]);\n }\n if (offsetValue) {\n classes.push(styles$z.modifiers[`offset_${offsetValue}ColOn${classModifier}`]);\n }\n delete props[key];\n delete props[rowSpanKey];\n delete props[offsetKey];\n });\n return (react.createElement(Component, Object.assign({ className: css(...classes, className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_grid_item_Order.name)) : undefined }, props), children));\n};\nGridItem.displayName = 'GridItem';\n\nvar level = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"level\": \"pf-l-level\",\n \"modifiers\": {\n \"gutter\": \"pf-m-gutter\"\n }\n};\n});\n\nvar styles$A = /*@__PURE__*/getDefaultExportFromCjs(level);\n\nconst Level = (_a) => {\n var { hasGutter, className = '', children = null } = _a, props = __rest(_a, [\"hasGutter\", \"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$A.level, hasGutter && styles$A.modifiers.gutter, className) }), children));\n};\nLevel.displayName = 'Level';\n\nconst LevelItem = (_a) => {\n var { children = null } = _a, props = __rest(_a, [\"children\"]);\n return (react.createElement(\"div\", Object.assign({}, props), children));\n};\nLevelItem.displayName = 'LevelItem';\n\nvar split = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"wrap\": \"pf-m-wrap\",\n \"fill\": \"pf-m-fill\",\n \"gutter\": \"pf-m-gutter\"\n },\n \"split\": \"pf-l-split\",\n \"splitItem\": \"pf-l-split__item\"\n};\n});\n\nvar styles$B = /*@__PURE__*/getDefaultExportFromCjs(split);\n\nconst Split = (_a) => {\n var { hasGutter = false, isWrappable = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, [\"hasGutter\", \"isWrappable\", \"className\", \"children\", \"component\"]);\n const Component = component;\n return (react.createElement(Component, Object.assign({}, props, { className: css(styles$B.split, hasGutter && styles$B.modifiers.gutter, isWrappable && styles$B.modifiers.wrap, className) }), children));\n};\nSplit.displayName = 'Split';\n\nconst SplitItem = (_a) => {\n var { isFilled = false, className = '', children = null } = _a, props = __rest(_a, [\"isFilled\", \"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$B.splitItem, isFilled && styles$B.modifiers.fill, className) }), children));\n};\nSplitItem.displayName = 'SplitItem';\n\nvar stack = createCommonjsModule(function (module, exports) {\nexports.__esModule = true;\n\nexports.default = {\n \"modifiers\": {\n \"fill\": \"pf-m-fill\",\n \"gutter\": \"pf-m-gutter\"\n },\n \"stack\": \"pf-l-stack\",\n \"stackItem\": \"pf-l-stack__item\"\n};\n});\n\nvar styles$C = /*@__PURE__*/getDefaultExportFromCjs(stack);\n\nconst Stack = (_a) => {\n var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, [\"hasGutter\", \"className\", \"children\", \"component\"]);\n const Component = component;\n return (react.createElement(Component, Object.assign({}, props, { className: css(styles$C.stack, hasGutter && styles$C.modifiers.gutter, className) }), children));\n};\nStack.displayName = 'Stack';\n\nconst StackItem = (_a) => {\n var { isFilled = false, className = '', children = null } = _a, props = __rest(_a, [\"isFilled\", \"className\", \"children\"]);\n return (react.createElement(\"div\", Object.assign({}, props, { className: css(styles$C.stackItem, isFilled && styles$C.modifiers.fill, className) }), children));\n};\nStackItem.displayName = 'StackItem';\n\nexport { ActionGroup, Alert, AlertActionCloseButton, AlertActionLink, AlertGroup, AlertVariant, Avatar, Badge, Brand, Breadcrumb, BreadcrumbItem, Card, CardActions, CardBody, CardFooter, CardHeader, CardTitle, Chip, ChipGroup, ClipboardCopy, ContextSelector, ContextSelectorItem, DataList, DataListAction, DataListCell, DataListCheck, DataListControl, DataListDragButton, DataListItem, DataListItemCells, DataListItemRow, DataListToggle, DescriptionList, DescriptionListDescription, DescriptionListGroup, DescriptionListTerm, Drawer, DrawerActions, DrawerCloseButton, DrawerContent, DrawerContentBody, DrawerHead, DrawerPanelContent, DropdownGroup, DropdownToggle, EmptyStatePrimary, ExpandableSection, FileUpload, Flex, FlexItem, Form, FormGroup, Gallery, GalleryItem, GenerateId, Grid, GridItem, InputGroup, JumpLinks, JumpLinksItem, Label, Level, LevelItem, List, ListItem, ListVariant, Modal, ModalVariant, Nav, NavGroup, NavItem, NavList, NumberInput, Page, PageHeader, PageHeaderTools, PageHeaderToolsGroup, PageHeaderToolsItem, PageSection, PageSectionVariants, PageSidebar, Pagination, Radio, Select, SelectDirection, SelectGroup, SelectOption, SelectVariant, Split, SplitItem, Stack, StackItem, Switch, Tab, TabContent, TabTitleText, Tabs, Text, TextArea, TextContent, TextInput, TextVariants, ToggleGroup, ToggleGroupItem, Toolbar, ToolbarContent, ToolbarGroup, ToolbarItem, Wizard, WizardContextConsumer, WizardFooter };\n", "function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nexport { _setPrototypeOf as _ };\n", "import { _ as _setPrototypeOf } from './setPrototypeOf-adc775f4.js';\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n _setPrototypeOf(subClass, superClass);\n}\n\nexport { _inheritsLoose as _ };\n", "import { _ as _inheritsLoose } from './inheritsLoose-978d85dc.js';\nimport { r as react } from './index-7cda8b13.js';\nimport { p as propTypes } from './index-ad697a84.js';\nimport { c as createCommonjsModule } from './_commonjsHelpers-4f955397.js';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction isAbsolute(pathname) {\n return pathname.charAt(0) === '/';\n}\n\n// About 1.5x faster than the two-arg version of Array#splice()\nfunction spliceOne(list, index) {\n for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1) {\n list[i] = list[k];\n }\n\n list.pop();\n}\n\n// This implementation is based heavily on node's url.parse\nfunction resolvePathname(to, from) {\n if (from === undefined) from = '';\n\n var toParts = (to && to.split('/')) || [];\n var fromParts = (from && from.split('/')) || [];\n\n var isToAbs = to && isAbsolute(to);\n var isFromAbs = from && isAbsolute(from);\n var mustEndAbs = isToAbs || isFromAbs;\n\n if (to && isAbsolute(to)) {\n // to is absolute\n fromParts = toParts;\n } else if (toParts.length) {\n // to is relative, drop the filename\n fromParts.pop();\n fromParts = fromParts.concat(toParts);\n }\n\n if (!fromParts.length) return '/';\n\n var hasTrailingSlash;\n if (fromParts.length) {\n var last = fromParts[fromParts.length - 1];\n hasTrailingSlash = last === '.' || last === '..' || last === '';\n } else {\n hasTrailingSlash = false;\n }\n\n var up = 0;\n for (var i = fromParts.length; i >= 0; i--) {\n var part = fromParts[i];\n\n if (part === '.') {\n spliceOne(fromParts, i);\n } else if (part === '..') {\n spliceOne(fromParts, i);\n up++;\n } else if (up) {\n spliceOne(fromParts, i);\n up--;\n }\n }\n\n if (!mustEndAbs) for (; up--; up) fromParts.unshift('..');\n\n if (\n mustEndAbs &&\n fromParts[0] !== '' &&\n (!fromParts[0] || !isAbsolute(fromParts[0]))\n )\n fromParts.unshift('');\n\n var result = fromParts.join('/');\n\n if (hasTrailingSlash && result.substr(-1) !== '/') result += '/';\n\n return result;\n}\n\nvar prefix = 'Invariant failed';\nfunction invariant(condition, message) {\n if (condition) {\n return;\n }\n {\n throw new Error(prefix);\n }\n}\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === '/' ? path : '/' + path;\n}\nfunction stripLeadingSlash(path) {\n return path.charAt(0) === '/' ? path.substr(1) : path;\n}\nfunction hasBasename(path, prefix) {\n return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;\n}\nfunction stripBasename(path, prefix) {\n return hasBasename(path, prefix) ? path.substr(prefix.length) : path;\n}\nfunction stripTrailingSlash(path) {\n return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;\n}\nfunction parsePath(path) {\n var pathname = path || '/';\n var search = '';\n var hash = '';\n var hashIndex = pathname.indexOf('#');\n\n if (hashIndex !== -1) {\n hash = pathname.substr(hashIndex);\n pathname = pathname.substr(0, hashIndex);\n }\n\n var searchIndex = pathname.indexOf('?');\n\n if (searchIndex !== -1) {\n search = pathname.substr(searchIndex);\n pathname = pathname.substr(0, searchIndex);\n }\n\n return {\n pathname: pathname,\n search: search === '?' ? '' : search,\n hash: hash === '#' ? '' : hash\n };\n}\nfunction createPath(location) {\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n var path = pathname || '/';\n if (search && search !== '?') path += search.charAt(0) === '?' ? search : \"?\" + search;\n if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : \"#\" + hash;\n return path;\n}\n\nfunction createLocation(path, state, key, currentLocation) {\n var location;\n\n if (typeof path === 'string') {\n // Two-arg form: push(path, state)\n location = parsePath(path);\n location.state = state;\n } else {\n // One-arg form: push(location)\n location = _extends({}, path);\n if (location.pathname === undefined) location.pathname = '';\n\n if (location.search) {\n if (location.search.charAt(0) !== '?') location.search = '?' + location.search;\n } else {\n location.search = '';\n }\n\n if (location.hash) {\n if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;\n } else {\n location.hash = '';\n }\n\n if (state !== undefined && location.state === undefined) location.state = state;\n }\n\n try {\n location.pathname = decodeURI(location.pathname);\n } catch (e) {\n if (e instanceof URIError) {\n throw new URIError('Pathname \"' + location.pathname + '\" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');\n } else {\n throw e;\n }\n }\n\n if (key) location.key = key;\n\n if (currentLocation) {\n // Resolve incomplete/relative pathname relative to current location.\n if (!location.pathname) {\n location.pathname = currentLocation.pathname;\n } else if (location.pathname.charAt(0) !== '/') {\n location.pathname = resolvePathname(location.pathname, currentLocation.pathname);\n }\n } else {\n // When there is no prior location and pathname is empty, set it to /\n if (!location.pathname) {\n location.pathname = '/';\n }\n }\n\n return location;\n}\n\nfunction createTransitionManager() {\n var prompt = null;\n\n function setPrompt(nextPrompt) {\n prompt = nextPrompt;\n return function () {\n if (prompt === nextPrompt) prompt = null;\n };\n }\n\n function confirmTransitionTo(location, action, getUserConfirmation, callback) {\n // TODO: If another transition starts while we're still confirming\n // the previous one, we may end up in a weird state. Figure out the\n // best way to handle this.\n if (prompt != null) {\n var result = typeof prompt === 'function' ? prompt(location, action) : prompt;\n\n if (typeof result === 'string') {\n if (typeof getUserConfirmation === 'function') {\n getUserConfirmation(result, callback);\n } else {\n callback(true);\n }\n } else {\n // Return false from a transition hook to cancel the transition.\n callback(result !== false);\n }\n } else {\n callback(true);\n }\n }\n\n var listeners = [];\n\n function appendListener(fn) {\n var isActive = true;\n\n function listener() {\n if (isActive) fn.apply(void 0, arguments);\n }\n\n listeners.push(listener);\n return function () {\n isActive = false;\n listeners = listeners.filter(function (item) {\n return item !== listener;\n });\n };\n }\n\n function notifyListeners() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n listeners.forEach(function (listener) {\n return listener.apply(void 0, args);\n });\n }\n\n return {\n setPrompt: setPrompt,\n confirmTransitionTo: confirmTransitionTo,\n appendListener: appendListener,\n notifyListeners: notifyListeners\n };\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nfunction getConfirmation(message, callback) {\n callback(window.confirm(message)); // eslint-disable-line no-alert\n}\n/**\n * Returns true if the HTML5 history API is supported. Taken from Modernizr.\n *\n * https://github.com/Modernizr/Modernizr/blob/master/LICENSE\n * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586\n */\n\nfunction supportsHistory() {\n var ua = window.navigator.userAgent;\n if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;\n return window.history && 'pushState' in window.history;\n}\n/**\n * Returns true if browser fires popstate on hash change.\n * IE10 and IE11 do not.\n */\n\nfunction supportsPopStateOnHashChange() {\n return window.navigator.userAgent.indexOf('Trident') === -1;\n}\n/**\n * Returns false if using go(n) with hash history causes a full page reload.\n */\n\nfunction supportsGoWithoutReloadUsingHash() {\n return window.navigator.userAgent.indexOf('Firefox') === -1;\n}\n/**\n * Returns true if a given popstate event is an extraneous WebKit event.\n * Accounts for the fact that Chrome on iOS fires real popstate events\n * containing undefined state when pressing the back button.\n */\n\nfunction isExtraneousPopstateEvent(event) {\n return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;\n}\n\nvar PopStateEvent = 'popstate';\nvar HashChangeEvent = 'hashchange';\n\nfunction getHistoryState() {\n try {\n return window.history.state || {};\n } catch (e) {\n // IE 11 sometimes throws when accessing window.history.state\n // See https://github.com/ReactTraining/history/pull/289\n return {};\n }\n}\n/**\n * Creates a history object that uses the HTML5 history API including\n * pushState, replaceState, and the popstate event.\n */\n\n\nfunction createBrowserHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? invariant(false) : void 0;\n var globalHistory = window.history;\n var canUseHistory = supportsHistory();\n var needsHashChangeListener = !supportsPopStateOnHashChange();\n var _props = props,\n _props$forceRefresh = _props.forceRefresh,\n forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n\n function getDOMLocation(historyState) {\n var _ref = historyState || {},\n key = _ref.key,\n state = _ref.state;\n\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var path = pathname + search + hash;\n if (basename) path = stripBasename(path, basename);\n return createLocation(path, state, key);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function handlePopState(event) {\n // Ignore extraneous popstate events in WebKit.\n if (isExtraneousPopstateEvent(event)) return;\n handlePop(getDOMLocation(event.state));\n }\n\n function handleHashChange() {\n handlePop(getDOMLocation(getHistoryState()));\n }\n\n var forceNextPop = false;\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of keys we've seen in sessionStorage.\n // Instead, we just default to 0 for keys we don't know.\n\n var toIndex = allKeys.indexOf(toLocation.key);\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allKeys.indexOf(fromLocation.key);\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n }\n\n var initialLocation = getDOMLocation(getHistoryState());\n var allKeys = [initialLocation.key]; // Public interface\n\n function createHref(location) {\n return basename + createPath(location);\n }\n\n function push(path, state) {\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.pushState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.href = href;\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n var nextKeys = allKeys.slice(0, prevIndex + 1);\n nextKeys.push(location.key);\n allKeys = nextKeys;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n window.location.href = href;\n }\n });\n }\n\n function replace(path, state) {\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var href = createHref(location);\n var key = location.key,\n state = location.state;\n\n if (canUseHistory) {\n globalHistory.replaceState({\n key: key,\n state: state\n }, null, href);\n\n if (forceRefresh) {\n window.location.replace(href);\n } else {\n var prevIndex = allKeys.indexOf(history.location.key);\n if (prevIndex !== -1) allKeys[prevIndex] = location.key;\n setState({\n action: action,\n location: location\n });\n }\n } else {\n window.location.replace(href);\n }\n });\n }\n\n function go(n) {\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(PopStateEvent, handlePopState);\n if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nvar HashChangeEvent$1 = 'hashchange';\nvar HashPathCoders = {\n hashbang: {\n encodePath: function encodePath(path) {\n return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);\n },\n decodePath: function decodePath(path) {\n return path.charAt(0) === '!' ? path.substr(1) : path;\n }\n },\n noslash: {\n encodePath: stripLeadingSlash,\n decodePath: addLeadingSlash\n },\n slash: {\n encodePath: addLeadingSlash,\n decodePath: addLeadingSlash\n }\n};\n\nfunction stripHash(url) {\n var hashIndex = url.indexOf('#');\n return hashIndex === -1 ? url : url.slice(0, hashIndex);\n}\n\nfunction getHashPath() {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var hashIndex = href.indexOf('#');\n return hashIndex === -1 ? '' : href.substring(hashIndex + 1);\n}\n\nfunction pushHashPath(path) {\n window.location.hash = path;\n}\n\nfunction replaceHashPath(path) {\n window.location.replace(stripHash(window.location.href) + '#' + path);\n}\n\nfunction createHashHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n !canUseDOM ? invariant(false) : void 0;\n var globalHistory = window.history;\n var canGoWithoutReload = supportsGoWithoutReloadUsingHash();\n var _props = props,\n _props$getUserConfirm = _props.getUserConfirmation,\n getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,\n _props$hashType = _props.hashType,\n hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;\n var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';\n var _HashPathCoders$hashT = HashPathCoders[hashType],\n encodePath = _HashPathCoders$hashT.encodePath,\n decodePath = _HashPathCoders$hashT.decodePath;\n\n function getDOMLocation() {\n var path = decodePath(getHashPath());\n if (basename) path = stripBasename(path, basename);\n return createLocation(path);\n }\n\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = globalHistory.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n var forceNextPop = false;\n var ignorePath = null;\n\n function locationsAreEqual$$1(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;\n }\n\n function handleHashChange() {\n var path = getHashPath();\n var encodedPath = encodePath(path);\n\n if (path !== encodedPath) {\n // Ensure we always have a properly-encoded hash.\n replaceHashPath(encodedPath);\n } else {\n var location = getDOMLocation();\n var prevLocation = history.location;\n if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.\n\n if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.\n\n ignorePath = null;\n handlePop(location);\n }\n }\n\n function handlePop(location) {\n if (forceNextPop) {\n forceNextPop = false;\n setState();\n } else {\n var action = 'POP';\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location\n });\n } else {\n revertPop(location);\n }\n });\n }\n }\n\n function revertPop(fromLocation) {\n var toLocation = history.location; // TODO: We could probably make this more reliable by\n // keeping a list of paths we've seen in sessionStorage.\n // Instead, we just default to 0 for paths we don't know.\n\n var toIndex = allPaths.lastIndexOf(createPath(toLocation));\n if (toIndex === -1) toIndex = 0;\n var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));\n if (fromIndex === -1) fromIndex = 0;\n var delta = toIndex - fromIndex;\n\n if (delta) {\n forceNextPop = true;\n go(delta);\n }\n } // Ensure the hash is encoded properly before doing anything else.\n\n\n var path = getHashPath();\n var encodedPath = encodePath(path);\n if (path !== encodedPath) replaceHashPath(encodedPath);\n var initialLocation = getDOMLocation();\n var allPaths = [createPath(initialLocation)]; // Public interface\n\n function createHref(location) {\n var baseTag = document.querySelector('base');\n var href = '';\n\n if (baseTag && baseTag.getAttribute('href')) {\n href = stripHash(window.location.href);\n }\n\n return href + '#' + encodePath(basename + createPath(location));\n }\n\n function push(path, state) {\n var action = 'PUSH';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a PUSH, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n pushHashPath(encodedPath);\n var prevIndex = allPaths.lastIndexOf(createPath(history.location));\n var nextPaths = allPaths.slice(0, prevIndex + 1);\n nextPaths.push(path);\n allPaths = nextPaths;\n setState({\n action: action,\n location: location\n });\n } else {\n setState();\n }\n });\n }\n\n function replace(path, state) {\n var action = 'REPLACE';\n var location = createLocation(path, undefined, undefined, history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var path = createPath(location);\n var encodedPath = encodePath(basename + path);\n var hashChanged = getHashPath() !== encodedPath;\n\n if (hashChanged) {\n // We cannot tell if a hashchange was caused by a REPLACE, so we'd\n // rather setState here and ignore the hashchange. The caveat here\n // is that other hash histories in the page will consider it a POP.\n ignorePath = path;\n replaceHashPath(encodedPath);\n }\n\n var prevIndex = allPaths.indexOf(createPath(history.location));\n if (prevIndex !== -1) allPaths[prevIndex] = path;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n globalHistory.go(n);\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n var listenerCount = 0;\n\n function checkDOMListeners(delta) {\n listenerCount += delta;\n\n if (listenerCount === 1 && delta === 1) {\n window.addEventListener(HashChangeEvent$1, handleHashChange);\n } else if (listenerCount === 0) {\n window.removeEventListener(HashChangeEvent$1, handleHashChange);\n }\n }\n\n var isBlocked = false;\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n var unblock = transitionManager.setPrompt(prompt);\n\n if (!isBlocked) {\n checkDOMListeners(1);\n isBlocked = true;\n }\n\n return function () {\n if (isBlocked) {\n isBlocked = false;\n checkDOMListeners(-1);\n }\n\n return unblock();\n };\n }\n\n function listen(listener) {\n var unlisten = transitionManager.appendListener(listener);\n checkDOMListeners(1);\n return function () {\n checkDOMListeners(-1);\n unlisten();\n };\n }\n\n var history = {\n length: globalHistory.length,\n action: 'POP',\n location: initialLocation,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n block: block,\n listen: listen\n };\n return history;\n}\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n/**\n * Creates a history object that stores locations in memory.\n */\n\n\nfunction createMemoryHistory(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n getUserConfirmation = _props.getUserConfirmation,\n _props$initialEntries = _props.initialEntries,\n initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,\n _props$initialIndex = _props.initialIndex,\n initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,\n _props$keyLength = _props.keyLength,\n keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;\n var transitionManager = createTransitionManager();\n\n function setState(nextState) {\n _extends(history, nextState);\n\n history.length = history.entries.length;\n transitionManager.notifyListeners(history.location, history.action);\n }\n\n function createKey() {\n return Math.random().toString(36).substr(2, keyLength);\n }\n\n var index = clamp(initialIndex, 0, initialEntries.length - 1);\n var entries = initialEntries.map(function (entry) {\n return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());\n }); // Public interface\n\n var createHref = createPath;\n\n function push(path, state) {\n var action = 'PUSH';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n var prevIndex = history.index;\n var nextIndex = prevIndex + 1;\n var nextEntries = history.entries.slice(0);\n\n if (nextEntries.length > nextIndex) {\n nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);\n } else {\n nextEntries.push(location);\n }\n\n setState({\n action: action,\n location: location,\n index: nextIndex,\n entries: nextEntries\n });\n });\n }\n\n function replace(path, state) {\n var action = 'REPLACE';\n var location = createLocation(path, state, createKey(), history.location);\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (!ok) return;\n history.entries[history.index] = location;\n setState({\n action: action,\n location: location\n });\n });\n }\n\n function go(n) {\n var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);\n var action = 'POP';\n var location = history.entries[nextIndex];\n transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {\n if (ok) {\n setState({\n action: action,\n location: location,\n index: nextIndex\n });\n } else {\n // Mimic the behavior of DOM histories by\n // causing a render after a cancelled POP.\n setState();\n }\n });\n }\n\n function goBack() {\n go(-1);\n }\n\n function goForward() {\n go(1);\n }\n\n function canGo(n) {\n var nextIndex = history.index + n;\n return nextIndex >= 0 && nextIndex < history.entries.length;\n }\n\n function block(prompt) {\n if (prompt === void 0) {\n prompt = false;\n }\n\n return transitionManager.setPrompt(prompt);\n }\n\n function listen(listener) {\n return transitionManager.appendListener(listener);\n }\n\n var history = {\n length: entries.length,\n action: 'POP',\n location: entries[index],\n index: index,\n entries: entries,\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n goBack: goBack,\n goForward: goForward,\n canGo: canGo,\n block: block,\n listen: listen\n };\n return history;\n}\n\nvar MAX_SIGNED_31_BIT_INT = 1073741823;\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};\n\nfunction getUniqueId() {\n var key = '__global_unique_id__';\n return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;\n}\n\nfunction objectIs(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction createEventEmitter(value) {\n var handlers = [];\n return {\n on: function on(handler) {\n handlers.push(handler);\n },\n off: function off(handler) {\n handlers = handlers.filter(function (h) {\n return h !== handler;\n });\n },\n get: function get() {\n return value;\n },\n set: function set(newValue, changedBits) {\n value = newValue;\n handlers.forEach(function (handler) {\n return handler(value, changedBits);\n });\n }\n };\n}\n\nfunction onlyChild(children) {\n return Array.isArray(children) ? children[0] : children;\n}\n\nfunction createReactContext(defaultValue, calculateChangedBits) {\n var _Provider$childContex, _Consumer$contextType;\n\n var contextProp = '__create-react-context-' + getUniqueId() + '__';\n\n var Provider = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Provider, _Component);\n\n function Provider() {\n var _this;\n\n _this = _Component.apply(this, arguments) || this;\n _this.emitter = createEventEmitter(_this.props.value);\n return _this;\n }\n\n var _proto = Provider.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[contextProp] = this.emitter, _ref;\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.value !== nextProps.value) {\n var oldValue = this.props.value;\n var newValue = nextProps.value;\n var changedBits;\n\n if (objectIs(oldValue, newValue)) {\n changedBits = 0;\n } else {\n changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;\n\n changedBits |= 0;\n\n if (changedBits !== 0) {\n this.emitter.set(nextProps.value, changedBits);\n }\n }\n }\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return Provider;\n }(react.Component);\n\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = propTypes.object.isRequired, _Provider$childContex);\n\n var Consumer = /*#__PURE__*/function (_Component2) {\n _inheritsLoose(Consumer, _Component2);\n\n function Consumer() {\n var _this2;\n\n _this2 = _Component2.apply(this, arguments) || this;\n _this2.state = {\n value: _this2.getValue()\n };\n\n _this2.onUpdate = function (newValue, changedBits) {\n var observedBits = _this2.observedBits | 0;\n\n if ((observedBits & changedBits) !== 0) {\n _this2.setState({\n value: _this2.getValue()\n });\n }\n };\n\n return _this2;\n }\n\n var _proto2 = Consumer.prototype;\n\n _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var observedBits = nextProps.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentDidMount = function componentDidMount() {\n if (this.context[contextProp]) {\n this.context[contextProp].on(this.onUpdate);\n }\n\n var observedBits = this.props.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentWillUnmount = function componentWillUnmount() {\n if (this.context[contextProp]) {\n this.context[contextProp].off(this.onUpdate);\n }\n };\n\n _proto2.getValue = function getValue() {\n if (this.context[contextProp]) {\n return this.context[contextProp].get();\n } else {\n return defaultValue;\n }\n };\n\n _proto2.render = function render() {\n return onlyChild(this.props.children)(this.state.value);\n };\n\n return Consumer;\n }(react.Component);\n\n Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = propTypes.object, _Consumer$contextType);\n return {\n Provider: Provider,\n Consumer: Consumer\n };\n}\n\nvar index = react.createContext || createReactContext;\n\nvar isarray = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n/**\n * Expose `pathToRegexp`.\n */\nvar pathToRegexp_1 = pathToRegexp;\nvar parse_1 = parse;\nvar compile_1 = compile;\nvar tokensToFunction_1 = tokensToFunction;\nvar tokensToRegExp_1 = tokensToRegExp;\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n '(\\\\\\\\.)',\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n // \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g');\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n var tokens = [];\n var key = 0;\n var index = 0;\n var path = '';\n var defaultDelimiter = options && options.delimiter || '/';\n var res;\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0];\n var escaped = res[1];\n var offset = res.index;\n path += str.slice(index, offset);\n index = offset + m.length;\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1];\n continue\n }\n\n var next = str[index];\n var prefix = res[2];\n var name = res[3];\n var capture = res[4];\n var group = res[5];\n var modifier = res[6];\n var asterisk = res[7];\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path);\n path = '';\n }\n\n var partial = prefix != null && next != null && next !== prefix;\n var repeat = modifier === '+' || modifier === '*';\n var optional = modifier === '?' || modifier === '*';\n var delimiter = res[2] || defaultDelimiter;\n var pattern = capture || group;\n\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n });\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index);\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path);\n }\n\n return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n return tokensToFunction(parse(str, options), options)\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens, options) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length);\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));\n }\n }\n\n return function (obj, opts) {\n var path = '';\n var data = obj || {};\n var options = opts || {};\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n path += token;\n\n continue\n }\n\n var value = data[token.name];\n var segment;\n\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix;\n }\n\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined')\n }\n }\n\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n }\n\n if (value.length === 0) {\n if (token.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j]);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n }\n\n path += (j === 0 ? token.prefix : token.delimiter) + segment;\n }\n\n continue\n }\n\n segment = token.asterisk ? encodeAsterisk(value) : encode(value);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n }\n\n path += token.prefix + segment;\n }\n\n return path\n }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n re.keys = keys;\n return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\nfunction flags (options) {\n return options && options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g);\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n });\n }\n }\n\n return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n var parts = [];\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source);\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));\n\n return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options);\n keys = [];\n }\n\n options = options || {};\n\n var strict = options.strict;\n var end = options.end !== false;\n var route = '';\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n route += escapeString(token);\n } else {\n var prefix = escapeString(token.prefix);\n var capture = '(?:' + token.pattern + ')';\n\n keys.push(token);\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*';\n }\n\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?';\n } else {\n capture = prefix + '(' + capture + ')?';\n }\n } else {\n capture = prefix + '(' + capture + ')';\n }\n\n route += capture;\n }\n }\n\n var delimiter = escapeString(options.delimiter || '/');\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';\n }\n\n if (end) {\n route += '$';\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';\n }\n\n return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options);\n keys = [];\n }\n\n options = options || {};\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path, /** @type {!Array} */ (keys))\n }\n\n if (isarray(path)) {\n return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n }\n\n return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\npathToRegexp_1.parse = parse_1;\npathToRegexp_1.compile = compile_1;\npathToRegexp_1.tokensToFunction = tokensToFunction_1;\npathToRegexp_1.tokensToRegExp = tokensToRegExp_1;\n\n/** @license React v16.13.1\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 */\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;\nvar Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return \"object\"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};\nvar isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};\nvar isValidElementType=function(a){return \"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;\n\nvar reactIs_production_min = {\n\tAsyncMode: AsyncMode,\n\tConcurrentMode: ConcurrentMode,\n\tContextConsumer: ContextConsumer,\n\tContextProvider: ContextProvider,\n\tElement: Element,\n\tForwardRef: ForwardRef,\n\tFragment: Fragment,\n\tLazy: Lazy,\n\tMemo: Memo,\n\tPortal: Portal,\n\tProfiler: Profiler,\n\tStrictMode: StrictMode,\n\tSuspense: Suspense,\n\tisAsyncMode: isAsyncMode,\n\tisConcurrentMode: isConcurrentMode,\n\tisContextConsumer: isContextConsumer,\n\tisContextProvider: isContextProvider,\n\tisElement: isElement,\n\tisForwardRef: isForwardRef,\n\tisFragment: isFragment,\n\tisLazy: isLazy,\n\tisMemo: isMemo,\n\tisPortal: isPortal,\n\tisProfiler: isProfiler,\n\tisStrictMode: isStrictMode,\n\tisSuspense: isSuspense,\n\tisValidElementType: isValidElementType,\n\ttypeOf: typeOf\n};\n\nvar reactIs = createCommonjsModule(function (module) {\n\n{\n module.exports = reactIs_production_min;\n}\n});\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\n/** @license React v16.13.1\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 */\nvar b$1=\"function\"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for(\"react.element\"):60103,d$1=b$1?Symbol.for(\"react.portal\"):60106,e$1=b$1?Symbol.for(\"react.fragment\"):60107,f$1=b$1?Symbol.for(\"react.strict_mode\"):60108,g$1=b$1?Symbol.for(\"react.profiler\"):60114,h$1=b$1?Symbol.for(\"react.provider\"):60109,k$1=b$1?Symbol.for(\"react.context\"):60110,l$1=b$1?Symbol.for(\"react.async_mode\"):60111,m$1=b$1?Symbol.for(\"react.concurrent_mode\"):60111,n$1=b$1?Symbol.for(\"react.forward_ref\"):60112,p$1=b$1?Symbol.for(\"react.suspense\"):60113,q$1=b$1?\nSymbol.for(\"react.suspense_list\"):60120,r$1=b$1?Symbol.for(\"react.memo\"):60115,t$1=b$1?Symbol.for(\"react.lazy\"):60116,v$1=b$1?Symbol.for(\"react.block\"):60121,w$1=b$1?Symbol.for(\"react.fundamental\"):60117,x$1=b$1?Symbol.for(\"react.responder\"):60118,y$1=b$1?Symbol.for(\"react.scope\"):60119;\nfunction z$1(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;\nvar Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return \"object\"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};\nvar isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};\nvar isValidElementType$1=function(a){return \"string\"===typeof a||\"function\"===typeof a||a===e$1||a===m$1||a===g$1||a===f$1||a===p$1||a===q$1||\"object\"===typeof a&&null!==a&&(a.$$typeof===t$1||a.$$typeof===r$1||a.$$typeof===h$1||a.$$typeof===k$1||a.$$typeof===n$1||a.$$typeof===w$1||a.$$typeof===x$1||a.$$typeof===y$1||a.$$typeof===v$1)};var typeOf$1=z$1;\n\nvar reactIs_production_min$1 = {\n\tAsyncMode: AsyncMode$1,\n\tConcurrentMode: ConcurrentMode$1,\n\tContextConsumer: ContextConsumer$1,\n\tContextProvider: ContextProvider$1,\n\tElement: Element$1,\n\tForwardRef: ForwardRef$1,\n\tFragment: Fragment$1,\n\tLazy: Lazy$1,\n\tMemo: Memo$1,\n\tPortal: Portal$1,\n\tProfiler: Profiler$1,\n\tStrictMode: StrictMode$1,\n\tSuspense: Suspense$1,\n\tisAsyncMode: isAsyncMode$1,\n\tisConcurrentMode: isConcurrentMode$1,\n\tisContextConsumer: isContextConsumer$1,\n\tisContextProvider: isContextProvider$1,\n\tisElement: isElement$1,\n\tisForwardRef: isForwardRef$1,\n\tisFragment: isFragment$1,\n\tisLazy: isLazy$1,\n\tisMemo: isMemo$1,\n\tisPortal: isPortal$1,\n\tisProfiler: isProfiler$1,\n\tisStrictMode: isStrictMode$1,\n\tisSuspense: isSuspense$1,\n\tisValidElementType: isValidElementType$1,\n\ttypeOf: typeOf$1\n};\n\nvar reactIs$1 = createCommonjsModule(function (module) {\n\n{\n module.exports = reactIs_production_min$1;\n}\n});\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$1.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs$1.Memo] = MEMO_STATICS;\n\n// TODO: Replace with React.createContext once we can assume React 16+\n\nvar createNamedContext = function createNamedContext(name) {\n var context = index();\n context.displayName = name;\n return context;\n};\n\nvar historyContext = /*#__PURE__*/createNamedContext(\"Router-History\");\n\nvar context = /*#__PURE__*/createNamedContext(\"Router\");\n\n/**\n * The public API for putting history on context.\n */\n\nvar Router = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Router, _React$Component);\n\n Router.computeRootMatch = function computeRootMatch(pathname) {\n return {\n path: \"/\",\n url: \"/\",\n params: {},\n isExact: pathname === \"/\"\n };\n };\n\n function Router(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.state = {\n location: props.history.location\n }; // This is a bit of a hack. We have to start listening for location\n // changes here in the constructor in case there are any
s\n // on the initial render. If there are, they will replace/push when\n // they mount and since cDM fires in children before parents, we may\n // get a new location before the is mounted.\n\n _this._isMounted = false;\n _this._pendingLocation = null;\n\n if (!props.staticContext) {\n _this.unlisten = props.history.listen(function (location) {\n if (_this._isMounted) {\n _this.setState({\n location: location\n });\n } else {\n _this._pendingLocation = location;\n }\n });\n }\n\n return _this;\n }\n\n var _proto = Router.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n\n if (this._pendingLocation) {\n this.setState({\n location: this._pendingLocation\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.unlisten) {\n this.unlisten();\n this._isMounted = false;\n this._pendingLocation = null;\n }\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/react.createElement(context.Provider, {\n value: {\n history: this.props.history,\n location: this.state.location,\n match: Router.computeRootMatch(this.state.location.pathname),\n staticContext: this.props.staticContext\n }\n }, /*#__PURE__*/react.createElement(historyContext.Provider, {\n children: this.props.children || null,\n value: this.props.history\n }));\n };\n\n return Router;\n}(react.Component);\n\n/**\n * The public API for a that stores location in memory.\n */\n\nvar MemoryRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(MemoryRouter, _React$Component);\n\n function MemoryRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createMemoryHistory(_this.props);\n return _this;\n }\n\n var _proto = MemoryRouter.prototype;\n\n _proto.render = function render() {\n return /*#__PURE__*/react.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return MemoryRouter;\n}(react.Component);\n\nvar Lifecycle = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Lifecycle, _React$Component);\n\n function Lifecycle() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Lifecycle.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.props.onMount) this.props.onMount.call(this, this);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.props.onUnmount) this.props.onUnmount.call(this, this);\n };\n\n _proto.render = function render() {\n return null;\n };\n\n return Lifecycle;\n}(react.Component);\n\nvar cache = {};\nvar cacheLimit = 10000;\nvar cacheCount = 0;\n\nfunction compilePath(path) {\n if (cache[path]) return cache[path];\n var generator = pathToRegexp_1.compile(path);\n\n if (cacheCount < cacheLimit) {\n cache[path] = generator;\n cacheCount++;\n }\n\n return generator;\n}\n/**\n * Public API for generating a URL pathname from a path and parameters.\n */\n\n\nfunction generatePath(path, params) {\n if (path === void 0) {\n path = \"/\";\n }\n\n if (params === void 0) {\n params = {};\n }\n\n return path === \"/\" ? path : compilePath(path)(params, {\n pretty: true\n });\n}\n\nvar cache$1 = {};\nvar cacheLimit$1 = 10000;\nvar cacheCount$1 = 0;\n\nfunction compilePath$1(path, options) {\n var cacheKey = \"\" + options.end + options.strict + options.sensitive;\n var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});\n if (pathCache[path]) return pathCache[path];\n var keys = [];\n var regexp = pathToRegexp_1(path, keys, options);\n var result = {\n regexp: regexp,\n keys: keys\n };\n\n if (cacheCount$1 < cacheLimit$1) {\n pathCache[path] = result;\n cacheCount$1++;\n }\n\n return result;\n}\n/**\n * Public API for matching a URL pathname to a path.\n */\n\n\nfunction matchPath(pathname, options) {\n if (options === void 0) {\n options = {};\n }\n\n if (typeof options === \"string\" || Array.isArray(options)) {\n options = {\n path: options\n };\n }\n\n var _options = options,\n path = _options.path,\n _options$exact = _options.exact,\n exact = _options$exact === void 0 ? false : _options$exact,\n _options$strict = _options.strict,\n strict = _options$strict === void 0 ? false : _options$strict,\n _options$sensitive = _options.sensitive,\n sensitive = _options$sensitive === void 0 ? false : _options$sensitive;\n var paths = [].concat(path);\n return paths.reduce(function (matched, path) {\n if (!path && path !== \"\") return null;\n if (matched) return matched;\n\n var _compilePath = compilePath$1(path, {\n end: exact,\n strict: strict,\n sensitive: sensitive\n }),\n regexp = _compilePath.regexp,\n keys = _compilePath.keys;\n\n var match = regexp.exec(pathname);\n if (!match) return null;\n var url = match[0],\n values = match.slice(1);\n var isExact = pathname === url;\n if (exact && !isExact) return null;\n return {\n path: path,\n // the path used to match\n url: path === \"/\" && url === \"\" ? \"/\" : url,\n // the matched portion of the URL\n isExact: isExact,\n // whether or not we matched exactly\n params: keys.reduce(function (memo, key, index) {\n memo[key.name] = values[index];\n return memo;\n }, {})\n };\n }, null);\n}\n\nfunction isEmptyChildren(children) {\n return react.Children.count(children) === 0;\n}\n/**\n * The public API for matching a single path and rendering.\n */\n\n\nvar Route = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Route, _React$Component);\n\n function Route() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Route.prototype;\n\n _proto.render = function render() {\n var _this = this;\n\n return /*#__PURE__*/react.createElement(context.Consumer, null, function (context$1) {\n !context$1 ? invariant(false) : void 0;\n var location = _this.props.location || context$1.location;\n var match = _this.props.computedMatch ? _this.props.computedMatch // already computed the match for us\n : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;\n\n var props = _extends({}, context$1, {\n location: location,\n match: match\n });\n\n var _this$props = _this.props,\n children = _this$props.children,\n component = _this$props.component,\n render = _this$props.render; // Preact uses an empty array as children by\n // default, so use null if that's the case.\n\n if (Array.isArray(children) && isEmptyChildren(children)) {\n children = null;\n }\n\n return /*#__PURE__*/react.createElement(context.Provider, {\n value: props\n }, props.match ? children ? typeof children === \"function\" ? children(props) : children : component ? /*#__PURE__*/react.createElement(component, props) : render ? render(props) : null : typeof children === \"function\" ? children(props) : null);\n });\n };\n\n return Route;\n}(react.Component);\n\nfunction addLeadingSlash$1(path) {\n return path.charAt(0) === \"/\" ? path : \"/\" + path;\n}\n\nfunction addBasename(basename, location) {\n if (!basename) return location;\n return _extends({}, location, {\n pathname: addLeadingSlash$1(basename) + location.pathname\n });\n}\n\nfunction stripBasename$1(basename, location) {\n if (!basename) return location;\n var base = addLeadingSlash$1(basename);\n if (location.pathname.indexOf(base) !== 0) return location;\n return _extends({}, location, {\n pathname: location.pathname.substr(base.length)\n });\n}\n\nfunction createURL(location) {\n return typeof location === \"string\" ? location : createPath(location);\n}\n\nfunction staticHandler(methodName) {\n return function () {\n invariant(false) ;\n };\n}\n\nfunction noop() {}\n/**\n * The public top-level API for a \"static\" , so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\n\n\nvar StaticRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(StaticRouter, _React$Component);\n\n function StaticRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.handlePush = function (location) {\n return _this.navigateTo(location, \"PUSH\");\n };\n\n _this.handleReplace = function (location) {\n return _this.navigateTo(location, \"REPLACE\");\n };\n\n _this.handleListen = function () {\n return noop;\n };\n\n _this.handleBlock = function () {\n return noop;\n };\n\n return _this;\n }\n\n var _proto = StaticRouter.prototype;\n\n _proto.navigateTo = function navigateTo(location, action) {\n var _this$props = this.props,\n _this$props$basename = _this$props.basename,\n basename = _this$props$basename === void 0 ? \"\" : _this$props$basename,\n _this$props$context = _this$props.context,\n context = _this$props$context === void 0 ? {} : _this$props$context;\n context.action = action;\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n };\n\n _proto.render = function render() {\n var _this$props2 = this.props,\n _this$props2$basename = _this$props2.basename,\n basename = _this$props2$basename === void 0 ? \"\" : _this$props2$basename,\n _this$props2$context = _this$props2.context,\n context = _this$props2$context === void 0 ? {} : _this$props2$context,\n _this$props2$location = _this$props2.location,\n location = _this$props2$location === void 0 ? \"/\" : _this$props2$location,\n rest = _objectWithoutPropertiesLoose(_this$props2, [\"basename\", \"context\", \"location\"]);\n\n var history = {\n createHref: function createHref(path) {\n return addLeadingSlash$1(basename + createURL(path));\n },\n action: \"POP\",\n location: stripBasename$1(basename, createLocation(location)),\n push: this.handlePush,\n replace: this.handleReplace,\n go: staticHandler(),\n goBack: staticHandler(),\n goForward: staticHandler(),\n listen: this.handleListen,\n block: this.handleBlock\n };\n return /*#__PURE__*/react.createElement(Router, _extends({}, rest, {\n history: history,\n staticContext: context\n }));\n };\n\n return StaticRouter;\n}(react.Component);\n\n/**\n * The public API for rendering the first that matches.\n */\n\nvar Switch = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Switch, _React$Component);\n\n function Switch() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Switch.prototype;\n\n _proto.render = function render() {\n var _this = this;\n\n return /*#__PURE__*/react.createElement(context.Consumer, null, function (context) {\n !context ? invariant(false) : void 0;\n var location = _this.props.location || context.location;\n var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()\n // here because toArray adds keys to all child elements and we do not want\n // to trigger an unmount/remount for two s that render the same\n // component at different URLs.\n\n react.Children.forEach(_this.props.children, function (child) {\n if (match == null && /*#__PURE__*/react.isValidElement(child)) {\n element = child;\n var path = child.props.path || child.props.from;\n match = path ? matchPath(location.pathname, _extends({}, child.props, {\n path: path\n })) : context.match;\n }\n });\n return match ? /*#__PURE__*/react.cloneElement(element, {\n location: location,\n computedMatch: match\n }) : null;\n });\n };\n\n return Switch;\n}(react.Component);\n\nvar useContext = react.useContext;\nfunction useHistory() {\n\n return useContext(historyContext);\n}\nfunction useLocation() {\n\n return useContext(context).location;\n}\nfunction useParams() {\n\n var match = useContext(context).match;\n return match ? match.params : {};\n}\nfunction useRouteMatch(path) {\n\n var location = useLocation();\n var match = useContext(context).match;\n return path ? matchPath(location.pathname, path) : match;\n}\n\nexport { Router as R, Switch as S, _objectWithoutPropertiesLoose as _, useHistory as a, createHashHistory as b, createBrowserHistory as c, _extends as d, context as e, createLocation as f, generatePath as g, createPath as h, invariant as i, Route as j, useRouteMatch as k, useLocation as l, matchPath as m, useParams as u };\n", "import { c as createBrowserHistory, R as Router, b as createHashHistory, _ as _objectWithoutPropertiesLoose, d as _extends, e as context, i as invariant, f as createLocation, h as createPath, m as matchPath } from './common/react-router-ea29949b.js';\nexport { j as Route, S as Switch, g as generatePath, a as useHistory, l as useLocation, u as useParams, k as useRouteMatch } from './common/react-router-ea29949b.js';\nimport { _ as _inheritsLoose } from './common/inheritsLoose-978d85dc.js';\nimport { r as react } from './common/index-7cda8b13.js';\nimport './common/index-ad697a84.js';\nimport './common/_commonjsHelpers-4f955397.js';\nimport './common/setPrototypeOf-adc775f4.js';\n\n/**\n * The public API for a that uses HTML5 history.\n */\n\nvar BrowserRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(BrowserRouter, _React$Component);\n\n function BrowserRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createBrowserHistory(_this.props);\n return _this;\n }\n\n var _proto = BrowserRouter.prototype;\n\n _proto.render = function render() {\n return /*#__PURE__*/react.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return BrowserRouter;\n}(react.Component);\n\n/**\n * The public API for a that uses window.location.hash.\n */\n\nvar HashRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(HashRouter, _React$Component);\n\n function HashRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createHashHistory(_this.props);\n return _this;\n }\n\n var _proto = HashRouter.prototype;\n\n _proto.render = function render() {\n return /*#__PURE__*/react.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return HashRouter;\n}(react.Component);\n\nvar resolveToLocation = function resolveToLocation(to, currentLocation) {\n return typeof to === \"function\" ? to(currentLocation) : to;\n};\nvar normalizeToLocation = function normalizeToLocation(to, currentLocation) {\n return typeof to === \"string\" ? createLocation(to, null, null, currentLocation) : to;\n};\n\nvar forwardRefShim = function forwardRefShim(C) {\n return C;\n};\n\nvar forwardRef = react.forwardRef;\n\nif (typeof forwardRef === \"undefined\") {\n forwardRef = forwardRefShim;\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nvar LinkAnchor = forwardRef(function (_ref, forwardedRef) {\n var innerRef = _ref.innerRef,\n navigate = _ref.navigate,\n _onClick = _ref.onClick,\n rest = _objectWithoutPropertiesLoose(_ref, [\"innerRef\", \"navigate\", \"onClick\"]);\n\n var target = rest.target;\n\n var props = _extends({}, rest, {\n onClick: function onClick(event) {\n try {\n if (_onClick) _onClick(event);\n } catch (ex) {\n event.preventDefault();\n throw ex;\n }\n\n if (!event.defaultPrevented && // onClick prevented default\n event.button === 0 && ( // ignore everything but left clicks\n !target || target === \"_self\") && // let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // ignore clicks with modifier keys\n ) {\n event.preventDefault();\n navigate();\n }\n }\n }); // React 15 compat\n\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.ref = innerRef;\n }\n /* eslint-disable-next-line jsx-a11y/anchor-has-content */\n\n\n return /*#__PURE__*/react.createElement(\"a\", props);\n});\n/**\n * The public API for rendering a history-aware .\n */\n\n\nvar Link = forwardRef(function (_ref2, forwardedRef) {\n var _ref2$component = _ref2.component,\n component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,\n replace = _ref2.replace,\n to = _ref2.to,\n innerRef = _ref2.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref2, [\"component\", \"replace\", \"to\", \"innerRef\"]);\n\n return /*#__PURE__*/react.createElement(context.Consumer, null, function (context) {\n !context ? invariant(false) : void 0;\n var history = context.history;\n var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);\n var href = location ? history.createHref(location) : \"\";\n\n var props = _extends({}, rest, {\n href: href,\n navigate: function navigate() {\n var location = resolveToLocation(to, context.location);\n var isDuplicateNavigation = createPath(context.location) === createPath(normalizeToLocation(location));\n var method = replace || isDuplicateNavigation ? history.replace : history.push;\n method(location);\n }\n }); // React 15 compat\n\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return /*#__PURE__*/react.createElement(component, props);\n });\n});\n\nvar forwardRefShim$1 = function forwardRefShim(C) {\n return C;\n};\n\nvar forwardRef$1 = react.forwardRef;\n\nif (typeof forwardRef$1 === \"undefined\") {\n forwardRef$1 = forwardRefShim$1;\n}\n\nfunction joinClassnames() {\n for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {\n classnames[_key] = arguments[_key];\n }\n\n return classnames.filter(function (i) {\n return i;\n }).join(\" \");\n}\n/**\n * A wrapper that knows if it's \"active\" or not.\n */\n\n\nvar NavLink = forwardRef$1(function (_ref, forwardedRef) {\n var _ref$ariaCurrent = _ref[\"aria-current\"],\n ariaCurrent = _ref$ariaCurrent === void 0 ? \"page\" : _ref$ariaCurrent,\n _ref$activeClassName = _ref.activeClassName,\n activeClassName = _ref$activeClassName === void 0 ? \"active\" : _ref$activeClassName,\n activeStyle = _ref.activeStyle,\n classNameProp = _ref.className,\n exact = _ref.exact,\n isActiveProp = _ref.isActive,\n locationProp = _ref.location,\n sensitive = _ref.sensitive,\n strict = _ref.strict,\n styleProp = _ref.style,\n to = _ref.to,\n innerRef = _ref.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref, [\"aria-current\", \"activeClassName\", \"activeStyle\", \"className\", \"exact\", \"isActive\", \"location\", \"sensitive\", \"strict\", \"style\", \"to\", \"innerRef\"]);\n\n return /*#__PURE__*/react.createElement(context.Consumer, null, function (context) {\n !context ? invariant(false) : void 0;\n var currentLocation = locationProp || context.location;\n var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);\n var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n\n var escapedPath = path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n var match = escapedPath ? matchPath(currentLocation.pathname, {\n path: escapedPath,\n exact: exact,\n sensitive: sensitive,\n strict: strict\n }) : null;\n var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);\n var className = typeof classNameProp === \"function\" ? classNameProp(isActive) : classNameProp;\n var style = typeof styleProp === \"function\" ? styleProp(isActive) : styleProp;\n\n if (isActive) {\n className = joinClassnames(className, activeClassName);\n style = _extends({}, style, activeStyle);\n }\n\n var props = _extends({\n \"aria-current\": isActive && ariaCurrent || null,\n className: className,\n style: style,\n to: toLocation\n }, rest); // React 15 compat\n\n\n if (forwardRefShim$1 !== forwardRef$1) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return /*#__PURE__*/react.createElement(Link, props);\n });\n});\n\nexport { HashRouter, Link };\n", "import { _ as _inheritsLoose } from './common/inheritsLoose-978d85dc.js';\nimport { r as react } from './common/index-7cda8b13.js';\nimport './common/setPrototypeOf-adc775f4.js';\nimport './common/_commonjsHelpers-4f955397.js';\n\nvar changedArray = function changedArray(a, b) {\n if (a === void 0) {\n a = [];\n }\n\n if (b === void 0) {\n b = [];\n }\n\n return a.length !== b.length || a.some(function (item, index) {\n return !Object.is(item, b[index]);\n });\n};\n\nvar initialState = {\n error: null\n};\n\nvar ErrorBoundary = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(ErrorBoundary, _React$Component);\n\n function ErrorBoundary() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n _this.state = initialState;\n\n _this.resetErrorBoundary = function () {\n var _this$props;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this.props.onReset == null ? void 0 : (_this$props = _this.props).onReset.apply(_this$props, args);\n\n _this.reset();\n };\n\n return _this;\n }\n\n ErrorBoundary.getDerivedStateFromError = function getDerivedStateFromError(error) {\n return {\n error: error\n };\n };\n\n var _proto = ErrorBoundary.prototype;\n\n _proto.reset = function reset() {\n this.setState(initialState);\n };\n\n _proto.componentDidCatch = function componentDidCatch(error, info) {\n var _this$props$onError, _this$props2;\n\n (_this$props$onError = (_this$props2 = this.props).onError) == null ? void 0 : _this$props$onError.call(_this$props2, error, info);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps, prevState) {\n var error = this.state.error;\n var resetKeys = this.props.resetKeys; // There's an edge case where if the thing that triggered the error\n // happens to *also* be in the resetKeys array, we'd end up resetting\n // the error boundary immediately. This would likely trigger a second\n // error to be thrown.\n // So we make sure that we don't check the resetKeys on the first call\n // of cDU after the error is set\n\n if (error !== null && prevState.error !== null && changedArray(prevProps.resetKeys, resetKeys)) {\n var _this$props$onResetKe, _this$props3;\n\n (_this$props$onResetKe = (_this$props3 = this.props).onResetKeysChange) == null ? void 0 : _this$props$onResetKe.call(_this$props3, prevProps.resetKeys, resetKeys);\n this.reset();\n }\n };\n\n _proto.render = function render() {\n var error = this.state.error;\n var _this$props4 = this.props,\n fallbackRender = _this$props4.fallbackRender,\n FallbackComponent = _this$props4.FallbackComponent,\n fallback = _this$props4.fallback;\n\n if (error !== null) {\n var _props = {\n error: error,\n resetErrorBoundary: this.resetErrorBoundary\n };\n\n if ( /*#__PURE__*/react.isValidElement(fallback)) {\n return fallback;\n } else if (typeof fallbackRender === 'function') {\n return fallbackRender(_props);\n } else if (FallbackComponent) {\n return /*#__PURE__*/react.createElement(FallbackComponent, _props);\n } else {\n throw new Error('react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop');\n }\n }\n\n return this.props.children;\n };\n\n return ErrorBoundary;\n}(react.Component);\n\nfunction useErrorHandler(givenError) {\n var _React$useState = react.useState(null),\n error = _React$useState[0],\n setError = _React$useState[1];\n\n if (givenError != null) throw givenError;\n if (error != null) throw error;\n return setError;\n}\n\nexport { ErrorBoundary, useErrorHandler };\n", "import { c as createIcon } from './createIcon-1a4b25a9.js';\n\nconst HelpIconConfig = {\n name: 'HelpIcon',\n height: 1024,\n width: 1024,\n svgPath: 'M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst HelpIcon = createIcon(HelpIconConfig);\n\nconst PencilAltIconConfig = {\n name: 'PencilAltIcon',\n height: 512,\n width: 512,\n svgPath: 'M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst PencilAltIcon = createIcon(PencilAltIconConfig);\n\nexport { HelpIcon as H, PencilAltIcon as P };\n", "export { H as HelpIcon, P as PencilAltIcon } from '../common/pencil-alt-icon-49c71830.js';\nexport { A as AngleRightIcon, a as CaretDownIcon, C as CheckCircleIcon, E as ExclamationCircleIcon, I as InfoCircleIcon, P as PlusIcon, S as SearchIcon } from '../common/plus-icon-7ed026dd.js';\nimport { c as createIcon } from '../common/createIcon-1a4b25a9.js';\nexport { C as CheckIcon, T as TimesIcon } from '../common/check-icon-e536b517.js';\nimport '../common/index-7cda8b13.js';\nimport '../common/_commonjsHelpers-4f955397.js';\n\nconst ExternalLinkAltIconConfig = {\n name: 'ExternalLinkAltIcon',\n height: 512,\n width: 512,\n svgPath: 'M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst ExternalLinkAltIcon = createIcon(ExternalLinkAltIconConfig);\n\nconst EyeSlashIconConfig = {\n name: 'EyeSlashIcon',\n height: 512,\n width: 640,\n svgPath: 'M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst EyeSlashIcon = createIcon(EyeSlashIconConfig);\n\nconst EyeIconConfig = {\n name: 'EyeIcon',\n height: 512,\n width: 576,\n svgPath: 'M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst EyeIcon = createIcon(EyeIconConfig);\n\nconst CaretUpIconConfig = {\n name: 'CaretUpIcon',\n height: 512,\n width: 320,\n svgPath: 'M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst CaretUpIcon = createIcon(CaretUpIconConfig);\n\nconst CogIconConfig = {\n name: 'CogIcon',\n height: 512,\n width: 512,\n svgPath: 'M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst CogIcon = createIcon(CogIconConfig);\n\nconst CubeIconConfig = {\n name: 'CubeIcon',\n height: 512,\n width: 512,\n svgPath: 'M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst CubeIcon = createIcon(CubeIconConfig);\n\nconst CubesIconConfig = {\n name: 'CubesIcon',\n height: 512,\n width: 512,\n svgPath: 'M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst CubesIcon = createIcon(CubesIconConfig);\n\nconst DatabaseIconConfig = {\n name: 'DatabaseIcon',\n height: 512,\n width: 448,\n svgPath: 'M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst DatabaseIcon = createIcon(DatabaseIconConfig);\n\nconst FacebookSquareIconConfig = {\n name: 'FacebookSquareIcon',\n height: 512,\n width: 448,\n svgPath: 'M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst FacebookSquareIcon = createIcon(FacebookSquareIconConfig);\n\nconst FilterIconConfig = {\n name: 'FilterIcon',\n height: 512,\n width: 512,\n svgPath: 'M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst FilterIcon = createIcon(FilterIconConfig);\n\nconst GithubIconConfig = {\n name: 'GithubIcon',\n height: 512,\n width: 496,\n svgPath: 'M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst GithubIcon = createIcon(GithubIconConfig);\n\nconst GitlabIconConfig = {\n name: 'GitlabIcon',\n height: 512,\n width: 512,\n svgPath: 'M105.2 24.9c-3.1-8.9-15.7-8.9-18.9 0L29.8 199.7h132c-.1 0-56.6-174.8-56.6-174.8zM.9 287.7c-2.6 8 .3 16.9 7.1 22l247.9 184-226.2-294zm160.8-88l94.3 294 94.3-294zm349.4 88l-28.8-88-226.3 294 247.9-184c6.9-5.1 9.7-14 7.2-22zM425.7 24.9c-3.1-8.9-15.7-8.9-18.9 0l-56.6 174.8h132z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst GitlabIcon = createIcon(GitlabIconConfig);\n\nconst GoogleIconConfig = {\n name: 'GoogleIcon',\n height: 512,\n width: 488,\n svgPath: 'M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst GoogleIcon = createIcon(GoogleIconConfig);\n\nconst LinkedinIconConfig = {\n name: 'LinkedinIcon',\n height: 512,\n width: 448,\n svgPath: 'M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst LinkedinIcon = createIcon(LinkedinIconConfig);\n\nconst MinusCircleIconConfig = {\n name: 'MinusCircleIcon',\n height: 512,\n width: 512,\n svgPath: 'M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst MinusCircleIcon = createIcon(MinusCircleIconConfig);\n\nconst OpenshiftIconConfig = {\n name: 'OpenshiftIcon',\n height: 100,\n width: 100,\n svgPath: 'M145.7,45.3l-16.1,5.8c0.2,2.6,0.6,5.1,1.3,7.6l15.3-5.6C145.7,50.6,145.5,47.9,145.7,45.3M216.7,27.5c-1.1-2.3-2.4-4.5-3.9-6.6l-16.1,5.8c1.9,1.9,3.4,4.1,4.7,6.4L216.7,27.5zM181.4,23c3.3,1.6,6.2,3.7,8.7,6.2l16.1-5.8c-4.4-6.2-10.5-11.5-17.9-14.9c-22.9-10.7-50.3-0.7-61,22.2c-3.5,7.4-4.8,15.3-4.1,23l16.1-5.8c0.3-3.5,1.1-7,2.7-10.3C148.7,22.5,166.4,16,181.4,23M131.9,58.4l-15.3,5.6c1.4,5.6,3.8,10.8,7.2,15.5l16-5.8C135.8,69.4,133,64.1,131.9,58.4M198.5,52.3c-0.3,3.5-1.1,7-2.7,10.3C188.8,77.5,171,84,156.1,77c-3.3-1.6-6.3-3.7-8.7-6.2l-16,5.8c4.4,6.2,10.5,11.5,17.9,14.9c22.9,10.7,50.3,0.7,61-22.2c3.5-7.4,4.7-15.3,4.1-22.9L198.5,52.3zM202.4,32.7l-15.3,5.6c2.8,5.1,4.2,10.9,3.7,16.8l16-5.8C206.5,43.5,204.9,37.9,202.4,32.7',\n yOffset: 0,\n xOffset: 116,\n};\n\nconst OpenshiftIcon = createIcon(OpenshiftIconConfig);\n\nconst PlusCircleIconConfig = {\n name: 'PlusCircleIcon',\n height: 512,\n width: 512,\n svgPath: 'M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst PlusCircleIcon = createIcon(PlusCircleIconConfig);\n\nconst QuestionCircleIconConfig = {\n name: 'QuestionCircleIcon',\n height: 512,\n width: 512,\n svgPath: 'M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst QuestionCircleIcon = createIcon(QuestionCircleIconConfig);\n\nconst StackOverflowIconConfig = {\n name: 'StackOverflowIcon',\n height: 512,\n width: 384,\n svgPath: 'M290.7 311L95 269.7 86.8 309l195.7 41zm51-87L188.2 95.7l-25.5 30.8 153.5 128.3zm-31.2 39.7L129.2 179l-16.7 36.5L293.7 300zM262 32l-32 24 119.3 160.3 32-24zm20.5 328h-200v39.7h200zm39.7 80H42.7V320h-40v160h359.5V320h-40z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst StackOverflowIcon = createIcon(StackOverflowIconConfig);\n\nconst TableIconConfig = {\n name: 'TableIcon',\n height: 512,\n width: 512,\n svgPath: 'M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst TableIcon = createIcon(TableIconConfig);\n\nconst TrashIconConfig = {\n name: 'TrashIcon',\n height: 512,\n width: 448,\n svgPath: 'M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst TrashIcon = createIcon(TrashIconConfig);\n\nconst TwitterIconConfig = {\n name: 'TwitterIcon',\n height: 512,\n width: 512,\n svgPath: 'M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst TwitterIcon = createIcon(TwitterIconConfig);\n\nconst WarningTriangleIconConfig = {\n name: 'WarningTriangleIcon',\n height: 1024,\n width: 1088,\n svgPath: 'M1057.10141,663.5 L845.101405,215.4 C787.101405,71.8 665.401405,0 542.901405,0 C420.201405,0 296.701405,71.9 235.001405,215.6 L31.7014051,648.5 C10.4014051,700 -0.0985948775,752.3 0.000697596367,800.8 C0.301405123,924.8 70.2014051,1024 209.101405,1024 L868.401405,1024 C1005.80141,1024 1087.70141,918.6 1088.00215,795.5 C1088.10141,752.4 1078.20141,707.2 1057.10141,663.5 Z M959.401405,800.3 C958.701405,822.9 952.901405,843.5 942.601405,859.7 C926.801405,884.6 902.601405,896.7 868.301405,896.7 L209.101405,896.7 C191.201405,896.7 176.601405,893.8 165.401405,888.2 C157.301405,884 150.801405,878.4 145.401405,870.3 C135.101405,855 129.101405,832 128.401405,805.6 C127.601405,772.8 134.901405,736.5 149.401405,700.5 L353.001405,266.7 C363.201405,242.9 376.101405,221.5 391.101405,203.2 C404.801405,186.6 420.301405,172.4 437.401405,161.1 C469.201405,139.9 505.701405,128.8 542.901405,128.8 C579.701405,128.8 615.401405,139.8 646.001405,160.5 C662.401405,171.6 677.101405,185.4 690.101405,201.6 C704.501405,219.6 716.401405,240.6 725.901405,264 L940.901405,718.9 L941.101405,719.3 L941.301405,719.7 C953.901405,746 960.201405,773.9 959.401405,800.3 Z M586.601405,832 L501.301405,832 C489.501405,831.8 480.201405,821.5 480.001405,808.7 L480.001405,727.3 C480.201405,714.5 489.601405,704.3 501.301405,704 L586.601405,704 C598.401405,704.2 607.701405,714.5 607.901405,727.3 L607.901405,808.7 L608.001405,808.7 C607.701405,821.5 598.301405,831.8 586.601405,832 M639.901405,290.7 L613.201405,610.4 C611.801405,626.9 598.001405,640 581.301405,640 L506.601405,640 C490.001405,640 476.101405,627.2 474.701405,610.7 L448.101405,291 C446.501405,272.3 461.301405,256.3 480.001405,256.3 L608.001405,256 C626.701405,256 641.401405,272 639.901405,290.7',\n yOffset: 0,\n xOffset: 0,\n};\n\nconst WarningTriangleIcon = createIcon(WarningTriangleIconConfig);\n\nexport { CaretUpIcon, CogIcon, CubeIcon, CubesIcon, DatabaseIcon, ExternalLinkAltIcon, EyeIcon, EyeSlashIcon, FacebookSquareIcon, FilterIcon, GithubIcon, GitlabIcon, GoogleIcon, LinkedinIcon, MinusCircleIcon, OpenshiftIcon, PlusCircleIcon, QuestionCircleIcon, StackOverflowIcon, TableIcon, TrashIcon, TwitterIcon, WarningTriangleIcon };\n", "import { c as createCommonjsModule } from './_commonjsHelpers-4f955397.js';\n\nvar arrayLikeToArray = createCommonjsModule(function (module) {\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar unsupportedIterableToArray = createCommonjsModule(function (module) {\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nexport { arrayLikeToArray as a, unsupportedIterableToArray as u };\n", "import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-4f955397.js';\n\nvar _typeof_1 = createCommonjsModule(function (module) {\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _typeof = /*@__PURE__*/getDefaultExportFromCjs(_typeof_1);\n\nexport { _typeof as _ };\n", "import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './common/_commonjsHelpers-4f955397.js';\nimport { u as unsupportedIterableToArray } from './common/unsupportedIterableToArray-5dd32933.js';\nimport { r as react } from './common/index-7cda8b13.js';\nimport { _ as _typeof } from './common/typeof-acae9cd0.js';\n\nvar objectWithoutPropertiesLoose = createCommonjsModule(function (module) {\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar objectWithoutProperties = createCommonjsModule(function (module) {\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _objectWithoutProperties = /*@__PURE__*/getDefaultExportFromCjs(objectWithoutProperties);\n\nvar defineProperty = createCommonjsModule(function (module) {\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _defineProperty = /*@__PURE__*/getDefaultExportFromCjs(defineProperty);\n\n/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nvar voidElements = {\n \"area\": true,\n \"base\": true,\n \"br\": true,\n \"col\": true,\n \"embed\": true,\n \"hr\": true,\n \"img\": true,\n \"input\": true,\n \"link\": true,\n \"meta\": true,\n \"param\": true,\n \"source\": true,\n \"track\": true,\n \"wbr\": true\n};\n\nvar t=/\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g;function n(n){var r={type:\"tag\",name:\"\",voidElement:!1,attrs:{},children:[]},i=n.match(/<\\/?([^\\s]+?)[/\\s>]/);if(i&&(r.name=i[1],(voidElements[i[1]]||\"/\"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith(\"!--\"))){var s=n.indexOf(\"--\\x3e\");return {type:\"comment\",comment:-1!==s?n.slice(4,s):\"\"}}for(var a=new RegExp(t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,\"\"];o.indexOf(\"=\")>-1&&(l=o.split(\"=\")),r.attrs[l[0]]=l[1],a.lastIndex--;}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g,i=/^\\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case\"text\":return e+t.content;case\"tag\":return e+=\"<\"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'=\"'+e[n]+'\"');return t.length?\" \"+t.join(\" \"):\"\"}(t.attrs):\"\")+(t.voidElement?\"/>\":\">\"),t.voidElement?e:e+t.children.reduce(a,\"\")+\"\"+t.name+\">\";case\"comment\":return e+\"\\x3c!--\"+t.comment+\"--\\x3e\"}}var c={parse:function(e,t){t||(t={}),t.components||(t.components=s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf(\"<\")){var u=e.indexOf(\"<\");c.push({type:\"text\",content:-1===u?e:e.substring(0,u)});}return e.replace(r,function(r,s){if(m){if(r!==\"\"+a.name+\">\")return;m=!1;}var u,f=\"/\"!==r.charAt(1),h=r.startsWith(\"\\x3c!--\"),p=s+r.length,d=e.charAt(p);if(h){var v=n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,\"tag\"===(a=n(r)).type&&t.components[a.name]&&(a.type=\"component\",m=!0),a.voidElement||m||!d||\"<\"===d||a.children.push({type:\"text\",content:e.slice(p,e.indexOf(\"<\",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&\"<\"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf(\"<\",p),g=e.slice(p,-1===x?void 0:x);i.test(g)&&(g=\" \"),(x>-1&&l+u.length>=0||\" \"!==g)&&u.push({type:\"text\",content:g});}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a(\"\",t)},\"\")}};\n\n/**\n * Copyright (C) 2017-present by Andrea Giammarchi - @WebReflection\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nvar replace = ''.replace;\nvar es = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g;\nvar unes = {\n '&': '&',\n '&': '&',\n '<': '<',\n '<': '<',\n '>': '>',\n '>': '>',\n ''': \"'\",\n ''': \"'\",\n '"': '\"',\n '"': '\"'\n};\n\nfunction unescape(un) {\n return replace.call(un, es, cape);\n}\nfunction cape(m) {\n return unes[m];\n}\n\nvar classCallCheck = createCommonjsModule(function (module) {\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _classCallCheck = /*@__PURE__*/getDefaultExportFromCjs(classCallCheck);\n\nvar createClass = createCommonjsModule(function (module) {\nfunction _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\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _createClass = /*@__PURE__*/getDefaultExportFromCjs(createClass);\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\nvar defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true\n};\nvar i18nInstance;\nvar I18nContext = react.createContext();\nfunction setDefaults() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n defaultOptions = _objectSpread(_objectSpread({}, defaultOptions), options);\n}\nfunction getDefaults() {\n return defaultOptions;\n}\nvar ReportNamespaces = function () {\n function ReportNamespaces() {\n _classCallCheck(this, ReportNamespaces);\n\n this.usedNamespaces = {};\n }\n\n _createClass(ReportNamespaces, [{\n key: \"addUsedNamespaces\",\n value: function addUsedNamespaces(namespaces) {\n var _this = this;\n\n namespaces.forEach(function (ns) {\n if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;\n });\n }\n }, {\n key: \"getUsedNamespaces\",\n value: function getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n }]);\n\n return ReportNamespaces;\n}();\nfunction setI18n(instance) {\n i18nInstance = instance;\n}\nfunction getI18n() {\n return i18nInstance;\n}\nvar initReactI18next = {\n type: '3rdParty',\n init: function init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};\n\nfunction warn() {\n if (console && console.warn) {\n var _console;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (typeof args[0] === 'string') args[0] = \"react-i18next:: \".concat(args[0]);\n\n (_console = console).warn.apply(_console, args);\n }\n}\nvar alreadyWarned = {};\nfunction warnOnce() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n if (typeof args[0] === 'string' && alreadyWarned[args[0]]) return;\n if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();\n warn.apply(void 0, args);\n}\nfunction loadNamespaces(i18n, ns, cb) {\n i18n.loadNamespaces(ns, function () {\n if (i18n.isInitialized) {\n cb();\n } else {\n var initialized = function initialized() {\n setTimeout(function () {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n\n i18n.on('initialized', initialized);\n }\n });\n}\nfunction hasLoadedNamespace(ns, i18n) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce('i18n.languages were undefined or empty', i18n.languages);\n return true;\n }\n\n var lng = i18n.languages[0];\n var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;\n var lastLng = i18n.languages[i18n.languages.length - 1];\n if (lng.toLowerCase() === 'cimode') return true;\n\n var loadNotPending = function loadNotPending(l, n) {\n var loadState = i18n.services.backendConnector.state[\"\".concat(l, \"|\").concat(n)];\n return loadState === -1 || loadState === 2;\n };\n\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;\n if (i18n.hasResourceBundle(lng, ns)) return true;\n if (!i18n.services.backendConnector.backend) return true;\n if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;\n return false;\n}\n\nvar _excluded = [\"format\"],\n _excluded2 = [\"children\", \"count\", \"parent\", \"i18nKey\", \"tOptions\", \"values\", \"defaults\", \"components\", \"ns\", \"i18n\", \"t\", \"shouldUnescape\"];\n\nfunction ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction hasChildren(node, checkLength) {\n if (!node) return false;\n var base = node.props ? node.props.children : node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n}\n\nfunction getChildren(node) {\n if (!node) return [];\n return node && node.children ? node.children : node.props && node.props.children;\n}\n\nfunction hasValidReactChildren(children) {\n if (Object.prototype.toString.call(children) !== '[object Array]') return false;\n return children.every(function (child) {\n return react.isValidElement(child);\n });\n}\n\nfunction getAsArray(data) {\n return Array.isArray(data) ? data : [data];\n}\n\nfunction mergeProps(source, target) {\n var newTarget = _objectSpread$1({}, target);\n\n newTarget.props = Object.assign(source.props, target.props);\n return newTarget;\n}\n\nfunction nodesToString(children, i18nOptions) {\n if (!children) return '';\n var stringNode = '';\n var childrenArray = getAsArray(children);\n var keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n childrenArray.forEach(function (child, childIndex) {\n if (typeof child === 'string') {\n stringNode += \"\".concat(child);\n } else if (react.isValidElement(child)) {\n var childPropsCount = Object.keys(child.props).length;\n var shouldKeepChild = keepArray.indexOf(child.type) > -1;\n var childChildren = child.props.children;\n\n if (!childChildren && shouldKeepChild && childPropsCount === 0) {\n stringNode += \"<\".concat(child.type, \"/>\");\n } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {\n stringNode += \"<\".concat(childIndex, \">\").concat(childIndex, \">\");\n } else if (child.props.i18nIsDynamicList) {\n stringNode += \"<\".concat(childIndex, \">\").concat(childIndex, \">\");\n } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === 'string') {\n stringNode += \"<\".concat(child.type, \">\").concat(childChildren, \"\").concat(child.type, \">\");\n } else {\n var content = nodesToString(childChildren, i18nOptions);\n stringNode += \"<\".concat(childIndex, \">\").concat(content, \"\").concat(childIndex, \">\");\n }\n } else if (child === null) {\n warn(\"Trans: the passed in value is invalid - seems you passed in a null child.\");\n } else if (_typeof(child) === 'object') {\n var format = child.format,\n clone = _objectWithoutProperties(child, _excluded);\n\n var keys = Object.keys(clone);\n\n if (keys.length === 1) {\n var value = format ? \"\".concat(keys[0], \", \").concat(format) : keys[0];\n stringNode += \"{{\".concat(value, \"}}\");\n } else {\n warn(\"react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.\", child);\n }\n } else {\n warn(\"Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.\", child);\n }\n });\n return stringNode;\n}\n\nfunction renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {\n if (targetString === '') return [];\n var keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n var emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.join('|')).test(targetString);\n if (!children && !emptyChildrenButNeedsHandling) return [targetString];\n var data = {};\n\n function getData(childs) {\n var childrenArray = getAsArray(childs);\n childrenArray.forEach(function (child) {\n if (typeof child === 'string') return;\n if (hasChildren(child)) getData(getChildren(child));else if (_typeof(child) === 'object' && !react.isValidElement(child)) Object.assign(data, child);\n });\n }\n\n getData(children);\n var ast = c.parse(\"<0>\".concat(targetString, \"0>\"));\n\n var opts = _objectSpread$1(_objectSpread$1({}, data), combinedTOpts);\n\n function renderInner(child, node, rootReactNode) {\n var childs = getChildren(child);\n var mappedChildren = mapAST(childs, node.children, rootReactNode);\n return hasValidReactChildren(childs) && mappedChildren.length === 0 ? childs : mappedChildren;\n }\n\n function pushTranslatedJSX(child, inner, mem, i, isVoid) {\n if (child.dummy) child.children = inner;\n mem.push(react.cloneElement(child, _objectSpread$1(_objectSpread$1({}, child.props), {}, {\n key: i\n }), isVoid ? undefined : inner));\n }\n\n function mapAST(reactNode, astNode, rootReactNode) {\n var reactNodes = getAsArray(reactNode);\n var astNodes = getAsArray(astNode);\n return astNodes.reduce(function (mem, node, i) {\n var translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n\n if (node.type === 'tag') {\n var tmp = reactNodes[parseInt(node.name, 10)];\n if (!tmp && rootReactNode.length === 1 && rootReactNode[0][node.name]) tmp = rootReactNode[0][node.name];\n if (!tmp) tmp = {};\n var child = Object.keys(node.attrs).length !== 0 ? mergeProps({\n props: node.attrs\n }, tmp) : tmp;\n var isElement = react.isValidElement(child);\n var isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n var isEmptyTransWithHTML = emptyChildrenButNeedsHandling && _typeof(child) === 'object' && child.dummy && !isElement;\n var isKnownComponent = _typeof(children) === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);\n\n if (typeof child === 'string') {\n var value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n mem.push(value);\n } else if (hasChildren(child) || isValidTranslationWithChildren) {\n var inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (isEmptyTransWithHTML) {\n var _inner = mapAST(reactNodes, node.children, rootReactNode);\n\n mem.push(react.cloneElement(child, _objectSpread$1(_objectSpread$1({}, child.props), {}, {\n key: i\n }), _inner));\n } else if (Number.isNaN(parseFloat(node.name))) {\n if (isKnownComponent) {\n var _inner2 = renderInner(child, node, rootReactNode);\n\n pushTranslatedJSX(child, _inner2, mem, i, node.voidElement);\n } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n if (node.voidElement) {\n mem.push(react.createElement(node.name, {\n key: \"\".concat(node.name, \"-\").concat(i)\n }));\n } else {\n var _inner3 = mapAST(reactNodes, node.children, rootReactNode);\n\n mem.push(react.createElement(node.name, {\n key: \"\".concat(node.name, \"-\").concat(i)\n }, _inner3));\n }\n } else if (node.voidElement) {\n mem.push(\"<\".concat(node.name, \" />\"));\n } else {\n var _inner4 = mapAST(reactNodes, node.children, rootReactNode);\n\n mem.push(\"<\".concat(node.name, \">\").concat(_inner4, \"\").concat(node.name, \">\"));\n }\n } else if (_typeof(child) === 'object' && !isElement) {\n var content = node.children[0] ? translationContent : null;\n if (content) mem.push(content);\n } else if (node.children.length === 1 && translationContent) {\n mem.push(react.cloneElement(child, _objectSpread$1(_objectSpread$1({}, child.props), {}, {\n key: i\n }), translationContent));\n } else {\n mem.push(react.cloneElement(child, _objectSpread$1(_objectSpread$1({}, child.props), {}, {\n key: i\n })));\n }\n } else if (node.type === 'text') {\n var wrapTextNodes = i18nOptions.transWrapTextNodes;\n\n var _content = shouldUnescape ? unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n\n if (wrapTextNodes) {\n mem.push(react.createElement(wrapTextNodes, {\n key: \"\".concat(node.name, \"-\").concat(i)\n }, _content));\n } else {\n mem.push(_content);\n }\n }\n\n return mem;\n }, []);\n }\n\n var result = mapAST([{\n dummy: true,\n children: children || []\n }], ast, getAsArray(children || []));\n return getChildren(result[0]);\n}\n\nfunction Trans(_ref) {\n var children = _ref.children,\n count = _ref.count,\n parent = _ref.parent,\n i18nKey = _ref.i18nKey,\n _ref$tOptions = _ref.tOptions,\n tOptions = _ref$tOptions === void 0 ? {} : _ref$tOptions,\n values = _ref.values,\n defaults = _ref.defaults,\n components = _ref.components,\n ns = _ref.ns,\n i18nFromProps = _ref.i18n,\n tFromProps = _ref.t,\n shouldUnescape = _ref.shouldUnescape,\n additionalProps = _objectWithoutProperties(_ref, _excluded2);\n\n var _ref2 = react.useContext(I18nContext) || {},\n i18nFromContext = _ref2.i18n,\n defaultNSFromContext = _ref2.defaultNS;\n\n var i18n = i18nFromProps || i18nFromContext || getI18n();\n\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using i18nextReactModule');\n return children;\n }\n\n var t = tFromProps || i18n.t.bind(i18n) || function (k) {\n return k;\n };\n\n var reactI18nextOptions = _objectSpread$1(_objectSpread$1({}, getDefaults()), i18n.options && i18n.options.react);\n\n var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n var defaultValue = defaults || nodesToString(children, reactI18nextOptions) || reactI18nextOptions.transEmptyNodeValue || i18nKey;\n var hashTransKey = reactI18nextOptions.hashTransKey;\n var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);\n var interpolationOverride = values ? tOptions.interpolation : {\n interpolation: _objectSpread$1(_objectSpread$1({}, tOptions.interpolation), {}, {\n prefix: '#$?',\n suffix: '?$#'\n })\n };\n\n var combinedTOpts = _objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, tOptions), {}, {\n count: count\n }, values), interpolationOverride), {}, {\n defaultValue: defaultValue,\n ns: namespaces\n });\n\n var translation = key ? t(key, combinedTOpts) : defaultValue;\n var content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);\n var useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;\n return useAsParent ? react.createElement(useAsParent, additionalProps, content) : content;\n}\n\nvar arrayWithHoles = createCommonjsModule(function (module) {\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar iterableToArrayLimit = createCommonjsModule(function (module) {\nfunction _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar nonIterableRest = createCommonjsModule(function (module) {\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar slicedToArray = createCommonjsModule(function (module) {\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\n\nvar _slicedToArray = /*@__PURE__*/getDefaultExportFromCjs(slicedToArray);\n\nfunction ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\nfunction useTranslation(ns) {\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var i18nFromProps = props.i18n;\n\n var _ref = react.useContext(I18nContext) || {},\n i18nFromContext = _ref.i18n,\n defaultNSFromContext = _ref.defaultNS;\n\n var i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using initReactI18next');\n\n var notReadyT = function notReadyT(k) {\n return Array.isArray(k) ? k[k.length - 1] : k;\n };\n\n var retNotReady = [notReadyT, {}, false];\n retNotReady.t = notReadyT;\n retNotReady.i18n = {};\n retNotReady.ready = false;\n return retNotReady;\n }\n\n if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');\n\n var i18nOptions = _objectSpread$2(_objectSpread$2(_objectSpread$2({}, getDefaults()), i18n.options.react), props);\n\n var useSuspense = i18nOptions.useSuspense,\n keyPrefix = i18nOptions.keyPrefix;\n var namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n if (i18n.reportNamespaces.addUsedNamespaces) i18n.reportNamespaces.addUsedNamespaces(namespaces);\n var ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(function (n) {\n return hasLoadedNamespace(n, i18n, i18nOptions);\n });\n\n function getT() {\n return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);\n }\n\n var _useState = react.useState(getT),\n _useState2 = _slicedToArray(_useState, 2),\n t = _useState2[0],\n setT = _useState2[1];\n\n var isMounted = react.useRef(true);\n react.useEffect(function () {\n var bindI18n = i18nOptions.bindI18n,\n bindI18nStore = i18nOptions.bindI18nStore;\n isMounted.current = true;\n\n if (!ready && !useSuspense) {\n loadNamespaces(i18n, namespaces, function () {\n if (isMounted.current) setT(getT);\n });\n }\n\n function boundReset() {\n if (isMounted.current) setT(getT);\n }\n\n if (bindI18n && i18n) i18n.on(bindI18n, boundReset);\n if (bindI18nStore && i18n) i18n.store.on(bindI18nStore, boundReset);\n return function () {\n isMounted.current = false;\n if (bindI18n && i18n) bindI18n.split(' ').forEach(function (e) {\n return i18n.off(e, boundReset);\n });\n if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(function (e) {\n return i18n.store.off(e, boundReset);\n });\n };\n }, [i18n, namespaces.join()]);\n var isInitial = react.useRef(true);\n react.useEffect(function () {\n if (isMounted.current && !isInitial.current) {\n setT(getT);\n }\n\n isInitial.current = false;\n }, [i18n]);\n var ret = [t, i18n, ready];\n ret.t = t;\n ret.i18n = i18n;\n ret.ready = ready;\n if (ready) return ret;\n if (!ready && !useSuspense) return ret;\n throw new Promise(function (resolve) {\n loadNamespaces(i18n, namespaces, function () {\n resolve();\n });\n });\n}\n\nexport { Trans, initReactI18next, useTranslation };\n", "import {useContext} from \"../_snowpack/pkg/react.js\";\nexport default function useRequiredContext(context) {\n const resolved = useContext(context);\n if (resolved !== void 0 && resolved !== null) {\n return resolved;\n }\n throw new Error(`No provider found for ${context.displayName ? `the '${context.displayName}'` : \"an unknown\"} context, make sure it is included in your component hierarchy.`);\n}\n", "import {\n Divider,\n Dropdown,\n DropdownItem,\n DropdownToggle,\n Split,\n SplitItem,\n Switch,\n TextContent\n} from \"../../_snowpack/pkg/@patternfly/react-core.js\";\nimport {ExternalLinkAltIcon, HelpIcon} from \"../../_snowpack/pkg/@patternfly/react-icons.js\";\nimport React, {createContext, useState} from \"../../_snowpack/pkg/react.js\";\nimport {useTranslation} from \"../../_snowpack/pkg/react-i18next.js\";\nimport useRequiredContext from \"../../utils/useRequiredContext.js\";\nimport \"./help-header.css\";\nexport const HelpContext = createContext(void 0);\nexport const useHelp = () => useRequiredContext(HelpContext);\nexport const Help = ({children}) => {\n const [enabled, setHelp] = useState(true);\n function toggleHelp() {\n setHelp((help) => !help);\n }\n return /* @__PURE__ */ React.createElement(HelpContext.Provider, {\n value: {enabled, toggleHelp}\n }, children);\n};\nexport const HelpHeader = () => {\n const [open, setOpen] = useState(false);\n const help = useHelp();\n const {t} = useTranslation();\n const dropdownItems = [\n /* @__PURE__ */ React.createElement(DropdownItem, {\n key: \"link\",\n id: \"link\"\n }, /* @__PURE__ */ React.createElement(Split, null, /* @__PURE__ */ React.createElement(SplitItem, {\n isFilled: true\n }, t(\"documentation\")), /* @__PURE__ */ React.createElement(SplitItem, null, /* @__PURE__ */ React.createElement(ExternalLinkAltIcon, null)))),\n /* @__PURE__ */ React.createElement(Divider, {\n key: \"divide\"\n }),\n /* @__PURE__ */ React.createElement(DropdownItem, {\n key: \"enable\",\n id: \"enable\"\n }, /* @__PURE__ */ React.createElement(Split, null, /* @__PURE__ */ React.createElement(SplitItem, {\n isFilled: true\n }, t(\"enableHelpMode\")), /* @__PURE__ */ React.createElement(SplitItem, null, /* @__PURE__ */ React.createElement(Switch, {\n id: \"enableHelp\",\n \"aria-label\": \"Help is enabled\",\n isChecked: help.enabled,\n label: \"\",\n className: \"keycloak_help-header-switch\",\n onChange: () => help.toggleHelp()\n }))), /* @__PURE__ */ React.createElement(TextContent, {\n className: \"keycloak_help-header-description\"\n }, t(\"common-help:helpToggleInfo\")))\n ];\n return /* @__PURE__ */ React.createElement(Dropdown, {\n position: \"right\",\n isPlain: true,\n isOpen: open,\n toggle: /* @__PURE__ */ React.createElement(DropdownToggle, {\n toggleIndicator: null,\n onToggle: () => setOpen(!open),\n \"aria-label\": \"Help\",\n id: \"help\"\n }, /* @__PURE__ */ React.createElement(HelpIcon, null)),\n dropdownItems\n });\n};\n", "/* SNOWPACK PROCESS POLYFILL (based on https://github.com/calvinmetcalf/node-process-es6) */\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\nvar cachedSetTimeout = defaultSetTimout;\nvar cachedClearTimeout = defaultClearTimeout;\nvar globalContext;\nif (typeof window !== 'undefined') {\n globalContext = window;\n} else if (typeof self !== 'undefined') {\n globalContext = self;\n} else {\n globalContext = {};\n}\nif (typeof globalContext.setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n}\nif (typeof globalContext.clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n}\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nfunction nextTick(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nvar title = 'browser';\nvar platform = 'browser';\nvar browser = true;\nvar argv = [];\nvar version = ''; // empty string to avoid regexp issues\nvar versions = {};\nvar release = {};\nvar config = {};\n\nfunction noop() {}\n\nvar on = noop;\nvar addListener = noop;\nvar once = noop;\nvar off = noop;\nvar removeListener = noop;\nvar removeAllListeners = noop;\nvar emit = noop;\n\nfunction binding(name) {\n throw new Error('process.binding is not supported');\n}\n\nfunction cwd () { return '/' }\nfunction chdir (dir) {\n throw new Error('process.chdir is not supported');\n}function umask() { return 0; }\n\n// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\nvar performance = globalContext.performance || {};\nvar performanceNow =\n performance.now ||\n performance.mozNow ||\n performance.msNow ||\n performance.oNow ||\n performance.webkitNow ||\n function(){ return (new Date()).getTime() };\n\n// generate timestamp or delta\n// see http://nodejs.org/api/process.html#process_process_hrtime\nfunction hrtime(previousTimestamp){\n var clocktime = performanceNow.call(performance)*1e-3;\n var seconds = Math.floor(clocktime);\n var nanoseconds = Math.floor((clocktime%1)*1e9);\n if (previousTimestamp) {\n seconds = seconds - previousTimestamp[0];\n nanoseconds = nanoseconds - previousTimestamp[1];\n if (nanoseconds<0) {\n seconds--;\n nanoseconds += 1e9;\n }\n }\n return [seconds,nanoseconds]\n}\n\nvar startTime = new Date();\nfunction uptime() {\n var currentTime = new Date();\n var dif = currentTime - startTime;\n return dif / 1000;\n}\n\nvar process = {\n nextTick: nextTick,\n title: title,\n browser: browser,\n env: {\"NODE_ENV\":\"production\"},\n argv: argv,\n version: version,\n versions: versions,\n on: on,\n addListener: addListener,\n once: once,\n off: off,\n removeListener: removeListener,\n removeAllListeners: removeAllListeners,\n emit: emit,\n binding: binding,\n cwd: cwd,\n chdir: chdir,\n umask: umask,\n hrtime: hrtime,\n platform: platform,\n release: release,\n config: config,\n uptime: uptime\n};\n\nexport { process as p };\n", "import { p as process } from './process-2545f00a.js';\n\nvar bind = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nvar utils = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nvar buildURL = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nvar InterceptorManager_1 = InterceptorManager;\n\nvar normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nvar enhanceError = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n };\n return error;\n};\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nvar createError = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nvar settle = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n\nvar cookies = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nvar isAbsoluteURL = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nvar combineURLs = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nvar buildFullPath = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nvar parseHeaders = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n\nvar isURLSameOrigin = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nvar Cancel_1 = Cancel;\n\nvar xhr = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n var onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = config.transitional || defaults_1.transitional;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function(cancel) {\n if (!request) {\n return;\n }\n reject(!cancel || (cancel && cancel.type) ? new Cancel_1('canceled') : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = xhr;\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = xhr;\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nvar defaults_1 = defaults;\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nvar transformData = function transformData(data, headers, fns) {\n var context = this || defaults_1;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n\nvar isCancel = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new Cancel_1('canceled');\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nvar dispatchRequest = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults_1.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nvar mergeConfig = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(prop) {\n if (prop in config2) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n var mergeMap = {\n 'url': valueFromConfig2,\n 'method': valueFromConfig2,\n 'data': valueFromConfig2,\n 'baseURL': defaultToConfig2,\n 'transformRequest': defaultToConfig2,\n 'transformResponse': defaultToConfig2,\n 'paramsSerializer': defaultToConfig2,\n 'timeout': defaultToConfig2,\n 'timeoutMessage': defaultToConfig2,\n 'withCredentials': defaultToConfig2,\n 'adapter': defaultToConfig2,\n 'responseType': defaultToConfig2,\n 'xsrfCookieName': defaultToConfig2,\n 'xsrfHeaderName': defaultToConfig2,\n 'onUploadProgress': defaultToConfig2,\n 'onDownloadProgress': defaultToConfig2,\n 'decompress': defaultToConfig2,\n 'maxContentLength': defaultToConfig2,\n 'maxBodyLength': defaultToConfig2,\n 'transport': defaultToConfig2,\n 'httpAgent': defaultToConfig2,\n 'httpsAgent': defaultToConfig2,\n 'cancelToken': defaultToConfig2,\n 'socketPath': defaultToConfig2,\n 'responseEncoding': defaultToConfig2,\n 'validateStatus': mergeDirectKeys\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n};\n\nvar data = {\n \"version\": \"0.24.0\"\n};\n\nvar VERSION = data.version;\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nvar validator = {\n assertOptions: assertOptions,\n validators: validators\n};\n\nvar validators$1 = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager_1(),\n response: new InterceptorManager_1()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators$1.transitional(validators$1.boolean),\n forcedJSONParsing: validators$1.transitional(validators$1.boolean),\n clarifyTimeoutError: validators$1.transitional(validators$1.boolean)\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nvar Axios_1 = Axios;\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(function(cancel) {\n if (!token._listeners) return;\n\n var i;\n var l = token._listeners.length;\n\n for (i = 0; i < l; i++) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = function(onfulfilled) {\n var _resolve;\n // eslint-disable-next-line func-names\n var promise = new Promise(function(resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel_1(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Subscribe to the cancel signal\n */\n\nCancelToken.prototype.subscribe = function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n};\n\n/**\n * Unsubscribe from the cancel signal\n */\n\nCancelToken.prototype.unsubscribe = function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n var index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nvar CancelToken_1 = CancelToken;\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nvar spread = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nvar isAxiosError = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios_1(defaultConfig);\n var instance = bind(Axios_1.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios_1.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults_1);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios_1;\n\n// Expose Cancel & CancelToken\naxios.Cancel = Cancel_1;\naxios.CancelToken = CancelToken_1;\naxios.isCancel = isCancel;\naxios.VERSION = data.version;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\nvar axios_1 = axios;\n\n// Allow use of default import syntax in TypeScript\nvar _default = axios;\naxios_1.default = _default;\n\nvar axios$1 = axios_1;\n\nexport { axios$1 as a };\n", "import axios from \"../../_snowpack/pkg/axios.js\";\nimport {createContext, useEffect} from \"../../_snowpack/pkg/react.js\";\nimport {useErrorHandler} from \"../../_snowpack/pkg/react-error-boundary.js\";\nimport useRequiredContext from \"../../utils/useRequiredContext.js\";\nexport const AdminClient = createContext(void 0);\nexport const useAdminClient = () => useRequiredContext(AdminClient);\nexport function useFetch(adminClientCall, callback, deps) {\n const adminClient = useAdminClient();\n const onError = useErrorHandler();\n useEffect(() => {\n const source = axios.CancelToken.source();\n adminClient.setConfig({\n requestConfig: {cancelToken: source.token}\n });\n adminClientCall().then((result) => {\n if (!source.token.reason) {\n callback(result);\n }\n }).catch((error) => {\n if (!axios.isCancel(error)) {\n onError(error);\n }\n });\n adminClient.setConfig({\n requestConfig: {cancelToken: void 0}\n });\n return () => {\n source.cancel();\n };\n }, deps);\n}\n", "export class RecentUsed {\n constructor() {\n this.MAX_NUM = 4;\n this.KEY = \"recent-used-realms\";\n this.recentUsedRealms = JSON.parse(localStorage.getItem(this.KEY) || \"[]\");\n }\n save() {\n this.recentUsedRealms = this.recentUsedRealms.slice(0, this.MAX_NUM);\n localStorage.setItem(this.KEY, JSON.stringify(this.recentUsedRealms));\n }\n clean(existingRealms) {\n this.recentUsedRealms = this.recentUsedRealms.filter((realm) => existingRealms.includes(realm));\n this.save();\n }\n get used() {\n return this.recentUsedRealms;\n }\n setRecentUsed(realm) {\n if (!this.recentUsedRealms.includes(realm)) {\n this.recentUsedRealms.unshift(realm);\n this.save();\n }\n }\n}\n", "import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-4f955397.js';\n\nvar lodash = createCommonjsModule(function (module, exports) {\n(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined$1;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined$1 : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined$1 : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined$1) {\n result = result === undefined$1 ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined$1 : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined$1,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1,\n symIterator = Symbol ? Symbol.iterator : undefined$1,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined$1,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1,\n symbolToString = symbolProto ? symbolProto.toString : undefined$1;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined$1;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined$1;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined$1 : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined$1;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined$1) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined$1) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined$1 : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined$1;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined$1 && !eq(object[key], value)) ||\n (value === undefined$1 && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined$1 && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined$1 : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined$1) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined$1) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined$1) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined$1 : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined$1 && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined$1, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined$1\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined$1 || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined$1;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined$1 ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined$1;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined$1 : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined$1 && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined$1\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined$1 && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined$1;\n\n if (newValue === undefined$1) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined$1;\n\n var isCommon = newValue === undefined$1;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined$1;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined$1;\n if (newValue === undefined$1) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined$1;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined$1,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined$1;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined$1 ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined$1,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined$1,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined$1;\n\n if (newValue === undefined$1) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined$1,\n guard = length > 2 ? sources[2] : undefined$1;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined$1;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined$1 : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined$1;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined$1,\n args, holders, undefined$1, undefined$1, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined$1;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined$1;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined$1 : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined$1 && other === undefined$1) {\n return defaultValue;\n }\n if (value !== undefined$1) {\n result = value;\n }\n if (other !== undefined$1) {\n if (result === undefined$1) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined$1 ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined$1;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined$1) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined$1 ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined$1,\n newHoldersRight = isCurry ? undefined$1 : holders,\n newPartials = isCurry ? partials : undefined$1,\n newPartialsRight = isCurry ? undefined$1 : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined$1, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined$1;\n }\n ary = ary === undefined$1 ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined$1 ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined$1;\n }\n var data = isBindKey ? undefined$1 : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined$1\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined$1, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined$1 ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined$1 : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined$1;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined$1) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined$1\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined$1, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined$1;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined$1;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined$1,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined$1 || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined$1 ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined$1, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined$1 ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined$1)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined$1;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined$1, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined$1) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined$1 ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined$1;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined$1;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined$1, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined$1;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined$1) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined$1;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined$1, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined$1 ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return (array && array.length) ? baseUniq(array, undefined$1, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined$1, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined$1;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined$1;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined$1\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined$1);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined$1) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined$1 : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined$1;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined$1\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined$1;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined$1 ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined$1 : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined$1)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined$1;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined$1 : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined$1;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined$1 : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined$1 : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined$1;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined$1 || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined$1;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined$1;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined$1) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined$1;\n }\n\n function flush() {\n return timerId === undefined$1 ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined$1) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined$1) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined$1 ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '' + func(text) + '
';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles
'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n var result = customizer ? customizer(value, other) : undefined$1;\n return result === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined$1;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined$1;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined$1 ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined$1, customDefaultsMerge);\n return apply(mergeWith, undefined$1, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined$1 : baseGet(object, path);\n return result === undefined$1 ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined$1;\n }\n while (++index < length) {\n var value = object == null ? undefined$1 : object[toKey(path[index])];\n if (value === undefined$1) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined$1) {\n upper = lower;\n lower = undefined$1;\n }\n if (upper !== undefined$1) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined$1) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined$1) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined$1;\n }\n if (floating === undefined$1) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined$1;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined$1;\n }\n }\n if (lower === undefined$1 && upper === undefined$1) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined$1) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined$1\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined$1)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined$1;\n }\n limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '