@bigbinary/neeto-commons-frontend 4.13.121 → 4.13.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.ready +1 -1
- package/dist/app-container-k74rOpXb.js +5 -0
- package/dist/app-container-k74rOpXb.js.map +1 -0
- package/dist/cjs/app-container-Ck1J-BjW.js +7 -0
- package/dist/cjs/app-container-Ck1J-BjW.js.map +1 -0
- package/dist/cjs/createClass-B4XY44hG.js +23 -0
- package/dist/cjs/createClass-B4XY44hG.js.map +1 -0
- package/dist/cjs/index-XyG3hfIR.js +475 -0
- package/dist/cjs/index-XyG3hfIR.js.map +1 -0
- package/dist/cjs/initializers/i18n.js +2 -471
- package/dist/cjs/initializers/i18n.js.map +1 -1
- package/dist/cjs/initializers/index.js +1 -0
- package/dist/cjs/initializers/index.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/AppContainer.js +1 -5
- package/dist/cjs/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/cjs/react-utils/AppContainer/index.js +1 -0
- package/dist/cjs/react-utils/AppContainer/index.js.map +1 -1
- package/dist/cjs/react-utils/index.js +2 -0
- package/dist/cjs/react-utils/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/index.js +1 -0
- package/dist/cjs/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js +1 -0
- package/dist/cjs/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/cjs/utils/datetime.js +1 -0
- package/dist/cjs/utils/datetime.js.map +1 -1
- package/dist/cjs/utils/dayjs.js +3 -18
- package/dist/cjs/utils/dayjs.js.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/v2/constants/index.js +179 -0
- package/dist/cjs/v2/constants/index.js.map +1 -0
- package/dist/cjs/v2/constants/regex.js +10 -0
- package/dist/cjs/v2/constants/regex.js.map +1 -0
- package/dist/cjs/v2/initializers/axios.js +22 -0
- package/dist/cjs/v2/initializers/axios.js.map +1 -0
- package/dist/cjs/v2/initializers/axiosInitializer/index.js +298 -0
- package/dist/cjs/v2/initializers/axiosInitializer/index.js.map +1 -0
- package/dist/cjs/v2/initializers/axiosInitializer/paramsSerializer.js +17 -0
- package/dist/cjs/v2/initializers/axiosInitializer/paramsSerializer.js.map +1 -0
- package/dist/cjs/v2/initializers/constants.js +27 -0
- package/dist/cjs/v2/initializers/constants.js.map +1 -0
- package/dist/cjs/v2/initializers/dayjs.js +67 -0
- package/dist/cjs/v2/initializers/dayjs.js.map +1 -0
- package/dist/cjs/v2/initializers/domPatch.js +78 -0
- package/dist/cjs/v2/initializers/domPatch.js.map +1 -0
- package/dist/cjs/v2/initializers/globalProps.js +16 -0
- package/dist/cjs/v2/initializers/globalProps.js.map +1 -0
- package/dist/cjs/v2/initializers/i18n.js +113 -0
- package/dist/cjs/v2/initializers/i18n.js.map +1 -0
- package/dist/cjs/v2/initializers/index.js +110 -0
- package/dist/cjs/v2/initializers/index.js.map +1 -0
- package/dist/cjs/v2/initializers/logger.js +15 -0
- package/dist/cjs/v2/initializers/logger.js.map +1 -0
- package/dist/cjs/v2/initializers/reactDevTools.js +23 -0
- package/dist/cjs/v2/initializers/reactDevTools.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/customFormatters.js +49 -0
- package/dist/cjs/v2/initializers/utils/customFormatters.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/customPostProcessors.js +19 -0
- package/dist/cjs/v2/initializers/utils/customPostProcessors.js.map +1 -0
- package/dist/cjs/v2/initializers/utils/index.js +35 -0
- package/dist/cjs/v2/initializers/utils/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/AppContainer/AppContainer.js +57 -0
- package/dist/cjs/v2/react-utils/AppContainer/AppContainer.js.map +1 -0
- package/dist/cjs/v2/react-utils/AppContainer/index.js +32 -0
- package/dist/cjs/v2/react-utils/AppContainer/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/devices.js +26 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/devices.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/index.js +13 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/pushHelper.js +108 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js +135 -0
- package/dist/cjs/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +103 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +63 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/constants.js +10 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/index.js +20 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/utils.js +19 -0
- package/dist/cjs/v2/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/PageTitle/PageTitle.js +17 -0
- package/dist/cjs/v2/react-utils/PageTitle/PageTitle.js.map +1 -0
- package/dist/cjs/v2/react-utils/PageTitle/index.js +10 -0
- package/dist/cjs/v2/react-utils/PageTitle/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/PrivateRoute.js +53 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/PrivateRoute.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/constants.js +8 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/index.js +17 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/utils.js +16 -0
- package/dist/cjs/v2/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/QueryClientProvider.js +18 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/index.js +16 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/queryClient.js +19 -0
- package/dist/cjs/v2/react-utils/QueryClientProvider/queryClient.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/constants.js +10 -0
- package/dist/cjs/v2/react-utils/constants/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/index.js +12 -0
- package/dist/cjs/v2/react-utils/constants/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/constants/query.js +8 -0
- package/dist/cjs/v2/react-utils/constants/query.js.map +1 -0
- package/dist/cjs/v2/react-utils/index.js +147 -0
- package/dist/cjs/v2/react-utils/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/index.js +10 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/lazyWithRetry.js +15 -0
- package/dist/cjs/v2/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/cjs/v2/react-utils/metaClick/index.js +10 -0
- package/dist/cjs/v2/react-utils/metaClick/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/metaClick/metaClick.js +21 -0
- package/dist/cjs/v2/react-utils/metaClick/metaClick.js.map +1 -0
- package/dist/cjs/v2/react-utils/mount/index.js +14 -0
- package/dist/cjs/v2/react-utils/mount/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/mount/mount.js +85 -0
- package/dist/cjs/v2/react-utils/mount/mount.js.map +1 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/index.js +21 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/utils.js +30 -0
- package/dist/cjs/v2/react-utils/useBreakpoints/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/api.js +22 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/constants.js +8 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/index.js +20 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useColumnConfig.js +51 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useConfigApi.js +32 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/utils.js +29 -0
- package/dist/cjs/v2/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDebounce/index.js +11 -0
- package/dist/cjs/v2/react-utils/useDebounce/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js +25 -0
- package/dist/cjs/v2/react-utils/useDebounce/useDebounce.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/index.js +13 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +23 -0
- package/dist/cjs/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js +13 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/index.js +27 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +39 -0
- package/dist/cjs/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/index.js +9 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/useFieldSubmit.js +30 -0
- package/dist/cjs/v2/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/index.js +9 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/useFuncDebounce.js +24 -0
- package/dist/cjs/v2/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js +12 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +20 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +31 -0
- package/dist/cjs/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/index.js +10 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +33 -0
- package/dist/cjs/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js +37 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js +64 -0
- package/dist/cjs/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/index.js +13 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +42 -0
- package/dist/cjs/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/index.js +9 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/useOnClickOutside.js +29 -0
- package/dist/cjs/v2/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js +23 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js +67 -0
- package/dist/cjs/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/constants.js +6 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js +12 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +46 -0
- package/dist/cjs/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrevious/index.js +9 -0
- package/dist/cjs/v2/react-utils/usePrevious/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/usePrevious/usePrevious.js +14 -0
- package/dist/cjs/v2/react-utils/usePrevious/usePrevious.js.map +1 -0
- package/dist/cjs/v2/react-utils/useQueryParams/index.js +21 -0
- package/dist/cjs/v2/react-utils/useQueryParams/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js +23 -0
- package/dist/cjs/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js +29 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +85 -0
- package/dist/cjs/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/index.js +18 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +70 -0
- package/dist/cjs/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js +11 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js +20 -0
- package/dist/cjs/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -0
- package/dist/cjs/v2/react-utils/useTimer/index.js +10 -0
- package/dist/cjs/v2/react-utils/useTimer/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useTimer/useTimer.js +43 -0
- package/dist/cjs/v2/react-utils/useTimer/useTimer.js.map +1 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/index.js +9 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/useUpdateEffect.js +18 -0
- package/dist/cjs/v2/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/index.js +9 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/withImmutableActions.js +26 -0
- package/dist/cjs/v2/react-utils/withImmutableActions/withImmutableActions.js.map +1 -0
- package/dist/cjs/v2/react-utils/withT/index.js +9 -0
- package/dist/cjs/v2/react-utils/withT/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withT/withT.js +11 -0
- package/dist/cjs/v2/react-utils/withT/withT.js.map +1 -0
- package/dist/cjs/v2/react-utils/withTitle/index.js +12 -0
- package/dist/cjs/v2/react-utils/withTitle/index.js.map +1 -0
- package/dist/cjs/v2/react-utils/withTitle/withTitle.js +25 -0
- package/dist/cjs/v2/react-utils/withTitle/withTitle.js.map +1 -0
- package/dist/cjs/v2/utils/axios.js +14 -0
- package/dist/cjs/v2/utils/axios.js.map +1 -0
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js +39 -0
- package/dist/cjs/v2/utils/buildNestedAttributesPayload.js.map +1 -0
- package/dist/cjs/v2/utils/captureAnalyticsEvent.js +10 -0
- package/dist/cjs/v2/utils/captureAnalyticsEvent.js.map +1 -0
- package/dist/cjs/v2/utils/captureAnalyticsPageView.js +10 -0
- package/dist/cjs/v2/utils/captureAnalyticsPageView.js.map +1 -0
- package/dist/cjs/v2/utils/constants.js +14 -0
- package/dist/cjs/v2/utils/constants.js.map +1 -0
- package/dist/cjs/v2/utils/createSubscription.js +30 -0
- package/dist/cjs/v2/utils/createSubscription.js.map +1 -0
- package/dist/cjs/v2/utils/currencyFormat.js +48 -0
- package/dist/cjs/v2/utils/currencyFormat.js.map +1 -0
- package/dist/cjs/v2/utils/customParseFormatPlugin.js +308 -0
- package/dist/cjs/v2/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/cjs/v2/utils/datetime.js +132 -0
- package/dist/cjs/v2/utils/datetime.js.map +1 -0
- package/dist/cjs/v2/utils/dayjs.js +105 -0
- package/dist/cjs/v2/utils/dayjs.js.map +1 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/default.js +30 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/ja.js +29 -0
- package/dist/cjs/v2/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/cjs/v2/utils/deviceInformation.js +209 -0
- package/dist/cjs/v2/utils/deviceInformation.js.map +1 -0
- package/dist/cjs/v2/utils/general.js +234 -0
- package/dist/cjs/v2/utils/general.js.map +1 -0
- package/dist/cjs/v2/utils/index.js +76 -0
- package/dist/cjs/v2/utils/index.js.map +1 -0
- package/dist/cjs/v2/utils/loadGoogleFonts.js +13 -0
- package/dist/cjs/v2/utils/loadGoogleFonts.js.map +1 -0
- package/dist/cjs/v2/utils/localePlugin.js +521 -0
- package/dist/cjs/v2/utils/localePlugin.js.map +1 -0
- package/dist/cjs/v2/utils/permissions.js +24 -0
- package/dist/cjs/v2/utils/permissions.js.map +1 -0
- package/dist/cjs/v2/utils/retryImport.js +37 -0
- package/dist/cjs/v2/utils/retryImport.js.map +1 -0
- package/dist/cjs/v2/utils/timezonePlugin.js +208 -0
- package/dist/cjs/v2/utils/timezonePlugin.js.map +1 -0
- package/dist/cjs/v2/utils/validators/index.js +11 -0
- package/dist/cjs/v2/utils/validators/index.js.map +1 -0
- package/dist/cjs/v2/utils/validators/slug.js +72 -0
- package/dist/cjs/v2/utils/validators/slug.js.map +1 -0
- package/dist/createClass-C1MbpvOB.js +20 -0
- package/dist/createClass-C1MbpvOB.js.map +1 -0
- package/dist/index-CgFudTTK.js +472 -0
- package/dist/index-CgFudTTK.js.map +1 -0
- package/dist/initializers/i18n.js +1 -470
- package/dist/initializers/i18n.js.map +1 -1
- package/dist/initializers/index.js +1 -0
- package/dist/initializers/index.js.map +1 -1
- package/dist/react-utils/AppContainer/AppContainer.js +1 -5
- package/dist/react-utils/AppContainer/AppContainer.js.map +1 -1
- package/dist/react-utils/AppContainer/index.js +1 -0
- package/dist/react-utils/AppContainer/index.js.map +1 -1
- package/dist/react-utils/index.js +2 -0
- package/dist/react-utils/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/index.js +1 -0
- package/dist/react-utils/useLocalStorage/index.js.map +1 -1
- package/dist/react-utils/useLocalStorage/useLocalStorage.js +1 -0
- package/dist/react-utils/useLocalStorage/useLocalStorage.js.map +1 -1
- package/dist/utils/datetime.js +1 -0
- package/dist/utils/datetime.js.map +1 -1
- package/dist/utils/dayjs.js +2 -17
- package/dist/utils/dayjs.js.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/v2/constants/index.js +166 -0
- package/dist/v2/constants/index.js.map +1 -0
- package/dist/v2/constants/regex.js +6 -0
- package/dist/v2/constants/regex.js.map +1 -0
- package/dist/v2/initializers/axios.js +20 -0
- package/dist/v2/initializers/axios.js.map +1 -0
- package/dist/v2/initializers/axiosInitializer/index.js +296 -0
- package/dist/v2/initializers/axiosInitializer/index.js.map +1 -0
- package/dist/v2/initializers/axiosInitializer/paramsSerializer.js +15 -0
- package/dist/v2/initializers/axiosInitializer/paramsSerializer.js.map +1 -0
- package/dist/v2/initializers/constants.js +19 -0
- package/dist/v2/initializers/constants.js.map +1 -0
- package/dist/v2/initializers/dayjs.js +65 -0
- package/dist/v2/initializers/dayjs.js.map +1 -0
- package/dist/v2/initializers/domPatch.js +76 -0
- package/dist/v2/initializers/domPatch.js.map +1 -0
- package/dist/v2/initializers/globalProps.js +14 -0
- package/dist/v2/initializers/globalProps.js.map +1 -0
- package/dist/v2/initializers/i18n.js +109 -0
- package/dist/v2/initializers/i18n.js.map +1 -0
- package/dist/v2/initializers/index.js +102 -0
- package/dist/v2/initializers/index.js.map +1 -0
- package/dist/v2/initializers/logger.js +13 -0
- package/dist/v2/initializers/logger.js.map +1 -0
- package/dist/v2/initializers/reactDevTools.js +21 -0
- package/dist/v2/initializers/reactDevTools.js.map +1 -0
- package/dist/v2/initializers/utils/customFormatters.js +46 -0
- package/dist/v2/initializers/utils/customFormatters.js.map +1 -0
- package/dist/v2/initializers/utils/customPostProcessors.js +17 -0
- package/dist/v2/initializers/utils/customPostProcessors.js.map +1 -0
- package/dist/v2/initializers/utils/index.js +33 -0
- package/dist/v2/initializers/utils/index.js.map +1 -0
- package/dist/v2/react-utils/AppContainer/AppContainer.js +55 -0
- package/dist/v2/react-utils/AppContainer/AppContainer.js.map +1 -0
- package/dist/v2/react-utils/AppContainer/index.js +26 -0
- package/dist/v2/react-utils/AppContainer/index.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/devices.js +24 -0
- package/dist/v2/react-utils/BrowserPushNotifications/devices.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/index.js +6 -0
- package/dist/v2/react-utils/BrowserPushNotifications/index.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/pushHelper.js +105 -0
- package/dist/v2/react-utils/BrowserPushNotifications/pushHelper.js.map +1 -0
- package/dist/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js +132 -0
- package/dist/v2/react-utils/BrowserPushNotifications/registerServiceWorker.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js +101 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/FallbackComponent.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js +61 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/HoneybadgerErrorBoundary.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/constants.js +6 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/constants.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/index.js +14 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/index.js.map +1 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/utils.js +15 -0
- package/dist/v2/react-utils/HoneybadgerErrorBoundary/utils.js.map +1 -0
- package/dist/v2/react-utils/PageTitle/PageTitle.js +15 -0
- package/dist/v2/react-utils/PageTitle/PageTitle.js.map +1 -0
- package/dist/v2/react-utils/PageTitle/index.js +4 -0
- package/dist/v2/react-utils/PageTitle/index.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/PrivateRoute.js +51 -0
- package/dist/v2/react-utils/PrivateRoute/PrivateRoute.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/constants.js +5 -0
- package/dist/v2/react-utils/PrivateRoute/constants.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/index.js +11 -0
- package/dist/v2/react-utils/PrivateRoute/index.js.map +1 -0
- package/dist/v2/react-utils/PrivateRoute/utils.js +14 -0
- package/dist/v2/react-utils/PrivateRoute/utils.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/QueryClientProvider.js +16 -0
- package/dist/v2/react-utils/QueryClientProvider/QueryClientProvider.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/index.js +7 -0
- package/dist/v2/react-utils/QueryClientProvider/index.js.map +1 -0
- package/dist/v2/react-utils/QueryClientProvider/queryClient.js +17 -0
- package/dist/v2/react-utils/QueryClientProvider/queryClient.js.map +1 -0
- package/dist/v2/react-utils/constants/constants.js +6 -0
- package/dist/v2/react-utils/constants/constants.js.map +1 -0
- package/dist/v2/react-utils/constants/index.js +3 -0
- package/dist/v2/react-utils/constants/index.js.map +1 -0
- package/dist/v2/react-utils/constants/query.js +6 -0
- package/dist/v2/react-utils/constants/query.js.map +1 -0
- package/dist/v2/react-utils/index.js +100 -0
- package/dist/v2/react-utils/index.js.map +1 -0
- package/dist/v2/react-utils/lazyWithRetry/index.js +4 -0
- package/dist/v2/react-utils/lazyWithRetry/index.js.map +1 -0
- package/dist/v2/react-utils/lazyWithRetry/lazyWithRetry.js +13 -0
- package/dist/v2/react-utils/lazyWithRetry/lazyWithRetry.js.map +1 -0
- package/dist/v2/react-utils/metaClick/index.js +3 -0
- package/dist/v2/react-utils/metaClick/index.js.map +1 -0
- package/dist/v2/react-utils/metaClick/metaClick.js +18 -0
- package/dist/v2/react-utils/metaClick/metaClick.js.map +1 -0
- package/dist/v2/react-utils/mount/index.js +8 -0
- package/dist/v2/react-utils/mount/index.js.map +1 -0
- package/dist/v2/react-utils/mount/mount.js +83 -0
- package/dist/v2/react-utils/mount/mount.js.map +1 -0
- package/dist/v2/react-utils/useBreakpoints/index.js +19 -0
- package/dist/v2/react-utils/useBreakpoints/index.js.map +1 -0
- package/dist/v2/react-utils/useBreakpoints/utils.js +27 -0
- package/dist/v2/react-utils/useBreakpoints/utils.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/api.js +20 -0
- package/dist/v2/react-utils/useColumnConfig/api.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/constants.js +5 -0
- package/dist/v2/react-utils/useColumnConfig/constants.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/index.js +14 -0
- package/dist/v2/react-utils/useColumnConfig/index.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/useColumnConfig.js +49 -0
- package/dist/v2/react-utils/useColumnConfig/useColumnConfig.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/useConfigApi.js +29 -0
- package/dist/v2/react-utils/useColumnConfig/useConfigApi.js.map +1 -0
- package/dist/v2/react-utils/useColumnConfig/utils.js +26 -0
- package/dist/v2/react-utils/useColumnConfig/utils.js.map +1 -0
- package/dist/v2/react-utils/useDebounce/index.js +5 -0
- package/dist/v2/react-utils/useDebounce/index.js.map +1 -0
- package/dist/v2/react-utils/useDebounce/useDebounce.js +23 -0
- package/dist/v2/react-utils/useDebounce/useDebounce.js.map +1 -0
- package/dist/v2/react-utils/useDisplayErrorPage/index.js +4 -0
- package/dist/v2/react-utils/useDisplayErrorPage/index.js.map +1 -0
- package/dist/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js +18 -0
- package/dist/v2/react-utils/useDisplayErrorPage/useDisplayErrorPage.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js +11 -0
- package/dist/v2/react-utils/useFetchNeetoApps/apis/neeto_apps.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/index.js +21 -0
- package/dist/v2/react-utils/useFetchNeetoApps/index.js.map +1 -0
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js +37 -0
- package/dist/v2/react-utils/useFetchNeetoApps/useFetchNeetoApps.js.map +1 -0
- package/dist/v2/react-utils/useFieldSubmit/index.js +3 -0
- package/dist/v2/react-utils/useFieldSubmit/index.js.map +1 -0
- package/dist/v2/react-utils/useFieldSubmit/useFieldSubmit.js +28 -0
- package/dist/v2/react-utils/useFieldSubmit/useFieldSubmit.js.map +1 -0
- package/dist/v2/react-utils/useFuncDebounce/index.js +3 -0
- package/dist/v2/react-utils/useFuncDebounce/index.js.map +1 -0
- package/dist/v2/react-utils/useFuncDebounce/useFuncDebounce.js +22 -0
- package/dist/v2/react-utils/useFuncDebounce/useFuncDebounce.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js +6 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/index.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js +18 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useForceUpdate.js.map +1 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js +29 -0
- package/dist/v2/react-utils/useIsElementVisibleInDom/useIsElementVisibleInDom.js.map +1 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/index.js +4 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/index.js.map +1 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/v2/react-utils/useKeyboardShortcutsPaneState/useKeyboardShortcutsPaneState.js.map +1 -0
- package/dist/v2/react-utils/useLocalStorage/index.js +31 -0
- package/dist/v2/react-utils/useLocalStorage/index.js.map +1 -0
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js +62 -0
- package/dist/v2/react-utils/useLocalStorage/useLocalStorage.js.map +1 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/index.js +7 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/index.js.map +1 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js +40 -0
- package/dist/v2/react-utils/useMutationWithInvalidation/useMutationWithInvalidation.js.map +1 -0
- package/dist/v2/react-utils/useOnClickOutside/index.js +3 -0
- package/dist/v2/react-utils/useOnClickOutside/index.js.map +1 -0
- package/dist/v2/react-utils/useOnClickOutside/useOnClickOutside.js +27 -0
- package/dist/v2/react-utils/useOnClickOutside/useOnClickOutside.js.map +1 -0
- package/dist/v2/react-utils/usePersistedQuery/index.js +17 -0
- package/dist/v2/react-utils/usePersistedQuery/index.js.map +1 -0
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js +65 -0
- package/dist/v2/react-utils/usePersistedQuery/usePersistedQuery.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/constants.js +4 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/constants.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js +6 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/index.js.map +1 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js +44 -0
- package/dist/v2/react-utils/usePrefersReducedMotion/usePrefersReducedMotion.js.map +1 -0
- package/dist/v2/react-utils/usePrevious/index.js +3 -0
- package/dist/v2/react-utils/usePrevious/index.js.map +1 -0
- package/dist/v2/react-utils/usePrevious/usePrevious.js +12 -0
- package/dist/v2/react-utils/usePrevious/usePrevious.js.map +1 -0
- package/dist/v2/react-utils/useQueryParams/index.js +15 -0
- package/dist/v2/react-utils/useQueryParams/index.js.map +1 -0
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js +21 -0
- package/dist/v2/react-utils/useQueryParams/useQueryParams.js.map +1 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js +19 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/index.js.map +1 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +79 -0
- package/dist/v2/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/index.js +7 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/index.js.map +1 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js +63 -0
- package/dist/v2/react-utils/useRestoreScrollPosition/useRestoreScrollPosition.js.map +1 -0
- package/dist/v2/react-utils/useStateWithDependency/index.js +5 -0
- package/dist/v2/react-utils/useStateWithDependency/index.js.map +1 -0
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js +18 -0
- package/dist/v2/react-utils/useStateWithDependency/useStateWithDependency.js.map +1 -0
- package/dist/v2/react-utils/useTimer/index.js +4 -0
- package/dist/v2/react-utils/useTimer/index.js.map +1 -0
- package/dist/v2/react-utils/useTimer/useTimer.js +41 -0
- package/dist/v2/react-utils/useTimer/useTimer.js.map +1 -0
- package/dist/v2/react-utils/useUpdateEffect/index.js +3 -0
- package/dist/v2/react-utils/useUpdateEffect/index.js.map +1 -0
- package/dist/v2/react-utils/useUpdateEffect/useUpdateEffect.js +16 -0
- package/dist/v2/react-utils/useUpdateEffect/useUpdateEffect.js.map +1 -0
- package/dist/v2/react-utils/withImmutableActions/index.js +3 -0
- package/dist/v2/react-utils/withImmutableActions/index.js.map +1 -0
- package/dist/v2/react-utils/withImmutableActions/withImmutableActions.js +24 -0
- package/dist/v2/react-utils/withImmutableActions/withImmutableActions.js.map +1 -0
- package/dist/v2/react-utils/withT/index.js +3 -0
- package/dist/v2/react-utils/withT/index.js.map +1 -0
- package/dist/v2/react-utils/withT/withT.js +9 -0
- package/dist/v2/react-utils/withT/withT.js.map +1 -0
- package/dist/v2/react-utils/withTitle/index.js +6 -0
- package/dist/v2/react-utils/withTitle/index.js.map +1 -0
- package/dist/v2/react-utils/withTitle/withTitle.js +23 -0
- package/dist/v2/react-utils/withTitle/withTitle.js.map +1 -0
- package/dist/v2/utils/axios.js +12 -0
- package/dist/v2/utils/axios.js.map +1 -0
- package/dist/v2/utils/buildNestedAttributesPayload.js +37 -0
- package/dist/v2/utils/buildNestedAttributesPayload.js.map +1 -0
- package/dist/v2/utils/captureAnalyticsEvent.js +8 -0
- package/dist/v2/utils/captureAnalyticsEvent.js.map +1 -0
- package/dist/v2/utils/captureAnalyticsPageView.js +8 -0
- package/dist/v2/utils/captureAnalyticsPageView.js.map +1 -0
- package/dist/v2/utils/constants.js +9 -0
- package/dist/v2/utils/constants.js.map +1 -0
- package/dist/v2/utils/createSubscription.js +28 -0
- package/dist/v2/utils/createSubscription.js.map +1 -0
- package/dist/v2/utils/currencyFormat.js +46 -0
- package/dist/v2/utils/currencyFormat.js.map +1 -0
- package/dist/v2/utils/customParseFormatPlugin.js +306 -0
- package/dist/v2/utils/customParseFormatPlugin.js.map +1 -0
- package/dist/v2/utils/datetime.js +127 -0
- package/dist/v2/utils/datetime.js.map +1 -0
- package/dist/v2/utils/dayjs.js +103 -0
- package/dist/v2/utils/dayjs.js.map +1 -0
- package/dist/v2/utils/dayjsFormatOverrides/default.js +28 -0
- package/dist/v2/utils/dayjsFormatOverrides/default.js.map +1 -0
- package/dist/v2/utils/dayjsFormatOverrides/ja.js +27 -0
- package/dist/v2/utils/dayjsFormatOverrides/ja.js.map +1 -0
- package/dist/v2/utils/deviceInformation.js +207 -0
- package/dist/v2/utils/deviceInformation.js.map +1 -0
- package/dist/v2/utils/general.js +218 -0
- package/dist/v2/utils/general.js.map +1 -0
- package/dist/v2/utils/index.js +39 -0
- package/dist/v2/utils/index.js.map +1 -0
- package/dist/v2/utils/loadGoogleFonts.js +11 -0
- package/dist/v2/utils/loadGoogleFonts.js.map +1 -0
- package/dist/v2/utils/localePlugin.js +515 -0
- package/dist/v2/utils/localePlugin.js.map +1 -0
- package/dist/v2/utils/permissions.js +20 -0
- package/dist/v2/utils/permissions.js.map +1 -0
- package/dist/v2/utils/retryImport.js +35 -0
- package/dist/v2/utils/retryImport.js.map +1 -0
- package/dist/v2/utils/timezonePlugin.js +206 -0
- package/dist/v2/utils/timezonePlugin.js.map +1 -0
- package/dist/v2/utils/validators/index.js +5 -0
- package/dist/v2/utils/validators/index.js.map +1 -0
- package/dist/v2/utils/validators/slug.js +51 -0
- package/dist/v2/utils/validators/slug.js.map +1 -0
- package/package.json +33 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from '../toConsumableArray-B7CFjjkW.js';
|
|
2
2
|
import { _ as _asyncToGenerator } from '../asyncToGenerator-CPKhuIh2.js';
|
|
3
3
|
import i18next from 'i18next';
|
|
4
|
+
import { B as Browser, r as resourcesToBackend } from '../index-CgFudTTK.js';
|
|
4
5
|
import { mergeDeepLeft } from 'ramda';
|
|
5
6
|
import { initReactI18next } from 'react-i18next';
|
|
6
7
|
import _retryImport from '../utils/retryImport.js';
|
|
@@ -13,476 +14,6 @@ import '../typeof-D-UKOauR.js';
|
|
|
13
14
|
import '../slicedToArray-DmsZvA_9.js';
|
|
14
15
|
import 'dompurify';
|
|
15
16
|
|
|
16
|
-
const {
|
|
17
|
-
slice,
|
|
18
|
-
forEach
|
|
19
|
-
} = [];
|
|
20
|
-
function defaults(obj) {
|
|
21
|
-
forEach.call(slice.call(arguments, 1), source => {
|
|
22
|
-
if (source) {
|
|
23
|
-
for (const prop in source) {
|
|
24
|
-
if (obj[prop] === undefined) obj[prop] = source[prop];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return obj;
|
|
29
|
-
}
|
|
30
|
-
function hasXSS(input) {
|
|
31
|
-
if (typeof input !== 'string') return false;
|
|
32
|
-
|
|
33
|
-
// Common XSS attack patterns
|
|
34
|
-
const xssPatterns = [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i];
|
|
35
|
-
return xssPatterns.some(pattern => pattern.test(input));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// eslint-disable-next-line no-control-regex
|
|
39
|
-
const fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
40
|
-
const serializeCookie = function (name, val) {
|
|
41
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
42
|
-
path: '/'
|
|
43
|
-
};
|
|
44
|
-
const opt = options;
|
|
45
|
-
const value = encodeURIComponent(val);
|
|
46
|
-
let str = `${name}=${value}`;
|
|
47
|
-
if (opt.maxAge > 0) {
|
|
48
|
-
const maxAge = opt.maxAge - 0;
|
|
49
|
-
if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
50
|
-
str += `; Max-Age=${Math.floor(maxAge)}`;
|
|
51
|
-
}
|
|
52
|
-
if (opt.domain) {
|
|
53
|
-
if (!fieldContentRegExp.test(opt.domain)) {
|
|
54
|
-
throw new TypeError('option domain is invalid');
|
|
55
|
-
}
|
|
56
|
-
str += `; Domain=${opt.domain}`;
|
|
57
|
-
}
|
|
58
|
-
if (opt.path) {
|
|
59
|
-
if (!fieldContentRegExp.test(opt.path)) {
|
|
60
|
-
throw new TypeError('option path is invalid');
|
|
61
|
-
}
|
|
62
|
-
str += `; Path=${opt.path}`;
|
|
63
|
-
}
|
|
64
|
-
if (opt.expires) {
|
|
65
|
-
if (typeof opt.expires.toUTCString !== 'function') {
|
|
66
|
-
throw new TypeError('option expires is invalid');
|
|
67
|
-
}
|
|
68
|
-
str += `; Expires=${opt.expires.toUTCString()}`;
|
|
69
|
-
}
|
|
70
|
-
if (opt.httpOnly) str += '; HttpOnly';
|
|
71
|
-
if (opt.secure) str += '; Secure';
|
|
72
|
-
if (opt.sameSite) {
|
|
73
|
-
const sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
74
|
-
switch (sameSite) {
|
|
75
|
-
case true:
|
|
76
|
-
str += '; SameSite=Strict';
|
|
77
|
-
break;
|
|
78
|
-
case 'lax':
|
|
79
|
-
str += '; SameSite=Lax';
|
|
80
|
-
break;
|
|
81
|
-
case 'strict':
|
|
82
|
-
str += '; SameSite=Strict';
|
|
83
|
-
break;
|
|
84
|
-
case 'none':
|
|
85
|
-
str += '; SameSite=None';
|
|
86
|
-
break;
|
|
87
|
-
default:
|
|
88
|
-
throw new TypeError('option sameSite is invalid');
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (opt.partitioned) str += '; Partitioned';
|
|
92
|
-
return str;
|
|
93
|
-
};
|
|
94
|
-
const cookie = {
|
|
95
|
-
create(name, value, minutes, domain) {
|
|
96
|
-
let cookieOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
|
|
97
|
-
path: '/',
|
|
98
|
-
sameSite: 'strict'
|
|
99
|
-
};
|
|
100
|
-
if (minutes) {
|
|
101
|
-
cookieOptions.expires = new Date();
|
|
102
|
-
cookieOptions.expires.setTime(cookieOptions.expires.getTime() + minutes * 60 * 1000);
|
|
103
|
-
}
|
|
104
|
-
if (domain) cookieOptions.domain = domain;
|
|
105
|
-
document.cookie = serializeCookie(name, value, cookieOptions);
|
|
106
|
-
},
|
|
107
|
-
read(name) {
|
|
108
|
-
const nameEQ = `${name}=`;
|
|
109
|
-
const ca = document.cookie.split(';');
|
|
110
|
-
for (let i = 0; i < ca.length; i++) {
|
|
111
|
-
let c = ca[i];
|
|
112
|
-
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
113
|
-
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
114
|
-
}
|
|
115
|
-
return null;
|
|
116
|
-
},
|
|
117
|
-
remove(name, domain) {
|
|
118
|
-
this.create(name, '', -1, domain);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
var cookie$1 = {
|
|
122
|
-
name: 'cookie',
|
|
123
|
-
// Deconstruct the options object and extract the lookupCookie property
|
|
124
|
-
lookup(_ref) {
|
|
125
|
-
let {
|
|
126
|
-
lookupCookie
|
|
127
|
-
} = _ref;
|
|
128
|
-
if (lookupCookie && typeof document !== 'undefined') {
|
|
129
|
-
return cookie.read(lookupCookie) || undefined;
|
|
130
|
-
}
|
|
131
|
-
return undefined;
|
|
132
|
-
},
|
|
133
|
-
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
134
|
-
cacheUserLanguage(lng, _ref2) {
|
|
135
|
-
let {
|
|
136
|
-
lookupCookie,
|
|
137
|
-
cookieMinutes,
|
|
138
|
-
cookieDomain,
|
|
139
|
-
cookieOptions
|
|
140
|
-
} = _ref2;
|
|
141
|
-
if (lookupCookie && typeof document !== 'undefined') {
|
|
142
|
-
cookie.create(lookupCookie, lng, cookieMinutes, cookieDomain, cookieOptions);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
var querystring = {
|
|
148
|
-
name: 'querystring',
|
|
149
|
-
// Deconstruct the options object and extract the lookupQuerystring property
|
|
150
|
-
lookup(_ref) {
|
|
151
|
-
let {
|
|
152
|
-
lookupQuerystring
|
|
153
|
-
} = _ref;
|
|
154
|
-
let found;
|
|
155
|
-
if (typeof window !== 'undefined') {
|
|
156
|
-
let {
|
|
157
|
-
search
|
|
158
|
-
} = window.location;
|
|
159
|
-
if (!window.location.search && window.location.hash?.indexOf('?') > -1) {
|
|
160
|
-
search = window.location.hash.substring(window.location.hash.indexOf('?'));
|
|
161
|
-
}
|
|
162
|
-
const query = search.substring(1);
|
|
163
|
-
const params = query.split('&');
|
|
164
|
-
for (let i = 0; i < params.length; i++) {
|
|
165
|
-
const pos = params[i].indexOf('=');
|
|
166
|
-
if (pos > 0) {
|
|
167
|
-
const key = params[i].substring(0, pos);
|
|
168
|
-
if (key === lookupQuerystring) {
|
|
169
|
-
found = params[i].substring(pos + 1);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return found;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
var hash = {
|
|
179
|
-
name: 'hash',
|
|
180
|
-
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
181
|
-
lookup(_ref) {
|
|
182
|
-
let {
|
|
183
|
-
lookupHash,
|
|
184
|
-
lookupFromHashIndex
|
|
185
|
-
} = _ref;
|
|
186
|
-
let found;
|
|
187
|
-
if (typeof window !== 'undefined') {
|
|
188
|
-
const {
|
|
189
|
-
hash
|
|
190
|
-
} = window.location;
|
|
191
|
-
if (hash && hash.length > 2) {
|
|
192
|
-
const query = hash.substring(1);
|
|
193
|
-
if (lookupHash) {
|
|
194
|
-
const params = query.split('&');
|
|
195
|
-
for (let i = 0; i < params.length; i++) {
|
|
196
|
-
const pos = params[i].indexOf('=');
|
|
197
|
-
if (pos > 0) {
|
|
198
|
-
const key = params[i].substring(0, pos);
|
|
199
|
-
if (key === lookupHash) {
|
|
200
|
-
found = params[i].substring(pos + 1);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (found) return found;
|
|
206
|
-
if (!found && lookupFromHashIndex > -1) {
|
|
207
|
-
const language = hash.match(/\/([a-zA-Z-]*)/g);
|
|
208
|
-
if (!Array.isArray(language)) return undefined;
|
|
209
|
-
const index = typeof lookupFromHashIndex === 'number' ? lookupFromHashIndex : 0;
|
|
210
|
-
return language[index]?.replace('/', '');
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return found;
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
let hasLocalStorageSupport = null;
|
|
219
|
-
const localStorageAvailable = () => {
|
|
220
|
-
if (hasLocalStorageSupport !== null) return hasLocalStorageSupport;
|
|
221
|
-
try {
|
|
222
|
-
hasLocalStorageSupport = typeof window !== 'undefined' && window.localStorage !== null;
|
|
223
|
-
if (!hasLocalStorageSupport) {
|
|
224
|
-
return false;
|
|
225
|
-
}
|
|
226
|
-
const testKey = 'i18next.translate.boo';
|
|
227
|
-
window.localStorage.setItem(testKey, 'foo');
|
|
228
|
-
window.localStorage.removeItem(testKey);
|
|
229
|
-
} catch (e) {
|
|
230
|
-
hasLocalStorageSupport = false;
|
|
231
|
-
}
|
|
232
|
-
return hasLocalStorageSupport;
|
|
233
|
-
};
|
|
234
|
-
var localStorage = {
|
|
235
|
-
name: 'localStorage',
|
|
236
|
-
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
237
|
-
lookup(_ref) {
|
|
238
|
-
let {
|
|
239
|
-
lookupLocalStorage
|
|
240
|
-
} = _ref;
|
|
241
|
-
if (lookupLocalStorage && localStorageAvailable()) {
|
|
242
|
-
return window.localStorage.getItem(lookupLocalStorage) || undefined; // Undefined ensures type consistency with the previous version of this function
|
|
243
|
-
}
|
|
244
|
-
return undefined;
|
|
245
|
-
},
|
|
246
|
-
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
247
|
-
cacheUserLanguage(lng, _ref2) {
|
|
248
|
-
let {
|
|
249
|
-
lookupLocalStorage
|
|
250
|
-
} = _ref2;
|
|
251
|
-
if (lookupLocalStorage && localStorageAvailable()) {
|
|
252
|
-
window.localStorage.setItem(lookupLocalStorage, lng);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
let hasSessionStorageSupport = null;
|
|
258
|
-
const sessionStorageAvailable = () => {
|
|
259
|
-
if (hasSessionStorageSupport !== null) return hasSessionStorageSupport;
|
|
260
|
-
try {
|
|
261
|
-
hasSessionStorageSupport = typeof window !== 'undefined' && window.sessionStorage !== null;
|
|
262
|
-
if (!hasSessionStorageSupport) {
|
|
263
|
-
return false;
|
|
264
|
-
}
|
|
265
|
-
const testKey = 'i18next.translate.boo';
|
|
266
|
-
window.sessionStorage.setItem(testKey, 'foo');
|
|
267
|
-
window.sessionStorage.removeItem(testKey);
|
|
268
|
-
} catch (e) {
|
|
269
|
-
hasSessionStorageSupport = false;
|
|
270
|
-
}
|
|
271
|
-
return hasSessionStorageSupport;
|
|
272
|
-
};
|
|
273
|
-
var sessionStorage = {
|
|
274
|
-
name: 'sessionStorage',
|
|
275
|
-
lookup(_ref) {
|
|
276
|
-
let {
|
|
277
|
-
lookupSessionStorage
|
|
278
|
-
} = _ref;
|
|
279
|
-
if (lookupSessionStorage && sessionStorageAvailable()) {
|
|
280
|
-
return window.sessionStorage.getItem(lookupSessionStorage) || undefined;
|
|
281
|
-
}
|
|
282
|
-
return undefined;
|
|
283
|
-
},
|
|
284
|
-
cacheUserLanguage(lng, _ref2) {
|
|
285
|
-
let {
|
|
286
|
-
lookupSessionStorage
|
|
287
|
-
} = _ref2;
|
|
288
|
-
if (lookupSessionStorage && sessionStorageAvailable()) {
|
|
289
|
-
window.sessionStorage.setItem(lookupSessionStorage, lng);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
var navigator$1 = {
|
|
295
|
-
name: 'navigator',
|
|
296
|
-
lookup(options) {
|
|
297
|
-
const found = [];
|
|
298
|
-
if (typeof navigator !== 'undefined') {
|
|
299
|
-
const {
|
|
300
|
-
languages,
|
|
301
|
-
userLanguage,
|
|
302
|
-
language
|
|
303
|
-
} = navigator;
|
|
304
|
-
if (languages) {
|
|
305
|
-
// chrome only; not an array, so can't use .push.apply instead of iterating
|
|
306
|
-
for (let i = 0; i < languages.length; i++) {
|
|
307
|
-
found.push(languages[i]);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
if (userLanguage) {
|
|
311
|
-
found.push(userLanguage);
|
|
312
|
-
}
|
|
313
|
-
if (language) {
|
|
314
|
-
found.push(language);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return found.length > 0 ? found : undefined;
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
var htmlTag = {
|
|
322
|
-
name: 'htmlTag',
|
|
323
|
-
// Deconstruct the options object and extract the htmlTag property
|
|
324
|
-
lookup(_ref) {
|
|
325
|
-
let {
|
|
326
|
-
htmlTag
|
|
327
|
-
} = _ref;
|
|
328
|
-
let found;
|
|
329
|
-
const internalHtmlTag = htmlTag || (typeof document !== 'undefined' ? document.documentElement : null);
|
|
330
|
-
if (internalHtmlTag && typeof internalHtmlTag.getAttribute === 'function') {
|
|
331
|
-
found = internalHtmlTag.getAttribute('lang');
|
|
332
|
-
}
|
|
333
|
-
return found;
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
var path = {
|
|
338
|
-
name: 'path',
|
|
339
|
-
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
340
|
-
lookup(_ref) {
|
|
341
|
-
let {
|
|
342
|
-
lookupFromPathIndex
|
|
343
|
-
} = _ref;
|
|
344
|
-
if (typeof window === 'undefined') return undefined;
|
|
345
|
-
const language = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
346
|
-
if (!Array.isArray(language)) return undefined;
|
|
347
|
-
const index = typeof lookupFromPathIndex === 'number' ? lookupFromPathIndex : 0;
|
|
348
|
-
return language[index]?.replace('/', '');
|
|
349
|
-
}
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
var subdomain = {
|
|
353
|
-
name: 'subdomain',
|
|
354
|
-
lookup(_ref) {
|
|
355
|
-
let {
|
|
356
|
-
lookupFromSubdomainIndex
|
|
357
|
-
} = _ref;
|
|
358
|
-
// If given get the subdomain index else 1
|
|
359
|
-
const internalLookupFromSubdomainIndex = typeof lookupFromSubdomainIndex === 'number' ? lookupFromSubdomainIndex + 1 : 1;
|
|
360
|
-
// get all matches if window.location. is existing
|
|
361
|
-
// first item of match is the match itself and the second is the first group match which should be the first subdomain match
|
|
362
|
-
// is the hostname no public domain get the or option of localhost
|
|
363
|
-
const language = typeof window !== 'undefined' && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
364
|
-
|
|
365
|
-
// if there is no match (null) return undefined
|
|
366
|
-
if (!language) return undefined;
|
|
367
|
-
// return the given group match
|
|
368
|
-
return language[internalLookupFromSubdomainIndex];
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
// some environments, throws when accessing document.cookie
|
|
373
|
-
let canCookies = false;
|
|
374
|
-
try {
|
|
375
|
-
// eslint-disable-next-line no-unused-expressions
|
|
376
|
-
document.cookie;
|
|
377
|
-
canCookies = true;
|
|
378
|
-
// eslint-disable-next-line no-empty
|
|
379
|
-
} catch (e) {}
|
|
380
|
-
const order = ['querystring', 'cookie', 'localStorage', 'sessionStorage', 'navigator', 'htmlTag'];
|
|
381
|
-
if (!canCookies) order.splice(1, 1);
|
|
382
|
-
const getDefaults = () => ({
|
|
383
|
-
order,
|
|
384
|
-
lookupQuerystring: 'lng',
|
|
385
|
-
lookupCookie: 'i18next',
|
|
386
|
-
lookupLocalStorage: 'i18nextLng',
|
|
387
|
-
lookupSessionStorage: 'i18nextLng',
|
|
388
|
-
// cache user language
|
|
389
|
-
caches: ['localStorage'],
|
|
390
|
-
excludeCacheFor: ['cimode'],
|
|
391
|
-
// cookieMinutes: 10,
|
|
392
|
-
// cookieDomain: 'myDomain'
|
|
393
|
-
|
|
394
|
-
convertDetectedLanguage: l => l
|
|
395
|
-
});
|
|
396
|
-
class Browser {
|
|
397
|
-
constructor(services) {
|
|
398
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
399
|
-
this.type = 'languageDetector';
|
|
400
|
-
this.detectors = {};
|
|
401
|
-
this.init(services, options);
|
|
402
|
-
}
|
|
403
|
-
init() {
|
|
404
|
-
let services = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
405
|
-
languageUtils: {}
|
|
406
|
-
};
|
|
407
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
408
|
-
let i18nOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
409
|
-
this.services = services;
|
|
410
|
-
this.options = defaults(options, this.options || {}, getDefaults());
|
|
411
|
-
if (typeof this.options.convertDetectedLanguage === 'string' && this.options.convertDetectedLanguage.indexOf('15897') > -1) {
|
|
412
|
-
this.options.convertDetectedLanguage = l => l.replace('-', '_');
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
// backwards compatibility
|
|
416
|
-
if (this.options.lookupFromUrlIndex) this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex;
|
|
417
|
-
this.i18nOptions = i18nOptions;
|
|
418
|
-
this.addDetector(cookie$1);
|
|
419
|
-
this.addDetector(querystring);
|
|
420
|
-
this.addDetector(localStorage);
|
|
421
|
-
this.addDetector(sessionStorage);
|
|
422
|
-
this.addDetector(navigator$1);
|
|
423
|
-
this.addDetector(htmlTag);
|
|
424
|
-
this.addDetector(path);
|
|
425
|
-
this.addDetector(subdomain);
|
|
426
|
-
this.addDetector(hash);
|
|
427
|
-
}
|
|
428
|
-
addDetector(detector) {
|
|
429
|
-
this.detectors[detector.name] = detector;
|
|
430
|
-
return this;
|
|
431
|
-
}
|
|
432
|
-
detect() {
|
|
433
|
-
let detectionOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.options.order;
|
|
434
|
-
let detected = [];
|
|
435
|
-
detectionOrder.forEach(detectorName => {
|
|
436
|
-
if (this.detectors[detectorName]) {
|
|
437
|
-
let lookup = this.detectors[detectorName].lookup(this.options);
|
|
438
|
-
if (lookup && typeof lookup === 'string') lookup = [lookup];
|
|
439
|
-
if (lookup) detected = detected.concat(lookup);
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
detected = detected.filter(d => d !== undefined && d !== null && !hasXSS(d)).map(d => this.options.convertDetectedLanguage(d));
|
|
443
|
-
if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0
|
|
444
|
-
return detected.length > 0 ? detected[0] : null; // a little backward compatibility
|
|
445
|
-
}
|
|
446
|
-
cacheUserLanguage(lng) {
|
|
447
|
-
let caches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.caches;
|
|
448
|
-
if (!caches) return;
|
|
449
|
-
if (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(lng) > -1) return;
|
|
450
|
-
caches.forEach(cacheName => {
|
|
451
|
-
if (this.detectors[cacheName]) this.detectors[cacheName].cacheUserLanguage(lng, this.options);
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
Browser.type = 'languageDetector';
|
|
456
|
-
|
|
457
|
-
var resourcesToBackend = function resourcesToBackend(res) {
|
|
458
|
-
return {
|
|
459
|
-
type: 'backend',
|
|
460
|
-
init: function init(services, backendOptions, i18nextOptions) {},
|
|
461
|
-
read: function read(language, namespace, callback) {
|
|
462
|
-
if (typeof res === 'function') {
|
|
463
|
-
if (res.length < 3) {
|
|
464
|
-
try {
|
|
465
|
-
var r = res(language, namespace);
|
|
466
|
-
if (r && typeof r.then === 'function') {
|
|
467
|
-
r.then(function (data) {
|
|
468
|
-
return callback(null, data && data.default || data);
|
|
469
|
-
}).catch(callback);
|
|
470
|
-
} else {
|
|
471
|
-
callback(null, r);
|
|
472
|
-
}
|
|
473
|
-
} catch (err) {
|
|
474
|
-
callback(err);
|
|
475
|
-
}
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
res(language, namespace, callback);
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
|
-
callback(null, res && res[language] && res[language][namespace]);
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
};
|
|
485
|
-
|
|
486
17
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = true, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), true), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
487
18
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
488
19
|
|