Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

compenents, modals, ui, hoc, hooks

Maksim Mrugb2b03df35b0b
diff --git a/app/components/EventsRunningOutBanner.tsx b/app/components/EventsRunningOutBanner.tsx
new file mode 100644
index 000000000..6d24e9a89
--- /dev/null
+++ b/app/components/EventsRunningOutBanner.tsx
@@ -0,0 +1,85 @@
+import React, { memo, useState } from 'react'
+import { ExclamationTriangleIcon, XMarkIcon } from '@heroicons/react/24/outline'
+import { useSelector } from 'react-redux'
+import { useAppDispatch, StateType } from 'redux/store'
+import { useTranslation } from 'react-i18next'
+
+import Modal from 'ui/Modal'
+import UIActions from 'redux/reducers/ui'
+import { SHOW_BANNER_AT_PERC } from 'redux/constants'
+
+const EventsRunningOutBanner = () => {
+ const { t }: {
+ t: (key: string, item?: {
+ [key: string]: string | number
+ }) => string
+ } = useTranslation('common')
+ const dispatch = useAppDispatch()
+ const showNoEventsLeftBanner = useSelector((state: StateType) => state.ui.misc.showNoEventsLeftBanner)
+ const [showModeInfoModal, setShowModeInfoModal] = useState(false)
+
+ const closeHandler = () => {
+ dispatch(UIActions.setShowNoEventsLeftBanner(false))
+ }
+
+ if (!showNoEventsLeftBanner) {
+ return null
+ }
+
+ return (
+ <>
+ <div className='bg-yellow-400 dark:bg-yellow-500'>
+ <div className='max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8'>
+ <div className='flex items-center justify-between flex-wrap'>
+ <div className='w-0 flex-1 flex items-center'>
+ <span className='flex p-2 rounded-lg bg-yellow-600'>
+ <ExclamationTriangleIcon className='h-6 w-6 text-white' aria-hidden='true' />
+ </span>
+ <p className='ml-3 font-medium text-black truncate'>
+ <span className='md:hidden'>
+ {t('dashboard.lowEventsTitle')}
+ </span>
+ <span className='hidden md:inline'>
+ {t('dashboard.eventsXPercUsed', {
+ amount: SHOW_BANNER_AT_PERC,
+ })}
+ </span>
+ </p>
+ </div>
+ <div className='order-3 mt-2 flex-shrink-0 w-full sm:order-2 sm:mt-0 sm:w-auto'>
+ <span
+ onClick={() => setShowModeInfoModal(true)}
+ className='flex items-center justify-center cursor-pointer px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-yellow-600 bg-gray-50 hover:bg-yellow-50 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'
+ >
+ {t('common.learnMore')}
+ </span>
+ </div>
+ <div className='order-2 flex-shrink-0 sm:order-3 sm:ml-3'>
+ <button
+ type='button'
+ onClick={closeHandler}
+ className='-mr-1 flex p-2 rounded-md hover:bg-yellow-500 focus:outline-none focus:ring-2 focus:ring-white sm:-mr-2'
+ >
+ <span className='sr-only'>
+ {t('common.close')}
+ </span>
+ <XMarkIcon className='h-6 w-6 text-black' aria-hidden='true' />
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ <Modal
+ onClose={() => setShowModeInfoModal(false)}
+ onSubmit={() => setShowModeInfoModal(false)}
+ submitText={t('common.gotIt')}
+ title={t('dashboard.lowEventsTitle')}
+ message={t('dashboard.lowEventsDesc')}
+ type='warning'
+ isOpened={showModeInfoModal}
+ />
+ </>
+ )
+}
+
+export default memo(EventsRunningOutBanner)
diff --git a/app/components/Footer/index.tsx b/app/components/Footer/index.tsx
new file mode 100644
index 000000000..7820556eb
--- /dev/null
+++ b/app/components/Footer/index.tsx
@@ -0,0 +1,349 @@
+import React, { memo } from 'react'
+import { Link } from 'react-router-dom'
+import { HashLink } from 'react-router-hash-link'
+import { useTranslation } from 'react-i18next'
+import _map from 'lodash/map'
+import Flag from 'react-flagkit'
+import PropTypes from 'prop-types'
+
+import {
+ isSelfhosted, DONATE_URL, FIREFOX_ADDON_URL, CHROME_EXTENSION_URL, GITHUB_URL,
+ LINKEDIN_URL, STATUSPAGE_URL, TWITTER_URL, BLOG_URL, UTM_GENERATOR_URL, SWETRIX_VS_GOOGLE,
+ SWETRIX_VS_CLOUDFLARE, DOCS_URL, SWETRIX_VS_SIMPLE_ANALYTICS, DISCORD_URL, CAPTCHA_URL,
+} from 'redux/constants'
+import routes from 'routes'
+
+const navigation = {
+ support: [
+ (authenticated: boolean | undefined): {
+ key: string
+ href: string
+ internal: boolean
+ } => (authenticated ? { key: 'billing', href: routes.billing, internal: true } : { key: 'pricing', href: `${routes.main}#pricing`, internal: true }),
+ (): {
+ key: string
+ href: string
+ internal: boolean
+ } => ({ key: 'docs', href: DOCS_URL, internal: false }),
+ (): {
+ key: string
+ href: string
+ internal: boolean
+ } => ({ key: 'contact', href: routes.contact, internal: true }),
+ ],
+ company: [
+ { key: 'about', href: routes.about, internal: true },
+ { key: 'changelog', href: routes.changelog, internal: true },
+ { key: 'open', href: routes.open, internal: true },
+ { key: 'press', href: routes.press, internal: true },
+ { key: 'status', href: STATUSPAGE_URL },
+ { key: 'donate', href: DONATE_URL },
+ { key: 'blog', href: BLOG_URL },
+ { key: 'captcha', href: CAPTCHA_URL },
+ { key: 'utm', href: UTM_GENERATOR_URL },
+ ],
+ legal: [
+ { key: 'privacy', href: routes.privacy },
+ { key: 'terms', href: routes.terms },
+ { key: 'cookie', href: routes.cookiePolicy },
+ ],
+ comparisons: [
+ { value: 'Google Analytics', href: SWETRIX_VS_GOOGLE },
+ { value: 'Cloudflare Analytics', href: SWETRIX_VS_CLOUDFLARE },
+ { value: 'Simple Analytics', href: SWETRIX_VS_SIMPLE_ANALYTICS },
+ ],
+ social: [
+ {
+ name: 'GitHub',
+ href: GITHUB_URL,
+ icon: (props: React.SVGProps<SVGSVGElement>) => (
+ <svg fill='currentColor' viewBox='0 0 24 24' {...props}>
+ <path
+ d='M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z'
+ fillRule='evenodd'
+ clipRule='evenodd'
+ />
+ </svg>
+ ),
+ },
+ {
+ name: 'Twitter',
+ href: TWITTER_URL,
+ icon: (props: React.SVGProps<SVGSVGElement>) => (
+ <svg fill='currentColor' viewBox='0 0 24 24' {...props}>
+ <path
+ d='M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84'
+ fillRule='evenodd'
+ clipRule='evenodd'
+ />
+ </svg>
+ ),
+ },
+ {
+ name: 'Discord',
+ href: DISCORD_URL,
+ icon: (props: React.SVGProps<SVGSVGElement>) => (
+ <svg fill='currentColor' viewBox='0 0 127.14 96.36' {...props}>
+ <path d='M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z' />
+ </svg>
+ ),
+ },
+ {
+ name: 'LinkedIn',
+ href: LINKEDIN_URL,
+ icon: () => (
+ <img className='h-6 w-6 opacity-75 hover:opacity-90 bg-white rounded' aria-hidden='true' src='/assets/linkedin.svg' alt='LinkedIn' />
+ ),
+ },
+ {
+ name: 'Firefox Addon',
+ href: FIREFOX_ADDON_URL,
+ icon: () => (
+ <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src='/assets/firefox.svg' alt='Firefox' />
+ ),
+ },
+ {
+ name: 'Chrome Extension',
+ href: CHROME_EXTENSION_URL,
+ icon: () => (
+ <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src='/assets/chrome.svg' alt='Chrome' />
+ ),
+ },
+ ],
+}
+
+const SelfHostedFooter = () => {
+ const { t } = useTranslation('common')
+
+ return (
+ <footer className='bg-gray-800 dark:bg-slate-900 dark:border-t dark:border-slate-800/50'>
+ <div className='max-w-7xl mx-auto py-8 px-4 overflow-hidden sm:px-6 lg:px-8'>
+ <nav className='-mx-5 -my-2 flex flex-wrap justify-center' aria-label='Footer'>
+ <div className='px-5 py-2'>
+ <Link to={routes.contact} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.contact')}
+ </Link>
+ </div>
+ <div className='px-5 py-2'>
+ <a href={UTM_GENERATOR_URL} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${t('footer.status')} (opens in a new tab)`}>
+ {t('footer.utm')}
+ </a>
+ </div>
+ <div className='px-5 py-2'>
+ <a href={DONATE_URL} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${t('footer.status')} (opens in a new tab)`}>
+ {t('footer.donate')}
+ </a>
+ </div>
+ <div className='px-5 py-2'>
+ <Link to={routes.about} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.about')}
+ </Link>
+ </div>
+ </nav>
+ </div>
+ </footer>
+ )
+}
+
+const Footer = ({ minimal, authenticated }: {
+ minimal?: boolean
+ authenticated?: boolean
+}): JSX.Element => {
+ const { t, i18n: { language } } = useTranslation('common')
+ const year = new Date().getFullYear()
+
+ if (isSelfhosted) {
+ return <SelfHostedFooter />
+ }
+
+ if (minimal) {
+ return (
+ <footer className='bg-gray-800 dark:bg-slate-900 dark:border-t dark:border-slate-800/50'>
+ <div className='max-w-7xl mx-auto py-8 px-4 overflow-hidden sm:px-6 lg:px-8'>
+ <nav className='-mx-5 -my-2 flex flex-wrap justify-center' aria-label='Footer'>
+ <div className='px-5 py-2'>
+ <Link to={routes.contact} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.contact')}
+ </Link>
+ </div>
+ <div className='px-5 py-2'>
+ <Link to={routes.privacy} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.pp')}
+ </Link>
+ </div>
+ <div className='px-5 py-2'>
+ <Link to={routes.terms} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.tos')}
+ </Link>
+ </div>
+ <div className='px-5 py-2'>
+ <Link to={routes.about} className='text-base text-gray-300 hover:text-white'>
+ {t('footer.about')}
+ </Link>
+ </div>
+ <div className='px-5 py-2'>
+ <a href={STATUSPAGE_URL} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${t('footer.status')} (opens in a new tab)`}>
+ {t('footer.status')}
+ </a>
+ </div>
+ </nav>
+ </div>
+ </footer>
+ )
+ }
+
+ return (
+ <footer className='bg-gray-800 dark:bg-gray-750' aria-labelledby='footer-heading'>
+ <h2 id='footer-heading' className='sr-only'>
+ Footer
+ </h2>
+ <div className='w-11/12 mx-auto pt-8 pb-5 px-4 sm:px-6 lg:px-8'>
+ <div className='xl:grid xl:grid-cols-3 xl:gap-8'>
+ <div className='space-y-8 xl:col-span-1'>
+ <div className='flex gap-5 flex-wrap'>
+ <img className='h-7' height='28px' src='/assets/logo_white.png' loading='lazy' alt='Swetrix Analytics' />
+ </div>
+ <p className='text-gray-300 text-base'>
+ {t('footer.slogan')}
+ <br />
+ {t('footer.description')}
+ </p>
+ <div>
+ <p className='flex text-gray-300 text-base'>
+ {t('footer.madeIn')}
+ <a className='flex hover:underline hover:opacity-80 text-blue-400 ml-1' href={`https://${language}.wikipedia.org/wiki/Ukraine`} target='_blank' rel='noopener noreferrer' aria-label='Ukraine Wikipedia page (opens in a new tab)'>
+ <Flag country='UA' size={18} alt='' aria-hidden='true' />
+ &nbsp;
+ {t('footer.ukraine')}
+ </a>
+ </p>
+ <p className='flex text-gray-300 text-base'>
+ {t('footer.hostedIn')}
+ <a className='flex hover:underline hover:opacity-80 text-blue-400 ml-1' href={`https://${language}.wikipedia.org/wiki/European_Union`} target='_blank' rel='noopener noreferrer' aria-label='European Union Wikipedia page (opens in a new tab)'>
+ <Flag country='EU' size={18} alt='' aria-hidden='true' />
+ &nbsp;
+ {t('footer.eu')}
+ </a>
+ </p>
+ </div>
+ <div className='flex space-x-4'>
+ {_map(navigation.social, (item) => (
+ <a key={item.name} href={item.href} title={item.name} target='_blank' rel='noopener noreferrer' className='text-gray-400 hover:text-gray-300' aria-label={`${item.name} (opens in a new tab)`}>
+ <span className='sr-only'>{item.name}</span>
+ <item.icon className='h-6 w-6' aria-hidden='true' />
+ </a>
+ ))}
+ </div>
+ </div>
+ <div className='mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2'>
+ <div className='md:grid md:grid-cols-2 md:gap-8'>
+ <div>
+ <h3 className='text-sm font-semibold text-white tracking-wider uppercase'>
+ {t('footer.comparisons')}
+ </h3>
+ <ul className='mt-4 space-y-4'>
+ {_map(navigation.comparisons, (data) => {
+ const { value, href } = data
+
+ return (
+ <li key={value}>
+ <a href={href} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${value} (opens in a new tab)`}>
+ {value}
+ </a>
+ </li>
+ )
+ })}
+ </ul>
+ </div>
+ <div className='mt-12 md:mt-0'>
+ <h3 className='text-sm font-semibold text-white tracking-wider uppercase'>
+ {t('footer.support')}
+ </h3>
+ <ul className='mt-4 space-y-4'>
+ {_map(navigation.support, (func) => {
+ const { key, href, internal } = func(authenticated)
+
+ return (
+ <li key={key}>
+ {internal ? (
+ <HashLink to={href} className='text-base text-gray-300 hover:text-white'>
+ {t(`footer.${key}`)}
+ </HashLink>
+ ) : (
+ <a href={href} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${t(`footer.${key}`)} (opens in a new tab)`}>
+ {t(`footer.${key}`)}
+ </a>
+ )}
+ </li>
+ )
+ })}
+ </ul>
+ </div>
+ </div>
+ <div className='md:grid md:grid-cols-2 md:gap-8'>
+ <div>
+ <h3 className='text-sm font-semibold text-white tracking-wider uppercase'>
+ {t('footer.company')}
+ </h3>
+ <ul className='mt-4 space-y-4'>
+ {_map(navigation.company, ({ key, href, internal }) => (
+ <li key={key}>
+ {internal ? (
+ <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ {t(`footer.${key}`)}
+ </Link>
+ ) : (
+ <a href={href} className='text-base text-gray-300 hover:text-white' target='_blank' rel='noopener noreferrer' aria-label={`${t(`footer.${key}`)} (opens in a new tab)`}>
+ {t(`footer.${key}`)}
+ </a>
+ )}
+ </li>
+ ))}
+ </ul>
+ </div>
+ <div className='mt-12 md:mt-0'>
+ <h3 className='text-sm font-semibold text-white tracking-wider uppercase'>
+ {t('footer.legal')}
+ </h3>
+ <ul className='mt-4 space-y-4'>
+ {_map(navigation.legal, ({ key, href }) => (
+ <li key={key}>
+ <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ {t(`footer.${key}`)}
+ </Link>
+ </li>
+ ))}
+ </ul>
+ </div>
+ </div>
+ <div className='flex gap-5 flex-wrap col-span-2 items-center justify-end'>
+ <img className='h-10 w-auto' src='/assets/pci.png' height='40' width='auto' loading='lazy' alt='PCI DSS' />
+ <img className='h-10 w-auto' src='/assets/visa.png' height='40' width='auto' loading='lazy' alt='Visa' />
+ <img className='h-10 w-auto' src='/assets/mc.png' height='40' width='auto' loading='lazy' alt='Mastercard' />
+ </div>
+ </div>
+ </div>
+ <div className='mt-6 border-t border-[#727987] pt-5'>
+ <p className='text-base text-gray-300 xl:text-center'>
+ &copy;
+ {' '}
+ {year}
+ {' '}
+ {t('footer.copy')}
+ </p>
+ </div>
+ </div>
+ </footer>
+ )
+}
+
+Footer.propTypes = {
+ authenticated: PropTypes.bool.isRequired,
+ minimal: PropTypes.bool,
+}
+
+Footer.defaultProps = {
+ minimal: false,
+}
+
+export default memo(Footer)
diff --git a/app/components/GithubAuth.tsx b/app/components/GithubAuth.tsx
new file mode 100644
index 000000000..f9a3474ee
--- /dev/null
+++ b/app/components/GithubAuth.tsx
@@ -0,0 +1,80 @@
+import React from 'react'
+import { useTranslation } from 'react-i18next'
+import { useSelector } from 'react-redux'
+import cx from 'clsx'
+
+import Button from 'ui/Button'
+import { StateType } from 'redux/store/index'
+import GithubDarkSVG from 'ui/icons/GithubDark'
+import GithubLightSVG from 'ui/icons/GithubLight'
+import { SSO_PROVIDERS } from 'redux/constants'
+
+interface IGoogleAuth {
+ setIsLoading: (isLoading: boolean) => void,
+ authSSO: (provider: string, dontRemember: boolean, t: (key: string) => string, callback: (res: any) => void) => void
+ callback?: any,
+ dontRemember?: boolean,
+ isMiniButton?: boolean,
+ className?: string
+}
+
+const GithubAuth: React.FC<IGoogleAuth> = ({
+ setIsLoading, authSSO, dontRemember, callback, isMiniButton, className,
+}) => {
+ const { t } = useTranslation()
+ const { theme } = useSelector((state: StateType) => state.ui.theme)
+
+ const googleLogin = async () => {
+ setIsLoading(true)
+ authSSO(
+ SSO_PROVIDERS.GITHUB,
+ dontRemember as boolean,
+ t,
+ callback,
+ )
+ }
+
+ if (isMiniButton) {
+ return (
+ <Button
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ onClick={googleLogin}
+ secondary
+ regular
+ >
+ {theme === 'dark' ? (
+ <GithubLightSVG className='w-5 h-5' />
+ ) : (
+ <GithubDarkSVG className='w-5 h-5' />
+ )}
+ </Button>
+ )
+ }
+
+ return (
+ <Button
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ onClick={googleLogin}
+ secondary
+ regular
+ >
+ <>
+ {theme === 'dark' ? (
+ <GithubLightSVG className='w-5 h-5 mr-2' />
+ ) : (
+ <GithubDarkSVG className='w-5 h-5 mr-2' />
+ )}
+ {t('auth.common.continueWithGithub')}
+ </>
+ </Button>
+ )
+}
+
+GithubAuth.defaultProps = {
+ dontRemember: false,
+ isMiniButton: false,
+ callback: () => { },
+ className: '',
+}
+
+export default GithubAuth
diff --git a/app/components/GoogleAuth.tsx b/app/components/GoogleAuth.tsx
new file mode 100644
index 000000000..7cc5c62fe
--- /dev/null
+++ b/app/components/GoogleAuth.tsx
@@ -0,0 +1,68 @@
+import React from 'react'
+import { useTranslation } from 'react-i18next'
+import cx from 'clsx'
+
+import Button from 'ui/Button'
+import GoogleGSVG from 'ui/icons/GoogleG'
+import { SSO_PROVIDERS } from 'redux/constants'
+
+interface IGoogleAuth {
+ setIsLoading: (isLoading: boolean) => void,
+ authSSO: (provider: string, dontRemember: boolean, t: (key: string) => string, callback: (res: any) => void) => void
+ callback?: any,
+ dontRemember?: boolean,
+ isMiniButton?: boolean,
+ className?: string
+}
+
+const GoogleAuth: React.FC<IGoogleAuth> = ({
+ setIsLoading, authSSO, dontRemember, callback, isMiniButton, className,
+}) => {
+ const { t } = useTranslation()
+
+ const googleLogin = async () => {
+ setIsLoading(true)
+ authSSO(
+ SSO_PROVIDERS.GOOGLE,
+ dontRemember as boolean,
+ t,
+ callback,
+ )
+ }
+
+ if (isMiniButton) {
+ return (
+ <Button
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ onClick={googleLogin}
+ secondary
+ regular
+ >
+ <GoogleGSVG className='w-5 h-5' />
+ </Button>
+ )
+ }
+
+ return (
+ <Button
+ className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}
+ onClick={googleLogin}
+ secondary
+ regular
+ >
+ <>
+ <GoogleGSVG className='w-5 h-5 mr-2' />
+ {t('auth.common.continueWithGoogle')}
+ </>
+ </Button>
+ )
+}
+
+GoogleAuth.defaultProps = {
+ dontRemember: false,
+ isMiniButton: false,
+ callback: () => { },
+ className: '',
+}
+
+export default GoogleAuth
diff --git a/app/components/Header/index.tsx b/app/components/Header/index.tsx
new file mode 100644
index 000000000..c37c2a839
--- /dev/null
+++ b/app/components/Header/index.tsx
@@ -0,0 +1,747 @@
+/* eslint-disable jsx-a11y/anchor-is-valid, react/no-unstable-nested-components */
+import React, {
+ memo, Fragment, useRef, useMemo, MutableRefObject,
+} from 'react'
+import PropTypes from 'prop-types'
+import { Link, NavLink } from 'react-router-dom'
+import { HashLink } from 'react-router-hash-link'
+import { useAppDispatch } from 'redux/store'
+import { useDispatch } from 'react-redux'
+import { useTranslation } from 'react-i18next'
+import Flag from 'react-flagkit'
+import i18next from 'i18next'
+import {
+ Popover, Transition, Menu,
+} from '@headlessui/react'
+import {
+ Bars3Icon, XMarkIcon, DocumentTextIcon, CreditCardIcon, CircleStackIcon, RssIcon,
+ ChevronDownIcon, PresentationChartLineIcon,
+} from '@heroicons/react/24/outline'
+import { MoonIcon, SunIcon } from '@heroicons/react/24/solid'
+import dayjs from 'dayjs'
+import utc from 'dayjs/plugin/utc'
+import duration from 'dayjs/plugin/duration'
+import _map from 'lodash/map'
+import _includes from 'lodash/includes'
+import cx from 'clsx'
+
+import routes from 'routes'
+import { authActions } from 'redux/reducers/auth'
+import sagaActions from 'redux/sagas/actions'
+import UIActions from 'redux/reducers/ui'
+import {
+ whitelist, languages, languageFlag, isSelfhosted, BLOG_URL,
+ DOCS_URL, SUPPORTED_THEMES,
+} from 'redux/constants'
+import Dropdown from 'ui/Dropdown'
+import { IUser } from 'redux/models/IUser'
+
+dayjs.extend(utc)
+dayjs.extend(duration)
+
+const TRIAL_STATUS_MAPPING = {
+ ENDED: 1,
+ ENDS_TODAY: 2,
+ ENDS_TOMORROW: 3,
+ ENDS_IN_X_DAYS: 4,
+}
+
+const ThemeMenu = ({
+ theme, t, switchTheme,
+}: {
+ theme: string,
+ t: (key: string, options?: {
+ [key: string]: string | number | null,
+ }) => string,
+ switchTheme: (i: string) => void,
+}) => (
+ <Menu as='div' className='relative ml-3'>
+ <div>
+ <Menu.Button className='flex justify-center items-center text-base font-medium text-white focus:outline-none hover:text-indigo-100 hover:dark:text-gray-200'>
+ <span className='sr-only'>
+ {t('header.switchTheme')}
+ </span>
+ {theme === 'dark' ? (
+ <SunIcon className='h-6 w-6 text-gray-200 hover:text-gray-300 cursor-pointer' aria-hidden='true' />
+ ) : (
+ <MoonIcon className='h-6 w-6 text-indigo-100 hover:text-indigo-200 cursor-pointer' aria-hidden='true' />
+ )}
+ </Menu.Button>
+ </div>
+ <Transition
+ as={Fragment}
+ enter='transition ease-out duration-100'
+ enterFrom='transform opacity-0 scale-95'
+ enterTo='transform opacity-100 scale-100'
+ leave='transition ease-in duration-75'
+ leaveFrom='transform opacity-100 scale-100'
+ leaveTo='transform opacity-0 scale-95'
+ >
+ <Menu.Items className='absolute right-0 z-30 mt-2 w-36 min-w-max origin-top-right rounded-md bg-white dark:bg-slate-900 py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'>
+ <Menu.Item>
+ {({ active }) => (
+ <div
+ className={cx('flex w-full font-semibold cursor-pointer px-4 py-2 text-sm text-indigo-600 dark:text-gray-50 hover:bg-gray-100 hover:dark:bg-slate-800', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ onClick={() => switchTheme('light')}
+ >
+ <SunIcon className='h-5 w-5 mr-2 text-indigo-600 dark:text-gray-200' aria-hidden='true' />
+ {t('header.light')}
+ </div>
+ )}
+ </Menu.Item>
+ <Menu.Item>
+ {({ active }) => (
+ <div
+ className={cx('flex w-full font-semibold cursor-pointer px-4 py-2 text-sm text-gray-700 dark:text-indigo-400 hover:bg-gray-100 hover:dark:bg-slate-800', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ onClick={() => switchTheme('dark')}
+ >
+ <MoonIcon className='h-5 w-5 mr-2 text-gray-200 dark:text-indigo-400' aria-hidden='true' />
+ {t('header.dark')}
+ </div>
+ )}
+ </Menu.Item>
+ </Menu.Items>
+ </Transition>
+ </Menu>
+)
+
+const ProfileMenu = ({
+ user, logoutHandler, t, onLanguageChange, language,
+}: {
+ user: IUser,
+ logoutHandler: () => void,
+ t: (key: string, options?: {
+ [key: string]: string | number | null,
+ }) => string,
+ onLanguageChange: (l: string) => void,
+ language: string,
+}) => (
+ <Menu as='div' className='relative ml-3'>
+ <div>
+ <Menu.Button className='flex justify-center items-center text-base font-medium text-white focus:outline-none hover:text-indigo-100 hover:dark:text-gray-200'>
+ <span>
+ {t('common.account')}
+ </span>
+ <ChevronDownIcon className='h-4 w-4 ml-1' aria-hidden='true' />
+ </Menu.Button>
+ </div>
+ <Transition
+ as={Fragment}
+ enter='transition ease-out duration-100'
+ enterFrom='transform opacity-0 scale-95'
+ enterTo='transform opacity-100 scale-100'
+ leave='transition ease-in duration-75'
+ leaveFrom='transform opacity-100 scale-100'
+ leaveTo='transform opacity-0 scale-95'
+ >
+ <Menu.Items className='absolute right-0 z-30 mt-2 w-60 min-w-max origin-top-right rounded-md bg-white dark:bg-slate-900 py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none'>
+ <div className='border-gray-200 dark:border-slate-700/50 border-b-[1px]'>
+ <Menu.Item>
+ <p className='truncate py-2 px-4' role='none'>
+ <span
+ className='block text-xs text-gray-500 dark:text-gray-300'
+ role='none'
+ >
+ {t('header.signedInAs')}
+ </span>
+ <span
+ className='mt-0.5 text-sm font-semibold text-gray-700 dark:text-gray-50'
+ role='none'
+ >
+ {user?.email}
+ </span>
+ </p>
+ </Menu.Item>
+ </div>
+
+ <div className='border-gray-200 dark:border-slate-700/50 border-b-[1px]'>
+ {/* Language selector */}
+ <Menu as='div'>
+ {({ open }) => (
+ <>
+ <div>
+ <Menu.Button
+ className='flex justify-between w-full px-4 py-2 text-sm text-gray-700 dark:text-gray-50 hover:bg-gray-100 hover:dark:bg-slate-800'
+ >
+ <div className='flex'>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={20} alt='' aria-hidden='true' />
+ {languages[language]}
+ </div>
+ <ChevronDownIcon className='-mr-1 ml-2 h-5 w-5' aria-hidden='true' />
+ </Menu.Button>
+ </div>
+
+ <Transition
+ show={open}
+ as={Fragment}
+ enter='transition ease-out duration-100'
+ enterFrom='transform opacity-0 scale-95'
+ enterTo='transform opacity-100 scale-100'
+ leave='transition ease-in duration-75'
+ leaveFrom='transform opacity-100 scale-100'
+ leaveTo='transform opacity-0 scale-95'
+ >
+ <Menu.Items
+ className='z-50 py-1 origin-top-right absolute right-0 mt-1 w-full min-w-max rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 focus:outline-none'
+ static
+ >
+ {_map(whitelist, lng => (
+ <Menu.Item key={lng}>
+ <span
+ className='text-gray-700 dark:text-gray-50 dark:bg-slate-800 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600'
+ role='menuitem'
+ tabIndex={0}
+ onClick={() => onLanguageChange(lng)}
+ >
+ <div className='flex'>
+ <div className='pt-1'>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[lng]} size={20} alt={languageFlag[lng]} />
+ </div>
+ {languages[lng]}
+ </div>
+ </span>
+ </Menu.Item>
+ ))}
+ </Menu.Items>
+ </Transition>
+ </>
+ )}
+ </Menu>
+
+ <Menu.Item>
+ {({ active }) => (
+ <Link
+ to={routes.changelog}
+ className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ >
+ {t('footer.changelog')}
+ </Link>
+ )}
+ </Menu.Item>
+ <Menu.Item>
+ {({ active }) => (
+ <Link
+ to={routes.contact}
+ className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ >
+ {t('footer.support')}
+ </Link>
+ )}
+ </Menu.Item>
+ {!isSelfhosted && (
+ <Menu.Item>
+ {({ active }) => (
+ <Link
+ to={routes.billing}
+ className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ >
+ {t('common.billing')}
+ </Link>
+ )}
+ </Menu.Item>
+ )}
+ </div>
+
+ <Menu.Item>
+ {({ active }) => (
+ <Link
+ to={routes.user_settings}
+ className={cx('block px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ >
+ {t('common.accountSettings')}
+ </Link>
+ )}
+ </Menu.Item>
+ <Menu.Item>
+ {({ active }) => (
+ <p
+ className={cx('cursor-pointer px-4 py-2 text-sm text-gray-700 dark:text-gray-50', {
+ 'bg-gray-100 dark:bg-slate-800': active,
+ })}
+ onClick={logoutHandler}
+ >
+ {t('common.logout')}
+ </p>
+ )}
+ </Menu.Item>
+ </Menu.Items>
+ </Transition>
+ </Menu>
+)
+
+const AuthedHeader = ({
+ user, switchTheme, theme, onLanguageChange, rawStatus, status, t, language, logoutHandler,
+}: {
+ user: IUser
+ switchTheme: (thm?: string) => void
+ theme: string
+ onLanguageChange: (lng: string) => void
+ rawStatus: string | number
+ status: string
+ t: (key: string, options?: {
+ [key: string]: string | number | null
+ }) => string
+ language: string
+ logoutHandler: () => void
+}): JSX.Element => (
+ <header className='bg-indigo-600 dark:bg-gray-750 relative overflow-x-clip'>
+ <nav className='mx-auto px-4 sm:px-6 lg:px-8' aria-label='Top'>
+ <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-gray-300 lg:border-none'>
+ <div className='flex items-center'>
+ {/* Logo */}
+ <Link to={routes.main}>
+ <span className='sr-only'>Swetrix</span>
+ <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />
+ </Link>
+
+ <div className='hidden ml-10 space-x-1 lg:flex'>
+ {user?.planCode === 'trial' && (
+ <Link
+ to={routes.billing}
+ className={cx('flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md', {
+ 'text-amber-800 bg-amber-200 dark:bg-amber-300 hover:bg-amber-300 dark:hover:bg-amber-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,
+ 'text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,
+ })}
+ key='TrialNotification'
+ >
+ {status}
+ </Link>
+ )}
+ {user?.planCode === 'none' && (
+ <Link
+ to={routes.billing}
+ className='flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200'
+ key='NoSubscription'
+ >
+ {t('billing.inactive')}
+ </Link>
+ )}
+ <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <RssIcon className='w-5 h-5 mr-1' />
+ {t('footer.blog')}
+ </a>
+ <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <DocumentTextIcon className='w-5 h-5 mr-1' />
+ {t('common.docs')}
+ </a>
+ <Link to={routes.dashboard} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md'>
+ <PresentationChartLineIcon className='w-5 h-5 mr-1' />
+ {t('common.dashboard')}
+ </Link>
+ </div>
+ </div>
+ <div className='hidden md:flex justify-center items-center flex-wrap ml-1 md:ml-10 space-y-1 sm:space-y-0 space-x-2 md:space-x-4'>
+ <ThemeMenu
+ theme={theme}
+ switchTheme={switchTheme}
+ t={t}
+ />
+ <ProfileMenu
+ user={user}
+ logoutHandler={logoutHandler}
+ onLanguageChange={onLanguageChange}
+ language={language}
+ t={t}
+ />
+ </div>
+ <div className='md:hidden flex justify-center items-center'>
+ {/* Theme switch */}
+ {theme === 'dark' ? (
+ <div className='transition-all duration-1000 ease-in-out rotate-180'>
+ <SunIcon onClick={() => switchTheme()} className='h-10 w-10 text-gray-200 hover:text-gray-300 cursor-pointer' />
+ </div>
+ ) : (
+ <div className='transition-all duration-1000 ease-in-out'>
+ <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />
+ </div>
+ )}
+ <Popover.Button className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 ml-3 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'>
+ <span className='sr-only'>
+ {t('common.openMenu')}
+ </span>
+ <Bars3Icon className='h-6 w-6' aria-hidden='true' />
+ </Popover.Button>
+ </div>
+ </div>
+ <div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>
+ <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <RssIcon className='w-5 h-5 mr-1' />
+ {t('footer.blog')}
+ </a>
+ <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <DocumentTextIcon className='w-5 h-5 mr-1' />
+ {t('common.docs')}
+ </a>
+ <Link to={routes.dashboard} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md'>
+ <PresentationChartLineIcon className='w-5 h-5 mr-1' />
+ {t('common.dashboard')}
+ </Link>
+ </div>
+ </nav>
+ </header>
+)
+
+const NotAuthedHeader = ({
+ switchTheme, theme, onLanguageChange, t, language,
+}: {
+ switchTheme: (a?: string) => void,
+ theme: string,
+ onLanguageChange: (lang: string) => void,
+ t: (key: string) => string,
+ language: string,
+}) => (
+ <header className='bg-indigo-600 dark:bg-gray-750 relative overflow-x-clip'>
+ <nav className='mx-auto px-4 sm:px-6 lg:px-8' aria-label='Top'>
+ <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-gray-300 lg:border-none'>
+ <div className='flex items-center'>
+ {/* Logo */}
+ <Link to={routes.main}>
+ <span className='sr-only'>Swetrix</span>
+ <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />
+ </Link>
+
+ <div className='hidden ml-10 space-x-1 lg:flex'>
+ <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <RssIcon className='w-5 h-5 mr-1' />
+ {t('footer.blog')}
+ </a>
+ {!isSelfhosted && (
+ <>
+ <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>
+ <CircleStackIcon className='w-5 h-5 mr-1' />
+ {t('common.features')}
+ </NavLink>
+ <HashLink to={`${routes.main}#pricing`} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>
+ <CreditCardIcon className='w-5 h-5 mr-1' />
+ {t('common.pricing')}
+ </HashLink>
+ </>
+ )}
+ <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <DocumentTextIcon className='w-5 h-5 mr-1' />
+ {t('common.docs')}
+ </a>
+ </div>
+ </div>
+ <div className='hidden md:flex justify-center items-center flex-wrap ml-1 md:ml-10 space-y-1 sm:space-y-0 space-x-2 md:space-x-4'>
+ {/* Theme switch */}
+ {theme === 'dark' ? (
+ <div className='transition-all duration-1000 ease-in-out rotate-180'>
+ <SunIcon onClick={() => switchTheme()} className='h-10 w-10 text-gray-200 hover:text-gray-300 cursor-pointer' />
+ </div>
+ ) : (
+ <div className='transition-all duration-1000 ease-in-out'>
+ <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />
+ </div>
+ )}
+
+ {/* Language selector */}
+ <Dropdown
+ items={whitelist}
+ buttonClassName='flex items-center w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700 border dark:border-slate-800'
+ selectItemClassName='text-gray-700 block px-4 py-2 text-base cursor-pointer hover:bg-gray-200 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'
+ title={(
+ <>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={21} alt='' aria-hidden='true' />
+ {languages[language]}
+ </>
+ )}
+ labelExtractor={(lng) => (
+ <div className='flex'>
+ <div className='pt-1'>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[lng]} size={21} alt={languageFlag[lng]} />
+ </div>
+ {languages[lng]}
+ </div>
+ )}
+ onSelect={onLanguageChange}
+ />
+ <Link to={routes.signin} className='inline-block select-none bg-indigo-500 dark:bg-slate-800 mt-1 sm:mt-0 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75 hover:dark:bg-slate-700'>
+ {t('auth.common.signin')}
+ </Link>
+ {!isSelfhosted && (
+ <Link to={routes.signup} className='inline-block select-none bg-white dark:bg-slate-800 dark:text-gray-50 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50 hover:dark:bg-slate-700' aria-label={t('titles.signup')}>
+ {t('common.getStarted')}
+ </Link>
+ )}
+ </div>
+ <div className='md:hidden flex justify-center items-center'>
+ {/* Theme switch */}
+ {theme === 'dark' ? (
+ <div className='transition-all duration-1000 ease-in-out rotate-180'>
+ <SunIcon onClick={() => switchTheme()} className='h-10 w-10 text-gray-200 hover:text-gray-300 cursor-pointer' />
+ </div>
+ ) : (
+ <div className='transition-all duration-1000 ease-in-out'>
+ <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />
+ </div>
+ )}
+ <Popover.Button className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 ml-3 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'>
+ <span className='sr-only'>
+ {t('common.openMenu')}
+ </span>
+ <Bars3Icon className='h-6 w-6' aria-hidden='true' />
+ </Popover.Button>
+ </div>
+ </div>
+ <div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>
+ <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <RssIcon className='w-5 h-5 mr-1' />
+ {t('footer.blog')}
+ </a>
+ <HashLink to={`${routes.main}#pricing`} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>
+ <CreditCardIcon className='w-5 h-5 mr-1' />
+ {t('common.pricing')}
+ </HashLink>
+ <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>
+ <CircleStackIcon className='w-5 h-5 mr-1' />
+ {t('common.features')}
+ </NavLink>
+ <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>
+ <DocumentTextIcon className='w-5 h-5 mr-1' />
+ {t('common.docs')}
+ </a>
+ </div>
+ </nav>
+ </header>
+)
+
+const Header = ({
+ authenticated, theme,
+ // themeType,
+ user,
+}: {
+ authenticated: boolean,
+ theme: string,
+ // themeType: string,
+ user: IUser,
+}): JSX.Element => {
+ const { t, i18n: { language } }: {
+ t: (key: string, options?: {
+ [key: string]: string | number | null
+ }) => string,
+ i18n: { language: string },
+ } = useTranslation('common')
+ const dispatch = useAppDispatch()
+ const _dispatch = useDispatch()
+ // @ts-ignore
+ const buttonRef: MutableRefObject<HTMLButtonElement> = useRef<HTMLButtonElement>()
+
+ const [rawStatus, status] = useMemo(() => {
+ const { trialEndDate } = (user || {})
+
+ if (!trialEndDate) {
+ return [null, null]
+ }
+
+ const now = dayjs.utc()
+ const future = dayjs.utc(trialEndDate)
+ const diff = future.diff(now)
+
+ if (diff < 0) {
+ // trial has already ended
+ return [TRIAL_STATUS_MAPPING.ENDED, t('pricing.trialEnded')]
+ }
+
+ if (diff < dayjs.duration(1, 'day').asMilliseconds()) {
+ // trial ends today or tomorrow
+ const isToday = future.isSame(now, 'day')
+ const isTomorrow = future.isSame(now.add(1, 'day'), 'day')
+
+ if (isToday) {
+ return [TRIAL_STATUS_MAPPING.ENDS_TODAY, t('pricing.trialEndsToday')]
+ }
+ if (isTomorrow) {
+ return [TRIAL_STATUS_MAPPING.ENDS_TOMORROW, t('pricing.trialEndsTomorrow')]
+ }
+ }
+
+ // trial ends in more than 1 day
+ const amount = Math.round(dayjs.duration(diff).asDays())
+ return [TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS, t('pricing.xTrialDaysLeft', { amount })]
+ }, [user, t])
+
+ const logoutHandler = () => {
+ dispatch(authActions.logout())
+ _dispatch(sagaActions.logout(false))
+ }
+
+ const switchTheme = (_theme?: string) => {
+ const newTheme = (_includes(SUPPORTED_THEMES, _theme) && _theme) || (theme === 'dark' ? 'light' : 'dark')
+ dispatch(UIActions.setTheme(newTheme as 'light' | 'dark'))
+ }
+
+ const onLanguageChange = (id: string) => {
+ i18next.changeLanguage(id)
+ }
+
+ return (
+ <Popover className='relative bg-white'>
+ {/* Computer / Laptop / Tablet layout header */}
+ {authenticated ? (
+ <AuthedHeader
+ user={user}
+ rawStatus={rawStatus || ''}
+ status={status || ''}
+ logoutHandler={logoutHandler}
+ switchTheme={switchTheme}
+ theme={theme}
+ onLanguageChange={onLanguageChange}
+ language={language}
+ t={t}
+ />
+ ) : (
+ <NotAuthedHeader
+ switchTheme={switchTheme}
+ theme={theme}
+ onLanguageChange={onLanguageChange}
+ language={language}
+ t={t}
+ />
+ )}
+
+ {/* Mobile header popup */}
+ <Transition
+ as={Fragment}
+ enter='duration-200 ease-out'
+ enterFrom='opacity-0 scale-95'
+ enterTo='opacity-100 scale-100'
+ leave='duration-100 ease-in'
+ leaveFrom='opacity-100 scale-100'
+ leaveTo='opacity-0 scale-95'
+ >
+ <Popover.Panel focus className='absolute top-0 z-50 inset-x-0 p-2 transition transform origin-top-right md:hidden'>
+ <div className='rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 bg-white dark:bg-gray-750 divide-y-2 divide-gray-50 dark:divide-gray-800'>
+ <div className='pt-5 pb-6 px-5'>
+ <div className='flex items-center justify-between'>
+ <Link to={routes.main}>
+ <span className='sr-only'>Swetrix</span>
+ {theme === 'dark' ? (
+ <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />
+ ) : (
+ <img className='h-7' height='28' src='/assets/logo_blue.png' alt='Swetrix' />
+ )}
+ </Link>
+ <Popover.Button ref={buttonRef} className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'>
+ <span className='sr-only'>
+ {t('common.closeMenu')}
+ </span>
+ <XMarkIcon className='h-6 w-6' aria-hidden='true' />
+ </Popover.Button>
+ </div>
+ </div>
+ <div className='py-6 px-5 space-y-6'>
+ <div className='grid grid-cols-1 gap-y-4'>
+ {/* Language selector */}
+ <Dropdown
+ items={whitelist}
+ buttonClassName='flex items-center w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800 dark:hover:bg-slate-700'
+ selectItemClassName='text-gray-700 block px-4 py-2 text-base cursor-pointer hover:bg-gray-200 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'
+ title={(
+ <>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={21} alt='' aria-hidden='true' />
+ {languages[language]}
+ </>
+ )}
+ labelExtractor={(lng) => (
+ <div className='flex'>
+ <div className='pt-1'>
+ <Flag className='rounded-sm mr-1.5' country={languageFlag[lng]} size={21} alt={languageFlag[lng]} />
+ </div>
+ {languages[lng]}
+ </div>
+ )}
+ onSelect={onLanguageChange}
+ />
+ {authenticated ? (
+ <>
+ {user?.planCode === 'trial' && (
+ <Link
+ to={routes.billing}
+ className={cx('flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md', {
+ 'text-amber-800 bg-amber-200 dark:bg-amber-300 hover:bg-amber-300 dark:hover:bg-amber-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,
+ 'text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,
+ })}
+ key='TrialNotification'
+ >
+ {status}
+ </Link>
+ )}
+ {user?.planCode === 'none' && (
+ <Link
+ to={routes.billing}
+ className='flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200'
+ key='NoSubscription'
+ >
+ {t('billing.inactive')}
+ </Link>
+ )}
+ {/* Temporarily put it here until the header is fully redesigned */}
+ {!isSelfhosted && user?.planCode !== 'none' && user?.planCode !== 'trial' && (
+ <Link
+ to={routes.billing}
+ className='w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'
+ key='Billing'
+ >
+ {t('common.billing')}
+ </Link>
+ )}
+ <div onClick={() => buttonRef.current?.click()}>
+ <Link to={routes.user_settings} className='w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'>
+ {t('common.accountSettings')}
+ </Link>
+ </div>
+ <div onClick={() => buttonRef.current?.click()}>
+ <Link to='#' className='w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-indigo-600 bg-gray-50 hover:bg-indigo-50 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700' onClick={logoutHandler}>
+ {t('common.logout')}
+ </Link>
+ </div>
+ </>
+ ) : (
+ <>
+ <div onClick={() => buttonRef.current?.click()}>
+ <Link to={routes.signin} className='w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-indigo-600 bg-gray-50 hover:bg-indigo-50'>
+ {t('auth.common.signin')}
+ </Link>
+ </div>
+ <div onClick={() => buttonRef.current?.click()}>
+ <Link to={routes.signup} className='w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-base font-medium text-white bg-indigo-600 hover:bg-indigo-700' aria-label={t('titles.signup')}>
+ {t('common.getStarted')}
+ </Link>
+ </div>
+ </>
+ )}
+ </div>
+ </div>
+ </div>
+ </Popover.Panel>
+ </Transition>
+ </Popover>
+ )
+}
+
+Header.propTypes = {
+ authenticated: PropTypes.bool.isRequired,
+ theme: PropTypes.string.isRequired,
+ // themeType: PropTypes.string.isRequired,
+ // eslint-disable-next-line react/forbid-prop-types
+ user: PropTypes.object,
+}
+
+Header.defaultProps = {
+ user: {},
+}
+
+export default memo(Header)
diff --git a/app/components/Title.tsx b/app/components/Title.tsx
new file mode 100644
index 000000000..d88b679d8
--- /dev/null
+++ b/app/components/Title.tsx
@@ -0,0 +1,58 @@
+import React from 'react'
+import { Helmet } from 'react-helmet-async'
+import { useTranslation } from 'react-i18next'
+import _isEmpty from 'lodash/isEmpty'
+import _map from 'lodash/map'
+import PropTypes from 'prop-types'
+
+import { TITLE_SUFFIX, whitelist } from 'redux/constants'
+
+interface ITitle {
+ title?: string
+ children: React.ReactNode
+}
+
+const Title: React.FC<ITitle> = ({ title, children }) => {
+ const { i18n: { language } } = useTranslation('common')
+
+ if (_isEmpty(title)) {
+ return (
+ <>
+ <Helmet>
+ <title>Swetrix Analytics</title>
+ </Helmet>
+ {children}
+ </>
+ )
+ }
+
+ const displayTitle = `${title} ${TITLE_SUFFIX}`
+ const pageURL = `${window.location.origin}${window.location.pathname}`
+
+ return (
+ <>
+ <Helmet>
+ <html lang={language} />
+ <title>{displayTitle}</title>
+ {/* <meta property='og:title' content={displayTitle} />
+ <meta name='twitter:title' content={displayTitle} /> */}
+ {_map(whitelist, (lang) => (
+ <link key={lang} rel='alternate' hrefLang={lang} href={`${pageURL}?lng=${lang}`} />
+ ))}
+ <link rel='alternate' hrefLang='x-default' href={pageURL} />
+ </Helmet>
+ {children}
+ </>
+ )
+}
+
+Title.propTypes = {
+ children: PropTypes.node.isRequired,
+ title: PropTypes.string,
+}
+
+Title.defaultProps = {
+ title: '',
+}
+
+export default Title
diff --git a/app/components/__test__/Footer.test.tsx b/app/components/__test__/Footer.test.tsx
new file mode 100644
index 000000000..2acc368c9
--- /dev/null
+++ b/app/components/__test__/Footer.test.tsx
@@ -0,0 +1,87 @@
+/* eslint-disable import/no-extraneous-dependencies */
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-unresolved */
+import React from 'react'
+import { render } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import { createMemoryHistory } from 'history'
+import { Router } from 'react-router-dom'
+import i18n from 'i18next'
+import Footer from '../Footer'
+
+describe('Footer', () => {
+ const history = createMemoryHistory()
+
+ const minimalProps = {
+ minimal: true,
+ authenticated: false,
+ }
+
+ const fullProps = {
+ minimal: false,
+ authenticated: true,
+ }
+
+ beforeAll(() => {
+ i18n.init({
+ lng: 'en',
+ fallbackLng: 'en',
+ resources: {
+ en: {
+ common: {
+ 'footer.contact': 'Contact Us',
+ 'footer.pp': 'Privacy Policy',
+ 'footer.tos': 'Terms of Service',
+ 'footer.about': 'About Us',
+ 'footer.status': 'Status',
+ 'footer.slogan': 'Your website, our analytics',
+ 'footer.description': 'Swetrix helps you monitor, analyze and optimize your website traffic in real time',
+ 'footer.madeIn': 'Made in',
+ 'footer.ukraine': 'Ukraine',
+ 'footer.hostedIn': 'Hosted in',
+ 'footer.eu': 'European Union',
+ 'footer.comparisons': 'Comparisons',
+ },
+ },
+ },
+ })
+ })
+
+ it('renders minimal footer', () => {
+ const { getByLabelText, getByText } = render(
+ // @ts-ignore
+ <Router history={history}>
+ <I18nextProvider i18n={i18n}>
+ <Footer {...minimalProps} />
+ </I18nextProvider>
+ </Router>,
+ )
+
+ expect(getByLabelText('Footer')).toBeInTheDocument()
+
+ expect(getByText('Contact Us')).toHaveAttribute('href', '/contact')
+ expect(getByText('Privacy Policy')).toHaveAttribute('href', '/privacy')
+ expect(getByText('Terms of Service')).toHaveAttribute('href', '/terms')
+ expect(getByText('About Us')).toHaveAttribute('href', '/about')
+ })
+
+ it('renders full footer', () => {
+ const { getByLabelText, getByText } = render(
+ // @ts-ignore
+ <Router history={history}>
+ <I18nextProvider i18n={i18n}>
+ <Footer {...fullProps} />
+ </I18nextProvider>
+ </Router>,
+ )
+
+ expect(getByLabelText('Footer')).toBeInTheDocument()
+
+ expect(getByText('Contact Us')).toHaveAttribute('href', '/contact')
+ expect(getByText('About Us')).toHaveAttribute('href', '/about')
+ expect(getByText('Made in')).toBeInTheDocument()
+ expect(getByText('Ukraine')).toHaveAttribute('href', 'https://en.wikipedia.org/wiki/Ukraine')
+ expect(getByText('Hosted in')).toBeInTheDocument()
+ expect(getByText('European Union')).toHaveAttribute('href', 'https://en.wikipedia.org/wiki/European_Union')
+ })
+})
diff --git a/app/components/__test__/Header.test.tsx b/app/components/__test__/Header.test.tsx
new file mode 100644
index 000000000..697e68881
--- /dev/null
+++ b/app/components/__test__/Header.test.tsx
@@ -0,0 +1,107 @@
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, screen } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import i18n from 'i18next'
+import { IUser } from 'redux/models/IUser'
+import { createMemoryHistory } from 'history'
+import { Router } from 'react-router-dom'
+import configureMockStore from 'redux-mock-store'
+
+import { Provider } from 'react-redux'
+import Header from '../Header'
+
+describe('Header', () => {
+ const history = createMemoryHistory()
+ const authenticated = true
+ const mockStore = configureMockStore()
+ const store = mockStore({})
+ const theme = 'dark'
+ const user: IUser = {
+ id: 'testid',
+ email: '[email protected]',
+ nickname: 'testuser',
+ roles: ['admin'],
+ isActive: true,
+ planCode: 'testplan',
+ trialEndDate: '2021-01-01T00:00:00.000Z',
+ reportFrequency: 'daily',
+ emailRequests: 0,
+ evWarningSentOn: null,
+ subID: null,
+ subUpdateURL: null,
+ subCancelURL: null,
+ created: '',
+ updated: '',
+ exportedAt: '',
+ timezone: '',
+ theme: null,
+ isTwoFactorAuthenticationEnabled: false,
+ trialReminderSent: false,
+ billingFrequency: null,
+ nextBillDate: null,
+ cancellationEffectiveDate: null,
+ apiKey: null,
+ telegramChatId: null,
+ isTelegramChatIdConfirmed: false,
+ timeFormat: '',
+ sharedProjects: [],
+ registeredWithGoogle: false,
+ googleId: null,
+ githubId: null,
+ registeredWithGithub: false,
+ tierCurrency: 'USD',
+ maxEventsCount: 5000000,
+ showLiveVisitorsInTitle: false,
+ }
+
+ beforeEach(() => {
+ jest.clearAllMocks()
+ })
+
+ beforeAll(() => {
+ i18n.init({
+ lng: 'en',
+ fallbackLng: 'en',
+ resources: {
+ en: {
+ 'footer.contact': 'Contact Us',
+ 'footer.blog': 'Blog',
+ 'common.logout': 'Logout',
+ 'common.login': 'Login',
+ 'common.dashboard': 'Dashboard',
+ },
+ },
+ })
+ })
+
+ test('renders authed header if authenticated', () => {
+ render(
+ // @ts-ignore
+ <Router history={history}>
+ <Provider store={store}>
+ <I18nextProvider i18n={i18n}>
+ <Header authenticated={authenticated} theme={theme} user={user} />
+ </I18nextProvider>
+ </Provider>
+ </Router>,
+ )
+
+ expect(screen.getAllByText(/common.dashboard/i)).toHaveLength(2)
+ })
+
+ test('renders not-authed header if not authenticated', () => {
+ render(
+ // @ts-ignore
+ <Router history={history}>
+ <Provider store={store}>
+ <I18nextProvider i18n={i18n}>
+ <Header authenticated={false} theme={theme} user={user} />
+ </I18nextProvider>
+ </Provider>
+ </Router>,
+ )
+
+ expect(screen.getByText(/auth.common.signin/i)).toBeInTheDocument()
+ })
+})
diff --git a/app/hoc/ScrollToTop.tsx b/app/hoc/ScrollToTop.tsx
new file mode 100644
index 000000000..f7ec50130
--- /dev/null
+++ b/app/hoc/ScrollToTop.tsx
@@ -0,0 +1,59 @@
+import React, { useEffect } from 'react'
+import { useHistory } from 'react-router-dom'
+import _isEmpty from 'lodash/isEmpty'
+
+interface IScrollToTop {
+ children: JSX.Element
+}
+
+interface StateType {
+ scrollToTopDisable?: boolean
+}
+
+interface IHistoryListener {
+ hash: string
+ state?: StateType | null
+}
+
+/**
+ * A HOC which listens to history changes and scrolls to top of the page when triggered.
+ *
+ * To disable Scroll to top on history.push, you should pass scrollToTopDisable: true state, e.g.:
+ * history.push({
+ * state: {
+ * scrollToTopDisable: true,
+ * },
+ * })
+ *
+ * @component
+ * @param {HTMLElement} children The children covered by the listener.
+ */
+const ScrollToTop: React.FC<IScrollToTop> = ({ children }) => {
+ const history = useHistory()
+
+ useEffect(() => {
+ const unlisten = history.listen((location: any) => {
+ const { hash, state } = location as IHistoryListener
+
+ if (!_isEmpty(state) && state?.scrollToTopDisable) {
+ return
+ }
+
+ if (hash !== '') {
+ return
+ }
+
+ setTimeout(() => {
+ window.scrollTo({
+ top: 0,
+ behavior: 'smooth',
+ })
+ }, 0)
+ })
+ return unlisten
+ }, [history])
+
+ return children
+}
+
+export default ScrollToTop
diff --git a/app/hoc/Selfhosted.tsx b/app/hoc/Selfhosted.tsx
new file mode 100644
index 000000000..b444783a6
--- /dev/null
+++ b/app/hoc/Selfhosted.tsx
@@ -0,0 +1,41 @@
+import React, { useEffect } from 'react'
+import { useHistory } from 'react-router-dom'
+import _includes from 'lodash/includes'
+
+import { isSelfhosted } from 'redux/constants'
+import routes from 'routes'
+
+const selfHostedBlacklist = [
+ routes.signup, routes.reset_password, routes.new_password_form, routes.main,
+ routes.verify, routes.change_email, routes.billing, routes.open,
+]
+
+const DEFAULT_PAGE = routes.signin
+
+interface ISelfhosted {
+ children: JSX.Element
+}
+
+const Selfhosted: React.FC<ISelfhosted> = ({ children }): JSX.Element => {
+ const history = useHistory()
+
+ // eslint-disable-next-line consistent-return
+ useEffect(() => {
+ if (isSelfhosted) {
+ if (_includes(selfHostedBlacklist, window.location.pathname)) {
+ history.push(DEFAULT_PAGE)
+ }
+
+ const unlisten = history.listen(({ pathname }: any) => {
+ if (_includes(selfHostedBlacklist, pathname)) {
+ history.push(DEFAULT_PAGE)
+ }
+ })
+ return unlisten
+ }
+ }, [history])
+
+ return children
+}
+
+export default Selfhosted
diff --git a/app/hoc/projectProtected.tsx b/app/hoc/projectProtected.tsx
new file mode 100644
index 000000000..3529d40d1
--- /dev/null
+++ b/app/hoc/projectProtected.tsx
@@ -0,0 +1,37 @@
+import React from 'react'
+import { useSelector } from 'react-redux'
+import { Redirect, useParams } from 'react-router-dom'
+
+import _find from 'lodash/find'
+import _replace from 'lodash/replace'
+import { StateType } from 'redux/store'
+import routes from 'routes'
+
+type PropsType = {
+ [key: string]: any
+}
+
+export const withProjectProtected = <P extends PropsType>(WrappedComponent: any) => {
+ const WithProjectProtected = (props: P) => {
+ const passwords = useSelector((state: StateType) => state.ui.projects.password)
+ const projects = useSelector((state: StateType) => state.ui.projects.projects)
+
+ const { id }: {
+ id: string
+ } = useParams()
+
+ const project = _find(projects, { id })
+
+ if (project?.isOwner) {
+ return <WrappedComponent {...props} />
+ }
+
+ if (project?.isPasswordProtected && !passwords[id]) {
+ return <Redirect to={_replace(routes.project_protected_password, ':id', id)} />
+ }
+
+ return <WrappedComponent {...props} />
+ }
+
+ return WithProjectProtected
+}
diff --git a/app/hoc/protected.tsx b/app/hoc/protected.tsx
new file mode 100644
index 000000000..9d6cde050
--- /dev/null
+++ b/app/hoc/protected.tsx
@@ -0,0 +1,40 @@
+import React from 'react'
+import { useSelector } from 'react-redux'
+import { Redirect } from 'react-router-dom'
+
+import { StateType } from 'redux/store'
+import routes from 'routes'
+
+type AuthParamType = {
+ selector: (state: StateType) => boolean,
+ redirectPath: string
+}
+
+type PropsType = {
+ [key: string]: any
+}
+
+export const auth = {
+ authenticated: {
+ selector: (state: StateType) => state.auth.authenticated,
+ redirectPath: routes.signin,
+ },
+ notAuthenticated: {
+ selector: (state: StateType) => !state.auth.authenticated,
+ redirectPath: routes.dashboard,
+ },
+}
+
+export const withAuthentication = <P extends PropsType>(WrappedComponent: any, authParam: AuthParamType) => {
+ const WithAuthentication = (props: P) => {
+ const selector = useSelector(authParam.selector)
+
+ if (!selector) {
+ return <Redirect to={authParam.redirectPath} />
+ }
+
+ return <WrappedComponent {...props} />
+ }
+
+ return WithAuthentication
+}
diff --git a/app/hooks/useOnClickOutside.ts b/app/hooks/useOnClickOutside.ts
new file mode 100644
index 000000000..021d2819d
--- /dev/null
+++ b/app/hooks/useOnClickOutside.ts
@@ -0,0 +1,24 @@
+import React, { useEffect } from 'react'
+
+const useOnClickOutside = (ref: React.RefObject<HTMLDivElement>, handler: Function) => {
+ useEffect(() => {
+ const func = (event: MouseEvent | TouchEvent) => {
+ if (!ref.current || ref.current.contains(event.target as Node)) {
+ return
+ }
+ handler(event)
+ }
+
+ document.addEventListener('mousedown', func)
+ document.addEventListener('touchstart', func)
+
+ return () => {
+ document.removeEventListener('mousedown', func)
+ document.removeEventListener('touchstart', func)
+ }
+ }, [ref, handler])
+
+ return [ref, handler]
+}
+
+export default useOnClickOutside
diff --git a/app/hooks/usePagination.tsx b/app/hooks/usePagination.tsx
new file mode 100644
index 000000000..5e32a07a0
--- /dev/null
+++ b/app/hooks/usePagination.tsx
@@ -0,0 +1,73 @@
+import { useMemo } from 'react'
+import { ENTRIES_PER_PAGE_DASHBOARD } from 'redux/constants'
+
+export const DOTS = '...'
+
+const range = (start: number, end: number) => {
+ const length = end - start + 1
+ return Array.from({ length }, (_, idx) => idx + start)
+}
+
+export const usePagination = (
+ totalCount: number,
+ currentPage: number,
+ siblingCount: number = 1,
+ pageSize: number = ENTRIES_PER_PAGE_DASHBOARD,
+): any[] => {
+ const paginationRange = useMemo(() => {
+ const totalPageCount = Math.ceil(totalCount / pageSize)
+
+ // Pages count is determined as siblingCount + firstPage + lastPage + currentPage + 2*DOTS
+ const totalPageNumbers = siblingCount + 5
+
+ /*
+ If the number of pages is less than the page numbers we want to show in our
+ paginationComponent, we return the range [1..totalPageCount]
+ */
+ if (totalPageNumbers >= totalPageCount) {
+ return range(1, totalPageCount)
+ }
+
+ const leftSiblingIndex = Math.max(currentPage - siblingCount, 1)
+ const rightSiblingIndex = Math.min(
+ currentPage + siblingCount,
+ totalPageCount,
+ )
+
+ /*
+ We do not want to show dots if there is only one position left
+ after/before the left/right page count as that would lead to a change if our Pagination
+ component size which we do not want
+ */
+ const shouldShowLeftDots = leftSiblingIndex > 2
+ const shouldShowRightDots = rightSiblingIndex < totalPageCount - 2
+
+ const firstPageIndex = 1
+ const lastPageIndex = totalPageCount
+
+ if (!shouldShowLeftDots && shouldShowRightDots) {
+ const leftItemCount = 3 + 2 * siblingCount
+ const leftRange = range(1, leftItemCount)
+
+ return [...leftRange, DOTS, totalPageCount]
+ }
+
+ if (shouldShowLeftDots && !shouldShowRightDots) {
+ const rightItemCount = 3 + 2 * siblingCount
+ const rightRange = range(
+ totalPageCount - rightItemCount + 1,
+ totalPageCount,
+ )
+ return [firstPageIndex, DOTS, ...rightRange]
+ }
+
+ if (shouldShowLeftDots && shouldShowRightDots) {
+ const middleRange = range(leftSiblingIndex, rightSiblingIndex)
+ return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex]
+ }
+
+ return []
+ }, [totalCount, pageSize, siblingCount, currentPage])
+
+ return paginationRange
+}
diff --git a/app/hooks/useSize.ts b/app/hooks/useSize.ts
new file mode 100644
index 000000000..98f201115
--- /dev/null
+++ b/app/hooks/useSize.ts
@@ -0,0 +1,29 @@
+/* eslint-disable consistent-return */
+import { useEffect, useRef, useState } from 'react'
+import _get from 'lodash/get'
+
+export default () => {
+ const [size, setSize] = useState({
+ width: 0, height: 0,
+ })
+ const ref = useRef(null)
+
+ useEffect(() => {
+ const DOMnode = ref.current
+ if (!DOMnode) {
+ return
+ }
+ const resizeObserver = new ResizeObserver((entries) => {
+ setSize({
+ width: _get(entries, '0.contentRect.width', 0),
+ height: _get(entries, '0.contentRect.height', 0),
+ })
+ })
+ resizeObserver.observe(DOMnode)
+ return () => {
+ resizeObserver.unobserve(DOMnode)
+ }
+ }, [])
+
+ return [ref, size]
+}
diff --git a/app/modals/Forecast.tsx b/app/modals/Forecast.tsx
new file mode 100644
index 000000000..88eef9aa6
--- /dev/null
+++ b/app/modals/Forecast.tsx
@@ -0,0 +1,104 @@
+import React, { useState } from 'react'
+import { useTranslation } from 'react-i18next'
+import PropTypes from 'prop-types'
+import _isNaN from 'lodash/isNaN'
+
+import Modal from 'ui/Modal'
+import Input from 'ui/Input'
+import { FORECAST_MAX_MAPPING } from 'redux/constants'
+import _toString from 'lodash/toString'
+
+const DEFAULT_PERIOD = 3
+
+const Forecast = ({
+ onClose, onSubmit, isOpened, activeTB, tb,
+}: {
+ onClose: () => void,
+ onSubmit: (period: string) => void,
+ isOpened: boolean,
+ activeTB: string,
+ tb: string,
+}): JSX.Element => {
+ const { t }: {
+ t: (key: string, options?: { [key: string]: string | number }) => string,
+ } = useTranslation('common')
+ const [period, setPeriod] = useState<string | number>(DEFAULT_PERIOD)
+ const [error, setError] = useState<string | null>(null)
+
+ const handleInput = (e: React.ChangeEvent<HTMLInputElement>) => {
+ const { value } = e.target
+
+ setPeriod(value)
+ setError(null)
+ }
+
+ const _onSubmit = () => {
+ const processedPeriod = Number(period)
+
+ if (_isNaN(processedPeriod)) {
+ setError(t('apiNotifications.enterACorrectNumber'))
+ return
+ }
+
+ if (processedPeriod <= 0) {
+ setError(t('apiNotifications.numberCantBeNegative'))
+ return
+ }
+
+ if (processedPeriod > FORECAST_MAX_MAPPING[tb]) {
+ setError(t('apiNotifications.forecastNumberCantBeBigger', {
+ max: FORECAST_MAX_MAPPING[tb],
+ }))
+ return
+ }
+
+ onSubmit(_toString(processedPeriod))
+ }
+
+ const _onClose = () => {
+ setPeriod(DEFAULT_PERIOD)
+ setError(null)
+ onClose()
+ }
+
+ return (
+ <Modal
+ onClose={_onClose}
+ onSubmit={_onSubmit}
+ submitText={t('common.continue')}
+ closeText={t('common.cancel')}
+ message={(
+ <div>
+ {t('modals.forecast.desc')}
+
+ <Input
+ name='forecast-input'
+ id='forecast-input'
+ type='text'
+ label={t('modals.forecast.input', {
+ frequency: activeTB,
+ })}
+ value={period}
+ placeholder={`${DEFAULT_PERIOD}`}
+ className='mt-4'
+ onChange={handleInput}
+ error={error}
+ />
+ </div>
+ )}
+ title={t('modals.forecast.title')}
+ isOpened={isOpened}
+ isBeta
+ />
+ )
+}
+
+Forecast.propTypes = {
+ onClose: PropTypes.func.isRequired,
+ isOpened: PropTypes.bool.isRequired,
+ onSubmit: PropTypes.func.isRequired,
+ activeTB: PropTypes.string.isRequired,
+ tb: PropTypes.string.isRequired,
+}
+
+export default Forecast
diff --git a/app/modals/PaidFeature.tsx b/app/modals/PaidFeature.tsx
new file mode 100644
index 000000000..1a5eea186
--- /dev/null
+++ b/app/modals/PaidFeature.tsx
@@ -0,0 +1,41 @@
+import React from 'react'
+import { useHistory } from 'react-router-dom'
+import { useTranslation } from 'react-i18next'
+import PropTypes from 'prop-types'
+
+import Modal from 'ui/Modal'
+import routes from 'routes'
+
+const PaidFeature = ({ onClose, isOpened }: {
+ onClose: () => void,
+ isOpened: boolean,
+}): JSX.Element => {
+ const { t }: {
+ t: (key: string, options?: { [key: string]: string | number }) => string,
+ } = useTranslation('common')
+ const history = useHistory()
+
+ const onSubmit = () => {
+ history.push(routes.billing)
+ }
+
+ return (
+ <Modal
+ type='info'
+ onClose={onClose}
+ onSubmit={onSubmit}
+ submitText={t('pricing.upgrade')}
+ closeText={t('common.cancel')}
+ message={t('modals.paidFeature.desc')}
+ title={t('modals.paidFeature.title')}
+ isOpened={isOpened}
+ />
+ )
+}
+
+PaidFeature.propTypes = {
+ onClose: PropTypes.func.isRequired,
+ isOpened: PropTypes.bool.isRequired,
+}
+
+export default PaidFeature
diff --git a/app/ui/Alert.tsx b/app/ui/Alert.tsx
new file mode 100644
index 000000000..2149ca73e
--- /dev/null
+++ b/app/ui/Alert.tsx
@@ -0,0 +1,89 @@
+// Custom Alert template for react-alert
+import React, { memo } from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+import {
+ CheckCircleIcon, InformationCircleIcon, XCircleIcon, XMarkIcon,
+} from '@heroicons/react/24/solid'
+
+// Define the prop types for the component
+interface IAlert {
+ /* (string): The message to be displayed in the alert. */
+ message: string,
+ // (object): An object containing the options for the alert, including the type property, which can have the values 'info', 'success', or 'error'.
+ options: {
+ type: 'info' | 'success' | 'error',
+ },
+ // (string): Additional CSS classes to be applied to the alert container.
+ className: string,
+ // (function): A callback function to be called when the alert is closed.
+ close: () => void,
+}
+
+// AlertTemplate component
+const AlertTemplate = ({
+ message, options, className, close,
+}: IAlert): JSX.Element => {
+ // Determine the type of the alert
+ const { type } = options
+ const isInfo = type === 'info'
+ const isSuccess = type === 'success'
+ const isError = type === 'error'
+
+ return (
+ <div
+ className={cx('flex justify-between items-center mb-5 mr-2 rounded-md p-4 z-50 shadow-sm w-96 pointer-events-auto', {
+ 'bg-green-50': isSuccess,
+ 'bg-blue-50': isInfo,
+ 'bg-red-50': isError,
+ }, className)}
+ >
+ <div className='flex-shrink-0'>
+ {isInfo && <InformationCircleIcon className='h-5 w-5 mr-2 text-blue-400' />}
+ {isSuccess && <CheckCircleIcon className='h-5 w-5 mr-2 text-green-400' />}
+ {isError && <XCircleIcon className='h-6 w-6 mr-2 text-red-400' />}
+ </div>
+ <span
+ className={cx('text-sm font-medium uppercase', {
+ 'text-green-800': isSuccess,
+ 'text-blue-700': isInfo,
+ 'text-red-800': isError,
+ })}
+ >
+ {message}
+ </span>
+ <button
+ onClick={close}
+ type='button'
+ className={cx('inline-flex cursor-pointer rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2', {
+ 'bg-green-50 text-green-500 hover:bg-green-100 focus:ring-offset-green-50 focus:ring-green-600': isSuccess,
+ 'bg-blue-50 text-blue-500 hover:bg-blue-100 focus:ring-offset-blue-50 focus:ring-blue-600': isInfo,
+ 'bg-red-50 text-red-500 hover:bg-red-100 focus:ring-offset-red-50 focus:ring-red-600': isError,
+ })}
+ >
+ <span className='sr-only'>Dismiss</span>
+ <XMarkIcon className='h-5 w-5' />
+ </button>
+ </div>
+ )
+}
+
+// Define prop types for the component
+AlertTemplate.propTypes = {
+ message: PropTypes.string,
+ className: PropTypes.string,
+ options: PropTypes.shape({
+ type: PropTypes.oneOf(['info', 'success', 'error']),
+ }),
+ close: PropTypes.func,
+}
+
+// Define default props for the component
+AlertTemplate.defaultProps = {
+ message: '',
+ className: '',
+ options: {},
+ close: () => { },
+}
+
+export default memo(AlertTemplate)
diff --git a/app/ui/Beta.tsx b/app/ui/Beta.tsx
new file mode 100644
index 000000000..6a0c956d4
--- /dev/null
+++ b/app/ui/Beta.tsx
@@ -0,0 +1,40 @@
+import React, { memo } from 'react'
+import PropTypes from 'prop-types'
+import { useTranslation } from 'react-i18next'
+
+import Tooltip from './Tooltip'
+import { WarningPin } from './Pin'
+
+// Define the prop types for the component
+interface IBeta {
+ className?: string,
+}
+
+const Beta = ({
+ // (string): Additional CSS classes to be applied to the alert container.
+ className,
+}: IBeta): JSX.Element => {
+ const { t } = useTranslation('common')
+
+ return (
+ <Tooltip
+ className='max-w-content !w-full'
+ tooltipNode={(
+ <WarningPin className={className} label={t('beta.title')} />
+ )}
+ text={t('beta.description')}
+ />
+ )
+}
+
+// Define the prop types for the component
+Beta.propTypes = {
+ className: PropTypes.string,
+}
+
+// Define the default props for the component
+Beta.defaultProps = {
+ className: '',
+}
+
+export default memo(Beta)
diff --git a/app/ui/Button.tsx b/app/ui/Button.tsx
new file mode 100644
index 000000000..d818ef3ec
--- /dev/null
+++ b/app/ui/Button.tsx
@@ -0,0 +1,141 @@
+/* eslint-disable react/button-has-type */
+import React, { memo } from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+// import { useSelector } from 'react-redux'
+// import { THEME_TYPE } from 'redux/constants'
+import Spin from './icons/Spin'
+import './ButtonChristmas.css'
+
+// Define the prop types for the component
+interface IButton {
+ // (string): The text to be displayed in the button.
+ text?: string,
+ // (node): The content to be displayed in the button.
+ children?: JSX.Element | string,
+ primary?: boolean,
+ secondary?: boolean,
+ danger?: boolean,
+ // (function): The function to be called when the button is clicked.
+ onClick?: () => void,
+ white?: boolean,
+ small?: boolean,
+ regular?: boolean,
+ large?: boolean,
+ giant?: boolean,
+ // (string): The type of button to be rendered.
+ type?: 'button' | 'submit' | 'reset',
+ // (string): Additional CSS classes to be applied to the button.
+ className?: string,
+ // (boolean): Whether the button is in a loading state.
+ loading?: boolean,
+ semiSmall?: boolean,
+ semiDanger?: boolean,
+ // (boolean): Whether the button is in a focus state.
+ focus?: boolean,
+ noBorder?: boolean,
+ // (boolean): Whether the button is disabled.
+ disabled?: boolean,
+}
+
+const Button = ({
+ text, children, primary, secondary, danger, onClick, white, small, regular, large,
+ giant, type, className, loading, semiSmall, semiDanger, noBorder, focus, disabled,
+}: IButton): JSX.Element => {
+ // const themeType = useSelector((state) => state.ui.theme.type)
+
+ return (
+ <button
+ disabled={disabled}
+ type={type}
+ onClick={onClick}
+ className={cx('relative inline-flex select-none items-center border leading-4 font-medium rounded-md', {
+ 'shadow-sm text-gray-50 bg-indigo-600 hover:bg-indigo-700 dark:bg-indigo-700 dark:hover:bg-indigo-800 border-transparent': primary,
+ 'text-indigo-700 bg-indigo-100 hover:bg-indigo-200 border-transparent': secondary,
+ 'text-gray-700 bg-white hover:bg-gray-50 border-transparent': white,
+ 'text-gray-50 bg-red-500 hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-700 border-transparent': danger,
+ 'text-red-500 hover:text-red-600 border-red-600 dark:text-red-300 dark:hover:text-red-400 dark:border-red-500 border-1': semiDanger,
+ 'focus:border-none border-none text-gray-700 dark:text-white focus:ring-0 focus:ring-offset-0': noBorder,
+ 'px-2.5 py-1.5 text-xs': small,
+ 'px-2.5 py-1.5 text-sm': semiSmall,
+ 'px-4 py-2 text-sm': large,
+ 'px-6 py-3 text-base': giant,
+ 'px-3 py-2 text-sm': regular,
+ 'cursor-not-allowed': loading,
+ 'focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500': focus,
+ }, className)}
+ >
+ {/* {themeType === THEME_TYPE.christmas ? (
+ <span className={cx('inline-flex items-center', {
+ button3: text,
+ button2: semiSmall || regular || large || giant,
+ })}
+ >
+ {loading && (
+ <Spin />
+ )}
+ {text || children}
+ </span>
+ ) : (
+ <>
+ {loading && (
+ <Spin />
+ )}
+ {text || children}
+ </>
+ )} */}
+ {loading && (
+ <Spin />
+ )}
+ {text || children}
+ </button>
+ )
+}
+
+// Define the prop types for the component
+Button.propTypes = {
+ text: PropTypes.string,
+ children: PropTypes.node,
+ onClick: PropTypes.func,
+ primary: PropTypes.bool,
+ secondary: PropTypes.bool,
+ white: PropTypes.bool,
+ danger: PropTypes.bool,
+ semiDanger: PropTypes.bool,
+ small: PropTypes.bool,
+ semiSmall: PropTypes.bool,
+ regular: PropTypes.bool,
+ large: PropTypes.bool,
+ giant: PropTypes.bool,
+ type: PropTypes.string,
+ className: PropTypes.string,
+ loading: PropTypes.bool,
+ focus: PropTypes.bool,
+ noBorder: PropTypes.bool,
+ disabled: PropTypes.bool,
+}
+
+// Define the default props for the component
+Button.defaultProps = {
+ text: null,
+ onClick: () => { },
+ primary: false,
+ secondary: false,
+ white: false,
+ small: false,
+ semiSmall: false,
+ regular: false,
+ large: false,
+ danger: false,
+ semiDanger: false,
+ giant: false,
+ loading: false,
+ type: 'button',
+ className: '',
+ children: null,
+ focus: true,
+ noBorder: false,
+ disabled: false,
+}
+
+export default memo(Button)
diff --git a/app/ui/ButtonChristmas.css b/app/ui/ButtonChristmas.css
new file mode 100644
index 000000000..1694f689e
--- /dev/null
+++ b/app/ui/ButtonChristmas.css
@@ -0,0 +1,45 @@
+
+.button::before {
+ content: '';
+ display: block;
+ position: absolute;
+ top: -10px;
+ left: -3px;
+ right: 0;
+ height: 23px;
+ background:
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAXCAYAAACS5bYWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABFpJREFUeNrUV0tIo1cUvpkYjQ4xxSA6DxuNqG0dtaUKOgs3s6i0dFd3pSsXdjeIixakiGA34sZuXCkoONLFwJTK4GMYLYXg29gatTpiXurkbd7vv9/5ub+IxuhA7eiFQ5Kbc8/57ne/e87/ywRBYLdl3GG3aNwqsLJ0k0tLS+fmcnNzWUVFBVMoFGx2djarvLxcm5OTw+bm5iytra2xc4ExNjY27iqVyvvwK6CpeDzuCYVC1urq6qDA9UcfPp+PHR4esmAwKK6tr68/l5/8rgQ2Ozub1dbWyiYmJooaGxt/VqvV38jlchX9l0qlwoFA4DWS/RKLxRxFRUVf5+XlPcaaT2AP0sVPJBL2SCRiAPBpu93+vKamZo/Ae71eZjabWV1dXVqw7CKwp43ksrCw8Bhg7MJ/PLDZ5PHx8cz29vYT5JGD/bSYLgTrcDgYdk6siSc6NjZWDaAe4ZoHQL+cmZnRpZPnhWDpD8kw7uKo9ML/NMCsd2tr61vkzboMrEyv138M7TyLRqMWMBsX3sMgaZhMpp+AR5EJrCocDpuEGzKg4x8khs+CVWxubvZfR9JkMik4nU7BarUKLpeLmLsKuwIqTLynp4fqmIzASrqQT09Pf1VVVfX0KsWZ6uHBwQHTaDSsoKAgo6/H4xHLEcrVyRwuEisrKzs5XrrIVAVwiUVDKRRrL+YI32ewdVhMApuHWvcj6vids6J2u90MF4yBHUZNgKoEBaRBQalJqFSqtJfUYrGIlQX+ydXVVTN+u0tKSjQNDQ1axJVl2iTypebn55d7e3v/kqoDgZU1NTU9LCws/Py0M+2ekuGincxJ3yF+18jIyHJLS0slQJUWFxczrBeBE0vE5tHRkbixlZWVfSR8gTX/0P5gH7S1tX3Z3t7+BW8qAvwSfr8/jA0EIRM/qoFtampqbW9vTw+XA+ojUruVd3Z2tvb19T2TQFEim81GgVJoCvvj4+NLOJZgaWmpemdn5y3a6BbcnJDAw8HBwac6ne6eqCW5XDwB3qVSqM9/DAwMUNy/eVLabT7sI25qwgujThCBhWE+mAt2yNc4SQKSZrOQQE1HS22VJkmPAGTr7+//fX19fRk+Zgq0trbGeFAKEAQT98BSqKOj47vm5uaa/Px8JeIk4GcaHh6eWlxcfAU/A8xG67BxAX3fwdcbYUpSDJ06Z49Ak8ZC3OL8f3YiA4PBYKdLQ2AJ9OTk5GpXV9cQiCVh79M94QtlPLDUE/1gPNrd3f0W33W4cBoco48zQuy/IZYAMnGqlSc4c66L9JruQUaSARXeT8HGKzxAqFBekni6+h46+pMzGiJGMgTOJh1yU/KNEGDvZWvfBawkA9ppwGg0mrRa7SOI2g+gxOgbJIpdFpj72PnxSnPX8vqRxTURgBQWKisrH+GThOm+CtAzoK/9/Uiqq/6hoaHfdnd3jaOjo7/yY7yxbwqkWy3sQzpS2C6YirwvUJk0y7hurfyGRrnduPGvAAMASmo8wzeVwfsAAAAASUVORK5CYII=) no-repeat 0 0,
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAAAXCAYAAABOHMIhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABiZJREFUeNrsWMtPlFcUvzPMwIDysLyRR4uATDHWCiVgSmRlios2DeiiXUFs0nRBd6arxqQhJDapkYXhP4BqDKTQhZaFNQSCaBEVJjwdHsNr5DUMDDPDzPT3u7nTDEgRKrKgc5KT+z3uufec33de99P4fD4RpL2RNgjB3kn35MkTeRERESFiYmLkGBoaKnQ6nWSNRvPPZFxr+vv7k6KioiIdDsfa8vLyQkFBgcP3Bnel3MDAQArWI0eFhISE87nb7bZ7PJ4VvLYuLi5O5+fnu9+kMNfq6+tLjIyMzMY6KeBEbK/XarXReI3lPDZMWcc4v7GxYV1dXR3Jy8ub2E5HPvJ6vRSSDH0ku1wuAfsEZOV1IEFHoeNFdHS0yMrK2knR0Lm5uR+hxLdQMjbwHTZbB41h8RGwCdc9MzMzneHh4bGJiYlf4SN8ijkfwqiIncCAAR7Iz2GPSShudjqdfeCeqampvwBQfFxc3JdYqwTv8gB8/F48A8BgKecE14V+L7ju2tpae05OzkuCCZvkPOj8mizmC6vVKtmPu+bx48cC3qI1mUyFUOyywWD4SHlELBaLJmCHNcwAghuAOujtuF4FqHO4nsX4EsAS3I4TJ04ME1h8PDE9PS09TYZoY2Pj1729vd6lpSVfkDYTPG0UkfNDRUWFgQ5Gb2Mh0N29e9eG/GQfHh4W8/PzwUy/ObQ/gMfVVlZW1iAiZdQxp3nv3LljRoL/5erVq1UIxzSiiVD9X4EDYATynCwAzGO858hCQRoaGmJFZNJz8YIcBc4BF966dau6sLAwBxVSJCUlCSThQwuU3W6XkYUok1Vzm5znQx5bbm9v77p+/frPeNSNRzZ/ISBwrG4ZR48eLamtrf2+uLjYSEG9Xi/wTISFhQlWGXohyzO/CJlVl23KQRLbABoaHx+/Z1lUZ/Hq1SsJFj3JT3hmHx8fnydPTEzMj46OziHPW2w22wxeD4Kfgadh/4YEzU8Az4DhffAn5eXlX1y6dKkEoCTspAQ9Mjs7+0BBo8Fms1lkZGTsOo0QLLRNkvnR+fEJzIMHD0xtbW39CL8JTFtSbAOvBIyLHIGVm9VzE2gKuDAMSSpcT6KXyT137lx2cnLyMXhcGDb3wq3XuWF3d/fCzZs3P0c4v5eSknJQbYLo7Ox0gC2lpaVZ3Be67Th/dnZWoAJKsJC3XA8fPhxoamp6hMb+BaaMgWcUMGtszZjiFDNmvcDI91pzG0iY4ARwkwrxkcHBwUdgNrRMbnrqoRbkVzDcvn3bl5qaWsmcgFH4G8XdEGUWFhak51AuISFBnkoCTyFbyWKxCJwIxlC0fq2rq7tcVFRkRKskjh8/Lr0+kBjCCDV/knfdv3//WX19/R8IRRNemxlu4AXwKqM+EJwdj1HbPYSwh3sCPAJDABm2LLchCjS+5/kirKGhwWk0GrMuXrxYQuX9hm/XXTMXMY+srKwI5ApZrbYmZh7deEJhAUKjLe/pLTzSsCuHrK+1tbUJVe3P6upq87Vr174rKysrYHVj/uW+OH3IfEuw4F3ee/fuPQfAvwOs5yyE4CnlFOu7BWrTCWlreO6FACpBZGwUw4BvkANLobReHb3kGZYGsGzTq/zlO8AT1ru6uoZbWlqeA6gINJAfnz59OlVLoX8Jtebm5raampqfcMvQYgTknz9//sKVK1c+y83NTdIEuCnaKMuNGzd+6+np6cCtSTkAw9D9X8Dyh+dbgaaAC1XAnUlPTy+qqqq6cPbs2UzkmWjNljiDJzpwHFnCkW2yo6NjCKW8H54wjlezKvRT09LSTsJrz5w6dSoN+Yp51ADAPUj8VoDbDq9pxrwuJcNIYQllJTIi/xopBw/VA7DJp0+f9hA78CgL5F5C8J2CpoCj8sfA6WCe/FPRhsRlZmbGIs8Y4FFO5CJgtrSsvrRVGW1V93b1myoGnKAKEcHgnwsWpg1lNI0fphwrmdqbckeU18WrnlOjqp5/j7W3BWvfQVPKa5SBkcrYCNVB65TRTlWZ1lXiXVU5xbtlDb2SPaLWYwrgHIcqPg6Vc7fbX69Yoyqfa7/AeiegbWOEVhmsVcWDwPn224iDJgla8Hd38Hd3ELQgaIeI/hZgAIPEp0vmQJdoAAAAAElFTkSuQmCC) no-repeat 50% 0,
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAXCAYAAACFxybfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAodJREFUeNrsVb1rWlEUv2pN/GqspKRSKFYXWzEloIWif0Fn6dJChQ7OQil0qd3EzcEpg0OgdHDr4CQODk7VRlLMEIVqApX4We0zflR9/Z1Ui4T34ksaaAYP/Hzc673n/M6550PG8zz73yKjn0wm83fDYDAwo9HINBrNnwOQg4MDs0ql2lQqlfdAWont7ng8Pjw+Ps44nc4G1pI9EXWaSOzt7TGO42aH5Pv7+08ajUZ0MBiUeXEZd7vdL5VK5fX29rZ+5tQiEmdxKrlcjsEYczgcynK5/BKKv/IXFNz/XiqVXkHdjUuRIA9SqdRD8or/R8Ez9fr9fqHVakUR4c2z0REjIQuHw2ZcrPBXLCA0RHTezEdHjIQqkUhEr9I4HOILhQLf6/VoOUFEvDMiQiToDx1Cdz+bzZ6bUFarlel0OkkVUK/XWbvdPoVer5fh3ntsfwJ+CJ2XA4p0Op1bpBgJyxDehQQ6nQ5DZXHBYDBZq9V+EhFUndnr9drEqoc2bwJbwGPgtohuVSwWe2Gz2TZMJpNgRKi6qtUqg2EWj8dTgUDgo0KhWPN4PC70EvXOzs67fD6/S6kiRIKeZA1YJ2MiJNbdbvfTUCjkV6vVK2hcDF8GI2w0GrGTkxM2HA5PDxaLxSOfz/cWEfk81X0XIMMFgJJ/srBjCgk8IdcfuVyuZ36//7nFYtkQyAMumUzuRiKRD0jMFLa+AZOpYwqgB/ziBVqmVBKUO7eAB/R0WG/Z7XaTVqtdbTabHJL6EK2djBaBPHA0NSqpbUsiMUeEBgpF4Q5AbZrmSJ/yEWgBTaBNHl9kdkgmMUeG7qwAq9PqovceTA3zlxlgsuswyuXsGsiSxJLEkoSY/BZgAEjRodi+uBruAAAAAElFTkSuQmCC) no-repeat 100% 0;
+
+}
+
+.button3::before {
+ content: '';
+ display: block;
+ position: absolute;
+ top: -8px;
+ left: -3px;
+ right: 0;
+ height: 23px;
+ background:
+ /* url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAXCAYAAACS5bYWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABFpJREFUeNrUV0tIo1cUvpkYjQ4xxSA6DxuNqG0dtaUKOgs3s6i0dFd3pSsXdjeIixakiGA34sZuXCkoONLFwJTK4GMYLYXg29gatTpiXurkbd7vv9/5ub+IxuhA7eiFQ5Kbc8/57ne/e87/ywRBYLdl3GG3aNwqsLJ0k0tLS+fmcnNzWUVFBVMoFGx2djarvLxcm5OTw+bm5iytra2xc4ExNjY27iqVyvvwK6CpeDzuCYVC1urq6qDA9UcfPp+PHR4esmAwKK6tr68/l5/8rgQ2Ozub1dbWyiYmJooaGxt/VqvV38jlchX9l0qlwoFA4DWS/RKLxRxFRUVf5+XlPcaaT2AP0sVPJBL2SCRiAPBpu93+vKamZo/Ae71eZjabWV1dXVqw7CKwp43ksrCw8Bhg7MJ/PLDZ5PHx8cz29vYT5JGD/bSYLgTrcDgYdk6siSc6NjZWDaAe4ZoHQL+cmZnRpZPnhWDpD8kw7uKo9ML/NMCsd2tr61vkzboMrEyv138M7TyLRqMWMBsX3sMgaZhMpp+AR5EJrCocDpuEGzKg4x8khs+CVWxubvZfR9JkMik4nU7BarUKLpeLmLsKuwIqTLynp4fqmIzASrqQT09Pf1VVVfX0KsWZ6uHBwQHTaDSsoKAgo6/H4xHLEcrVyRwuEisrKzs5XrrIVAVwiUVDKRRrL+YI32ewdVhMApuHWvcj6vids6J2u90MF4yBHUZNgKoEBaRBQalJqFSqtJfUYrGIlQX+ydXVVTN+u0tKSjQNDQ1axJVl2iTypebn55d7e3v/kqoDgZU1NTU9LCws/Py0M+2ekuGincxJ3yF+18jIyHJLS0slQJUWFxczrBeBE0vE5tHRkbixlZWVfSR8gTX/0P5gH7S1tX3Z3t7+BW8qAvwSfr8/jA0EIRM/qoFtampqbW9vTw+XA+ojUruVd3Z2tvb19T2TQFEim81GgVJoCvvj4+NLOJZgaWmpemdn5y3a6BbcnJDAw8HBwac6ne6eqCW5XDwB3qVSqM9/DAwMUNy/eVLabT7sI25qwgujThCBhWE+mAt2yNc4SQKSZrOQQE1HS22VJkmPAGTr7+//fX19fRk+Zgq0trbGeFAKEAQT98BSqKOj47vm5uaa/Px8JeIk4GcaHh6eWlxcfAU/A8xG67BxAX3fwdcbYUpSDJ06Z49Ak8ZC3OL8f3YiA4PBYKdLQ2AJ9OTk5GpXV9cQiCVh79M94QtlPLDUE/1gPNrd3f0W33W4cBoco48zQuy/IZYAMnGqlSc4c66L9JruQUaSARXeT8HGKzxAqFBekni6+h46+pMzGiJGMgTOJh1yU/KNEGDvZWvfBawkA9ppwGg0mrRa7SOI2g+gxOgbJIpdFpj72PnxSnPX8vqRxTURgBQWKisrH+GThOm+CtAzoK/9/Uiqq/6hoaHfdnd3jaOjo7/yY7yxbwqkWy3sQzpS2C6YirwvUJk0y7hurfyGRrnduPGvAAMASmo8wzeVwfsAAAAASUVORK5CYII=) no-repeat 0 0, */
+ /* url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAAAXCAYAAABOHMIhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABiZJREFUeNrsWMtPlFcUvzPMwIDysLyRR4uATDHWCiVgSmRlios2DeiiXUFs0nRBd6arxqQhJDapkYXhP4BqDKTQhZaFNQSCaBEVJjwdHsNr5DUMDDPDzPT3u7nTDEgRKrKgc5KT+z3uufec33de99P4fD4RpL2RNgjB3kn35MkTeRERESFiYmLkGBoaKnQ6nWSNRvPPZFxr+vv7k6KioiIdDsfa8vLyQkFBgcP3Bnel3MDAQArWI0eFhISE87nb7bZ7PJ4VvLYuLi5O5+fnu9+kMNfq6+tLjIyMzMY6KeBEbK/XarXReI3lPDZMWcc4v7GxYV1dXR3Jy8ub2E5HPvJ6vRSSDH0ku1wuAfsEZOV1IEFHoeNFdHS0yMrK2knR0Lm5uR+hxLdQMjbwHTZbB41h8RGwCdc9MzMzneHh4bGJiYlf4SN8ijkfwqiIncCAAR7Iz2GPSShudjqdfeCeqampvwBQfFxc3JdYqwTv8gB8/F48A8BgKecE14V+L7ju2tpae05OzkuCCZvkPOj8mizmC6vVKtmPu+bx48cC3qI1mUyFUOyywWD4SHlELBaLJmCHNcwAghuAOujtuF4FqHO4nsX4EsAS3I4TJ04ME1h8PDE9PS09TYZoY2Pj1729vd6lpSVfkDYTPG0UkfNDRUWFgQ5Gb2Mh0N29e9eG/GQfHh4W8/PzwUy/ObQ/gMfVVlZW1iAiZdQxp3nv3LljRoL/5erVq1UIxzSiiVD9X4EDYATynCwAzGO858hCQRoaGmJFZNJz8YIcBc4BF966dau6sLAwBxVSJCUlCSThQwuU3W6XkYUok1Vzm5znQx5bbm9v77p+/frPeNSNRzZ/ISBwrG4ZR48eLamtrf2+uLjYSEG9Xi/wTISFhQlWGXohyzO/CJlVl23KQRLbABoaHx+/Z1lUZ/Hq1SsJFj3JT3hmHx8fnydPTEzMj46OziHPW2w22wxeD4Kfgadh/4YEzU8Az4DhffAn5eXlX1y6dKkEoCTspAQ9Mjs7+0BBo8Fms1lkZGTsOo0QLLRNkvnR+fEJzIMHD0xtbW39CL8JTFtSbAOvBIyLHIGVm9VzE2gKuDAMSSpcT6KXyT137lx2cnLyMXhcGDb3wq3XuWF3d/fCzZs3P0c4v5eSknJQbYLo7Ox0gC2lpaVZ3Be67Th/dnZWoAJKsJC3XA8fPhxoamp6hMb+BaaMgWcUMGtszZjiFDNmvcDI91pzG0iY4ARwkwrxkcHBwUdgNrRMbnrqoRbkVzDcvn3bl5qaWsmcgFH4G8XdEGUWFhak51AuISFBnkoCTyFbyWKxCJwIxlC0fq2rq7tcVFRkRKskjh8/Lr0+kBjCCDV/knfdv3//WX19/R8IRRNemxlu4AXwKqM+EJwdj1HbPYSwh3sCPAJDABm2LLchCjS+5/kirKGhwWk0GrMuXrxYQuX9hm/XXTMXMY+srKwI5ApZrbYmZh7deEJhAUKjLe/pLTzSsCuHrK+1tbUJVe3P6upq87Vr174rKysrYHVj/uW+OH3IfEuw4F3ee/fuPQfAvwOs5yyE4CnlFOu7BWrTCWlreO6FACpBZGwUw4BvkANLobReHb3kGZYGsGzTq/zlO8AT1ru6uoZbWlqeA6gINJAfnz59OlVLoX8Jtebm5raampqfcMvQYgTknz9//sKVK1c+y83NTdIEuCnaKMuNGzd+6+np6cCtSTkAw9D9X8Dyh+dbgaaAC1XAnUlPTy+qqqq6cPbs2UzkmWjNljiDJzpwHFnCkW2yo6NjCKW8H54wjlezKvRT09LSTsJrz5w6dSoN+Yp51ADAPUj8VoDbDq9pxrwuJcNIYQllJTIi/xopBw/VA7DJp0+f9hA78CgL5F5C8J2CpoCj8sfA6WCe/FPRhsRlZmbGIs8Y4FFO5CJgtrSsvrRVGW1V93b1myoGnKAKEcHgnwsWpg1lNI0fphwrmdqbckeU18WrnlOjqp5/j7W3BWvfQVPKa5SBkcrYCNVB65TRTlWZ1lXiXVU5xbtlDb2SPaLWYwrgHIcqPg6Vc7fbX69Yoyqfa7/AeiegbWOEVhmsVcWDwPn224iDJgla8Hd38Hd3ELQgaIeI/hZgAIPEp0vmQJdoAAAAAElFTkSuQmCC) no-repeat 50% 0, */
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAXCAYAAACFxybfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAodJREFUeNrsVb1rWlEUv2pN/GqspKRSKFYXWzEloIWif0Fn6dJChQ7OQil0qd3EzcEpg0OgdHDr4CQODk7VRlLMEIVqApX4We0zflR9/Z1Ui4T34ksaaAYP/Hzc673n/M6550PG8zz73yKjn0wm83fDYDAwo9HINBrNnwOQg4MDs0ql2lQqlfdAWont7ng8Pjw+Ps44nc4G1pI9EXWaSOzt7TGO42aH5Pv7+08ajUZ0MBiUeXEZd7vdL5VK5fX29rZ+5tQiEmdxKrlcjsEYczgcynK5/BKKv/IXFNz/XiqVXkHdjUuRIA9SqdRD8or/R8Ez9fr9fqHVakUR4c2z0REjIQuHw2ZcrPBXLCA0RHTezEdHjIQqkUhEr9I4HOILhQLf6/VoOUFEvDMiQiToDx1Cdz+bzZ6bUFarlel0OkkVUK/XWbvdPoVer5fh3ntsfwJ+CJ2XA4p0Op1bpBgJyxDehQQ6nQ5DZXHBYDBZq9V+EhFUndnr9drEqoc2bwJbwGPgtohuVSwWe2Gz2TZMJpNgRKi6qtUqg2EWj8dTgUDgo0KhWPN4PC70EvXOzs67fD6/S6kiRIKeZA1YJ2MiJNbdbvfTUCjkV6vVK2hcDF8GI2w0GrGTkxM2HA5PDxaLxSOfz/cWEfk81X0XIMMFgJJ/srBjCgk8IdcfuVyuZ36//7nFYtkQyAMumUzuRiKRD0jMFLa+AZOpYwqgB/ziBVqmVBKUO7eAB/R0WG/Z7XaTVqtdbTabHJL6EK2djBaBPHA0NSqpbUsiMUeEBgpF4Q5AbZrmSJ/yEWgBTaBNHl9kdkgmMUeG7qwAq9PqovceTA3zlxlgsuswyuXsGsiSxJLEkoSY/BZgAEjRodi+uBruAAAAAElFTkSuQmCC) no-repeat 100% 0;
+
+}
+
+.button2::before {
+ content: '';
+ display: block;
+ position: absolute;
+ top: -10px;
+ left: -3px;
+ right: 0;
+ height: 23px;
+ background:
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAXCAYAAACS5bYWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABFpJREFUeNrUV0tIo1cUvpkYjQ4xxSA6DxuNqG0dtaUKOgs3s6i0dFd3pSsXdjeIixakiGA34sZuXCkoONLFwJTK4GMYLYXg29gatTpiXurkbd7vv9/5ub+IxuhA7eiFQ5Kbc8/57ne/e87/ywRBYLdl3GG3aNwqsLJ0k0tLS+fmcnNzWUVFBVMoFGx2djarvLxcm5OTw+bm5iytra2xc4ExNjY27iqVyvvwK6CpeDzuCYVC1urq6qDA9UcfPp+PHR4esmAwKK6tr68/l5/8rgQ2Ozub1dbWyiYmJooaGxt/VqvV38jlchX9l0qlwoFA4DWS/RKLxRxFRUVf5+XlPcaaT2AP0sVPJBL2SCRiAPBpu93+vKamZo/Ae71eZjabWV1dXVqw7CKwp43ksrCw8Bhg7MJ/PLDZ5PHx8cz29vYT5JGD/bSYLgTrcDgYdk6siSc6NjZWDaAe4ZoHQL+cmZnRpZPnhWDpD8kw7uKo9ML/NMCsd2tr61vkzboMrEyv138M7TyLRqMWMBsX3sMgaZhMpp+AR5EJrCocDpuEGzKg4x8khs+CVWxubvZfR9JkMik4nU7BarUKLpeLmLsKuwIqTLynp4fqmIzASrqQT09Pf1VVVfX0KsWZ6uHBwQHTaDSsoKAgo6/H4xHLEcrVyRwuEisrKzs5XrrIVAVwiUVDKRRrL+YI32ewdVhMApuHWvcj6vids6J2u90MF4yBHUZNgKoEBaRBQalJqFSqtJfUYrGIlQX+ydXVVTN+u0tKSjQNDQ1axJVl2iTypebn55d7e3v/kqoDgZU1NTU9LCws/Py0M+2ekuGincxJ3yF+18jIyHJLS0slQJUWFxczrBeBE0vE5tHRkbixlZWVfSR8gTX/0P5gH7S1tX3Z3t7+BW8qAvwSfr8/jA0EIRM/qoFtampqbW9vTw+XA+ojUruVd3Z2tvb19T2TQFEim81GgVJoCvvj4+NLOJZgaWmpemdn5y3a6BbcnJDAw8HBwac6ne6eqCW5XDwB3qVSqM9/DAwMUNy/eVLabT7sI25qwgujThCBhWE+mAt2yNc4SQKSZrOQQE1HS22VJkmPAGTr7+//fX19fRk+Zgq0trbGeFAKEAQT98BSqKOj47vm5uaa/Px8JeIk4GcaHh6eWlxcfAU/A8xG67BxAX3fwdcbYUpSDJ06Z49Ak8ZC3OL8f3YiA4PBYKdLQ2AJ9OTk5GpXV9cQiCVh79M94QtlPLDUE/1gPNrd3f0W33W4cBoco48zQuy/IZYAMnGqlSc4c66L9JruQUaSARXeT8HGKzxAqFBekni6+h46+pMzGiJGMgTOJh1yU/KNEGDvZWvfBawkA9ppwGg0mrRa7SOI2g+gxOgbJIpdFpj72PnxSnPX8vqRxTURgBQWKisrH+GThOm+CtAzoK/9/Uiqq/6hoaHfdnd3jaOjo7/yY7yxbwqkWy3sQzpS2C6YirwvUJk0y7hurfyGRrnduPGvAAMASmo8wzeVwfsAAAAASUVORK5CYII=) no-repeat 0 0,
+ /* url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAAAXCAYAAABOHMIhAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABiZJREFUeNrsWMtPlFcUvzPMwIDysLyRR4uATDHWCiVgSmRlios2DeiiXUFs0nRBd6arxqQhJDapkYXhP4BqDKTQhZaFNQSCaBEVJjwdHsNr5DUMDDPDzPT3u7nTDEgRKrKgc5KT+z3uufec33de99P4fD4RpL2RNgjB3kn35MkTeRERESFiYmLkGBoaKnQ6nWSNRvPPZFxr+vv7k6KioiIdDsfa8vLyQkFBgcP3Bnel3MDAQArWI0eFhISE87nb7bZ7PJ4VvLYuLi5O5+fnu9+kMNfq6+tLjIyMzMY6KeBEbK/XarXReI3lPDZMWcc4v7GxYV1dXR3Jy8ub2E5HPvJ6vRSSDH0ku1wuAfsEZOV1IEFHoeNFdHS0yMrK2knR0Lm5uR+hxLdQMjbwHTZbB41h8RGwCdc9MzMzneHh4bGJiYlf4SN8ijkfwqiIncCAAR7Iz2GPSShudjqdfeCeqampvwBQfFxc3JdYqwTv8gB8/F48A8BgKecE14V+L7ju2tpae05OzkuCCZvkPOj8mizmC6vVKtmPu+bx48cC3qI1mUyFUOyywWD4SHlELBaLJmCHNcwAghuAOujtuF4FqHO4nsX4EsAS3I4TJ04ME1h8PDE9PS09TYZoY2Pj1729vd6lpSVfkDYTPG0UkfNDRUWFgQ5Gb2Mh0N29e9eG/GQfHh4W8/PzwUy/ObQ/gMfVVlZW1iAiZdQxp3nv3LljRoL/5erVq1UIxzSiiVD9X4EDYATynCwAzGO858hCQRoaGmJFZNJz8YIcBc4BF966dau6sLAwBxVSJCUlCSThQwuU3W6XkYUok1Vzm5znQx5bbm9v77p+/frPeNSNRzZ/ISBwrG4ZR48eLamtrf2+uLjYSEG9Xi/wTISFhQlWGXohyzO/CJlVl23KQRLbABoaHx+/Z1lUZ/Hq1SsJFj3JT3hmHx8fnydPTEzMj46OziHPW2w22wxeD4Kfgadh/4YEzU8Az4DhffAn5eXlX1y6dKkEoCTspAQ9Mjs7+0BBo8Fms1lkZGTsOo0QLLRNkvnR+fEJzIMHD0xtbW39CL8JTFtSbAOvBIyLHIGVm9VzE2gKuDAMSSpcT6KXyT137lx2cnLyMXhcGDb3wq3XuWF3d/fCzZs3P0c4v5eSknJQbYLo7Ox0gC2lpaVZ3Be67Th/dnZWoAJKsJC3XA8fPhxoamp6hMb+BaaMgWcUMGtszZjiFDNmvcDI91pzG0iY4ARwkwrxkcHBwUdgNrRMbnrqoRbkVzDcvn3bl5qaWsmcgFH4G8XdEGUWFhak51AuISFBnkoCTyFbyWKxCJwIxlC0fq2rq7tcVFRkRKskjh8/Lr0+kBjCCDV/knfdv3//WX19/R8IRRNemxlu4AXwKqM+EJwdj1HbPYSwh3sCPAJDABm2LLchCjS+5/kirKGhwWk0GrMuXrxYQuX9hm/XXTMXMY+srKwI5ApZrbYmZh7deEJhAUKjLe/pLTzSsCuHrK+1tbUJVe3P6upq87Vr174rKysrYHVj/uW+OH3IfEuw4F3ee/fuPQfAvwOs5yyE4CnlFOu7BWrTCWlreO6FACpBZGwUw4BvkANLobReHb3kGZYGsGzTq/zlO8AT1ru6uoZbWlqeA6gINJAfnz59OlVLoX8Jtebm5raampqfcMvQYgTknz9//sKVK1c+y83NTdIEuCnaKMuNGzd+6+np6cCtSTkAw9D9X8Dyh+dbgaaAC1XAnUlPTy+qqqq6cPbs2UzkmWjNljiDJzpwHFnCkW2yo6NjCKW8H54wjlezKvRT09LSTsJrz5w6dSoN+Yp51ADAPUj8VoDbDq9pxrwuJcNIYQllJTIi/xopBw/VA7DJp0+f9hA78CgL5F5C8J2CpoCj8sfA6WCe/FPRhsRlZmbGIs8Y4FFO5CJgtrSsvrRVGW1V93b1myoGnKAKEcHgnwsWpg1lNI0fphwrmdqbckeU18WrnlOjqp5/j7W3BWvfQVPKa5SBkcrYCNVB65TRTlWZ1lXiXVU5xbtlDb2SPaLWYwrgHIcqPg6Vc7fbX69Yoyqfa7/AeiegbWOEVhmsVcWDwPn224iDJgla8Hd38Hd3ELQgaIeI/hZgAIPEp0vmQJdoAAAAAElFTkSuQmCC) no-repeat 50% 0, */
+ url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAXCAYAAACFxybfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAodJREFUeNrsVb1rWlEUv2pN/GqspKRSKFYXWzEloIWif0Fn6dJChQ7OQil0qd3EzcEpg0OgdHDr4CQODk7VRlLMEIVqApX4We0zflR9/Z1Ui4T34ksaaAYP/Hzc673n/M6550PG8zz73yKjn0wm83fDYDAwo9HINBrNnwOQg4MDs0ql2lQqlfdAWont7ng8Pjw+Ps44nc4G1pI9EXWaSOzt7TGO42aH5Pv7+08ajUZ0MBiUeXEZd7vdL5VK5fX29rZ+5tQiEmdxKrlcjsEYczgcynK5/BKKv/IXFNz/XiqVXkHdjUuRIA9SqdRD8or/R8Ez9fr9fqHVakUR4c2z0REjIQuHw2ZcrPBXLCA0RHTezEdHjIQqkUhEr9I4HOILhQLf6/VoOUFEvDMiQiToDx1Cdz+bzZ6bUFarlel0OkkVUK/XWbvdPoVer5fh3ntsfwJ+CJ2XA4p0Op1bpBgJyxDehQQ6nQ5DZXHBYDBZq9V+EhFUndnr9drEqoc2bwJbwGPgtohuVSwWe2Gz2TZMJpNgRKi6qtUqg2EWj8dTgUDgo0KhWPN4PC70EvXOzs67fD6/S6kiRIKeZA1YJ2MiJNbdbvfTUCjkV6vVK2hcDF8GI2w0GrGTkxM2HA5PDxaLxSOfz/cWEfk81X0XIMMFgJJ/srBjCgk8IdcfuVyuZ36//7nFYtkQyAMumUzuRiKRD0jMFLa+AZOpYwqgB/ziBVqmVBKUO7eAB/R0WG/Z7XaTVqtdbTabHJL6EK2djBaBPHA0NSqpbUsiMUeEBgpF4Q5AbZrmSJ/yEWgBTaBNHl9kdkgmMUeG7qwAq9PqovceTA3zlxlgsuswyuXsGsiSxJLEkoSY/BZgAEjRodi+uBruAAAAAElFTkSuQmCC) no-repeat 100% 0;
+
+}
\ No newline at end of file
diff --git a/app/ui/Chart.tsx b/app/ui/Chart.tsx
new file mode 100644
index 000000000..a887dfa4a
--- /dev/null
+++ b/app/ui/Chart.tsx
@@ -0,0 +1,53 @@
+import React, { useEffect } from 'react'
+import bb from 'billboard.js'
+import 'billboard.js/dist/theme/datalab.css'
+import 'billboard.js/dist/billboard.css'
+
+// Define the prop types for the component
+interface IChart {
+ // (string): The ID of the chart container.
+ current: string,
+ // (object): The chart options.
+ options: any,
+}
+
+const Chart = ({ current, options }: IChart): JSX.Element => {
+ let chartInstance: any = {}
+
+ // Destroy the chart instance
+ const destroy = () => {
+ if (chartInstance !== null) {
+ try {
+ chartInstance.destroy()
+ } catch (error) {
+ console.error('[ERROR] Internal billboard.js error', error)
+ } finally {
+ chartInstance = null
+ }
+ }
+ }
+
+ // Render the chart
+ const renderChart = () => {
+ if (current !== null) {
+ chartInstance = bb.generate({
+ ...options,
+ bindto: `#${current}`,
+ })
+ }
+ }
+
+ // Render the chart on mount
+ useEffect(() => {
+ renderChart()
+ return destroy
+ })
+
+ return (
+ <div>
+ <div id={current} data-testid='chart' />
+ </div>
+ )
+}
+
+export default Chart
diff --git a/app/ui/Checkbox.tsx b/app/ui/Checkbox.tsx
new file mode 100644
index 000000000..c586631ba
--- /dev/null
+++ b/app/ui/Checkbox.tsx
@@ -0,0 +1,77 @@
+import React, { memo } from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+// Define the prop types for the component
+interface ICheckbox {
+ label: string | JSX.Element,
+ hint?: string | JSX.Element,
+ id?: string,
+ name?: string,
+ className?: string,
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void,
+ checked?: boolean,
+ hintClassName?: string,
+ disabled?: boolean,
+}
+
+const Checkbox = ({
+ label, hint, id, name, className, onChange, checked, hintClassName, disabled,
+}: ICheckbox): JSX.Element => {
+ const identifier = id || name
+
+ return (
+ <div className={cx('relative flex items-start whitespace-pre-line', {
+ 'cursor-not-allowed': disabled,
+ }, className)}
+ >
+ <div className='flex items-center h-5'>
+ <input
+ id={identifier}
+ aria-describedby={identifier}
+ name={name}
+ disabled={disabled}
+ type='checkbox'
+ checked={checked}
+ onChange={onChange}
+ className={cx('focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-slate-800 dark:bg-slate-700 dark:checked:bg-indigo-600 rounded cursor-pointer', { '!cursor-not-allowed': disabled, 'opacity-50': disabled })}
+ />
+ </div>
+ <div className='ml-3 text-sm'>
+ <label htmlFor={identifier} className={cx('font-medium text-gray-700 dark:text-gray-200 cursor-pointer', { '!cursor-not-allowed': disabled })}>{label}</label>
+ {hint && (
+ <p id={`${identifier}-description`} className={cx('text-gray-500 dark:text-gray-300', hintClassName)}>{hint}</p>
+ )}
+ </div>
+ </div>
+ )
+}
+
+// Define the prop types for the component
+Checkbox.propTypes = {
+ label: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.node,
+ ]),
+ checked: PropTypes.bool.isRequired,
+ hint: PropTypes.string,
+ onChange: PropTypes.func,
+ id: PropTypes.string,
+ className: PropTypes.string,
+ name: PropTypes.string,
+ hintClassName: PropTypes.string,
+ disabled: PropTypes.bool,
+}
+
+// Define the default props for the component
+Checkbox.defaultProps = {
+ label: '',
+ hint: '',
+ onChange: () => { },
+ id: '',
+ className: '',
+ name: '',
+ hintClassName: '',
+ disabled: false,
+}
+
+export default memo(Checkbox)
diff --git a/app/ui/Dropdown.tsx b/app/ui/Dropdown.tsx
new file mode 100644
index 000000000..27a806d0f
--- /dev/null
+++ b/app/ui/Dropdown.tsx
@@ -0,0 +1,109 @@
+import React, { memo, Fragment } from 'react'
+import { Menu, Transition } from '@headlessui/react'
+import { ChevronDownIcon } from '@heroicons/react/24/solid'
+import cx from 'clsx'
+import _map from 'lodash/map'
+import _isEmpty from 'lodash/isEmpty'
+import PropTypes from 'prop-types'
+
+// Define the prop types for the component
+interface IDropdown {
+ title: string | number | React.ReactNode,
+ desc?: string | number | React.ReactNode,
+ className?: string,
+ /* (array): An array of items to be displayed in the dropdown menu. */
+ items: any[],
+ /* (function): A function that returns the label for each item in the dropdown menu. */
+ labelExtractor: (item: any) => string | number | React.ReactNode,
+ /* (function): A function that returns the key for each item in the dropdown menu. */
+ keyExtractor: (item: any) => string | number | React.ReactNode,
+ /* (function): A function that is called when an item is selected. */
+ onSelect: (item: any, e?: React.MouseEvent<HTMLElement>) => void | null,
+ aside?: boolean,
+ buttonClassName?: string,
+ selectItemClassName?: string,
+ menuItemsClassName?: string,
+}
+
+const Dropdown = ({
+ title, desc, className, items, labelExtractor, keyExtractor, onSelect, aside, buttonClassName, selectItemClassName, menuItemsClassName,
+}: IDropdown): JSX.Element => (
+ <Menu as='div' className={cx('relative inline-block text-left', className)}>
+ {({ open }) => (
+ <>
+ {!_isEmpty(desc) && (
+ <p className='mb-2 text-sm text-gray-900'>{desc}</p>
+ )}
+ <div>
+ <Menu.Button
+ className={cx(buttonClassName || 'inline-flex w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-sm font-medium text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800 hover:bg-gray-50 dark:hover:bg-slate-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500', {
+ 'justify-between': aside,
+ 'justify-center': !aside,
+ })}
+ >
+ {title}
+ <ChevronDownIcon className='-mr-1 ml-2 h-5 w-5' aria-hidden='true' />
+ </Menu.Button>
+ </div>
+
+ <Transition
+ show={open}
+ as={Fragment}
+ enter='transition ease-out duration-100'
+ enterFrom='transform opacity-0 scale-95'
+ enterTo='transform opacity-100 scale-100'
+ leave='transition ease-in duration-75'
+ leaveFrom='transform opacity-100 scale-100'
+ leaveTo='transform opacity-0 scale-95'
+ >
+ <Menu.Items static className={cx('z-50 py-1 origin-top-right absolute right-0 mt-2 w-40 min-w-max rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 focus:outline-none', menuItemsClassName)}>
+ {_map(items, item => (
+ <Menu.Item key={keyExtractor ? keyExtractor(item) : item}>
+ <span
+ className={selectItemClassName || 'text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800 block px-4 py-2 text-sm cursor-pointer hover:bg-gray-200 dark:hover:bg-slate-700'}
+ role='menuitem'
+ tabIndex={0}
+ onClick={(e: React.MouseEvent<HTMLElement>) => onSelect(item, e)}
+ >
+ {labelExtractor ? labelExtractor(item) : item}
+ </span>
+ </Menu.Item>
+ ))}
+ </Menu.Items>
+ </Transition>
+ </>
+ )}
+ </Menu>
+)
+
+Dropdown.propTypes = {
+ title: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.node,
+ ]).isRequired,
+ onSelect: PropTypes.func.isRequired,
+ items: PropTypes.arrayOf(PropTypes.oneOfType([
+ PropTypes.string, PropTypes.object,
+ ])),
+ className: PropTypes.string,
+ buttonClassName: PropTypes.string,
+ selectItemClassName: PropTypes.string,
+ labelExtractor: PropTypes.func,
+ keyExtractor: PropTypes.func,
+ aside: PropTypes.bool,
+ desc: PropTypes.string,
+ menuItemsClassName: PropTypes.string,
+}
+
+Dropdown.defaultProps = {
+ className: '',
+ buttonClassName: '',
+ selectItemClassName: '',
+ labelExtractor: null,
+ keyExtractor: null,
+ aside: false,
+ desc: '',
+ items: [],
+ menuItemsClassName: '',
+}
+
+export default memo(Dropdown)
diff --git a/app/ui/Flatpicker.css b/app/ui/Flatpicker.css
new file mode 100644
index 000000000..9ab1625d1
--- /dev/null
+++ b/app/ui/Flatpicker.css
@@ -0,0 +1,60 @@
+.flatpicker-custom .flatpickr-calendar.static {
+ position: absolute !important;
+}
+
+.flatpicker-custom .flatpickr-calendar.static.open {
+ left: -310px;
+ top: 30px;
+}
+
+.flatpicker-custom .flatpickr-day.selected,
+.flatpicker-custom .flatpickr-day.startRange,
+.flatpicker-custom .flatpickr-day.endRange,
+.flatpicker-custom .flatpickr-day.selected.inRange,
+.flatpicker-custom .flatpickr-day.startRange.inRange,
+.flatpicker-custom .flatpickr-day.endRange.inRange,
+.flatpicker-custom .flatpickr-day.selected:focus,
+.flatpicker-custom .flatpickr-day.startRange:focus,
+.flatpicker-custom .flatpickr-day.endRange:focus,
+.flatpicker-custom .flatpickr-day.selected:hover,
+.flatpicker-custom .flatpickr-day.startRange:hover,
+.flatpicker-custom .flatpickr-day.endRange:hover,
+.flatpicker-custom .flatpickr-day.selected.prevMonthDay,
+.flatpicker-custom .flatpickr-day.startRange.prevMonthDay,
+.flatpicker-custom .flatpickr-day.endRange.prevMonthDay,
+.flatpicker-custom .flatpickr-day.selected.nextMonthDay,
+.flatpicker-custom .flatpickr-day.startRange.nextMonthDay,
+.flatpicker-custom .flatpickr-day.endRange.nextMonthDay {
+ background: #1d4ed8;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ color: #fff;
+ border-color: #1d4ed8;
+}
+
+/* if you need other color on dark theme */
+
+.dark .flatpicker-custom .flatpickr-day.selected,
+.dark .flatpicker-custom .flatpickr-day.startRange,
+.dark .flatpicker-custom .flatpickr-day.endRange,
+.dark .flatpicker-custom .flatpickr-day.selected.inRange,
+.dark .flatpicker-custom .flatpickr-day.startRange.inRange,
+.dark .flatpicker-custom .flatpickr-day.endRange.inRange,
+.dark .flatpicker-custom .flatpickr-day.selected:focus,
+.dark .flatpicker-custom .flatpickr-day.startRange:focus,
+.dark .flatpicker-custom .flatpickr-day.endRange:focus,
+.dark .flatpicker-custom .flatpickr-day.selected:hover,
+.dark .flatpicker-custom .flatpickr-day.startRange:hover,
+.dark .flatpicker-custom .flatpickr-day.endRange:hover,
+.dark .flatpicker-custom .flatpickr-day.selected.prevMonthDay,
+.dark .flatpicker-custom .flatpickr-day.startRange.prevMonthDay,
+.dark .flatpicker-custom .flatpickr-day.endRange.prevMonthDay,
+.dark .flatpicker-custom .flatpickr-day.selected.nextMonthDay,
+.dark .flatpicker-custom .flatpickr-day.startRange.nextMonthDay,
+.dark .flatpicker-custom .flatpickr-day.endRange.nextMonthDay {
+ background: #4f46e5;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ color: #fff;
+ border-color: #4f46e5;
+}
\ No newline at end of file
diff --git a/app/ui/Flatpicker.tsx b/app/ui/Flatpicker.tsx
new file mode 100644
index 000000000..86d719769
--- /dev/null
+++ b/app/ui/Flatpicker.tsx
@@ -0,0 +1,152 @@
+/* eslint-disable react/no-unused-class-component-methods, class-methods-use-this */
+import React, { memo, createRef } from 'react'
+import Flatpickr from 'react-flatpickr'
+import _size from 'lodash/size'
+import _split from 'lodash/split'
+import PropTypes from 'prop-types'
+
+import { getItem } from 'utils/localstorage'
+import { MAX_MONTHS_IN_PAST } from 'redux/constants'
+import './Flatpicker.css'
+
+if (getItem('colour-theme') === 'light') {
+ // @ts-ignore
+ import('flatpickr/dist/themes/light.css')
+} else {
+ // @ts-ignore
+ import('flatpickr/dist/themes/dark.css')
+}
+
+interface FlatPickerProps {
+ onChange?: (dates: Date[]) => void,
+ value?: Date[],
+ maxDateMonths?: number,
+ options?: any,
+ maxRange?: number,
+}
+
+class FlatPicker extends React.Component<FlatPickerProps, {
+ maxDate: string,
+ minDate: Date | string,
+}> {
+ private calendar = createRef<Flatpickr>()
+
+ constructor(props: FlatPickerProps) {
+ super(props)
+ this.setCustomDate = this.setCustomDate.bind(this)
+ this.state = {
+ maxDate: 'today',
+ minDate: this.removeMonths(new Date(), props?.maxDateMonths || 24),
+ }
+ }
+
+ private setCustomDate(dates: Date[]) {
+ const { onChange, maxRange } = this.props
+
+ if (maxRange && maxRange > 0 && _size(dates) === 1) {
+ const maxDate = new Date(dates[0])
+ const minDate = new Date(dates[0])
+ maxDate.setDate(maxDate.getDate() + maxRange)
+ minDate.setDate(minDate.getDate() - maxRange)
+
+ this.setState({
+ maxDate: maxDate > new Date() ? 'today' : _split(maxDate.toISOString(), 'T')[0],
+ minDate: _split(minDate.toISOString(), 'T')[0],
+ })
+ }
+
+ if (_size(dates) === 2) {
+ onChange?.(dates)
+ }
+ }
+
+ private openCalendar = () => {
+ if (this.calendar.current) {
+ this.setState({
+ maxDate: 'today',
+ // eslint-disable-next-line react/destructuring-assignment
+ minDate: this.removeMonths(new Date(), this.props?.maxDateMonths || 24),
+ })
+ this.calendar.current.flatpickr.open()
+ }
+ }
+
+ private removeMonths(date: Date, months: number) {
+ const d = date.getDate()
+ date.setMonth(date.getMonth() - months)
+ if (date.getDate() !== d) {
+ date.setDate(0)
+ }
+ return date
+ }
+
+ public render() {
+ const { value = [], maxDateMonths = MAX_MONTHS_IN_PAST, options } = this.props
+ const { maxDate, minDate } = this.state
+
+ if (options) {
+ return (
+ <div>
+ <Flatpickr
+ id='calendar'
+ value={value}
+ options={{
+ mode: 'range',
+ maxDate: 'today',
+ minDate: this.removeMonths(new Date(), maxDateMonths),
+ showMonths: 1,
+ animate: true,
+ altInput: true,
+ position: 'auto',
+ ...options,
+ }}
+ onChange={this.setCustomDate}
+ placeholder='Select a date range...'
+ />
+ </div>
+ )
+ }
+
+ return (
+ <div className='h-0 flatpicker-custom'>
+ <Flatpickr
+ id='calendar'
+ data-testid='calendar'
+ value={value}
+ options={{
+ mode: 'range',
+ maxDate,
+ minDate,
+ showMonths: 1,
+ static: true,
+ animate: true,
+ altInput: true,
+ position: 'auto right',
+ altInputClass: 'hidden',
+ }}
+ ref={this.calendar}
+ className='invisible'
+ onChange={this.setCustomDate}
+ />
+ </div>
+ )
+ }
+}
+
+// @ts-ignore
+FlatPicker.propTypes = {
+ onChange: PropTypes.func,
+ value: PropTypes.arrayOf(PropTypes.instanceOf(Date)),
+ maxDateMonths: PropTypes.number,
+}
+
+// @ts-ignore
+FlatPicker.defaultProps = {
+ onChange: () => { },
+ value: [],
+ maxDateMonths: MAX_MONTHS_IN_PAST,
+ options: null,
+ maxRange: 0,
+}
+
+export default memo(FlatPicker)
diff --git a/app/ui/Input.tsx b/app/ui/Input.tsx
new file mode 100644
index 000000000..0f8fe68dc
--- /dev/null
+++ b/app/ui/Input.tsx
@@ -0,0 +1,112 @@
+import React, { memo } from 'react'
+import cx from 'clsx'
+import _isEmpty from 'lodash/isEmpty'
+import PropTypes from 'prop-types'
+import { ExclamationCircleIcon } from '@heroicons/react/24/solid'
+import Beta from 'ui/Beta'
+
+interface IInput {
+ label: string | JSX.Element,
+ hint?: string | JSX.Element,
+ placeholder?: string,
+ type?: string,
+ id?: string,
+ name?: string,
+ className?: string,
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void,
+ error?: string | null | boolean,
+ value?: string | number,
+ disabled?: boolean,
+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void,
+ isBeta?: boolean,
+}
+
+const Input = ({
+ label, hint, placeholder, type, id, name, className, onChange, error, value, disabled, onKeyDown, isBeta,
+}: IInput): JSX.Element => {
+ const identifier = id || name || type
+ const isError = !_isEmpty(error)
+
+ return (
+ <div className={className}>
+ <div
+ className={cx({
+ 'flex justify-between': label && hint,
+ })}
+ >
+ <label htmlFor={identifier} className='flex text-sm font-medium text-gray-700 dark:text-gray-200'>
+ {label}
+ {isBeta && (
+ <div className='ml-5'>
+ <Beta />
+ </div>
+ )}
+ </label>
+ </div>
+ <div className='mt-1 relative'>
+ <input
+ type={type}
+ value={value}
+ name={name}
+ id={identifier}
+ onChange={onChange}
+ onKeyDown={onKeyDown}
+ className={cx('shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 dark:text-gray-50 dark:placeholder-gray-400 dark:border-slate-800/25 dark:bg-slate-800 rounded-md', {
+ 'border-red-300 text-red-900 placeholder-red-300': isError,
+ 'cursor-text': disabled,
+ })}
+ placeholder={placeholder}
+ aria-describedby={`${identifier}-optional`}
+ disabled={disabled}
+ />
+ {isError && (
+ <div className='absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none'>
+ <ExclamationCircleIcon className='h-5 w-5 text-red-500' aria-hidden />
+ </div>
+ )}
+ </div>
+ <p className='mt-2 text-sm text-gray-500 dark:text-gray-300 whitespace-pre-line' id={`${identifier}-optional`}>{hint}</p>
+ {isError && (
+ <p className='mt-2 text-sm text-red-600 dark:text-red-500' id='email-error'>{error}</p>
+ )}
+ </div>
+ )
+}
+
+Input.propTypes = {
+ value: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.number,
+ ]),
+ label: PropTypes.string,
+ hint: PropTypes.string,
+ placeholder: PropTypes.string,
+ onChange: PropTypes.func,
+ onKeyDown: PropTypes.func,
+ id: PropTypes.string,
+ type: PropTypes.string,
+ className: PropTypes.string,
+ error: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.bool,
+ ]),
+ name: PropTypes.string,
+ disabled: PropTypes.bool,
+ isBeta: PropTypes.bool,
+}
+
+Input.defaultProps = {
+ value: null,
+ label: '',
+ hint: '',
+ placeholder: '',
+ onChange: () => { },
+ onKeyDown: () => { },
+ id: '',
+ type: '',
+ className: '',
+ error: null,
+ name: '',
+ disabled: false,
+ isBeta: false,
+}
+
+export default memo(Input)
diff --git a/app/ui/Loader.tsx b/app/ui/Loader.tsx
new file mode 100644
index 000000000..c2b47b4b5
--- /dev/null
+++ b/app/ui/Loader.tsx
@@ -0,0 +1,11 @@
+import React from 'react'
+import Spin from './icons/Spin'
+
+const Loader = () => (
+ <div className='flex justify-center pt-10'>
+ <Spin className='h-20 w-20 text-indigo-700' />
+ <span className='sr-only'>Loading...</span>
+ </div>
+)
+
+export default Loader
diff --git a/app/ui/Modal.tsx b/app/ui/Modal.tsx
new file mode 100644
index 000000000..9014e3f63
--- /dev/null
+++ b/app/ui/Modal.tsx
@@ -0,0 +1,173 @@
+import React, { Fragment, memo } from 'react'
+import PropTypes from 'prop-types'
+import cx from 'clsx'
+import { Dialog, Transition } from '@headlessui/react'
+import {
+ CheckIcon, ExclamationTriangleIcon, InformationCircleIcon, UserGroupIcon,
+} from '@heroicons/react/24/outline'
+import Beta from 'ui/Beta'
+
+interface IModal {
+ className?: string,
+ type: 'error' | 'success' | 'info' | 'warning' | 'confirmed',
+ title: string,
+ message: React.ReactNode | string,
+ isOpened: boolean,
+ onClose: () => void,
+ onSubmit?: () => void,
+ closeText?: string,
+ submitText?: string,
+ submitType?: 'regular' | 'danger',
+ size?: 'regular' | 'large',
+ customButtons?: JSX.Element,
+ isBeta?: boolean,
+}
+
+const Modal = ({
+ className, type, title, message, isOpened, onClose, onSubmit, closeText, submitText, submitType, size, customButtons, isBeta,
+}: IModal): JSX.Element => (
+ <Transition.Root show={isOpened} as={Fragment}>
+ <Dialog
+ as='div'
+ className={cx('fixed z-10 inset-0 overflow-y-auto', className)}
+ open={isOpened}
+ onClose={onClose}
+ static
+ >
+ <div className='flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0'>
+ <Transition.Child
+ as={Fragment}
+ enter='ease-out duration-300'
+ enterFrom='opacity-0'
+ enterTo='opacity-100'
+ leave='ease-in duration-200'
+ leaveFrom='opacity-100'
+ leaveTo='opacity-0'
+ >
+ <Dialog.Overlay className='fixed inset-0 bg-gray-500 bg-opacity-75 dark:bg-opacity-55 transition-opacity' />
+ </Transition.Child>
+
+ {/* This element is to trick the browser into centering the modal contents. */}
+ <span className='hidden sm:inline-block sm:align-middle sm:h-screen' aria-hidden='true'>
+ &#8203;
+ </span>
+ <Transition.Child
+ as={Fragment}
+ enter='ease-out duration-300'
+ enterFrom='opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95'
+ enterTo='opacity-100 translate-y-0 sm:scale-100'
+ leave='ease-in duration-200'
+ leaveFrom='opacity-100 translate-y-0 sm:scale-100'
+ leaveTo='opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95'
+ >
+ <div
+ className={cx('inline-block align-bottom bg-white dark:bg-slate-900 rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:px-5 sm:py-4', {
+ 'sm:max-w-lg sm:w-full': size === 'regular',
+ 'max-w-5xl w-full': size === 'large',
+ })}
+ >
+ <div className='sm:flex sm:items-start'>
+ {type === 'success' && (
+ <div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-green-100 sm:h-10 sm:w-10'>
+ <CheckIcon className='h-6 w-6 text-green-600' aria-hidden='true' />
+ </div>
+ )}
+ {type === 'error' && (
+ <div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:h-10 sm:w-10'>
+ <ExclamationTriangleIcon className='h-6 w-6 text-red-600' aria-hidden='true' />
+ </div>
+ )}
+ {type === 'info' && (
+ <div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center text-center justify-center h-12 w-12 rounded-full bg-blue-100 sm:h-10 sm:w-10'>
+ <InformationCircleIcon className='h-6 w-6 text-blue-600' aria-hidden='true' />
+ </div>
+ )}
+ {type === 'warning' && (
+ <div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-orange-100 sm:h-10 sm:w-10'>
+ <ExclamationTriangleIcon className='h-6 w-6 text-amber-600' aria-hidden='true' />
+ </div>
+ )}
+ {type === 'confirmed' && (
+ <div className='sm:mr-3 mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-green-100 sm:h-10 sm:w-10'>
+ <UserGroupIcon className='h-6 w-6 text-green-600' aria-hidden='true' />
+ </div>
+ )}
+ <div className='mt-3 text-center sm:mt-0 sm:text-left w-full'>
+ {title && (
+ <Dialog.Title as='h3' className='flex items-center text-lg leading-6 font-medium text-gray-900 dark:text-gray-50'>
+ {title}
+ {isBeta && (
+ <Beta className='ml-10' />
+ )}
+ </Dialog.Title>
+ )}
+ <div className='mt-2 text-sm text-gray-600 whitespace-pre-line dark:text-gray-200'>
+ {message}
+ </div>
+ </div>
+ </div>
+ <div className='px-4 py-3 sm:px-0 sm:pb-0 sm:flex sm:flex-row-reverse'>
+ {customButtons}
+ {submitText && (
+ <button
+ type='button'
+ className={cx('w-full inline-flex justify-center rounded-md shadow-sm px-4 py-2 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm', {
+ 'bg-indigo-600 hover:bg-indigo-700': submitType === 'regular',
+ 'bg-red-600 hover:bg-red-700': submitType === 'danger',
+ })}
+ onClick={onSubmit}
+ >
+ {submitText}
+ </button>
+ )}
+ {closeText && (
+ <button
+ type='button'
+ className='mt-3 w-full inline-flex justify-center rounded-md dark:border-none border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 dark:text-gray-50 dark:border-gray-600 dark:bg-slate-800 dark:hover:border-gray-600 dark:hover:bg-gray-700 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm'
+ onClick={onClose}
+ >
+ {closeText}
+ </button>
+ )}
+ </div>
+ </div>
+ </Transition.Child>
+ </div>
+ </Dialog>
+ </Transition.Root>
+)
+
+Modal.propTypes = {
+ type: PropTypes.oneOf(['error', 'success', 'info', 'warning', 'confirmed']),
+ title: PropTypes.string,
+ onClose: PropTypes.func.isRequired,
+ message: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.node,
+ ]),
+ className: PropTypes.string,
+ isOpened: PropTypes.bool,
+ onSubmit: PropTypes.func,
+ closeText: PropTypes.string,
+ submitText: PropTypes.string,
+ submitType: PropTypes.oneOf(['regular', 'danger']),
+ size: PropTypes.oneOf(['regular', 'large']),
+ customButtons: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
+ isBeta: PropTypes.bool,
+}
+
+Modal.defaultProps = {
+ className: '',
+ message: '',
+ isOpened: false,
+ onSubmit: () => { },
+ closeText: null,
+ submitText: null,
+ submitType: 'regular',
+ size: 'regular',
+ type: null,
+ title: null,
+ customButtons: null,
+ isBeta: false,
+}
+
+export default memo(Modal)
diff --git a/app/ui/Pagination.tsx b/app/ui/Pagination.tsx
new file mode 100644
index 000000000..efb88595e
--- /dev/null
+++ b/app/ui/Pagination.tsx
@@ -0,0 +1,96 @@
+import React, { memo } from 'react'
+import { ArrowLongLeftIcon, ArrowLongRightIcon } from '@heroicons/react/24/solid'
+import _map from 'lodash/map'
+import cx from 'clsx'
+import { useTranslation } from 'react-i18next'
+import PropTypes from 'prop-types'
+import { usePagination, DOTS } from 'hooks/usePagination'
+
+interface IPagination {
+ page: number,
+ setPage: (item: number) => void,
+ pageAmount: number,
+ total: number,
+ className?: string,
+}
+
+const Pagination = ({
+ page, setPage, pageAmount, total, className,
+}: IPagination): JSX.Element => {
+ const { t } = useTranslation('common')
+ const paginationRange = usePagination(total, page)
+
+ return (
+ <nav className={cx('border-t-0 border-gray-200 px-4 flex items-center justify-between sm:px-0', className)}>
+ <div className='-mt-px w-0 flex-1 flex group'>
+ {
+ page > 1 && (
+ <button
+ type='button'
+ onClick={() => setPage(page - 1)}
+ className='pt-4 pr-1 inline-flex items-center text-sm font-medium dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500'
+ >
+ <ArrowLongLeftIcon className='mr-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
+ { t('project.prev') }
+ </button>
+ )
+ }
+ </div>
+ <div className='hidden md:-mt-px md:flex'>
+ {
+ _map(paginationRange, (item, index) => {
+ if (item === DOTS) {
+ return (
+ <span className='border-transparent text-gray-500 dark:text-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium' key={item + index}>
+ { DOTS }
+ </span>
+ )
+ }
+
+ return (
+ <button
+ key={item}
+ type='button'
+ onClick={() => setPage(item)}
+ className={cx({
+ 'border-indigo-500 text-indigo-600 dark:text-indigo-400 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium': item === page,
+ 'border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium': item !== page,
+ })}
+ >
+ {item}
+ </button>
+ )
+ })
+ }
+ </div>
+ <div className='-mt-px w-0 flex-1 flex justify-end group'>
+ {
+ page !== pageAmount && (
+ <button
+ type='button'
+ onClick={() => setPage(page + 1)}
+ className='pt-4 pl-1 inline-flex items-center text-sm font-medium dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500'
+ >
+ { t('project.next') }
+ <ArrowLongRightIcon className='ml-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none' aria-hidden='true' />
+ </button>
+ )
+ }
+ </div>
+ </nav>
+ )
+}
+
+Pagination.propTypes = {
+ page: PropTypes.number.isRequired,
+ setPage: PropTypes.func.isRequired,
+ pageAmount: PropTypes.number.isRequired,
+ total: PropTypes.number.isRequired,
+ className: PropTypes.string,
+}
+
+Pagination.defaultProps = {
+ className: '',
+}
+
+export default memo(Pagination)
diff --git a/app/ui/Pin.tsx b/app/ui/Pin.tsx
new file mode 100644
index 000000000..ba1bd42e4
--- /dev/null
+++ b/app/ui/Pin.tsx
@@ -0,0 +1,60 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+interface IPin {
+ label: string,
+ className?: string,
+}
+
+const ActivePin = ({ label, className }: IPin): JSX.Element => (
+ <p className={cx('px-2 inline-flex text-sm leading-5 font-normal rounded-full bg-green-100 text-green-800 dark:bg-emerald-400 dark:text-green-900', className)}>
+ {label}
+ </p>
+)
+
+const InactivePin = ({ label, className }: IPin): JSX.Element => (
+ <p className={cx('px-2 inline-flex text-sm leading-5 font-normal rounded-full bg-red-100 text-red-800 dark:bg-red-300 dark:text-red-900', className)}>
+ {label}
+ </p>
+)
+
+const WarningPin = ({ label, className }: IPin): JSX.Element => (
+ <p className={cx('px-2 inline-flex text-sm leading-5 font-normal rounded-full bg-yellow-200 text-yellow-800 dark:bg-yellow-300 dark:text-yellow-900', className)}>
+ {label}
+ </p>
+)
+
+const CustomPin = ({ label, className }: IPin): JSX.Element => (
+ <p className={cx('px-2 inline-flex text-sm leading-5 font-normal rounded-full', className)}>
+ {label}
+ </p>
+)
+
+const propTypes = {
+ label: PropTypes.string.isRequired,
+ className: PropTypes.string,
+}
+
+const defaultProps = {
+ className: '',
+}
+
+ActivePin.propTypes = propTypes
+ActivePin.defaultProps = defaultProps
+
+WarningPin.propTypes = propTypes
+WarningPin.defaultProps = defaultProps
+
+InactivePin.propTypes = propTypes
+InactivePin.defaultProps = defaultProps
+
+CustomPin.propTypes = propTypes
+CustomPin.defaultProps = defaultProps
+
+export {
+ ActivePin,
+ InactivePin,
+ WarningPin,
+ CustomPin,
+}
diff --git a/app/ui/Progress.tsx b/app/ui/Progress.tsx
new file mode 100644
index 000000000..5e0388550
--- /dev/null
+++ b/app/ui/Progress.tsx
@@ -0,0 +1,20 @@
+import React, { memo } from 'react'
+import PropTypes from 'prop-types'
+
+interface IProgress {
+ now: number,
+}
+
+const Progress = ({ now }: IProgress): JSX.Element => (
+ <div className='relative' data-testid='progress'>
+ <div className='overflow-hidden h-2 text-xs flex rounded bg-blue-200 dark:bg-slate-600'>
+ <div style={{ width: `${now}%` }} className='shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-blue-500 dark:bg-blue-700' />
+ </div>
+ </div>
+)
+
+Progress.propTypes = {
+ now: PropTypes.number.isRequired,
+}
+
+export default memo(Progress)
diff --git a/app/ui/Select.tsx b/app/ui/Select.tsx
new file mode 100644
index 000000000..14a7a0f4e
--- /dev/null
+++ b/app/ui/Select.tsx
@@ -0,0 +1,120 @@
+import React, { Fragment, memo } from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+import { Listbox, Transition } from '@headlessui/react'
+import { CheckIcon, ChevronUpDownIcon } from '@heroicons/react/24/solid'
+import _map from 'lodash/map'
+
+interface ISelect {
+ title?: string,
+ label: string,
+ className?: string,
+ items: any[],
+ id?: string,
+ labelExtractor?: (item: any, index: number) => string,
+ keyExtractor?: (item: any, index: number) => string,
+ iconExtractor?: (item: any, index: number) => JSX.Element | null,
+ onSelect: (item: any) => void,
+}
+
+const Select = ({
+ title, label, className, items, labelExtractor, keyExtractor, iconExtractor, onSelect, id,
+}: ISelect): JSX.Element => (
+ // @ts-ignore
+ <Listbox id={id || ''} className={className} value={title} onChange={onSelect}>
+ {({ open }) => (
+ <>
+ <Listbox.Label className='block text-sm whitespace-pre-line font-medium text-gray-700 dark:text-gray-100'>{label}</Listbox.Label>
+ <div className='mt-1 relative'>
+ <Listbox.Button className='relative w-full bg-white border border-gray-300 dark:text-gray-50 dark:border-gray-800 dark:bg-slate-800 rounded-md shadow-sm pl-3 pr-10 py-2 text-left cursor-default focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm'>
+ <span className='block truncate first-letter:capitalize'>{title}</span>
+ <span className='absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none'>
+ <ChevronUpDownIcon className='h-5 w-5 text-gray-400' aria-hidden='true' />
+ </span>
+ </Listbox.Button>
+
+ <Transition
+ show={open}
+ as={Fragment}
+ leave='transition ease-in duration-100'
+ leaveFrom='opacity-100'
+ leaveTo='opacity-0'
+ >
+ <Listbox.Options
+ static
+ className='absolute z-10 mt-1 w-full bg-white dark:bg-slate-800 shadow-lg max-h-60 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm'
+ >
+ {_map(items, (item, index) => (
+ <Listbox.Option
+ key={keyExtractor ? keyExtractor(item, index) : item}
+ className={({ active }) => cx('dark:text-white cursor-default select-none relative py-2 pl-8 pr-4', {
+ 'text-white bg-indigo-600': active,
+ 'text-gray-900': !active,
+ })}
+ value={labelExtractor ? labelExtractor(item, index) : item}
+ >
+ {({ selected, active }) => (
+ <>
+ <span
+ className={cx('block truncate first-letter:capitalize', {
+ 'font-semibold': selected,
+ 'font-normal': !selected,
+ })}
+ >
+ {labelExtractor ? labelExtractor(item, index) : item}
+ </span>
+
+ {iconExtractor && (
+ <span
+ className={cx('absolute inset-y-0 left-0 flex items-center pl-1.5')}
+ >
+ {iconExtractor(item, index)}
+ </span>
+ )}
+
+ {selected && (
+ <span
+ className={cx('absolute inset-y-0 left-0 flex items-center pl-1.5', {
+ 'text-white': active,
+ 'text-indigo-600': !active,
+ })}
+ >
+ <CheckIcon className='h-5 w-5' aria-hidden='true' />
+ </span>
+ )}
+ </>
+ )}
+ </Listbox.Option>
+ ))}
+ </Listbox.Options>
+ </Transition>
+ </div>
+ </>
+ )}
+ </Listbox>
+)
+
+Select.propTypes = {
+ title: PropTypes.string.isRequired,
+ onSelect: PropTypes.func.isRequired,
+ items: PropTypes.arrayOf(PropTypes.oneOfType([
+ PropTypes.string, PropTypes.object,
+ ])),
+ className: PropTypes.string,
+ labelExtractor: PropTypes.func,
+ iconExtractor: PropTypes.func,
+ keyExtractor: PropTypes.func,
+ label: PropTypes.string,
+}
+
+Select.defaultProps = {
+ className: '',
+ labelExtractor: null,
+ keyExtractor: null,
+ iconExtractor: null,
+ label: '',
+ items: [],
+ id: '',
+}
+
+export default memo(Select)
diff --git a/app/ui/TimezonePicker.tsx b/app/ui/TimezonePicker.tsx
new file mode 100644
index 000000000..1f3cf0d0e
--- /dev/null
+++ b/app/ui/TimezonePicker.tsx
@@ -0,0 +1,112 @@
+import React from 'react'
+import spacetime from 'spacetime'
+import soft from 'timezone-soft'
+import { allTimezones } from 'react-timezone-select'
+import { useTranslation } from 'react-i18next'
+import PropTypes from 'prop-types'
+import _find from 'lodash/find'
+import _reduce from 'lodash/reduce'
+import _includes from 'lodash/includes'
+
+import Select from './Select'
+
+const options = _reduce(
+ Object.entries(allTimezones),
+ (selectOptions: any[], zone) => {
+ const now = spacetime.now(zone[0])
+ const tz = now.timezone()
+ const tzStrings = soft(zone[0])
+
+ const abbr = now.isDST() ? tzStrings[0].daylight?.abbr : tzStrings[0].standard?.abbr
+ const altName = now.isDST() ? tzStrings[0].daylight?.name : tzStrings[0].standard?.name
+
+ const min = tz.current.offset * 60
+ // eslint-disable-next-line prefer-template
+ const hr = `${(min / 60) ^ 0}:` + (min % 60 === 0 ? '00' : Math.abs(min % 60))
+ const label = `(GMT${_includes(hr, '-') ? hr : `+${hr}`}) ${zone[1]}`
+
+ selectOptions.push({
+ value: tz.name,
+ label,
+ offset: tz.current.offset,
+ abbrev: abbr,
+ altName,
+ })
+
+ return selectOptions
+ },
+ [],
+)
+ .sort((a, b) => a.offset - b.offset)
+
+interface ITimezoneSelect {
+ value: string | {
+ value: string,
+ label: string,
+ },
+ onChange: (item: string) => void,
+}
+
+const TimezoneSelect = ({
+ value, onChange,
+}: ITimezoneSelect): JSX.Element => {
+ const { t }: {
+ t: (key: string) => string,
+ } = useTranslation('common')
+ const labelExtractor = (option: {
+ label: string,
+ }) => option?.label
+ const keyExtractor = (option: {
+ value: string,
+ }) => option?.value
+
+ const handleChange = (label: string) => {
+ const tz = _find(options, timezone => labelExtractor(timezone) === label)
+ const key = keyExtractor(tz)
+ onChange(key)
+ }
+
+ const parseTimezone = (zone: string | {
+ value: string,
+ label: string,
+ }) => {
+ if (typeof zone === 'object' && zone.value && zone.label) {
+ return zone
+ }
+
+ if (typeof zone === 'string') {
+ return _find(options, tz => tz.value === zone)
+ }
+
+ if (zone.value && !zone.label) {
+ return _find(options, tz => tz.value === zone.value)
+ }
+
+ return null
+ }
+
+ return (
+ <Select
+ title={labelExtractor(parseTimezone(value))}
+ label={t('profileSettings.timezoneDesc')}
+ className='w-full'
+ items={options}
+ labelExtractor={labelExtractor}
+ keyExtractor={keyExtractor}
+ onSelect={handleChange}
+ />
+ )
+}
+
+TimezoneSelect.propTypes = {
+ value: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.object,
+ ]).isRequired,
+ onChange: PropTypes.func,
+}
+
+TimezoneSelect.defaultProps = {
+ onChange: () => { },
+}
+
+export default TimezoneSelect
diff --git a/app/ui/Tooltip.tsx b/app/ui/Tooltip.tsx
new file mode 100644
index 000000000..cb6c19789
--- /dev/null
+++ b/app/ui/Tooltip.tsx
@@ -0,0 +1,41 @@
+import React, { memo } from 'react'
+import PropTypes from 'prop-types'
+import { QuestionMarkCircleIcon } from '@heroicons/react/24/solid'
+import cx from 'clsx'
+
+interface ITooltip {
+ text: string | number | React.ReactNode,
+ className?: string,
+ tooltipNode?: JSX.Element,
+}
+
+const Tooltip = ({
+ text, className, tooltipNode,
+}: ITooltip): JSX.Element => (
+ <div className={cx('w-5 h-5 relative flex flex-col group items-center', className)} data-testid='tooltip-wrapper'>
+ {tooltipNode || (
+ <QuestionMarkCircleIcon className='w-5 h-5 text-gray-700 dark:text-gray-300' data-testid='tooltip-icon' />
+ )}
+ <div className='absolute bottom-0 flex-col mb-6 hidden group-hover:flex items-center'>
+ <span className='opacity-95 relative w-60 z-10 p-2 text-xs leading-none text-white whitespace-no-wrap bg-gray-700 shadow-lg rounded-md'>
+ {text}
+ </span>
+ <div className='w-3 h-3 -mt-2 rotate-45 bg-gray-700 opacity-95' />
+ </div>
+ </div>
+)
+
+Tooltip.propTypes = {
+ text: PropTypes.oneOfType([
+ PropTypes.string, PropTypes.number, PropTypes.node,
+ ]).isRequired,
+ className: PropTypes.string,
+ tooltipNode: PropTypes.node,
+}
+
+Tooltip.defaultProps = {
+ className: '',
+ tooltipNode: null,
+}
+
+export default memo(Tooltip)
diff --git a/app/ui/__test__/Alert.test.tsx b/app/ui/__test__/Alert.test.tsx
new file mode 100644
index 000000000..8c742f908
--- /dev/null
+++ b/app/ui/__test__/Alert.test.tsx
@@ -0,0 +1,50 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import AlertTemplate from '../Alert'
+import '@testing-library/jest-dom'
+
+describe('AlertTemplate', () => {
+ const closeMock = jest.fn()
+
+ afterEach(() => {
+ closeMock.mockClear()
+ })
+
+ test('renders an info alert', () => {
+ const { getByText, getByRole } = render(
+ <AlertTemplate message='This is an info alert' options={{ type: 'info' }} close={closeMock} />,
+ )
+
+ expect(getByText('This is an info alert')).toBeInTheDocument()
+ expect(getByRole('button')).toBeInTheDocument()
+
+ fireEvent.click(getByRole('button'))
+ expect(closeMock).toHaveBeenCalled()
+ })
+
+ test('renders a success alert', () => {
+ const { getByText, getByRole } = render(
+ <AlertTemplate message='This is a success alert' options={{ type: 'success' }} close={closeMock} />,
+ )
+
+ expect(getByText('This is a success alert')).toBeInTheDocument()
+ expect(getByRole('button')).toBeInTheDocument()
+
+ fireEvent.click(getByRole('button'))
+ expect(closeMock).toHaveBeenCalled()
+ })
+
+ test('renders an error alert', () => {
+ const { getByText, getByRole } = render(
+ <AlertTemplate message='This is an error alert' options={{ type: 'error' }} close={closeMock} />,
+ )
+
+ expect(getByText('This is an error alert')).toBeInTheDocument()
+ expect(getByRole('button')).toBeInTheDocument()
+
+ fireEvent.click(getByRole('button'))
+ expect(closeMock).toHaveBeenCalled()
+ })
+})
diff --git a/app/ui/__test__/Beta.test.tsx b/app/ui/__test__/Beta.test.tsx
new file mode 100644
index 000000000..b9f6b030f
--- /dev/null
+++ b/app/ui/__test__/Beta.test.tsx
@@ -0,0 +1,31 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import i18n from 'i18next'
+import Beta from '../Beta'
+
+describe('Beta component', () => {
+ beforeEach(() => {
+ i18n.init({
+ lng: 'en',
+ resources: {
+ en: {
+ beta: {
+ title: 'beta.title',
+ },
+ },
+ },
+ })
+ })
+
+ it('should render with a custom class name', () => {
+ const { getByText } = render(
+ <I18nextProvider i18n={i18n}>
+ <Beta className='custom-class-name' />
+ </I18nextProvider>,
+ )
+ expect(getByText('beta.title')).toHaveClass('custom-class-name')
+ })
+})
diff --git a/app/ui/__test__/Button.test.tsx b/app/ui/__test__/Button.test.tsx
new file mode 100644
index 000000000..d42343a72
--- /dev/null
+++ b/app/ui/__test__/Button.test.tsx
@@ -0,0 +1,90 @@
+/* eslint-disable import/no-extraneous-dependencies */
+/* eslint-disable testing-library/prefer-screen-queries */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import Button from '../Button'
+
+describe('Button component', () => {
+ it('renders with text', () => {
+ const { getByText } = render(<Button text='Click me' />)
+ expect(getByText('Click me')).toBeInTheDocument()
+ })
+
+ it('renders with children', () => {
+ const { getByText } = render(<Button><span>Click me</span></Button>)
+ expect(getByText('Click me')).toBeInTheDocument()
+ })
+
+ it('handles clicks', () => {
+ const onClick = jest.fn()
+ const { getByRole } = render(<Button onClick={onClick} />)
+ fireEvent.click(getByRole('button'))
+ expect(onClick).toHaveBeenCalledTimes(1)
+ })
+
+ it('renders a primary button', () => {
+ const { getByText } = render(<Button text='Click me' primary />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('bg-indigo-600')
+ })
+
+ it('renders a secondary button', () => {
+ const { getByText } = render(<Button text='Click me' secondary />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('bg-indigo-100')
+ })
+
+ it('renders a white button', () => {
+ const { getByText } = render(<Button text='Click me' white />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('bg-white')
+ })
+
+ it('renders a danger button', () => {
+ const { getByText } = render(<Button text='Click me' danger />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('bg-red-500')
+ })
+
+ it('renders a semi-danger button', () => {
+ const { getByText } = render(<Button text='Click me' semiDanger />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('border-red-600')
+ })
+
+ it('renders a small button', () => {
+ const { getByText } = render(<Button text='Click me' small />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('text-xs')
+ })
+
+ it('renders a semi-small button', () => {
+ const { getByText } = render(<Button text='Click me' semiSmall />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('text-sm')
+ })
+
+ it('renders a regular button', () => {
+ const { getByText } = render(<Button text='Click me' regular />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('text-sm')
+ })
+
+ it('renders a large button', () => {
+ const { getByText } = render(<Button text='Click me' large />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('text-sm')
+ })
+
+ it('renders a giant button', () => {
+ const { getByText } = render(<Button text='Click me' giant />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('text-base')
+ })
+
+ it('renders a button with no border', () => {
+ const { getByText } = render(<Button text='Click me' noBorder />)
+ const button = getByText('Click me')
+ expect(button).toHaveClass('border-none')
+ })
+})
diff --git a/app/ui/__test__/Checkbox.test.tsx b/app/ui/__test__/Checkbox.test.tsx
new file mode 100644
index 000000000..4297e61db
--- /dev/null
+++ b/app/ui/__test__/Checkbox.test.tsx
@@ -0,0 +1,28 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import Checkbox from '../Checkbox'
+
+describe('Checkbox', () => {
+ test('renders a checkbox', () => {
+ const { getByText } = render(<Checkbox label='Checkbox' checked />)
+ expect(getByText('Checkbox')).toBeInTheDocument()
+ })
+
+ test('renders a checkbox with a custom id', () => {
+ const { getByRole } = render(
+ <Checkbox id='custom-id' label='Checkbox' checked />,
+ )
+ expect(getByRole('checkbox')).toHaveAttribute('id', 'custom-id')
+ })
+
+ test('clicking the checkbox calls the onChange handler', () => {
+ const onChange = jest.fn()
+ const { getByRole } = render(
+ <Checkbox label='Checkbox' checked onChange={onChange} />,
+ )
+ fireEvent.click(getByRole('checkbox'))
+ expect(onChange).toHaveBeenCalled()
+ })
+})
diff --git a/app/ui/__test__/Dropdown.test.tsx b/app/ui/__test__/Dropdown.test.tsx
new file mode 100644
index 000000000..1f14f5cf0
--- /dev/null
+++ b/app/ui/__test__/Dropdown.test.tsx
@@ -0,0 +1,37 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import Dropdown from '../Dropdown'
+
+describe('Dropdown', () => {
+ const items = ['Item 1', 'Item 2', 'Item 3']
+ const onSelect = jest.fn()
+ const defaultProps = {
+ title: 'Dropdown Title',
+ onSelect,
+ items,
+ }
+
+ afterEach(() => {
+ jest.resetAllMocks()
+ })
+
+ it('should render without errors', () => {
+ const { getByText } = render(<Dropdown {...defaultProps} />)
+ expect(getByText(defaultProps.title)).toBeInTheDocument()
+ })
+
+ it('should render the description when provided', () => {
+ const description = 'Dropdown description'
+ const { getByText } = render(<Dropdown {...defaultProps} desc={description} />)
+ expect(getByText(description)).toBeInTheDocument()
+ })
+
+ it('should call onSelect when an item is clicked', () => {
+ const { getByText } = render(<Dropdown {...defaultProps} />)
+ const btnOpen = getByText(defaultProps.title)
+ fireEvent.click(btnOpen)
+ expect(getByText(items[0])).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Flatpicker.test.tsx b/app/ui/__test__/Flatpicker.test.tsx
new file mode 100644
index 000000000..5eca18ed2
--- /dev/null
+++ b/app/ui/__test__/Flatpicker.test.tsx
@@ -0,0 +1,12 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import Flatpicker from '../Flatpicker'
+
+describe('Flatpicker', () => {
+ test('renders a flatpicker', () => {
+ const { getByTestId } = render(<Flatpicker />)
+ expect(getByTestId('calendar')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Input.test.tsx b/app/ui/__test__/Input.test.tsx
new file mode 100644
index 000000000..d19c22a74
--- /dev/null
+++ b/app/ui/__test__/Input.test.tsx
@@ -0,0 +1,37 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import Input from '../Input'
+
+describe('Input component', () => {
+ it('renders label, input and hint', () => {
+ const { getAllByText, getByText, getByPlaceholderText } = render(
+ <Input label='Username' hint='Enter your username' placeholder='Enter your username' />,
+ )
+ expect(getAllByText(/username/i)).toHaveLength(2)
+ expect(getByText(/enter your username/i)).toBeInTheDocument()
+ expect(getByPlaceholderText(/enter your username/i)).toBeInTheDocument()
+ })
+
+ it('calls onChange callback when input value changes', () => {
+ const handleChange = jest.fn()
+ const { getByRole } = render(<Input label='Username' onChange={handleChange} />)
+ const input = getByRole('textbox')
+ fireEvent.change(input, { target: { value: 'John' } })
+ expect(handleChange).toHaveBeenCalledTimes(1)
+ })
+
+ it('displays error message when error prop is truthy', () => {
+ const { getByRole, getByText } = render(<Input label='Username' error='Username is required' />)
+ const input = getByRole('textbox')
+ fireEvent.blur(input)
+ expect(getByText(/username is required/i)).toBeInTheDocument()
+ })
+
+ it('disables input when disabled prop is true', () => {
+ const { getByRole } = render(<Input label='Username' disabled />)
+ const input = getByRole('textbox') as HTMLInputElement
+ expect(input).toBeDisabled()
+ })
+})
diff --git a/app/ui/__test__/Loader.test.tsx b/app/ui/__test__/Loader.test.tsx
new file mode 100644
index 000000000..5cae6b806
--- /dev/null
+++ b/app/ui/__test__/Loader.test.tsx
@@ -0,0 +1,12 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import Loader from '../Loader'
+
+describe('Loader', () => {
+ it('renders the loader with the "Loading..." text', () => {
+ const { getByText } = render(<Loader />)
+ expect(getByText('Loading...')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Modal.test.tsx b/app/ui/__test__/Modal.test.tsx
new file mode 100644
index 000000000..4daa588c4
--- /dev/null
+++ b/app/ui/__test__/Modal.test.tsx
@@ -0,0 +1,90 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import i18n from 'i18next'
+import Modal from '../Modal'
+
+describe('Modal component', () => {
+ const defaultProps: {
+ type: 'error' | 'success' | 'info' | 'warning' | 'confirmed',
+ title: string,
+ message: string,
+ isOpened: boolean,
+ onClose: () => void,
+ } = {
+ type: 'success',
+ title: 'Success',
+ message: 'Action completed successfully',
+ isOpened: true,
+ onClose: jest.fn(),
+ }
+
+ // use HOC to wrap component with I18nextProvider
+ const HocWithI18n = (props: any): JSX.Element => (
+ <I18nextProvider i18n={i18n}>
+ <Modal {...props} />
+ </I18nextProvider>
+ )
+
+ // initialize i18n before each test
+ beforeEach(() => {
+ i18n.init({
+ lng: 'en',
+ resources: {
+ en: {
+ beta: {
+ title: 'beta.title',
+ },
+ },
+ },
+ })
+ })
+
+ afterEach(() => {
+ jest.resetAllMocks()
+ })
+
+ it('renders with default props', () => {
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('Success')).toBeInTheDocument()
+ expect(getByText('Action completed successfully')).toBeInTheDocument()
+ })
+
+ it('calls onClose when close button is clicked', () => {
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} closeText='Close' />,
+ )
+ const closeButton = getByText('Close')
+ fireEvent.click(closeButton)
+ expect(defaultProps.onClose).toHaveBeenCalled()
+ })
+
+ it('calls onSubmit when submit button is clicked', () => {
+ const onSubmit = jest.fn()
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} onSubmit={onSubmit} submitText='Submit' />,
+ )
+ const submitButton = getByText('Submit')
+ fireEvent.click(submitButton)
+ expect(onSubmit).toHaveBeenCalled()
+ })
+
+ it('renders custom buttons', () => {
+ const customButtons = <button type='button'>Custom Button</button>
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} customButtons={customButtons} />,
+ )
+ expect(getByText('Custom Button')).toBeInTheDocument()
+ })
+
+ it('renders beta badge when isBeta prop is true', () => {
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} isBeta />,
+ )
+ expect(getByText('beta.title')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Pagination.test.tsx b/app/ui/__test__/Pagination.test.tsx
new file mode 100644
index 000000000..929eb40b1
--- /dev/null
+++ b/app/ui/__test__/Pagination.test.tsx
@@ -0,0 +1,109 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import i18n from 'i18next'
+import Pagination from '../Pagination'
+
+describe('Pagination', () => {
+ let defaultProps: {
+ page: number,
+ setPage: (item: number) => void,
+ pageAmount: number,
+ total: number,
+ } = {
+ page: 1,
+ setPage: () => {
+ defaultProps.page += 1
+ },
+ pageAmount: 10,
+ total: 100,
+ }
+
+ // use HOC to wrap component with I18nextProvider
+ const HocWithI18n = (props: any): JSX.Element => (
+ <I18nextProvider i18n={i18n}>
+ <Pagination {...props} />
+ </I18nextProvider>
+ )
+
+ // initialize i18n before each test
+ beforeEach(() => {
+ i18n.init({
+ lng: 'en',
+ resources: {
+ en: {
+ project: {
+ prev: 'project.prev',
+ next: 'project.next',
+ },
+ },
+ },
+ })
+ })
+
+ afterEach(() => {
+ jest.resetAllMocks()
+ defaultProps = {
+ page: 1,
+ setPage: () => {
+ defaultProps.page += 1
+ },
+ pageAmount: 10,
+ total: 100,
+ }
+ })
+
+ it('renders with default props', () => {
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('1')).toBeInTheDocument()
+ expect(getByText('10')).toBeInTheDocument()
+ expect(getByText('project.next')).toBeInTheDocument()
+ })
+
+ it('renders on page > 1', () => {
+ defaultProps.page = 2
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('1')).toBeInTheDocument()
+ expect(getByText('10')).toBeInTheDocument()
+ expect(getByText('project.prev')).toBeInTheDocument()
+ expect(getByText('project.next')).toBeInTheDocument()
+ })
+
+ it('renders on page > 1 and page < pageAmount', () => {
+ defaultProps.page = 5
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('1')).toBeInTheDocument()
+ expect(getByText('10')).toBeInTheDocument()
+ expect(getByText('project.prev')).toBeInTheDocument()
+ expect(getByText('project.next')).toBeInTheDocument()
+ })
+
+ it('renders on page = pageAmount', () => {
+ defaultProps.page = 10
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('1')).toBeInTheDocument()
+ expect(getByText('10')).toBeInTheDocument()
+ expect(getByText('project.prev')).toBeInTheDocument()
+ })
+
+ it('renders on page = pageAmount and pageAmount < total', () => {
+ defaultProps.page = 10
+ defaultProps.total = 101
+ const { getByText } = render(
+ <HocWithI18n {...defaultProps} />,
+ )
+ expect(getByText('1')).toBeInTheDocument()
+ expect(getByText('9')).toBeInTheDocument()
+ expect(getByText('project.prev')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Pin.test.tsx b/app/ui/__test__/Pin.test.tsx
new file mode 100644
index 000000000..8a2a26757
--- /dev/null
+++ b/app/ui/__test__/Pin.test.tsx
@@ -0,0 +1,42 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import {
+ WarningPin, ActivePin, InactivePin, CustomPin,
+} from '../Pin'
+
+describe('Pin', () => {
+ const defaultProps: {
+ label: string,
+ className?: string,
+ } = {
+ label: 'label',
+ className: 'className',
+ }
+
+ it('renders the warning pin', () => {
+ const { getByText } = render(<WarningPin {...defaultProps} />)
+ expect(getByText('label')).toBeInTheDocument()
+ })
+
+ it('renders the active pin', () => {
+ const { getByText } = render(<ActivePin {...defaultProps} />)
+ expect(getByText('label')).toBeInTheDocument()
+ })
+
+ it('renders the inactive pin', () => {
+ const { getByText } = render(<InactivePin {...defaultProps} />)
+ expect(getByText('label')).toBeInTheDocument()
+ })
+
+ it('renders the custom pin', () => {
+ const { getByText } = render(<CustomPin {...defaultProps} />)
+ expect(getByText('label')).toBeInTheDocument()
+ })
+
+ it('renders the custom pin with custom className', () => {
+ const { getByText } = render(<CustomPin {...defaultProps} className='customClassName' />)
+ expect(getByText('label')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Progress.test.tsx b/app/ui/__test__/Progress.test.tsx
new file mode 100644
index 000000000..7354454a3
--- /dev/null
+++ b/app/ui/__test__/Progress.test.tsx
@@ -0,0 +1,13 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+
+import Progress from '../Progress'
+
+describe('Progress', () => {
+ it('renders the progress bar', () => {
+ const { getByTestId } = render(<Progress now={10} />)
+ expect(getByTestId('progress')).toBeInTheDocument()
+ })
+})
diff --git a/app/ui/__test__/Select.test.tsx b/app/ui/__test__/Select.test.tsx
new file mode 100644
index 000000000..80409c605
--- /dev/null
+++ b/app/ui/__test__/Select.test.tsx
@@ -0,0 +1,55 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { fireEvent, render } from '@testing-library/react'
+import _forEach from 'lodash/forEach'
+import Select from '../Select'
+
+describe('Select', () => {
+ const defaultProps: {
+ title: string,
+ label: string,
+ className?: string,
+ items: any[],
+ id?: string,
+ labelExtractor?: (item: any, index: number) => string,
+ keyExtractor?: (item: any, index: number) => string,
+ iconExtractor?: (item: any, index: number) => JSX.Element | null,
+ onSelect: (item: any) => void,
+ } = {
+ title: 'Select Title',
+ label: 'Select',
+ items: [],
+ onSelect: () => {},
+ }
+
+ afterEach(() => {
+ jest.resetAllMocks()
+ })
+
+ it('should render without errors', () => {
+ const { getByText } = render(<Select {...defaultProps} />)
+ expect(getByText(defaultProps.label)).toBeInTheDocument()
+ })
+
+ it('should render the title when provided', () => {
+ const title = 'Select Title'
+ const { getByText } = render(<Select {...defaultProps} title={title} />)
+ expect(getByText(title)).toBeInTheDocument()
+ })
+
+ it('should render the description when provided', () => {
+ const description = 'Select description'
+ const { getByText } = render(<Select {...defaultProps} label={description} />)
+ expect(getByText(description)).toBeInTheDocument()
+ })
+
+ it('should render the items when provided', () => {
+ const items = ['Item 1', 'Item 2', 'Item 3']
+ const { getByText } = render(<Select {...defaultProps} items={items} />)
+ fireEvent.click(getByText(defaultProps.title))
+ _forEach(items, (item) => {
+ expect(getByText(item)).toBeInTheDocument()
+ })
+ })
+})
diff --git a/app/ui/__test__/TimezonePicker.test.tsx b/app/ui/__test__/TimezonePicker.test.tsx
new file mode 100644
index 000000000..b14e9fe3b
--- /dev/null
+++ b/app/ui/__test__/TimezonePicker.test.tsx
@@ -0,0 +1,62 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { fireEvent, render } from '@testing-library/react'
+import { I18nextProvider } from 'react-i18next'
+import i18n from 'i18next'
+
+import TimezonePicker from '../TimezonePicker'
+
+describe('TimezonePricker', () => {
+ const onChange = jest.fn()
+
+ afterEach(() => {
+ jest.clearAllMocks()
+ })
+
+ const HocWithI18n = (props: any): JSX.Element => (
+ <I18nextProvider i18n={i18n}>
+ <TimezonePicker {...props} />
+ </I18nextProvider>
+ )
+
+ // initialize i18n before each test
+ beforeEach(() => {
+ i18n.init({
+ lng: 'en',
+ resources: {
+ en: {
+ profileSettings: {
+ timezoneDesc: 'Timezone description',
+ },
+ },
+ },
+ })
+ })
+
+ afterEach(() => {
+ jest.resetAllMocks()
+ })
+
+ it('renders the component', () => {
+ const { getByText } = render(
+ <HocWithI18n value='Europe/London' onChange={onChange} />,
+ )
+
+ expect(getByText('(GMT+1:00) Edinburgh, London')).toBeInTheDocument()
+ })
+
+ it('calls onChange function when an option is selected', () => {
+ const { getByText, getByRole } = render(
+ <HocWithI18n value='Europe/London' onChange={onChange} />,
+ )
+
+ fireEvent.click(getByRole('button'))
+
+ const option = getByText('(GMT-7:00) Arizona')
+ fireEvent.click(option)
+
+ expect(onChange).toHaveBeenCalledTimes(1)
+ expect(onChange).toHaveBeenCalledWith('America/Phoenix')
+ })
+})
diff --git a/app/ui/__test__/Tooltip.test.tsx b/app/ui/__test__/Tooltip.test.tsx
new file mode 100644
index 000000000..0cf8b3b2f
--- /dev/null
+++ b/app/ui/__test__/Tooltip.test.tsx
@@ -0,0 +1,36 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render, fireEvent } from '@testing-library/react'
+import Tooltip from '../Tooltip'
+
+describe('Tooltip', () => {
+ it('should render the tooltip text when hovering over the icon', () => {
+ const text = 'This is a tooltip'
+ const { getByTestId, getByText } = render(
+ <Tooltip text={text} />,
+ )
+ const tooltipIcon = getByTestId('tooltip-icon')
+ fireEvent.mouseEnter(tooltipIcon)
+ const tooltipText = getByText(text)
+ expect(tooltipText).toBeInTheDocument()
+ })
+
+ it('should render a custom tooltip icon when provided', () => {
+ const CustomIcon = () => <div data-testid='custom-icon' />
+ const { getByTestId } = render(
+ <Tooltip tooltipNode={<CustomIcon />} text='dds' />,
+ )
+ const customIcon = getByTestId('custom-icon')
+ expect(customIcon).toBeInTheDocument()
+ })
+
+ it('should render a custom class name when provided', () => {
+ const className = 'custom-class'
+ const { getByTestId } = render(
+ <Tooltip text='Tooltip' className={className} />,
+ )
+ const tooltipWrapper = getByTestId('tooltip-wrapper')
+ expect(tooltipWrapper).toHaveClass(className)
+ })
+})
diff --git a/app/ui/icons/Angular.tsx b/app/ui/icons/Angular.tsx
new file mode 100644
index 000000000..e9965e8b4
--- /dev/null
+++ b/app/ui/icons/Angular.tsx
@@ -0,0 +1,33 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const Angular = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={className}
+ x='0px'
+ y='0px'
+ viewBox='0 0 250 250'
+ xmlSpace='preserve'
+ >
+ <title>
+ Angular
+ </title>
+ <g>
+ <polygon className='fill-[#DD0031]' points='125,30 125,30 125,30 31.9,63.2 46.1,186.3 125,230 125,230 125,230 203.9,186.3 218.1,63.2 ' />
+ <polygon className='fill-[#C3002F]' points='125,30 125,52.2 125,52.1 125,153.4 125,153.4 125,230 125,230 203.9,186.3 218.1,63.2 125,30 ' />
+ <path className='fill-[#FFFFFF]' d='M125,52.1L66.8,182.6h0h21.7h0l11.7-29.2h49.4l11.7,29.2h0h21.7h0L125,52.1L125,52.1L125,52.1L125,52.1 L125,52.1z M142,135.4H108l17-40.9L142,135.4z' />
+ </g>
+ </svg>
+)
+
+Angular.propTypes = {
+ className: PropTypes.string,
+}
+
+Angular.defaultProps = {
+ className: '',
+}
+
+export default Angular
diff --git a/app/ui/icons/BackgroundSvg.tsx b/app/ui/icons/BackgroundSvg.tsx
new file mode 100644
index 000000000..15274797d
--- /dev/null
+++ b/app/ui/icons/BackgroundSvg.tsx
@@ -0,0 +1,121 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+import { getItem } from 'utils/localstorage'
+
+const BackgroundSvg = ({ className, type, children }: {
+ className?: string,
+ type: 'shapes' | 'circle' | 'semicircle' | 'twolinecircle' | 'threecircle' | 'twolinecircle2',
+ children?: JSX.Element,
+}): JSX.Element => {
+ const theme = getItem('colour-theme') || 'light'
+
+ if (type === 'shapes') {
+ return (
+ <svg className={className} width='112' height='112' viewBox='0 0 112 112' fill='none' xmlns='http://www.w3.org/2000/svg'>
+ <g opacity='0.3'>
+ <path d='M96.9136 36.5354L110.571 36.3167L109.988 -0.000432262L73.6711 0.581055L73.8887 14.1353L96.5481 13.7725L96.9136 36.5354Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M72.7847 61.4494L86.339 61.2324L85.7559 24.9153L49.5422 25.4951L49.7615 39.1528L72.4209 38.79L72.7847 61.4494Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M48.5526 86.3665L62.2104 86.1478L61.6289 49.9341L25.3118 50.5156L25.5294 64.0699L48.1888 63.7071L48.5526 86.3665Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M24.4254 111.385L38.0832 111.167L37.5001 74.8497L1.18292 75.4312L1.40221 89.0889L24.0616 88.7261L24.4254 111.385Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ </g>
+ </svg>
+ )
+ }
+
+ if (type === 'circle') {
+ return (
+ <svg className={className} width='117' height='284' viewBox='0 0 117 284' fill='none' xmlns='http://www.w3.org/2000/svg'>
+ <g opacity='0.2' clipPath='url(#clip0_180_2875)'>
+ <path d='M142.097 0C63.5443 0 0 63.5443 0 142.097C0 220.456 63.5443 284.195 142.097 284.195C220.456 284.195 284.195 220.651 284.195 142.097C284 63.5443 220.456 0 142.097 0ZM142.097 275.034C68.6122 275.034 9.16129 215.583 9.16129 142.097C9.16129 68.6122 68.6122 9.16129 142.097 9.16129C215.583 9.16129 275.034 68.6122 275.034 142.097C275.034 215.388 215.388 275.034 142.097 275.034Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M142.099 30.6025C80.6984 30.6025 30.7986 80.5023 30.7986 141.902C30.7986 203.303 80.6984 253.202 142.099 253.202C203.499 253.202 253.398 203.498 253.398 142.097C253.398 80.5023 203.499 30.6025 142.099 30.6025ZM142.099 236.244C90.0546 236.244 47.7567 193.946 47.7567 141.902C47.7567 89.8585 90.0546 47.5607 142.099 47.5607C194.142 47.5607 236.44 89.8585 236.44 141.902C236.44 193.946 194.142 236.244 142.099 236.244Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M142.098 79.5278C107.597 79.5278 79.5284 107.596 79.5284 142.097C79.5284 176.598 107.402 204.667 142.098 204.667C176.599 204.667 204.668 176.598 204.668 142.097C204.473 107.596 176.599 79.5278 142.098 79.5278ZM142.098 175.624C123.581 175.624 108.572 160.615 108.572 142.097C108.572 123.58 123.581 108.571 142.098 108.571C160.616 108.571 175.624 123.58 175.624 142.097C175.624 160.615 160.616 175.624 142.098 175.624Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ </g>
+ <defs>
+ <clipPath id='clip0_180_2875'>
+ <rect width='284' height='284' fill='white' />
+ </clipPath>
+ </defs>
+ </svg>
+ )
+ }
+
+ if (type === 'semicircle') {
+ return (
+ <svg className={className} width='90' height='39' viewBox='0 0 90 39' fill='none' xmlns='http://www.w3.org/2000/svg'>
+ <path d='M67.0128 35.3452C75.976 35.3452 83.2775 28.1547 83.2775 19.3277C83.2775 10.5007 75.976 3.31012 67.0128 3.31012L67.0128 35.3452Z' fill={cx({ '#F7F7F7': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M41.6388 35.3452C50.602 35.3452 57.9035 28.1547 57.9035 19.3277C57.9035 10.5007 50.602 3.31012 41.6388 3.31012L41.6388 35.3452Z' fill={cx({ '#F7F7F7': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M16.2648 35.3452C25.228 35.3452 32.5295 28.1547 32.5295 19.3277C32.5295 10.5007 25.228 3.31012 16.2648 3.31012L16.2648 35.3452Z' fill={cx({ '#F7F7F7': theme === 'light', '#576780': theme === 'dark' })} />
+ </svg>
+ )
+ }
+
+ if (type === 'twolinecircle') {
+ return (
+ <svg className={className} width='103' height='100' viewBox='0 0 103 100' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} xmlns='http://www.w3.org/2000/svg'>
+ <g opacity='0.2' clipPath='url(#clip0_561_1360)'>
+ <path d='M97.5669 0C43.6308 0 0 43.6308 0 97.5669C0 151.369 43.6308 195.134 97.5669 195.134C151.369 195.134 195.134 151.503 195.134 97.5669C195 43.6308 151.369 0 97.5669 0ZM97.5669 188.844C47.1105 188.844 6.29032 148.023 6.29032 97.5669C6.29032 47.1105 47.1105 6.29032 97.5669 6.29032C148.023 6.29032 188.844 47.1105 188.844 97.5669C188.844 147.89 147.89 188.844 97.5669 188.844Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M97.5677 21.0125C55.4092 21.0125 21.147 55.2746 21.147 97.4332C21.147 139.592 55.4092 173.854 97.5677 173.854C139.726 173.854 173.988 139.726 173.988 97.567C173.988 55.2746 139.726 21.0125 97.5677 21.0125ZM97.5677 162.21C61.8333 162.21 32.7908 133.168 32.7908 97.4332C32.7908 61.6988 61.8333 32.6562 97.5677 32.6562C133.302 32.6562 162.345 61.6988 162.345 97.4332C162.345 133.168 133.302 162.21 97.5677 162.21Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ </g>
+ <defs>
+ <clipPath id='clip0_561_1360'>
+ <rect width='195' height='195' fill='white' />
+ </clipPath>
+ </defs>
+ </svg>
+ )
+ }
+
+ if (type === 'twolinecircle2') {
+ return (
+ <svg className={className} width='183' height='182' viewBox='0 0 183 182' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} xmlns='http://www.w3.org/2000/svg'>
+ <g opacity='0.2' clipPath='url(#clip0_561_1038)'>
+ <path d='M142.097 -102C63.5443 -102 0 -38.4557 0 40.0975C0 118.456 63.5443 182.195 142.097 182.195C220.456 182.195 284.195 118.651 284.195 40.0975C284 -38.4557 220.456 -102 142.097 -102ZM142.097 173.034C68.6122 173.034 9.16129 113.583 9.16129 40.0975C9.16129 -33.3878 68.6122 -92.8387 142.097 -92.8387C215.583 -92.8387 275.034 -33.3878 275.034 40.0975C275.034 113.388 215.388 173.034 142.097 173.034Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M142.099 -71.3972C80.6984 -71.3972 30.7986 -21.4974 30.7986 39.9027C30.7986 101.303 80.6984 151.203 142.099 151.203C203.499 151.203 253.398 101.498 253.398 40.0976C253.398 -21.4974 203.499 -71.3972 142.099 -71.3972ZM142.099 134.245C90.0546 134.245 47.7567 91.9466 47.7567 39.9027C47.7567 -12.1412 90.0546 -54.4391 142.099 -54.4391C194.142 -54.4391 236.44 -12.1412 236.44 39.9027C236.44 91.9466 194.142 134.245 142.099 134.245Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ </g>
+ <defs>
+ <clipPath id='clip0_561_1038'>
+ <rect width='284' height='284' fill='white' transform='translate(0 -102)' />
+ </clipPath>
+ </defs>
+ </svg>
+ )
+ }
+
+ if (type === 'threecircle') {
+ return (
+ <svg width='115' height='205' viewBox='0 0 115 205' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} xmlns='http://www.w3.org/2000/svg'>
+ <g opacity='0.2' clipPath='url(#clip0_561_1345)'>
+ <path d='M102.57 0C45.8682 0 0 45.8682 0 102.57C0 159.132 45.8682 205.141 102.57 205.141C159.132 205.141 205.141 159.272 205.141 102.57C205 45.8682 159.132 0 102.57 0ZM102.57 198.528C49.5264 198.528 6.6129 155.614 6.6129 102.57C6.6129 49.5264 49.5264 6.6129 102.57 6.6129C155.614 6.6129 198.528 49.5264 198.528 102.57C198.528 155.474 155.474 198.528 102.57 198.528Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M102.571 22.0898C58.2507 22.0898 22.2314 58.1091 22.2314 102.43C22.2314 146.75 58.2507 182.769 102.571 182.769C146.892 182.769 182.911 146.891 182.911 102.57C182.911 58.1091 146.892 22.0898 102.571 22.0898ZM102.571 170.528C65.0043 170.528 34.4724 139.997 34.4724 102.43C34.4724 64.8627 65.0043 34.3307 102.571 34.3307C140.138 34.3307 170.67 64.8627 170.67 102.43C170.67 139.997 140.138 170.528 102.571 170.528Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ <path d='M102.571 57.4053C77.6668 57.4053 57.406 77.6661 57.406 102.57C57.406 127.474 77.5261 147.735 102.571 147.735C127.475 147.735 147.735 127.474 147.735 102.57C147.595 77.6661 127.475 57.4053 102.571 57.4053ZM102.571 126.77C89.2042 126.77 78.3703 115.936 78.3703 102.57C78.3703 89.2035 89.2042 78.3696 102.571 78.3696C115.937 78.3696 126.771 89.2035 126.771 102.57C126.771 115.936 115.937 126.77 102.571 126.77Z' fill={cx({ '#E4E4E4': theme === 'light', '#576780': theme === 'dark' })} />
+ </g>
+ <defs>
+ <clipPath id='clip0_561_1345'>
+ <rect width='205' height='205' fill='white' />
+ </clipPath>
+ </defs>
+ </svg>
+ )
+ }
+
+ return (
+ <svg width='112' height='112' viewBox='0 0 112 112' fill='none' xmlns='http://www.w3.org/2000/svg'>
+ { children }
+ </svg>
+ )
+}
+
+BackgroundSvg.propTypes = {
+ className: PropTypes.string,
+ type: PropTypes.oneOf(['shapes', 'circle', 'semicircle', 'twolinecircle', 'threecircle', 'twolinecircle2']),
+ children: PropTypes.node,
+}
+
+BackgroundSvg.defaultProps = {
+ className: '',
+ type: 'shapes',
+ children: null,
+}
+
+export default BackgroundSvg
diff --git a/app/ui/icons/Cloudflare.tsx b/app/ui/icons/Cloudflare.tsx
new file mode 100644
index 000000000..2c574e4f1
--- /dev/null
+++ b/app/ui/icons/Cloudflare.tsx
@@ -0,0 +1,44 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Cloudflare = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => {
+ const cn = cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })
+
+ return (
+ <svg className={className} viewBox='0 0 602 203' fill='none'>
+ <title>
+ Cloudflare
+ </title>
+ <path d='M510.338 128.167L511.809 123.081C513.562 117.031 512.91 111.438 509.969 107.329C507.262 103.544 502.752 101.315 497.274 101.056L393.528 99.7432C393.206 99.7369 392.89 99.655 392.606 99.504C392.321 99.353 392.077 99.1373 391.891 98.8742C391.71 98.6023 391.594 98.2918 391.553 97.9674C391.513 97.6429 391.549 97.3135 391.658 97.0053C391.836 96.4971 392.159 96.0521 392.587 95.7254C393.016 95.3987 393.53 95.2045 394.068 95.1668L498.775 93.8398C511.196 93.2698 524.644 83.1988 529.352 70.9178L535.323 55.3265C535.568 54.6672 535.624 53.9529 535.485 53.2637C528.705 22.7889 501.487 0 468.944 0C438.96 0 413.501 19.3385 404.369 46.2179C398.198 41.5895 390.504 39.4618 382.83 40.2608C368.445 41.6882 356.879 53.2613 355.455 67.6379C355.09 71.2277 355.357 74.8538 356.246 78.3513C332.747 79.0358 313.902 98.2738 313.902 121.922C313.905 124.033 314.061 126.141 314.369 128.23C314.437 128.712 314.676 129.154 315.043 129.475C315.41 129.796 315.881 129.974 316.368 129.977L507.902 130.001C507.92 130.002 507.938 130.002 507.956 130.001C508.498 129.991 509.022 129.808 509.451 129.478C509.88 129.147 510.191 128.688 510.338 128.167Z' fill='#F6821F' />
+ <path d='M544.899 56.4571C543.938 56.4571 542.98 56.4813 542.026 56.5295C541.872 56.5405 541.721 56.5736 541.577 56.6277C541.327 56.7131 541.101 56.8578 540.919 57.0494C540.737 57.241 540.604 57.4739 540.532 57.728L536.453 71.8078C534.699 77.8584 535.351 83.4464 538.295 87.5556C541 91.3448 545.51 93.5688 550.987 93.8281L573.104 95.155C573.415 95.1653 573.719 95.2479 573.993 95.3963C574.266 95.5448 574.501 95.7549 574.679 96.0101C574.863 96.2834 574.98 96.5959 575.02 96.9225C575.061 97.2492 575.024 97.5808 574.913 97.8906C574.735 98.3978 574.412 98.842 573.985 99.1686C573.558 99.4951 573.044 99.69 572.508 99.7292L549.528 101.056C537.051 101.631 523.606 111.697 518.902 123.978L517.242 128.314C517.173 128.495 517.147 128.69 517.168 128.883C517.189 129.076 517.255 129.262 517.362 129.424C517.469 129.586 517.612 129.721 517.781 129.817C517.95 129.912 518.14 129.967 518.334 129.975C518.355 129.975 518.374 129.975 518.395 129.975H597.467C597.927 129.979 598.375 129.833 598.744 129.558C599.112 129.283 599.381 128.896 599.508 128.454C600.909 123.459 601.617 118.296 601.612 113.108C601.603 81.8228 576.215 56.4571 544.899 56.4571Z' fill='#FBAD41' />
+ <path d='M66.9595 153.39H80.4491V190.214H104.022V202.024H66.9595V153.39Z' className={cn} />
+ <path d='M117.993 177.847V177.709C117.993 163.744 129.257 152.416 144.276 152.416C159.295 152.416 170.418 163.604 170.418 177.569V177.709C170.418 191.674 159.152 202.995 144.138 202.995C129.124 202.995 117.993 191.812 117.993 177.847ZM156.65 177.847V177.709C156.65 170.701 151.577 164.575 144.138 164.575C136.767 164.575 131.829 170.551 131.829 177.569V177.709C131.829 184.718 136.905 190.841 144.276 190.841C151.715 190.841 156.65 184.865 156.65 177.847Z' className={cn} />
+ <path d='M186.928 180.695V153.388H200.626V180.419C200.626 187.427 204.173 190.77 209.594 190.77C215.016 190.77 218.562 187.575 218.562 180.765V153.388H232.262V180.34C232.262 196.043 223.294 202.918 209.456 202.918C195.618 202.918 186.928 195.91 186.928 180.688' className={cn} />
+ <path d='M252.906 153.392H271.679C289.064 153.392 299.145 163.396 299.145 177.429V177.571C299.145 191.602 288.924 202.026 271.403 202.026H252.906V153.392ZM271.89 190.07C279.958 190.07 285.307 185.631 285.307 177.77V177.632C285.307 169.853 279.958 165.335 271.89 165.335H266.396V190.074L271.89 190.07Z' className={cn} />
+ <path d='M318.75 153.39H357.686V165.204H332.24V173.469H355.254V184.654H332.24V202.024H318.75V153.39Z' className={cn} />
+ <path d='M376.457 153.39H389.946V190.214H413.519V202.024H376.457V153.39Z' className={cn} />
+ <path d='M448.768 153.042H461.766L482.489 202.024H468.027L464.478 193.338H445.703L442.229 202.024H428.045L448.768 153.042ZM460.586 182.849L455.162 169.021L449.668 182.849H460.586Z' className={cn} />
+ <path d='M499.865 153.388H522.879C530.323 153.388 535.464 155.336 538.732 158.67C541.587 161.45 543.045 165.211 543.045 169.998V170.135C543.045 177.567 539.071 182.501 533.032 185.07L544.645 202.026H529.065L519.262 187.294H513.354V202.026H499.865V153.388ZM522.255 176.735C526.844 176.735 529.488 174.511 529.488 170.967V170.829C529.488 167.007 526.706 165.064 522.182 165.064H513.354V176.744L522.255 176.735Z' className={cn} />
+ <path d='M562.508 153.39H601.652V164.856H575.86V172.217H599.223V182.849H575.86V190.562H602V202.024H562.508V153.39Z' className={cn} />
+ <path d='M37.425 183.547C35.536 187.815 31.5615 190.838 26.2802 190.838C18.9065 190.838 13.8333 184.724 13.8333 177.707V177.567C13.8333 170.558 18.7686 164.573 26.14 164.573C31.6971 164.573 35.9287 167.989 37.7149 172.635H51.9339C49.6568 161.06 39.4776 152.418 26.2802 152.418C11.2593 152.418 0 163.753 0 177.707V177.845C0 191.81 11.1214 203 26.14 203C38.9867 203 49.0279 194.688 51.6768 183.549L37.425 183.547Z' className={cn} />
+ </svg>
+ )
+}
+
+Cloudflare.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Cloudflare.defaultProps = {
+ className: '',
+}
+
+export default Cloudflare
diff --git a/app/ui/icons/Gatsby.tsx b/app/ui/icons/Gatsby.tsx
new file mode 100644
index 000000000..998280a0f
--- /dev/null
+++ b/app/ui/icons/Gatsby.tsx
@@ -0,0 +1,47 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Gatsby = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ viewBox='0 0 106 28'
+ >
+ <title>
+ Gatsby
+ </title>
+ <g>
+ <path d='M14,0C6.3,0,0,6.3,0,14s6.3,14,14,14s14-6.3,14-14S21.7,0,14,0z M6.2,21.8c-2.1-2.1-3.2-4.9-3.2-7.6L13.9,25 C11.1,24.9,8.3,23.9,6.2,21.8z M16.4,24.7L3.3,11.6C4.4,6.7,8.8,3,14,3c3.7,0,6.9,1.8,8.9,4.5l-1.5,1.3C19.7,6.5,17,5,14,5 c-3.9,0-7.2,2.5-8.5,6L17,22.5c2.9-1,5.1-3.5,5.8-6.5H18v-2h7C25,19.2,21.3,23.6,16.4,24.7z' />
+ </g>
+ <g
+ className={cx({
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ >
+ <path d='M62.9,12h2.8v10h-2.8v-1.3c-1,1.5-2.3,1.6-3.1,1.6c-3.1,0-5.1-2.4-5.1-5.3c0-3,2-5.3,4.9-5.3c0.8,0,2.3,0.1,3.2,1.6V12z M57.7,17c0,1.6,1.1,2.8,2.8,2.8c1.6,0,2.8-1.2,2.8-2.8c0-1.6-1.1-2.8-2.8-2.8C58.9,14.2,57.7,15.4,57.7,17z' />
+ <path d='M71.2,14.4V22h-2.8v-7.6h-1.1V12h1.1V8.6h2.8V12h1.9v2.4H71.2z' />
+ <path d='M79.7,14.4c-0.7-0.6-1.3-0.7-1.6-0.7c-0.7,0-1.1,0.3-1.1,0.8c0,0.3,0.1,0.6,0.9,0.9l0.7,0.2c0.8,0.3,2,0.6,2.5,1.4 c0.3,0.4,0.5,1,0.5,1.7c0,0.9-0.3,1.8-1.1,2.5c-0.8,0.7-1.8,1.1-3,1.1c-2.1,0-3.2-1-3.9-1.7l1.5-1.7c0.6,0.6,1.4,1.2,2.2,1.2 c0.8,0,1.4-0.4,1.4-1.1c0-0.6-0.5-0.9-0.9-1l-0.6-0.2c-0.7-0.3-1.5-0.6-2.1-1.2c-0.5-0.5-0.8-1.1-0.8-1.9c0-1,0.5-1.8,1-2.3 c0.8-0.6,1.8-0.7,2.6-0.7c0.7,0,1.9,0.1,3.2,1.1L79.7,14.4z' />
+ <path d='M85.8,13.3c1-1.4,2.4-1.6,3.2-1.6c2.9,0,4.9,2.3,4.9,5.3c0,3-2,5.3-5,5.3c-0.6,0-2.1-0.1-3.2-1.6V22H83V5.2h2.8V13.3z M85.5,17c0,1.6,1.1,2.8,2.8,2.8c1.6,0,2.8-1.2,2.8-2.8c0-1.6-1.1-2.8-2.8-2.8C86.6,14.2,85.5,15.4,85.5,17z' />
+ <path d='M98.5,20.5L93.7,12H97l3.1,5.7l2.8-5.7h3.2l-8,15.3h-3.2L98.5,20.5z' />
+ <path d='M54,13.7h-2.8c0,0-4.2,0-4.2,0v2.8h3.7c-0.6,1.9-2,3.2-4.6,3.2c-2.9,0-5-2.4-5-5.3S43.1,9,46,9c1.6,0,3.2,0.8,4.2,2.1 l2.3-1.5C51,7.5,48.6,6.3,46,6.3c-4.4,0-8,3.6-8,8.1s3.4,8.1,8,8.1s8-3.6,8-8.1C54.1,14.1,54,13.9,54,13.7z' />
+ </g>
+ </svg>
+)
+
+Gatsby.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Gatsby.defaultProps = {
+ className: '',
+}
+
+export default Gatsby
diff --git a/app/ui/icons/Ghost.tsx b/app/ui/icons/Ghost.tsx
new file mode 100644
index 000000000..bdd5a0bbb
--- /dev/null
+++ b/app/ui/icons/Ghost.tsx
@@ -0,0 +1,46 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Ghost = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => {
+ const cn = cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })
+
+ return (
+ <svg className={className} viewBox='0 0 671.98 288'>
+ <title>
+ Ghost
+ </title>
+ <g opacity='0.7'>
+ <rect x='112.197' y='168.302' className={cn} width='31.703' height='15.852' />
+ <rect x='159.75' y='168.302' className={cn} width='31.683' height='15.852' />
+ <rect x='112.173' y='136.599' className={cn} width='79.27' height='15.852' />
+ <rect x='112.197' y='104.898' className={cn} width='47.559' height='15.851' />
+ <rect x='175.602' y='104.898' className={cn} width='15.851' height='15.851' />
+ </g>
+ <g>
+ <path className={cn} d='M421.575,104.807c-25.458,0-38.606,18.003-38.606,40.211c0,22.209,12.824,40.214,38.606,40.214 s38.606-18.005,38.606-40.214C460.182,122.81,447.032,104.807,421.575,104.807z M440.835,145.09L440.835,145.09 c-0.018,14.281-4.83,25.848-19.26,25.848s-19.243-11.566-19.258-25.848l0,0c0-0.012,0-0.023,0-0.035s0-0.023,0-0.036l0,0 c0.015-14.28,4.829-25.846,19.259-25.846c14.429,0,19.241,11.566,19.259,25.846l0,0c0,0.013,0,0.024,0,0.036 S440.835,145.078,440.835,145.09z' />
+ <path className={cn} d='M307.584,184.153V72.975c0,0,14.664-2.083,15.801-2.236c1.288-0.174,2.998,0.743,2.998,2.556 c0,1.985,0,41.214,0,41.214c3.043-2.893,6.394-5.225,10.046-7.002c3.655-1.775,7.941-2.664,12.865-2.664 c4.263,0,8.04,0.723,11.338,2.17c3.3,1.444,6.053,3.476,8.26,6.087c2.207,2.615,3.882,5.735,5.024,9.363 c1.141,3.628,1.712,7.624,1.712,11.988v49.701h-18.8v-49.701c0-4.769-1.104-8.461-3.311-11.076 c-2.208-2.612-5.519-3.919-9.935-3.919c-3.247,0-6.29,0.736-9.13,2.209c-2.843,1.472-5.532,3.474-8.069,6.013v56.475H307.584z' />
+ <path className={cn} d='M558.565,185.224c-12.937,0-21.045-7.529-21.045-21.575v-41.628h-14.58c0,0,3.099-10.718,3.344-11.562 c0.246-0.843,0.887-1.749,2.174-1.928s9.044-1.261,9.044-1.261l3.583-22.794c0,0,10.527-1.484,12.196-1.733 c1.576-0.236,3.005,0.899,3.005,2.616c0,1.715,0,21.911,0,21.911h18.44v14.751h-18.44v41.067c0,5.607,3.414,7.75,6.686,7.75 c2,0,4.739-1.062,6.783-2.01c1.263-0.584,3.22-0.151,3.726,1.612c0.447,1.562,2.824,9.853,2.824,9.853 C574.254,181.617,567.771,185.224,558.565,185.224z' />
+ <path className={cn} d='M512.609,122.267c-3.664-1.19-10.551-3.095-17.102-3.095c-6.675,0-11.927,2.306-11.927,7.856 c0,6.932,11.319,8.95,19.067,11.776c5.18,1.889,19.071,5.572,19.071,20.512c0,18.148-15.071,25.907-31.148,25.907 c-16.079,0-25.578-5.98-25.578-5.98s2.494-8.81,2.999-10.549c0.457-1.565,2.276-2.114,3.435-1.669 c4.138,1.595,11.61,3.812,20.056,3.812c8.551,0,12.688-2.611,12.688-8.177c0-7.408-11.547-9.672-19.184-12.081 c-5.261-1.658-19.186-5.525-19.186-21.956c0-16.186,14.213-23.78,29.403-23.78c12.858,0,19.165,2.689,23.876,5.089 c0,0-2.625,9.149-3.015,10.512C515.604,122.064,514.275,122.807,512.609,122.267z' />
+ <path className={cn} d='M300.245,107.523c0-1.751-1.496-2.753-2.923-2.59c-6.309,0.723-10.81,3.692-13.722,6.456 c-5.718-4.48-13.655-6.619-22.563-6.619c-17.86,0-31.814,8.62-31.814,27.416c0,10.79,4.593,18.225,11.887,22.602 c-5.417,2.564-9.025,8.005-9.025,13.354c0,8.948,7.069,11.75,7.069,11.75s-12.36,5.999-12.36,18.001 c0,15.364,14.139,21.576,31.416,21.576c24.904,0,42.038-10.286,42.038-29.173c0-11.624-8.895-18.041-28.279-18.804 c-11.503-0.454-18.954-0.868-20.8-1.479c-2.439-0.81-3.638-2.763-3.638-4.919c0-2.38,1.955-4.646,5.037-6.202 c2.688,0.476,5.525,0.711,8.471,0.711c17.875,0,31.815-8.595,31.815-27.416c0-4.564-0.824-8.526-2.322-11.911 c2.626-1.401,5.857-2.387,9.715-2.387C300.245,117.889,300.245,109.12,300.245,107.523z M251.026,184.25 c0,0,9.379,0.355,18.751,0.789c10.529,0.487,13.81,2.756,13.81,8.208c0,6.661-9.15,13.14-21.937,13.14 c-12.138,0-18.201-4.223-18.201-11.254C243.449,191.099,245.579,186.586,251.026,184.25z M261.071,146.483 c-8.461,0-15.062-4.494-15.062-14.297c0-9.804,6.607-14.298,15.062-14.298c8.456,0,15.062,4.482,15.062,14.298 S269.535,146.483,261.071,146.483z' />
+ </g>
+ </svg>
+ )
+}
+
+Ghost.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Ghost.defaultProps = {
+ className: '',
+}
+
+export default Ghost
diff --git a/app/ui/icons/GithubDark.tsx b/app/ui/icons/GithubDark.tsx
new file mode 100644
index 000000000..0c2f52d49
--- /dev/null
+++ b/app/ui/icons/GithubDark.tsx
@@ -0,0 +1,20 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const GithubDarkSVG = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={className} viewBox='0 0 100 100'>
+ <path fillRule='evenodd' clipRule='evenodd' d='M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z' fill='#24292f' />
+ </svg>
+)
+
+GithubDarkSVG.propTypes = {
+ className: PropTypes.string,
+}
+
+GithubDarkSVG.defaultProps = {
+ className: '',
+}
+
+export default GithubDarkSVG
diff --git a/app/ui/icons/GithubLight.tsx b/app/ui/icons/GithubLight.tsx
new file mode 100644
index 000000000..1d319cf49
--- /dev/null
+++ b/app/ui/icons/GithubLight.tsx
@@ -0,0 +1,20 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const GithubLightSVG = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={className} viewBox='0 0 100 100'>
+ <path fillRule='evenodd' clipRule='evenodd' d='M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z' fill='#fff' />
+ </svg>
+)
+
+GithubLightSVG.propTypes = {
+ className: PropTypes.string,
+}
+
+GithubLightSVG.defaultProps = {
+ className: '',
+}
+
+export default GithubLightSVG
diff --git a/app/ui/icons/GoogleG.tsx b/app/ui/icons/GoogleG.tsx
new file mode 100644
index 000000000..dff58364a
--- /dev/null
+++ b/app/ui/icons/GoogleG.tsx
@@ -0,0 +1,25 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const GoogleGSVG = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={className} viewBox='0 0 186.69 190.5'>
+ <g transform='translate(1184.583 765.171)'>
+ <path clipPath='none' mask='none' d='M-1089.333-687.239v36.888h51.262c-2.251 11.863-9.006 21.908-19.137 28.662l30.913 23.986c18.011-16.625 28.402-41.044 28.402-70.052 0-6.754-.606-13.249-1.732-19.483z' fill='#4285f4' />
+ <path clipPath='none' mask='none' d='M-1142.714-651.791l-6.972 5.337-24.679 19.223h0c15.673 31.086 47.796 52.561 85.03 52.561 25.717 0 47.278-8.486 63.038-23.033l-30.913-23.986c-8.486 5.715-19.31 9.179-32.125 9.179-24.765 0-45.806-16.712-53.34-39.226z' fill='#34a853' />
+ <path clipPath='none' mask='none' d='M-1174.365-712.61c-6.494 12.815-10.217 27.276-10.217 42.689s3.723 29.874 10.217 42.689c0 .086 31.693-24.592 31.693-24.592-1.905-5.715-3.031-11.776-3.031-18.098s1.126-12.383 3.031-18.098z' fill='#fbbc05' />
+ <path clipPath='none' mask='none' d='M-1089.333-727.244c14.028 0 26.497 4.849 36.455 14.201l27.276-27.276c-16.539-15.413-38.013-24.852-63.731-24.852-37.234 0-69.359 21.388-85.032 52.561l31.692 24.592c7.533-22.514 28.575-39.226 53.34-39.226z' fill='#ea4335' />
+ </g>
+ </svg>
+)
+
+GoogleGSVG.propTypes = {
+ className: PropTypes.string,
+}
+
+GoogleGSVG.defaultProps = {
+ className: '',
+}
+
+export default GoogleGSVG
diff --git a/app/ui/icons/NextJS.tsx b/app/ui/icons/NextJS.tsx
new file mode 100644
index 000000000..81dfcb433
--- /dev/null
+++ b/app/ui/icons/NextJS.tsx
@@ -0,0 +1,35 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const NextJS = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ viewBox='0 0 148 90'
+ >
+ <title>
+ NextJS framework
+ </title>
+ <path
+ d='M34.992 23.495h27.855v2.219H37.546v16.699h23.792v2.219H37.546v18.334h25.591v2.219H34.992v-41.69zm30.35 0h2.96l13.115 18.334 13.405-18.334L113.055.207 83.1 43.756l15.436 21.429H95.46L81.417 45.683 67.316 65.185h-3.018L79.85 43.756 65.343 23.495zm34.297 2.219v-2.219h31.742v2.219h-14.623v39.47h-2.554v-39.47H99.64zM.145 23.495h3.192l44.011 66.003L29.16 65.185 2.814 26.648l-.116 38.537H.145v-41.69zm130.98 38.801c-.523 0-.914-.405-.914-.928 0-.524.391-.929.913-.929.528 0 .913.405.913.929 0 .523-.385.928-.913.928zm2.508-2.443H135c.019.742.56 1.24 1.354 1.24.888 0 1.391-.535 1.391-1.539v-6.356h1.391v6.362c0 1.808-1.043 2.849-2.77 2.849-1.62 0-2.732-1.01-2.732-2.556zm7.322-.08h1.379c.118.853.95 1.395 2.149 1.395 1.117 0 1.937-.58 1.937-1.377 0-.685-.521-1.097-1.708-1.377l-1.155-.28c-1.62-.38-2.36-1.166-2.36-2.487 0-1.602 1.304-2.668 3.26-2.668 1.82 0 3.15 1.066 3.23 2.58h-1.354c-.13-.828-.85-1.346-1.894-1.346-1.1 0-1.832.53-1.832 1.34 0 .642.472 1.01 1.64 1.284l.987.243c1.838.43 2.596 1.178 2.596 2.53 0 1.72-1.33 2.799-3.453 2.799-1.987 0-3.323-1.029-3.422-2.637z'
+ fillRule='nonzero'
+ />
+ </svg>
+)
+
+NextJS.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+NextJS.defaultProps = {
+ className: '',
+}
+
+export default NextJS
diff --git a/app/ui/icons/Notion.tsx b/app/ui/icons/Notion.tsx
new file mode 100644
index 000000000..7307e0b32
--- /dev/null
+++ b/app/ui/icons/Notion.tsx
@@ -0,0 +1,35 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Notion = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => {
+ const cn = cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })
+
+ return (
+ <svg className={className} viewBox='0 0 87 30' fill='none'>
+ <title>
+ Notion
+ </title>
+ <path d='M1.805 1.294l16.6-1.226c2.039-.175 2.563-.057 3.845.875l5.299 3.733c.874.642 1.165.817 1.165 1.516v20.473c0 1.283-.466 2.042-2.097 2.158L7.34 29.99c-1.224.058-1.807-.117-2.448-.934L.99 23.982c-.7-.934-.99-1.633-.99-2.45V3.334c0-1.049.466-1.924 1.805-2.04z' fill='#fff' />
+ <path fillRule='evenodd' clipRule='evenodd' d='M18.405.068l-16.6 1.226C.466 1.41 0 2.285 0 3.334v18.198c0 .817.29 1.516.99 2.45l3.902 5.074c.641.817 1.224.992 2.448.934l19.277-1.167c1.63-.116 2.097-.875 2.097-2.158V6.192c0-.663-.262-.854-1.033-1.42a85.473 85.473 0 01-.133-.096L22.25.943c-1.282-.932-1.806-1.05-3.845-.875zM7.776 5.857c-1.574.106-1.931.13-2.825-.597L2.678 3.452c-.231-.234-.115-.526.467-.584l15.958-1.166c1.34-.117 2.038.35 2.562.758l2.737 1.983c.117.059.408.408.058.408l-16.48.992-.204.014zM5.941 26.49V9.11c0-.759.233-1.109.931-1.168L25.8 6.834c.642-.058.932.35.932 1.108v17.264c0 .759-.117 1.401-1.165 1.459l-18.113 1.05c-1.048.058-1.513-.291-1.513-1.225zm17.88-16.448c.116.525 0 1.05-.525 1.11l-.873.173v12.832c-.758.408-1.456.641-2.039.641-.932 0-1.165-.292-1.863-1.166l-5.709-8.982v8.69l1.806.409s0 1.05-1.457 1.05l-4.017.233c-.117-.234 0-.817.407-.933l1.049-.291v-11.49L9.144 12.2c-.117-.525.174-1.283.99-1.342l4.31-.29 5.94 9.098v-8.049l-1.514-.174c-.117-.643.349-1.11.931-1.167l4.02-.234z' fill='#000' />
+ <path d='M41.434 21.251v-7.91h.137l5.704 7.91h1.796V9.627h-1.997v7.902h-.137l-5.704-7.902H39.43V21.25h2.005zM54.715 21.429c2.635 0 4.238-1.724 4.238-4.584 0-2.852-1.611-4.584-4.238-4.584-2.618 0-4.237 1.74-4.237 4.584 0 2.86 1.595 4.584 4.237 4.584zm0-1.676c-1.393 0-2.19-1.063-2.19-2.908 0-1.837.797-2.908 2.19-2.908 1.386 0 2.183 1.071 2.183 2.908 0 1.845-.789 2.908-2.183 2.908zM60.778 10.28v2.215h-1.393v1.595h1.393v4.809c0 1.708.806 2.393 2.828 2.393.386 0 .757-.04 1.047-.097v-1.563c-.242.024-.395.04-.677.04-.837 0-1.208-.386-1.208-1.256V14.09h1.885v-1.595h-1.885v-2.216h-1.99zM65.85 21.251h1.99v-8.813h-1.99v8.813zm.991-10.27c.66 0 1.192-.533 1.192-1.201 0-.669-.531-1.209-1.192-1.209-.652 0-1.192.54-1.192 1.209 0 .668.54 1.2 1.192 1.2zM73.299 21.429c2.634 0 4.237-1.724 4.237-4.584 0-2.852-1.611-4.584-4.237-4.584-2.619 0-4.238 1.74-4.238 4.584 0 2.86 1.595 4.584 4.238 4.584zm0-1.676c-1.394 0-2.192-1.063-2.192-2.908 0-1.837.798-2.908 2.192-2.908 1.385 0 2.183 1.071 2.183 2.908 0 1.845-.79 2.908-2.183 2.908zM78.725 21.251h1.998V16.12c0-1.297.75-2.119 1.941-2.119 1.217 0 1.78.677 1.78 2.022v5.228h1.999v-5.703c0-2.103-1.072-3.287-3.037-3.287-1.314 0-2.2.604-2.619 1.587h-.137v-1.41h-1.925v8.813z' className={cn} />
+ </svg>
+ )
+}
+
+Notion.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Notion.defaultProps = {
+ className: '',
+}
+
+export default Notion
diff --git a/app/ui/icons/NuxtJS.tsx b/app/ui/icons/NuxtJS.tsx
new file mode 100644
index 000000000..0029db17e
--- /dev/null
+++ b/app/ui/icons/NuxtJS.tsx
@@ -0,0 +1,40 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const NuxtJS = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => {
+ const cn = cx({
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })
+
+ return (
+ <svg className={className} viewBox='0 0 221 65' fill='none'>
+ <title>
+ NuxtJS
+ </title>
+ <path d='M76.333 20.5005H82.8185L96.5631 42.4764V20.5005H102.55V51.6393H96.1087L82.3198 29.7091V51.6393H76.333V20.5005Z' className={cn} />
+ <path d='M129.311 51.6393H123.732V48.1611C122.462 50.6089 119.877 51.9871 116.612 51.9871C111.441 51.9871 108.083 48.3393 108.083 43.0894V29.2178H113.662V41.9416C113.662 45.0111 115.568 47.1459 118.425 47.1459C121.555 47.1459 123.732 44.7437 123.732 41.4524V29.2178H129.311V51.6393Z' className={cn} />
+ <path d='M148.724 51.2848L143.372 43.811L138.019 51.2848H132.076L140.333 39.5849L132.712 28.8633H138.79L143.372 35.3154L147.906 28.8633H154.031L146.364 39.5849L154.62 51.2848H148.724Z' className={cn} />
+ <path d='M165.96 22.4565V29.2173H172.311V33.7999H165.96V44.9302C165.96 45.304 166.111 45.6626 166.381 45.9271C166.65 46.1916 167.015 46.3405 167.397 46.3411H172.311V51.6302H168.636C163.646 51.6302 160.381 48.7824 160.381 43.8042V33.8043H155.891V29.2173H158.708C160.022 29.2173 160.787 28.45 160.787 27.1804V22.4565H165.96Z' className={cn} />
+ <path d='M186.374 44.5872V20.5005H192.359V42.7416C192.359 48.748 189.411 51.6393 184.422 51.6393H177.455V46.3502H184.577C185.053 46.3502 185.511 46.1645 185.848 45.8339C186.185 45.5032 186.374 45.0548 186.374 44.5872' className={cn} />
+ <path d='M195.945 41.1847H201.708C202.027 44.6629 204.386 46.8781 208.196 46.8781C211.598 46.8781 213.959 45.5455 213.959 42.7869C213.959 36.113 196.892 40.739 196.892 28.8174C196.896 23.7023 201.387 20.1479 207.839 20.1479C214.553 20.1479 219.088 23.9283 219.365 29.7565H213.633C213.363 27.0435 211.195 25.2196 207.828 25.2196C204.698 25.2196 202.748 26.6435 202.748 28.8218C202.748 35.7174 220.037 30.5609 220.037 42.7021C220.037 48.4846 215.182 51.9998 208.198 51.9998C200.986 51.9998 196.269 47.7281 195.952 41.189' className={cn} />
+ <path fillRule='evenodd' clipRule='evenodd' d='M29.7513 14.261C28.0767 11.3817 23.8903 11.3817 22.2157 14.261L3.96535 45.641C2.29077 48.5204 4.38399 52.1195 7.73316 52.1195H21.9804C20.5493 50.8688 20.0193 48.7051 21.1023 46.8487L34.9243 23.1556L29.7513 14.261Z' fill='#80EEC0' />
+ <path d='M41.3151 21.1443C42.701 18.7885 46.1656 18.7885 47.5515 21.1443L62.6552 46.8188C64.0411 49.1746 62.3088 52.1194 59.537 52.1194H29.3296C26.5579 52.1194 24.8255 49.1746 26.2114 46.8188L41.3151 21.1443Z' fill='#00DC82' />
+ </svg>
+ )
+}
+
+NuxtJS.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+NuxtJS.defaultProps = {
+ className: '',
+}
+
+export default NuxtJS
diff --git a/app/ui/icons/PulsatingCircle.tsx b/app/ui/icons/PulsatingCircle.tsx
new file mode 100644
index 000000000..85ada8fbb
--- /dev/null
+++ b/app/ui/icons/PulsatingCircle.tsx
@@ -0,0 +1,36 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const types = {
+ small: {
+ pulse: 'h-2.5 w-2.5',
+ base: 'h-2 w-2',
+ },
+ big: {
+ pulse: 'h-3 w-3',
+ base: 'h-2.5 w-2.5',
+ },
+}
+
+const PulsatingCircle = ({ className, type }: {
+ className?: string,
+ type: 'small' | 'big',
+}): JSX.Element => (
+ <span className={cx('flex justify-center items-center', types[type]?.pulse, className)}>
+ <span className={cx('animate-ping-slow absolute inline-flex rounded-full bg-green-400', types[type]?.pulse)} />
+ <span className={cx('relative inline-flex rounded-full bg-green-500', types[type]?.base)} />
+ </span>
+)
+
+PulsatingCircle.propTypes = {
+ className: PropTypes.string,
+ type: PropTypes.oneOf(['small', 'big']),
+}
+
+PulsatingCircle.defaultProps = {
+ className: '',
+ type: 'small',
+}
+
+export default PulsatingCircle
diff --git a/app/ui/icons/Quote.tsx b/app/ui/icons/Quote.tsx
new file mode 100644
index 000000000..8818ce119
--- /dev/null
+++ b/app/ui/icons/Quote.tsx
@@ -0,0 +1,36 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Quote = ({ theme, className, color }: {
+ theme: 'light' | 'dark',
+ className?: string,
+ color: 'black' | 'indigo',
+}): JSX.Element => (
+ <svg
+ className={cx(className, {
+ 'fill-[#232536]': color === 'black' && theme === 'light',
+ 'fill-sky-600': color === 'black' && theme === 'dark',
+ 'fill-indigo-600': color === 'indigo',
+ })}
+ width='42'
+ height='30'
+ viewBox='0 0 42 30'
+ fill='none'
+ xmlns='http://www.w3.org/2000/svg'
+ >
+ <path d='M12.8109 25.4137C12.0514 28.1254 9.57958 30 6.7635 30C2.1934 30 -0.846327 25.2742 1.04887 21.1156L9.41318 2.76185C10.1798 1.07959 11.8582 0 13.707 0C16.8317 0 19.0935 2.98233 18.2507 5.99128L12.8109 25.4137ZM35.8821 25.4137C35.1226 28.1254 32.6508 30 29.8347 30C25.2646 30 22.2249 25.2742 24.1201 21.1156L32.4844 2.76185C33.251 1.07959 34.9295 0 36.7782 0C39.9029 0 42.1647 2.98233 41.3219 5.99128L35.8821 25.4137Z' />
+ </svg>
+)
+
+Quote.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+ color: PropTypes.oneOf(['indigo', 'black']).isRequired,
+}
+
+Quote.defaultProps = {
+ className: '',
+}
+
+export default Quote
diff --git a/app/ui/icons/ReactSVG.tsx b/app/ui/icons/ReactSVG.tsx
new file mode 100644
index 000000000..872a3d381
--- /dev/null
+++ b/app/ui/icons/ReactSVG.tsx
@@ -0,0 +1,26 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const ReactSVG = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={className} viewBox='175.7 78 490.6 436.9'>
+ <title>
+ React.js
+ </title>
+ <g className='fill-[#61dafb]'>
+ <path d='m666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9v-22.3c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6v-22.3c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zm-101.4 106.7c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24s9.5 15.8 14.4 23.4zm73.9-208.1c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6s22.9-35.6 58.3-50.6c8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zm53.8 142.9c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6z' />
+ <circle cx='420.9' cy='296.5' r='45.7' />
+ </g>
+ </svg>
+)
+
+ReactSVG.propTypes = {
+ className: PropTypes.string,
+}
+
+ReactSVG.defaultProps = {
+ className: '',
+}
+
+export default ReactSVG
diff --git a/app/ui/icons/Robot.tsx b/app/ui/icons/Robot.tsx
new file mode 100644
index 000000000..6eaffd141
--- /dev/null
+++ b/app/ui/icons/Robot.tsx
@@ -0,0 +1,40 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+import { useSelector } from 'react-redux'
+import { StateType } from 'redux/store'
+
+const Robot = ({
+ className, containerClassName,
+}: {
+ className?: string,
+ containerClassName?: string,
+}): JSX.Element => {
+ const theme = useSelector((state: StateType) => state.ui.theme.theme)
+ const cn = cx(className, {
+ 'fill-text-gray-700': theme === 'dark',
+ 'fill-white': theme === 'light',
+ })
+
+ return (
+ <svg className={containerClassName} width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' strokeLinecap='round' strokeLinejoin='round'>
+ <rect x='3' y='11' width='18' height='10' rx='2' className={cn} />
+ <circle cx='12' cy='5' r='2' className={cn} />
+ <path d='M12 7v4' className={cn} />
+ <line x1='8' y1='16' x2='8' y2='16' className={cn} />
+ <line x1='16' y1='16' x2='16' y2='16' className={cn} />
+ </svg>
+ )
+}
+
+Robot.propTypes = {
+ className: PropTypes.string,
+ containerClassName: PropTypes.string,
+}
+
+Robot.defaultProps = {
+ className: '',
+ containerClassName: '',
+}
+
+export default Robot
diff --git a/app/ui/icons/Sort.tsx b/app/ui/icons/Sort.tsx
new file mode 100644
index 000000000..e176c40a6
--- /dev/null
+++ b/app/ui/icons/Sort.tsx
@@ -0,0 +1,37 @@
+import React from 'react'
+import { ChevronUpDownIcon, ChevronUpIcon, ChevronDownIcon } from '@heroicons/react/24/outline'
+import cx from 'clsx'
+
+interface ISort {
+ sortByAscend?: boolean,
+ sortByDescend?: boolean,
+ className?: string,
+}
+
+const Sort: React.FC<ISort> = ({
+ sortByAscend, sortByDescend, className,
+}: ISort): JSX.Element => {
+ if (sortByAscend) {
+ return (
+ <ChevronUpIcon className={cx(className, 'w-4 h-4')} />
+ )
+ }
+
+ if (sortByDescend) {
+ return (
+ <ChevronDownIcon className={cx(className, 'w-4 h-4')} />
+ )
+ }
+
+ return (
+ <ChevronUpDownIcon className={cx(className, 'w-4 h-4')} />
+ )
+}
+
+Sort.defaultProps = {
+ sortByAscend: false,
+ sortByDescend: false,
+ className: '',
+}
+
+export default Sort
diff --git a/app/ui/icons/Spin.tsx b/app/ui/icons/Spin.tsx
new file mode 100644
index 000000000..e6bb892cd
--- /dev/null
+++ b/app/ui/icons/Spin.tsx
@@ -0,0 +1,22 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Spin = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={cx('animate-spin -ml-1 mr-2 h-4 w-4 text-white', className)} xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'>
+ <circle className='opacity-25' cx='12' cy='12' r='10' stroke='currentColor' strokeWidth='4' />
+ <path className='opacity-75' fill='currentColor' d='M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z' />
+ </svg>
+)
+
+Spin.propTypes = {
+ className: PropTypes.string,
+}
+
+Spin.defaultProps = {
+ className: '',
+}
+
+export default Spin
diff --git a/app/ui/icons/Telegram.tsx b/app/ui/icons/Telegram.tsx
new file mode 100644
index 000000000..dd47de2ec
--- /dev/null
+++ b/app/ui/icons/Telegram.tsx
@@ -0,0 +1,32 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+
+const Telegram = ({ className }: {
+ className?: string,
+}): JSX.Element => (
+ <svg className={className} viewBox='0 0 1000 1000'>
+ <title>
+ Telegram
+ </title>
+ <defs>
+ <linearGradient x1='50%' y1='0%' x2='50%' y2='99.2583404%' id='linearGradient-1'>
+ <stop stopColor='#2AABEE' offset='0%' />
+ <stop stopColor='#229ED9' offset='100%' />
+ </linearGradient>
+ </defs>
+ <g id='Artboard' stroke='none' strokeWidth={1} fill='none' fillRule='evenodd'>
+ <circle id='Oval' fill='url(#linearGradient-1)' cx='500' cy='500' r='500' />
+ <path d='M226.328419,494.722069 C372.088573,431.216685 469.284839,389.350049 517.917216,369.122161 C656.772535,311.36743 685.625481,301.334815 704.431427,301.003532 C708.567621,300.93067 717.815839,301.955743 723.806446,306.816707 C728.864797,310.92121 730.256552,316.46581 730.922551,320.357329 C731.588551,324.248848 732.417879,333.113828 731.758626,340.040666 C724.234007,419.102486 691.675104,610.964674 675.110982,699.515267 C668.10208,736.984342 654.301336,749.547532 640.940618,750.777006 C611.904684,753.448938 589.856115,731.588035 561.733393,713.153237 C517.726886,684.306416 492.866009,666.349181 450.150074,638.200013 C400.78442,605.66878 432.786119,587.789048 460.919462,558.568563 C468.282091,550.921423 596.21508,434.556479 598.691227,424.000355 C599.00091,422.680135 599.288312,417.758981 596.36474,415.160431 C593.441168,412.561881 589.126229,413.450484 586.012448,414.157198 C581.598758,415.158943 511.297793,461.625274 375.109553,553.556189 C355.154858,567.258623 337.080515,573.934908 320.886524,573.585046 C303.033948,573.199351 268.692754,563.490928 243.163606,555.192408 C211.851067,545.013936 186.964484,539.632504 189.131547,522.346309 C190.260287,513.342589 202.659244,504.134509 226.328419,494.722069 Z' id='Path-3' fill='#FFFFFF' />
+ </g>
+ </svg>
+)
+
+Telegram.propTypes = {
+ className: PropTypes.string,
+}
+
+Telegram.defaultProps = {
+ className: '',
+}
+
+export default Telegram
diff --git a/app/ui/icons/Webflow.tsx b/app/ui/icons/Webflow.tsx
new file mode 100644
index 000000000..2c4c56cb6
--- /dev/null
+++ b/app/ui/icons/Webflow.tsx
@@ -0,0 +1,54 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Webflow = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={className}
+ x='0px'
+ y='0px'
+ viewBox='0 0 808.3 203.3'
+ >
+ <title>
+ Webflow
+ </title>
+ <path
+ className={cx({
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ d='M261,79.5c0-14.5-14.1-29.9-38.5-29.9c-27.4,0-57.5,20.1-62.1,60.2c-4.7,40.5,20.5,58.5,45.9,58.5
+ s38.7-9.9,52.3-23.1c-11.7-14.7-26.8-7.9-29.7-6.4c-3.2,1.6-7.3,3.8-15.7,3.8c-9.8,0-19.8-4.4-19.8-22.7
+ C256.2,113.7,261,94,261,79.5z M229.9,81.9c-0.4,4.5-2.2,12.2-34,16.5c6.7-23.8,19.5-25.6,25.4-25.6
+ C226.8,72.8,230.3,77.1,229.9,81.9z M123.5,85.8c0,0-13.5,42.4-14.6,45.9C108.5,128.1,98.6,52,98.6,52c-23,0-35.3,16.4-41.8,33.7
+ c0,0-16.4,42.5-17.8,46.1c-0.1-3.3-2.5-45.6-2.5-45.6C35.1,65,15.7,52.1,0,52.1l19,115.3c24.1-0.1,37.1-16.4,43.9-33.7
+ c0,0,14.5-37.5,15.1-39.2c0.1,1.6,10.4,72.9,10.4,72.9c24.2,0,37.2-15.3,44.2-32l33.9-83.3C142.6,52.1,130,68.4,123.5,85.8z
+ M349.8,49.4c-14.9,0-26.3,8.1-35.9,20v-0.1L322.5,0c-19.8,0-35.9,17.2-39,42.8l-15,123.7c11.4,0,23.5-3.3,30-11.7
+ c5.8,7.5,14.5,13.5,27.4,13.5c33.4,0,56.3-38.8,56.3-75.2C382,59.9,365.9,49.4,349.8,49.4z M346.7,108.9
+ c-3.5,20.3-14.8,34.1-25.7,34.1c-11,0-15.7-4.9-15.7-4.9c2.1-17.8,3.4-28.7,7.4-38.1c4-9.4,13.5-24.4,23.4-24.4
+ C345.8,75.6,350.2,88.5,346.7,108.9z M465.6,52.1h-23.3l0.1-1.2c1.6-15.2,5.2-23.2,17.1-24.5c8.1-0.8,11.7-5,12.6-9.6
+ c0.7-3.6,2.9-16.1,2.9-16.1c-46.8-0.3-61.5,19.9-65.3,50.7l-0.1,0.7h-0.5c-7.6,0-16,8.6-17.4,19.5l-0.5,4h15.6l-13.1,108.2l-4,19.4
+ c0.5,0,1.1,0.1,1.6,0.1c21.9-0.8,35.9-18.1,39-43.2l10.2-84.5h7.3c7.2,0,15.6-7.2,17.1-19.2L465.6,52.1z M586.8,50.1
+ c-26.9,0-52.3,19.8-60.1,50.9s4,67.9,43.6,67.9c39.5,0,62.3-38.3,62.3-70.2C632.6,67,611.1,50.1,586.8,50.1z M597.7,107.9
+ c-1.4,14.1-7.6,35.5-24.6,35.5c-17.1,0-14.7-25-13-36.9c1.8-12.7,8.9-30.8,24.2-30.8C598,75.7,599.3,92,597.7,107.9z M765.5,85.8
+ c0,0-13.5,42.4-14.6,45.9c-0.4-3.6-10.3-79.7-10.3-79.7c-23,0-35.3,16.4-41.8,33.7c0,0-16.4,42.5-17.8,46.1
+ c-0.1-3.3-2.5-45.6-2.5-45.6C677.1,65,657.7,52.1,642,52.1l18.9,115.3c24.1-0.1,37.1-16.4,43.9-33.7c0,0,14.5-37.5,15-39.2
+ c0.1,1.6,10.4,72.9,10.4,72.9c24.2,0,37.2-15.3,44.2-32l33.9-83.3C784.5,52.1,771.9,68.4,765.5,85.8z M487.6,0.7L468,158.8l0,0
+ l-4,19.5c0.5,0,1.1,0.1,1.6,0.1l0,0c21.1-0.3,36.1-18.8,38.9-42.1l11.3-90.7C519.2,17.9,502.7,0.7,487.6,0.7z'
+ />
+ </svg>
+)
+
+Webflow.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Webflow.defaultProps = {
+ className: '',
+}
+
+export default Webflow
diff --git a/app/ui/icons/Wix.tsx b/app/ui/icons/Wix.tsx
new file mode 100644
index 000000000..a11689a67
--- /dev/null
+++ b/app/ui/icons/Wix.tsx
@@ -0,0 +1,37 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Wix = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ x='0'
+ y='0'
+ viewBox='0 0 311 121'
+ >
+ <title>
+ Wix
+ </title>
+ <path d='M178 2.3c-6 3-8.6 8.6-8.6 23.8 0 0 3-3 7.8-4.8 3.5-1.3 6-3 7.8-4.3 5.2-3.9 6-8.6 6-16.8C190.9 0.2 182.7-0.3 178 2.3z' />
+ <path d='M141.3 5.8c-5.2 4.3-6.5 11.7-6.5 11.7l-16.8 64.4 -13.8-52.7c-1.3-5.6-3.9-12.5-7.8-17.3C91.6 5.8 81.6 5.4 80.4 5.4c-0.9 0-10.8 0.4-16 6.5 -3.9 4.8-6.5 11.7-7.8 17.3l-13 52.7L26.8 17.5c0 0-1.3-6.9-6.5-11.7C12.1-1.6 0 0.2 0 0.2l32 120.5c0 0 10.4 0.9 15.6-1.7 6.9-3.5 10.4-6 14.3-22.5 3.9-14.7 14.3-57.5 15.1-60.5 0.4-1.3 1.3-5.2 3.9-5.2 2.6 0 3.5 3.5 3.9 5.2 0.9 3 11.2 45.8 15.1 60.5 4.3 16.4 7.3 19 14.3 22.5 5.2 2.6 15.6 1.7 15.6 1.7L161.6 0.2C161.6 0.2 149.5-1.5 141.3 5.8z' />
+ <path d='M190.9 19.6c0 0-2.2 3-6.5 5.6 -3 1.7-5.6 2.6-8.6 4.3 -5.2 2.6-6.5 5.2-6.5 9.1v1.3 6.5l0 0v1.3 72.6c0 0 8.2 0.9 13.4-1.7 6.9-3.5 8.2-6.9 8.2-21.6V24.4l0 0L190.9 19.6 190.9 19.6z' />
+ <path d='M270.4 60.7L311 0.6c0 0-16.8-3-25.5 4.8 -5.6 4.8-11.2 13.8-11.2 13.8l-14.7 21.6c-0.9 1.3-1.7 2.2-3 2.2s-2.6-1.3-3-2.2l-14.7-21.6c0 0-6-8.6-11.2-13.8 -8.6-7.8-25.5-4.8-25.5-4.8l39.3 60 -40.2 60c0 0 17.7 2.2 26.4-5.6 5.6-4.8 10.8-13 10.8-13l14.7-21.6c0.9-1.3 1.7-2.2 3-2.2s2.6 1.3 3 2.2l14.7 21.6c0 0 5.6 8.2 10.8 13 8.6 7.8 25.9 5.6 25.9 5.6L270.4 60.7z' />
+ </svg>
+)
+
+Wix.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Wix.defaultProps = {
+ className: '',
+}
+
+export default Wix
diff --git a/app/ui/icons/Wordpress.tsx b/app/ui/icons/Wordpress.tsx
new file mode 100644
index 000000000..a237c7828
--- /dev/null
+++ b/app/ui/icons/Wordpress.tsx
@@ -0,0 +1,32 @@
+import React from 'react'
+import cx from 'clsx'
+import PropTypes from 'prop-types'
+
+const Wordpress = ({ theme, className }: {
+ theme: 'dark' | 'light',
+ className?: string,
+}): JSX.Element => (
+ <svg
+ className={cx(className, {
+ 'fill-white': theme === 'dark',
+ 'fill-slate-800': theme === 'light',
+ })}
+ viewBox='0 0 170 36'
+ >
+ <title>
+ Wordpress
+ </title>
+ <path d='M47.57 10l-2.79 10.72L41.99 10h-2.81l.65 2.3-2.45 8.78L34.7 10H32l3.8 14h2.96l2.28-7.49L43.17 24h2.95l4-14h-2.55zm28.39 4.06a9 9 0 0 0-1.86-.23c-3.4 0-5.26 2.27-5.26 5.6 0 3.31 1.86 4.82 4.05 4.82a5.45 5.45 0 0 0 3.2-1.17V24h2.33V10h-2.46v4.06zm0 7.08c-.8.73-1.55 1.13-2.34 1.13-1.36 0-2.23-.9-2.23-3.01 0-2.28 1.08-3.47 2.96-3.47.55 0 1.1.11 1.6.31v5.04zM64.2 15.7h-.09v-1.64h-2.3V24h2.47v-5.92c.77-1.46 1.71-1.94 3.28-1.94h.25V14a6.67 6.67 0 0 0-.67-.04c-1.34 0-2.26.52-2.94 1.75zm83.14-1.89c-3.4 0-5.01 2.2-5.01 5.23 0 3.02 1.6 5.2 5.01 5.2s5.01-2.18 5.01-5.2c0-3.03-1.63-5.23-5.02-5.23h.01zm0 8.44c-1.6 0-2.46-1.04-2.46-3.21 0-2.18.85-3.22 2.46-3.22 1.6 0 2.44 1.04 2.44 3.22 0 2.17-.84 3.21-2.45 3.21h.01zm19.12-8.44c-1.06 0-2.28.58-3.38 1.32l-.3.19c-.51-1.11-1.56-1.5-2.71-1.5-1.06 0-2.27.54-3.38 1.27v-1.03h-2.34V24h2.48v-7.13a5.3 5.3 0 0 1 2.61-.98c.81 0 1.32.44 1.32 1.84V24h2.46v-7.1c.92-.6 1.9-1 2.6-1 .82 0 1.32.43 1.32 1.84V24h2.46v-6.86c0-1.92-1.14-3.32-3.15-3.32zm-111.64 0c-3.4 0-5 2.2-5 5.23 0 3.02 1.6 5.2 5 5.2s5.02-2.18 5.02-5.2c0-3.03-1.64-5.23-5.03-5.23h.01zm0 8.44c-1.6 0-2.46-1.04-2.46-3.21 0-2.18.86-3.22 2.47-3.22 1.6 0 2.44 1.04 2.44 3.22 0 2.17-.85 3.21-2.46 3.21h.01zm40.31-6.56h-.08v-1.63h-2.31V24h2.46v-5.92c.77-1.46 1.71-1.94 3.28-1.94h.25V14a6.67 6.67 0 0 0-.67-.04c-1.33 0-2.25.52-2.94 1.75h.01zM86.05 10h-4.58v14h2.64v-4.87h1.93c2.99 0 5.16-1.61 5.16-4.62 0-3-2.17-4.51-5.16-4.51zm.02 7.08h-1.96v-5.01h1.95c1.6 0 2.38.88 2.38 2.44 0 1.57-.73 2.57-2.38 2.57h.01zm36.02-.23c0-.75.82-1.04 1.7-1.04.93.01 1.86.16 2.75.43V14.2a10.14 10.14 0 0 0-2.95-.38c-2.38 0-4.05 1.13-4.05 2.97 0 3.57 4.92 2.65 4.92 4.39 0 .85-.77 1.08-1.9 1.08-.8 0-2.07-.3-2.99-.63v2.03a8.29 8.29 0 0 0 2.9.59c2.32 0 4.53-.69 4.53-3.17.03-3.45-4.9-2.56-4.9-4.23zm-17.5-3.03c-3.18 0-4.83 2.47-4.83 5.16 0 3.7 1.94 5.27 5.1 5.27a11.81 11.81 0 0 0 3.65-.57v-2.05c-1.03.38-1.97.61-2.97.61-1.84 0-3.07-.5-3.13-2.67h6.36c.06-.49.09-.98.08-1.46 0-2.1-1.11-4.29-4.27-4.29zm-2.16 4.12c.15-1.38.9-2.26 2.13-2.26 1.32 0 1.72 1.05 1.72 2.26h-3.85zm10.7-1.09c0-.75.81-1.04 1.69-1.04.93.01 1.86.16 2.75.43V14.2a10.14 10.14 0 0 0-2.94-.38c-2.38 0-4.06 1.13-4.06 2.97 0 3.57 4.93 2.65 4.93 4.39 0 .85-.78 1.08-1.9 1.08-.8 0-2.07-.3-3-.63v2.03a8.28 8.28 0 0 0 2.9.59c2.32 0 4.54-.69 4.54-3.17.02-3.45-4.91-2.56-4.91-4.23zm21.97 2.1c0-2.33 1.27-3.12 2.78-3.12.94.03 1.88.22 2.76.57v-2.1a8.11 8.11 0 0 0-2.8-.48c-3.28 0-5.31 2-5.31 5.25 0 3.07 1.46 5.18 5.16 5.18 1.17 0 2.08-.23 3.08-.57v-2.04c-1.13.43-2 .6-2.77.6-1.63 0-2.9-.75-2.9-3.3zM128.66 24h2.47v-2.55h-2.47V24zM1.72 16c0 4.47 2.6 8.32 6.36 10.15L2.7 11.41A11.24 11.24 0 0 0 1.72 16zM13 27.28c1.31 0 2.57-.23 3.75-.64l-.08-.15-3.47-9.5-3.38 9.83c1 .3 2.07.46 3.18.46zm1.55-16.57l4.08 12.13 1.13-3.76c.48-1.56.85-2.68.85-3.65 0-1.4-.5-2.36-.92-3.1-.58-.94-1.11-1.73-1.11-2.65 0-1.04.78-2 1.9-2h.14A11.24 11.24 0 0 0 13 4.72 11.27 11.27 0 0 0 3.58 9.8l.72.02c1.18 0 3-.15 3-.15.62-.03.69.86.08.93 0 0-.61.08-1.3.11l4.12 12.22 2.47-7.4-1.76-4.82a20.13 20.13 0 0 1-1.18-.1c-.61-.04-.54-.97.07-.94 0 0 1.86.15 2.97.15 1.18 0 3-.15 3-.15.61-.03.69.86.08.93 0 0-.61.07-1.3.11zm4.12 15.04A11.28 11.28 0 0 0 24.28 16c0-1.96-.5-3.8-1.38-5.41a10.65 10.65 0 0 1-.78 5.2l-3.45 9.96zM13 29a13 13 0 1 1 0-26 13 13 0 0 1 0 26z' fill='inherit' fillRule='nonzero' />
+ </svg>
+)
+
+Wordpress.propTypes = {
+ className: PropTypes.string,
+ theme: PropTypes.string.isRequired,
+}
+
+Wordpress.defaultProps = {
+ className: '',
+}
+
+export default Wordpress
diff --git a/app/utils/accessToken.ts b/app/utils/accessToken.ts
new file mode 100644
index 000000000..60c6c018c
--- /dev/null
+++ b/app/utils/accessToken.ts
@@ -0,0 +1,31 @@
+import _isEmpty from 'lodash/isEmpty'
+import { TOKEN } from 'redux/constants'
+import { getCookie, setCookie, deleteCookie } from './cookie'
+
+// 14 weeks in seconds
+const STORE_AUTH_TOKEN_FOR = 8467200
+
+// It's important to first check in cookie, then in session storage, not vice versa.
+export const getAccessToken = () => {
+ let accessToken = getCookie(TOKEN)
+
+ if (_isEmpty(accessToken)) {
+ accessToken = sessionStorage.getItem(TOKEN)
+ }
+
+ return accessToken
+}
+
+export const setAccessToken = (token: string, temporary: boolean = false) => {
+ if (temporary) {
+ sessionStorage.setItem(TOKEN, token)
+ return
+ }
+
+ setCookie(TOKEN, token, STORE_AUTH_TOKEN_FOR)
+}
+
+export const removeAccessToken = () => {
+ deleteCookie(TOKEN)
+ sessionStorage.removeItem(TOKEN)
+}
diff --git a/app/utils/analytics.ts b/app/utils/analytics.ts
new file mode 100644
index 000000000..d37267127
--- /dev/null
+++ b/app/utils/analytics.ts
@@ -0,0 +1,27 @@
+import * as Swetrix from 'swetrix'
+import { isSelfhosted } from 'redux/constants'
+
+const SWETRIX_PID = 'STEzHcB1rALV'
+
+Swetrix.init(SWETRIX_PID)
+
+const trackViews = () => {
+ if (!isSelfhosted) {
+ Swetrix.trackViews({
+ ignore: [/^\/projects/i, /^\/verify/i, /^\/password-reset/i, /^\/change-email/i, /^\/share/i, /^\/captchas/i],
+ heartbeatOnBackground: true,
+ })
+ }
+}
+
+const trackCustom = (ev: string, unique = false) => {
+ if (!isSelfhosted) {
+ Swetrix.track({
+ ev, unique,
+ })
+ }
+}
+
+export {
+ trackViews, trackCustom, SWETRIX_PID,
+}
diff --git a/app/utils/compareConvertDate.ts b/app/utils/compareConvertDate.ts
new file mode 100644
index 000000000..a38691e96
--- /dev/null
+++ b/app/utils/compareConvertDate.ts
@@ -0,0 +1,87 @@
+import dayjs from 'dayjs'
+import utc from 'dayjs/plugin/utc'
+
+import { getFormatDate } from '../pages/Project/View/ViewProject.helpers'
+
+dayjs.extend(utc)
+
+export const periodToCompareDate: {
+ period: string
+ formula: (date?: Date[]) => {
+ from: string
+ to: string
+ }
+}[] = [{
+ period: '1d',
+ formula: () => {
+ const to = dayjs.utc().subtract(1, 'day').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(2, 'day').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}, {
+ period: '7d',
+ formula: () => {
+ const to = dayjs.utc().subtract(7, 'day').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(14, 'day').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}, {
+ period: '4w',
+ formula: () => {
+ const to = dayjs.utc().subtract(28, 'day').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(56, 'day').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}, {
+ period: '3M',
+ formula: () => {
+ const to = dayjs.utc().subtract(3, 'month').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(6, 'month').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}, {
+ period: '12M',
+ formula: () => {
+ const to = dayjs.utc().subtract(12, 'month').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(24, 'month').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}, {
+ period: 'custom',
+ formula: (date) => {
+ if (!date) {
+ return {
+ from: getFormatDate(new Date()),
+ to: getFormatDate(new Date()),
+ }
+ }
+ const days = (date[1].getTime() - date[0].getTime()) / (1000 * 3600 * 24)
+ const to = dayjs.utc().subtract(days, 'day').format('YYYY-MM-DD')
+ const from = dayjs.utc().subtract(days * 2, 'day').format('YYYY-MM-DD')
+
+ return {
+ from,
+ to,
+ }
+ },
+}]
diff --git a/app/utils/cookie.ts b/app/utils/cookie.ts
new file mode 100644
index 000000000..35e9a653c
--- /dev/null
+++ b/app/utils/cookie.ts
@@ -0,0 +1,24 @@
+import { isDevelopment, isSelfhosted } from 'redux/constants'
+
+const COOKIE_DOMAIN = 'swetrix.com'
+
+const COOKIE_SUFFIX = (isDevelopment || isSelfhosted) ? '' : `; domain=${COOKIE_DOMAIN}; secure`
+
+export const getCookie = (key: string) => {
+ const match = document.cookie.match(new RegExp(`(^| )${key}=([^;]+)`))
+
+ if (match) {
+ return match[2]
+ }
+
+ return null
+}
+
+export const setCookie = (key: string, value: string | number | boolean, maxAge = 3600, sameSite = 'strict') => {
+ document.cookie = `${key}=${value}; max-age=${maxAge}; path=/; SameSite=${sameSite}${COOKIE_SUFFIX}`
+}
+
+export const deleteCookie = (key: string) => {
+ document.cookie = `${key}=; max-age=0; path=/; SameSite=strict`
+ document.cookie = `${key}=; max-age=0; path=/; SameSite=strict${COOKIE_SUFFIX}`
+}
diff --git a/app/utils/countries.ts b/app/utils/countries.ts
new file mode 100644
index 000000000..08683ca99
--- /dev/null
+++ b/app/utils/countries.ts
@@ -0,0 +1,532 @@
+const countries = {
+ AE: {
+ d: 'M619.87,393.72L620.37,393.57L620.48,394.41L622.67,393.93L624.99,394.01L626.68,394.1L628.6,392.03L630.7,390.05L632.47,388.15L633,389.2L633.38,391.64L631.95,391.65L631.72,393.65L632.22,394.07L630.95,394.67L630.94,395.92L630.12,397.18L630.05,398.39L629.48,399.03L621.06,397.51L619.98,394.43z',
+ },
+ AF: {
+ d: 'M646.88,356.9L649.74,358.2L651.85,357.74L652.44,356.19L654.65,355.67L656.23,354.62L656.79,351.83L659.15,351.15L659.59,349.9L660.92,350.84L661.76,350.95L663.32,350.98L665.44,351.72L666.29,352.14L668.32,351.02L669.27,351.69L670.17,350.09L671.85,350.16L672.28,349.64L672.58,348.21L673.79,346.98L675.3,347.78L675,348.87L675.85,349.04L675.58,351.99L676.69,353.14L677.67,352.4L678.92,352.06L680.66,350.49L682.59,350.75L685.49,350.75L685.99,351.76L684.35,352.15L682.93,352.8L679.71,353.2L676.7,353.93L675.06,355.44L675.72,356.9L676.05,358.6L674.65,360.03L674.77,361.33L674,362.55L671.33,362.44L672.43,364.66L670.65,365.51L669.46,367.51L669.61,369.49L668.51,370.41L667.48,370.11L665.33,370.54L665.03,371.45L662.94,371.45L661.38,373.29L661.28,376.04L657.63,377.37L655.68,377.09L655.11,377.79L653.44,377.39L650.63,377.87L645.94,376.23L648.48,373.3L648.25,371.2L646.13,370.65L645.91,368.56L644.99,365.92L646.19,364.09L644.97,363.6L645.74,361.15z',
+ },
+ AL: {
+ d: 'M532.98,334.66L532.63,335.93L533.03,337.52L534.19,338.42L534.13,339.39L533.22,339.93L533.05,341.12L531.75,342.88L531.27,342.63L531.22,341.83L529.66,340.6L529.42,338.85L529.66,336.32L530.04,335.16L529.57,334.57L529.38,333.38L530.6,331.51L530.77,332.23L531.53,331.89L532.13,332.91L532.8,333.29z',
+ },
+ AM: {
+ d: 'M597.45,337.5L601.35,336.92L601.93,337.9L603,338.54L602.43,339.46L603.93,340.72L603.14,341.88L604.33,342.87L605.59,343.46L605.65,345.96L604.63,346.06L603.49,343.98L603.5,343.43L602.26,343.44L601.43,342.46L600.85,342.56L599.74,341.5L597.66,340.59L597.93,338.8z',
+ },
+ AO: {
+ d: 'M521.03,479.78l0.69,2.09l0.8,1.68l0.64,0.91l1.07,1.47l1.85,-0.23l0.93,-0.4l1.55,0.4l0.42,-0.7l0.7,-1.64l1.74,-0.11l0.15,-0.49l1.43,-0.01l-0.24,1.01l3.4,-0.02l0.05,1.77l0.57,1.09l-0.41,1.7l0.21,1.74l0.94,1.05l-0.15,3.37l0.69,-0.26l1.22,0.07l1.74,-0.42l1.28,0.17l0.3,0.88l-0.32,1.38l0.49,1.34l-0.42,1.07l0.24,0.99l-5.84,-0.04l-0.13,9.16l1.89,2.38l1.83,1.82l-5.15,1.19l-6.79,-0.41l-1.94,-1.4l-11.37,0.13l-0.42,0.21l-1.67,-1.32l-1.82,-0.09l-1.68,0.5l-1.35,0.56l-0.26,-1.83l0.39,-2.55l0.97,-2.65l0.15,-1.24l0.91,-2.59l0.67,-1.17l1.61,-1.87l0.9,-1.27l0.29,-2.11l-0.15,-1.61l-0.84,-1.01l-0.75,-1.72l-0.69,-1.69l0.15,-0.59l0.86,-1.12l-0.85,-2.72l-0.57,-1.88l-1.4,-1.77l0.27,-0.54l1.16,-0.38l0.81,0.05l0.98,-0.34L521.03,479.78zM510.12,479.24l-0.71,0.3l-0.75,-2.1l1.13,-1.21l0.85,-0.47l1.05,0.96l-1.02,0.59l-0.46,0.72L510.12,479.24z',
+ },
+ AR: {
+ d: 'M291.6,648.91l-2.66,0.25l-1.43,-1.73l-1.69,-0.13l-3,0l0,-10.57l1.08,2.15l1.4,3.53l3.65,2.87l3.93,1.21L291.6,648.91zM293.1,526.47l1.65,2.18l1.09,-2.43l3.2,0.12l0.45,0.64l5.15,4.94l2.29,0.46l3.43,2.26l2.89,1.2l0.4,1.36l-2.76,4.73l2.83,0.85l3.15,0.48l2.22,-0.5l2.54,-2.4l0.46,-2.74l1.39,-0.59l1.41,1.79l-0.06,2.49l-2.36,1.73l-1.88,1.28l-3.16,3.08l-3.74,4.37l-0.7,2.59l-0.75,3.37l0.03,3.3l-0.61,0.74l-0.22,2.17l-0.19,1.76l3.56,2.91l-0.38,2.37l1.75,1.51l-0.14,1.7l-2.69,4.52l-4.16,1.91l-5.62,0.75l-3.08,-0.36l0.59,2.15l-0.57,2.72l0.52,1.85l-1.68,1.3l-2.87,0.51l-2.7,-1.35l-1.08,0.97l0.39,3.71l1.89,1.14l1.54,-1.19l0.84,1.96l-2.58,1.18l-2.25,2.38l-0.41,3.91l-0.66,2.11l-2.65,0.01l-2.2,2.04l-0.8,3.01l2.76,2.98l2.68,0.83l-0.96,3.73l-3.31,2.38l-1.82,5.03l-2.56,1.72l-1.15,2.06l0.91,4.64l1.87,2.63l-1.18,-0.23l-2.6,-0.71l-6.78,-0.61l-1.16,-2.63l0.05,-3.33l-1.87,0.28l-0.99,-1.6l-0.25,-4.6l2.15,-1.88l0.89,-2.68l-0.33,-2.11l1.49,-3.52l1.02,-5.35l-0.3,-2.33l1.22,-0.75l-0.3,-1.48l-1.3,-0.78l0.92,-1.63l-1.27,-1.46l-0.65,-4.4l1.13,-0.77l-0.47,-4.54l0.66,-3.75l0.75,-3.22l1.68,-1.3l-0.85,-3.46l-0.01,-3.22l2.12,-2.26l-0.06,-2.87l1.6,-3.31l0.01,-3.09l-0.73,-0.61l-1.29,-5.69l1.73,-3.34l-0.27,-3.11l1,-2.9l1.84,-2.96l1.98,-1.95l-0.84,-1.23l0.59,-1l-0.09,-5.14l3.05,-1.51l0.96,-3.16l-0.34,-0.76l2.34,-2.72L293.1,526.47z',
+ },
+ AT: {
+ d: 'M522.86,309.85L522.65,311.56L521.07,311.57L521.61,312.46L520.68,315.11L520.15,315.8L517.7,315.9L516.28,316.82L513.96,316.51L509.95,315.46L509.33,314.03L506.56,314.75L506.23,315.52L504.53,314.94L503.1,314.83L501.83,314.09L502.26,313.08L502.15,312.34L503,312.12L504.42,313.26L504.82,312.17L507.29,312.35L509.3,311.61L510.64,311.73L511.51,312.58L511.78,311.88L511.38,309.16L512.39,308.62L513.37,306.67L515.46,308.04L517.03,306.3L518.02,305.98L520.2,307.28L521.51,307.06L522.81,307.86L522.58,308.4z',
+ },
+ AU: {
+ d: 'M882.93,588.16l2.71,1.28l1.53,-0.51l2.19,-0.71l1.68,0.25l0.2,4.43l-0.96,1.3l-0.29,3.06l-0.98,-1.05l-1.95,2.67l-0.58,-0.21l-1.72,-0.12l-1.73,-3.28l-0.38,-2.5l-1.62,-3.25l0.07,-1.7L882.93,588.16zM877.78,502.1l1.01,2.25l1.8,-1.08l0.93,1.22l1.35,1.13l-0.29,1.28l0.6,2.48l0.43,1.45l0.71,0.35l0.76,2.5l-0.27,1.52l0.91,1.99l3.04,1.54l1.98,1.41l1.88,1.29l-0.37,0.72l1.6,1.87l1.09,3.25l1.12,-0.66l1.14,1.31l0.69,-0.46l0.48,3.21l1.99,1.87l1.3,1.17l2.19,2.49l0.79,2.49l0.07,1.77l-0.19,1.94l1.34,2.68l-0.16,2.81l-0.49,1.48l-0.76,2.87l0.06,1.86l-0.55,2.34l-1.24,3l-2.08,1.63l-1.02,2.59l-0.94,1.67l-0.83,2.93l-1.08,1.71l-0.71,2.58l-0.36,2.4l0.14,1.11l-1.61,1.22l-3.14,0.13l-2.59,1.45l-1.29,1.38l-1.69,1.54l-2.32,-1.58l-1.72,-0.63l0.44,-1.85l-1.53,0.67l-2.46,2.58l-2.42,-0.97l-1.59,-0.56l-1.6,-0.25l-2.71,-1.03l-1.81,-2.18l-0.52,-2.66l-0.65,-1.75l-1.38,-1.4l-2.7,-0.41l0.92,-1.66l-0.68,-2.52l-1.37,2.35l-2.5,0.63l1.47,-1.88l0.42,-1.95l1.08,-1.65l-0.22,-2.47l-2.28,2.85l-1.75,1.15l-1.07,2.69l-2.19,-1.4l0.09,-1.79l-1.75,-2.43l-1.48,-1.25l0.53,-0.77l-3.6,-2l-1.97,-0.09l-2.7,-1.6l-5.02,0.31l-3.63,1.18l-3.19,1.1l-2.68,-0.22l-2.97,1.7l-2.43,0.77l-0.54,1.75l-1.04,1.36l-2.38,0.08l-1.76,0.3l-2.48,-0.61l-2.02,0.37l-1.92,0.15l-1.67,1.8l-0.82,-0.15l-1.41,0.96l-1.35,1.08l-2.05,-0.13l-1.88,0l-2.97,-2.17l-1.51,-0.64l0.06,-1.93l1.39,-0.46l0.48,-0.76l-0.1,-1.2l0.34,-2.3l-0.31,-1.95l-1.48,-3.29l-0.46,-1.85l0.12,-1.83l-1.12,-2.08l-0.07,-0.93l-1.24,-1.26l-0.35,-2.47l-1.6,-2.48l-0.39,-1.33l1.23,1.35l-0.95,-2.88l1.39,0.9l0.83,1.2l-0.05,-1.59l-1.39,-2.43l-0.27,-0.97l-0.65,-0.92l0.3,-1.77l0.57,-0.75l0.38,-1.52l-0.3,-1.77l1.16,-2.17l0.21,2.29l1.18,-2.07l2.28,-1l1.37,-1.28l2.14,-1.1l1.27,-0.23l0.77,0.37l2.21,-1.11l1.7,-0.33l0.42,-0.65l0.74,-0.27l1.55,0.07l2.95,-0.87l1.52,-1.31l0.72,-1.58l1.64,-1.49l0.13,-1.17l0.07,-1.59l1.96,-2.47l1.18,2.51l1.19,-0.58l-1,-1.38l0.88,-1.41l1.24,0.63l0.34,-2.21l1.53,-1.42l0.68,-1.14l1.41,-0.49l0.04,-0.8l1.23,0.34l0.05,-0.72l1.23,-0.41l1.36,-0.39l2.07,1.32l1.56,1.71l1.75,0.02l1.78,0.27l-0.59,-1.58l1.34,-2.3l1.26,-0.75l-0.44,-0.71l1.22,-1.63l1.7,-1.01l1.43,0.34l2.36,-0.54l-0.05,-1.45l-2.05,-0.94l1.49,-0.41l1.86,0.7l1.49,1.17l2.36,0.73l0.8,-0.29l1.74,0.88l1.64,-0.82l1.05,0.25l0.66,-0.55l1.29,1.41l-0.75,1.53l-1.06,1.16l-0.96,0.1l0.33,1.15l-0.82,1.43l-1,1.41l0.2,0.81l2.23,1.6l2.16,0.93l1.44,1l2.03,1.72l0.79,0l1.47,0.75l0.43,0.9l2.68,0.99l1.85,-1l0.55,-1.57l0.57,-1.29l0.35,-1.59l0.85,-2.3l-0.39,-1.39l0.2,-0.84l-0.32,-1.64l0.37,-2.16l0.54,-0.58l-0.44,-0.95l0.68,-1.51l0.53,-1.56l0.07,-0.81l1.04,-1.06l0.79,1.39l0.19,1.78l0.7,0.34l0.12,1.2l1.02,1.45l0.21,1.62L877.78,502.1z',
+ },
+ AZ: {
+ d: 'M601.43,342.46l0.83,0.97l1.24,-0.01l-0.01,0.56l1.14,2.08l-1.92,-0.48l-1.42,-1.66l-0.44,-1.37L601.43,342.46zM608.08,337.03l1.24,0.25l0.48,-0.95l1.67,-1.51l1.47,1.97l1.43,2.62l1.31,0.17l0.86,0.99l-2.31,0.29l-0.49,2.82l-0.48,1.26l-1.03,0.84l0.08,1.77l-0.7,0.18l-1.75,-1.87l0.97,-1.78l-0.83,-1.06l-1.05,0.27l-3.31,2.66l-0.06,-2.5l-1.26,-0.59l-1.19,-0.99l0.79,-1.16l-1.49,-1.26l0.56,-0.92l-1.07,-0.64l-0.58,-0.97l0.69,-0.61l2.09,1.07l1.51,0.22l0.38,-0.43l-1.38,-2.02l0.73,-0.52l0.79,0.13L608.08,337.03z',
+ },
+ BA: {
+ d: 'M528.54,323.11L529.56,323.1L528.86,324.82L530.21,326.32L529.8,328.14L529.14,328.31L528.61,328.67L527.7,329.56L527.29,331.66L524.81,330.22L523.75,328.61L522.68,327.76L521.39,326.31L520.79,325.1L519.41,323.27L520,321.63L521.01,322.54L521.61,321.72L522.92,321.63L525.33,322.29L527.27,322.23z',
+ },
+ BD: {
+ d: 'M735.09,400.41L735.04,402.56L734.06,402.1L734.24,404.51L733.44,402.95L733.28,401.43L732.74,399.98L731.57,398.22L728.99,398.1L729.25,399.35L728.37,401.02L727.17,400.41L726.76,400.96L725.97,400.63L724.89,400.36L724.45,397.88L723.48,395.6L723.95,393.76L722.23,392.94L722.85,391.82L724.6,390.67L722.58,389.04L723.57,386.93L725.79,388.27L727.13,388.43L727.38,390.58L730.04,391L732.65,390.95L734.26,391.48L732.97,394.07L731.71,394.25L730.85,395.98L732.38,397.56L732.84,395.62L733.62,395.61z',
+ },
+ BE: {
+ d: 'M484.55,295.91L486.6,296.26L489.2,295.33L490.97,297.28L492.52,298.32L492.2,301.29L491.47,301.45L491.16,303.88L488.71,301.91L487.27,302.25L485.31,300.19L484.01,298.42L482.71,298.35L482.3,296.79z',
+ },
+ BF: {
+ d: 'M467.33,436.4L465.41,435.67L464.09,435.78L463.11,436.49L461.85,435.89L461.36,434.96L460.1,434.34L459.91,432.7L460.68,431.49L460.61,430.53L462.84,428.17L463.25,426.21L464.02,425.51L465.38,425.89L466.55,425.31L466.93,424.57L469.11,423.29L469.64,422.39L472.26,421.19L473.81,420.78L474.51,421.33L476.3,421.32L476.08,422.72L476.46,424.03L478.04,425.9L478.12,427.28L481.36,427.93L481.29,429.88L480.68,430.74L479.31,431L478.74,432.24L477.78,432.56L475.32,432.5L474.02,432.28L473.12,432.74L471.88,432.53L467.01,432.66L466.94,434.27z',
+ },
+ BG: {
+ d: 'M538.78,325.56L539.59,327.16L540.67,326.87L542.83,327.48L546.95,327.68L548.34,326.69L551.64,325.79L553.68,327.2L555.33,327.61L553.87,329.2L552.85,331.93L553.75,334.09L551.34,333.58L548.48,334.76L548.45,336.62L545.9,336.97L543.93,335.67L541.68,336.7L539.61,336.59L539.41,334.12L538,332.91L538.47,332.37L538.16,331.92L538.63,330.71L539.7,329.52L538.34,327.86L538.09,326.44z',
+ },
+ BI: {
+ d: 'M557.52,475.93L557.34,472.56L556.63,471.3L558.34,471.52L559.2,469.93L560.69,470.11L560.85,471.21L561.45,471.84L561.48,472.75L560.79,473.33L559.69,474.79L558.68,475.8z',
+ },
+ BJ: {
+ d: 'M482.8,445.92L480.48,446.25L479.79,444.31L479.92,437.85L479.35,437.27L479.25,435.88L478.27,434.89L477.42,434.06L477.78,432.56L478.74,432.24L479.31,431L480.68,430.74L481.29,429.88L482.23,429.05L483.24,429.04L485.38,430.68L485.27,431.63L485.9,433.31L485.35,434.45L485.64,435.21L484.28,436.96L483.42,437.83L482.89,439.6L482.96,441.39z',
+ },
+ BN: {
+ d: 'M795.46,450.77L796.57,449.72L798.96,448.19L798.83,449.57L798.67,451.35L797.33,451.26L796.74,452.21z',
+ },
+ BO: {
+ d: 'M299.04,526.35L295.84,526.22L294.75,528.65L293.1,526.47L289.43,525.74L287.1,528.46L285.07,528.87L283.97,524.72L282.47,521.38L283.35,518.51L281.88,517.26L281.51,515.14L280.13,513.14L281.9,510L280.69,507.56L281.34,506.59L280.83,505.52L281.93,504.08L281.99,501.64L282.12,499.62L282.73,498.66L280.3,494.08L282.39,494.32L283.83,494.25L284.46,493.4L286.91,492.25L288.38,491.19L292.05,490.71L291.76,492.83L292.1,493.92L291.87,495.82L294.92,498.37L298.06,498.84L299.16,499.91L301.06,500.48L302.22,501.31L303.98,501.28L305.61,502.13L305.73,503.79L306.28,504.63L306.32,505.88L305.5,505.92L306.58,509.29L311.95,509.41L311.54,511.09L311.84,512.24L313.37,513.06L314.04,514.88L313.54,517.2L312.77,518.49L313.04,520.18L312.16,520.79L312.12,519.88L309.5,518.37L306.9,518.32L302.01,519.18L300.67,521.8L300.6,523.4L299.49,526.99z',
+ },
+ BR: {
+ d: 'M313.68,551.79L317.42,547.42L320.59,544.34L322.47,543.06L324.83,541.33L324.89,538.84L323.48,537.05L322.09,537.64L322.64,535.86L323.02,534.04L323.02,532.36L322.01,531.81L320.96,532.3L319.92,532.17L319.59,530.99L319.33,528.22L318.8,527.32L316.91,526.5L315.77,527.09L312.81,526.51L312.99,522.45L312.16,520.79L313.04,520.18L312.77,518.49L313.54,517.2L314.04,514.88L313.37,513.06L311.84,512.24L311.54,511.09L311.95,509.41L306.58,509.29L305.5,505.92L306.32,505.88L306.28,504.63L305.73,503.79L305.61,502.13L303.98,501.28L302.22,501.31L301.06,500.48L299.16,499.91L298.06,498.84L294.92,498.37L291.87,495.82L292.1,493.92L291.76,492.83L292.05,490.71L288.38,491.19L286.91,492.25L284.46,493.4L283.83,494.25L282.39,494.32L280.3,494.08L278.72,494.57L277.44,494.24L277.63,489.94L275.33,491.6L272.86,491.53L271.8,490.02L269.94,489.86L270.53,488.65L268.97,486.93L267.8,484.4L268.54,483.89L268.54,482.7L270.24,481.89L269.96,480.38L270.67,479.4L270.88,478.1L274.08,476.19L276.38,475.66L276.75,475.24L279.28,475.37L280.54,467.72L280.61,466.51L280.17,464.92L278.93,463.9L278.94,461.88L280.52,461.42L281.08,461.71L281.17,460.64L279.53,460.35L279.5,458.61L284.96,458.67L285.89,457.71L286.67,458.59L287.21,460.24L287.74,459.89L289.29,461.37L291.47,461.19L292.01,460.33L294.09,459.68L295.25,459.23L295.57,458.05L297.58,457.25L297.42,456.67L295.05,456.43L294.66,454.67L294.77,452.8L293.52,452.08L294.04,451.82L296.12,452.18L298.35,452.88L299.16,452.22L301.17,451.78L304.31,450.74L305.34,449.67L304.96,448.88L306.42,448.76L307.08,449.4L306.71,450.63L307.67,451.05L308.32,452.35L307.54,453.33L307.09,455.71L307.81,457.12L308.01,458.41L309.74,459.71L311.12,459.85L311.43,459.31L312.31,459.19L313.58,458.7L314.49,457.96L316.04,458.19L316.72,458.09L318.25,458.32L318.5,457.75L318.03,457.2L318.31,456.39L319.44,456.64L320.77,456.35L322.37,456.94L323.6,457.52L324.47,456.76L325.09,456.88L325.48,457.67L326.82,457.47L327.89,456.41L328.75,454.35L330.41,451.8L331.37,451.67L332.06,453.21L333.63,458.09L335.13,458.55L335.21,460.47L333.1,462.76L333.97,463.6L338.93,464.04L339.03,466.83L341.16,465L344.69,466.01L349.34,467.71L350.71,469.34L350.25,470.88L353.51,470.02L358.97,471.5L363.16,471.39L367.3,473.7L370.88,476.83L373.04,477.63L375.44,477.75L376.46,478.63L377.41,482.2L377.88,483.89L376.76,488.55L375.33,490.39L371.38,494.33L369.59,497.54L367.52,500.02L366.82,500.08L366.03,502.18L366.23,507.58L365.45,512.06L365.15,513.99L364.27,515.14L363.77,519.08L360.93,522.96L360.45,526.05L358.18,527.36L357.52,529.17L354.48,529.16L350.07,530.33L348.09,531.68L344.95,532.57L341.65,535.01L339.28,538.07L338.87,540.39L339.34,542.12L338.81,545.3L338.18,546.85L336.22,548.6L333.11,554.28L330.64,556.87L328.73,558.41L327.46,561.57L325.6,563.48L324.82,561.58L326.06,560.01L324.44,557.76L322.24,555.94L319.35,553.86L318.31,553.95L315.5,551.45z',
+ },
+ BS: {
+ d: 'M257.86,395.2l-0.69,0.15l-0.71,-1.76l-1.05,-0.89l0.61,-1.95l0.84,0.12l0.98,2.55L257.86,395.2zM257.06,386.51l-3.06,0.5l-0.2,-1.15l1.32,-0.25l1.85,0.09L257.06,386.51zM259.36,386.48l-0.48,2.21l-0.52,-0.4l0.05,-1.63l-1.26,-1.23l-0.01,-0.36L259.36,386.48z',
+ },
+ BT: {
+ d: 'M732.36,382.78L733.5,383.78L733.3,385.71L731.01,385.8L728.65,385.59L726.88,386.08L724.33,384.89L724.28,384.26L726.13,381.92L727.64,381.12L729.65,381.85L731.13,381.93z',
+ },
+ BW: {
+ d: 'M547.17,515.95L547.73,516.47L548.62,518.18L551.79,521.43L552.99,521.75L553,522.8L553.82,524.7L555.99,525.16L557.78,526.52L553.81,528.74L551.29,531L550.36,533.03L549.52,534.18L547.99,534.43L547.5,535.9L547.21,536.86L545.42,537.58L543.14,537.43L541.8,536.57L540.62,536.19L539.25,536.91L538.56,538.39L537.23,539.32L535.83,540.71L533.82,541.03L533.2,539.94L533.46,538.04L531.79,535.11L531.04,534.65L531.04,525.79L533.8,525.68L533.88,515.11L535.97,515.02L540.29,513.99L541.37,515.2L543.15,514.05L544.01,514.04L545.59,513.38L546.09,513.6z',
+ },
+ BY: {
+ d: 'M541.1,284.07L543.81,284.11L546.85,282.31L547.5,279.59L549.8,278.02L549.54,275.82L551.24,274.98L554.26,273.05L557.21,274.31L557.61,275.54L559.08,274.95L561.82,276.13L562.09,278.44L561.49,279.76L563.25,282.91L564.39,283.78L564.22,284.64L566.11,285.47L566.92,286.72L565.83,287.74L563.57,287.58L563.03,288.02L563.69,289.56L564.38,292.49L561.97,292.76L561.11,293.76L560.92,296.02L559.81,295.59L557.28,295.81L556.54,294.76L555.49,295.54L554.44,294.89L552.23,294.8L549.1,293.72L546.27,293.36L544.1,293.46L542.56,294.69L541.22,294.86L541.17,292.85L540.3,290.73L541.98,289.79L542,287.94L541.22,286.16z',
+ },
+ BZ: {
+ d: 'M225.31,412.96L225.29,412.53L225.63,412.39L226.14,412.74L227.14,410.97L227.67,410.93L227.68,411.36L228.21,411.37L228.17,412.17L227.71,413.44L227.96,413.89L227.67,414.94L227.84,415.21L227.52,416.68L226.97,417.46L226.46,417.55L225.9,418.55L225.07,418.55L225.29,415.27z',
+ },
+ CA: {
+ d: 'M198.93,96.23l-0.22,-5.9l3.63,0.58l1.63,0.96l3.35,4.92l-0.76,4.97l-4.15,2.77l-2.28,-3.12L198.93,96.23zM212.14,108.88l0.33,-1.49l-1.97,-2.45l-5.65,-0.19l0.75,3.68l5.25,0.83L212.14,108.88zM248.49,155.83l3.08,5.1l0.81,0.57l3.07,-1.27l3.02,0.2l2.98,0.28l-0.25,-2.64l-4.84,-5.38l-6.42,-1.08l-1.35,0.67L248.49,155.83zM183.06,93.13l-2.71,4.19l6.24,0.52l4.61,4.44l4.58,1.5l-1.09,-5.68l-2.14,-6.73l-7.58,-5.35l-5.5,-2.04l0.2,5.69L183.06,93.13zM208.96,82.89l5.13,-0.12l-2.22,4l-0.04,5.3l3.01,5.76l5.81,1.77l4.96,-0.99l5.18,-10.73l3.85,-4.45l-3.38,-4.97l-2.21,-10.65l-4.6,-3.19l-4.72,-3.68l-3.58,-9.56l-6.52,0.94l1.23,4.15l-2.87,1.25l-1.94,5.32l-1.94,7.46l1.78,7.26L208.96,82.89zM145.21,136.27l3.92,1.95l12.67,-1.3l-5.82,4.77l0.36,3.43l4.26,-0.24l7.07,-4.58l9.5,-1.67l1.71,-5.22l-0.49,-5.57l-2.94,-0.5l-2.5,1.93l-1.1,-4.13l-0.95,-5.7l-2.9,-1.42l-2.57,4.41l4.01,11.05l-4.9,-0.85l-4.98,-6.79l-7.89,-4l-2.64,3.32L145.21,136.27zM167.77,94.21l-3.65,-2.9l-1.5,-0.66l-2.88,4.28l-0.05,2l4.66,0.01L167.77,94.21zM166.31,106.56l0.93,-3.99l-3.95,-2.12l-4.09,1.39l-2.27,4.26l4.16,4.21L166.31,106.56zM195.4,139.8l4.62,-1.11l1.28,-8.25l-0.09,-5.95l-2.14,-5.56l-0.22,1.6l-3.94,-0.7l-4.22,4.09l-3.02,-0.37l0.18,8.92l4.6,-0.87l-0.06,6.47L195.4,139.8zM192.12,185.41l-5.06,-3.93l-4.71,-4.21l-0.87,-6.18l-1.76,-8.92l-3.14,-3.84l-2.79,-1.55l-2.47,1.42l1.99,9.59l-1.41,3.73l-2.29,-8.98l-2.56,-3.11l-3.17,4.81l-3.9,-4.76l-6.24,2.87l1.4,-4.46l-2.87,-1.87l-7.51,5.84l-1.95,3.71l-2.35,6.77l4.9,2.32l4.33,-0.12l-6.5,3.46l1.48,3.13l3.98,0.17l5.99,-0.67l5.42,1.96l-3.66,1.44l-3.95,-0.37l-4.33,1.41l-1.87,0.87l3.45,6.35l2.49,-0.88l3.83,2.15l1.52,3.65l4.99,-0.73l7.1,-1.16l5.26,-2.65l3.26,-0.48l4.82,2.12l5.07,1.22l0.94,-2.86l-1.79,-3.05l4.6,-0.64L192.12,185.41zM199.86,184.43l-1.96,3.54l-2.47,2.49l3.83,3.54l2.28,-0.85l3.78,2.36l1.74,-2.73l-1.71,-3.03l-0.84,-1.53l-1.68,-1.46L199.86,184.43zM182.25,154.98l-2.13,-2.17l-3.76,0.4l-0.95,1.38l4.37,6.75L182.25,154.98zM210.94,168.15l3.01,-6.93l3.34,-1.85l4.19,-8.74l-5.36,-2.47l-5.84,-0.36l-2.78,2.77l-1.47,4.23l-0.04,4.82l1.75,8.19L210.94,168.15zM228.09,145.15l5.76,-0.18l8.04,-1.61l3.59,1.28l4.18,-2.26l1.75,-2.84l-0.63,-4.52l-3,-4.23l-4.56,-0.8l-5.71,0.97l-4.46,2.44l-4.09,-0.94l-3.78,-0.5l-1.78,-2.7l-3.22,-2.61l0.64,-4.43l-2.42,-3.98l-5.52,0.03l-3.11,-3.99l-5.78,-0.8l-1.06,5.1l3.25,3.74l5.8,1.45l2.81,5.09l0.34,5.6l0.97,5.99l7.45,3.42L228.09,145.15zM139.07,126.88l5.21,-5.05l2.62,-0.59l2.16,-4.23l0.38,-9.77l-3.85,1.91l-4.3,-0.18l-5.76,8.19l-4.76,8.98l3.8,2.51L139.07,126.88zM211.25,143.05l1.53,-4.14l-1.02,-3.46l-2.45,-3.92l-4.03,3.02l-1.49,4.92l3.4,2.79L211.25,143.05zM202.94,154.49l-0.73,-2.88l-5,1.26l-3.34,-2.11l-3.32,4.8l3.09,6.28l-5.72,-1.17l-0.06,3.01l6.97,7.05l1.94,3.38l2.7,0.73l4.6,-3.41l0.5,-8.21l-4.24,-4.07L202.94,154.49zM128.95,308.23l-1.16,-2.34l-2.8,-1.77l-1.39,-2.05l-0.95,-1.5l-2.64,-0.46l-1.72,-0.67l-2.94,-0.96l-0.24,1.02l1.08,2.38l2.89,0.78l0.5,1.23l2.51,1.5l0.84,1.51l4.6,1.92L128.95,308.23zM250.65,230.6l-2,-2.11l-2.06,0.5l-0.25,-3.06l-3.21,-2.04l-3.07,-2.27l-1.63,-1.75l-1.43,1.03l-0.52,-2.96l-2.03,-0.55l-0.96,6.13l-0.36,5.11l-2.44,3.14l3.8,-0.6l0.96,3.65l3.99,-3.23l2.78,-3.38l1.57,2.86l4.36,1.51L250.65,230.6zM130.12,178.05l7.38,-4.18V170l3.48,-6.41l6.88,-6.69l3.52,-2.47l-3.01,-4.2l-2.72,-2.95l-7.16,-0.57l-4,-2.16l-9.48,1.63l2.74,6.23l-2.43,6.43l-1.94,6.87l-1.2,3.86l6.47,4.69L130.12,178.05zM264.36,205.36l0.32,-1.01l-0.03,-3.17l-2.19,-2.08l-2.57,1.05l-1.19,4.17l0.7,3.56l3.14,-0.36L264.36,205.36zM288.18,212.9l4.41,6.6l3.45,2.85l4.92,-7.87l0.87,-4.93l-4.41,-0.47l-4.03,-6.7l-4.45,-1.64l-6.6,-4.97l5.15,-3.63l-2.65,-7.54l-2.44,-3.35l-6.77,-3.35l-2.92,-5.55l-5.21,1.99l-0.36,-3.86l-3.86,-4.32l-6.22,-4.71l-2.65,3.71l-5.55,2.66l0.42,-6.06l-4.81,-10.05l-7.11,4.06l-2.59,7.7l-2.21,-5.92l2.06,-6.37l-7.24,2.65l-2.88,3.99l-2.15,8.42l0.89,9.05l3.98,0.04l-2.93,3.92l2.33,2.96l4.55,1.25l5.93,2.42l10.2,1.82l5.08,-1.04l1.5,-2.42l2.21,2.79l2.47,0.46l2.97,4.96l-1.8,1.98l5.68,2.63l4.29,3.68l1.08,2.55l0.77,3.24l-3.63,6.93l-0.98,3.44l0.94,2.42l-5.77,0.86l-5.27,0.12l-1.85,4.87l2.37,2.23l8.11,-1.03l-0.04,-1.89l4.08,3.15l4.18,3.28l-0.98,1.77l3.4,3.02l6.02,3.53l7.6,2.39l-0.46,-2.09l-2.92,-3.67l-3.96,-5.37l7.03,5l3.54,1.66l0.97,-4.44l-1.82,-6.3l-1.16,-1.73l-3.81,-3.03l-2.95,-3.91l0.35,-3.94L288.18,212.9zM222.35,51.34l2.34,7.29l4.96,5.88l9.81,-1.09l6.31,1.97l-4.38,6.05l-2.21,-1.78l-7.66,-0.71l1.19,8.31l3.96,6.04l-0.8,5.2l-4.97,3.46l-2.27,5.47l4.55,2.65l3.82,8.55l-7.5,-5.7l-1.71,0.94l1.38,9.38l-5.18,2.83l0.35,5.85l5.3,0.63l4.17,1.44l8.24,-1.84l7.33,3.27l7.49,-7.19l-0.06,-3.02l-4.79,0.48l-0.39,-2.84l3.92,-3.83l1.33,-5.15l4.33,-3.83l2.66,-4.76l-2.32,-7.1l1.94,-2.65l-3.86,-1.89l8.49,-1.63l1.79,-3.15l5.78,-2.6l4.8,-13.47l4.57,-4.94l6.62,-11.12l-6.1,0.1l2.54,-4.3l6.78,-3.99l6.84,-8.9l0.12,-5.73l-5.13,-6.04l-6.02,-2.93l-7.49,-1.82l-6.07,-1.49l-6.07,-1.5l-8.1,3.98l-1.49,-2.53l-8.57,0.98l-5.03,2.57l-3.7,3.65l-2.13,11.74L239,24.52l-3.48,-1.14l-4.12,7.97l-5.5,3.35l-3.27,0.66l-4.17,3.84l0.61,6.65L222.35,51.34zM296.75,316.34l-0.98,-1.98l-1.06,1.26l0.7,1.36l3.56,1.71l1.04,-0.26l1.38,-1.66l-2.6,0.11L296.75,316.34zM239.75,238.48l0.61,1.63l1.98,0.14l3.28,-3.34l0.06,-1.19l-3.85,-0.06L239.75,238.48zM301.88,304.92l-2.87,-1.8l-3.69,-1.09l-0.97,0.37l2.61,2.04l3.63,1.34l1.36,-0.08L301.88,304.92zM326.76,309.71l-0.36,-2.24l-1.96,0.72l0.87,-3.11l-2.8,-1.32l-1.29,1.05l-2.49,-1.18l0.98,-1.51l-1.88,-0.93l-1.83,1.47l1.86,-3.82l1.5,-2.8l0.54,-1.22l-1.3,-0.2l-2.43,1.55l-1.74,2.53l-2.9,6.92l-2.35,2.56l1.22,1.14l-1.75,1.47l0.43,1.23l5.44,0.13l3.01,-0.25l2.69,1.01l-1.98,1.93l1.67,0.14l3.25,-3.58l0.78,0.53l-0.61,3.37l1.84,0.77l1.27,-0.15l1.18,-3.61L326.76,309.71zM305.57,314.47l-2.81,4.56l-4.63,0.58l-3.64,-2.01l-0.92,-3.07l-0.89,-4.46l2.65,-2.83l-2.48,-2.09l-4.19,0.43l-5.88,3.53l-4.5,5.45l-2.38,0.67l3.23,-3.8l4.04,-5.57l3.57,-1.9l2.35,-3.11l2.9,-0.3l4.21,0.03l6,0.92l4.74,-0.71l3.53,-3.62l4.62,-1.59l2.01,-1.58l2.04,-1.71l-0.2,-5.19l-1.13,-1.77l-2.18,-0.63l-1.11,-4.05l-1.8,-1.55l-4.47,-1.26l-2.52,-2.82l-3.73,-2.83l1.13,-3.2l-3.1,-6.26l-3.65,-6.89l-2.18,-4.98l-1.86,2.61l-2.68,6.05l-4.06,2.97l-2.03,-3.16l-2.56,-0.85l-0.93,-6.99l0.08,-4.8l-5,-0.44l-0.85,-2.27l-3.45,-3.44l-2.61,-2.04l-2.32,1.58l-2.88,-0.58l-4.81,-1.65l-1.95,1.4l0.94,9.18l1.22,5.12l-3.31,5.75l3.41,4.02l1.9,4.44l0.23,3.42l-1.55,3.5l-3.18,3.46l-4.49,2.28l1.98,2.53l1.46,7.4l-1.52,4.68l-2.16,1.46l-4.17,-4.28l-2.03,-5.17l-0.87,-4.76l0.46,-4.19l-3.05,-0.47l-4.63,-0.28l-2.97,-2.08l-3.51,-1.37l-2.01,-2.38l-2.8,-1.94l-5.21,-2.23l-3.92,1.02l-1.31,-3.95l-1.26,-4.99l-4.12,-0.9l0.15,-6.41l1.09,-4.48l3.04,-6.6l3.43,-4.9l3.26,-0.77l0.19,-4.05l2.21,-2.68l4.01,-0.42l3.25,-4.39l0.82,-2.9l2.7,-5.73l0.84,-3.5l2.9,2.11l3.9,-1.08l5.49,-4.96l0.36,-3.54l-1.98,-3.98l2.09,-4.06l-0.17,-3.87l-3.76,-3.95l-4.14,-1.19l-3.98,-0.62l-0.15,8.71l-2.04,6.56l-2.93,5.3l-2.71,-4.95l0.84,-5.61l-3.35,-5.02l-3.75,6.09l0.01,-7.99l-5.21,-1.63l2.49,-4.01l-3.81,-9.59l-2.84,-3.91l-3.7,-1.44l-3.32,6.43l-0.22,9.34l3.27,3.29l3,4.91l-1.27,7.71l-2.26,-0.2l-1.78,5.88l0.02,-7l-4.34,-2.58l-2.49,1.33l0.32,4.67l-4.09,-0.18l-4.35,1.17l-4.95,-3.35l-3.13,0.6l-2.82,-4.11l-2.26,-1.84l-2.24,0.77l-3.41,0.35l-1.81,2.61l2.86,3.19l-3.05,3.72l-2.99,-4.42l-2.39,1.3l-7.57,0.87l-5.07,-1.59l3.94,-3.74l-3.78,-3.9l-2.75,0.5l-3.86,-1.32l-6.56,-2.89l-4.29,-3.37l-3.4,-0.47l-1.06,2.36l-3.44,1.31l-0.38,-6.15l-3.73,5.5l-4.74,-7.32l-1.94,-0.89l-0.63,3.91l-2.09,1.9l-1.93,-3.39l-4.59,2.05l-4.2,3.55l-4.17,-0.98l-3.4,2.5l-2.46,3.28l-2.92,-0.72l-4.41,-3.8l-5.23,-1.94l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12l-1.56,2.35l0.06,2.48l3.39,3.45l0.49,3.76l3.59,1.96l-0.4,2.79l1.56,3.96l5.08,1.82l2,1.89l5.43,4.23l0.38,0.01h7.96h8.32h2.76h8.55h8.27h8.41l8.42,0l9.53,0l9.59,0l5.8,0l0.01,-1.64l0.95,-0.02l0.5,2.35l0.87,0.72l1.96,0.26l2.86,0.67l2.72,1.3l2.27,-0.55l3.45,1.09l1.14,-1.66l1.59,-0.66l0.62,-1.03l0.63,-0.55l2.61,0.86l1.93,0.1l0.67,0.57l0.94,2.38l3.15,0.63l-0.49,1.18l1.11,1.21l-0.48,1.56l1.18,0.51l-0.59,1.37l0.75,0.13l0.53,-0.6l0.55,0.9l2.1,0.5l2.13,0.04l2.27,0.41l2.51,0.78l0.91,1.26l1.82,3.04l-0.9,1.3l-2.28,-0.54l-1.42,-2.44l0.36,2.49l-1.34,2.17l0.15,1.84l-0.23,1.07l-1.81,1.27l-1.32,2.09l-0.62,1.32l1.54,0.24l2.08,-1.2l1.23,-1.06l0.83,-0.17l1.54,0.38l0.75,-0.59l1.37,-0.48l2.44,-0.47v0l0,0l-0.25,-1.15l-0.13,0.04l-0.86,0.2l-1.12,-0.36l0.84,-1.32l0.85,-0.46l1.98,-0.56l2.37,-0.53l1.24,0.73l0.78,-0.85l0.89,-0.54l0.6,0.29l0.03,0.06l2.87,-2.73l1.27,-0.73l4.26,-0.03l5.17,0l0.28,-0.98l0.9,-0.2l1.19,-0.62l1,-1.82l0.86,-3.15l2.14,-3.1l0.93,1.08l1.88,-0.7l1.25,1.19l0,5.52l1.83,2.25l3.12,-0.48l4.49,-0.13l-4.87,3.26l0.11,3.29l2.13,0.28l3.13,-2.79l2.78,-1.58l6.21,-2.35l3.47,-2.62l-1.81,-1.46L305.57,314.47zM251.91,243.37l1.1,-3.12l-0.71,-1.23l-1.15,-0.13l-1.08,1.8l-0.13,0.41l0.74,1.77L251.91,243.37zM109.25,279.8L109.25,279.8l1.56,-2.35L109.25,279.8zM105.85,283.09l-2.69,0.38l-1.32,-0.62l-0.17,1.52l0.52,2.07l1.42,1.46l1.04,2.13l1.69,2.1l1.12,0.01l-2.44,-3.7L105.85,283.09z',
+ },
+ CD: {
+ d: 'M561.71,453.61L561.54,456.87L562.66,457.24L561.76,458.23L560.68,458.97L559.61,460.43L559.02,461.72L558.86,463.96L558.21,465.02L558.19,467.12L557.38,467.9L557.28,469.56L556.89,469.77L556.63,471.3L557.34,472.56L557.52,475.93L558.02,478.5L557.74,479.96L558.3,481.58L559.93,483.15L561.44,486.7L560.34,486.41L556.57,486.89L555.82,487.22L555.02,489.02L555.65,490.27L555.15,493.62L554.8,496.47L555.56,496.98L557.52,498.08L558.29,497.57L558.53,500.65L556.38,500.62L555.23,499.05L554.2,497.83L552.05,497.43L551.42,495.94L549.7,496.84L547.46,496.44L546.52,495.15L544.74,494.89L543.43,494.96L543.27,494.08L542.3,494.01L541.02,493.84L539.29,494.26L538.07,494.19L537.37,494.45L537.52,491.08L536.59,490.03L536.38,488.3L536.79,486.6L536.23,485.51L536.18,483.75L532.77,483.77L533.02,482.76L531.59,482.77L531.44,483.26L529.7,483.37L528.99,485L528.57,485.71L527.02,485.31L526.1,485.71L524.24,485.93L523.17,484.46L522.53,483.55L521.72,481.87L521.03,479.78L512.76,479.75L511.77,480.08L510.96,480.03L509.8,480.41L509.41,479.54L510.12,479.24L510.21,478.02L510.67,477.3L511.69,476.72L512.43,477L513.39,475.93L514.91,475.96L515.09,476.75L516.14,477.25L517.79,475.49L519.42,474.13L520.13,473.24L520.04,470.94L521.26,468.23L522.54,466.8L524.39,465.46L524.71,464.57L524.78,463.55L525.24,462.58L525.09,461L525.44,458.53L525.99,456.79L526.83,455.3L526.99,453.62L527.24,451.67L528.34,450.25L529.84,449.35L532.15,450.3L533.93,451.33L535.98,451.61L538.07,452.15L538.91,450.47L539.3,450.25L540.57,450.53L543.7,449.14L544.8,449.73L545.71,449.65L546.13,448.97L547.17,448.73L549.28,449.02L551.08,449.08L552.01,448.79L553.7,451.1L554.96,451.43L555.71,450.96L557.01,451.15L558.57,450.56L559.24,451.75z',
+ },
+ CF: {
+ d: 'M518.09,442.66L520.41,442.44L520.93,441.72L521.39,441.78L522.09,442.41L525.62,441.34L526.81,440.24L528.28,439.25L528,438.26L528.79,438L531.5,438.18L534.14,436.87L536.16,433.78L537.59,432.64L539.36,432.15L539.68,433.37L541.3,435.14L541.3,436.29L540.85,437.47L541.03,438.34L542,439.15L544.14,440.39L545.67,441.52L545.7,442.44L547.58,443.9L548.75,445.11L549.46,446.79L551.56,447.9L552.01,448.79L551.08,449.08L549.28,449.02L547.17,448.73L546.13,448.97L545.71,449.65L544.8,449.73L543.7,449.14L540.57,450.53L539.3,450.25L538.91,450.47L538.07,452.15L535.98,451.61L533.93,451.33L532.15,450.3L529.84,449.35L528.34,450.25L527.24,451.67L526.99,453.62L525.19,453.46L523.29,452.99L521.62,454.47L520.15,457.07L519.85,456.26L519.73,454.99L518.45,454.09L517.41,452.65L517.17,451.65L515.85,450.19L516.07,449.36L515.79,448.18L516.01,446.01L516.68,445.5z',
+ },
+ CG: {
+ d: 'M511.69,476.72L510.64,475.76L509.79,476.23L508.66,477.43L506.36,474.48L508.49,472.94L507.44,471.09L508.4,470.39L510.29,470.05L510.51,468.81L512.01,470.15L514.49,470.27L515.35,468.95L515.7,467.1L515.39,464.92L514.07,463.28L515.28,460.05L514.58,459.5L512.5,459.72L511.71,458.29L511.92,457.07L515.45,457.18L517.72,457.91L519.95,458.57L520.15,457.07L521.62,454.47L523.29,452.99L525.19,453.46L526.99,453.62L526.83,455.3L525.99,456.79L525.44,458.53L525.09,461L525.24,462.58L524.78,463.55L524.71,464.57L524.39,465.46L522.54,466.8L521.26,468.23L520.04,470.94L520.13,473.24L519.42,474.13L517.79,475.49L516.14,477.25L515.09,476.75L514.91,475.96L513.39,475.93L512.43,477z',
+ },
+ CH: {
+ d: 'M502.15,312.34L502.26,313.08L501.83,314.09L503.1,314.83L504.53,314.94L504.31,316.61L503.08,317.3L501,316.79L500.39,318.42L499.06,318.55L498.57,317.91L497,319.27L495.65,319.46L494.44,318.6L493.48,316.83L492.14,317.47L492.18,315.63L494.23,313.32L494.14,312.27L495.42,312.66L496.19,311.95L498.57,311.98L499.15,311.08z',
+ },
+ CI: {
+ d: 'M467.24,449.46L465.97,449.49L464.01,448.94L462.22,448.97L458.89,449.46L456.95,450.27L454.17,451.29L453.63,451.22L453.84,448.92L454.11,448.57L454.03,447.46L452.84,446.29L451.95,446.1L451.13,445.33L451.74,444.09L451.46,442.73L451.59,441.91L452.04,441.91L452.2,440.68L451.98,440.14L452.25,439.75L453.29,439.41L452.6,437.15L451.95,435.99L452.18,435.02L452.74,434.81L453.1,434.55L453.88,434.97L456.04,435L456.56,434.17L457.04,434.23L457.85,433.91L458.29,435.12L458.94,434.76L460.1,434.34L461.36,434.96L461.85,435.89L463.11,436.49L464.09,435.78L465.41,435.67L467.33,436.4L468.07,440.41L466.89,442.77L466.16,445.94L467.37,448.35z',
+ },
+ CL: {
+ d: 'M282.81,636.73l0,10.57l3,0l1.69,0.13l-0.93,1.98l-2.4,1.53l-1.38,-0.16l-1.66,-0.4l-2.04,-1.48l-2.94,-0.71l-3.53,-2.71l-2.86,-2.57l-3.86,-5.25l2.31,0.97l3.94,3.13l3.72,1.7l1.45,-2.17l0.91,-3.2l2.58,-1.91L282.81,636.73zM283.97,524.72l1.1,4.15l2.02,-0.41l0.34,0.76l-0.96,3.16l-3.05,1.51l0.09,5.14l-0.59,1l0.84,1.23l-1.98,1.95l-1.84,2.96l-1,2.9l0.27,3.11l-1.73,3.34l1.29,5.69l0.73,0.61l-0.01,3.09l-1.6,3.31l0.06,2.87l-2.12,2.26l0.01,3.22l0.85,3.46l-1.68,1.3l-0.75,3.22l-0.66,3.75l0.47,4.54l-1.13,0.77l0.65,4.4l1.27,1.46l-0.92,1.63l1.3,0.78l0.3,1.48l-1.22,0.75l0.3,2.33l-1.02,5.35l-1.49,3.52l0.33,2.11l-0.89,2.68l-2.15,1.88l0.25,4.6l0.99,1.6l1.87,-0.28l-0.05,3.33l1.16,2.63l6.78,0.61l2.6,0.71l-2.49,-0.03l-1.35,1.13l-2.53,1.67l-0.45,4.38l-1.19,0.11l-3.16,-1.54l-3.21,-3.25l0,0l-3.49,-2.63l-0.88,-2.87l0.79,-2.62l-1.41,-2.94l-0.36,-7.34l1.19,-4.03l2.96,-3.19l-4.26,-1.19l2.67,-3.57l0.95,-6.56l3.12,1.37l1.46,-7.97l-1.88,-1l-0.88,4.75l-1.77,-0.54l0.88,-5.42l0.96,-6.84l1.29,-2.48l-0.81,-3.5l-0.23,-3.98l1.18,-0.11l1.72,-5.6l1.94,-5.43l1.19,-4.97l-0.65,-4.91l0.84,-2.67l-0.34,-3.96l1.64,-3.87l0.51,-6.04l0.9,-6.37l0.88,-6.75l-0.21,-4.87l-0.58,-4.15l1.44,-0.75l0.75,-1.5l1.37,1.99l0.37,2.12l1.47,1.25l-0.88,2.87L283.97,524.72z',
+ },
+ CM: {
+ d: 'M511.92,457.07L511.57,456.92L509.91,457.28L508.2,456.9L506.87,457.09L502.31,457.02L502.72,454.82L501.62,452.98L500.34,452.5L499.77,451.25L499.05,450.85L499.09,450.08L499.81,448.1L501.14,445.4L501.95,445.37L503.62,443.73L504.69,443.69L506.26,444.84L508.19,443.89L508.45,442.73L509.08,441.59L509.51,440.17L511.01,439.01L511.58,437.04L512.17,436.41L512.57,434.94L513.31,433.13L515.67,430.93L515.82,429.98L516.13,429.47L515.02,428.33L515.11,427.43L515.9,427.26L517.01,429.09L517.2,430.98L517.1,432.87L518.62,435.44L517.06,435.41L516.27,435.61L514.99,435.33L514.38,436.66L516.03,438.31L517.25,438.79L517.65,439.96L518.53,441.89L518.09,442.66L516.68,445.5L516.01,446.01L515.79,448.18L516.07,449.36L515.85,450.19L517.17,451.65L517.41,452.65L518.45,454.09L519.73,454.99L519.85,456.26L520.15,457.07L519.95,458.57L517.72,457.91L515.45,457.18z',
+ },
+ CN: {
+ d: 'M784.63,410.41l-2.42,1.41l-2.3,-0.91l-0.08,-2.53l1.38,-1.34l3.06,-0.83l1.61,0.07l0.63,1.13l-1.23,1.3L784.63,410.41zM833.19,302.89l4.88,1.38l3.32,3.03l1.13,3.95l4.26,0l2.43,-1.65l4.63,-1.24l-1.47,3.76l-1.09,1.51l-0.96,4.46l-1.89,3.89l-3.4,-0.7l-2.41,1.4l0.74,3.36l-0.4,4.55l-1.43,0.1l0.02,1.93l-1.81,-2.24l-1.11,2.13l-4.33,1.62l0.44,1.97l-2.42,-0.14l-1.33,-1.17l-1.93,2.64l-3.09,1.98l-2.28,2.35l-3.92,1.06l-2.06,1.69l-3.02,0.98l1.49,-1.67l-0.59,-1.41l2.22,-2.45l-1.48,-1.93l-2.44,1.3l-3.17,2.54l-1.73,2.34l-2.75,0.17l-1.43,1.68l1.48,2.41l2.29,0.58l0.09,1.58l2.22,1.02l3.14,-2.51l2.49,1.37l1.81,0.09l0.46,1.84l-3.97,0.97l-1.31,1.87l-2.73,1.73l-1.44,2.39l3.02,1.86l1.1,3.31l1.71,3.05l1.9,2.53l-0.05,2.43l-1.76,0.89l0.67,1.73l1.65,1l-0.43,2.61l-0.71,2.52l-1.57,0.28l-2.05,3.41l-2.27,4.09l-2.6,3.68l-3.86,2.82l-3.9,2.55l-3.16,0.35l-1.71,1.34l-0.97,-0.98l-1.59,1.5l-3.92,1.5l-2.97,0.46l-0.96,3.15l-1.55,0.17l-0.74,-2.16l0.66,-1.16l-3.76,-0.96l-1.33,0.49l-2.82,-0.78l-1.33,-1.22l0.44,-1.74l-2.56,-0.55l-1.35,-1.14l-2.39,1.62l-2.73,0.35l-2.24,-0.02l-1.5,0.74l-1.45,0.44l0.42,3.43l-1.5,-0.08l-0.25,-0.7l-0.08,-1.24l-2.06,0.87l-1.21,-0.55l-2.08,-1.13l0.82,-2.51l-1.78,-0.59l-0.67,-2.8l-2.96,0.51l0.34,-3.63l2.66,-2.58l0.11,-2.57l-0.08,-2.4l-1.22,-0.75l-0.94,-1.86l-1.64,0.24l-3.02,-0.47l0.95,-1.33l-1.31,-1.99l-2,1.35L740.4,378l-3.23,2.03l-2.55,2.36l-2.26,0.39l-1.23,-0.85l-1.48,-0.08l-2,-0.73l-1.51,0.8l-1.85,2.34l-0.24,-2.48l-1.71,0.66l-3.27,-0.31l-3.17,-0.73l-2.28,-1.39l-2.18,-0.63l-0.94,-1.53l-1.58,-0.46l-2.83,-2.09l-2.25,-0.99l-1.16,0.77l-3.9,-2.26l-2.75,-2.07l-0.79,-3.63l2.01,0.44l0.09,-1.69l-1.12,-1.71l0.28,-2.74l-3.01,-3.99l-4.61,-1.39l-0.83,-2.66l-2.07,-1.63l-0.5,-1.01l-0.42,-2.01l0.1,-1.38l-1.7,-0.81l-0.92,0.36l-0.71,-3.32l0.8,-0.83l-0.39,-0.85l2.68,-1.73l1.94,-0.72l2.97,0.49l1.06,-2.35l3.6,-0.44l1,-1.48l4.42,-2.03l0.39,-0.85l-0.22,-2.17l1.92,-1l-2.52,-6.75l5.55,-1.58l1.44,-0.89l2.02,-7.26l5.56,1.35l1.56,-1.86l0.13,-4.19l2.33,-0.39l2.13,-2.83l1.1,-0.35l0.74,2.97l2.36,2.23l4,1.57l1.93,3.32l-1.08,4.73l1.01,1.73l3.33,0.68l3.78,0.55l3.39,2.45l1.73,0.43l1.28,3.57l1.65,2.27l3.09,-0.09l5.79,0.85l3.73,-0.53l2.77,0.57l4.15,2.29l3.39,0l1.24,1.16l3.26,-2.01l4.53,-1.31l4.2,-0.14l3.28,-1.34l2.01,-2.05l1.96,-1.3l-0.45,-1.28l-0.9,-1.5l1.47,-2.54l1.58,0.36l2.88,0.8l2.79,-2.1l4.28,-1.55l2.05,-2.66l1.97,-1.16l4.07,-0.54l2.21,0.46l0.31,-1.45l-2.54,-2.89l-2.25,-1.33l-2.16,1.54l-2.77,-0.65l-1.59,0.53l-0.72,-1.71l1.98,-4.23l1.37,-3.25l3.37,1.63l3.95,-2.74l-0.03,-1.93l2.53,-4.73l1.56,-1.45l-0.04,-2.52l-1.54,-1.1l2.32,-2.31l3.48,-0.84l3.72,-0.13l4.2,1.39l2.46,1.71l1.73,4.61l1.05,1.94l0.98,2.73L833.19,302.89z',
+ },
+ CO: {
+ d: 'M263.92,463.81L262.72,463.15L261.34,462.23L260.54,462.67L258.16,462.28L257.48,461.08L256.96,461.13L254.15,459.54L253.77,458.67L254.82,458.46L254.7,457.07L255.35,456.06L256.74,455.87L257.93,454.12L259,452.66L257.96,451.99L258.49,450.37L257.86,447.81L258.46,447.08L258.02,444.71L256.88,443.21L257.24,441.85L258.15,442.05L258.68,441.21L258.03,439.56L258.37,439.14L259.81,439.23L261.92,437.26L263.07,436.96L263.1,436.03L263.62,433.64L265.23,432.32L266.99,432.27L267.21,431.68L269.41,431.91L271.62,430.48L272.71,429.84L274.06,428.47L275.06,428.64L275.79,429.39L275.25,430.35L273.45,430.83L272.74,432.25L271.65,433.06L270.84,434.12L270.49,436.13L269.72,437.79L271.16,437.97L271.52,439.27L272.14,439.89L272.36,441.02L272.03,442.06L272.13,442.65L272.82,442.88L273.49,443.86L277.09,443.59L278.72,443.95L280.7,446.36L281.83,446.06L283.85,446.21L285.45,445.89L286.44,446.38L285.93,447.88L285.31,448.82L285.09,450.83L285.65,452.68L286.45,453.51L286.54,454.14L285.12,455.53L286.14,456.14L286.89,457.12L287.74,459.89L287.21,460.24L286.67,458.59L285.89,457.71L284.96,458.67L279.5,458.61L279.53,460.35L281.17,460.64L281.08,461.71L280.52,461.42L278.94,461.88L278.93,463.9L280.17,464.92L280.61,466.51L280.54,467.72L279.28,475.37L277.88,473.88L277.04,473.82L278.85,470.98L276.7,469.67L275.02,469.91L274.01,469.43L272.46,470.17L270.37,469.82L268.72,466.9L267.42,466.18L266.53,464.86L264.67,463.54z',
+ },
+ CR: {
+ d: 'M242.63,440.4L241.11,439.77L240.54,439.18L240.86,438.69L240.76,438.07L239.98,437.39L238.88,436.84L237.91,436.48L237.73,435.65L236.99,435.14L237.17,435.97L236.61,436.64L235.97,435.86L235.07,435.58L234.69,435.01L234.71,434.15L235.08,433.25L234.29,432.85L234.93,432.31L235.35,431.94L237.2,432.69L237.84,432.32L238.73,432.56L239.2,433.14L240.02,433.33L240.69,432.73L241.41,434.27L242.49,435.41L243.81,436.62L242.72,436.87L242.74,438L243.32,438.42L242.9,438.76L243.01,439.27L242.78,439.84z',
+ },
+ CU: {
+ d: 'M244.58,396.94L247.01,397.16L249.21,397.19L251.84,398.22L252.96,399.33L255.58,398.99L256.57,399.69L258.95,401.56L260.69,402.91L261.61,402.87L263.29,403.48L263.08,404.32L265.15,404.44L267.27,405.66L266.94,406.35L265.07,406.73L263.18,406.88L261.25,406.64L257.24,406.93L259.12,405.27L257.98,404.5L256.17,404.3L255.2,403.44L254.53,401.74L252.95,401.85L250.33,401.05L249.49,400.42L245.84,399.95L244.86,399.36L245.91,398.61L243.16,398.46L241.15,400.02L239.98,400.06L239.58,400.8L238.2,401.13L237,400.84L238.48,399.91L239.08,398.82L240.35,398.15L241.78,397.56L243.91,397.27z',
+ },
+ CY: {
+ d: 'M570.31,358.29L572.2,356.83L569.65,357.85L567.63,357.8L567.23,358.63L567.03,358.65L565.7,358.77L566.35,360.14L567.72,360.58L570.6,359.2L570.51,358.93z',
+ },
+ CZ: {
+ d: 'M522.81,307.86L521.51,307.06L520.2,307.28L518.02,305.98L517.03,306.3L515.46,308.04L513.37,306.67L511.79,304.84L510.36,303.8L510.06,301.98L509.57,300.68L511.61,299.73L512.65,298.63L514.66,297.77L515.37,296.93L516.11,297.44L517.36,296.97L518.69,298.4L520.78,298.79L520.61,300L522.13,300.9L522.55,299.77L524.47,300.26L524.74,301.63L526.82,301.89L528.11,304.02L527.28,304.03L526.84,304.8L526.2,304.99L526.02,305.96L525.48,306.17L525.4,306.56L524.45,307L523.2,306.93z',
+ },
+ DE: {
+ d: 'M503.07,278.92L503.12,280.8L505.96,281.92L505.93,283.62L508.78,282.72L510.35,281.41L513.52,283.3L514.84,284.81L515.5,287.2L514.72,288.45L515.73,290.1L516.43,292.55L516.21,294.11L517.36,296.97L516.11,297.44L515.37,296.93L514.66,297.77L512.65,298.63L511.61,299.73L509.57,300.68L510.06,301.98L510.36,303.8L511.79,304.84L513.37,306.67L512.39,308.62L511.38,309.16L511.78,311.88L511.51,312.58L510.64,311.73L509.3,311.61L507.29,312.35L504.82,312.17L504.42,313.26L503,312.12L502.15,312.34L499.15,311.08L498.57,311.98L496.19,311.95L496.54,308.97L497.96,306.07L493.92,305.29L492.6,304.16L492.76,302.27L492.2,301.29L492.52,298.32L492.04,293.63L493.73,293.63L494.44,291.92L495.14,287.69L494.61,286.11L495.16,285.11L497.5,284.85L498.02,285.89L499.93,283.56L499.29,281.77L499.16,279.02L501.28,279.66z',
+ },
+ DJ: {
+ d: 'M596.05,427.72L596.71,428.6L596.62,429.79L595.02,430.47L596.23,431.24L595.19,432.76L594.57,432.26L593.9,432.46L592.33,432.41L592.28,431.55L592.07,430.76L593.01,429.43L594,428.17L595.2,428.42z',
+ },
+ DK: {
+ d: 'M510.83,275.84l-1.68,3.97l-2.93,-2.76l-0.39,-2.05l4.11,-1.66L510.83,275.84zM505.85,271.59l-0.69,1.9l-0.83,-0.55l-2.02,3.59l0.76,2.39l-1.79,0.74l-2.12,-0.64l-1.14,-2.72l-0.08,-5.12l0.47,-1.38l0.8,-1.54l2.47,-0.32l0.98,-1.43l2.26,-1.47l-0.1,2.68l-0.83,1.68l0.34,1.43L505.85,271.59z',
+ },
+ DO: {
+ d: 'M274.18,407.35L274.53,406.84L276.72,406.86L278.38,407.62L279.12,407.54L279.63,408.59L281.16,408.53L281.07,409.41L282.32,409.52L283.7,410.6L282.66,411.8L281.32,411.16L280.04,411.28L279.12,411.14L278.61,411.68L277.53,411.86L277.11,411.14L276.18,411.57L275.06,413.57L274.34,413.11L274.19,412.27L274.25,411.47L273.53,410.59L274.21,410.09L274.43,408.96z',
+ },
+ DZ: {
+ d: 'M508.9,396.08L499.29,401.83L491.17,407.68L487.22,409L484.11,409.29L484.08,407.41L482.78,406.93L481.03,406.08L480.37,404.69L470.91,398.14L461.45,391.49L450.9,383.96L450.96,383.35L450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02L471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L471.86,356.68L474.9,356.08L476.67,354.65L479.37,353.6L484.12,352.98L488.76,352.69L490.17,353.21L492.81,351.84L495.81,351.81L496.95,352.62L498.86,352.41L498.29,354.2L498.74,357.48L498.08,360.3L496.35,362.18L496.6,364.71L498.89,366.69L498.92,367.5L500.64,368.83L501.84,374.69L502.75,377.53L502.9,379.01L502.41,381.6L502.61,383.04L502.25,384.76L502.5,386.73L501.38,388.02L503.04,390.28L503.15,391.6L504.14,393.31L505.45,392.75L507.67,394.17z',
+ },
+ EC: {
+ d: 'M250.1,472.87L251.59,470.79L250.98,469.57L249.91,470.87L248.23,469.64L248.8,468.86L248.33,466.33L249.31,465.91L249.83,464.18L250.89,462.38L250.69,461.25L252.23,460.65L254.15,459.54L256.96,461.13L257.48,461.08L258.16,462.28L260.54,462.67L261.34,462.23L262.72,463.15L263.92,463.81L264.31,465.92L263.44,467.73L260.38,470.65L257.01,471.75L255.29,474.18L254.76,476.06L253.17,477.21L252,475.8L250.86,475.5L249.7,475.72L249.63,474.7L250.43,474.04z',
+ },
+ EE: {
+ d: 'M543.42,264.71L543.75,261.59L542.72,262.26L540.94,260.36L540.69,257.25L544.24,255.72L547.77,254.91L550.81,255.83L553.71,255.66L554.13,256.62L552.14,259.76L552.97,264.72L551.77,266.38L549.45,266.37L547.04,264.43L545.81,263.78z',
+ },
+ EG: {
+ d: 'M573.17,377.28L572.38,378.57L571.78,380.97L571.02,382.61L570.36,383.17L569.43,382.15L568.16,380.73L566.16,376.16L565.88,376.45L567.04,379.82L568.76,383L570.88,387.88L571.91,389.56L572.81,391.3L575.33,394.7L574.77,395.23L574.86,397.2L578.13,399.91L578.62,400.53L567.5,400.53L556.62,400.53L545.35,400.53L545.35,389.3L545.35,378.12L544.51,375.54L545.23,373.54L544.8,372.15L545.81,370.58L549.54,370.53L552.24,371.39L555.02,372.36L556.32,372.86L558.48,371.83L559.63,370.9L562.11,370.63L564.1,371.04L564.87,372.66L565.52,371.59L567.76,372.36L569.95,372.55L571.33,371.73z',
+ },
+ EH: {
+ d: 'M438.57,383.06L442.19,383.07L450.94,383.1L450.94,383.1L450.94,383.1L442.19,383.07L438.57,383.06L438.46,383.15L438.41,383.19L436.63,386.39L434.77,387.53L433.75,389.44L433.69,391.09L432.94,392.88L432,393.37L430.44,395.31L429.48,397.46L429.66,398.48L428.74,400.05L427.66,400.87L427.53,402.26L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L450.96,383.35L450.96,383.14z',
+ },
+ ER: {
+ d: 'M594,428.17L593.04,427.24L591.89,425.57L590.65,424.65L589.92,423.65L587.48,422.5L585.56,422.47L584.88,421.86L583.24,422.54L581.54,421.23L580.66,423.38L577.4,422.78L577.1,421.63L578.31,417.38L578.58,415.45L579.46,414.55L581.53,414.07L582.95,412.4L584.58,415.78L585.35,418.45L586.89,419.86L590.71,422.58L592.27,424.22L593.79,425.88L594.67,426.86L596.05,427.72L595.2,428.42z',
+ },
+ ES: {
+ d: 'M449.92,334.56L450.06,331.88L448.92,330.22L452.88,327.45L456.31,328.15L460.08,328.12L463.06,328.78L465.39,328.58L469.92,328.7L471.04,330.19L476.2,331.92L477.22,331.1L480.38,332.82L483.63,332.33L483.78,334.52L481.12,337.01L477.53,337.79L477.28,339.03L475.55,341.06L474.47,344.02L475.56,346.07L473.94,347.67L473.34,349.97L471.22,350.67L469.23,353.36L465.68,353.41L463,353.35L461.25,354.57L460.18,355.88L458.8,355.59L457.77,354.42L456.97,352.42L454.35,351.88L454.12,350.72L455.16,349.4L455.54,348.44L454.58,347.38L455.35,345.03L454.23,342.86L455.44,342.56L455.55,340.84L456.01,340.31L456.04,337.43L457.34,336.43L456.56,334.55L454.92,334.42L454.44,334.89L452.79,334.9L452.08,333.06L450.94,333.61z',
+ },
+ ET: {
+ d: 'M581.54,421.23L583.24,422.54L584.88,421.86L585.56,422.47L587.48,422.5L589.92,423.65L590.65,424.65L591.89,425.57L593.04,427.24L594,428.17L593.01,429.43L592.07,430.76L592.28,431.55L592.33,432.41L593.9,432.46L594.57,432.26L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.69,452.46L589.56,451.52L587,452.69L586.17,453.85L584.3,453.63L583.68,453.31L583.02,453.38L582.14,453.36L578.59,450.98L576.64,450.98L575.68,450.07L575.68,448.5L574.22,448.03L572.57,444.98L571.29,444.33L570.79,443.21L569.37,441.84L567.65,441.64L568.61,440.03L570.09,439.96L570.51,439.1L570.48,436.57L571.31,433.61L572.63,432.81L572.92,431.65L574.12,429.48L575.81,428.06L576.95,425.25L577.4,422.78L580.66,423.38z',
+ },
+ FI: {
+ d: 'M555.42,193.1L555.01,198.5L559.31,203.49L556.72,208.97L559.98,216.93L558.09,222.69L560.62,227.55L559.47,231.69L563.62,235.95L562.56,239.05L559.96,242.5L553.96,249.91L548.87,250.36L543.94,252.43L539.38,253.61L537.75,250.54L535.04,248.67L535.66,242.95L534.3,237.54L535.64,233.96L538.18,230.02L544.59,223L546.47,221.61L546.17,218.77L542.27,215.55L541.33,212.85L541.25,201.73L536.88,196.58L533.14,192.77L534.82,190.69L537.94,194.84L541.6,194.45L544.61,196.32L547.28,192.88L548.66,187.03L553.01,184.25L556.61,187.51z',
+ },
+ FJ: {
+ d: 'M980.53,508.61l-0.35,1.4l-0.23,0.16l-1.78,0.72l-1.79,0.61l-0.36,-1.09l1.4,-0.6l0.89,-0.16l1.64,-0.91L980.53,508.61zM974.69,512.92l-1.27,-0.36l-1.08,1l0.27,1.29l1.55,0.36l1.74,-0.4l0.46,-1.53l-0.96,-0.84L974.69,512.92z',
+ },
+ FK: {
+ d: 'M303.66,633.13L307.02,630.44L309.41,631.56L311.09,629.77L313.33,631.78L312.49,633.36L308.7,634.72L307.44,633.13L305.06,635.18z',
+ },
+ FR: {
+ d: 'M502.06,333.54l-0.93,2.89l-1.27,-0.76l-0.65,-2.53l0.57,-1.41l1.81,-1.45L502.06,333.54zM485.31,300.19l1.96,2.06l1.44,-0.34l2.45,1.97l0.63,0.37l0.81,-0.09l1.32,1.12l4.04,0.79l-1.42,2.9l-0.36,2.98l-0.77,0.71l-1.28,-0.38l0.09,1.05l-2.05,2.3l-0.04,1.84l1.34,-0.63l0.96,1.77l-0.12,1.13l0.83,1.5l-0.97,1.21l0.72,3.04l1.52,0.49l-0.32,1.68l-2.54,2.17l-5.53,-1.04l-4.08,1.24l-0.32,2.29l-3.25,0.49l-3.15,-1.72l-1.02,0.82l-5.16,-1.73l-1.12,-1.49l1.45,-2.32l0.53,-7.88l-2.89,-4.26l-2.07,-2.09l-4.29,-1.6l-0.28,-3.07l3.64,-0.92l4.71,1.09l-0.89,-4.84l2.65,1.85l6.53,-3.37l0.84,-3.61l2.45,-0.9l0.41,1.56l1.3,0.07L485.31,300.19z',
+ },
+ GA: {
+ d: 'M506.36,474.48L503.48,471.66L501.62,469.36L499.92,466.48L500.01,465.56L500.62,464.66L501.3,462.64L501.87,460.57L502.82,460.41L506.89,460.44L506.87,457.09L508.2,456.9L509.91,457.28L511.57,456.92L511.92,457.07L511.71,458.29L512.5,459.72L514.58,459.5L515.28,460.05L514.07,463.28L515.39,464.92L515.7,467.1L515.35,468.95L514.49,470.27L512.01,470.15L510.51,468.81L510.29,470.05L508.4,470.39L507.44,471.09L508.49,472.94z',
+ },
+ GB: {
+ d: 'M459.38,281l-1.5,3.29l-2.12,-0.98l-1.73,0.07l0.58,-2.57l-0.58,-2.6l2.35,-0.2L459.38,281zM466.83,260.24l-3,5.73l2.86,-0.72l3.07,0.03l-0.73,4.22l-2.52,4.53l2.9,0.32l0.22,0.52l2.5,5.79l1.92,0.77l1.73,5.41l0.8,1.84l3.4,0.88l-0.34,2.93l-1.43,1.33l1.12,2.33l-2.52,2.33l-3.75,-0.04l-4.77,1.21l-1.31,-0.87l-1.85,2.06l-2.59,-0.5l-1.97,1.67l-1.49,-0.87l4.11,-4.64l2.51,-0.97l-0.02,0l-4.38,-0.75l-0.79,-1.8l2.93,-1.41l-1.54,-2.48l0.53,-3.06l4.17,0.42l0,0l0.41,-2.74l-1.88,-2.95l-0.04,-0.07l-3.4,-0.85l-0.67,-1.32l1.02,-2.2l-0.92,-1.37l-1.51,2.34l-0.16,-4.8l-1.42,-2.59l1.02,-5.36l2.18,-4.31l2.24,0.42L466.83,260.24z',
+ },
+ GE: {
+ d: 'M591.76,335.85L592.18,334.25L591.48,331.68L589.86,330.27L588.31,329.83L587.28,328.66L587.62,328.2L589.99,328.86L594.12,329.48L597.94,331.31L598.43,332.02L600.13,331.42L602.75,332.22L603.6,333.77L605.37,334.64L604.64,335.15L606.02,337.17L605.64,337.6L604.13,337.38L602.04,336.32L601.35,336.92L597.45,337.5L594.75,335.68z',
+ },
+ GF: {
+ d: 'M327.89,456.41l-1.07,1.06l-1.34,0.2l-0.38,-0.78l-0.63,-0.12l-0.87,0.76l-1.22,-0.57l0.71,-1.19l0.24,-1.27l0.48,-1.2l-1.09,-1.65l-0.22,-1.91l1.46,-2.41l0.95,0.31l2.06,0.66l2.97,2.36l0.46,1.14l-1.66,2.55L327.89,456.41z',
+ },
+ GH: {
+ d: 'M478.23,446.84L473.83,448.48L472.27,449.44L469.74,450.25L467.24,449.46L467.37,448.35L466.16,445.94L466.89,442.77L468.07,440.41L467.33,436.4L466.94,434.27L467.01,432.66L471.88,432.53L473.12,432.74L474.02,432.28L475.32,432.5L475.11,433.39L476.28,434.85L476.28,436.9L476.55,439.12L477.25,440.15L476.63,442.68L476.85,444.08L477.6,445.86z',
+ },
+ GL: {
+ d: 'M344.13,23.91L353.55,10.3L363.39,11.37L366.96,2.42L376.87,0L399.27,3.15L416.81,21.74L411.63,30.04L400.9,30.97L385.81,33L387.22,36.64L397.15,34.4L405.59,41.31L411.04,35.19L413.37,42.34L410.29,53.31L417.43,46.38L431.04,38.83L439.45,42.64L441.02,50.76L429.59,63.42L428.01,67.32L419.05,70.18L425.54,70.97L422.26,82.48L420,92.07L420.09,107.33L423.46,115.67L419.08,116.18L414.47,120.06L419.64,126.36L420.3,135.98L417.3,137L420.93,146.15L414.71,146.9L417.96,151.04L417.04,154.55L413.09,156.06L409.18,156.09L412.69,162.57L412.73,166.7L407.18,162.87L405.74,165.36L409.52,167.65L413.2,173.13L414.26,180.08L409.26,181.7L407.1,178.44L403.63,173.46L404.59,179.33L401.34,183.74L408.72,184.09L412.59,184.54L405.07,191.57L397.45,197.7L389.25,200.31L386.16,200.35L383.26,203.22L379.36,210.85L373.33,215.74L371.39,216.03L367.65,217.7L363.63,219.29L361.22,223.41L361.18,227.97L359.77,232.13L355.19,237.08L356.32,241.79L355.06,246.64L353.63,252.2L349.68,252.54L345.54,247.91L339.93,247.88L337.21,244.7L335.34,238.9L330.48,231.22L329.06,227.07L328.68,221.18L324.79,214.91L325.8,209.74L323.93,207.21L326.7,198.56L330.92,195.71L332.03,192.45L332.62,186.19L329.41,189.05L327.89,190.24L325.37,191.38L321.93,188.77L321.74,183.22L322.84,178.74L325.44,178.62L331.16,180.87L326.34,175.44L323.83,172.43L321.04,173.67L318.7,171.48L321.83,162.98L320.13,159.45L317.9,152.71L314.53,141.8L310.96,137.63L310.99,133L303.46,126.31L297.51,125.46L290.02,125.93L283.18,126.79L279.92,123.04L275.05,115.38L282.41,111.41L288.06,110.73L276.06,107.37L269.74,101.93L270.13,96.59L280.74,89.72L291.01,82.56L292.09,76.92L284.53,71.16L286.97,64.52L296.68,52.19L300.76,50.21L299.59,41.64L306.23,36.4L314.85,33.19L323.47,33.01L326.53,39.31L333.97,27.99L340.66,35.77L344.59,37.36L350.42,43.77L343.75,33z',
+ },
+ GM: {
+ d: 'M428.03,426.43L428.39,425.16L431.44,425.07L432.08,424.4L432.97,424.35L434.07,425.06L434.94,425.07L435.87,424.59L436.43,425.41L435.22,426.06L434,426.01L432.8,425.4L431.76,426.06L431.26,426.09L430.58,426.49z',
+ },
+ GN: {
+ d: 'M451.59,441.91L450.8,441.84L450.23,442.97L449.43,442.96L448.89,442.36L449.07,441.23L447.9,439.51L447.17,439.82L446.57,439.89L445.8,440.05L445.83,439.02L445.38,438.28L445.47,437.46L444.86,436.27L444.08,435.26L441.84,435.26L441.19,435.79L440.41,435.85L439.93,436.46L439.61,437.25L438.11,438.49L436.88,436.82L435.79,435.71L435.07,435.35L434.37,434.78L434.06,433.53L433.65,432.91L432.83,432.44L434.08,431.06L434.93,431.11L435.66,430.63L436.28,430.63L436.72,430.25L436.48,429.31L436.79,429.01L436.84,428.04L438.19,428.07L440.21,428.77L440.83,428.7L441.04,428.39L442.56,428.61L442.97,428.45L443.13,429.5L443.58,429.49L444.31,429.11L444.77,429.21L445.55,429.93L446.75,430.16L447.52,429.54L448.43,429.16L449.1,428.76L449.66,428.84L450.28,429.46L450.62,430.25L451.77,431.44L451.19,432.17L451.08,433.09L451.68,432.81L452.03,433.15L451.88,433.99L452.74,434.81L452.18,435.02L451.95,435.99L452.6,437.15L453.29,439.41L452.25,439.75L451.98,440.14L452.2,440.68L452.04,441.91z',
+ },
+ GQ: {
+ d: 'M501.87,460.57L501.34,460.15L502.31,457.02L506.87,457.09L506.89,460.44L502.82,460.41z',
+ },
+ GR: {
+ d: 'M541.7,356.71l1.53,1.16l2.18,-0.19l2.09,0.24l-0.07,0.6l1.53,-0.41l-0.35,1.01l-4.04,0.29l0.03,-0.56l-3.42,-0.67L541.7,356.71zM549.85,335.75l-0.87,2.33l-0.67,0.41l-1.71,-0.1l-1.46,-0.35l-3.4,0.96l1.94,2.06l-1.42,0.59l-1.56,0l-1.48,-1.88l-0.53,0.8l0.63,2.18l1.4,1.7l-1.06,0.79l1.56,1.65l1.39,1.03l0.04,2l-1.36,-1.15l-1.24,0.21l0.83,1.8l-0.92,0.19l-1,-0.69l1.2,3.95l-0.58,0l-0.45,-1.25l-0.57,-0.02l-0.26,1.32l-0.45,-0.3l0.1,-0.74l-0.56,-1.04h-0.64l0.12,0.84l-0.25,0.27l-0.62,-0.54l-0.38,-1.01l0.52,-0.57l-0.36,-0.74l-0.41,-0.38l-0.42,-0.09l-0.49,-0.94l0.58,-0.52l0.36,-0.48l0.56,0.1l0.25,-0.41l0.59,-0.16l0.68,0.46l0.55,0.17l0.39,-0.62l-0.94,-0.08l-0.56,-0.19l-1.25,0.28l-1.22,0.05l-1.09,-1.64l-0.18,-0.25l0.17,-0.64l-1.42,-1.15l-0.19,-1.03l1.3,-1.76l0.17,-1.19l0.91,-0.53l0.06,-0.97l1.83,-0.33l1.07,-0.81l1.52,0.07l0.46,-0.65l0.53,-0.12l2.07,0.11l2.25,-1.02l1.98,1.3l2.55,-0.35l0.03,-1.86L549.85,335.75z',
+ },
+ GT: {
+ d: 'M222.64,424.75L221.2,424.25L219.45,424.2L218.17,423.63L216.66,422.45L216.73,421.61L217.05,420.93L216.66,420.39L218.01,418.03L221.6,418.02L221.68,417.04L221.22,416.86L220.91,416.23L219.87,415.56L218.83,414.58L220.1,414.58L220.1,412.93L222.72,412.93L225.31,412.96L225.29,415.27L225.07,418.55L225.9,418.55L226.82,419.08L227.06,418.64L227.88,419.01L226.61,420.12L225.28,420.93L225.08,421.48L225.3,422.04L224.72,422.78L224.06,422.95L224.21,423.29L223.69,423.61L222.73,424.33z',
+ },
+ GW: {
+ d: 'M432.83,432.44L431.33,431.25L430.15,431.07L429.51,430.26L429.52,429.83L428.67,429.23L428.49,428.62L429.98,428.15L430.91,428.24L431.66,427.92L436.84,428.04L436.79,429.01L436.48,429.31L436.72,430.25L436.28,430.63L435.66,430.63L434.93,431.11L434.08,431.06z',
+ },
+ GY: {
+ d: 'M307.7,440L309.54,441.03L311.28,442.86L311.35,444.31L312.41,444.38L313.91,445.74L315.02,446.72L314.57,449.24L312.87,449.97L313.02,450.62L312.5,452.07L313.75,454.09L314.64,454.1L315.01,455.67L316.72,458.09L316.04,458.19L314.49,457.96L313.58,458.7L312.31,459.19L311.43,459.31L311.12,459.85L309.74,459.71L308.01,458.41L307.81,457.12L307.09,455.71L307.54,453.33L308.32,452.35L307.67,451.05L306.71,450.63L307.08,449.4L306.42,448.76L304.96,448.88L303.07,446.76L303.83,445.99L303.77,444.69L305.5,444.24L306.19,443.72L305.23,442.68L305.48,441.65z',
+ },
+ HN: {
+ d: 'M230.43,426.9L229.95,426.01L229.09,425.76L229.29,424.61L228.91,424.3L228.33,424.1L227.1,424.44L227,424.05L226.15,423.59L225.55,423.02L224.72,422.78L225.3,422.04L225.08,421.48L225.28,420.93L226.61,420.12L227.88,419.01L228.17,419.13L228.79,418.62L229.59,418.58L229.85,418.81L230.29,418.67L231.59,418.93L232.89,418.85L233.79,418.53L234.12,418.21L235.01,418.36L235.68,418.56L236.41,418.49L236.97,418.24L238.25,418.64L238.7,418.7L239.55,419.24L240.36,419.89L241.38,420.33L242.12,421.13L241.16,421.07L240.77,421.46L239.8,421.84L239.09,421.84L238.47,422.21L237.91,422.08L237.43,421.64L237.14,421.72L236.78,422.41L236.51,422.38L236.46,422.98L235.48,423.77L234.97,424.11L234.68,424.47L233.85,423.89L233.25,424.65L232.66,424.63L232,424.7L232.06,426.11L231.65,426.13L231.3,426.79z',
+ },
+ HR: {
+ d: 'M528.05,318.93L528.73,320.48L529.62,321.62L528.54,323.11L527.27,322.23L525.33,322.29L522.92,321.63L521.61,321.72L521.01,322.54L520,321.63L519.41,323.27L520.79,325.1L521.39,326.31L522.68,327.76L523.75,328.61L524.81,330.22L527.29,331.66L526.98,332.3L524.35,330.9L522.72,329.52L520.16,328.38L517.8,325.53L518.37,325.23L517.09,323.59L517.03,322.25L515.23,321.63L514.37,323.34L513.54,322.01L513.61,320.63L513.71,320.57L515.66,320.71L516.18,320.03L517.13,320.68L518.23,320.76L518.22,319.64L519.19,319.23L519.47,317.61L521.7,316.53L522.59,317.03L524.69,318.76L527,319.53z',
+ },
+ HT: {
+ d: 'M270.04,406.75L271.75,406.88L274.18,407.35L274.43,408.96L274.21,410.09L273.53,410.59L274.25,411.47L274.19,412.27L272.33,411.77L271.01,411.97L269.3,411.76L267.99,412.31L266.48,411.39L266.73,410.44L269.31,410.85L271.43,411.09L272.44,410.43L271.16,409.16L271.18,408.03L269.41,407.57z',
+ },
+ HU: {
+ d: 'M520.68,315.11L521.61,312.46L521.07,311.57L522.65,311.56L522.86,309.85L524.29,310.92L525.32,311.38L527.68,310.87L527.9,310.03L529.02,309.9L530.38,309.25L530.68,309.52L532,309L532.66,308L533.58,307.75L536.58,309.03L537.18,308.6L538.73,309.74L538.93,310.86L537.22,311.73L535.89,314.53L534.2,317.29L531.95,318.05L530.2,317.88L528.05,318.93L527,319.53L524.69,318.76L522.59,317.03L521.7,316.53L521.15,315.16z',
+ },
+ ID: {
+ d: 'M813.72,492.06l-1.18,0.05l-3.72,-1.98l2.61,-0.56l1.47,0.86l0.98,0.86L813.72,492.06zM824.15,491.78l-2.4,0.62l-0.34,-0.34l0.25,-0.96l1.21,-1.72l2.77,-1.12l0.28,0.56l0.05,0.86L824.15,491.78zM805.83,486.01l1.01,0.75l1.73,-0.23l0.7,1.2l-3.24,0.57l-1.94,0.38l-1.51,-0.02l0.96,-1.62l1.54,-0.02L805.83,486.01zM819.86,486l-0.41,1.56l-4.21,0.8l-3.73,-0.35l-0.01,-1.03l2.23,-0.59l1.76,0.84l1.87,-0.21L819.86,486zM779.82,482.31l5.37,0.28l0.62,-1.16l5.2,1.35l1.02,1.82l4.21,0.51l3.44,1.67l-3.2,1.07l-3.08,-1.13l-2.54,0.08l-2.91,-0.21l-2.62,-0.51l-3.25,-1.07l-2.06,-0.28l-1.17,0.35l-5.11,-1.16l-0.49,-1.21l-2.57,-0.21l1.92,-2.68l3.4,0.17l2.26,1.09l1.16,0.21L779.82,482.31zM853,480.73l-1.44,1.91l-0.27,-2.11l0.5,-1.01l0.59,-0.95l0.64,0.82L853,480.73zM832.04,473.02l-1.05,0.93l-1.94,-0.51l-0.55,-1.2l2.84,-0.13L832.04,473.02zM841.08,472.01l1.02,2.13l-2.37,-1.15l-2.34,-0.23l-1.58,0.18l-1.94,-0.1l0.67,-1.53l3.46,-0.12L841.08,472.01zM851.37,466.59l0.78,4.51l2.9,1.67l2.34,-2.96l3.22,-1.68l2.49,0l2.4,0.97l2.08,1l3.01,0.53l0.05,9.1l0.05,9.16l-2.5,-2.31l-2.85,-0.57l-0.69,0.8l-3.55,0.09l1.19,-2.29l1.77,-0.78l-0.73,-3.05l-1.35,-2.35l-5.44,-2.37l-2.31,-0.23l-4.21,-2.58l-0.83,1.36l-1.08,0.25l-0.64,-1.02l-0.01,-1.21l-2.14,-1.37l3.02,-1l2,0.05l-0.24,-0.74l-4.1,-0.01l-1.11,-1.66l-2.5,-0.51l-1.19,-1.38l3.78,-0.67l1.44,-0.91l4.5,1.14L851.37,466.59zM826.41,459.43l-2.25,2.76l-2.11,0.54l-2.7,-0.54l-4.67,0.14l-2.45,0.4l-0.4,2.11l2.51,2.48l1.51,-1.26l5.23,-0.95l-0.23,1.28l-1.22,-0.4l-1.22,1.63l-2.47,1.08l2.65,3.57l-0.51,0.96l2.52,3.22l-0.02,1.84l-1.5,0.82l-1.1,-0.98l1.36,-2.29l-2.75,1.08l-0.7,-0.77l0.36,-1.08l-2.02,-1.64l0.21,-2.72l-1.87,0.85l0.24,3.25l0.11,4l-1.78,0.41l-1.2,-0.82l0.8,-2.57l-0.43,-2.69l-1.18,-0.02l-0.87,-1.91l1.16,-1.83l0.4,-2.21l1.41,-4.2l0.59,-1.15l2.38,-2.07l2.19,0.82l3.54,0.39l3.22,-0.12l2.77,-2.02L826.41,459.43zM836.08,460.23l-0.15,2.43l-1.45,-0.27l-0.43,1.69l1.16,1.47l-0.79,0.33l-1.13,-1.76l-0.83,-3.56l0.56,-2.23l0.93,-1.01l0.2,1.52l1.66,0.24L836.08,460.23zM805.76,458.29l3.14,2.58l-3.32,0.33l-0.94,1.9l0.12,2.52l-2.7,1.91L802,470.3l-1.08,4.27l-0.41,-0.99l-3.19,1.26l-1.11,-1.71l-2,-0.16l-1.4,-0.89l-3.33,1l-1.02,-1.35l-1.84,0.15l-2.31,-0.32l-0.43,-3.74l-1.4,-0.77l-1.35,-2.38l-0.39,-2.44l0.33,-2.58l1.67,-1.85l0.47,1.86l1.92,1.57l1.81,-0.57l1.79,0.2l1.63,-1.41l1.34,-0.24l2.65,0.78l2.29,-0.59l1.44,-3.88l1.08,-0.97l0.97,-3.17l3.22,0l2.43,0.47l-1.59,2.52l2.06,2.64L805.76,458.29zM771.95,479.71l-3.1,0.06l-2.36,-2.34l-3.6,-2.28l-1.2,-1.69l-2.12,-2.27l-1.39,-2.09l-2.13,-3.9l-2.46,-2.32l-0.82,-2.39l-1.03,-2.17l-2.53,-1.75l-1.47,-2.39l-2.11,-1.56l-2.92,-3.08l-0.25,-1.42l1.81,0.11l4.34,0.54l2.48,2.73l2.17,1.89l1.55,1.16l2.66,3l2.85,0.04l2.36,1.91l1.62,2.33l2.13,1.27l-1.12,2.27l1.61,0.97l1.01,0.07l0.48,1.94l0.98,1.56l2.06,0.25l1.36,1.76l-0.7,3.47L771.95,479.71z',
+ },
+ IE: {
+ d: 'M457.88,284.29L458.34,287.65L456.22,291.77L451.25,294.45L447.28,293.77L449.55,288.99L448.09,284.22L451.9,280.47L454.02,278.2L454.6,280.8L454.02,283.37L455.76,283.31z',
+ },
+ IL: {
+ d: 'M575.41,366.82L574.92,367.87L573.9,367.41L573.32,369.61L574.02,369.97L573.31,370.43L573.18,371.29L574.5,370.84L574.57,372.11L573.17,377.28L571.33,371.73L572.14,370.65L571.95,370.46L572.69,368.93L573.26,366.43L573.66,365.59L573.74,365.56L574.68,365.56L574.94,364.98L575.69,364.93L575.73,366.3L575.35,366.8z',
+ },
+ IN: {
+ d: 'M693.5,357.44L696.51,361.43L696.23,364.17L697.34,365.88L697.25,367.57L695.24,367.13L696.03,370.76L698.78,372.82L702.68,375.09L700.9,376.55L699.81,379.54L702.53,380.74L705.17,382.29L708.83,384.06L712.67,384.47L714.29,386.06L716.45,386.35L719.83,387.08L722.16,387.03L722.48,385.79L722.11,383.8L722.33,382.45L724.04,381.78L724.28,384.26L724.33,384.89L726.88,386.08L728.65,385.59L731.01,385.8L733.3,385.71L733.5,383.78L732.36,382.78L734.62,382.38L737.17,380.03L740.4,378L742.75,378.78L744.75,377.44L746.07,379.42L745.12,380.76L748.14,381.23L748.36,382.43L747.37,383.01L747.6,384.94L745.6,384.37L741.97,386.53L742.05,388.31L740.51,390.91L740.36,392.41L739.11,394.93L736.92,394.23L736.81,397.38L736.18,398.41L736.48,399.69L735.09,400.41L733.62,395.61L732.84,395.62L732.38,397.56L730.85,395.98L731.71,394.25L732.97,394.07L734.26,391.48L732.65,390.95L730.04,391L727.38,390.58L727.13,388.43L725.79,388.27L723.57,386.93L722.58,389.04L724.6,390.67L722.85,391.82L722.23,392.94L723.95,393.76L723.48,395.6L724.45,397.88L724.89,400.36L724.48,401.46L722.58,401.42L719.12,402.04L719.28,404.29L717.78,406.05L713.75,408.05L710.61,411.51L708.5,413.36L705.71,415.27L705.71,416.61L704.31,417.33L701.78,418.36L700.47,418.52L699.63,420.72L700.21,424.47L700.36,426.84L699.18,429.55L699.16,434.38L697.71,434.52L696.44,436.67L697.29,437.6L694.73,438.4L693.79,440.32L692.66,441.13L690.01,438.5L688.71,434.54L687.63,431.68L686.65,430.34L685.16,427.6L684.47,424.02L683.98,422.22L681.43,418.25L680.27,412.61L679.43,408.84L679.44,405.26L678.9,402.46L674.82,404.25L672.84,403.89L669.18,400.26L670.53,399.17L669.7,397.99L666.41,395.41L668.28,393.37L674.45,393.38L673.89,390.74L672.32,389.18L672,386.79L670.16,385.39L673.25,382.09L676.51,382.33L679.44,379.01L681.2,375.75L683.92,372.51L683.88,370.18L686.27,368.27L684,366.64L683.03,364.39L682.04,361.44L683.41,359.98L687.67,360.81L690.79,360.3z',
+ },
+ IQ: {
+ d: 'M602.61,355.77L604.44,356.81L604.66,358.81L603.24,359.98L602.59,362.62L604.54,365.8L607.97,367.62L609.42,370.12L608.96,372.49L609.85,372.49L609.88,374.22L611.43,375.91L609.77,375.76L607.88,375.49L605.82,378.57L600.61,378.31L592.71,371.82L588.53,369.53L585.15,368.64L584.02,364.6L590.23,361.1L591.29,356.98L591.02,354.46L592.56,353.6L594,351.42L595.2,350.87L598.46,351.33L599.45,352.22L600.79,351.63z',
+ },
+ IR: {
+ d: 'M626.44,351.53L628.91,350.85L630.9,348.83L632.77,348.93L634,348.27L636,348.6L639.1,350.39L641.34,350.78L644.54,353.87L646.63,353.99L646.88,356.9L645.74,361.15L644.97,363.6L646.19,364.09L644.99,365.92L645.91,368.56L646.13,370.65L648.25,371.2L648.48,373.3L645.94,376.23L647.32,377.91L648.45,379.84L651.13,381.24L651.21,384.01L652.55,384.52L652.78,385.96L648.74,387.57L647.68,391.17L642.41,390.24L639.35,389.53L636.19,389.12L634.99,385.31L633.65,384.75L631.49,385.31L628.67,386.82L625.24,385.79L622.41,383.38L619.71,382.48L617.84,379.47L615.77,375.2L614.26,375.72L612.48,374.65L611.43,375.91L609.88,374.22L609.85,372.49L608.96,372.49L609.42,370.12L607.97,367.62L604.54,365.8L602.59,362.62L603.24,359.98L604.66,358.81L604.44,356.81L602.61,355.77L600.79,351.63L599.26,348.8L599.8,347.71L598.93,343.59L600.85,342.56L601.29,343.93L602.71,345.59L604.63,346.06L605.65,345.96L608.96,343.3L610.01,343.03L610.83,344.1L609.87,345.88L611.62,347.74L612.31,347.57L613.2,350.18L615.86,350.91L617.81,352.67L621.79,353.27L626.17,352.35z',
+ },
+ IS: {
+ d: 'M434.57,212.43L433.93,216.91L437.09,221.51L433.45,226.52L425.36,230.9L422.94,232.05L419.25,231.12L411.43,229.11L414.19,226.27L408.09,223.07L413.05,221.79L412.93,219.82L407.05,218.25L408.94,213.78L413.19,212.75L417.56,217.43L421.82,213.68L425.35,215.64L429.92,211.93z',
+ },
+ IT: {
+ d: 'M518.77,347.88l-1.01,2.78l0.42,1.09l-0.59,1.79l-2.14,-1.31l-1.43,-0.38l-3.91,-1.79l0.39,-1.82l3.28,0.32l2.86,-0.39L518.77,347.88zM501.08,337.06l1.68,2.62l-0.39,4.81l-1.27,-0.23l-1.14,1.2l-1.06,-0.95l-0.11,-4.38l-0.64,-2.1l1.54,0.19L501.08,337.06zM509.95,315.46l4.01,1.05l-0.3,1.99l0.67,1.71l-2.23,-0.58l-2.28,1.42l0.16,1.97l-0.34,1.12l0.92,1.99l2.63,1.95l1.41,3.17l3.12,3.05l2.2,-0.02l0.68,0.83l-0.79,0.74l2.51,1.35l2.06,1.12l2.4,1.92l0.29,0.68l-0.52,1.31l-1.56,-1.7l-2.44,-0.6l-1.18,2.36l2.03,1.34l-0.33,1.88l-1.17,0.21l-1.5,3.06l-1.17,0.27l0.01,-1.08l0.57,-1.91l0.61,-0.77l-1.09,-2.09l-0.86,-1.83l-1.16,-0.46l-0.83,-1.58l-1.8,-0.67l-1.21,-1.49l-2.07,-0.24l-2.19,-1.68l-2.56,-2.45l-1.91,-2.19l-0.87,-3.8l-1.4,-0.45l-2.28,-1.29l-1.29,0.53l-1.62,1.8l-1.17,0.28l0.32,-1.68l-1.52,-0.49l-0.72,-3.04l0.97,-1.21l-0.83,-1.5l0.12,-1.13l1.21,0.86l1.35,-0.19l1.57,-1.36l0.49,0.64l1.34,-0.13l0.61,-1.63l2.07,0.51l1.24,-0.68l0.22,-1.67l1.7,0.58l0.33,-0.78l2.77,-0.71L509.95,315.46z',
+ },
+ JM: {
+ d: 'M257.76,410.96L259.65,411.22L261.14,411.93L261.6,412.73L259.63,412.78L258.78,413.27L257.21,412.8L255.61,411.73L255.94,411.06L257.12,410.86z',
+ },
+ JO: {
+ d: 'M574.92,367.87L575.41,366.82L578.53,368.14L584.02,364.6L585.15,368.64L584.62,369.13L579,370.78L581.8,374.04L580.87,374.58L580.41,375.67L578.27,376.11L577.6,377.27L576.38,378.25L573.26,377.74L573.17,377.28L574.57,372.11L574.5,370.84L574.92,369.88z',
+ },
+ JP: {
+ d: 'M852.76,362.01l0.36,1.15l-1.58,2.03l-1.15,-1.07l-1.44,0.78l-0.74,1.95l-1.83,-0.95l0.02,-1.58l1.55,-2l1.59,0.39l1.15,-1.42L852.76,362.01zM870.53,351.73l-1.06,2.78l0.49,1.73l-1.46,2.42l-3.58,1.6l-4.93,0.21l-4,3.84l-1.88,-1.29L854,360.5l-4.88,0.75l-3.32,1.59l-3.28,0.06l2.84,2.46l-1.87,5.61l-1.81,1.37l-1.36,-1.27l0.69,-2.96l-1.77,-0.96l-1.14,-2.28l2.65,-1.03l1.47,-2.11l2.82,-1.75l2.06,-2.33l5.58,-1.02l3,0.7l2.93,-6.17l1.87,1.67l4.11,-3.51l1.59,-1.38l1.76,-4.38l-0.48,-4.1l1.18,-2.33l2.98,-0.68l1.53,5.11l-0.08,2.94l-2.59,3.6L870.53,351.73zM878.76,325.8l1.97,0.83l1.98,-1.65l0.62,4.35l-4.16,1.05l-2.46,3.76l-4.41,-2.58l-1.53,4.12l-3.12,0.06l-0.39,-3.74l1.39,-2.94l3,-0.21l0.82,-5.38l0.83,-3.09l3.29,4.12L878.76,325.8z',
+ },
+ KE: {
+ d: 'M590.19,465.78L591.85,468.07L589.89,469.19L589.2,470.35L588.14,470.55L587.75,472.52L586.85,473.64L586.3,475.5L585.17,476.42L581.15,473.63L580.95,472.01L570.79,466.34L570.31,466.03L570.29,463.08L571.09,461.95L572.47,460.11L573.49,458.08L572.26,454.88L571.93,453.48L570.6,451.54L572.32,449.87L574.22,448.03L575.68,448.5L575.68,450.07L576.64,450.98L578.59,450.98L582.14,453.36L583.02,453.38L583.68,453.31L584.3,453.63L586.17,453.85L587,452.69L589.56,451.52L590.69,452.46L592.61,452.46L590.16,455.63z',
+ },
+ KG: {
+ d: 'M674.22,333.11L674.85,331.45L676.69,330.91L681.31,332.22L681.74,329.98L683.33,329.18L687.33,330.79L688.35,330.37L693,330.47L697.16,330.87L698.56,332.24L700.29,332.79L699.9,333.65L695.48,335.68L694.48,337.16L690.88,337.6L689.82,339.95L686.85,339.46L684.92,340.18L682.24,341.9L682.63,342.75L681.83,343.58L676.53,344.13L673.06,342.96L670.02,343.24L670.29,341.14L673.34,341.75L674.37,340.62L676.5,340.98L680.09,338.34L676.77,336.38L674.77,337.31L672.7,335.91L675.05,333.48z',
+ },
+ KH: {
+ d: 'M765.44,433.6L764.3,432.12L762.89,429.18L762.22,425.73L764.02,423.35L767.64,422.8L770.27,423.21L772.58,424.34L773.85,422.35L776.34,423.41L776.99,425.33L776.64,428.75L771.93,430.94L773.16,432.67L770.22,432.87L767.79,434.01z',
+ },
+ KP: {
+ d: 'M841.55,332.62L841.94,333.29L840.88,333.06L839.66,334.33L838.82,335.61L838.93,338.28L837.48,339.09L836.98,339.74L835.92,340.82L834.05,341.42L832.84,342.4L832.75,343.97L832.42,344.37L833.54,344.95L835.13,346.53L834.72,347.39L833.53,347.62L831.55,347.79L830.46,349.39L829.2,349.27L829.03,349.59L827.67,348.92L827.33,349.58L826.51,349.87L826.41,349.21L825.68,348.89L824.93,348.32L825.7,346.75L826.36,346.33L826.11,345.68L826.82,343.74L826.63,343.15L825,342.75L823.68,341.78L825.96,339.43L829.05,337.45L830.98,334.8L832.31,335.97L834.73,336.11L834.29,334.14L838.62,332.51L839.74,330.38z',
+ },
+ KR: {
+ d: 'M835.13,346.53L837.55,350.71L838.24,352.98L838.26,356.96L837.21,358.84L834.67,359.5L832.43,360.91L829.9,361.2L829.59,359.35L830.11,356.78L828.87,353.18L830.95,352.59L829.03,349.59L829.2,349.27L830.46,349.39L831.55,347.79L833.53,347.62L834.72,347.39z',
+ },
+ KW: {
+ d: 'M609.77,375.76L610.35,377.17L610.1,377.9L611,380.31L609.02,380.39L608.32,378.88L605.82,378.57L607.88,375.49z',
+ },
+ KZ: {
+ d: 'M674.22,333.11L672.61,333.81L668.92,336.42L667.69,339.07L666.64,339.09L665.88,337.34L662.31,337.22L661.74,334.16L660.37,334.13L660.58,330.33L657.23,327.53L652.42,327.83L649.13,328.39L646.45,324.89L644.16,323.41L639.81,320.57L639.29,320.22L632.07,322.57L632.18,336.7L630.74,336.88L628.78,333.95L626.88,332.89L623.7,333.68L622.46,334.93L622.3,334.01L622.99,332.44L622.46,331.12L619.21,329.82L617.94,326.35L616.4,325.37L616.3,324.09L619.03,324.46L619.14,321.58L621.52,320.94L623.97,321.53L624.48,317.62L623.98,315.11L621.17,315.31L618.79,314.31L615.54,316.1L612.93,316.96L611.5,316.3L611.79,314.2L610,311.44L607.92,311.55L605.54,308.72L607.16,305.5L606.34,304.63L608.57,299.86L611.46,302.39L611.81,299.2L617.59,294.35L621.97,294.23L628.16,297.33L631.47,299.12L634.45,297.25L638.89,297.17L642.48,299.46L643.3,298.15L647.23,298.34L647.94,296.23L643.39,293.14L646.08,290.91L645.56,289.66L648.25,288.45L646.23,285.25L647.51,283.63L658,281.97L659.37,280.78L666.39,278.99L668.91,276.95L673.95,278.01L674.83,283.02L677.76,281.86L681.36,283.49L681.13,286.07L683.82,285.8L690.84,281.31L689.82,282.81L693.4,286.47L699.66,298.05L701.16,295.72L705.02,298.28L709.05,297.14L710.59,297.94L711.94,300.49L713.9,301.33L715.1,303.18L718.71,302.6L720.2,305.23L718.06,308.06L715.73,308.46L715.6,312.64L714.04,314.5L708.48,313.15L706.46,320.41L705.02,321.3L699.47,322.88L701.99,329.63L700.07,330.63L700.29,332.79L698.56,332.24L697.16,330.87L693,330.47L688.35,330.37L687.33,330.79L683.33,329.18L681.74,329.98L681.31,332.22L676.69,330.91L674.85,331.45z',
+ },
+ LA: {
+ d: 'M770.27,423.21L771.18,421.91L771.31,419.47L769.04,416.94L768.86,414.07L766.73,411.69L764.61,411.49L764.05,412.51L762.4,412.59L761.56,412.08L758.61,413.82L758.54,411.2L759.23,408.09L757.34,407.96L757.18,406.18L755.96,405.26L756.56,404.16L758.95,402.22L759.2,402.92L760.69,403L760.27,399.57L761.72,399.13L763.36,401.5L764.62,404.22L768.07,404.25L769.16,406.84L767.37,407.61L766.56,408.68L769.92,410.44L772.25,413.9L774.02,416.47L776.14,418.49L776.85,420.53L776.34,423.41L773.85,422.35L772.58,424.34z',
+ },
+ LB: {
+ d: 'M575.69,364.93L574.94,364.98L574.68,365.56L573.74,365.56L574.74,362.83L576.13,360.45L576.19,360.33L577.45,360.51L577.91,361.83L576.38,363.1z',
+ },
+ LK: {
+ d: 'M704.57,442.37L704.15,445.29L702.98,446.09L700.54,446.73L699.2,444.5L698.71,440.47L699.98,435.89L701.91,437.46L703.22,439.44z',
+ },
+ LR: {
+ d: 'M453.63,451.22L452.89,451.24L450,449.91L447.46,447.78L445.07,446.25L443.18,444.44L443.85,443.54L444,442.73L445.26,441.2L446.57,439.89L447.17,439.82L447.9,439.51L449.07,441.23L448.89,442.36L449.43,442.96L450.23,442.97L450.8,441.84L451.59,441.91L451.46,442.73L451.74,444.09L451.13,445.33L451.95,446.1L452.84,446.29L454.03,447.46L454.11,448.57L453.84,448.92z',
+ },
+ LS: {
+ d: 'M556.5,547.75L557.48,548.71L556.62,550.27L556.14,551.32L554.58,551.82L554.06,552.86L553.06,553.18L550.96,550.69L552.45,548.66L553.97,547.41L555.28,546.77z',
+ },
+ LT: {
+ d: 'M538.99,282.09L538.76,280.87L539.06,279.54L537.82,278.77L534.89,277.91L534.29,273.75L537.5,272.2L542.2,272.53L544.96,272.03L545.35,273.08L546.84,273.4L549.54,275.82L549.8,278.02L547.5,279.59L546.85,282.31L543.81,284.11L541.1,284.07L540.43,282.61z',
+ },
+ LU: {
+ d: 'M492.2,301.29L492.76,302.27L492.6,304.16L491.79,304.26L491.16,303.88L491.47,301.45z',
+ },
+ LV: {
+ d: 'M534.29,273.75L534.39,269.94L535.77,266.7L538.41,264.92L540.63,268.8L542.88,268.7L543.42,264.71L545.81,263.78L547.04,264.43L549.45,266.37L551.77,266.38L553.12,267.57L553.35,270.06L554.26,273.05L551.24,274.98L549.54,275.82L546.84,273.4L545.35,273.08L544.96,272.03L542.2,272.53L537.5,272.2z',
+ },
+ LY: {
+ d: 'M516.89,397.93L514.91,399.05L513.33,397.39L508.9,396.08L507.67,394.17L505.45,392.75L504.14,393.31L503.15,391.6L503.04,390.28L501.38,388.02L502.5,386.73L502.25,384.76L502.61,383.04L502.41,381.6L502.9,379.01L502.75,377.53L501.84,374.69L503.21,373.94L503.45,372.56L503.15,371.21L505.08,369.95L505.94,368.9L507.31,367.95L507.47,365.4L510.76,366.55L511.94,366.26L514.28,366.82L518,368.29L519.31,371.21L521.83,371.85L525.78,373.21L528.77,374.82L530.14,373.98L531.48,372.49L530.83,369.98L531.71,368.38L533.73,366.83L535.66,366.38L539.45,367.06L540.41,368.54L541.45,368.55L542.34,369.11L545.13,369.5L545.81,370.58L544.8,372.15L545.23,373.54L544.51,375.54L545.35,378.12L545.35,389.3L545.35,400.53L545.35,406.49L542.13,406.5L542.09,407.74L530.91,402.04L519.72,396.27z',
+ },
+ MA: {
+ d: 'M450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02L471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L467.95,358.51L465.05,357.76L462.38,358L460.69,356.54L458.63,356.52L457.74,358.63L455.87,362.14L453.79,363.53L450.98,365.06L449.18,367.3L448.8,369.04L447.73,371.86L448.43,375.89L446.09,378.57L444.69,379.42L442.48,381.59L439.87,381.94L438.57,383.06L442.19,383.07L450.94,383.1L450.94,383.1L450.94,383.1L442.19,383.07L438.57,383.06z',
+ },
+ MD: {
+ d: 'M549.89,309.45L550.56,308.83L552.42,308.41L554.49,309.72L555.64,309.88L556.91,311L556.71,312.41L557.73,313.08L558.13,314.8L559.11,315.84L558.92,316.44L559.44,316.86L558.7,317.15L557.04,317.04L556.77,316.47L556.18,316.8L556.38,317.52L555.61,318.81L555.12,320.18L554.42,320.62L553.91,318.79L554.21,317.07L554.12,315.28L552.5,312.84L551.61,311.09L550.74,309.85z',
+ },
+ ME: {
+ d: 'M530.77,332.23L530.6,331.51L529.38,333.38L529.57,334.57L528.98,334.28L528.2,333.05L526.98,332.3L527.29,331.66L527.7,329.56L528.61,328.67L529.14,328.31L529.88,328.97L530.29,329.51L531.21,329.92L532.28,330.71L532.05,331.04L531.53,331.89z',
+ },
+ MG: {
+ d: 'M614.17,498.4L614.91,499.61L615.6,501.5L616.06,504.96L616.78,506.31L616.5,507.69L616.01,508.55L615.05,506.85L614.53,507.71L615.06,509.85L614.81,511.09L614.04,511.76L613.86,514.24L612.76,517.66L611.38,521.75L609.64,527.42L608.57,531.63L607.3,535.18L605.02,535.91L602.57,537.22L600.96,536.43L598.73,535.33L597.96,533.71L597.77,531L596.79,528.58L596.53,526.41L597.03,524.25L598.32,523.73L598.33,522.74L599.67,520.48L599.92,518.6L599.27,517.2L598.74,515.35L598.52,512.65L599.5,511.02L599.87,509.17L601.27,509.07L602.84,508.47L603.87,507.95L605.11,507.91L606.7,506.26L609.01,504.48L609.85,503.04L609.47,501.81L610.66,502.16L612.21,500.17L612.26,498.45L613.19,497.17z',
+ },
+ MK: {
+ d: 'M532.98,334.66L533.34,334.69L533.47,333.92L535.12,333.33L535.75,333.19L536.71,332.97L538,332.91L539.41,334.12L539.61,336.59L539.07,336.71L538.61,337.36L537.09,337.29L536.02,338.1L534.19,338.42L533.03,337.52L532.63,335.93z',
+ },
+ ML: {
+ d: 'M441.13,422.22L442.07,421.7L442.54,420L443.43,419.93L445.39,420.73L446.97,420.16L448.05,420.35L448.48,419.71L459.73,419.67L460.35,417.64L459.86,417.28L458.51,404.6L457.16,391.54L461.45,391.49L470.91,398.14L480.37,404.69L481.03,406.08L482.78,406.93L484.08,407.41L484.11,409.29L487.22,409L487.23,415.75L485.69,417.69L485.45,419.48L482.96,419.93L479.14,420.18L478.1,421.21L476.3,421.32L474.51,421.33L473.81,420.78L472.26,421.19L469.64,422.39L469.11,423.29L466.93,424.57L466.55,425.31L465.38,425.89L464.02,425.51L463.25,426.21L462.84,428.17L460.61,430.53L460.68,431.49L459.91,432.7L460.1,434.34L458.94,434.76L458.29,435.12L457.85,433.91L457.04,434.23L456.56,434.17L456.04,435L453.88,434.97L453.1,434.55L452.74,434.81L451.88,433.99L452.03,433.15L451.68,432.81L451.08,433.09L451.19,432.17L451.77,431.44L450.62,430.25L450.28,429.46L449.66,428.84L449.1,428.76L448.43,429.16L447.52,429.54L446.75,430.16L445.55,429.93L444.77,429.21L444.31,429.11L443.58,429.49L443.13,429.5L442.97,428.45L443.1,427.56L442.86,426.46L441.81,425.65L441.26,424.01z',
+ },
+ MM: {
+ d: 'M754.36,405.95L752.72,407.23L750.74,407.37L749.46,410.56L748.28,411.09L749.64,413.66L751.42,415.79L752.56,417.71L751.54,420.23L750.57,420.76L751.24,422.21L753.11,424.49L753.43,426.09L753.38,427.42L754.48,430.02L752.94,432.67L751.58,435.58L751.31,433.48L752.17,431.3L751.23,429.62L751.46,426.51L750.32,425.03L749.41,421.59L748.9,417.93L747.69,415.53L745.84,416.99L742.65,419.05L741.08,418.79L739.34,418.12L740.31,414.51L739.73,411.77L737.53,408.38L737.87,407.31L736.23,406.93L734.24,404.51L734.06,402.1L735.04,402.56L735.09,400.41L736.48,399.69L736.18,398.41L736.81,397.38L736.92,394.23L739.11,394.93L740.36,392.41L740.51,390.91L742.05,388.31L741.97,386.53L745.6,384.37L747.6,384.94L747.37,383.01L748.36,382.43L748.14,381.23L749.78,380.99L750.72,382.85L751.94,383.6L752.03,386L751.91,388.57L749.26,391.15L748.92,394.78L751.88,394.28L752.55,397.08L754.33,397.67L753.51,400.17L755.59,401.3L756.81,401.85L758.86,400.98L758.95,402.22L756.56,404.16L755.96,405.26z',
+ },
+ MN: {
+ d: 'M721.29,304.88L724.25,304.14L729.6,300.4L733.87,298.33L736.3,299.68L739.23,299.74L741.1,301.79L743.9,301.94L747.96,303.03L750.68,300L749.54,297.4L752.45,292.74L755.59,294.61L758.13,295.14L761.43,296.29L761.96,299.61L765.95,301.45L768.6,300.64L772.14,300.07L774.95,300.65L777.7,302.74L779.4,304.94L782,304.9L785.53,305.59L788.11,304.53L791.8,303.82L795.91,300.76L797.59,301.23L799.06,302.69L802.4,302.33L801.04,305.58L799.06,309.8L799.78,311.51L801.37,310.98L804.13,311.63L806.29,310.09L808.54,311.42L811.08,314.31L810.77,315.76L808.56,315.3L804.49,315.84L802.51,317L800.46,319.66L796.18,321.21L793.39,323.31L790.51,322.51L788.93,322.15L787.46,324.69L788.35,326.19L788.81,327.47L786.84,328.77L784.83,330.82L781.56,332.15L777.35,332.3L772.82,333.61L769.56,335.62L768.32,334.46L764.93,334.46L760.78,332.17L758.01,331.6L754.28,332.13L748.49,331.28L745.4,331.37L743.76,329.1L742.48,325.53L740.75,325.1L737.36,322.65L733.58,322.1L730.25,321.42L729.24,319.69L730.32,314.96L728.39,311.65L724.39,310.08L722.03,307.85z',
+ },
+ MR: {
+ d: 'M441.13,422.22L439.28,420.24L437.58,418.11L435.72,417.34L434.38,416.49L432.81,416.52L431.45,417.15L430.05,416.9L429.09,417.83L428.85,416.27L429.63,414.83L429.98,412.08L429.67,409.17L429.33,407.7L429.61,406.23L428.89,404.81L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L461.45,391.49L457.16,391.54L458.51,404.6L459.86,417.28L460.35,417.64L459.73,419.67L448.48,419.71L448.05,420.35L446.97,420.16L445.39,420.73L443.43,419.93L442.54,420L442.07,421.7z',
+ },
+ MW: {
+ d: 'M572.15,495.69L571.37,497.85L572.15,501.57L573.13,501.53L574.14,502.45L575.31,504.53L575.55,508.25L574.34,508.86L573.48,510.87L571.65,509.08L571.45,507.04L572.04,505.69L571.87,504.54L570.77,503.81L569.99,504.07L568.38,502.69L566.91,501.95L567.76,499.29L568.64,498.3L568.1,495.94L568.66,493.64L569.14,492.87L568.43,490.47L567.11,489.21L569.85,489.73L570.42,490.51L571.37,491.83z',
+ },
+ MX: {
+ d: 'M202.89,388.72L201.8,391.43L201.31,393.64L201.1,397.72L200.83,399.19L201.32,400.83L202.19,402.3L202.75,404.61L204.61,406.82L205.26,408.51L206.36,409.96L209.34,410.75L210.5,411.97L212.96,411.15L215.09,410.86L217.19,410.33L218.96,409.82L220.74,408.62L221.41,406.89L221.64,404.4L222.13,403.53L224.02,402.74L226.99,402.05L229.47,402.15L231.17,401.9L231.84,402.53L231.75,403.97L230.24,405.74L229.58,407.55L230.09,408.06L229.67,409.34L228.97,411.63L228.26,410.88L227.67,410.93L227.14,410.97L226.14,412.74L225.63,412.39L225.29,412.53L225.31,412.96L222.72,412.93L220.1,412.93L220.1,414.58L218.83,414.58L219.87,415.56L220.91,416.23L221.22,416.86L221.68,417.04L221.6,418.02L218.01,418.03L216.66,420.39L217.05,420.93L216.73,421.61L216.66,422.45L213.49,419.34L212.04,418.4L209.75,417.64L208.19,417.85L205.93,418.94L204.52,419.23L202.54,418.47L200.44,417.91L197.82,416.58L195.72,416.17L192.54,414.82L190.2,413.42L189.49,412.64L187.92,412.47L185.05,411.54L183.88,410.2L180.87,408.53L179.47,406.66L178.8,405.21L179.73,404.92L179.44,404.07L180.09,403.3L180.1,402.26L179.16,400.92L178.9,399.72L177.96,398.2L175.49,395.18L172.67,392.79L171.31,390.88L168.9,389.62L168.39,388.86L168.82,386.94L167.39,386.21L165.73,384.69L165.03,382.5L163.52,382.24L161.9,380.58L160.58,379.03L160.46,378.03L158.95,375.61L157.96,373.13L158,371.88L155.97,370.59L155.04,370.73L153.44,369.83L152.99,371.16L153.45,372.72L153.72,375.15L154.69,376.48L156.77,378.69L157.23,379.44L157.66,379.66L158.02,380.76L158.52,380.71L159.09,382.75L159.94,383.55L160.53,384.66L162.3,386.26L163.23,389.15L164.06,390.5L164.84,391.94L164.99,393.56L166.34,393.66L167.47,395.05L168.49,396.41L168.42,396.95L167.24,398.06L166.74,398.05L166,396.2L164.17,394.47L162.15,392.99L160.71,392.21L160.8,389.96L160.38,388.28L159.04,387.32L157.11,385.93L156.74,386.33L156.04,385.51L154.31,384.76L152.66,382.93L152.86,382.69L154.01,382.87L155.05,381.69L155.16,380.26L153,377.99L151.36,377.1L150.32,375.09L149.28,372.97L147.98,370.36L146.84,367.4L150.03,367.15L153.59,366.79L153.33,367.43L157.56,369.04L163.96,371.35L169.54,371.32L171.76,371.32L171.76,369.97L176.62,369.97L177.64,371.14L179.08,372.17L180.74,373.6L181.67,375.29L182.37,377.05L183.82,378.02L186.15,378.98L187.91,376.45L190.21,376.39L192.18,377.67L193.59,379.85L194.56,381.71L196.21,383.51L196.83,385.7L197.62,387.17L199.8,388.13L201.79,388.81z',
+ },
+ MY: {
+ d: 'M758.65,446.07l0.22,1.44l1.85,-0.33l0.92,-1.15l0.64,0.26l1.66,1.69l1.18,1.87l0.16,1.88l-0.3,1.27l0.27,0.96l0.21,1.65l0.99,0.77l1.1,2.46l-0.05,0.94l-1.99,0.19l-2.65,-2.06l-3.32,-2.21l-0.33,-1.42l-1.62,-1.87l-0.39,-2.31l-1.01,-1.52l0.31,-2.04l-0.62,-1.19l0.49,-0.5L758.65,446.07zM807.84,450.9l-2.06,0.95l-2.43,-0.47l-3.22,0l-0.97,3.17l-1.08,0.97l-1.44,3.88l-2.29,0.59l-2.65,-0.78l-1.34,0.24l-1.63,1.41l-1.79,-0.2l-1.81,0.57l-1.92,-1.57l-0.47,-1.86l2.05,0.96l2.17,-0.52l0.56,-2.36l1.2,-0.53l3.36,-0.6l2.01,-2.21l1.38,-1.77l1.28,1.45l0.59,-0.95l1.34,0.09l0.16,-1.78l0.13,-1.38l2.16,-1.95l1.41,-2.19l1.13,-0.01l1.44,1.42l0.13,1.22l1.85,0.78l2.34,0.84l-0.2,1.1l-1.88,0.14L807.84,450.9z',
+ },
+ MZ: {
+ d: 'M572.15,495.69L574.26,495.46L577.63,496.26L578.37,495.9L580.32,495.83L581.32,494.98L583,495.02L586.06,493.92L588.29,492.28L588.75,493.55L588.63,496.38L588.98,498.88L589.09,503.36L589.58,504.76L588.75,506.83L587.66,508.84L585.87,510.64L583.31,511.75L580.15,513.16L576.98,516.31L575.9,516.85L573.94,518.94L572.79,519.63L572.55,521.75L573.88,524L574.43,525.76L574.47,526.66L574.96,526.51L574.88,529.47L574.43,530.88L575.09,531.4L574.67,532.67L573.5,533.76L571.19,534.8L567.82,536.46L566.59,537.61L566.83,538.91L567.54,539.12L567.3,540.76L565.18,540.74L564.94,539.36L564.52,537.97L564.28,536.86L564.78,533.43L564.05,531.26L562.71,527L565.66,523.59L566.4,521.44L566.83,521.17L567.14,519.43L566.69,518.55L566.81,516.35L567.36,514.31L567.35,510.62L565.9,509.68L564.56,509.47L563.96,508.75L562.66,508.14L560.32,508.2L560.14,507.12L559.87,505.07L568.38,502.69L569.99,504.07L570.77,503.81L571.87,504.54L572.04,505.69L571.45,507.04L571.65,509.08L573.48,510.87L574.34,508.86L575.55,508.25L575.31,504.53L574.14,502.45L573.13,501.53L572.15,501.57L571.37,497.85z',
+ },
+ NA: {
+ d: 'M521.08,546.54L519,544.15L517.9,541.85L517.28,538.82L516.59,536.57L515.65,531.85L515.59,528.22L515.23,526.58L514.14,525.34L512.69,522.87L511.22,519.3L510.61,517.45L508.32,514.58L508.15,512.33L509.5,511.78L511.18,511.28L513,511.37L514.67,512.69L515.09,512.48L526.46,512.36L528.4,513.76L535.19,514.17L540.34,512.98L542.64,512.31L544.46,512.48L545.56,513.14L545.59,513.38L544.01,514.04L543.15,514.05L541.37,515.2L540.29,513.99L535.97,515.02L533.88,515.11L533.8,525.68L531.04,525.79L531.04,534.65L531.03,546.17L528.53,547.8L527.03,548.03L525.26,547.43L524,547.2L523.53,545.84L522.42,544.97z',
+ },
+ NC: {
+ d: 'M940.08,523.48L942.38,525.34L943.83,526.72L942.77,527.45L941.22,526.63L939.22,525.28L937.41,523.69L935.56,521.59L935.17,520.58L936.37,520.63L937.95,521.64L939.18,522.65z',
+ },
+ NE: {
+ d: 'M481.29,429.88L481.36,427.93L478.12,427.28L478.04,425.9L476.46,424.03L476.08,422.72L476.3,421.32L478.1,421.21L479.14,420.18L482.96,419.93L485.45,419.48L485.69,417.69L487.23,415.75L487.22,409L491.17,407.68L499.29,401.83L508.9,396.08L513.33,397.39L514.91,399.05L516.89,397.93L517.58,402.6L518.63,403.38L518.68,404.33L519.84,405.35L519.23,406.63L518.15,412.61L518.01,416.4L514.43,419.14L513.22,422.94L514.39,424L514.38,425.85L516.18,425.92L515.9,427.26L515.11,427.43L515.02,428.33L514.49,428.4L512.6,425.27L511.94,425.15L509.75,426.75L507.58,425.92L506.07,425.75L505.26,426.15L503.61,426.07L501.96,427.29L500.53,427.36L497.14,425.88L495.81,426.58L494.38,426.53L493.33,425.45L490.51,424.38L487.5,424.72L486.77,425.34L486.38,426.99L485.57,428.14L485.38,430.68L483.24,429.04L482.23,429.05z',
+ },
+ NG: {
+ d: 'M499.09,450.08L496.18,451.08L495.11,450.94L494.03,451.56L491.79,451.5L490.29,449.75L489.37,447.73L487.38,445.89L485.27,445.92L482.8,445.92L482.96,441.39L482.89,439.6L483.42,437.83L484.28,436.96L485.64,435.21L485.35,434.45L485.9,433.31L485.27,431.63L485.38,430.68L485.57,428.14L486.38,426.99L486.77,425.34L487.5,424.72L490.51,424.38L493.33,425.45L494.38,426.53L495.81,426.58L497.14,425.88L500.53,427.36L501.96,427.29L503.61,426.07L505.26,426.15L506.07,425.75L507.58,425.92L509.75,426.75L511.94,425.15L512.6,425.27L514.49,428.4L515.02,428.33L516.13,429.47L515.82,429.98L515.67,430.93L513.31,433.13L512.57,434.94L512.17,436.41L511.58,437.04L511.01,439.01L509.51,440.17L509.08,441.59L508.45,442.73L508.19,443.89L506.26,444.84L504.69,443.69L503.62,443.73L501.95,445.37L501.14,445.4L499.81,448.1z',
+ },
+ NI: {
+ d: 'M234.93,432.31L233.96,431.41L232.65,430.26L232.03,429.3L230.85,428.41L229.44,427.12L229.75,426.68L230.22,427.11L230.43,426.9L231.3,426.79L231.65,426.13L232.06,426.11L232,424.7L232.66,424.63L233.25,424.65L233.85,423.89L234.68,424.47L234.97,424.11L235.48,423.77L236.46,422.98L236.51,422.38L236.78,422.41L237.14,421.72L237.43,421.64L237.91,422.08L238.47,422.21L239.09,421.84L239.8,421.84L240.77,421.46L241.16,421.07L242.12,421.13L241.88,421.41L241.74,422.05L242.02,423.1L241.38,424.08L241.08,425.23L240.98,426.5L241.14,427.23L241.21,428.52L240.78,428.8L240.52,430.02L240.71,430.77L240.13,431.5L240.27,432.26L240.69,432.73L240.02,433.33L239.2,433.14L238.73,432.56L237.84,432.32L237.2,432.69L235.35,431.94z',
+ },
+ NL: {
+ d: 'M492.28,285.98L494.61,286.11L495.14,287.69L494.44,291.92L493.73,293.63L492.04,293.63L492.52,298.32L490.97,297.28L489.2,295.33L486.6,296.26L484.55,295.91L485.99,294.67L488.45,287.93z',
+ },
+ NO: {
+ d: 'M554.23,175.61l8.77,6.24l-3.61,2.23l3.07,5.11l-4.77,3.19l-2.26,0.72l1.19,-5.59l-3.6,-3.25l-4.35,2.78l-1.38,5.85l-2.67,3.44l-3.01,-1.87l-3.66,0.38l-3.12,-4.15l-1.68,2.09l-1.74,0.32l-0.41,5.08l-5.28,-1.22l-0.74,4.22l-2.69,-0.03l-1.85,5.24l-2.8,7.87l-4.35,9.5l1.02,2.23l-0.98,2.55l-2.78,-0.11l-1.82,5.91l0.17,8.04l1.79,2.98l-0.93,6.73l-2.33,3.81l-1.24,3.15l-1.88,-3.35l-5.54,6.27l-3.74,1.24l-3.88,-2.71l-1,-5.86l-0.89,-13.26l2.58,-3.88l7.4,-5.18l5.54,-6.59l5.13,-9.3l6.74,-13.76l4.7,-5.67l7.71,-9.89l6.15,-3.59l4.61,0.44l4.27,-6.99l5.11,0.38L554.23,175.61z',
+ },
+ NP: {
+ d: 'M722.33,382.45L722.11,383.8L722.48,385.79L722.16,387.03L719.83,387.08L716.45,386.35L714.29,386.06L712.67,384.47L708.83,384.06L705.17,382.29L702.53,380.74L699.81,379.54L700.9,376.55L702.68,375.09L703.84,374.31L706.09,375.31L708.92,377.4L710.49,377.86L711.43,379.39L713.61,380.02L715.89,381.41L719.06,382.14z',
+ },
+ NZ: {
+ d: 'M960.38,588.63l0.64,1.53l1.99,-1.5l0.81,1.57l0,1.57l-1.04,1.74l-1.83,2.8l-1.43,1.54l1.03,1.86l-2.16,0.05l-2.4,1.46l-0.75,2.57l-1.59,4.03l-2.2,1.8l-1.4,1.16l-2.58,-0.09l-1.82,-1.34l-3.05,-0.28l-0.47,-1.48l1.51,-2.96l3.53,-3.87l1.81,-0.73l2.01,-1.47l2.4,-2.01l1.68,-1.98l1.25,-2.81l1.06,-0.95l0.42,-2.07l1.97,-1.7L960.38,588.63zM964.84,571.61l2.03,3.67l0.06,-2.38l1.27,0.95l0.42,2.65l2.26,1.15l1.89,0.28l1.6,-1.35l1.42,0.41l-0.68,3.15l-0.85,2.09l-2.14,-0.07l-0.75,1.1l0.26,1.56l-0.41,0.68l-1.06,1.97l-1.39,2.53l-2.17,1.49l-0.48,-0.98l-1.17,-0.54l1.62,-3.04l-0.92,-2.01l-3.02,-1.45l0.08,-1.31l2.03,-1.25l0.47,-2.74l-0.13,-2.28l-1.14,-2.34l0.08,-0.61l-1.34,-1.43l-2.21,-3.04l-1.17,-2.41l1.04,-0.27l1.53,1.89l2.18,0.89L964.84,571.61z',
+ },
+ OM: {
+ d: 'M640.29,403.18l-1.05,2.04l-1.27,-0.16l-0.58,0.71l-0.45,1.5l0.34,1.98l-0.26,0.36l-1.29,-0.01l-1.75,1.1l-0.27,1.43l-0.64,0.62l-1.74,-0.02l-1.1,0.74l0.01,1.18l-1.36,0.81l-1.55,-0.27l-1.88,0.98l-1.3,0.16l-0.92,-2.04l-2.19,-4.84l8.41,-2.96l1.87,-5.97l-1.29,-2.14l0.07,-1.22l0.82,-1.26l0.01,-1.25l1.27,-0.6l-0.5,-0.42l0.23,-2l1.43,-0.01l1.26,2.09l1.57,1.11l2.06,0.4l1.66,0.55l1.27,1.74l0.76,1l1,0.38l-0.01,0.67l-1.02,1.79l-0.45,0.84L640.29,403.18zM633.37,388.64L633,389.2l-0.53,-1.06l0.82,-1.06l0.35,0.27L633.37,388.64z',
+ },
+ PA: {
+ d: 'M256.88,443.21L255.95,442.4L255.35,440.88L256.04,440.13L255.33,439.94L254.81,439.01L253.41,438.23L252.18,438.41L251.62,439.39L250.48,440.09L249.87,440.19L249.6,440.78L250.93,442.3L250.17,442.66L249.76,443.08L248.46,443.22L247.97,441.54L247.61,442.02L246.68,441.86L246.12,440.72L244.97,440.54L244.24,440.21L243.04,440.21L242.95,440.82L242.63,440.4L242.78,439.84L243.01,439.27L242.9,438.76L243.32,438.42L242.74,438L242.72,436.87L243.81,436.62L244.81,437.63L244.75,438.23L245.87,438.35L246.14,438.12L246.91,438.82L248.29,438.61L249.48,437.9L251.18,437.33L252.14,436.49L253.69,436.65L253.58,436.93L255.15,437.03L256.4,437.52L257.31,438.36L258.37,439.14L258.03,439.56L258.68,441.21L258.15,442.05L257.24,441.85z',
+ },
+ PE: {
+ d: 'M280.13,513.14L279.38,514.65L277.94,515.39L275.13,513.71L274.88,512.51L269.33,509.59L264.3,506.42L262.13,504.64L260.97,502.27L261.43,501.44L259.06,497.69L256.29,492.45L253.65,486.83L252.5,485.54L251.62,483.48L249.44,481.64L247.44,480.51L248.35,479.26L246.99,476.59L247.86,474.64L250.1,472.87L250.43,474.04L249.63,474.7L249.7,475.72L250.86,475.5L252,475.8L253.17,477.21L254.76,476.06L255.29,474.18L257.01,471.75L260.38,470.65L263.44,467.73L264.31,465.92L263.92,463.81L264.67,463.54L266.53,464.86L267.42,466.18L268.72,466.9L270.37,469.82L272.46,470.17L274.01,469.43L275.02,469.91L276.7,469.67L278.85,470.98L277.04,473.82L277.88,473.88L279.28,475.37L276.75,475.24L276.38,475.66L274.08,476.19L270.88,478.1L270.67,479.4L269.96,480.38L270.24,481.89L268.54,482.7L268.54,483.89L267.8,484.4L268.97,486.93L270.53,488.65L269.94,489.86L271.8,490.02L272.86,491.53L275.33,491.6L277.63,489.94L277.44,494.24L278.72,494.57L280.3,494.08L282.73,498.66L282.12,499.62L281.99,501.64L281.93,504.08L280.83,505.52L281.34,506.59L280.69,507.56L281.9,510z',
+ },
+ PG: {
+ d: 'M912.32,482.42l-0.79,0.28l-1.21,-1.08l-1.23,-1.78l-0.6,-2.13l0.39,-0.27l0.3,0.83l0.85,0.63l1.36,1.77l1.32,0.95L912.32,482.42zM901.39,478.67l-1.47,0.23l-0.44,0.79l-1.53,0.68l-1.44,0.66l-1.49,0l-2.3,-0.81l-1.6,-0.78l0.23,-0.87l2.51,0.41l1.53,-0.22l0.42,-1.34l0.4,-0.07l0.27,1.49l1.6,-0.21l0.79,-0.96l1.57,-1l-0.31,-1.65l1.68,-0.05l0.57,0.46l-0.06,1.55L901.39,478.67zM887.96,484.02l2.5,1.84l1.82,2.99l1.61,-0.09l-0.11,1.25l2.17,0.48l-0.84,0.53l2.98,1.19l-0.31,0.82l-1.86,0.2l-0.69,-0.73l-2.41,-0.32l-2.83,-0.43l-2.18,-1.8l-1.59,-1.55l-1.46,-2.46l-3.66,-1.23l-2.38,0.8l-1.71,0.93l0.36,2.08l-2.2,0.97l-1.57,-0.47l-2.9,-0.12l-0.05,-9.16l-0.05,-9.1l4.87,1.92l5.18,1.6l1.93,1.43l1.56,1.41l0.43,1.65l4.67,1.73l0.68,1.49l-2.58,0.3L887.96,484.02zM904.63,475.93l-0.88,0.74l-0.53,-1.65l-0.65,-1.08l-1.27,-0.91l-1.6,-1.19l-2.02,-0.82l0.78,-0.67l1.51,0.78l0.95,0.61l1.18,0.67l1.12,1.17l1.07,0.89L904.63,475.93z',
+ },
+ PH: {
+ d: 'M829.59,439.86l0.29,1.87l0.17,1.58l-0.96,2.57l-1.02,-2.86l-1.31,1.42l0.9,2.06l-0.8,1.31l-3.3,-1.63l-0.79,-2.03l0.86,-1.33l-1.78,-1.33l-0.88,1.17l-1.32,-0.11l-2.08,1.57l-0.46,-0.82l1.1,-2.37l1.77,-0.79l1.53,-1.06l0.99,1.27l2.13,-0.77l0.46,-1.26l1.98,-0.08l-0.17,-2.18l2.27,1.34l0.24,1.42L829.59,439.86zM822.88,434.6l-1.01,0.93l-0.88,1.79l-0.88,0.84l-1.73,-1.95l0.58,-0.76l0.7,-0.79l0.31,-1.76l1.55,-0.17l-0.45,1.91l2.08,-2.74L822.88,434.6zM807.52,437.32l-3.73,2.67l1.38,-1.97l2.03,-1.74l1.68,-1.96l1.47,-2.82l0.5,2.31l-1.85,1.56L807.52,437.32zM817,430.02l1.68,0.88l1.78,0l-0.05,1.19l-1.3,1.2l-1.78,0.85l-0.1,-1.32l0.2,-1.45L817,430.02zM827.14,429.25l0.79,3.18l-2.16,-0.75l0.06,0.95l0.69,1.75l-1.33,0.63l-0.12,-1.99l-0.84,-0.15l-0.44,-1.72l1.65,0.23l-0.04,-1.08l-1.71,-2.18l2.69,0.06L827.14,429.25zM816,426.66l-0.74,2.47l-1.2,-1.42l-1.43,-2.18l2.4,0.1L816,426.66zM815.42,410.92l1.73,0.84l0.86,-0.76l0.25,0.75l-0.46,1.22l0.96,2.09l-0.74,2.42l-1.65,0.96l-0.44,2.33l0.63,2.29l1.49,0.32l1.24,-0.34l3.5,1.59l-0.27,1.56l0.92,0.69l-0.29,1.32l-2.18,-1.4l-1.04,-1.5l-0.72,1.05l-1.79,-1.72l-2.55,0.42l-1.4,-0.63l0.14,-1.19l0.88,-0.73l-0.84,-0.67l-0.36,1.04l-1.38,-1.65l-0.42,-1.26l-0.1,-2.77l1.13,0.96l0.29,-4.55l0.91,-2.66L815.42,410.92z',
+ },
+ PK: {
+ d: 'M685.99,351.76L688.06,353.39L688.89,356.05L693.5,357.44L690.79,360.3L687.67,360.81L683.41,359.98L682.04,361.44L683.03,364.39L684,366.64L686.27,368.27L683.88,370.18L683.92,372.51L681.2,375.75L679.44,379.01L676.51,382.33L673.25,382.09L670.16,385.39L672,386.79L672.32,389.18L673.89,390.74L674.45,393.38L668.28,393.37L666.41,395.41L664.36,394.64L663.52,392.44L661.35,390.1L656.19,390.68L651.63,390.73L647.68,391.17L648.74,387.57L652.78,385.96L652.55,384.52L651.21,384.01L651.13,381.24L648.45,379.84L647.32,377.91L645.94,376.23L650.63,377.87L653.44,377.39L655.11,377.79L655.68,377.09L657.63,377.37L661.28,376.04L661.38,373.29L662.94,371.45L665.03,371.45L665.33,370.54L667.48,370.11L668.51,370.41L669.61,369.49L669.46,367.51L670.65,365.51L672.43,364.66L671.33,362.44L674,362.55L674.77,361.33L674.65,360.03L676.05,358.6L675.72,356.9L675.06,355.44L676.7,353.93L679.71,353.2L682.93,352.8L684.35,352.15z',
+ },
+ PL: {
+ d: 'M517.36,296.97L516.21,294.11L516.43,292.55L515.73,290.1L514.72,288.45L515.5,287.2L514.84,284.81L516.76,283.42L521.13,281.2L524.67,279.56L527.46,280.38L527.67,281.56L530.38,281.62L533.83,282.17L538.99,282.09L540.43,282.61L541.1,284.07L541.22,286.16L542,287.94L541.98,289.79L540.3,290.73L541.17,292.85L541.22,294.86L542.63,298.75L542.33,299.99L540.94,300.5L538.39,304.11L539.11,306.03L538.5,305.78L535.84,304.14L533.82,304.74L532.5,304.3L530.84,305.22L529.43,303.7L528.27,304.28L528.11,304.02L526.82,301.89L524.74,301.63L524.47,300.26L522.55,299.77L522.13,300.9L520.61,300L520.78,298.79L518.69,298.4z',
+ },
+ PR: {
+ d: 'M289.41,410.89L290.84,411.15L291.35,411.73L290.63,412.47L288.52,412.45L286.88,412.55L286.72,411.3L287.11,410.87z',
+ },
+ PS: {
+ d: 'M574.92,367.87L574.92,369.88L574.5,370.84L573.18,371.29L573.31,370.43L574.02,369.97L573.32,369.61L573.9,367.41z',
+ },
+ PT: {
+ d: 'M449.92,334.56L450.94,333.61L452.08,333.06L452.79,334.9L454.44,334.89L454.92,334.42L456.56,334.55L457.34,336.43L456.04,337.43L456.01,340.31L455.55,340.84L455.44,342.56L454.23,342.86L455.35,345.03L454.58,347.38L455.54,348.44L455.16,349.4L454.12,350.72L454.35,351.88L453.23,352.79L451.75,352.3L450.3,352.68L450.73,349.94L450.47,347.76L449.21,347.43L448.54,346.08L448.77,343.72L449.88,342.41L450.08,340.94L450.67,338.73L450.6,337.16L450.04,335.82z',
+ },
+ PY: {
+ d: 'M299.49,526.99L300.6,523.4L300.67,521.8L302.01,519.18L306.9,518.32L309.5,518.37L312.12,519.88L312.16,520.79L312.99,522.45L312.81,526.51L315.77,527.09L316.91,526.5L318.8,527.32L319.33,528.22L319.59,530.99L319.92,532.17L320.96,532.3L322.01,531.81L323.02,532.36L323.02,534.04L322.64,535.86L322.09,537.64L321.63,540.39L319.09,542.79L316.87,543.29L313.72,542.81L310.9,541.96L313.66,537.23L313.25,535.86L310.37,534.66L306.94,532.4L304.65,531.94z',
+ },
+ QA: {
+ d: 'M617.72,392.16L617.53,389.92L618.29,388.3L619.05,387.96L619.9,388.93L619.95,390.74L619.34,392.55L618.56,392.77z',
+ },
+ RO: {
+ d: 'M538.93,310.86L540.14,309.97L541.88,310.43L543.67,310.45L544.97,311.46L545.93,310.82L548,310.42L548.71,309.44L549.89,309.45L550.74,309.85L551.61,311.09L552.5,312.84L554.12,315.28L554.21,317.07L553.91,318.79L554.42,320.62L555.67,321.35L556.98,320.71L558.26,321.39L558.32,322.42L556.96,323.26L556.11,322.9L555.33,327.61L553.68,327.2L551.64,325.79L548.34,326.69L546.95,327.68L542.83,327.48L540.67,326.87L539.59,327.16L538.78,325.56L538.27,324.88L538.92,324.22L538.22,323.73L537.34,324.61L535.71,323.47L535.49,321.84L533.78,320.9L533.47,319.63L531.95,318.05L534.2,317.29L535.89,314.53L537.22,311.73z',
+ },
+ RS: {
+ d: 'M533.78,320.9L535.49,321.84L535.71,323.47L537.34,324.61L538.22,323.73L538.92,324.22L538.27,324.88L538.78,325.56L538.09,326.44L538.34,327.86L539.7,329.52L538.63,330.71L538.16,331.92L538.47,332.37L538,332.91L536.71,332.97L535.75,333.19L535.66,332.91L535.99,332.46L536.31,331.53L535.91,331.55L535.36,330.85L534.9,330.67L534.54,330.06L534.01,329.82L533.61,329.28L533.11,329.5L532.72,330.76L532.05,331.04L532.28,330.71L531.21,329.92L530.29,329.51L529.88,328.97L529.14,328.31L529.8,328.14L530.21,326.32L528.86,324.82L529.56,323.1L528.54,323.11L529.62,321.62L528.73,320.48L528.05,318.93L530.2,317.88L531.95,318.05L533.47,319.63z',
+ },
+ RU: {
+ d: 'M1008.27,215.75l-2.78,2.97l-4.6,0.7l-0.07,6.46l-1.12,1.35l-2.63,-0.19l-2.14,-2.26l-3.73,-1.92l-0.63,-2.89l-2.85,-1.1l-3.19,0.87l-1.52,-2.37l0.61,-2.55l-3.36,1.64l1.26,3.19l-1.59,2.83l-0.02,0.04l-3.6,2.89l-3.63,-0.48l2.53,3.44l1.67,5.2l1.29,1.67l0.33,2.53l-0.72,1.6l-5.23,-1.32l-7.84,4.51l-2.49,0.69l-4.29,4.1l-4.07,3.5l-1.03,2.55l-4.01,-3.9l-7.31,4.42l-1.28,-2.08l-2.7,2.39l-3.75,-0.76l-0.9,3.63l-3.36,5.22l0.1,2.14l3.19,1.17l-0.38,7.46l-2.6,0.19l-1.2,4.15l1.17,2.1l-4.9,2.47l-0.97,5.4l-4.18,1.14l-0.84,4.66l-4.04,4.18l-1.04,-3.08l-1.2,-6.69l-1.56,-10.65l1.35,-6.95l2.37,-3.07l0.15,-2.44l4.36,-1.18l5.01,-6.78l4.83,-5.73l5.04,-4.57l2.25,-8.37l-3.41,0.51l-1.68,4.92l-7.11,6.36l-2.3,-7.14l-7.24,2l-7.02,9.56l2.32,3.38l-6.26,1.42l-4.33,0.56l0.2,-3.95l-4.36,-0.84l-3.47,2.7l-8.57,-0.94l-9.22,1.62l-9.08,10.33l-10.75,11.78l4.42,0.61l1.38,3l2.72,1.05l1.79,-2.38l3.08,0.31l4.05,5.19l0.09,3.92l-2.19,4.51l-0.24,5.27l-1.26,6.85l-4.23,6.01l-0.94,2.82l-3.81,4.66l-3.78,4.53l-1.81,2.28l-3.74,2.25l-1.77,0.05l-1.76,-1.86l-3.76,2.79l-0.44,1.26l-0.39,-0.66l-0.02,-1.93l1.43,-0.1l0.4,-4.55l-0.74,-3.36l2.41,-1.4l3.4,0.7l1.89,-3.89l0.96,-4.46l1.09,-1.51l1.47,-3.76l-4.63,1.24l-2.43,1.65l-4.26,0l-1.13,-3.95l-3.32,-3.03l-4.88,-1.38l-1.04,-4.28l-0.98,-2.73l-1.05,-1.94l-1.73,-4.61l-2.46,-1.71l-4.2,-1.39l-3.72,0.13l-3.48,0.84l-2.32,2.31l1.54,1.1l0.04,2.52l-1.56,1.45l-2.53,4.72l0.03,1.93l-3.95,2.74l-3.37,-1.63l-3.35,0.36l-1.47,-1.46l-1.68,-0.47l-4.11,3.06l-3.69,0.71l-2.58,1.06l-3.53,-0.7l-2.6,0.04l-1.7,-2.2l-2.75,-2.09l-2.81,-0.58l-3.55,0.57l-2.65,0.81l-3.98,-1.84l-0.53,-3.32l-3.3,-1.15l-2.54,-0.53l-3.14,-1.87l-2.9,4.66l1.14,2.6l-2.73,3.03l-4.05,-1.09l-2.8,-0.16l-1.87,-2.04l-2.92,-0.06l-2.44,-1.35l-4.26,2.07l-5.35,3.74l-2.96,0.74l-1.1,0.35l-1.49,-2.63l-3.61,0.58l-1.19,-1.84l-1.96,-0.85l-1.35,-2.55l-1.55,-0.8l-4.03,1.14l-3.86,-2.57l-1.49,2.33l-6.27,-11.58l-3.58,-3.66l1.03,-1.5l-7.03,4.49l-2.69,0.27l0.23,-2.58l-3.6,-1.63l-2.93,1.17l-0.88,-5.01l-5.04,-1.06l-2.52,2.03l-7.02,1.79l-1.37,1.19l-10.49,1.66l-1.29,1.62l2.02,3.21l-2.69,1.2l0.53,1.25l-2.69,2.22l4.54,3.1l-0.7,2.11l-3.94,-0.19l-0.81,1.31l-3.59,-2.29l-4.45,0.09l-2.98,1.87l-3.32,-1.79l-6.18,-3.1l-4.38,0.12l-5.79,4.85l-0.35,3.19l-2.88,-2.53l-2.24,4.77l0.82,0.87l-1.62,3.21l2.38,2.84l2.08,-0.12l1.79,2.76l-0.28,2.1l1.42,0.66l-1.28,2.39l-2.72,0.66l-2.79,4.09l2.55,3.7l-0.28,2.59l3.06,4.46l-1.67,1.51l-0.48,0.95l-1.24,-0.25l-1.93,-2.27l-0.79,-0.13l-1.76,-0.87l-0.86,-1.55l-2.62,-0.79l-1.7,0.6l-0.49,-0.71l-3.82,-1.83l-4.13,-0.62l-2.37,-0.66l-0.34,0.45l-3.57,-3.27l-3.2,-1.48l-2.42,-2.32l2.04,-0.64l2.33,-3.35l-1.57,-1.6l4.13,-1.67l-0.07,-0.9l-2.52,0.66l0.09,-1.83l1.45,-1.16l2.71,-0.31l0.44,-1.4l-0.62,-2.33l1.14,-2.23l-0.03,-1.26l-4.13,-1.41l-1.64,0.05l-1.73,-2.04l-2.15,0.69l-3.56,-1.54l0.06,-0.87l-1,-1.93l-2.24,-0.22l-0.23,-1.39l0.7,-0.91l-1.79,-2.58l-2.91,0.44l-0.85,-0.23l-0.71,1.04l-1.05,-0.18l-0.69,-2.94l-0.66,-1.54l0.54,-0.44l2.26,0.16l1.09,-1.02l-0.81,-1.25l-1.89,-0.83l0.17,-0.86l-1.14,-0.87l-1.76,-3.15l0.6,-1.31l-0.27,-2.31l-2.74,-1.18l-1.47,0.59l-0.4,-1.24l-2.95,-1.26l-0.9,-2.99l-0.24,-2.49l-1.35,-1.19l1.2,-1.66l-0.83,-4.96l2,-3.13l-0.42,-0.96l3.19,-3.07l-2.94,-2.68l6,-7.41l2.6,-3.45l1.05,-3.1l-4.15,-4.26l1.15,-4.15l-2.52,-4.85l1.89,-5.76l-3.26,-7.96l2.59,-5.48l-4.29,-4.99l0.41,-5.4l2.26,-0.72l4.77,-3.19l2.89,-2.81l4.61,4.86l7.68,1.88l10.59,8.65l2.15,3.51l0.19,4.8l-3.11,3.69l-4.58,1.85l-12.52,-5.31l-2.06,0.9l4.57,5.1l0.18,3.15l0.18,6.75l3.61,1.97l2.19,1.66l0.36,-3.11l-1.69,-2.8l1.78,-2.51l6.78,4.1l2.36,-1.59l-1.89,-4.88l6.53,-6.74l2.59,0.4l2.62,2.43l1.63,-4.81l-2.34,-4.28l1.37,-4.41l-2.06,-4.69l7.84,2.44l1.6,4.18l-3.55,0.91l0.02,4.04l2.21,2.44l4.33,-1.54l0.69,-4.61l5.86,-3.52l9.79,-6.54l2.11,0.38l-2.76,4.64l3.48,0.78l2.01,-2.58l5.25,-0.21l4.16,-3.19l3.2,4.62l3.19,-5.09l-2.94,-4.58l1.46,-2.66l8.28,2.44l3.88,2.49l10.16,8.8l1.88,-3.97l-2.85,-4.11l-0.08,-1.68l-3.38,-0.78l0.92,-3.83l-1.5,-6.49l-0.08,-2.74l5.17,-7.99l1.84,-8.42l2.08,-1.88l7.42,2.51l0.58,5.18l-2.66,7.28l1.74,2.78l0.9,5.94l-0.64,11.07l3.09,4.73l-1.2,5.01l-5.49,10.2l3.21,1.02l1.12,-2.51l3.08,-1.82l0.74,-3.55l2.43,-3.49l-1.63,-4.26l1.31,-5.08l-3.07,-0.64l-0.67,-4.42l2.24,-8.28l-3.64,-7.03l5.02,-6.04l-0.65,-6.62l1.4,-0.22l1.47,5.19l-1.11,8.67l3,1.59l-1.28,-6.37l4.69,-3.58l5.82,-0.49l5.18,5.18l-2.49,-7.62l-0.28,-10.28l4.88,-2.02l6.74,0.44l6.08,-1.32l-2.28,-5.38l3.25,-7.02l3.22,-0.3l5.45,-5.51l7.4,-1.51l0.94,-3.15l7.36,-1.08l2.29,2.61l6.29,-6.24l5.15,0.2l0.77,-5.24l2.68,-5.33l6.62,-5.31l4.81,4.21l-3.82,3.13l6.35,1.92l0.76,6.03l2.56,-2.94l8.2,0.16l6.32,5.84l2.25,4.35l-0.7,5.85l-3.1,3.24l-7.37,5.92l-2.11,3.08l3.48,1.43l4.15,2.55l2.52,-1.91l1.43,6.39l1.23,-2.56l4.48,-1.57l9,1.65l0.68,4.58l11.72,1.43l0.16,-7.47l5.95,1.74l4.48,-0.05l4.53,5.14l1.29,6.04l-1.66,3.84l3.52,6.98l4.41,3.49l2.71,-9.18l4.5,4l4.78,-2.38l5.43,2.72l2.07,-2.47l4.59,1.24l-2.02,-8.4l3.7,-4.07l25.32,6.06l2.39,5.35l7.34,6.65l11.32,-1.62l5.58,1.41l2.33,3.5l-0.34,6.02l3.45,2.29l3.75,-1.64l4.97,-0.21l5.29,1.57l5.31,-0.89l4.88,6.99l3.47,-2.48l-2.27,-5.07l1.25,-3.62l8.95,2.29l5.83,-0.49l8.06,3.84l3.92,3.44l6.87,5.86l7.35,7.34l-0.24,4.44l1.89,1.74l-0.65,-5.15l7.61,1.07L1008.27,215.75zM880.84,306.25l-2.82,-7.68l-1.16,-4.51l0.07,-4.5l-0.97,-4.5l-0.73,-3.15l-1.25,0.67l1.11,2.21l-2.59,2.17l-0.25,6.3l1.64,4.41l-0.12,5.85l-0.65,3.24l0.32,4.54l-0.31,4.01l0.52,3.4l1.84,-3.13l2.13,2.44l0.08,-2.84l-2.73,-4.23l1.72,-6.11L880.84,306.25zM537.82,278.77l-2.94,-0.86l-3.87,1.58l-0.64,2.13l3.45,0.55l5.16,-0.07l-0.22,-1.23l0.3,-1.33L537.82,278.77zM979.95,178.65l3.66,-0.52l2.89,-2.06l0.24,-1.19l-4.06,-2.51l-2.38,-0.02l-0.36,0.37l-3.57,3.64l0.5,2.73L979.95,178.65zM870.07,151.56l-2.66,3.92l0.49,0.52l5.75,1.08l4.25,-0.07l-0.34,-2.57l-3.98,-3.81L870.07,151.56zM894.64,142.03l3.24,-4.25l-7.04,-2.88l-5.23,-1.68l-0.67,3.59l5.21,4.27L894.64,142.03zM869.51,140.34l10.33,0.3l2.21,-8.14l-10.13,-6.07l-7.4,-0.51l-3.7,2.18l-1.51,7.75l5.55,7.01L869.51,140.34zM622.39,166.28l-2.87,1.96l0.41,4.83l5.08,2.35l0.74,3.82l9.16,1.1l1.66,-0.74l-5.36,-7.11l-0.57,-7.52l4.39,-9.14l4.18,-9.82l8.71,-10.17l8.56,-5.34l9.93,-5.74l1.88,-3.71l-1.95,-4.83l-5.46,1.6l-4.8,4.49l-9.33,2.22l-9.26,7.41l-6.27,5.85l0.76,4.87l-6.71,9.03l2.58,1.22l-5.56,8.27L622.39,166.28zM769.87,98.34l0.83,-5.72l-7.11,-8.34l-2.11,-0.98l-2.3,1.7l-5.12,18.6L769.87,98.34zM605.64,69.03l3.04,3.88l3.28,-2.69l0.39,-2.72l2.52,-1.27l3.76,-2.23l1.08,-2.62l-4.16,-3.85l-2.64,2.9l-1.61,4.12l-0.57,-4.65l-4.26,0.21L601,63.25l6.24,0.52L605.64,69.03zM736.89,82.07l4.65,5.73l7.81,4.2l6.12,-1.8l0.69,-13.62l-6.46,-16.04l-5.45,-9.02l-6.07,4.11l-7.28,11.83l3.83,3.27L736.89,82.07z',
+ },
+ RW: {
+ d: 'M560.54,466.55L561.66,468.12L561.49,469.76L560.69,470.11L559.2,469.93L558.34,471.52L556.63,471.3L556.89,469.77L557.28,469.56L557.38,467.9L558.19,467.12L558.87,467.41z',
+ },
+ SA: {
+ d: 'M595.2,417.22L594.84,415.98L593.99,415.1L593.77,413.93L592.33,412.89L590.83,410.43L590.04,408.02L588.1,405.98L586.85,405.5L584.99,402.65L584.67,400.57L584.79,398.78L583.18,395.42L581.87,394.23L580.35,393.6L579.43,391.84L579.58,391.15L578.8,389.55L577.98,388.86L576.89,386.54L575.18,384.02L573.75,381.86L572.36,381.87L572.79,380.13L572.92,379.02L573.26,377.74L576.38,378.25L577.6,377.27L578.27,376.11L580.41,375.67L580.87,374.58L581.8,374.04L579,370.78L584.62,369.13L585.15,368.64L588.53,369.53L592.71,371.82L600.61,378.31L605.82,378.57L608.32,378.88L609.02,380.39L611,380.31L612.1,383.04L613.48,383.75L613.96,384.86L615.87,386.17L616.04,387.46L615.76,388.49L616.12,389.53L616.92,390.4L617.3,391.41L617.72,392.16L618.56,392.77L619.34,392.55L619.87,393.72L619.98,394.43L621.06,397.51L629.48,399.03L630.05,398.39L631.33,400.53L629.46,406.5L621.05,409.46L612.97,410.59L610.35,411.91L608.34,414.98L607.03,415.46L606.33,414.49L605.26,414.64L602.55,414.35L602.03,414.05L598.8,414.12L598.04,414.39L596.89,413.63L596.14,415.06L596.43,416.29z',
+ },
+ SB: {
+ d: 'M929.81,492.75l0.78,0.97l-1.96,-0.02l-1.07,-1.74l1.67,0.69L929.81,492.75zM926.26,491.02l-1.09,0.06l-1.72,-0.29l-0.59,-0.44l0.18,-1.12l1.85,0.44l0.91,0.59L926.26,491.02zM928.58,490.25l-0.42,0.52l-2.08,-2.45l-0.58,-1.68h0.95l1.01,2.25L928.58,490.25zM923.52,486.69l0.12,0.57l-2.2,-1.19l-1.54,-1.01l-1.05,-0.94l0.42,-0.29l1.29,0.67l2.3,1.29L923.52,486.69zM916.97,483.91l-0.56,0.16l-1.23,-0.64l-1.15,-1.15l0.14,-0.47l1.67,1.18L916.97,483.91z',
+ },
+ SD: {
+ d: 'M570.48,436.9L570.09,436.85L570.14,435.44L569.8,434.47L568.36,433.35L568.02,431.3L568.36,429.2L567.06,429.01L566.87,429.64L565.18,429.79L565.86,430.62L566.1,432.33L564.56,433.89L563.16,435.93L561.72,436.22L559.36,434.57L558.3,435.15L558.01,435.98L556.57,436.51L556.47,437.09L553.68,437.09L553.29,436.51L551.27,436.41L550.26,436.9L549.49,436.65L548.05,435L547.57,434.23L545.54,434.62L544.77,435.93L544.05,438.45L543.09,438.98L542.23,439.29L542,439.15L541.03,438.34L540.85,437.47L541.3,436.29L541.3,435.14L539.68,433.37L539.36,432.15L539.39,431.46L538.36,430.63L538.33,428.97L537.75,427.87L536.76,428.04L537.04,426.99L537.77,425.79L537.45,424.61L538.37,423.73L537.79,423.06L538.53,421.28L539.81,419.15L542.23,419.35L542.09,407.74L542.13,406.5L545.35,406.49L545.35,400.53L556.62,400.53L567.5,400.53L578.62,400.53L579.52,403.47L578.91,404.01L579.32,407.07L580.35,410.59L581.41,411.32L582.95,412.4L581.53,414.07L579.46,414.55L578.58,415.45L578.31,417.38L577.1,421.63L577.4,422.78L576.95,425.25L575.81,428.06L574.12,429.48L572.92,431.65L572.63,432.81L571.31,433.61L570.48,436.57z',
+ },
+ SE: {
+ d: 'M537.45,217.49L534.73,222.18L535.17,226.2L530.71,231.33L525.3,236.67L523.25,245.08L525.25,249.15L527.93,252.29L525.36,258.52L522.44,259.78L521.37,268.62L519.78,273.38L516.38,272.89L514.79,276.84L511.54,277.07L510.65,272.36L508.3,266.55L506.17,259.05L507.41,255.9L509.74,252.09L510.67,245.36L508.88,242.38L508.7,234.34L510.53,228.43L513.31,228.54L514.28,225.99L513.26,223.76L517.61,214.26L520.42,206.39L522.27,201.15L524.96,201.17L525.71,196.96L530.99,198.18L531.4,193.1L533.14,192.77L536.88,196.58L541.25,201.73L541.33,212.85L542.27,215.55z',
+ },
+ SI: {
+ d: 'M513.96,316.51L516.28,316.82L517.7,315.9L520.15,315.8L520.68,315.11L521.15,315.16L521.7,316.53L519.47,317.61L519.19,319.23L518.22,319.64L518.23,320.76L517.13,320.68L516.18,320.03L515.66,320.71L513.71,320.57L514.33,320.21L513.66,318.5z',
+ },
+ SJ: {
+ d: 'M544.58,104.49l-6.26,5.36l-4.95,-3.02l1.94,-3.42l-1.69,-4.34l5.81,-2.78l1.11,5.18L544.58,104.49zM526.43,77.81l9.23,11.29l-7.06,5.66l-1.56,10.09l-2.46,2.49l-1.33,10.51l-3.38,0.48l-6.03,-7.64l2.54,-4.62l-4.2,-3.86l-5.46,-11.82l-2.18,-11.79l7.64,-5.69l1.54,5.56l3.99,-0.22l1.06,-5.43l4.12,-0.56L526.43,77.81zM546.6,66.35l5.5,5.8l-4.16,8.52l-8.13,1.81l-8.27,-2.56l-0.5,-4.32l-4.02,-0.28l-3.07,-7.48l8.66,-4.72l4.07,4.08l2.84,-5.09L546.6,66.35z',
+ },
+ SK: {
+ d: 'M528.11,304.02L528.27,304.28L529.43,303.7L530.84,305.22L532.5,304.3L533.82,304.74L535.84,304.14L538.5,305.78L537.73,306.89L537.18,308.6L536.58,309.03L533.58,307.75L532.66,308L532,309L530.68,309.52L530.38,309.25L529.02,309.9L527.9,310.03L527.68,310.87L525.32,311.38L524.29,310.92L522.86,309.85L522.58,308.4L522.81,307.86L523.2,306.93L524.45,307L525.4,306.56L525.48,306.17L526.02,305.96L526.2,304.99L526.84,304.8L527.28,304.03z',
+ },
+ SL: {
+ d: 'M443.18,444.44L442.42,444.23L440.41,443.1L438.95,441.6L438.46,440.57L438.11,438.49L439.61,437.25L439.93,436.46L440.41,435.85L441.19,435.79L441.84,435.26L444.08,435.26L444.86,436.27L445.47,437.46L445.38,438.28L445.83,439.02L445.8,440.05L446.57,439.89L445.26,441.2L444,442.73L443.85,443.54z',
+ },
+ SN: {
+ d: 'M428.39,425.16L427.23,422.92L425.83,421.9L427.07,421.35L428.43,419.32L429.09,417.83L430.05,416.9L431.45,417.15L432.81,416.52L434.38,416.49L435.72,417.34L437.58,418.11L439.28,420.24L441.13,422.22L441.26,424.01L441.81,425.65L442.86,426.46L443.1,427.56L442.97,428.45L442.56,428.61L441.04,428.39L440.83,428.7L440.21,428.77L438.19,428.07L436.84,428.04L431.66,427.92L430.91,428.24L429.98,428.15L428.49,428.62L428.03,426.43L430.58,426.49L431.26,426.09L431.76,426.06L432.8,425.4L434,426.01L435.22,426.06L436.43,425.41L435.87,424.59L434.94,425.07L434.07,425.06L432.97,424.35L432.08,424.4L431.44,425.07z',
+ },
+ SO: {
+ d: 'M618.63,430.43L618.56,429.64L617.5,429.65L616.17,430.63L614.68,430.91L613.39,431.33L612.5,431.39L610.9,431.49L609.9,432.01L608.51,432.2L606.04,433.08L602.99,433.41L600.34,434.14L598.95,434.13L597.69,432.94L597.14,431.77L596.23,431.24L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.16,455.63L590.19,465.78L591.85,468.07L592.48,467.41L593.13,465.95L596.2,462.57L598.81,460.45L603.01,457.69L605.81,455.43L609.11,451.62L611.5,448.49L613.91,444.39L615.64,440.8L616.99,437.65L617.78,434.6L618.38,433.58L618.37,432.08z',
+ },
+ SR: {
+ d: 'M315.02,446.72L318.38,447.28L318.68,446.77L320.95,446.57L323.96,447.33L322.5,449.73L322.72,451.64L323.83,453.3L323.34,454.5L323.09,455.77L322.37,456.94L320.77,456.35L319.44,456.64L318.31,456.39L318.03,457.2L318.5,457.75L318.25,458.32L316.72,458.09L315.01,455.67L314.64,454.1L313.75,454.09L312.5,452.07L313.02,450.62L312.87,449.97L314.57,449.24z',
+ },
+ SS: {
+ d: 'M570.48,436.9L570.51,439.1L570.09,439.96L568.61,440.03L567.65,441.64L569.37,441.84L570.79,443.21L571.29,444.33L572.57,444.98L574.22,448.03L572.32,449.87L570.6,451.54L568.87,452.82L566.9,452.82L564.64,453.47L562.86,452.84L561.71,453.61L559.24,451.75L558.57,450.56L557.01,451.15L555.71,450.96L554.96,451.43L553.7,451.1L552.01,448.79L551.56,447.9L549.46,446.79L548.75,445.11L547.58,443.9L545.7,442.44L545.67,441.52L544.14,440.39L542.23,439.29L543.09,438.98L544.05,438.45L544.77,435.93L545.54,434.62L547.57,434.23L548.05,435L549.49,436.65L550.26,436.9L551.27,436.41L553.29,436.51L553.68,437.09L556.47,437.09L556.57,436.51L558.01,435.98L558.3,435.15L559.36,434.57L561.72,436.22L563.16,435.93L564.56,433.89L566.1,432.33L565.86,430.62L565.18,429.79L566.87,429.64L567.06,429.01L568.36,429.2L568.02,431.3L568.36,433.35L569.8,434.47L570.14,435.44L570.09,436.85z',
+ },
+ SV: {
+ d: 'M229.09,425.76L228.78,426.43L227.16,426.39L226.15,426.12L224.99,425.55L223.43,425.37L222.64,424.75L222.73,424.33L223.69,423.61L224.21,423.29L224.06,422.95L224.72,422.78L225.55,423.02L226.15,423.59L227,424.05L227.1,424.44L228.33,424.1L228.91,424.3L229.29,424.61z',
+ },
+ SY: {
+ d: 'M584.02,364.6L578.53,368.14L575.41,366.82L575.35,366.8L575.73,366.3L575.69,364.93L576.38,363.1L577.91,361.83L577.45,360.51L576.19,360.33L575.93,357.72L576.61,356.31L577.36,355.56L578.11,354.8L578.27,352.86L579.18,353.54L582.27,352.57L583.76,353.22L586.07,353.21L589.29,351.9L590.81,351.96L594,351.42L592.56,353.6L591.02,354.46L591.29,356.98L590.23,361.1z',
+ },
+ SZ: {
+ d: 'M565.18,540.74L564.61,542.13L562.97,542.46L561.29,540.77L561.27,539.69L562.03,538.52L562.3,537.62L563.11,537.4L564.52,537.97L564.94,539.36z',
+ },
+ TD: {
+ d: 'M515.9,427.26L516.18,425.92L514.38,425.85L514.39,424L513.22,422.94L514.43,419.14L518.01,416.4L518.15,412.61L519.23,406.63L519.84,405.35L518.68,404.33L518.63,403.38L517.58,402.6L516.89,397.93L519.72,396.27L530.91,402.04L542.09,407.74L542.23,419.35L539.81,419.15L538.53,421.28L537.79,423.06L538.37,423.73L537.45,424.61L537.77,425.79L537.04,426.99L536.76,428.04L537.75,427.87L538.33,428.97L538.36,430.63L539.39,431.46L539.36,432.15L537.59,432.64L536.16,433.78L534.14,436.87L531.5,438.18L528.79,438L528,438.26L528.28,439.25L526.81,440.24L525.62,441.34L522.09,442.41L521.39,441.78L520.93,441.72L520.41,442.44L518.09,442.66L518.53,441.89L517.65,439.96L517.25,438.79L516.03,438.31L514.38,436.66L514.99,435.33L516.27,435.61L517.06,435.41L518.62,435.44L517.1,432.87L517.2,430.98L517.01,429.09z',
+ },
+ TF: {
+ d: 'M668.54,619.03L670.34,620.36L672.99,620.9L673.09,621.71L672.31,623.67L668,623.95L667.93,621.66L668.35,619.9z',
+ },
+ TG: {
+ d: 'M480.48,446.25L478.23,446.84L477.6,445.86L476.85,444.08L476.63,442.68L477.25,440.15L476.55,439.12L476.28,436.9L476.28,434.85L475.11,433.39L475.32,432.5L477.78,432.56L477.42,434.06L478.27,434.89L479.25,435.88L479.35,437.27L479.92,437.85L479.79,444.31z',
+ },
+ TH: {
+ d: 'M762.89,429.18L760.37,427.87L757.97,427.93L758.38,425.68L755.91,425.7L755.69,428.84L754.18,432.99L753.27,435.49L753.46,437.54L755.28,437.63L756.42,440.2L756.93,442.63L758.49,444.24L760.19,444.57L761.64,446.02L760.73,447.17L758.87,447.51L758.65,446.07L756.37,444.84L755.88,445.34L754.77,444.27L754.29,442.88L752.8,441.29L751.44,439.96L750.98,441.61L750.45,440.05L750.76,438.29L751.58,435.58L752.94,432.67L754.48,430.02L753.38,427.42L753.43,426.09L753.11,424.49L751.24,422.21L750.57,420.76L751.54,420.23L752.56,417.71L751.42,415.79L749.64,413.66L748.28,411.09L749.46,410.56L750.74,407.37L752.72,407.23L754.36,405.95L755.96,405.26L757.18,406.18L757.34,407.96L759.23,408.09L758.54,411.2L758.61,413.82L761.56,412.08L762.4,412.59L764.05,412.51L764.61,411.49L766.73,411.69L768.86,414.07L769.04,416.94L771.31,419.47L771.18,421.91L770.27,423.21L767.64,422.8L764.02,423.35L762.22,425.73z',
+ },
+ TJ: {
+ d: 'M674.37,340.62L673.34,341.75L670.29,341.14L670.02,343.24L673.06,342.96L676.53,344.13L681.83,343.58L682.54,346.91L683.46,346.55L685.16,347.36L685.07,348.74L685.49,350.75L682.59,350.75L680.66,350.49L678.92,352.06L677.67,352.4L676.69,353.14L675.58,351.99L675.85,349.04L675,348.87L675.3,347.78L673.79,346.98L672.58,348.21L672.28,349.64L671.85,350.16L670.17,350.09L669.27,351.69L668.32,351.02L666.29,352.14L665.44,351.72L667.01,348.15L666.41,345.49L664.35,344.63L665.08,343.04L667.42,343.21L668.75,341.2L669.64,338.85L673.39,337.99L672.81,339.7L673.21,340.72z',
+ },
+ TL: {
+ d: 'M825.65,488.25L825.98,487.59L828.39,486.96L830.35,486.86L831.22,486.51L832.28,486.86L831.25,487.62L828.33,488.85L825.98,489.67L825.93,488.81z',
+ },
+ TM: {
+ d: 'M646.88,356.9L646.63,353.99L644.54,353.87L641.34,350.78L639.1,350.39L636,348.6L634,348.27L632.77,348.93L630.9,348.83L628.91,350.85L626.44,351.53L625.92,349.04L626.33,345.31L624.14,344.09L624.86,341.61L623,341.39L623.62,338.3L626.26,339.21L628.73,338.02L626.68,335.79L625.88,333.65L623.62,334.61L623.34,337.34L622.46,334.93L623.7,333.68L626.88,332.89L628.78,333.95L630.74,336.88L632.18,336.7L635.34,336.65L634.88,334.77L637.28,333.47L639.64,331.27L643.42,333.27L643.72,336.26L644.79,337.03L647.82,336.86L648.76,337.53L650.14,341.32L653.35,343.83L655.18,345.52L658.11,347.27L661.84,348.79L661.76,350.95L660.92,350.84L659.59,349.9L659.15,351.15L656.79,351.83L656.23,354.62L654.65,355.67L652.44,356.19L651.85,357.74L649.74,358.2z',
+ },
+ TN: {
+ d: 'M501.84,374.69L500.64,368.83L498.92,367.5L498.89,366.69L496.6,364.71L496.35,362.18L498.08,360.3L498.74,357.48L498.29,354.2L498.86,352.41L501.92,351L503.88,351.42L503.8,353.19L506.18,351.9L506.38,352.57L504.97,354.28L504.96,355.88L505.93,356.73L505.56,359.69L503.71,361.4L504.24,363.23L505.69,363.29L506.4,364.88L507.47,365.4L507.31,367.95L505.94,368.9L505.08,369.95L503.15,371.21L503.45,372.56L503.21,373.94z',
+ },
+ TR: {
+ d: 'M578.75,336.6l4.02,1.43l3.27,-0.57l2.41,0.33l3.31,-1.94l2.99,-0.18l2.7,1.83l0.48,1.3l-0.27,1.79l2.08,0.91l1.1,1.06l-1.92,1.03l0.88,4.11l-0.55,1.1l1.53,2.82l-1.34,0.59l-0.98,-0.89l-3.26,-0.45l-1.2,0.55l-3.19,0.54l-1.51,-0.06l-3.23,1.31l-2.31,0.01l-1.49,-0.66l-3.09,0.97l-0.92,-0.68l-0.15,1.94l-0.75,0.76l-0.75,0.76l-1.03,-1.57l1.06,-1.3l-1.71,0.3l-2.35,-0.8l-1.93,2l-4.26,0.39l-2.27,-1.86l-3.02,-0.12l-0.65,1.44l-1.94,0.41l-2.71,-1.85l-3.06,0.06l-1.66,-3.48l-2.05,-1.96l1.36,-2.78l-1.78,-1.72l3.11,-3.48l4.32,-0.15l1.18,-2.81l5.34,0.49l3.37,-2.42l3.27,-1.06l4.64,-0.08L578.75,336.6zM551.5,338.99l-2.34,1.98l-0.88,-1.71l0.04,-0.76l0.67,-0.41l0.87,-2.33l-1.37,-0.99l2.86,-1.18l2.41,0.5l0.33,1.44l2.45,1.2l-0.51,0.91l-3.33,0.2L551.5,338.99z',
+ },
+ TT: {
+ d: 'M302.31,433.24L303.92,432.87L304.51,432.97L304.4,435.08L302.06,435.39L301.55,435.14L302.37,434.36z',
+ },
+ TW: {
+ d: 'M816.7,393.27L815.01,398.14L813.81,400.62L812.33,398.07L812.01,395.82L813.66,392.82L815.91,390.5L817.19,391.41z',
+ },
+ TZ: {
+ d: 'M570.31,466.03L570.79,466.34L580.95,472.01L581.15,473.63L585.17,476.42L583.88,479.87L584.04,481.46L585.84,482.48L585.92,483.21L585.15,484.91L585.31,485.76L585.13,487.11L586.11,488.87L587.27,491.66L588.29,492.28L586.06,493.92L583,495.02L581.32,494.98L580.32,495.83L578.37,495.9L577.63,496.26L574.26,495.46L572.15,495.69L571.37,491.83L570.42,490.51L569.85,489.73L567.11,489.21L565.51,488.36L563.73,487.89L562.61,487.41L561.44,486.7L559.93,483.15L558.3,481.58L557.74,479.96L558.02,478.5L557.52,475.93L558.68,475.8L559.69,474.79L560.79,473.33L561.48,472.75L561.45,471.84L560.85,471.21L560.69,470.11L561.49,469.76L561.66,468.12L560.54,466.55L561.53,466.21L564.6,466.25z',
+ },
+ UA: {
+ d: 'M564.38,292.49L565.42,292.68L566.13,291.64L566.98,291.87L569.89,291.43L571.68,294L570.98,294.92L571.21,296.31L573.45,296.52L574.45,298.45L574.39,299.32L577.95,300.86L580.1,300.17L581.83,302.21L583.47,302.17L587.6,303.57L587.63,304.84L586.5,307.07L587.11,309.4L586.67,310.79L583.96,311.1L582.52,312.26L582.43,314.09L580.19,314.42L578.32,315.74L575.7,315.95L573.28,317.47L571.96,318.5L573.45,319.97L574.82,320.93L577.68,320.69L577.13,322.11L574.06,322.79L570.25,325.06L568.7,324.27L569.31,322.42L566.25,321.26L566.75,320.49L569.91,318.86L569.51,318.05L569.06,318.46L568.62,318.24L564.26,317.22L564.07,315.71L561.47,316.21L560.43,318.44L558.26,321.39L556.98,320.71L555.67,321.35L554.42,320.62L555.12,320.18L555.61,318.81L556.38,317.52L556.18,316.8L556.77,316.48L557.04,317.04L558.7,317.15L559.44,316.86L558.92,316.44L559.11,315.84L558.13,314.8L557.73,313.08L556.71,312.41L556.91,311L555.64,309.88L554.49,309.72L552.42,308.41L550.56,308.83L549.89,309.45L548.71,309.44L548,310.42L545.93,310.82L544.98,311.46L543.67,310.45L541.88,310.43L540.14,309.97L538.93,310.86L538.73,309.74L537.18,308.6L537.73,306.89L538.5,305.79L539.12,306.03L538.39,304.11L540.94,300.5L542.33,299.99L542.63,298.75L541.22,294.86L542.56,294.69L544.1,293.46L546.27,293.36L549.1,293.72L552.23,294.8L554.44,294.89L555.49,295.54L556.54,294.76L557.28,295.81L559.81,295.59L560.92,296.02L561.11,293.76L561.97,292.76z',
+ },
+ UG: {
+ d: 'M564.6,466.25L561.53,466.21L560.54,466.55L558.87,467.41L558.19,467.12L558.21,465.02L558.86,463.96L559.02,461.72L559.61,460.43L560.68,458.97L561.76,458.23L562.66,457.24L561.54,456.87L561.71,453.61L562.86,452.84L564.64,453.47L566.9,452.82L568.87,452.82L570.6,451.54L571.93,453.48L572.26,454.88L573.49,458.08L572.47,460.11L571.09,461.95L570.29,463.08L570.31,466.03z',
+ },
+ US: {
+ d: 'M109.25,279.8L109.25,279.8l-1.54,-1.83l-2.47,-1.57l-0.79,-4.36l-3.61,-4.13l-1.51,-4.94l-2.69,-0.34l-4.46,-0.13l-3.29,-1.54l-5.8,-5.64l-2.68,-1.05l-4.9,-1.99l-3.88,0.48l-5.51,-2.59l-3.33,-2.43l-3.11,1.21l0.58,3.93l-1.55,0.36l-3.24,1.16l-2.47,1.86l-3.11,1.16l-0.4,-3.24l1.26,-5.53l2.98,-1.77l-0.77,-1.46l-3.57,3.22l-1.91,3.77l-4.04,3.95l2.05,2.65l-2.65,3.85l-3.01,2.21l-2.81,1.59l-0.69,2.29l-4.38,2.63l-0.89,2.36l-3.28,2.13l-1.92,-0.38l-2.62,1.38l-2.85,1.67l-2.33,1.63l-4.81,1.38l-0.44,-0.81l3.07,-2.27l2.74,-1.51l2.99,-2.71l3.48,-0.56l1.38,-2.06l3.89,-3.05l0.63,-1.03l2.07,-1.83l0.48,-4l1.43,-3.17l-3.23,1.64l-0.9,-0.93l-1.52,1.95l-1.83,-2.73l-0.76,1.94l-1.05,-2.7l-2.8,2.17l-1.72,0l-0.24,-3.23l0.51,-2.02l-1.81,-1.98l-3.65,1.07l-2.37,-2.63l-1.92,-1.36l-0.01,-3.25l-2.16,-2.48l1.08,-3.41l2.29,-3.37l1,-3.15l2.27,-0.45l1.92,0.99l2.26,-3.01l2.04,0.54l2.14,-1.96l-0.52,-2.92l-1.57,-1.16l2.08,-2.52l-1.72,0.07l-2.98,1.43l-0.85,1.43l-2.21,-1.43l-3.97,0.73l-4.11,-1.56l-1.18,-2.65l-3.55,-3.91l3.94,-2.87l6.25,-3.41h2.31l-0.38,3.48l5.92,-0.27l-2.28,-4.34l-3.45,-2.72l-1.99,-3.64l-2.69,-3.17l-3.85,-2.38l1.57,-4.03l4.97,-0.25l3.54,-3.58l0.67,-3.92l2.86,-3.91l2.73,-0.95l5.31,-3.76l2.58,0.57l4.31,-4.61l4.24,1.83l2.03,3.87l1.25,-1.65l4.74,0.51l-0.17,1.95l4.29,1.43l2.86,-0.84l5.91,2.64l5.39,0.78l2.16,1.07l3.73,-1.34l4.25,2.46l3.05,1.13l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12L109.25,279.8zM285.18,314.23l-1.25,-1.19l-1.88,0.7l-0.93,-1.08l-2.14,3.1l-0.86,3.15l-1,1.82l-1.19,0.62l-0.9,0.2l-0.28,0.98l-5.17,0l-4.26,0.03l-1.27,0.73l-2.87,2.73l0.29,0.54l0.17,1.51l-2.1,1.27l-2.3,-0.32l-2.2,-0.14l-1.33,0.44l0.25,1.15l0,0l0.05,0.37l-2.42,2.27l-2.11,1.09l-1.44,0.51l-1.66,1.03l-2.03,0.5l-1.4,-0.19l-1.73,-0.77l0.96,-1.45l0.62,-1.32l1.32,-2.09l-0.14,-1.57l-0.5,-2.24l-1.04,-0.39l-1.74,1.7l-0.56,-0.03l-0.14,-0.97l1.54,-1.56l0.26,-1.79l-0.23,-1.79l-2.08,-1.55l-2.38,-0.8l-0.39,1.52l-0.62,0.4l-0.5,1.95l-0.26,-1.33l-1.12,0.95l-0.7,1.32l-0.73,1.92l-0.14,1.64l0.93,2.38l-0.08,2.51l-1.14,1.84l-0.57,0.52l-0.76,0.41l-0.95,0.02l-0.26,-0.25l-0.76,-1.98l-0.02,-0.98l0.08,-0.94l-0.35,-1.87l0.53,-2.18l0.63,-2.71l1.46,-3.03l-0.42,0.01l-2.06,2.54l-0.38,-0.46l1.1,-1.42l1.67,-2.57l1.91,-0.36l2.19,-0.8l2.21,0.42l0.09,0.02l2.47,-0.36l-1.4,-1.61l-0.75,-0.13l-0.86,-0.16l-0.59,-1.14l-2.75,0.36l-2.49,0.9l-1.97,-1.55l-1.59,-0.52l0.9,-2.17l-2.48,1.37l-2.25,1.33l-2.16,1.04l-1.72,-1.4l-2.81,0.85l0.01,-0.6l1.9,-1.73l1.99,-1.65l2.86,-1.37l-3.45,-1.09l-2.27,0.55l-2.72,-1.3l-2.86,-0.67l-1.96,-0.26l-0.87,-0.72l-0.5,-2.35l-0.95,0.02l-0.01,1.64l-5.8,0l-9.59,0l-9.53,0l-8.42,0h-8.41h-8.27h-8.55h-2.76h-8.32h-7.96l0.95,3.47l0.45,3.41l-0.69,1.09l-1.49,-3.91l-4.05,-1.42l-0.34,0.82l0.82,1.94l0.89,3.53l0.51,5.42l-0.34,3.59l-0.34,3.54l-1.1,3.61l0.9,2.9l0.1,3.2l-0.61,3.05l1.49,1.99l0.39,2.95l2.17,2.99l1.24,1.17l-0.1,0.82l2.34,4.85l2.72,3.45l0.34,1.87l0.71,0.55l2.6,0.33l1,0.91l1.57,0.17l0.31,0.96l1.31,0.4l1.82,1.92l0.47,1.7l3.19,-0.25l3.56,-0.36l-0.26,0.65l4.23,1.6l6.4,2.31l5.58,-0.02l2.22,0l0.01,-1.35l4.86,0l1.02,1.16l1.43,1.03l1.67,1.43l0.93,1.69l0.7,1.77l1.45,0.97l2.33,0.96l1.77,-2.53l2.29,-0.06l1.98,1.28l1.41,2.18l0.97,1.86l1.65,1.8l0.62,2.19l0.79,1.47l2.19,0.96l1.99,0.68l1.09,-0.09l-0.53,-1.06l-0.14,-1.5l0.03,-2.16l0.65,-1.42l1.53,-1.51l2.79,-1.37l2.55,-2.37l2.36,-0.75l1.74,-0.23l2.04,0.74l2.45,-0.4l2.09,1.69l2.03,0.1l1.05,-0.61l1.04,0.47l0.53,-0.42l-0.6,-0.63l0.05,-1.3l-0.5,-0.86l1.16,-0.5l2.14,-0.22l2.49,0.36l3.17,-0.41l1.76,0.8l1.36,1.5l0.5,0.16l2.83,-1.46l1.09,0.49l2.19,2.68l0.79,1.75l-0.58,2.1l0.42,1.23l1.3,2.4l1.49,2.68l1.07,0.71l0.44,1.35l1.38,0.37l0.84,-0.39l0.7,-1.89l0.12,-1.21l0.09,-2.1l-1.33,-3.65l-0.02,-1.37l-1.25,-2.25l-0.94,-2.75l-0.5,-2.25l0.43,-2.31l1.32,-1.94l1.58,-1.57l3.08,-2.16l0.4,-1.12l1.42,-1.23l1.4,-0.22l1.84,-1.98l2.9,-1.01l1.78,-2.53l-0.39,-3.46l-0.29,-1.21l-0.8,-0.24l-0.12,-3.35l-1.93,-1.14l1.85,0.56l-0.6,-2.26l0.54,-1.55l0.33,2.97l1.43,1.36l-0.87,2.4l0.26,0.14l1.58,-2.81l0.9,-1.38l-0.04,-1.35l-0.7,-0.64l-0.58,-1.94l0.92,0.9l0.62,0.19l0.21,0.92l2.04,-2.78l0.61,-2.62l-0.83,-0.17l0.85,-1.02l-0.08,0.45l1.79,-0.01l3.93,-1.11l-0.83,-0.7l-4.12,0.7l2.34,-1.07l1.63,-0.18l1.22,-0.19l2.07,-0.65l1.35,0.07l1.89,-0.61l0.22,-1.07l-0.84,-0.84l0.29,1.37l-1.16,-0.09l-0.93,-1.99l0.03,-2.01l0.48,-0.86l1.48,-2.28l2.96,-1.15l2.88,-1.34l2.99,-1.9l-0.48,-1.29l-1.83,-2.25L285.18,314.23zM45.62,263.79l-1.5,0.8l-2.55,1.86l0.43,2.42l1.43,1.32l2.8,-1.95l2.43,-2.47l-1.19,-1.63L45.62,263.79zM0,235.22l2.04,-1.26l0.23,-0.68L0,232.61V235.22zM8.5,250.59l-2.77,0.97l1.7,1.52l1.84,1.04l1.72,-0.87l-0.27,-2.15L8.5,250.59zM105.85,283.09l-2.69,0.38l-1.32,-0.62l-0.17,1.52l0.52,2.07l1.42,1.46l1.04,2.13l1.69,2.1l1.12,0.01l-2.44,-3.7L105.85,283.09zM37.13,403.77l-1,-0.28l-0.27,0.26l0.02,0.19l0.32,0.24l0.48,0.63l0.94,-0.21l0.23,-0.36L37.13,403.77zM34.14,403.23l1.5,0.09l0.09,-0.32l-1.38,-0.13L34.14,403.23zM40.03,406.52l-0.5,-0.26l-1.07,-0.5l-0.21,-0.06l-0.16,0.28l0.19,0.58l-0.49,0.48l-0.14,0.33l0.46,1.08l-0.08,0.83l0.7,0.42l0.41,-0.49l0.9,-0.46l1.1,-0.63l0.07,-0.16l-0.71,-1.04L40.03,406.52zM32.17,401.38l-0.75,0.41l0.11,0.12l0.36,0.68l0.98,0.11l0.2,0.04l0.15,-0.17l-0.81,-0.99L32.17,401.38zM27.77,399.82l-0.43,0.3l-0.15,0.22l0.94,0.55l0.33,-0.3l-0.06,-0.7L27.77,399.82z',
+ },
+ UY: {
+ d: 'M313.68,551.79L315.5,551.45L318.31,553.95L319.35,553.86L322.24,555.94L324.44,557.76L326.06,560.01L324.82,561.58L325.6,563.48L324.39,565.6L321.22,567.48L319.15,566.8L317.63,567.17L315.04,565.71L313.14,565.82L311.43,563.95L311.65,561.79L312.26,561.05L312.23,557.75L312.98,554.38z',
+ },
+ UZ: {
+ d: 'M661.76,350.95L661.84,348.79L658.11,347.27L655.18,345.52L653.35,343.83L650.14,341.32L648.76,337.53L647.82,336.86L644.79,337.03L643.72,336.26L643.42,333.27L639.64,331.27L637.28,333.47L634.88,334.77L635.34,336.65L632.18,336.7L632.07,322.57L639.29,320.22L639.81,320.57L644.16,323.41L646.45,324.89L649.13,328.39L652.42,327.83L657.23,327.53L660.58,330.33L660.37,334.13L661.74,334.16L662.31,337.22L665.88,337.34L666.64,339.09L667.69,339.07L668.92,336.42L672.61,333.81L674.22,333.11L675.05,333.48L672.7,335.91L674.77,337.31L676.77,336.38L680.09,338.34L676.5,340.98L674.37,340.62L673.21,340.72L672.81,339.7L673.39,337.99L669.64,338.85L668.75,341.2L667.42,343.21L665.08,343.04L664.35,344.63L666.41,345.49L667.01,348.15L665.44,351.72L663.32,350.98z',
+ },
+ VE: {
+ d: 'M275.25,430.35L275.17,431.02L273.52,431.35L274.44,432.64L274.4,434.13L273.17,435.77L274.23,438.01L275.44,437.83L276.07,435.79L275.2,434.79L275.06,432.65L278.55,431.49L278.16,430.15L279.14,429.25L280.15,431.25L282.12,431.3L283.94,432.88L284.05,433.82L286.56,433.84L289.56,433.55L291.17,434.82L293.31,435.17L294.88,434.29L294.91,433.57L298.39,433.4L301.75,433.36L299.37,434.2L300.32,435.54L302.57,435.75L304.69,437.14L305.14,439.4L306.6,439.33L307.7,440L305.48,441.65L305.23,442.68L306.19,443.72L305.5,444.24L303.77,444.69L303.83,445.99L303.07,446.76L304.96,448.88L305.34,449.67L304.31,450.74L301.17,451.78L299.16,452.22L298.35,452.88L296.12,452.18L294.04,451.82L293.52,452.08L294.77,452.8L294.66,454.67L295.05,456.43L297.42,456.67L297.58,457.25L295.57,458.05L295.25,459.23L294.09,459.68L292.01,460.33L291.47,461.19L289.29,461.37L287.74,459.89L286.89,457.12L286.14,456.14L285.12,455.53L286.54,454.14L286.45,453.51L285.65,452.68L285.09,450.83L285.31,448.82L285.93,447.88L286.44,446.38L285.45,445.89L283.85,446.21L281.83,446.06L280.7,446.36L278.72,443.95L277.09,443.59L273.49,443.86L272.82,442.88L272.13,442.65L272.03,442.06L272.36,441.02L272.14,439.89L271.52,439.27L271.16,437.97L269.72,437.79L270.49,436.13L270.84,434.12L271.65,433.06L272.74,432.25L273.45,430.83z',
+ },
+ VN: {
+ d: 'M778.21,401.87L774.47,404.43L772.13,407.24L771.51,409.29L773.66,412.38L776.28,416.2L778.82,417.99L780.53,420.32L781.81,425.64L781.43,430.66L779.1,432.53L775.88,434.36L773.6,436.72L770.1,439.34L769.08,437.53L769.87,435.62L767.79,434.01L770.22,432.87L773.16,432.67L771.93,430.94L776.64,428.75L776.99,425.33L776.34,423.41L776.85,420.53L776.14,418.49L774.02,416.47L772.25,413.9L769.92,410.44L766.56,408.68L767.37,407.61L769.16,406.84L768.07,404.25L764.62,404.22L763.36,401.5L761.72,399.13L763.23,398.39L765.46,398.41L768.19,398.06L770.58,396.44L771.93,397.58L774.5,398.13L774.05,399.87L775.39,401.09z',
+ },
+ VU: {
+ d: 'M945.87,509.9l-0.92,0.38l-0.94,-1.27l0.1,-0.78L945.87,509.9zM943.8,505.46l0.46,2.33l-0.75,-0.36l-0.58,0.16l-0.4,-0.8l-0.06,-2.21L943.8,505.46z',
+ },
+ XK: {
+ d: 'M533.47,333.92L533.34,334.69L532.98,334.66L532.8,333.29L532.13,332.91L531.53,331.89L532.05,331.04L532.72,330.76L533.11,329.5L533.61,329.28L534.01,329.82L534.54,330.06L534.9,330.67L535.36,330.85L535.91,331.55L536.31,331.53L535.99,332.46L535.66,332.91L535.75,333.19L535.12,333.33z',
+ },
+ YE: {
+ d: 'M624.16,416.33L622.13,417.12L621.59,418.4L621.52,419.39L618.73,420.61L614.25,421.96L611.74,423.99L610.51,424.14L609.67,423.97L608.03,425.17L606.24,425.72L603.89,425.87L603.18,426.03L602.57,426.78L601.83,426.99L601.4,427.72L600.01,427.66L599.11,428.04L597.17,427.9L596.44,426.23L596.52,424.66L596.07,423.81L595.52,421.69L594.71,420.5L595.27,420.36L594.98,419.04L595.32,418.48L595.2,417.22L596.43,416.29L596.14,415.06L596.89,413.63L598.04,414.39L598.8,414.12L602.03,414.05L602.55,414.35L605.26,414.64L606.33,414.49L607.03,415.46L608.34,414.98L610.35,411.91L612.97,410.59L621.05,409.46L623.25,414.3z',
+ },
+ ZA: {
+ d: 'M563.63,548.71l-0.55,0.46l-1.19,1.63l-0.78,1.66l-1.59,2.33l-3.17,3.38l-1.98,1.98l-2.12,1.51l-2.93,1.3l-1.43,0.17l-0.36,0.93l-1.7,-0.5l-1.39,0.64l-3.04,-0.65l-1.7,0.41l-1.16,-0.18l-2.89,1.33l-2.39,0.54l-1.73,1.28l-1.28,0.08l-1.19,-1.21l-0.95,-0.06l-1.21,-1.51l-0.13,0.47l-0.37,-0.91l0.02,-1.96l-0.91,-2.23l0.9,-0.6l-0.07,-2.53l-1.84,-3.05l-1.41,-2.74l0,-0.01l-2.01,-4.15l1.34,-1.57l1.11,0.87l0.47,1.36l1.26,0.23l1.76,0.6l1.51,-0.23l2.5,-1.63l0,-11.52l0.76,0.46l1.66,2.93l-0.26,1.89l0.63,1.1l2.01,-0.32l1.4,-1.39l1.33,-0.93l0.69,-1.48l1.37,-0.72l1.18,0.38l1.34,0.87l2.28,0.15l1.79,-0.72l0.28,-0.96l0.49,-1.47l1.53,-0.25l0.84,-1.15l0.93,-2.03l2.52,-2.26l3.97,-2.22l1.14,0.03l1.36,0.51l0.94,-0.36l1.49,0.3l1.34,4.26l0.73,2.17l-0.5,3.43l0.24,1.11l-1.42,-0.57l-0.81,0.22l-0.26,0.9l-0.77,1.17l0.03,1.08l1.67,1.7l1.64,-0.34l0.57,-1.39l2.13,0.03l-0.7,2.28l-0.33,2.62l-0.73,1.43L563.63,548.71zM556.5,547.75l-1.22,-0.98l-1.31,0.65l-1.52,1.25l-1.5,2.03l2.1,2.48l1,-0.32l0.52,-1.03l1.56,-0.5l0.48,-1.05l0.86,-1.56L556.5,547.75z',
+ },
+ ZM: {
+ d: 'M567.11,489.21L568.43,490.47L569.14,492.87L568.66,493.64L568.1,495.94L568.64,498.3L567.76,499.29L566.91,501.95L568.38,502.69L559.87,505.07L560.14,507.12L558.01,507.52L556.42,508.67L556.08,509.68L555.07,509.9L552.63,512.3L551.08,514.19L550.13,514.26L549.22,513.92L546.09,513.6L545.59,513.38L545.56,513.14L544.46,512.48L542.64,512.31L540.34,512.98L538.51,511.16L536.62,508.78L536.75,499.62L542.59,499.66L542.35,498.67L542.77,497.6L542.28,496.27L542.6,494.89L542.3,494.01L543.27,494.08L543.43,494.96L544.74,494.89L546.52,495.15L547.46,496.44L549.7,496.84L551.42,495.94L552.05,497.43L554.2,497.83L555.23,499.05L556.38,500.62L558.53,500.65L558.29,497.57L557.52,498.08L555.56,496.98L554.8,496.47L555.15,493.62L555.65,490.27L555.02,489.02L555.82,487.22L556.57,486.89L560.34,486.41L561.44,486.7L562.61,487.41L563.73,487.89L565.51,488.36z',
+ },
+ ZW: {
+ d: 'M562.71,527L561.22,526.7L560.27,527.06L558.92,526.55L557.78,526.52L555.99,525.16L553.82,524.7L553,522.8L552.99,521.75L551.79,521.43L548.62,518.18L547.73,516.47L547.17,515.95L546.09,513.6L549.22,513.92L550.13,514.26L551.08,514.19L552.63,512.3L555.07,509.9L556.08,509.68L556.42,508.67L558.01,507.52L560.14,507.12L560.32,508.2L562.66,508.14L563.96,508.75L564.56,509.47L565.9,509.68L567.35,510.62L567.36,514.31L566.81,516.35L566.69,518.55L567.14,519.43L566.83,521.17L566.4,521.44L565.66,523.59z',
+ },
+}
+
+export default countries
diff --git a/app/utils/generic.ts b/app/utils/generic.ts
new file mode 100644
index 000000000..7250b6cfd
--- /dev/null
+++ b/app/utils/generic.ts
@@ -0,0 +1,87 @@
+import _find from 'lodash/find'
+import _replace from 'lodash/replace'
+import _round from 'lodash/round'
+import _map from 'lodash/map'
+import _reduce from 'lodash/reduce'
+
+const rx = /\.0+$|(\.[0-9]*[1-9])0+$/
+
+const formatterLookup = [
+ { value: 1, symbol: '' },
+ { value: 1e3, symbol: 'k' },
+ { value: 1e6, symbol: 'M' },
+ { value: 1e9, symbol: 'B' },
+]
+
+export const nFormatter = (num: any, digits = 1) => {
+ const item = _find(formatterLookup.slice().reverse(), ({ value }) => Math.abs(num) >= value)
+
+ return item ? _replace((num / item.value).toFixed(digits), rx, '$1') + item.symbol : '0'
+}
+
+// returns something like [123, 'k'], [5.5, 'M'], [425, null]
+export const nFormatterSeparated = (num: any, digits = 1) => {
+ const item = _find(formatterLookup.slice().reverse(), ({ value }) => num >= value)
+
+ if (item) {
+ return [Number(_replace((num / item.value).toFixed(digits), rx, '$1')), item.symbol || null]
+ }
+
+ return [0, null]
+}
+
+export const secondsTillNextMonth = () => {
+ const now: any = new Date()
+ const date: any = new Date()
+
+ date.setMonth(date.getMonth() + 1)
+ date.setDate(1)
+ date.setHours(0, 0, 0, 0)
+
+ return 0 | (date - now) / 1000
+}
+
+export const convertMsToSeconds = (ms: any) => {
+ return ms / 1000
+}
+
+// Returns an object like { h: 0, m: 0, s: 0 } based on the seconds parameter provided
+export const getTimeFromSeconds = (seconds: any) => {
+ const h = 0 | seconds / 3600
+ const m = 0 | (seconds % 3600) / 60
+ const s = 0 | seconds % 60
+ const ms = 0 | (seconds % 1) * 1000
+
+ return {
+ h, m, s, ms,
+ }
+}
+
+export const getStringFromTime = (time: any, showMS?: boolean) => {
+ const {
+ h, m, s, ms,
+ } = time
+
+ if (h === 0 && m === 0 && s === 0 && (!showMS || ms === 0)) {
+ return '0s'
+ }
+
+ return `${h ? `${h}h ` : ''}${m ? `${m}m ` : ''}${s || (showMS && ms > 0) ? `${showMS ? _round(s + ms / 1000, 2) : s}s` : ''}`
+}
+
+export const sumArrays = (...arrays: any): number[] => {
+ return _map(arrays[0], (_, index) => {
+ return _reduce(arrays, (sum, array) => sum + array[index], 0)
+ })
+}
+
+export const openBrowserWindow = (url: string, width: number, height: number) => {
+ return window.open(url, '', `width=${width},height=${height},top=${(window.innerHeight - height) / 2},left=${(window.innerWidth - width) / 2}`)
+}
+
+export const loadScript = (url: string) => {
+ const script = document.createElement('script')
+ script.src = url
+ script.async = true
+ document.body.appendChild(script)
+}
diff --git a/app/utils/isoCountries.ts b/app/utils/isoCountries.ts
new file mode 100644
index 000000000..40e5041fe
--- /dev/null
+++ b/app/utils/isoCountries.ts
@@ -0,0 +1,31 @@
+import countries from 'i18n-iso-countries'
+// @ts-ignore
+import countriesEn from 'i18n-iso-countries/langs/en.json'
+// @ts-ignore
+import countriesDe from 'i18n-iso-countries/langs/de.json'
+// @ts-ignore
+import countriesEl from 'i18n-iso-countries/langs/el.json'
+// @ts-ignore
+import countriesHi from 'i18n-iso-countries/langs/hi.json'
+// @ts-ignore
+import countriesUk from 'i18n-iso-countries/langs/uk.json'
+// @ts-ignore
+import countriesZh from 'i18n-iso-countries/langs/zh.json'
+// @ts-ignore
+import countriesRu from 'i18n-iso-countries/langs/ru.json'
+// @ts-ignore
+import countriesSv from 'i18n-iso-countries/langs/sv.json'
+// @ts-ignore
+import countriesPl from 'i18n-iso-countries/langs/pl.json'
+
+countries.registerLocale(countriesEn)
+countries.registerLocale(countriesDe)
+countries.registerLocale(countriesEl)
+countries.registerLocale(countriesRu)
+countries.registerLocale(countriesHi)
+countries.registerLocale(countriesUk)
+countries.registerLocale(countriesZh)
+countries.registerLocale(countriesSv)
+countries.registerLocale(countriesPl)
+
+export default countries
diff --git a/app/utils/localstorage.ts b/app/utils/localstorage.ts
new file mode 100644
index 000000000..296c2cd5f
--- /dev/null
+++ b/app/utils/localstorage.ts
@@ -0,0 +1,39 @@
+/*
+ * a small localStorage proxy for to persist localStorage
+ * contents in runtime memory after first access in order
+ * to save performance on JSON-parsing and instead remember
+ * how any localStorage item was modified after first access
+ */
+
+type currentLocalStorageType = { [key: string]: string | null }
+const currentLocalStorage: currentLocalStorageType = {}
+
+type setItemType = (key: string, value: string) => void
+
+export const setItem: setItemType = (key, value) => {
+ currentLocalStorage[key] = value
+ localStorage.setItem(key, value)
+}
+
+type getItemType = (key: string) => any
+
+export const getItem: getItemType = (key) => {
+ if (currentLocalStorage[key]) {
+ return currentLocalStorage[key]
+ }
+
+ const storedValue: any = localStorage.getItem(key)
+
+ try {
+ return JSON.parse(storedValue)
+ } catch {
+ return storedValue
+ }
+}
+
+type removeItemType = (key: string) => void
+
+export const removeItem: removeItemType = (key) => {
+ delete currentLocalStorage[key]
+ localStorage.removeItem(key)
+}
diff --git a/app/utils/random.ts b/app/utils/random.ts
new file mode 100644
index 000000000..2e61455cc
--- /dev/null
+++ b/app/utils/random.ts
@@ -0,0 +1,5 @@
+import { customAlphabet } from 'nanoid'
+
+const legalCharacters = '1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm'
+
+export const nanoid = customAlphabet(legalCharacters, 12)
diff --git a/app/utils/refreshToken.ts b/app/utils/refreshToken.ts
new file mode 100644
index 000000000..28b5014f7
--- /dev/null
+++ b/app/utils/refreshToken.ts
@@ -0,0 +1,31 @@
+import _isEmpty from 'lodash/isEmpty'
+
+import { REFRESH_TOKEN } from 'redux/constants'
+import { getCookie, setCookie, deleteCookie } from './cookie'
+
+// 14 weeks in seconds
+const STORE_REFRESH_TOKEN_FOR = 8467200
+
+export const getRefreshToken = () => {
+ let refreshToken = getCookie(REFRESH_TOKEN)
+
+ if (_isEmpty(refreshToken)) {
+ refreshToken = sessionStorage.getItem(REFRESH_TOKEN)
+ }
+
+ return refreshToken
+}
+
+export const setRefreshToken = (token: string, temporary: boolean = false) => {
+ if (temporary) {
+ sessionStorage.setItem(REFRESH_TOKEN, token)
+ return
+ }
+
+ setCookie(REFRESH_TOKEN, token, STORE_REFRESH_TOKEN_FOR)
+}
+
+export const removeRefreshToken = () => {
+ deleteCookie(REFRESH_TOKEN)
+ sessionStorage.removeItem(REFRESH_TOKEN)
+}
diff --git a/app/utils/validator.ts b/app/utils/validator.ts
new file mode 100644
index 000000000..732dd6395
--- /dev/null
+++ b/app/utils/validator.ts
@@ -0,0 +1,6 @@
+export const MIN_PASSWORD_CHARS = 8
+export const MAX_PASSWORD_CHARS = 50
+
+export const isValidEmail = (text: string) => text.match(/^\w+([.+-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,7})+$/)
+
+export const isValidPassword = (text: string) => text.length >= MIN_PASSWORD_CHARS