;\n\t\tconst action = incomingAction as KnownPageAction;\n\t\tif (!action.storageName || action.storageName === storageName) {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase TypeKeys.REQUESTITEM:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: true,\n\t\t\t\t\t\titem: state.item,\n\t\t\t\t\t\tid: Number(action.itemPathOrId),\n\t\t\t\t\t\titemPathOrId: action.itemPathOrId,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.RECEIVEITEM:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: false,\n\t\t\t\t\t\titem: action.item,\n\t\t\t\t\t\tid: typeof action.item.id !== 'undefined' ? action.item.id : state.id,\n\t\t\t\t\t\titemPathOrId: null,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.REMOVEITEM:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: false, item: null, id: null, itemPathOrId: null,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.INITSTORAGE:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: false,\n\t\t\t\t\t\titem: action.item,\n\t\t\t\t\t\tid: typeof action.item.id !== 'undefined' ? action.item.id : null,\n\t\t\t\t\t\titemPathOrId: null,\n\t\t\t\t\t};\n\t\t\t\tdefault:\n\t\t\t\t\tconst exhaustiveCheck: never = action;\n\t\t\t}\n\t\t}\n\n\t\treturn state || {\n\t\t\tisLoading: false, item: null, id: null, itemPathOrId: null,\n\t\t};\n\t};\n};\n","import { Action, Reducer } from 'redux';\n\nimport { addTask } from 'domain-task';\n\nimport { request } from '@common/react/components/Api';\n\n/* eslint-disable-next-line */\nimport { AppThunkAction } from '@app/store/index';\n\nexport interface PageItemState {\n\tpage: P | null;\n\tpath: string | null;\n\tisLoading: boolean;\n}\n\nexport enum TypeKeys {\n\tREQUESTPAGE = 'REQUESTPAGE',\n\tRECIEVEPAGE = 'RECIEVEPAGE'\n}\n\nexport interface RequestPageAction {\n\ttype: TypeKeys.REQUESTPAGE;\n\tstorageName: string | null;\n\tpath: string;\n}\n\nexport interface ReceivePageAction {\n\ttype: TypeKeys.RECIEVEPAGE;\n\tstorageName: string | null;\n\tpage: any;\n}\n\ntype KnownPageAction = RequestPageAction | ReceivePageAction;\n\nexport const actionCreators = ({\n\tloadPage: (storageName: string, path: string): AppThunkAction => (dispatch, getState) => {\n\t\tconst storeState = (getState() as any)[storageName];\n\n\t\tif (storeState.path !== path) {\n\t\t\tconst fetchTask = request(\n\t\t\t\t'pageLoader',\n\t\t\t\t{ path },\n\t\t\t\tgetState(),\n\t\t\t).then((data) => dispatch({ type: TypeKeys.RECIEVEPAGE, storageName, page: data }));\n\n\t\t\taddTask(fetchTask);\n\t\t\tdispatch({ type: TypeKeys.REQUESTPAGE, storageName, path });\n\n\t\t\treturn fetchTask;\n\t\t}\n\t},\n});\n\nexport const reducer = (storageName: string):Reducer> => {\n\treturn (state: PageItemState = { isLoading: false, page: null, path: '' }, incomingAction: Action) => {\n\t\tconst action = incomingAction as KnownPageAction;\n\t\tif (!action.storageName || action.storageName === storageName) {\n\t\t\tswitch (action.type) {\n\t\t\t\tcase TypeKeys.REQUESTPAGE:\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\tisLoading: true,\n\t\t\t\t\t\tpage: state.page,\n\t\t\t\t\t\tpath: action.path,\n\t\t\t\t\t};\n\t\t\t\tcase TypeKeys.RECIEVEPAGE:\n\t\t\t\t\treturn { isLoading: false, page: action.page, path: action.page.path };\n\t\t\t\tdefault:\n\t\t\t\t\tconst exhaustiveCheck: never = action;\n\t\t\t}\n\t\t}\n\n\t\treturn state;\n\t};\n};\n","import { ReducersMapObject } from 'redux';\n\nimport * as Login from '@common/react/store/Login';\nimport * as Item from '@common/react/store/Item';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BuildData } from '@common/react/objects/BuildData';\nimport BaseHostOptions from '@common/react/store/BaseHostOptions';\n\n// The top-level state object\nexport interface BaseApplicationState {\n\tlogin: Login.LoginState;\n\tbuildData: Item.ItemState;\n\thostOptions: Item.ItemState;\n}\n\n// Whenever an action is dispatched, Redux will update each top-level application state property using\n// the reducer with the matching name. It's important that the names match exactly, and that the reducer\n// acts on the corresponding ApplicationState property type.\nexport const baseReducers: ReducersMapObject = {\n\tlogin: Login.getReducer(),\n\tbuildData: Item.getReducer('buildData'),\n\thostOptions: Item.getReducer('hostOptions'),\n};\n\n// This type can be used as a hint on action creators so that its 'dispatch' and 'getState' params are\n// correctly typed to match your store.\nexport interface BaseAppThunkAction> {\n\t(dispatch: (action: TAction) => void, getState: () => TApplicationState): void;\n}\n","import { ReducersMapObject } from 'redux';\n\nimport * as Item from '@common/react/store/Item';\nimport { BaseApplicationState, BaseAppThunkAction, baseReducers } from '@common/react/store';\nimport { PageItemState, reducer as PageStateReducer } from '@common/react/store/PageItem';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { BuildData } from '@common/react/objects/BuildData';\nimport BaseHostOptions from '@common/react/store/BaseHostOptions';\n\nimport { Location } from '@app/objects/Location';\n\n// The top-level state object\nexport interface ApplicationState extends BaseApplicationState {\n\tserverPage: PageItemState;\n\tbuildData: Item.ItemState;\n\thostOptions: Item.ItemState;\n\n\tblogPageId: Item.ItemState;\n\tlocation: Item.ItemState;\n}\n\n// Whenever an action is dispatched, Redux will update each top-level application state property using\n// the reducer with the matching name. It's important that the names match exactly, and that the reducer\n// acts on the corresponding ApplicationState property type.\nexport const reducers: ReducersMapObject = {\n\t...baseReducers,\n\n\tserverPage: PageStateReducer('serverPage'),\n\tbuildData: Item.getReducer('buildData'),\n\thostOptions: Item.getReducer('hostOptions'),\n\n\tblogPageId: Item.getReducer('blogPageId'),\n\tlocation: Item.getReducer('location'),\n};\n\n// This type can be used as a hint on action creators so that its 'dispatch' and 'getState' params are\n// correctly typed to match your store.\nexport type AppThunkAction = BaseAppThunkAction\n","import 'raf/polyfill';\n\nimport 'core-js/features/array/from';\nimport 'core-js/features/array/find';\nimport 'core-js/features/array/includes';\nimport 'core-js/features/set';\nimport 'core-js/features/map';\nimport 'core-js/features/weak-map';\nimport 'core-js/features/promise';\n\nimport { bootClient, renderApp } from '@common/react/loadable/boot-client';\nimport { updateReducers } from '@common/react/configureStore';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\n\nimport { ApplicationState, reducers } from '@app/store';\nimport { routes } from '@app/routes';\n\nbootClient(routes, reducers);\n\n// Allow Hot Module Replacement\nif (module.hot) {\n\tmodule.hot.accept('@app/routes', () => {\n\t\trenderApp((require('@app/routes') as any).routes);\n\t});\n}\n\n// Enable Webpack hot module replacement for reducers\nif (module.hot) {\n\tmodule.hot.accept('@app/store', () => {\n\t\tconst nextRootReducer = require('@app/store');\n\t\tupdateReducers((nextRootReducer as any).reducers);\n\t});\n}\n","import * as React from 'react';\nimport { RouteComponentProps, withRouter } from 'react-router-dom';\n\nimport { UnregisterCallback } from 'history';\n\nimport '@common/react/scss/components/error.scss';\n\nexport class ErrorBoundary extends React.Component, {hasError: boolean}> {\n\tunlisten: UnregisterCallback | null = null;\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = { hasError: false };\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.unlisten && this.unlisten();\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.unlisten = this.props.history.listen((location, action) => {\n\t\t\tif (this.state.hasError) {\n\t\t\t\tthis.setState({ hasError: false });\n\t\t\t}\n\t\t});\n\t}\n\n\tcomponentDidCatch(error, errorInfo) {\n\t\tthis.setState({ hasError: true });\n\t}\n\n\trender() {\n\t\tif (this.state.hasError) {\n\t\t\treturn \n\t\t\t\t
\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\tOops!!!\n\t\t\t\t\t{' '}\n\t\t\t\t\t \n\t\t\t\t\t{' '}\n\t\t\t\t\tSomething went wrong\n\t\t\t\t
\n\t\t\t
;\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default withRouter(ErrorBoundary);\n","import * as React from 'react';\nimport { shallowEqual, useSelector } from 'react-redux';\n\n// eslint-disable-next-line\nimport once from 'lodash/once';\n// eslint-disable-next-line\nimport isEmpty from 'lodash/isEmpty';\n\nimport { Company } from '@commonTuna/react/objects/Company';\n\nimport { ApplicationState } from '@app/store';\n\nexport interface CompanySettingsContext {\n\tcompanySettings: Company;\n}\n\nexport const createCompanySettingsContext = once(() => React.createContext({} as CompanySettingsContext));\n\nexport const useCompanySettingsContext: () => CompanySettingsContext = () => {\n\tconst context: CompanySettingsContext = React.useContext(createCompanySettingsContext());\n\n\tif (isEmpty(context)) throw 'Need CompanySettings context!';\n\n\treturn context;\n};\n\nconst CompanySettingsProvider: React.FC = ({\n\tchildren,\n}) => {\n\tconst CompanySettingsContext = createCompanySettingsContext();\n\n\tconst companySettings = useSelector((state: ApplicationState) => state.location.item.company, shallowEqual);\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t{children}\n\t\t\t \n\t\t>\n\t);\n};\n\nexport default CompanySettingsProvider;\n","import React from 'react';\nimport TagManager from 'react-gtm-module';\n\nimport { useCompanySettingsContext } from '@app/components/UI/CompanySettingsProvider';\n\nconst Gtm: React.FC = () => {\n\tconst { companySettings: { googleTagManagerId } } = useCompanySettingsContext();\n\n\tReact.useEffect(() => {\n\t\tif (process.env.NODE_ENV === 'production' && googleTagManagerId && googleTagManagerId.trim() !== '') {\n\t\t\tTagManager.initialize({ gtmId: googleTagManagerId });\n\t\t}\n\t}, [googleTagManagerId]);\n\treturn <>>;\n};\n\nexport default Gtm;\n","import React, { useState, useEffect } from 'react';\n\nvar GA4ReactGlobalIndex = '__ga4React__';\n/**\r\n * @desc class required to manage google analitycs 4\r\n * @class GA4React\r\n * */\n\nclass GA4React {\n constructor(gaCode, gaConfig, additionalGaCode, timeout, options) {\n this.gaCode = gaCode;\n this.gaConfig = gaConfig;\n this.additionalGaCode = additionalGaCode;\n this.timeout = timeout;\n this.options = options;\n this.scriptSyncId = 'ga4ReactScriptSync';\n this.scriptAsyncId = 'ga4ReactScriptAsync';\n this.nonceAsync = '';\n this.nonceSync = '';\n this.gaConfig = gaConfig ? gaConfig : {};\n this.gaCode = gaCode;\n this.timeout = timeout || 5000;\n this.additionalGaCode = additionalGaCode;\n this.options = options;\n\n if (this.options) {\n var {\n nonce\n } = this.options;\n this.nonceAsync = nonce && nonce[0] ? nonce[0] : '';\n this.nonceSync = nonce && nonce[1] ? nonce[1] : '';\n }\n }\n /**\r\n * @desc output on resolve initialization\r\n */\n\n\n outputOnResolve() {\n return {\n pageview: this.pageview,\n event: this.event,\n gtag: this.gtag\n };\n }\n /**\r\n * @desc Return main function for send ga4 events, pageview etc\r\n * @returns {Promise}\r\n */\n\n\n initialize() {\n return new Promise((resolve, reject) => {\n if (GA4React.isInitialized()) {\n reject(new Error('GA4React is being initialized'));\n } // in case of retry logics, remove previous scripts\n\n\n var previousScriptAsync = document.getElementById(this.scriptAsyncId);\n\n if (previousScriptAsync) {\n previousScriptAsync.remove();\n }\n\n var head = document.getElementsByTagName('head')[0];\n var scriptAsync = document.createElement('script');\n scriptAsync.setAttribute('id', this.scriptAsyncId);\n scriptAsync.setAttribute('async', '');\n\n if (this.nonceAsync && typeof this.nonceAsync === 'string' && this.nonceAsync.length > 0) {\n scriptAsync.setAttribute('nonce', this.nonceAsync);\n }\n\n scriptAsync.setAttribute('src', \"https://www.googletagmanager.com/gtag/js?id=\" + this.gaCode);\n\n scriptAsync.onload = () => {\n var target = document.getElementById(this.scriptSyncId);\n\n if (target) {\n target.remove();\n } // in case of retry logics, remove previous script sync\n\n\n var previousScriptSync = document.getElementById(this.scriptSyncId);\n\n if (previousScriptSync) {\n previousScriptSync.remove();\n }\n\n var scriptSync = document.createElement('script');\n scriptSync.setAttribute('id', this.scriptSyncId);\n\n if (this.nonceSync && typeof this.nonceSync === 'string' && this.nonceSync.length > 0) {\n scriptSync.setAttribute('nonce', this.nonceSync);\n }\n\n var scriptHTML = \"window.dataLayer = window.dataLayer || [];\\n function gtag(){dataLayer.push(arguments);};\\n gtag('js', new Date());\\n gtag('config', '\" + this.gaCode + \"', \" + JSON.stringify(this.gaConfig) + \");\";\n\n if (this.additionalGaCode) {\n this.additionalGaCode.forEach(code => {\n scriptHTML += \"\\ngtag('config', '\" + code + \"', \" + JSON.stringify(this.gaConfig) + \");\";\n });\n }\n\n scriptSync.innerHTML = scriptHTML;\n head.appendChild(scriptSync);\n var resolved = this.outputOnResolve();\n Object.assign(window, {\n [GA4ReactGlobalIndex]: resolved\n });\n resolve(resolved);\n };\n\n scriptAsync.onerror = event => {\n if (typeof event === 'string') {\n reject(\"GA4React intialization failed \" + event);\n } else {\n var error = new Error();\n error.name = 'GA4React intialization failed';\n error.message = JSON.stringify(event, ['message', 'arguments', 'type', 'name']);\n reject(error);\n }\n };\n\n var onChangeReadyState = () => {\n switch (document.readyState) {\n case 'interactive':\n case 'complete':\n if (!GA4React.isInitialized()) {\n head.appendChild(scriptAsync);\n document.removeEventListener('readystatechange', onChangeReadyState);\n }\n\n break;\n }\n };\n\n if (document.readyState !== 'complete') {\n document.addEventListener('readystatechange', onChangeReadyState);\n } else {\n onChangeReadyState();\n }\n\n setTimeout(() => {\n reject(new Error('GA4React Timeout'));\n }, this.timeout);\n });\n }\n /**\r\n * @desc send pageview event to gtag\r\n * @param path\r\n */\n\n\n pageview(path, location, title) {\n return this.gtag('event', 'page_view', {\n page_path: path,\n page_location: location || window.location,\n page_title: title || document.title\n });\n }\n /**\r\n * @desc set event and send to gtag\r\n * @param action\r\n * @param label\r\n * @param category\r\n * @param nonInteraction\r\n */\n\n\n event(action, label, category, nonInteraction) {\n if (nonInteraction === void 0) {\n nonInteraction = false;\n }\n\n return this.gtag('event', action, {\n event_label: label,\n event_category: category,\n non_interaction: nonInteraction\n });\n }\n /**\r\n * @desc direct access to gtag\r\n * @param args\r\n */\n\n\n gtag() {\n //@ts-ignore\n return window.gtag(...arguments);\n }\n /**\r\n * @desc ga is initialized?\r\n */\n\n\n static isInitialized() {\n switch (typeof window[GA4ReactGlobalIndex] !== 'undefined') {\n case true:\n return true;\n\n default:\n return false;\n }\n }\n /**\r\n * @desc get ga4react from global\r\n */\n\n\n static getGA4React() {\n if (GA4React.isInitialized()) {\n return window[GA4ReactGlobalIndex];\n } else {\n console.error(new Error('GA4React is not initialized'));\n }\n }\n\n}\n\nvar outputGA4 = (children, setComponents, ga4) => {\n setComponents(React.Children.map(children, (child, index) => {\n if (!React.isValidElement(child)) {\n return React.createElement(React.Fragment, null, child);\n } //@ts-ignore\n\n\n if (child.type && typeof child.type.name !== 'undefined') {\n return React.cloneElement(child, {\n //@ts-ignore\n ga4: ga4,\n index\n });\n } else {\n return child;\n }\n }));\n};\n\nvar GA4R = (_ref) => {\n var {\n code,\n timeout,\n config,\n additionalCode,\n children,\n options\n } = _ref;\n var [components, setComponents] = useState(null);\n useEffect(() => {\n if (!GA4React.isInitialized()) {\n var ga4manager = new GA4React(\"\" + code, config, additionalCode, timeout, options);\n ga4manager.initialize().then(ga4 => {\n outputGA4(children, setComponents, ga4);\n }, err => {\n console.error(err);\n });\n } else {\n var ga4 = GA4React.getGA4React();\n\n if (ga4) {\n outputGA4(children, setComponents, ga4);\n }\n }\n }, []);\n return React.createElement(React.Fragment, null, components);\n};\n\nvar useGA4React = (gaCode, gaConfig, gaAdditionalCode, gaTimeout, options) => {\n var [ga4, setGA4] = useState(undefined);\n useEffect(() => {\n if (gaCode) {\n switch (GA4React.isInitialized()) {\n case false:\n var ga4react = new GA4React(\"\" + gaCode, gaConfig, gaAdditionalCode, gaTimeout, options);\n ga4react.initialize().then(ga4 => {\n setGA4(ga4);\n }, err => {\n console.error(err);\n });\n break;\n\n case true:\n setGA4(GA4React.getGA4React());\n break;\n }\n } else {\n setGA4(GA4React.getGA4React());\n }\n }, [gaCode]);\n return ga4;\n};\n\nfunction withTracker(MyComponent) {\n return props => {\n var {\n path,\n location,\n title,\n gaCode,\n gaTimeout,\n gaConfig,\n gaAdditionalCode,\n options\n } = props;\n useEffect(() => {\n switch (GA4React.isInitialized()) {\n case true:\n var ga4 = GA4React.getGA4React();\n\n if (ga4) {\n ga4.pageview(path, location, title);\n }\n\n break;\n\n default:\n case false:\n var ga4react = new GA4React(\"\" + gaCode, gaConfig, gaAdditionalCode, gaTimeout, options);\n ga4react.initialize().then(ga4 => {\n ga4.pageview(path, location, title);\n }, err => {\n console.error(err);\n });\n break;\n }\n });\n return React.createElement(MyComponent, Object.assign({}, props));\n };\n}\n\nexport default GA4React;\nexport { GA4R, GA4React, useGA4React, withTracker };\n//# sourceMappingURL=ga-4-react.esm.js.map\n","import React from 'react';\nimport { useHistory } from 'react-router-dom';\n\nimport GA4React from 'ga-4-react';\n\nimport { useCompanySettingsContext } from '@app/components/UI/CompanySettingsProvider';\n\nconst RouteChangeTracker: React.FC = ({ children }) => {\n\tconst { companySettings: { googleAnalyticsId } } = useCompanySettingsContext();\n\n\tconst history = useHistory();\n\n\tReact.useEffect(() => {\n\t\tif (process.env.NODE_ENV === 'production' && googleAnalyticsId && googleAnalyticsId.trim() !== '') {\n\t\t\tconst ga4react = new GA4React(googleAnalyticsId);\n\n\t\t\tga4react.initialize().then((ga4) => {\n\t\t\t\tga4.pageview(window.location.pathname + window.location.search);\n\n\t\t\t\thistory.listen((location, action) => {\n\t\t\t\t\tif (GA4React.isInitialized()) {\n\t\t\t\t\t\tga4react.pageview(location.pathname + location.search);\n\t\t\t\t\t\tga4react.gtag('set', 'page', location.pathname);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}, console.error);\n\t\t}\n\t}, []);\n\n\treturn <>{children}>;\n};\n\nexport default RouteChangeTracker;\n","import * as React from 'react';\n\nimport { RequestProvider } from '@common/react/components/RequestProvider/RequestProvider';\nimport ErrorBoundary from '@common/react/components/UI/ErrorBoundary/ErrorBoundary';\n\nimport Gtm from '@app/components/UI/Gtm/Gtm';\nimport CompanySettingsProvider from '@app/components/UI/CompanySettingsProvider';\nimport RouteChangeTracker from '@app/components/Routes/RouteChangeTracker';\n\nimport '@app/scss/style.scss';\n\nconst Layout: React.FC = ({ children }) => \n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{children}
\n\t\t\t\t\t \n\t\t\t\t \n\t\t\t \n\t\t \n\t \n
;\n\nexport default Layout;\n","import React from 'react';\n\nimport { SocialMedia as SocialMediaType } from '@commonTuna/react/objects/SocialMedia';\n\ninterface Props {\n\tsocialMedias: Array;\n}\n\nconst SocialMedia: React.FC = ({ socialMedias }) => {\n\treturn <>\n\t\t{socialMedias?.filter((media) => media.icon).map((media) => \n\t\t\t \n\t\t )\n\t\t}\n\t>;\n};\n\nexport default SocialMedia;\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { useLocation, NavLink } from 'react-router-dom';\n\nimport { phoneFormat } from '@common/react/components/Forms/FormikPhoneControl/FormikPhoneControl';\n\nimport { SocialMedia as SocialMediaType } from '@commonTuna/react/objects/SocialMedia';\n\nimport SocialMedia from '@app/components/UI/SocialMedia/SocialMedia';\nimport { ApplicationState } from '@app/store';\n\ninterface PassedProps {\n\tphone?: string;\n\tsocialMedias?: Array;\n}\n\ntype HeaderProps = PassedProps;\n\nconst Header: React.FC = ({ socialMedias: propsSocialMedias, phone: propsPhone }) => {\n\tconst [isMenuOpen, setOpen] = React.useState(false);\n\tconst toggleMenu = React.useCallback(() => setOpen((prev) => !prev), []);\n\tconst close = React.useCallback(() => setOpen(false), []);\n\tconst browserLocation = useLocation();\n\n\tconst { blogPageId, location } = useSelector((state: ApplicationState) => ({\n\t\tblogPageId: state.blogPageId.item,\n\t\tlocation: state.location.item,\n\t}));\n\n\tconst mainMenu = React.useMemo(() => {\n\t\tconst menu = [\n\t\t\t{\n\t\t\t\tpath: '#home', name: 'Home', basePath: '', fullPath: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#info', name: 'About', basePath: '', fullPath: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#booking', name: 'Schedule', basePath: '', fullPath: '', className: 'show-mobile',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#services', name: 'Services', basePath: '', fullPath: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#blog', name: 'Blog', basePath: '', fullPath: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '', name: 'FAQ', basePath: '#faq', fullPath: '#faq',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#reviews', name: 'Reviews', basePath: '', fullPath: '',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: '#contacts', name: 'Contacts', basePath: '', fullPath: '',\n\t\t\t},\n\t\t];\n\n\t\treturn menu.filter((item) => item.path !== '#blog' || blogPageId > 0);\n\t}, [blogPageId, browserLocation.pathname]);\n\n\tconst socialMedias = propsSocialMedias || location.socialMedias;\n\tconst phone = propsPhone || location.phone;\n\n\treturn \n\t\t\n\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t \n\t ;\n};\n\nexport default Header;\n","import * as React from 'react';\nimport { useSelector } from 'react-redux';\n\nimport ImageLazy from '@common/react/components/UI/ImageLazy/ImageLazy';\n\nimport SocialMedia from '@app/components/UI/SocialMedia/SocialMedia';\nimport { ApplicationState } from '@app/store';\n\nconst year = new Date().getFullYear();\n\nconst Footer: React.FC = () => {\n\tconst socialMedias = useSelector((state: ApplicationState) => state.location.item.socialMedias);\n\n\treturn ;\n};\n\nexport default Footer;\n","import * as React from 'react';\nimport { Route, RouteProps } from 'react-router-dom';\n\nimport Header from '@app/components/UI/Header/Header';\nimport Footer from '@app/components/UI/Footer/Footer';\n\nimport '@app/scss/pages/home.scss';\n\ninterface Props extends RouteProps {\n\tcomponent: any;\n\twithoutHeader?: boolean;\n\twithoutFooter?: boolean;\n}\n\nexport const MainRoute: React.FC = ({ component: Component, ...rest }) => (\n\t\n\t\t\t\n\t\t\t\t{!rest.withoutHeader && }\n\t\t\t\t \n\t\t\t\t{!rest.withoutFooter && }\n\t\t\t
\n\t\t}\n\t/>\n);\n","import * as React from 'react';\nimport { Switch } from 'react-router-dom';\n\nimport loadable from '@loadable/component';\n\nimport { loadableDelay, params } from '@common/react/loadable/loadableSettings';\nimport NotFoundRoute from '@common/react/components/Routes/NotFoundRoute';\n\nimport Layout from '@app/components/Layout';\nimport { MainRoute } from '@app/components/Routes/MainRoute';\n\nconst Home = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"HomePage\" */ '@app/components/Pages/Home/Home')), params);\nconst Blog = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"BlogPage\" */ '@app/components/Pages/Blog/Blog')), params);\nconst Article = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"ArticlePage\" */ '@app/components/Pages/Article/Article')), params);\n\nexport const routes = (\n\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t \n );\n","import { fetch } from 'domain-task';\n\nimport { BaseApplicationState } from '@common/react/store';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\n\ninterface Message {\n\tsuccess: number;\n\tresponse: T;\n\tsession: string;\n}\n\nexport interface ResponseError {\n\tmessage: string;\n\tcode: number;\n\tname?: string;\n}\n\nconst baseRequest = <\n\tT,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n>(type: string, data: BaseParams = {}, state?: TApplicationState, signal?: AbortSignal): Promise => {\n\treturn fetch('api/post', {\n\t\tcredentials: 'same-origin',\n\t\tmethod: 'POST',\n\t\theaders: {\n\t\t\t'Content-type': 'application/json; charset=utf-8',\n\t\t\tCookie: `session=${state ? state.login.session : ''}`,\n\t\t},\n\t\tbody: JSON.stringify({\n\t\t\ttype,\n\t\t\tdata: JSON.stringify(data),\n\t\t}),\n\t\tsignal,\n\t})\n\t\t.then((response) => response.json() as Message)\n\t\t.then((data: Message) => {\n\t\t\tif (!data.success) {\n\t\t\t\tthrow data.response as ResponseError;\n\t\t\t}\n\n\t\t\treturn data.response as T;\n\t\t});\n};\n\nconst request = <\n\tT,\n\tTUser extends BaseUser,\n\tTApplicationState extends BaseApplicationState\n\t>(type: string, data: BaseParams = {}, state?: TApplicationState, signal?: AbortSignal): Promise => {\n\treturn baseRequest(type, data, state, signal)\n\t\t.catch((error: ResponseError) => {\n\t\t\tif (error.name === 'AbortError') {\n\t\t\t\tthrow new Error('Aborted');\n\t\t\t}\n\t\t\tif (error.message === 'Access denied' && window) {\n\t\t\t\twindow.location.href = '/';\n\t\t\t}\n\n\t\t\tconsole.log(error.message);\n\t\t\tthrow error.message as string;\n\t\t});\n};\n\nexport { baseRequest, request };\n","import * as React from 'react';\n\nimport once from 'lodash/once';\n\nexport interface LoadingProviderProps {\n\tloader: JSX.Element;\n}\n\nexport interface LoadingProviderContextState {\n\tpageLoader: JSX.Element;\n}\n\nexport interface LoadingProviderContext {\n\tstate: LoadingProviderContextState;\n\tactions: {setPageLoader};\n}\n\nexport const createLoaderProviderContext = once(() => React.createContext({} as LoadingProviderContext));\n\nexport const useLoaderProviderContext: () => LoadingProviderContext = () => React.useContext(createLoaderProviderContext());\n\nexport const LoadingProvider: React.FC = ({ children, loader }) => {\n\tconst ItemContext = createLoaderProviderContext();\n\n\tconst [pageLoader, setPageLoader] = React.useState(loader);\n\n\tconst value = {\n\t\tstate: {\n\t\t\tpageLoader,\n\t\t},\n\t\tactions: {\n\t\t\tsetPageLoader,\n\t\t},\n\t};\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t \n\t);\n};\n","import React from 'react';\n\nimport { useLoaderProviderContext } from '@common/react/components/Core/LoadingProvider/LoadingProvider';\n\ninterface Props {\n\tdefaultLoader?: JSX.Element;\n}\n\nconst Loader: React.FC = ({ defaultLoader }) => {\n\tconst loaderContext = useLoaderProviderContext();\n\n\treturn loaderContext?.state?.pageLoader || defaultLoader || '';\n};\n\nexport default Loader;\n","import * as React from 'react';\n\nimport once from 'lodash/once';\n\nexport interface NotFoundPageProviderProps {\n\tnotFoundComponent: JSX.Element;\n}\n\nexport interface NotFoundPageProviderContextState {\n\tnotFoundPage: JSX.Element;\n}\n\nexport interface NotFoundPageProviderContext {\n\tstate: NotFoundPageProviderContextState;\n\tactions: { setNotFoundPage };\n}\n\nexport const createNotFoundPageProviderContext = once(() => React.createContext({} as NotFoundPageProviderContext));\n\nexport const useNotFoundPageProviderContext: () => NotFoundPageProviderContext = () => React.useContext(createNotFoundPageProviderContext());\n\nexport const NotFoundPageProvider: React.FC = ({ children, notFoundComponent }) => {\n\tconst ItemContext = createNotFoundPageProviderContext();\n\n\tconst [notFoundPage, setNotFoundPage] = React.useState(notFoundComponent);\n\n\tconst value = {\n\t\tstate: {\n\t\t\tnotFoundPage,\n\t\t},\n\t\tactions: {\n\t\t\tsetNotFoundPage,\n\t\t},\n\t};\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t \n\t);\n};\n","import React from 'react';\n\nimport { useNotFoundPageProviderContext } from '@common/react/components/Core/NotFoundPageProvider/NotFoundPageProvider';\n\ninterface Props {\n\tdefaultNotFoundComponent?: JSX.Element;\n}\n\nconst NotFoundComponent: React.FC = ({ defaultNotFoundComponent }) => {\n\tconst notFoundComponentContext = useNotFoundPageProviderContext();\n\n\treturn notFoundComponentContext?.state?.notFoundPage || defaultNotFoundComponent || '';\n};\n\nexport default NotFoundComponent;\n","import * as React from 'react';\nimport MaskedInput from 'react-text-mask';\n\nimport { FieldProps } from 'formik';\n\nexport const defaultPhoneMask = ['+', '1', ' ', '(', /\\d/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/];\n\nexport const allCountriesPhoneMask = [\n\t'+',\n\t/[1-9]/,\n\t' ',\n\t'(',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t')',\n\t' ',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t'-',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n];\n\nexport const allCountriesPhoneMask2DigitCode = [\n\t'+',\n\t/[1-9]/,\n\t/[1-9]/,\n\t' ',\n\t'(',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t')',\n\t' ',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t'-',\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n\t/\\d/,\n];\n\nexport const getAllCountriesPhoneMask = (phone: string | null | undefined) => {\n\tif (!phone || phone.includes('_')) {\n\t\treturn defaultPhoneMask;\n\t}\n\n\tconst formatPhone = phoneFormat(phone);\n\n\tconst matches = formatPhone.match(/^(\\+[1-9]{1,2})/);\n\n\tif (matches && matches[0] && matches[0].length > 2) {\n\t\treturn allCountriesPhoneMask2DigitCode;\n\t}\n\n\treturn allCountriesPhoneMask;\n};\n\nexport const phoneReplace = (phone: string | null | undefined): string => (phone\n\t? phone.replace(/[\\(\\)\\-\\s]/g, '')\n\t: '');\n\nexport const phoneFormat = (phone: string | null | undefined): string => (phone\n\t? phone.replace(/\\+([1-9]{1,2})(\\d{3})(\\d{3})(\\d{4})/, '+$1 ($2) $3-$4')\n\t: '');\n\ninterface Props {\n\tplaceholder?: string;\n\tfieldProps: FieldProps;\n\tclassName?: string;\n\tmask?: Array;\n\twithReplace?: boolean;\n\tisMobile?: boolean;\n\tdisabled?: boolean;\n\tid?: string;\n\tautoComplete?: string;\n}\n\nconst removeDefaultPhoneMask = (phone: string | null | undefined): string => phoneReplace(phone)\n\t.replace(/^\\+?1/, '')\n\t.replace(/\\D/g, '')\n\t.replace(/_/g, '');\n\nconst getMask = (count, str, char: string = '_') => {\n\tconst length = str ? count - str.length : count;\n\treturn `${str || ''}${Array.from({ length }).fill(char).join('')}`;\n};\n\nconst defaultPhoneFormat = (value) => {\n\tlet phone = (value || '').replace(/\\D/g, '');\n\tconst match = phone.match(/^(\\d{1,3})(\\d{0,3})(\\d{0,4})$/);\n\n\tif (match) {\n\t\tphone = `(${getMask(3, match[1])}) ${getMask(3, match[2])}-${getMask(3, match[3])}`;\n\t}\n\treturn phone;\n};\n\nexport const FormikPhoneControl: React.FC = ({\n\tplaceholder = '',\n\tfieldProps: { field, form },\n\tclassName = 'form-control',\n\tmask = defaultPhoneMask,\n\twithReplace = true,\n\tisMobile = false,\n\tdisabled,\n\tid,\n\tautoComplete,\n}) => {\n\tconst value = React.useMemo(() => phoneFormat(field.value), [field.value]);\n\n\tconst pipe = (text, t) => {\n\t\tconst needReplace = mask === defaultPhoneMask && t.rawValue?.replace(/\\D/g, '').length <= 10\n\t\t\t&& removeDefaultPhoneMask(text) !== removeDefaultPhoneMask(t.rawValue);\n\n\t\treturn needReplace ? `+1 ${defaultPhoneFormat(removeDefaultPhoneMask(t.rawValue))}` : text;\n\t};\n\n\treturn form.setFieldValue(field.name, withReplace ? phoneReplace(e.target.value) : e.target.value)}\n\t\tonBlur={field.onBlur}\n\t\tvalue={value}\n\t\tdisabled={disabled}\n\t\tautoComplete={autoComplete}\n\t/>;\n};\n","import React from 'react';\nimport { shallowEqual, useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\n\nimport once from 'lodash/once';\nimport { fetch } from 'domain-task';\nimport loadable from '@loadable/component';\n\nimport { loadableDelay } from '@common/react/loadable/loadableSettings';\nimport { BaseApplicationState } from '@common/react/store';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\nimport { BaseParams } from '@common/typescript/objects/BaseParams';\nimport Loader from '@common/react/components/Core/LoadingProvider/Loader';\nimport { TypeKeys } from '@common/react/store/Login';\n\nconst params = { fallback: };\n\nconst ErrorPage = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"ErrorPage\" */ '@common/react/components/Pages/ErrorPage/ErrorPage')), params);\n\nconst AccessDenied = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"AccessDenied\" */\n\t\t'@common/react/components/Pages/AccessDenied/AccessDenied'\n\t)), params);\n\nconst NotFound = loadable(() =>\n\tloadableDelay(import(/* webpackChunkName: \"PageNotFound\" */\n\t\t'@common/react/components/UI/PageNotFound/PageNotFound'\n\t)), params);\n\nexport type RequestType = (type: string, data?: BaseParams, beforeRequest?: () => void, ttl?: number, signal?: AbortSignal) => Promise;\n\ninterface ErrorComponents {\n\taccessDenied: React.JSXElementConstructor;\n\tnotFound: React.JSXElementConstructor>;\n\terrorPage: React.JSXElementConstructor>;\n}\n\ninterface ErrorComponentsOptions {\n\tnotFountMessage?: string;\n}\n\nexport interface RequestProviderProps {\n\t/**\n\t * cache available flag, by default is true\n\t */\n\tcache?: boolean;\n\t/**\n\t * time to live (ms) for cached response if cache is available\n\t */\n\tttl?: number;\n\terrorHandlerForCustomCodes?: (ResponseError: ResponseError) => void;\n\tgetErrorComponents?: (ResponseError: ResponseError, component: ErrorComponents, options: ErrorComponentsOptions) => React.ReactNode;\n\terrorComponents?: Partial;\n\t/**\n\t * debug flag - if true, output cache state on each updateCache and leave keys at cache after delete value\n\t * by default false\n\t */\n\tdebug?: boolean;\n\t/**\n\t * message for not found page\n\t */\n\tnotFoundPageMessage?: string;\n}\n\nexport interface Cache {\n\t[key: string]: any;\n}\n\nexport interface RequestProviderContextState {\n\trequest: RequestType;\n\tnotFountMessage?: string;\n}\n\nexport interface RequestProviderContextActions {\n\tupdateCache: (type, data, response, ttl?: number) => void;\n\tgetFromCache: (type, params) => any;\n}\n\nexport interface RequestProviderContext {\n\tstate: RequestProviderContextState;\n\tactions: RequestProviderContextActions;\n}\n\nexport const createRequestProviderContext = once(() => React.createContext({} as RequestProviderContext));\n\nexport const useRequestProviderContext: () => RequestProviderContext = () => React.useContext(createRequestProviderContext());\n\ninterface Message {\n\tsuccess: number;\n\tresponse: T;\n\tsession: string;\n}\n\nexport enum ErrorCode\n{\n\tNotStated = 0,\n\tNoRights = 1,\n\tUnspecifiedError = 42,\n\tNotFound = 65,\n\tCaptchaRequired = 66,\n\tTemporaryDisabled = 67\n}\n\nexport interface ResponseError {\n\tmessage: string;\n\tcode: number;\n\tpath: string;\n\tisLogin?: boolean;\n}\n\nconst defaultErrorComponents = {\n\taccessDenied: AccessDenied,\n\tnotFound: NotFound,\n\terrorPage: ErrorPage,\n};\n\nexport const getDefaultErrorComponents = (error: ResponseError, components: ErrorComponents, options?: ErrorComponentsOptions) => {\n\tconst {\n\t\taccessDenied: AccessDeniedComponent,\n\t\tnotFound: NotFoundComponent,\n\t\terrorPage: ErrorPageComponent,\n\t} = components;\n\tswitch (error.code) {\n\t\tcase ErrorCode.NoRights:\n\t\t\treturn ;\n\t\tcase ErrorCode.NotFound:\n\t\t\treturn ;\n\t\tcase ErrorCode.UnspecifiedError:\n\t\t\treturn ;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n};\n\nexport const RequestProvider: React.FC = ({\n\tchildren,\n\tcache: cacheProps = true,\n\tttl: defaultTtl = 0,\n\tgetErrorComponents = getDefaultErrorComponents,\n\terrorHandlerForCustomCodes,\n\terrorComponents = defaultErrorComponents,\n\tdebug = false,\n\tnotFoundPageMessage,\n}) => {\n\tconst [errorComponent, setErrorComponent] = React.useState(null);\n\tconst [cache, setCache] = React.useState({});\n\tconst timers = React.useRef({});\n\n\tconst ItemContext = createRequestProviderContext();\n\n\tconst session = useSelector((state: BaseApplicationState) => state.login.session, shallowEqual);\n\tconst history = useHistory();\n\tconst dispatch = useDispatch();\n\tconst context = useRequestProviderContext();\n\tconst notFountMessage = notFoundPageMessage || context?.state?.notFountMessage;\n\n\tconst updateCache = (type, params, response, ttl = defaultTtl) => {\n\t\tdebug && console.log(cache);\n\n\t\tif (cacheProps && ttl && ttl > 0) {\n\t\t\tconst key = `${type}${JSON.stringify(params)}`;\n\n\t\t\tsetCache((prev) => {\n\t\t\t\treturn { ...prev, [key]: response };\n\t\t\t});\n\n\t\t\tif (timers.current[key]) {\n\t\t\t\tclearTimeout(timers.current[key]);\n\t\t\t}\n\t\t\ttimers.current[key] = setTimeout(() => {\n\t\t\t\tif (timers.current[key]) {\n\t\t\t\t\tsetCache((prev) => {\n\t\t\t\t\t\tconst cache = { ...prev, [key]: undefined };\n\t\t\t\t\t\t!debug && delete cache[key];\n\t\t\t\t\t\treturn cache;\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}, ttl);\n\t\t}\n\t};\n\n\tconst getFromCache = (type, params) => {\n\t\tif (cacheProps) {\n\t\t\tconst key = `${type}${JSON.stringify(params)}`;\n\n\t\t\tif (cache[key]) {\n\t\t\t\treturn cache[key];\n\t\t\t}\n\t\t}\n\t};\n\n\tReact.useEffect(() => {\n\t\tif (cacheProps) {\n\t\t\treturn () => {\n\t\t\t\tObject.values(timers.current)\n\t\t\t\t\t.map((timer: any) => timer && clearTimeout(timer));\n\t\t\t};\n\t\t}\n\t}, []);\n\n\tconst errorHandler = (error: ResponseError) => {\n\t\tif (error.code === ErrorCode.NotStated) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (error.code === ErrorCode.NoRights) {\n\t\t\tif (!error.isLogin) {\n\t\t\t\tdispatch({ type: TypeKeys.CLEARSTATE });\n\t\t\t\thistory.replace(error.path || '/');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (error.path !== '/') {\n\t\t\t\thistory.replace(error.path);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tconst errorComponent = getErrorComponents(error, { ...defaultErrorComponents, ...errorComponents }, { notFountMessage });\n\t\tif (errorComponent) {\n\t\t\tsetErrorComponent(errorComponent);\n\t\t} else {\n\t\t\terrorHandlerForCustomCodes && errorHandlerForCustomCodes(error);\n\t\t}\n\n\t\tconsole.log(error.message);\n\t};\n\n\tconst request = React.useMemo(() => {\n\t\treturn (type: string, params: BaseParams = {}, beforeRequest, ttl = defaultTtl, signal?: AbortSignal): Promise => {\n\t\t\tif (cacheProps && ttl && ttl > 0) {\n\t\t\t\tconst key = `${type}${JSON.stringify(params)}`;\n\n\t\t\t\tif (cache[key]) {\n\t\t\t\t\treturn Promise.resolve(cache[key]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbeforeRequest && beforeRequest();\n\n\t\t\treturn fetch('api/post', {\n\t\t\t\tcredentials: 'same-origin',\n\t\t\t\tmethod: 'POST',\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-type': 'application/json; charset=utf-8',\n\t\t\t\t\tCookie: `session=${session || ''}`,\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify({\n\t\t\t\t\ttype,\n\t\t\t\t\tdata: JSON.stringify(params),\n\t\t\t\t}),\n\t\t\t\tsignal,\n\t\t\t})\n\t\t\t\t.then((response) => response.json() as Message)\n\t\t\t\t.then((data: Message) => {\n\t\t\t\t\tif (!data.success) {\n\t\t\t\t\t\tthrow data.response as ResponseError;\n\t\t\t\t\t}\n\n\t\t\t\t\tupdateCache(type, params, data.response, ttl);\n\n\t\t\t\t\treturn data.response as T;\n\t\t\t\t})\n\t\t\t\t.catch((error: ResponseError) => {\n\t\t\t\t\terrorHandler(error);\n\n\t\t\t\t\tthrow error.message as string;\n\t\t\t\t});\n\t\t};\n\t}, [session, getErrorComponents, history.location, cacheProps, cache]);\n\n\tReact.useEffect(() => {\n\t\treturn history.listen((location, action) => {\n\t\t\tif (errorComponent) {\n\t\t\t\tsetErrorComponent(null);\n\t\t\t}\n\t\t});\n\t}, [errorComponent]);\n\n\tconst value = {\n\t\tstate: {\n\t\t\trequest,\n\t\t\tnotFountMessage,\n\t\t},\n\t\tactions: {\n\t\t\tupdateCache,\n\t\t\tgetFromCache,\n\t\t},\n\t};\n\n\treturn (\n\t\t\n\t\t\t{errorComponent || children}\n\t\t \n\t);\n};\n","import * as React from 'react';\nimport { RouteProps } from 'react-router-dom';\nimport { shallowEqual, useSelector } from 'react-redux';\nimport { Helmet } from 'react-helmet';\n\nimport NotFoundComponent from '@common/react/components/Core/NotFoundPageProvider/NotFoundComponent';\nimport PageNotFound from '@common/react/components/UI/PageNotFound/PageNotFound';\n\nimport { BaseApplicationState } from '@common/react/store';\nimport { BaseUser } from '@common/typescript/objects/BaseUser';\n\ninterface Props extends RouteProps {\n\topenRoute: any;\n\tloginRoute?: any;\n\tcomponent?: any;\n\ttitle?: string;\n\tnotFoundPage?: React.ReactNode;\n\tloginRender?: React.ReactNode;\n\topenRender?: React.ReactNode;\n\tgetServerPage?: (state) => any;\n}\n\nconst defaultGetServerPage = (state) => state?.serverPage;\n\nconst NotFoundRoute: React.FC = ({\n\ttitle = '404 Not Found', notFoundPage, openRoute, loginRoute = openRoute, ...rest\n}) => {\n\tconst { component: Component = () => } /> } = rest;\n\tconst { loginRender = Component, openRender = Component, getServerPage = defaultGetServerPage } = rest;\n\tconst user = useSelector((state: BaseApplicationState) => state?.login?.user, shallowEqual);\n\tconst serverPage = useSelector(getServerPage, shallowEqual);\n\n\tReact.useEffect(() => {\n\t\tif (serverPage?.page) {\n\t\t\tserverPage.page = null;\n\t\t}\n\t}, []);\n\n\tconst Route: any = user ? loginRoute : openRoute;\n\tconst Node = user ? loginRender : openRender;\n\n\treturn <>\n\t\t\t{title && \n\t\t\t\t{title} \n\t\t\t }\n\t\t\t \n\t\t>}\n\t/>;\n};\n\nexport default NotFoundRoute;\n","import React from 'react';\n\ninterface RootMargin {\n\trootMargin?: string | undefined;\n}\n\ntype Props = React.ImgHTMLAttributes & RootMargin\n\nconst ImageLazy: React.FC = ({ src, rootMargin = '15px', ...props }) => {\n\tconst ref = React.useRef(null);\n\tconst [visible, setVisible] = React.useState(false);\n\n\tReact.useEffect(() => {\n\t\tif (ref.current) {\n\t\t\tconst intersectionObserver = new IntersectionObserver((entries) => {\n\t\t\t\tif (entries[0].isIntersecting) {\n\t\t\t\t\tsetVisible(true);\n\t\t\t\t}\n\t\t\t}, {\n\t\t\t\trootMargin,\n\t\t\t\tthreshold: 0.01,\n\t\t\t});\n\n\t\t\tintersectionObserver.observe(ref.current);\n\t\t\treturn () => intersectionObserver.disconnect();\n\t\t}\n\t}, [ref.current]);\n\n\treturn ;\n};\n\nexport default ImageLazy;\n","import * as React from 'react';\n\ninterface SpinnerProps {\n\tclassName?: string;\n\tcaption?: string;\n}\n\nexport const Loading: React.FC = ({ className = 'page-loading', caption = 'Loading' }) => {\n\treturn \n\t\t
\n\t\t
\n\t\t\t{caption}\n\t\t
\n\t
;\n};\n","import * as React from 'react';\n\nimport { useHistory } from 'react-router-dom';\n\nimport { useRequestProviderContext } from '@common/react/components/RequestProvider/RequestProvider';\n\nconst PageNotFound: React.FC<{ message?: string}> = ({ message }) => {\n\tconst history = useHistory<{ prevPath?: string }>();\n\tconst context = useRequestProviderContext();\n\tconst notFountMessage = message || context?.state?.notFountMessage || '404 Not Found';\n\n\tconst handlerBack = () => {\n\t\tconst { location } = history;\n\t\tif (location.state?.prevPath) {\n\t\t\thistory.push(location.state.prevPath);\n\t\t} else {\n\t\t\thistory.push('/');\n\t\t}\n\t};\n\tconst havePrevPage = history.location.state?.prevPath;\n\n\treturn \n\t\t
\n\t\t\t{notFountMessage}\n\t\t \n\t\t
\n\t\t\t handlerBack()}>\n\t\t\t\tGo \n\t\t\t\t{havePrevPage ? 'Back' : 'to Main page'}\n\t\t\t \n\t\t
\n\t
;\n};\n\nexport default PageNotFound;\n","import * as React from 'react';\n\nimport { Loading } from '@common/react/components/UI/Loading/Loading';\n\nexport { default as loadable } from '@loadable/component';\n\nconst delay = (ms) => {\n\treturn new Promise((resolve) => {\n\t\tsetTimeout(resolve, ms);\n\t});\n};\n\nexport const loadableDelay: (promise: Promise<{ default: T }>) => Promise<{ default: T }> = (promise) => {\n\tif (typeof window === 'undefined') return promise;\n\n\tlet promiseErr;\n\n\t// tslint:disable-next-line:no-parameter-reassignment\n\tpromise = promise.catch((err) => promiseErr = err);\n\n\treturn Promise.all([promise, delay(200)]).then((val) => (promiseErr ? Promise.reject(promiseErr) : val[0]));\n};\n\nexport const params = {\n\tfallback: ,\n};\n","import { addTask } from 'domain-task';\nimport { Reducer } from 'redux';\n\nimport { request } from '@common/react/components/Api';\nimport { BaseUser } from '@common/react/objects/BaseUser';\nimport { BaseApplicationState, BaseAppThunkAction } from '@common/react/store/index';\nimport { Lang } from '@common/typescript/objects/Lang';\n\nexport interface LoginState {\n\tisLoading: boolean;\n\tsession: string;\n\tuser: TUser | null;\n\tmessage: string;\n\ttransmuted: boolean;\n\tdebug: boolean;\n\tlang: Lang;\n\tuserAgent: string;\n}\n\nexport enum TypeKeys {\n\tREQUESTLOGIN = 'REQUEST_LOGIN',\n\tRECEIVELOGIN = 'RECEIVE_LOGIN',\n\tREQUESTLOGOFF = 'REQUEST_LOGOFF',\n\tRECEIVELOGOFF = 'RECEIVE_LOGOFF',\n\tSETSESSION = 'SET_SESSION',\n\tUPDATEUSER = 'UPDATE_USER',\n\tCLEARSTATE = 'CLEAR_STATE',\n\tSETLANG = 'SET_LANG',\n}\n\ninterface RequestLoginAction {\n\ttype: TypeKeys.REQUESTLOGIN;\n}\n\ninterface ReceiveLoginAction {\n\ttype: TypeKeys.RECEIVELOGIN;\n\tuser: BaseUser | null;\n\tsession: string;\n\tmessage: string;\n\ttransmuted: boolean;\n\tdebug: boolean;\n\tlang: Lang;\n\tuserAgent: string;\n}\n\ninterface RequestLogoffAction {\n\ttype: TypeKeys.REQUESTLOGOFF;\n}\n\ninterface ReceiveLogoffAction {\n\ttype: TypeKeys.RECEIVELOGOFF;\n\tsession: string;\n}\n\ninterface SetSessionAction {\n\ttype: TypeKeys.SETSESSION;\n\tsession: string;\n}\n\ninterface SetLangAction {\n\ttype: TypeKeys.SETLANG;\n\tlang: Lang;\n}\n\ninterface UpdateUserAction {\n\ttype: TypeKeys.UPDATEUSER;\n\tdata: any;\n\tsetUser?: (user) => any;\n}\n\ninterface ClearStateAction {\n\ttype: TypeKeys.CLEARSTATE;\n}\n\ntype KnownUserAction =\n\tRequestLoginAction |\n\tReceiveLoginAction |\n\tRequestLogoffAction |\n\tReceiveLogoffAction |\n\tSetSessionAction |\n\tUpdateUserAction |\n\tClearStateAction |\n\tSetLangAction;\n\nexport interface LoginActionCreators> {\n\tlogin: (login: string, password: string, path?: string) => BaseAppThunkAction;\n\tlogoff: (clearState?: boolean, callback?: () => void) => BaseAppThunkAction;\n\tupdateUser: (data: any, setUser?: (user) => any) => BaseAppThunkAction;\n\tsetUserAndSession: (user: BaseUser, session: string) => BaseAppThunkAction;\n\tsetLang: (lang: Lang) => BaseAppThunkAction;\n}\n\nexport const getActionCreators = >() => {\n\treturn {\n\t\tlogin: (login: string, password: string, path: string = 'auth'): BaseAppThunkAction =>\n\t\t\t(dispatch, getState) => {\n\t\t\t\tif (!getState().login.isLoading) {\n\t\t\t\t\tconst fetchTask = request(path, {\n\t\t\t\t\t\tlogin,\n\t\t\t\t\t\tpassword,\n\t\t\t\t\t\tpath: '/login',\n\t\t\t\t\t}).then((data) => {\n\t\t\t\t\t\tif (data.initObject) {\n\t\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\t\t\t\t\tuser: data.initObject.user,\n\t\t\t\t\t\t\t\tsession: data.initObject.guid,\n\t\t\t\t\t\t\t\tmessage: '',\n\t\t\t\t\t\t\t\ttransmuted: data.initObject.transmuted,\n\t\t\t\t\t\t\t\tdebug: data.initObject.debug,\n\t\t\t\t\t\t\t\tlang: data.initObject.lang,\n\t\t\t\t\t\t\t\tuserAgent: data.initObject.userAgent,\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}).catch((data) => {\n\t\t\t\t\t\tdispatch({\n\t\t\t\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\t\t\t\tuser: null,\n\t\t\t\t\t\t\tsession: getState().login.session,\n\t\t\t\t\t\t\tmessage: data,\n\t\t\t\t\t\t\ttransmuted: false,\n\t\t\t\t\t\t\tdebug: false,\n\t\t\t\t\t\t\tlang: Lang.En,\n\t\t\t\t\t\t\tuserAgent: '',\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\t\taddTask(fetchTask);\n\t\t\t\t\tdispatch({ type: TypeKeys.REQUESTLOGIN });\n\t\t\t\t}\n\t\t\t},\n\t\tlogoff: (\n\t\t\tclearState?: boolean,\n\t\t\tcallback?: () => void,\n\t\t): BaseAppThunkAction => (dispatch, getState) => {\n\t\t\tif (!getState().login.isLoading) {\n\t\t\t\tconst fetchTask = request('logoff', {}).then((data) => {\n\t\t\t\t\tif (data.newSessionGuid) {\n\t\t\t\t\t\tdispatch({ type: TypeKeys.RECEIVELOGOFF, session: data.newSessionGuid });\n\t\t\t\t\t}\n\n\t\t\t\t\tif (callback) callback();\n\n\t\t\t\t\tif (clearState) {\n\t\t\t\t\t\tdispatch({ type: TypeKeys.CLEARSTATE });\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\taddTask(fetchTask);\n\n\t\t\t\tdispatch({ type: TypeKeys.REQUESTLOGOFF });\n\t\t\t}\n\t\t},\n\t\tupdateUser: (data: any, getUser?: (user) => any): BaseAppThunkAction => (dispatch, getState) => {\n\t\t\tconst partialUser = getUser && getUser(getState().login?.user);\n\t\t\tdispatch({ type: TypeKeys.UPDATEUSER, data: { ...partialUser, ...data } });\n\t\t},\n\t\tsetUserAndSession: (user: BaseUser, session: string):\n\t\t\tBaseAppThunkAction => (dispatch, getState) => {\n\t\t\tconst state = getState().login;\n\t\t\tdispatch({\n\t\t\t\ttype: TypeKeys.RECEIVELOGIN,\n\t\t\t\tuser,\n\t\t\t\tsession,\n\t\t\t\tmessage: '',\n\t\t\t\ttransmuted: false,\n\t\t\t\tdebug: state.debug || false,\n\t\t\t\tlang: state.lang,\n\t\t\t\tuserAgent: state.userAgent,\n\t\t\t});\n\t\t},\n\t\tsetLang: (lang: Lang): BaseAppThunkAction => (dispatch, getState) => {\n\t\t\tfetch('changeLanguage', {\n\t\t\t\tmethod: 'POST',\n\t\t\t\tcredentials: 'same-origin',\n\t\t\t\theaders: {\n\t\t\t\t\t'Content-type': 'application/json; charset=utf-8',\n\t\t\t\t},\n\t\t\t\tbody: JSON.stringify({\n\t\t\t\t\tlang,\n\t\t\t\t}),\n\t\t\t})\n\t\t\t\t.then((response) => {\n\t\t\t\t\tdispatch({ type: TypeKeys.SETLANG, lang });\n\t\t\t\t});\n\t\t},\n\t};\n};\n\nexport const getReducer = (): Reducer> => {\n\treturn (s: LoginState | undefined, action: KnownUserAction) => {\n\t\tconst state = s as LoginState;\n\t\tswitch (action.type) {\n\t\t\tcase TypeKeys.REQUESTLOGIN:\n\t\t\t\treturn { ...state, isLoading: true };\n\t\t\tcase TypeKeys.RECEIVELOGIN:\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tisLoading: false,\n\t\t\t\t\tuser: action.user,\n\t\t\t\t\tsession: action.session,\n\t\t\t\t\tmessage: action.message,\n\t\t\t\t\ttransmuted: action.transmuted,\n\t\t\t\t\tdebug: action.debug,\n\t\t\t\t\tlang: action.lang,\n\t\t\t\t\tuserAgent: action.userAgent,\n\t\t\t\t};\n\t\t\tcase TypeKeys.REQUESTLOGOFF:\n\t\t\t\treturn { ...state, isLoading: true };\n\t\t\tcase TypeKeys.RECEIVELOGOFF:\n\t\t\t\treturn {\n\t\t\t\t\t...state, isLoading: false, user: null, session: action.session, transmuted: false,\n\t\t\t\t};\n\t\t\tcase TypeKeys.SETSESSION:\n\t\t\t\treturn { ...state, session: action.session };\n\t\t\tcase TypeKeys.SETLANG:\n\t\t\t\treturn { ...state, lang: action.lang };\n\t\t\tcase TypeKeys.CLEARSTATE:\n\t\t\t\treturn {\n\t\t\t\t\t...state, user: null, isLoading: false, message: '', session: '', transmuted: false,\n\t\t\t\t};\n\t\t\tcase TypeKeys.UPDATEUSER:\n\t\t\t\treturn {\n\t\t\t\t\t...state,\n\t\t\t\t\tuser: {\n\t\t\t\t\t\t...(state.user as any),\n\t\t\t\t\t\t...action.data,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\tdefault:\n\t\t\t\tconst exhaustiveCheck: never = action;\n\t\t}\n\n\t\treturn state || { user: null };\n\t};\n};\n","export enum Lang {\n\tNone,\n\tEn,\n\tRu,\n\tDe,\n\tEs,\n\tFr,\n\tIt\n}\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var toInteger = require('./toInteger');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\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 */\nfunction before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n}\n\nmodule.exports = before;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var before = require('./before');\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 */\nfunction once(func) {\n return before(2, func);\n}\n\nmodule.exports = once;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","'use strict';\n\nvar _warn = require('./utils/warn');\n\nvar _warn2 = _interopRequireDefault(_warn);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// https://developers.google.com/tag-manager/quickstart\n\nvar Snippets = {\n tags: function tags(_ref) {\n var id = _ref.id,\n events = _ref.events,\n dataLayer = _ref.dataLayer,\n dataLayerName = _ref.dataLayerName,\n preview = _ref.preview,\n auth = _ref.auth;\n\n var gtm_auth = '>m_auth=' + auth;\n var gtm_preview = '>m_preview=' + preview;\n\n if (!id) (0, _warn2.default)('GTM Id is required');\n\n var iframe = '\\n ';\n\n var script = '\\n (function(w,d,s,l,i){w[l]=w[l]||[];\\n w[l].push({\\'gtm.start\\': new Date().getTime(),event:\\'gtm.js\\', ' + JSON.stringify(events).slice(1, -1) + '});\\n var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=\\'dataLayer\\'?\\'&l=\\'+l:\\'\\';\\n j.async=true;j.src=\\'https://www.googletagmanager.com/gtm.js?id=\\'+i+dl+\\'' + gtm_auth + gtm_preview + '>m_cookies_win=x\\';\\n f.parentNode.insertBefore(j,f);\\n })(window,document,\\'script\\',\\'' + dataLayerName + '\\',\\'' + id + '\\');';\n\n var dataLayerVar = this.dataLayer(dataLayer, dataLayerName);\n\n return {\n iframe: iframe,\n script: script,\n dataLayerVar: dataLayerVar\n };\n },\n dataLayer: function dataLayer(_dataLayer, dataLayerName) {\n return '\\n window.' + dataLayerName + ' = window.' + dataLayerName + ' || [];\\n window.' + dataLayerName + '.push(' + JSON.stringify(_dataLayer) + ')';\n }\n};\n\nmodule.exports = Snippets;","'use strict';\n\nvar _Snippets = require('./Snippets');\n\nvar _Snippets2 = _interopRequireDefault(_Snippets);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar TagManager = {\n dataScript: function dataScript(dataLayer) {\n var script = document.createElement('script');\n script.innerHTML = dataLayer;\n return script;\n },\n gtm: function gtm(args) {\n var snippets = _Snippets2.default.tags(args);\n\n var noScript = function noScript() {\n var noscript = document.createElement('noscript');\n noscript.innerHTML = snippets.iframe;\n return noscript;\n };\n\n var script = function script() {\n var script = document.createElement('script');\n script.innerHTML = snippets.script;\n return script;\n };\n\n var dataScript = this.dataScript(snippets.dataLayerVar);\n\n return {\n noScript: noScript,\n script: script,\n dataScript: dataScript\n };\n },\n initialize: function initialize(_ref) {\n var gtmId = _ref.gtmId,\n _ref$events = _ref.events,\n events = _ref$events === undefined ? {} : _ref$events,\n dataLayer = _ref.dataLayer,\n _ref$dataLayerName = _ref.dataLayerName,\n dataLayerName = _ref$dataLayerName === undefined ? 'dataLayer' : _ref$dataLayerName,\n _ref$auth = _ref.auth,\n auth = _ref$auth === undefined ? '' : _ref$auth,\n _ref$preview = _ref.preview,\n preview = _ref$preview === undefined ? '' : _ref$preview;\n\n var gtm = this.gtm({\n id: gtmId,\n events: events,\n dataLayer: dataLayer || undefined,\n dataLayerName: dataLayerName,\n auth: auth,\n preview: preview\n });\n if (dataLayer) document.head.appendChild(gtm.dataScript);\n document.head.insertBefore(gtm.script(), document.head.childNodes[0]);\n document.body.insertBefore(gtm.noScript(), document.body.childNodes[0]);\n },\n dataLayer: function dataLayer(_ref2) {\n var _dataLayer = _ref2.dataLayer,\n _ref2$dataLayerName = _ref2.dataLayerName,\n dataLayerName = _ref2$dataLayerName === undefined ? 'dataLayer' : _ref2$dataLayerName;\n\n if (window[dataLayerName]) return window[dataLayerName].push(_dataLayer);\n var snippets = _Snippets2.default.dataLayer(_dataLayer, dataLayerName);\n var dataScript = this.dataScript(snippets);\n document.head.insertBefore(dataScript, document.head.childNodes[0]);\n }\n};\n\nmodule.exports = TagManager;","'use strict';\n\nvar _TagManager = require('./TagManager');\n\nvar _TagManager2 = _interopRequireDefault(_TagManager);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = _TagManager2.default;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar warn = function warn(s) {\n console.warn('[react-gtm]', s);\n};\n\nexports.default = warn;","\"use strict\";function _interopDefault(e){return e&&\"object\"==typeof e&&\"default\"in e?e.default:e}Object.defineProperty(exports,\"__esModule\",{value:!0});var React=_interopDefault(require(\"react\"));function AppContainer(e){return AppContainer.warnAboutHMRDisabled&&(AppContainer.warnAboutHMRDisabled=!0,console.error(\"React-Hot-Loader: misconfiguration detected, using production version in non-production environment.\"),console.error(\"React-Hot-Loader: Hot Module Replacement is not enabled.\")),React.Children.only(e.children)}AppContainer.warnAboutHMRDisabled=!1;var hot=function e(){return e.shouldWrapWithAppContainer?function(e){return function(n){return React.createElement(AppContainer,null,React.createElement(e,n))}}:function(e){return e}};hot.shouldWrapWithAppContainer=!1;var areComponentsEqual=function(e,n){return e===n},setConfig=function(){},cold=function(e){return e},configureComponent=function(){};exports.AppContainer=AppContainer,exports.hot=hot,exports.areComponentsEqual=areComponentsEqual,exports.setConfig=setConfig,exports.cold=cold,exports.configureComponent=configureComponent;\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 */\n\n'use strict';var 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}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.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)};exports.typeOf=z;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t(require(\"react\")):\"function\"==typeof define&&define.amd?define([\"react\"],t):\"object\"==typeof exports?exports.reactTextMask=t(require(\"react\")):e.reactTextMask=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p=\"\",t(0)}([function(e,t,r){\"use strict\";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function i(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function a(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}function u(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.conformToMask=void 0;var s=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.placeholderChar;if(!o(e))throw new Error(\"Text-mask:convertMaskToPlaceholder; The mask property must be an array.\");if(e.indexOf(t)!==-1)throw new Error(\"Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\\n\\n\"+(\"The placeholder character that was received is: \"+JSON.stringify(t)+\"\\n\\n\")+(\"The mask that was received is: \"+JSON.stringify(e)));return e.map(function(e){return e instanceof RegExp?t:e}).join(\"\")}function o(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function i(e){return\"string\"==typeof e||e instanceof String}function a(e){return\"number\"==typeof e&&void 0===e.length&&!isNaN(e)}function u(e){return\"undefined\"==typeof e||null===e}function s(e){for(var t=[],r=void 0;r=e.indexOf(c),r!==-1;)t.push(r),e.splice(r,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.convertMaskToPlaceholder=n,t.isArray=o,t.isString=i,t.isNumber=a,t.isNil=u,t.processCaretTraps=s;var l=r(1),f=[],c=\"[]\"},function(e,t,r){\"use strict\";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,i.isArray)(t)){if((\"undefined\"==typeof t?\"undefined\":o(t))!==a.strFunction)throw new Error(\"Text-mask:conformToMask; The mask property must be an array.\");t=t(e,r),t=(0,i.processCaretTraps)(t).maskWithoutCaretTraps}var n=r.guide,l=void 0===n||n,f=r.previousConformedValue,c=void 0===f?s:f,p=r.placeholderChar,d=void 0===p?a.placeholderChar:p,h=r.placeholder,v=void 0===h?(0,i.convertMaskToPlaceholder)(t,d):h,y=r.currentCaretPosition,m=r.keepCharPositions,b=l===!1&&void 0!==c,g=e.length,k=c.length,C=v.length,O=t.length,T=g-k,P=T>0,x=y+(P?-T:0),w=x+Math.abs(T);if(m===!0&&!P){for(var S=s,_=x;_=x&&t=0;j--){var E=M[j].char;if(E!==d){var R=j>=x&&k===O;E===v[R?j-T:j]&&M.splice(j,1)}}var V=s,N=!1;e:for(var A=0;A0)for(;M.length>0;){var I=M.shift(),F=I.char,q=I.isNew;if(F===d&&b!==!0){V+=d;continue e}if(t[A].test(F)){if(m===!0&&q!==!1&&c!==s&&l!==!1&&P){for(var D=M.length,L=null,W=0;W0,T=0===b,P=C>1&&!O&&!T;if(P)return s;var x=O&&(r===l||l===p),w=0,S=void 0,_=void 0;if(x)w=s-C;else{var M=l.toLowerCase(),j=f.toLowerCase(),E=j.substr(0,s).split(o),R=E.filter(function(e){return M.indexOf(e)!==-1});_=R[R.length-1];var V=a.substr(0,R.length).split(o).filter(function(e){return e!==c}).length,N=p.substr(0,R.length).split(o).filter(function(e){return e!==c}).length,A=N!==V,B=void 0!==a[R.length-1]&&void 0!==p[R.length-2]&&a[R.length-1]!==c&&a[R.length-1]!==p[R.length-1]&&a[R.length-1]===p[R.length-2];!O&&(A||B)&&V>0&&p.indexOf(_)>-1&&void 0!==f[s]&&(S=!0,_=f[s]);for(var I=h.map(function(e){return M[e]}),F=I.filter(function(e){return e===_}).length,q=R.filter(function(e){return e===_}).length,D=p.substr(0,p.indexOf(c)).split(o).filter(function(e,t){return e===_&&f[t]!==e}).length,L=D+q+F+(S?1:0),W=0,J=0;J=L)break}}if(O){for(var H=w,Y=w;Y<=g;Y++)if(p[Y]===c&&(H=Y),p[Y]===c||y.indexOf(Y)!==-1||Y===g)return H}else if(S){for(var z=w-1;z>=0;z--)if(l[z]===_||y.indexOf(z)!==-1||0===z)return z}else for(var G=w;G>=0;G--)if(p[G-1]===c||y.indexOf(G)!==-1||0===G)return G}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=r;var n=[],o=\"\"},function(e,t,r){\"use strict\";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=n.inputElement,l=n.mask,c=n.guide,y=n.pipe,b=n.placeholderChar,g=void 0===b?h.placeholderChar:b,k=n.keepCharPositions,C=void 0!==k&&k,O=n.showMask,T=void 0!==O&&O;if(\"undefined\"==typeof r&&(r=o.value),r!==t.previousConformedValue){(\"undefined\"==typeof l?\"undefined\":s(l))===m&&void 0!==l.pipe&&void 0!==l.mask&&(y=l.pipe,l=l.mask);var P=void 0,x=void 0;if(l instanceof Array&&(P=(0,d.convertMaskToPlaceholder)(l,g)),l!==!1){var w=a(r),S=o.selectionEnd,_=t.previousConformedValue,M=t.previousPlaceholder,j=void 0;if((\"undefined\"==typeof l?\"undefined\":s(l))===h.strFunction){if(x=l(w,{currentCaretPosition:S,previousConformedValue:_,placeholderChar:g}),x===!1)return;var E=(0,d.processCaretTraps)(x),R=E.maskWithoutCaretTraps,V=E.indexes;x=R,j=V,P=(0,d.convertMaskToPlaceholder)(x,g)}else x=l;var N={previousConformedValue:_,guide:c,placeholderChar:g,pipe:y,placeholder:P,currentCaretPosition:S,keepCharPositions:C},A=(0,p.default)(w,x,N),B=A.conformedValue,I=(\"undefined\"==typeof y?\"undefined\":s(y))===h.strFunction,F={};I&&(F=y(B,u({rawValue:w},N)),F===!1?F={value:_,rejected:!0}:(0,d.isString)(F)&&(F={value:F}));var q=I?F.value:B,D=(0,f.default)({previousConformedValue:_,previousPlaceholder:M,conformedValue:q,placeholder:P,rawValue:w,currentCaretPosition:S,placeholderChar:g,indexesOfPipedChars:F.indexesOfPipedChars,caretTrapIndexes:j}),L=q===P&&0===D,W=T?P:v,J=L?W:q;t.previousConformedValue=J,t.previousPlaceholder=P,o.value!==J&&(o.value=J,i(o,D))}}}}}function i(e,t){document.activeElement===e&&(b?g(function(){return e.setSelectionRange(t,t,y)},0):e.setSelectionRange(t,t,y))}function a(e){if((0,d.isString)(e))return e;if((0,d.isNumber)(e))return String(e);if(void 0===e||null===e)return v;throw new Error(\"The 'value' provided to Text Mask needs to be a string or a number. The value received was:\\n\\n \"+JSON.stringify(e))}Object.defineProperty(t,\"__esModule\",{value:!0});var u=Object.assign||function(e){for(var t=1;t