@native-systems/utility 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -687,6 +687,14 @@ var PgException = /*#__PURE__*/ (function (Error1) {
687
687
  return PgException;
688
688
  })(_wrap_native_super(Error));
689
689
 
690
+ function _array_like_to_array$1(arr, len) {
691
+ if (len == null || len > arr.length) len = arr.length;
692
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
693
+ return arr2;
694
+ }
695
+ function _array_without_holes(arr) {
696
+ if (Array.isArray(arr)) return _array_like_to_array$1(arr);
697
+ }
690
698
  function _class_call_check$8(instance, Constructor) {
691
699
  if (!(instance instanceof Constructor)) {
692
700
  throw new TypeError('Cannot call a class as a function');
@@ -718,7 +726,48 @@ function _define_property$3(obj, key, value) {
718
726
  }
719
727
  return obj;
720
728
  }
729
+ function _instanceof$1(left, right) {
730
+ if (
731
+ right != null &&
732
+ typeof Symbol !== 'undefined' &&
733
+ right[Symbol.hasInstance]
734
+ ) {
735
+ return !!right[Symbol.hasInstance](left);
736
+ } else {
737
+ return left instanceof right;
738
+ }
739
+ }
740
+ function _iterable_to_array(iter) {
741
+ if (
742
+ (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null) ||
743
+ iter['@@iterator'] != null
744
+ )
745
+ return Array.from(iter);
746
+ }
747
+ function _non_iterable_spread() {
748
+ throw new TypeError(
749
+ 'Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
750
+ );
751
+ }
752
+ function _to_consumable_array(arr) {
753
+ return (
754
+ _array_without_holes(arr) ||
755
+ _iterable_to_array(arr) ||
756
+ _unsupported_iterable_to_array$1(arr) ||
757
+ _non_iterable_spread()
758
+ );
759
+ }
760
+ function _unsupported_iterable_to_array$1(o, minLen) {
761
+ if (!o) return;
762
+ if (typeof o === 'string') return _array_like_to_array$1(o, minLen);
763
+ var n = Object.prototype.toString.call(o).slice(8, -1);
764
+ if (n === 'Object' && o.constructor) n = o.constructor.name;
765
+ if (n === 'Map' || n === 'Set') return Array.from(n);
766
+ if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
767
+ return _array_like_to_array$1(o, minLen);
768
+ }
721
769
  var LOG_LEVEL = 'log';
770
+ var LOG_STACKS = process.env.LOG_STACKS === '1';
722
771
  var NO_OP = function (_message) {
723
772
  for (
724
773
  var _len = arguments.length,
@@ -731,6 +780,37 @@ var NO_OP = function (_message) {
731
780
  }
732
781
  return undefined;
733
782
  };
783
+ var serializeArg = function (arg) {
784
+ if (_instanceof$1(arg, Error)) {
785
+ if (LOG_STACKS) return arg;
786
+ var data = {
787
+ name: arg.name,
788
+ message: arg.message,
789
+ };
790
+ if (arg.code !== undefined) data.code = arg.code;
791
+ return data;
792
+ }
793
+ return arg;
794
+ };
795
+ var wrap = function (fn) {
796
+ return function (message) {
797
+ for (
798
+ var _len = arguments.length,
799
+ optionalParams = new Array(_len > 1 ? _len - 1 : 0),
800
+ _key = 1;
801
+ _key < _len;
802
+ _key++
803
+ ) {
804
+ optionalParams[_key - 1] = arguments[_key];
805
+ }
806
+ fn.apply(
807
+ void 0,
808
+ [serializeArg(message)].concat(
809
+ _to_consumable_array(optionalParams.map(serializeArg))
810
+ )
811
+ );
812
+ };
813
+ };
734
814
  var ConsoleLogger = /*#__PURE__*/ (function () {
735
815
  function ConsoleLogger(options) {
736
816
  _class_call_check$8(this, ConsoleLogger);
@@ -740,23 +820,24 @@ var ConsoleLogger = /*#__PURE__*/ (function () {
740
820
  _define_property$3(this, 'dev', void 0);
741
821
  _define_property$3(this, 'debug', void 0);
742
822
  var level = (options || {}).level;
743
- this.error = console.error.bind(console);
823
+ this.error = wrap(console.error.bind(console));
744
824
  this.warn = NO_OP;
745
825
  this.log = NO_OP;
746
826
  switch (level) {
747
827
  case 'warn':
748
- this.warn = console.warn.bind(console);
828
+ this.warn = wrap(console.warn.bind(console));
749
829
  break;
750
830
  case 'log':
751
- this.warn = console.warn.bind(console);
752
- this.log = console.log.bind(console);
831
+ this.warn = wrap(console.warn.bind(console));
832
+ this.log = wrap(console.log.bind(console));
753
833
  break;
754
834
  }
755
835
  this.dev =
756
836
  process.env.NODE_ENV === 'development'
757
- ? console.log.bind(console)
837
+ ? wrap(console.log.bind(console))
758
838
  : NO_OP;
759
- this.debug = process.env.DEBUG === '1' ? console.log.bind(console) : NO_OP;
839
+ this.debug =
840
+ process.env.DEBUG === '1' ? wrap(console.log.bind(console)) : NO_OP;
760
841
  }
761
842
  _create_class$8(ConsoleLogger, [
762
843
  {
@@ -783,22 +864,23 @@ var ConsoleLogger = /*#__PURE__*/ (function () {
783
864
  key: 'enable',
784
865
  value: function enable() {
785
866
  Object.defineProperty(this, 'error', {
786
- value: console.error.bind(console),
867
+ value: wrap(console.error.bind(console)),
787
868
  });
788
869
  Object.defineProperty(this, 'warn', {
789
- value: console.warn.bind(console),
870
+ value: wrap(console.warn.bind(console)),
790
871
  });
791
872
  Object.defineProperty(this, 'log', {
792
- value: console.log.bind(console),
873
+ value: wrap(console.log.bind(console)),
793
874
  });
794
875
  Object.defineProperty(this, 'dev', {
795
876
  value:
796
877
  process.env.NODE_ENV === 'development'
797
- ? console.log.bind(console)
878
+ ? wrap(console.log.bind(console))
798
879
  : NO_OP,
799
880
  });
800
881
  Object.defineProperty(this, 'debug', {
801
- value: process.env.DEBUG === '1' ? console.log.bind(console) : NO_OP,
882
+ value:
883
+ process.env.DEBUG === '1' ? wrap(console.log.bind(console)) : NO_OP,
802
884
  });
803
885
  },
804
886
  },
@@ -1725,4084 +1807,6 @@ var FormSanitizer = /*#__PURE__*/ (function () {
1725
1807
  return FormSanitizer;
1726
1808
  })();
1727
1809
 
1728
- var commonjsGlobal =
1729
- typeof globalThis !== 'undefined'
1730
- ? globalThis
1731
- : typeof window !== 'undefined'
1732
- ? window
1733
- : typeof global !== 'undefined'
1734
- ? global
1735
- : typeof self !== 'undefined'
1736
- ? self
1737
- : {};
1738
-
1739
- var colornames = { exports: {} };
1740
-
1741
- var colors = [
1742
- {
1743
- value: '#B0171F',
1744
- name: 'indian red',
1745
- },
1746
- {
1747
- value: '#DC143C',
1748
- css: true,
1749
- name: 'crimson',
1750
- },
1751
- {
1752
- value: '#FFB6C1',
1753
- css: true,
1754
- name: 'lightpink',
1755
- },
1756
- {
1757
- value: '#FFAEB9',
1758
- name: 'lightpink 1',
1759
- },
1760
- {
1761
- value: '#EEA2AD',
1762
- name: 'lightpink 2',
1763
- },
1764
- {
1765
- value: '#CD8C95',
1766
- name: 'lightpink 3',
1767
- },
1768
- {
1769
- value: '#8B5F65',
1770
- name: 'lightpink 4',
1771
- },
1772
- {
1773
- value: '#FFC0CB',
1774
- css: true,
1775
- name: 'pink',
1776
- },
1777
- {
1778
- value: '#FFB5C5',
1779
- name: 'pink 1',
1780
- },
1781
- {
1782
- value: '#EEA9B8',
1783
- name: 'pink 2',
1784
- },
1785
- {
1786
- value: '#CD919E',
1787
- name: 'pink 3',
1788
- },
1789
- {
1790
- value: '#8B636C',
1791
- name: 'pink 4',
1792
- },
1793
- {
1794
- value: '#DB7093',
1795
- css: true,
1796
- name: 'palevioletred',
1797
- },
1798
- {
1799
- value: '#FF82AB',
1800
- name: 'palevioletred 1',
1801
- },
1802
- {
1803
- value: '#EE799F',
1804
- name: 'palevioletred 2',
1805
- },
1806
- {
1807
- value: '#CD6889',
1808
- name: 'palevioletred 3',
1809
- },
1810
- {
1811
- value: '#8B475D',
1812
- name: 'palevioletred 4',
1813
- },
1814
- {
1815
- value: '#FFF0F5',
1816
- name: 'lavenderblush 1',
1817
- },
1818
- {
1819
- value: '#FFF0F5',
1820
- css: true,
1821
- name: 'lavenderblush',
1822
- },
1823
- {
1824
- value: '#EEE0E5',
1825
- name: 'lavenderblush 2',
1826
- },
1827
- {
1828
- value: '#CDC1C5',
1829
- name: 'lavenderblush 3',
1830
- },
1831
- {
1832
- value: '#8B8386',
1833
- name: 'lavenderblush 4',
1834
- },
1835
- {
1836
- value: '#FF3E96',
1837
- name: 'violetred 1',
1838
- },
1839
- {
1840
- value: '#EE3A8C',
1841
- name: 'violetred 2',
1842
- },
1843
- {
1844
- value: '#CD3278',
1845
- name: 'violetred 3',
1846
- },
1847
- {
1848
- value: '#8B2252',
1849
- name: 'violetred 4',
1850
- },
1851
- {
1852
- value: '#FF69B4',
1853
- css: true,
1854
- name: 'hotpink',
1855
- },
1856
- {
1857
- value: '#FF6EB4',
1858
- name: 'hotpink 1',
1859
- },
1860
- {
1861
- value: '#EE6AA7',
1862
- name: 'hotpink 2',
1863
- },
1864
- {
1865
- value: '#CD6090',
1866
- name: 'hotpink 3',
1867
- },
1868
- {
1869
- value: '#8B3A62',
1870
- name: 'hotpink 4',
1871
- },
1872
- {
1873
- value: '#872657',
1874
- name: 'raspberry',
1875
- },
1876
- {
1877
- value: '#FF1493',
1878
- name: 'deeppink 1',
1879
- },
1880
- {
1881
- value: '#FF1493',
1882
- css: true,
1883
- name: 'deeppink',
1884
- },
1885
- {
1886
- value: '#EE1289',
1887
- name: 'deeppink 2',
1888
- },
1889
- {
1890
- value: '#CD1076',
1891
- name: 'deeppink 3',
1892
- },
1893
- {
1894
- value: '#8B0A50',
1895
- name: 'deeppink 4',
1896
- },
1897
- {
1898
- value: '#FF34B3',
1899
- name: 'maroon 1',
1900
- },
1901
- {
1902
- value: '#EE30A7',
1903
- name: 'maroon 2',
1904
- },
1905
- {
1906
- value: '#CD2990',
1907
- name: 'maroon 3',
1908
- },
1909
- {
1910
- value: '#8B1C62',
1911
- name: 'maroon 4',
1912
- },
1913
- {
1914
- value: '#C71585',
1915
- css: true,
1916
- name: 'mediumvioletred',
1917
- },
1918
- {
1919
- value: '#D02090',
1920
- name: 'violetred',
1921
- },
1922
- {
1923
- value: '#DA70D6',
1924
- css: true,
1925
- name: 'orchid',
1926
- },
1927
- {
1928
- value: '#FF83FA',
1929
- name: 'orchid 1',
1930
- },
1931
- {
1932
- value: '#EE7AE9',
1933
- name: 'orchid 2',
1934
- },
1935
- {
1936
- value: '#CD69C9',
1937
- name: 'orchid 3',
1938
- },
1939
- {
1940
- value: '#8B4789',
1941
- name: 'orchid 4',
1942
- },
1943
- {
1944
- value: '#D8BFD8',
1945
- css: true,
1946
- name: 'thistle',
1947
- },
1948
- {
1949
- value: '#FFE1FF',
1950
- name: 'thistle 1',
1951
- },
1952
- {
1953
- value: '#EED2EE',
1954
- name: 'thistle 2',
1955
- },
1956
- {
1957
- value: '#CDB5CD',
1958
- name: 'thistle 3',
1959
- },
1960
- {
1961
- value: '#8B7B8B',
1962
- name: 'thistle 4',
1963
- },
1964
- {
1965
- value: '#FFBBFF',
1966
- name: 'plum 1',
1967
- },
1968
- {
1969
- value: '#EEAEEE',
1970
- name: 'plum 2',
1971
- },
1972
- {
1973
- value: '#CD96CD',
1974
- name: 'plum 3',
1975
- },
1976
- {
1977
- value: '#8B668B',
1978
- name: 'plum 4',
1979
- },
1980
- {
1981
- value: '#DDA0DD',
1982
- css: true,
1983
- name: 'plum',
1984
- },
1985
- {
1986
- value: '#EE82EE',
1987
- css: true,
1988
- name: 'violet',
1989
- },
1990
- {
1991
- value: '#FF00FF',
1992
- vga: true,
1993
- name: 'magenta',
1994
- },
1995
- {
1996
- value: '#FF00FF',
1997
- vga: true,
1998
- css: true,
1999
- name: 'fuchsia',
2000
- },
2001
- {
2002
- value: '#EE00EE',
2003
- name: 'magenta 2',
2004
- },
2005
- {
2006
- value: '#CD00CD',
2007
- name: 'magenta 3',
2008
- },
2009
- {
2010
- value: '#8B008B',
2011
- name: 'magenta 4',
2012
- },
2013
- {
2014
- value: '#8B008B',
2015
- css: true,
2016
- name: 'darkmagenta',
2017
- },
2018
- {
2019
- value: '#800080',
2020
- vga: true,
2021
- css: true,
2022
- name: 'purple',
2023
- },
2024
- {
2025
- value: '#BA55D3',
2026
- css: true,
2027
- name: 'mediumorchid',
2028
- },
2029
- {
2030
- value: '#E066FF',
2031
- name: 'mediumorchid 1',
2032
- },
2033
- {
2034
- value: '#D15FEE',
2035
- name: 'mediumorchid 2',
2036
- },
2037
- {
2038
- value: '#B452CD',
2039
- name: 'mediumorchid 3',
2040
- },
2041
- {
2042
- value: '#7A378B',
2043
- name: 'mediumorchid 4',
2044
- },
2045
- {
2046
- value: '#9400D3',
2047
- css: true,
2048
- name: 'darkviolet',
2049
- },
2050
- {
2051
- value: '#9932CC',
2052
- css: true,
2053
- name: 'darkorchid',
2054
- },
2055
- {
2056
- value: '#BF3EFF',
2057
- name: 'darkorchid 1',
2058
- },
2059
- {
2060
- value: '#B23AEE',
2061
- name: 'darkorchid 2',
2062
- },
2063
- {
2064
- value: '#9A32CD',
2065
- name: 'darkorchid 3',
2066
- },
2067
- {
2068
- value: '#68228B',
2069
- name: 'darkorchid 4',
2070
- },
2071
- {
2072
- value: '#4B0082',
2073
- css: true,
2074
- name: 'indigo',
2075
- },
2076
- {
2077
- value: '#8A2BE2',
2078
- css: true,
2079
- name: 'blueviolet',
2080
- },
2081
- {
2082
- value: '#9B30FF',
2083
- name: 'purple 1',
2084
- },
2085
- {
2086
- value: '#912CEE',
2087
- name: 'purple 2',
2088
- },
2089
- {
2090
- value: '#7D26CD',
2091
- name: 'purple 3',
2092
- },
2093
- {
2094
- value: '#551A8B',
2095
- name: 'purple 4',
2096
- },
2097
- {
2098
- value: '#9370DB',
2099
- css: true,
2100
- name: 'mediumpurple',
2101
- },
2102
- {
2103
- value: '#AB82FF',
2104
- name: 'mediumpurple 1',
2105
- },
2106
- {
2107
- value: '#9F79EE',
2108
- name: 'mediumpurple 2',
2109
- },
2110
- {
2111
- value: '#8968CD',
2112
- name: 'mediumpurple 3',
2113
- },
2114
- {
2115
- value: '#5D478B',
2116
- name: 'mediumpurple 4',
2117
- },
2118
- {
2119
- value: '#483D8B',
2120
- css: true,
2121
- name: 'darkslateblue',
2122
- },
2123
- {
2124
- value: '#8470FF',
2125
- name: 'lightslateblue',
2126
- },
2127
- {
2128
- value: '#7B68EE',
2129
- css: true,
2130
- name: 'mediumslateblue',
2131
- },
2132
- {
2133
- value: '#6A5ACD',
2134
- css: true,
2135
- name: 'slateblue',
2136
- },
2137
- {
2138
- value: '#836FFF',
2139
- name: 'slateblue 1',
2140
- },
2141
- {
2142
- value: '#7A67EE',
2143
- name: 'slateblue 2',
2144
- },
2145
- {
2146
- value: '#6959CD',
2147
- name: 'slateblue 3',
2148
- },
2149
- {
2150
- value: '#473C8B',
2151
- name: 'slateblue 4',
2152
- },
2153
- {
2154
- value: '#F8F8FF',
2155
- css: true,
2156
- name: 'ghostwhite',
2157
- },
2158
- {
2159
- value: '#E6E6FA',
2160
- css: true,
2161
- name: 'lavender',
2162
- },
2163
- {
2164
- value: '#0000FF',
2165
- vga: true,
2166
- css: true,
2167
- name: 'blue',
2168
- },
2169
- {
2170
- value: '#0000EE',
2171
- name: 'blue 2',
2172
- },
2173
- {
2174
- value: '#0000CD',
2175
- name: 'blue 3',
2176
- },
2177
- {
2178
- value: '#0000CD',
2179
- css: true,
2180
- name: 'mediumblue',
2181
- },
2182
- {
2183
- value: '#00008B',
2184
- name: 'blue 4',
2185
- },
2186
- {
2187
- value: '#00008B',
2188
- css: true,
2189
- name: 'darkblue',
2190
- },
2191
- {
2192
- value: '#000080',
2193
- vga: true,
2194
- css: true,
2195
- name: 'navy',
2196
- },
2197
- {
2198
- value: '#191970',
2199
- css: true,
2200
- name: 'midnightblue',
2201
- },
2202
- {
2203
- value: '#3D59AB',
2204
- name: 'cobalt',
2205
- },
2206
- {
2207
- value: '#4169E1',
2208
- css: true,
2209
- name: 'royalblue',
2210
- },
2211
- {
2212
- value: '#4876FF',
2213
- name: 'royalblue 1',
2214
- },
2215
- {
2216
- value: '#436EEE',
2217
- name: 'royalblue 2',
2218
- },
2219
- {
2220
- value: '#3A5FCD',
2221
- name: 'royalblue 3',
2222
- },
2223
- {
2224
- value: '#27408B',
2225
- name: 'royalblue 4',
2226
- },
2227
- {
2228
- value: '#6495ED',
2229
- css: true,
2230
- name: 'cornflowerblue',
2231
- },
2232
- {
2233
- value: '#B0C4DE',
2234
- css: true,
2235
- name: 'lightsteelblue',
2236
- },
2237
- {
2238
- value: '#CAE1FF',
2239
- name: 'lightsteelblue 1',
2240
- },
2241
- {
2242
- value: '#BCD2EE',
2243
- name: 'lightsteelblue 2',
2244
- },
2245
- {
2246
- value: '#A2B5CD',
2247
- name: 'lightsteelblue 3',
2248
- },
2249
- {
2250
- value: '#6E7B8B',
2251
- name: 'lightsteelblue 4',
2252
- },
2253
- {
2254
- value: '#778899',
2255
- css: true,
2256
- name: 'lightslategray',
2257
- },
2258
- {
2259
- value: '#708090',
2260
- css: true,
2261
- name: 'slategray',
2262
- },
2263
- {
2264
- value: '#C6E2FF',
2265
- name: 'slategray 1',
2266
- },
2267
- {
2268
- value: '#B9D3EE',
2269
- name: 'slategray 2',
2270
- },
2271
- {
2272
- value: '#9FB6CD',
2273
- name: 'slategray 3',
2274
- },
2275
- {
2276
- value: '#6C7B8B',
2277
- name: 'slategray 4',
2278
- },
2279
- {
2280
- value: '#1E90FF',
2281
- name: 'dodgerblue 1',
2282
- },
2283
- {
2284
- value: '#1E90FF',
2285
- css: true,
2286
- name: 'dodgerblue',
2287
- },
2288
- {
2289
- value: '#1C86EE',
2290
- name: 'dodgerblue 2',
2291
- },
2292
- {
2293
- value: '#1874CD',
2294
- name: 'dodgerblue 3',
2295
- },
2296
- {
2297
- value: '#104E8B',
2298
- name: 'dodgerblue 4',
2299
- },
2300
- {
2301
- value: '#F0F8FF',
2302
- css: true,
2303
- name: 'aliceblue',
2304
- },
2305
- {
2306
- value: '#4682B4',
2307
- css: true,
2308
- name: 'steelblue',
2309
- },
2310
- {
2311
- value: '#63B8FF',
2312
- name: 'steelblue 1',
2313
- },
2314
- {
2315
- value: '#5CACEE',
2316
- name: 'steelblue 2',
2317
- },
2318
- {
2319
- value: '#4F94CD',
2320
- name: 'steelblue 3',
2321
- },
2322
- {
2323
- value: '#36648B',
2324
- name: 'steelblue 4',
2325
- },
2326
- {
2327
- value: '#87CEFA',
2328
- css: true,
2329
- name: 'lightskyblue',
2330
- },
2331
- {
2332
- value: '#B0E2FF',
2333
- name: 'lightskyblue 1',
2334
- },
2335
- {
2336
- value: '#A4D3EE',
2337
- name: 'lightskyblue 2',
2338
- },
2339
- {
2340
- value: '#8DB6CD',
2341
- name: 'lightskyblue 3',
2342
- },
2343
- {
2344
- value: '#607B8B',
2345
- name: 'lightskyblue 4',
2346
- },
2347
- {
2348
- value: '#87CEFF',
2349
- name: 'skyblue 1',
2350
- },
2351
- {
2352
- value: '#7EC0EE',
2353
- name: 'skyblue 2',
2354
- },
2355
- {
2356
- value: '#6CA6CD',
2357
- name: 'skyblue 3',
2358
- },
2359
- {
2360
- value: '#4A708B',
2361
- name: 'skyblue 4',
2362
- },
2363
- {
2364
- value: '#87CEEB',
2365
- css: true,
2366
- name: 'skyblue',
2367
- },
2368
- {
2369
- value: '#00BFFF',
2370
- name: 'deepskyblue 1',
2371
- },
2372
- {
2373
- value: '#00BFFF',
2374
- css: true,
2375
- name: 'deepskyblue',
2376
- },
2377
- {
2378
- value: '#00B2EE',
2379
- name: 'deepskyblue 2',
2380
- },
2381
- {
2382
- value: '#009ACD',
2383
- name: 'deepskyblue 3',
2384
- },
2385
- {
2386
- value: '#00688B',
2387
- name: 'deepskyblue 4',
2388
- },
2389
- {
2390
- value: '#33A1C9',
2391
- name: 'peacock',
2392
- },
2393
- {
2394
- value: '#ADD8E6',
2395
- css: true,
2396
- name: 'lightblue',
2397
- },
2398
- {
2399
- value: '#BFEFFF',
2400
- name: 'lightblue 1',
2401
- },
2402
- {
2403
- value: '#B2DFEE',
2404
- name: 'lightblue 2',
2405
- },
2406
- {
2407
- value: '#9AC0CD',
2408
- name: 'lightblue 3',
2409
- },
2410
- {
2411
- value: '#68838B',
2412
- name: 'lightblue 4',
2413
- },
2414
- {
2415
- value: '#B0E0E6',
2416
- css: true,
2417
- name: 'powderblue',
2418
- },
2419
- {
2420
- value: '#98F5FF',
2421
- name: 'cadetblue 1',
2422
- },
2423
- {
2424
- value: '#8EE5EE',
2425
- name: 'cadetblue 2',
2426
- },
2427
- {
2428
- value: '#7AC5CD',
2429
- name: 'cadetblue 3',
2430
- },
2431
- {
2432
- value: '#53868B',
2433
- name: 'cadetblue 4',
2434
- },
2435
- {
2436
- value: '#00F5FF',
2437
- name: 'turquoise 1',
2438
- },
2439
- {
2440
- value: '#00E5EE',
2441
- name: 'turquoise 2',
2442
- },
2443
- {
2444
- value: '#00C5CD',
2445
- name: 'turquoise 3',
2446
- },
2447
- {
2448
- value: '#00868B',
2449
- name: 'turquoise 4',
2450
- },
2451
- {
2452
- value: '#5F9EA0',
2453
- css: true,
2454
- name: 'cadetblue',
2455
- },
2456
- {
2457
- value: '#00CED1',
2458
- css: true,
2459
- name: 'darkturquoise',
2460
- },
2461
- {
2462
- value: '#F0FFFF',
2463
- name: 'azure 1',
2464
- },
2465
- {
2466
- value: '#F0FFFF',
2467
- css: true,
2468
- name: 'azure',
2469
- },
2470
- {
2471
- value: '#E0EEEE',
2472
- name: 'azure 2',
2473
- },
2474
- {
2475
- value: '#C1CDCD',
2476
- name: 'azure 3',
2477
- },
2478
- {
2479
- value: '#838B8B',
2480
- name: 'azure 4',
2481
- },
2482
- {
2483
- value: '#E0FFFF',
2484
- name: 'lightcyan 1',
2485
- },
2486
- {
2487
- value: '#E0FFFF',
2488
- css: true,
2489
- name: 'lightcyan',
2490
- },
2491
- {
2492
- value: '#D1EEEE',
2493
- name: 'lightcyan 2',
2494
- },
2495
- {
2496
- value: '#B4CDCD',
2497
- name: 'lightcyan 3',
2498
- },
2499
- {
2500
- value: '#7A8B8B',
2501
- name: 'lightcyan 4',
2502
- },
2503
- {
2504
- value: '#BBFFFF',
2505
- name: 'paleturquoise 1',
2506
- },
2507
- {
2508
- value: '#AEEEEE',
2509
- name: 'paleturquoise 2',
2510
- },
2511
- {
2512
- value: '#AEEEEE',
2513
- css: true,
2514
- name: 'paleturquoise',
2515
- },
2516
- {
2517
- value: '#96CDCD',
2518
- name: 'paleturquoise 3',
2519
- },
2520
- {
2521
- value: '#668B8B',
2522
- name: 'paleturquoise 4',
2523
- },
2524
- {
2525
- value: '#2F4F4F',
2526
- css: true,
2527
- name: 'darkslategray',
2528
- },
2529
- {
2530
- value: '#97FFFF',
2531
- name: 'darkslategray 1',
2532
- },
2533
- {
2534
- value: '#8DEEEE',
2535
- name: 'darkslategray 2',
2536
- },
2537
- {
2538
- value: '#79CDCD',
2539
- name: 'darkslategray 3',
2540
- },
2541
- {
2542
- value: '#528B8B',
2543
- name: 'darkslategray 4',
2544
- },
2545
- {
2546
- value: '#00FFFF',
2547
- name: 'cyan',
2548
- },
2549
- {
2550
- value: '#00FFFF',
2551
- css: true,
2552
- name: 'aqua',
2553
- },
2554
- {
2555
- value: '#00EEEE',
2556
- name: 'cyan 2',
2557
- },
2558
- {
2559
- value: '#00CDCD',
2560
- name: 'cyan 3',
2561
- },
2562
- {
2563
- value: '#008B8B',
2564
- name: 'cyan 4',
2565
- },
2566
- {
2567
- value: '#008B8B',
2568
- css: true,
2569
- name: 'darkcyan',
2570
- },
2571
- {
2572
- value: '#008080',
2573
- vga: true,
2574
- css: true,
2575
- name: 'teal',
2576
- },
2577
- {
2578
- value: '#48D1CC',
2579
- css: true,
2580
- name: 'mediumturquoise',
2581
- },
2582
- {
2583
- value: '#20B2AA',
2584
- css: true,
2585
- name: 'lightseagreen',
2586
- },
2587
- {
2588
- value: '#03A89E',
2589
- name: 'manganeseblue',
2590
- },
2591
- {
2592
- value: '#40E0D0',
2593
- css: true,
2594
- name: 'turquoise',
2595
- },
2596
- {
2597
- value: '#808A87',
2598
- name: 'coldgrey',
2599
- },
2600
- {
2601
- value: '#00C78C',
2602
- name: 'turquoiseblue',
2603
- },
2604
- {
2605
- value: '#7FFFD4',
2606
- name: 'aquamarine 1',
2607
- },
2608
- {
2609
- value: '#7FFFD4',
2610
- css: true,
2611
- name: 'aquamarine',
2612
- },
2613
- {
2614
- value: '#76EEC6',
2615
- name: 'aquamarine 2',
2616
- },
2617
- {
2618
- value: '#66CDAA',
2619
- name: 'aquamarine 3',
2620
- },
2621
- {
2622
- value: '#66CDAA',
2623
- css: true,
2624
- name: 'mediumaquamarine',
2625
- },
2626
- {
2627
- value: '#458B74',
2628
- name: 'aquamarine 4',
2629
- },
2630
- {
2631
- value: '#00FA9A',
2632
- css: true,
2633
- name: 'mediumspringgreen',
2634
- },
2635
- {
2636
- value: '#F5FFFA',
2637
- css: true,
2638
- name: 'mintcream',
2639
- },
2640
- {
2641
- value: '#00FF7F',
2642
- css: true,
2643
- name: 'springgreen',
2644
- },
2645
- {
2646
- value: '#00EE76',
2647
- name: 'springgreen 1',
2648
- },
2649
- {
2650
- value: '#00CD66',
2651
- name: 'springgreen 2',
2652
- },
2653
- {
2654
- value: '#008B45',
2655
- name: 'springgreen 3',
2656
- },
2657
- {
2658
- value: '#3CB371',
2659
- css: true,
2660
- name: 'mediumseagreen',
2661
- },
2662
- {
2663
- value: '#54FF9F',
2664
- name: 'seagreen 1',
2665
- },
2666
- {
2667
- value: '#4EEE94',
2668
- name: 'seagreen 2',
2669
- },
2670
- {
2671
- value: '#43CD80',
2672
- name: 'seagreen 3',
2673
- },
2674
- {
2675
- value: '#2E8B57',
2676
- name: 'seagreen 4',
2677
- },
2678
- {
2679
- value: '#2E8B57',
2680
- css: true,
2681
- name: 'seagreen',
2682
- },
2683
- {
2684
- value: '#00C957',
2685
- name: 'emeraldgreen',
2686
- },
2687
- {
2688
- value: '#BDFCC9',
2689
- name: 'mint',
2690
- },
2691
- {
2692
- value: '#3D9140',
2693
- name: 'cobaltgreen',
2694
- },
2695
- {
2696
- value: '#F0FFF0',
2697
- name: 'honeydew 1',
2698
- },
2699
- {
2700
- value: '#F0FFF0',
2701
- css: true,
2702
- name: 'honeydew',
2703
- },
2704
- {
2705
- value: '#E0EEE0',
2706
- name: 'honeydew 2',
2707
- },
2708
- {
2709
- value: '#C1CDC1',
2710
- name: 'honeydew 3',
2711
- },
2712
- {
2713
- value: '#838B83',
2714
- name: 'honeydew 4',
2715
- },
2716
- {
2717
- value: '#8FBC8F',
2718
- css: true,
2719
- name: 'darkseagreen',
2720
- },
2721
- {
2722
- value: '#C1FFC1',
2723
- name: 'darkseagreen 1',
2724
- },
2725
- {
2726
- value: '#B4EEB4',
2727
- name: 'darkseagreen 2',
2728
- },
2729
- {
2730
- value: '#9BCD9B',
2731
- name: 'darkseagreen 3',
2732
- },
2733
- {
2734
- value: '#698B69',
2735
- name: 'darkseagreen 4',
2736
- },
2737
- {
2738
- value: '#98FB98',
2739
- css: true,
2740
- name: 'palegreen',
2741
- },
2742
- {
2743
- value: '#9AFF9A',
2744
- name: 'palegreen 1',
2745
- },
2746
- {
2747
- value: '#90EE90',
2748
- name: 'palegreen 2',
2749
- },
2750
- {
2751
- value: '#90EE90',
2752
- css: true,
2753
- name: 'lightgreen',
2754
- },
2755
- {
2756
- value: '#7CCD7C',
2757
- name: 'palegreen 3',
2758
- },
2759
- {
2760
- value: '#548B54',
2761
- name: 'palegreen 4',
2762
- },
2763
- {
2764
- value: '#32CD32',
2765
- css: true,
2766
- name: 'limegreen',
2767
- },
2768
- {
2769
- value: '#228B22',
2770
- css: true,
2771
- name: 'forestgreen',
2772
- },
2773
- {
2774
- value: '#00FF00',
2775
- vga: true,
2776
- name: 'green 1',
2777
- },
2778
- {
2779
- value: '#00FF00',
2780
- vga: true,
2781
- css: true,
2782
- name: 'lime',
2783
- },
2784
- {
2785
- value: '#00EE00',
2786
- name: 'green 2',
2787
- },
2788
- {
2789
- value: '#00CD00',
2790
- name: 'green 3',
2791
- },
2792
- {
2793
- value: '#008B00',
2794
- name: 'green 4',
2795
- },
2796
- {
2797
- value: '#008000',
2798
- vga: true,
2799
- css: true,
2800
- name: 'green',
2801
- },
2802
- {
2803
- value: '#006400',
2804
- css: true,
2805
- name: 'darkgreen',
2806
- },
2807
- {
2808
- value: '#308014',
2809
- name: 'sapgreen',
2810
- },
2811
- {
2812
- value: '#7CFC00',
2813
- css: true,
2814
- name: 'lawngreen',
2815
- },
2816
- {
2817
- value: '#7FFF00',
2818
- name: 'chartreuse 1',
2819
- },
2820
- {
2821
- value: '#7FFF00',
2822
- css: true,
2823
- name: 'chartreuse',
2824
- },
2825
- {
2826
- value: '#76EE00',
2827
- name: 'chartreuse 2',
2828
- },
2829
- {
2830
- value: '#66CD00',
2831
- name: 'chartreuse 3',
2832
- },
2833
- {
2834
- value: '#458B00',
2835
- name: 'chartreuse 4',
2836
- },
2837
- {
2838
- value: '#ADFF2F',
2839
- css: true,
2840
- name: 'greenyellow',
2841
- },
2842
- {
2843
- value: '#CAFF70',
2844
- name: 'darkolivegreen 1',
2845
- },
2846
- {
2847
- value: '#BCEE68',
2848
- name: 'darkolivegreen 2',
2849
- },
2850
- {
2851
- value: '#A2CD5A',
2852
- name: 'darkolivegreen 3',
2853
- },
2854
- {
2855
- value: '#6E8B3D',
2856
- name: 'darkolivegreen 4',
2857
- },
2858
- {
2859
- value: '#556B2F',
2860
- css: true,
2861
- name: 'darkolivegreen',
2862
- },
2863
- {
2864
- value: '#6B8E23',
2865
- css: true,
2866
- name: 'olivedrab',
2867
- },
2868
- {
2869
- value: '#C0FF3E',
2870
- name: 'olivedrab 1',
2871
- },
2872
- {
2873
- value: '#B3EE3A',
2874
- name: 'olivedrab 2',
2875
- },
2876
- {
2877
- value: '#9ACD32',
2878
- name: 'olivedrab 3',
2879
- },
2880
- {
2881
- value: '#9ACD32',
2882
- css: true,
2883
- name: 'yellowgreen',
2884
- },
2885
- {
2886
- value: '#698B22',
2887
- name: 'olivedrab 4',
2888
- },
2889
- {
2890
- value: '#FFFFF0',
2891
- name: 'ivory 1',
2892
- },
2893
- {
2894
- value: '#FFFFF0',
2895
- css: true,
2896
- name: 'ivory',
2897
- },
2898
- {
2899
- value: '#EEEEE0',
2900
- name: 'ivory 2',
2901
- },
2902
- {
2903
- value: '#CDCDC1',
2904
- name: 'ivory 3',
2905
- },
2906
- {
2907
- value: '#8B8B83',
2908
- name: 'ivory 4',
2909
- },
2910
- {
2911
- value: '#F5F5DC',
2912
- css: true,
2913
- name: 'beige',
2914
- },
2915
- {
2916
- value: '#FFFFE0',
2917
- name: 'lightyellow 1',
2918
- },
2919
- {
2920
- value: '#FFFFE0',
2921
- css: true,
2922
- name: 'lightyellow',
2923
- },
2924
- {
2925
- value: '#EEEED1',
2926
- name: 'lightyellow 2',
2927
- },
2928
- {
2929
- value: '#CDCDB4',
2930
- name: 'lightyellow 3',
2931
- },
2932
- {
2933
- value: '#8B8B7A',
2934
- name: 'lightyellow 4',
2935
- },
2936
- {
2937
- value: '#FAFAD2',
2938
- css: true,
2939
- name: 'lightgoldenrodyellow',
2940
- },
2941
- {
2942
- value: '#FFFF00',
2943
- vga: true,
2944
- name: 'yellow 1',
2945
- },
2946
- {
2947
- value: '#FFFF00',
2948
- vga: true,
2949
- css: true,
2950
- name: 'yellow',
2951
- },
2952
- {
2953
- value: '#EEEE00',
2954
- name: 'yellow 2',
2955
- },
2956
- {
2957
- value: '#CDCD00',
2958
- name: 'yellow 3',
2959
- },
2960
- {
2961
- value: '#8B8B00',
2962
- name: 'yellow 4',
2963
- },
2964
- {
2965
- value: '#808069',
2966
- name: 'warmgrey',
2967
- },
2968
- {
2969
- value: '#808000',
2970
- vga: true,
2971
- css: true,
2972
- name: 'olive',
2973
- },
2974
- {
2975
- value: '#BDB76B',
2976
- css: true,
2977
- name: 'darkkhaki',
2978
- },
2979
- {
2980
- value: '#FFF68F',
2981
- name: 'khaki 1',
2982
- },
2983
- {
2984
- value: '#EEE685',
2985
- name: 'khaki 2',
2986
- },
2987
- {
2988
- value: '#CDC673',
2989
- name: 'khaki 3',
2990
- },
2991
- {
2992
- value: '#8B864E',
2993
- name: 'khaki 4',
2994
- },
2995
- {
2996
- value: '#F0E68C',
2997
- css: true,
2998
- name: 'khaki',
2999
- },
3000
- {
3001
- value: '#EEE8AA',
3002
- css: true,
3003
- name: 'palegoldenrod',
3004
- },
3005
- {
3006
- value: '#FFFACD',
3007
- name: 'lemonchiffon 1',
3008
- },
3009
- {
3010
- value: '#FFFACD',
3011
- css: true,
3012
- name: 'lemonchiffon',
3013
- },
3014
- {
3015
- value: '#EEE9BF',
3016
- name: 'lemonchiffon 2',
3017
- },
3018
- {
3019
- value: '#CDC9A5',
3020
- name: 'lemonchiffon 3',
3021
- },
3022
- {
3023
- value: '#8B8970',
3024
- name: 'lemonchiffon 4',
3025
- },
3026
- {
3027
- value: '#FFEC8B',
3028
- name: 'lightgoldenrod 1',
3029
- },
3030
- {
3031
- value: '#EEDC82',
3032
- name: 'lightgoldenrod 2',
3033
- },
3034
- {
3035
- value: '#CDBE70',
3036
- name: 'lightgoldenrod 3',
3037
- },
3038
- {
3039
- value: '#8B814C',
3040
- name: 'lightgoldenrod 4',
3041
- },
3042
- {
3043
- value: '#E3CF57',
3044
- name: 'banana',
3045
- },
3046
- {
3047
- value: '#FFD700',
3048
- name: 'gold 1',
3049
- },
3050
- {
3051
- value: '#FFD700',
3052
- css: true,
3053
- name: 'gold',
3054
- },
3055
- {
3056
- value: '#EEC900',
3057
- name: 'gold 2',
3058
- },
3059
- {
3060
- value: '#CDAD00',
3061
- name: 'gold 3',
3062
- },
3063
- {
3064
- value: '#8B7500',
3065
- name: 'gold 4',
3066
- },
3067
- {
3068
- value: '#FFF8DC',
3069
- name: 'cornsilk 1',
3070
- },
3071
- {
3072
- value: '#FFF8DC',
3073
- css: true,
3074
- name: 'cornsilk',
3075
- },
3076
- {
3077
- value: '#EEE8CD',
3078
- name: 'cornsilk 2',
3079
- },
3080
- {
3081
- value: '#CDC8B1',
3082
- name: 'cornsilk 3',
3083
- },
3084
- {
3085
- value: '#8B8878',
3086
- name: 'cornsilk 4',
3087
- },
3088
- {
3089
- value: '#DAA520',
3090
- css: true,
3091
- name: 'goldenrod',
3092
- },
3093
- {
3094
- value: '#FFC125',
3095
- name: 'goldenrod 1',
3096
- },
3097
- {
3098
- value: '#EEB422',
3099
- name: 'goldenrod 2',
3100
- },
3101
- {
3102
- value: '#CD9B1D',
3103
- name: 'goldenrod 3',
3104
- },
3105
- {
3106
- value: '#8B6914',
3107
- name: 'goldenrod 4',
3108
- },
3109
- {
3110
- value: '#B8860B',
3111
- css: true,
3112
- name: 'darkgoldenrod',
3113
- },
3114
- {
3115
- value: '#FFB90F',
3116
- name: 'darkgoldenrod 1',
3117
- },
3118
- {
3119
- value: '#EEAD0E',
3120
- name: 'darkgoldenrod 2',
3121
- },
3122
- {
3123
- value: '#CD950C',
3124
- name: 'darkgoldenrod 3',
3125
- },
3126
- {
3127
- value: '#8B6508',
3128
- name: 'darkgoldenrod 4',
3129
- },
3130
- {
3131
- value: '#FFA500',
3132
- name: 'orange 1',
3133
- },
3134
- {
3135
- value: '#FF8000',
3136
- css: true,
3137
- name: 'orange',
3138
- },
3139
- {
3140
- value: '#EE9A00',
3141
- name: 'orange 2',
3142
- },
3143
- {
3144
- value: '#CD8500',
3145
- name: 'orange 3',
3146
- },
3147
- {
3148
- value: '#8B5A00',
3149
- name: 'orange 4',
3150
- },
3151
- {
3152
- value: '#FFFAF0',
3153
- css: true,
3154
- name: 'floralwhite',
3155
- },
3156
- {
3157
- value: '#FDF5E6',
3158
- css: true,
3159
- name: 'oldlace',
3160
- },
3161
- {
3162
- value: '#F5DEB3',
3163
- css: true,
3164
- name: 'wheat',
3165
- },
3166
- {
3167
- value: '#FFE7BA',
3168
- name: 'wheat 1',
3169
- },
3170
- {
3171
- value: '#EED8AE',
3172
- name: 'wheat 2',
3173
- },
3174
- {
3175
- value: '#CDBA96',
3176
- name: 'wheat 3',
3177
- },
3178
- {
3179
- value: '#8B7E66',
3180
- name: 'wheat 4',
3181
- },
3182
- {
3183
- value: '#FFE4B5',
3184
- css: true,
3185
- name: 'moccasin',
3186
- },
3187
- {
3188
- value: '#FFEFD5',
3189
- css: true,
3190
- name: 'papayawhip',
3191
- },
3192
- {
3193
- value: '#FFEBCD',
3194
- css: true,
3195
- name: 'blanchedalmond',
3196
- },
3197
- {
3198
- value: '#FFDEAD',
3199
- name: 'navajowhite 1',
3200
- },
3201
- {
3202
- value: '#FFDEAD',
3203
- css: true,
3204
- name: 'navajowhite',
3205
- },
3206
- {
3207
- value: '#EECFA1',
3208
- name: 'navajowhite 2',
3209
- },
3210
- {
3211
- value: '#CDB38B',
3212
- name: 'navajowhite 3',
3213
- },
3214
- {
3215
- value: '#8B795E',
3216
- name: 'navajowhite 4',
3217
- },
3218
- {
3219
- value: '#FCE6C9',
3220
- name: 'eggshell',
3221
- },
3222
- {
3223
- value: '#D2B48C',
3224
- css: true,
3225
- name: 'tan',
3226
- },
3227
- {
3228
- value: '#9C661F',
3229
- name: 'brick',
3230
- },
3231
- {
3232
- value: '#FF9912',
3233
- name: 'cadmiumyellow',
3234
- },
3235
- {
3236
- value: '#FAEBD7',
3237
- css: true,
3238
- name: 'antiquewhite',
3239
- },
3240
- {
3241
- value: '#FFEFDB',
3242
- name: 'antiquewhite 1',
3243
- },
3244
- {
3245
- value: '#EEDFCC',
3246
- name: 'antiquewhite 2',
3247
- },
3248
- {
3249
- value: '#CDC0B0',
3250
- name: 'antiquewhite 3',
3251
- },
3252
- {
3253
- value: '#8B8378',
3254
- name: 'antiquewhite 4',
3255
- },
3256
- {
3257
- value: '#DEB887',
3258
- css: true,
3259
- name: 'burlywood',
3260
- },
3261
- {
3262
- value: '#FFD39B',
3263
- name: 'burlywood 1',
3264
- },
3265
- {
3266
- value: '#EEC591',
3267
- name: 'burlywood 2',
3268
- },
3269
- {
3270
- value: '#CDAA7D',
3271
- name: 'burlywood 3',
3272
- },
3273
- {
3274
- value: '#8B7355',
3275
- name: 'burlywood 4',
3276
- },
3277
- {
3278
- value: '#FFE4C4',
3279
- name: 'bisque 1',
3280
- },
3281
- {
3282
- value: '#FFE4C4',
3283
- css: true,
3284
- name: 'bisque',
3285
- },
3286
- {
3287
- value: '#EED5B7',
3288
- name: 'bisque 2',
3289
- },
3290
- {
3291
- value: '#CDB79E',
3292
- name: 'bisque 3',
3293
- },
3294
- {
3295
- value: '#8B7D6B',
3296
- name: 'bisque 4',
3297
- },
3298
- {
3299
- value: '#E3A869',
3300
- name: 'melon',
3301
- },
3302
- {
3303
- value: '#ED9121',
3304
- name: 'carrot',
3305
- },
3306
- {
3307
- value: '#FF8C00',
3308
- css: true,
3309
- name: 'darkorange',
3310
- },
3311
- {
3312
- value: '#FF7F00',
3313
- name: 'darkorange 1',
3314
- },
3315
- {
3316
- value: '#EE7600',
3317
- name: 'darkorange 2',
3318
- },
3319
- {
3320
- value: '#CD6600',
3321
- name: 'darkorange 3',
3322
- },
3323
- {
3324
- value: '#8B4500',
3325
- name: 'darkorange 4',
3326
- },
3327
- {
3328
- value: '#FFA54F',
3329
- name: 'tan 1',
3330
- },
3331
- {
3332
- value: '#EE9A49',
3333
- name: 'tan 2',
3334
- },
3335
- {
3336
- value: '#CD853F',
3337
- name: 'tan 3',
3338
- },
3339
- {
3340
- value: '#CD853F',
3341
- css: true,
3342
- name: 'peru',
3343
- },
3344
- {
3345
- value: '#8B5A2B',
3346
- name: 'tan 4',
3347
- },
3348
- {
3349
- value: '#FAF0E6',
3350
- css: true,
3351
- name: 'linen',
3352
- },
3353
- {
3354
- value: '#FFDAB9',
3355
- name: 'peachpuff 1',
3356
- },
3357
- {
3358
- value: '#FFDAB9',
3359
- css: true,
3360
- name: 'peachpuff',
3361
- },
3362
- {
3363
- value: '#EECBAD',
3364
- name: 'peachpuff 2',
3365
- },
3366
- {
3367
- value: '#CDAF95',
3368
- name: 'peachpuff 3',
3369
- },
3370
- {
3371
- value: '#8B7765',
3372
- name: 'peachpuff 4',
3373
- },
3374
- {
3375
- value: '#FFF5EE',
3376
- name: 'seashell 1',
3377
- },
3378
- {
3379
- value: '#FFF5EE',
3380
- css: true,
3381
- name: 'seashell',
3382
- },
3383
- {
3384
- value: '#EEE5DE',
3385
- name: 'seashell 2',
3386
- },
3387
- {
3388
- value: '#CDC5BF',
3389
- name: 'seashell 3',
3390
- },
3391
- {
3392
- value: '#8B8682',
3393
- name: 'seashell 4',
3394
- },
3395
- {
3396
- value: '#F4A460',
3397
- css: true,
3398
- name: 'sandybrown',
3399
- },
3400
- {
3401
- value: '#C76114',
3402
- name: 'rawsienna',
3403
- },
3404
- {
3405
- value: '#D2691E',
3406
- css: true,
3407
- name: 'chocolate',
3408
- },
3409
- {
3410
- value: '#FF7F24',
3411
- name: 'chocolate 1',
3412
- },
3413
- {
3414
- value: '#EE7621',
3415
- name: 'chocolate 2',
3416
- },
3417
- {
3418
- value: '#CD661D',
3419
- name: 'chocolate 3',
3420
- },
3421
- {
3422
- value: '#8B4513',
3423
- name: 'chocolate 4',
3424
- },
3425
- {
3426
- value: '#8B4513',
3427
- css: true,
3428
- name: 'saddlebrown',
3429
- },
3430
- {
3431
- value: '#292421',
3432
- name: 'ivoryblack',
3433
- },
3434
- {
3435
- value: '#FF7D40',
3436
- name: 'flesh',
3437
- },
3438
- {
3439
- value: '#FF6103',
3440
- name: 'cadmiumorange',
3441
- },
3442
- {
3443
- value: '#8A360F',
3444
- name: 'burntsienna',
3445
- },
3446
- {
3447
- value: '#A0522D',
3448
- css: true,
3449
- name: 'sienna',
3450
- },
3451
- {
3452
- value: '#FF8247',
3453
- name: 'sienna 1',
3454
- },
3455
- {
3456
- value: '#EE7942',
3457
- name: 'sienna 2',
3458
- },
3459
- {
3460
- value: '#CD6839',
3461
- name: 'sienna 3',
3462
- },
3463
- {
3464
- value: '#8B4726',
3465
- name: 'sienna 4',
3466
- },
3467
- {
3468
- value: '#FFA07A',
3469
- name: 'lightsalmon 1',
3470
- },
3471
- {
3472
- value: '#FFA07A',
3473
- css: true,
3474
- name: 'lightsalmon',
3475
- },
3476
- {
3477
- value: '#EE9572',
3478
- name: 'lightsalmon 2',
3479
- },
3480
- {
3481
- value: '#CD8162',
3482
- name: 'lightsalmon 3',
3483
- },
3484
- {
3485
- value: '#8B5742',
3486
- name: 'lightsalmon 4',
3487
- },
3488
- {
3489
- value: '#FF7F50',
3490
- css: true,
3491
- name: 'coral',
3492
- },
3493
- {
3494
- value: '#FF4500',
3495
- name: 'orangered 1',
3496
- },
3497
- {
3498
- value: '#FF4500',
3499
- css: true,
3500
- name: 'orangered',
3501
- },
3502
- {
3503
- value: '#EE4000',
3504
- name: 'orangered 2',
3505
- },
3506
- {
3507
- value: '#CD3700',
3508
- name: 'orangered 3',
3509
- },
3510
- {
3511
- value: '#8B2500',
3512
- name: 'orangered 4',
3513
- },
3514
- {
3515
- value: '#5E2612',
3516
- name: 'sepia',
3517
- },
3518
- {
3519
- value: '#E9967A',
3520
- css: true,
3521
- name: 'darksalmon',
3522
- },
3523
- {
3524
- value: '#FF8C69',
3525
- name: 'salmon 1',
3526
- },
3527
- {
3528
- value: '#EE8262',
3529
- name: 'salmon 2',
3530
- },
3531
- {
3532
- value: '#CD7054',
3533
- name: 'salmon 3',
3534
- },
3535
- {
3536
- value: '#8B4C39',
3537
- name: 'salmon 4',
3538
- },
3539
- {
3540
- value: '#FF7256',
3541
- name: 'coral 1',
3542
- },
3543
- {
3544
- value: '#EE6A50',
3545
- name: 'coral 2',
3546
- },
3547
- {
3548
- value: '#CD5B45',
3549
- name: 'coral 3',
3550
- },
3551
- {
3552
- value: '#8B3E2F',
3553
- name: 'coral 4',
3554
- },
3555
- {
3556
- value: '#8A3324',
3557
- name: 'burntumber',
3558
- },
3559
- {
3560
- value: '#FF6347',
3561
- name: 'tomato 1',
3562
- },
3563
- {
3564
- value: '#FF6347',
3565
- css: true,
3566
- name: 'tomato',
3567
- },
3568
- {
3569
- value: '#EE5C42',
3570
- name: 'tomato 2',
3571
- },
3572
- {
3573
- value: '#CD4F39',
3574
- name: 'tomato 3',
3575
- },
3576
- {
3577
- value: '#8B3626',
3578
- name: 'tomato 4',
3579
- },
3580
- {
3581
- value: '#FA8072',
3582
- css: true,
3583
- name: 'salmon',
3584
- },
3585
- {
3586
- value: '#FFE4E1',
3587
- name: 'mistyrose 1',
3588
- },
3589
- {
3590
- value: '#FFE4E1',
3591
- css: true,
3592
- name: 'mistyrose',
3593
- },
3594
- {
3595
- value: '#EED5D2',
3596
- name: 'mistyrose 2',
3597
- },
3598
- {
3599
- value: '#CDB7B5',
3600
- name: 'mistyrose 3',
3601
- },
3602
- {
3603
- value: '#8B7D7B',
3604
- name: 'mistyrose 4',
3605
- },
3606
- {
3607
- value: '#FFFAFA',
3608
- name: 'snow 1',
3609
- },
3610
- {
3611
- value: '#FFFAFA',
3612
- css: true,
3613
- name: 'snow',
3614
- },
3615
- {
3616
- value: '#EEE9E9',
3617
- name: 'snow 2',
3618
- },
3619
- {
3620
- value: '#CDC9C9',
3621
- name: 'snow 3',
3622
- },
3623
- {
3624
- value: '#8B8989',
3625
- name: 'snow 4',
3626
- },
3627
- {
3628
- value: '#BC8F8F',
3629
- css: true,
3630
- name: 'rosybrown',
3631
- },
3632
- {
3633
- value: '#FFC1C1',
3634
- name: 'rosybrown 1',
3635
- },
3636
- {
3637
- value: '#EEB4B4',
3638
- name: 'rosybrown 2',
3639
- },
3640
- {
3641
- value: '#CD9B9B',
3642
- name: 'rosybrown 3',
3643
- },
3644
- {
3645
- value: '#8B6969',
3646
- name: 'rosybrown 4',
3647
- },
3648
- {
3649
- value: '#F08080',
3650
- css: true,
3651
- name: 'lightcoral',
3652
- },
3653
- {
3654
- value: '#CD5C5C',
3655
- css: true,
3656
- name: 'indianred',
3657
- },
3658
- {
3659
- value: '#FF6A6A',
3660
- name: 'indianred 1',
3661
- },
3662
- {
3663
- value: '#EE6363',
3664
- name: 'indianred 2',
3665
- },
3666
- {
3667
- value: '#8B3A3A',
3668
- name: 'indianred 4',
3669
- },
3670
- {
3671
- value: '#CD5555',
3672
- name: 'indianred 3',
3673
- },
3674
- {
3675
- value: '#A52A2A',
3676
- css: true,
3677
- name: 'brown',
3678
- },
3679
- {
3680
- value: '#FF4040',
3681
- name: 'brown 1',
3682
- },
3683
- {
3684
- value: '#EE3B3B',
3685
- name: 'brown 2',
3686
- },
3687
- {
3688
- value: '#CD3333',
3689
- name: 'brown 3',
3690
- },
3691
- {
3692
- value: '#8B2323',
3693
- name: 'brown 4',
3694
- },
3695
- {
3696
- value: '#B22222',
3697
- css: true,
3698
- name: 'firebrick',
3699
- },
3700
- {
3701
- value: '#FF3030',
3702
- name: 'firebrick 1',
3703
- },
3704
- {
3705
- value: '#EE2C2C',
3706
- name: 'firebrick 2',
3707
- },
3708
- {
3709
- value: '#CD2626',
3710
- name: 'firebrick 3',
3711
- },
3712
- {
3713
- value: '#8B1A1A',
3714
- name: 'firebrick 4',
3715
- },
3716
- {
3717
- value: '#FF0000',
3718
- vga: true,
3719
- name: 'red 1',
3720
- },
3721
- {
3722
- value: '#FF0000',
3723
- vga: true,
3724
- css: true,
3725
- name: 'red',
3726
- },
3727
- {
3728
- value: '#EE0000',
3729
- name: 'red 2',
3730
- },
3731
- {
3732
- value: '#CD0000',
3733
- name: 'red 3',
3734
- },
3735
- {
3736
- value: '#8B0000',
3737
- name: 'red 4',
3738
- },
3739
- {
3740
- value: '#8B0000',
3741
- css: true,
3742
- name: 'darkred',
3743
- },
3744
- {
3745
- value: '#800000',
3746
- vga: true,
3747
- css: true,
3748
- name: 'maroon',
3749
- },
3750
- {
3751
- value: '#8E388E',
3752
- name: 'sgi beet',
3753
- },
3754
- {
3755
- value: '#7171C6',
3756
- name: 'sgi slateblue',
3757
- },
3758
- {
3759
- value: '#7D9EC0',
3760
- name: 'sgi lightblue',
3761
- },
3762
- {
3763
- value: '#388E8E',
3764
- name: 'sgi teal',
3765
- },
3766
- {
3767
- value: '#71C671',
3768
- name: 'sgi chartreuse',
3769
- },
3770
- {
3771
- value: '#8E8E38',
3772
- name: 'sgi olivedrab',
3773
- },
3774
- {
3775
- value: '#C5C1AA',
3776
- name: 'sgi brightgray',
3777
- },
3778
- {
3779
- value: '#C67171',
3780
- name: 'sgi salmon',
3781
- },
3782
- {
3783
- value: '#555555',
3784
- name: 'sgi darkgray',
3785
- },
3786
- {
3787
- value: '#1E1E1E',
3788
- name: 'sgi gray 12',
3789
- },
3790
- {
3791
- value: '#282828',
3792
- name: 'sgi gray 16',
3793
- },
3794
- {
3795
- value: '#515151',
3796
- name: 'sgi gray 32',
3797
- },
3798
- {
3799
- value: '#5B5B5B',
3800
- name: 'sgi gray 36',
3801
- },
3802
- {
3803
- value: '#848484',
3804
- name: 'sgi gray 52',
3805
- },
3806
- {
3807
- value: '#8E8E8E',
3808
- name: 'sgi gray 56',
3809
- },
3810
- {
3811
- value: '#AAAAAA',
3812
- name: 'sgi lightgray',
3813
- },
3814
- {
3815
- value: '#B7B7B7',
3816
- name: 'sgi gray 72',
3817
- },
3818
- {
3819
- value: '#C1C1C1',
3820
- name: 'sgi gray 76',
3821
- },
3822
- {
3823
- value: '#EAEAEA',
3824
- name: 'sgi gray 92',
3825
- },
3826
- {
3827
- value: '#F4F4F4',
3828
- name: 'sgi gray 96',
3829
- },
3830
- {
3831
- value: '#FFFFFF',
3832
- vga: true,
3833
- css: true,
3834
- name: 'white',
3835
- },
3836
- {
3837
- value: '#F5F5F5',
3838
- name: 'white smoke',
3839
- },
3840
- {
3841
- value: '#F5F5F5',
3842
- name: 'gray 96',
3843
- },
3844
- {
3845
- value: '#DCDCDC',
3846
- css: true,
3847
- name: 'gainsboro',
3848
- },
3849
- {
3850
- value: '#D3D3D3',
3851
- css: true,
3852
- name: 'lightgrey',
3853
- },
3854
- {
3855
- value: '#C0C0C0',
3856
- vga: true,
3857
- css: true,
3858
- name: 'silver',
3859
- },
3860
- {
3861
- value: '#A9A9A9',
3862
- css: true,
3863
- name: 'darkgray',
3864
- },
3865
- {
3866
- value: '#808080',
3867
- vga: true,
3868
- css: true,
3869
- name: 'gray',
3870
- },
3871
- {
3872
- value: '#696969',
3873
- css: true,
3874
- name: 'dimgray',
3875
- },
3876
- {
3877
- value: '#696969',
3878
- name: 'gray 42',
3879
- },
3880
- {
3881
- value: '#000000',
3882
- vga: true,
3883
- css: true,
3884
- name: 'black',
3885
- },
3886
- {
3887
- value: '#FCFCFC',
3888
- name: 'gray 99',
3889
- },
3890
- {
3891
- value: '#FAFAFA',
3892
- name: 'gray 98',
3893
- },
3894
- {
3895
- value: '#F7F7F7',
3896
- name: 'gray 97',
3897
- },
3898
- {
3899
- value: '#F2F2F2',
3900
- name: 'gray 95',
3901
- },
3902
- {
3903
- value: '#F0F0F0',
3904
- name: 'gray 94',
3905
- },
3906
- {
3907
- value: '#EDEDED',
3908
- name: 'gray 93',
3909
- },
3910
- {
3911
- value: '#EBEBEB',
3912
- name: 'gray 92',
3913
- },
3914
- {
3915
- value: '#E8E8E8',
3916
- name: 'gray 91',
3917
- },
3918
- {
3919
- value: '#E5E5E5',
3920
- name: 'gray 90',
3921
- },
3922
- {
3923
- value: '#E3E3E3',
3924
- name: 'gray 89',
3925
- },
3926
- {
3927
- value: '#E0E0E0',
3928
- name: 'gray 88',
3929
- },
3930
- {
3931
- value: '#DEDEDE',
3932
- name: 'gray 87',
3933
- },
3934
- {
3935
- value: '#DBDBDB',
3936
- name: 'gray 86',
3937
- },
3938
- {
3939
- value: '#D9D9D9',
3940
- name: 'gray 85',
3941
- },
3942
- {
3943
- value: '#D6D6D6',
3944
- name: 'gray 84',
3945
- },
3946
- {
3947
- value: '#D4D4D4',
3948
- name: 'gray 83',
3949
- },
3950
- {
3951
- value: '#D1D1D1',
3952
- name: 'gray 82',
3953
- },
3954
- {
3955
- value: '#CFCFCF',
3956
- name: 'gray 81',
3957
- },
3958
- {
3959
- value: '#CCCCCC',
3960
- name: 'gray 80',
3961
- },
3962
- {
3963
- value: '#C9C9C9',
3964
- name: 'gray 79',
3965
- },
3966
- {
3967
- value: '#C7C7C7',
3968
- name: 'gray 78',
3969
- },
3970
- {
3971
- value: '#C4C4C4',
3972
- name: 'gray 77',
3973
- },
3974
- {
3975
- value: '#C2C2C2',
3976
- name: 'gray 76',
3977
- },
3978
- {
3979
- value: '#BFBFBF',
3980
- name: 'gray 75',
3981
- },
3982
- {
3983
- value: '#BDBDBD',
3984
- name: 'gray 74',
3985
- },
3986
- {
3987
- value: '#BABABA',
3988
- name: 'gray 73',
3989
- },
3990
- {
3991
- value: '#B8B8B8',
3992
- name: 'gray 72',
3993
- },
3994
- {
3995
- value: '#B5B5B5',
3996
- name: 'gray 71',
3997
- },
3998
- {
3999
- value: '#B3B3B3',
4000
- name: 'gray 70',
4001
- },
4002
- {
4003
- value: '#B0B0B0',
4004
- name: 'gray 69',
4005
- },
4006
- {
4007
- value: '#ADADAD',
4008
- name: 'gray 68',
4009
- },
4010
- {
4011
- value: '#ABABAB',
4012
- name: 'gray 67',
4013
- },
4014
- {
4015
- value: '#A8A8A8',
4016
- name: 'gray 66',
4017
- },
4018
- {
4019
- value: '#A6A6A6',
4020
- name: 'gray 65',
4021
- },
4022
- {
4023
- value: '#A3A3A3',
4024
- name: 'gray 64',
4025
- },
4026
- {
4027
- value: '#A1A1A1',
4028
- name: 'gray 63',
4029
- },
4030
- {
4031
- value: '#9E9E9E',
4032
- name: 'gray 62',
4033
- },
4034
- {
4035
- value: '#9C9C9C',
4036
- name: 'gray 61',
4037
- },
4038
- {
4039
- value: '#999999',
4040
- name: 'gray 60',
4041
- },
4042
- {
4043
- value: '#969696',
4044
- name: 'gray 59',
4045
- },
4046
- {
4047
- value: '#949494',
4048
- name: 'gray 58',
4049
- },
4050
- {
4051
- value: '#919191',
4052
- name: 'gray 57',
4053
- },
4054
- {
4055
- value: '#8F8F8F',
4056
- name: 'gray 56',
4057
- },
4058
- {
4059
- value: '#8C8C8C',
4060
- name: 'gray 55',
4061
- },
4062
- {
4063
- value: '#8A8A8A',
4064
- name: 'gray 54',
4065
- },
4066
- {
4067
- value: '#878787',
4068
- name: 'gray 53',
4069
- },
4070
- {
4071
- value: '#858585',
4072
- name: 'gray 52',
4073
- },
4074
- {
4075
- value: '#828282',
4076
- name: 'gray 51',
4077
- },
4078
- {
4079
- value: '#7F7F7F',
4080
- name: 'gray 50',
4081
- },
4082
- {
4083
- value: '#7D7D7D',
4084
- name: 'gray 49',
4085
- },
4086
- {
4087
- value: '#7A7A7A',
4088
- name: 'gray 48',
4089
- },
4090
- {
4091
- value: '#787878',
4092
- name: 'gray 47',
4093
- },
4094
- {
4095
- value: '#757575',
4096
- name: 'gray 46',
4097
- },
4098
- {
4099
- value: '#737373',
4100
- name: 'gray 45',
4101
- },
4102
- {
4103
- value: '#707070',
4104
- name: 'gray 44',
4105
- },
4106
- {
4107
- value: '#6E6E6E',
4108
- name: 'gray 43',
4109
- },
4110
- {
4111
- value: '#666666',
4112
- name: 'gray 40',
4113
- },
4114
- {
4115
- value: '#636363',
4116
- name: 'gray 39',
4117
- },
4118
- {
4119
- value: '#616161',
4120
- name: 'gray 38',
4121
- },
4122
- {
4123
- value: '#5E5E5E',
4124
- name: 'gray 37',
4125
- },
4126
- {
4127
- value: '#5C5C5C',
4128
- name: 'gray 36',
4129
- },
4130
- {
4131
- value: '#595959',
4132
- name: 'gray 35',
4133
- },
4134
- {
4135
- value: '#575757',
4136
- name: 'gray 34',
4137
- },
4138
- {
4139
- value: '#545454',
4140
- name: 'gray 33',
4141
- },
4142
- {
4143
- value: '#525252',
4144
- name: 'gray 32',
4145
- },
4146
- {
4147
- value: '#4F4F4F',
4148
- name: 'gray 31',
4149
- },
4150
- {
4151
- value: '#4D4D4D',
4152
- name: 'gray 30',
4153
- },
4154
- {
4155
- value: '#4A4A4A',
4156
- name: 'gray 29',
4157
- },
4158
- {
4159
- value: '#474747',
4160
- name: 'gray 28',
4161
- },
4162
- {
4163
- value: '#454545',
4164
- name: 'gray 27',
4165
- },
4166
- {
4167
- value: '#424242',
4168
- name: 'gray 26',
4169
- },
4170
- {
4171
- value: '#404040',
4172
- name: 'gray 25',
4173
- },
4174
- {
4175
- value: '#3D3D3D',
4176
- name: 'gray 24',
4177
- },
4178
- {
4179
- value: '#3B3B3B',
4180
- name: 'gray 23',
4181
- },
4182
- {
4183
- value: '#383838',
4184
- name: 'gray 22',
4185
- },
4186
- {
4187
- value: '#363636',
4188
- name: 'gray 21',
4189
- },
4190
- {
4191
- value: '#333333',
4192
- name: 'gray 20',
4193
- },
4194
- {
4195
- value: '#303030',
4196
- name: 'gray 19',
4197
- },
4198
- {
4199
- value: '#2E2E2E',
4200
- name: 'gray 18',
4201
- },
4202
- {
4203
- value: '#2B2B2B',
4204
- name: 'gray 17',
4205
- },
4206
- {
4207
- value: '#292929',
4208
- name: 'gray 16',
4209
- },
4210
- {
4211
- value: '#262626',
4212
- name: 'gray 15',
4213
- },
4214
- {
4215
- value: '#242424',
4216
- name: 'gray 14',
4217
- },
4218
- {
4219
- value: '#212121',
4220
- name: 'gray 13',
4221
- },
4222
- {
4223
- value: '#1F1F1F',
4224
- name: 'gray 12',
4225
- },
4226
- {
4227
- value: '#1C1C1C',
4228
- name: 'gray 11',
4229
- },
4230
- {
4231
- value: '#1A1A1A',
4232
- name: 'gray 10',
4233
- },
4234
- {
4235
- value: '#171717',
4236
- name: 'gray 9',
4237
- },
4238
- {
4239
- value: '#141414',
4240
- name: 'gray 8',
4241
- },
4242
- {
4243
- value: '#121212',
4244
- name: 'gray 7',
4245
- },
4246
- {
4247
- value: '#0F0F0F',
4248
- name: 'gray 6',
4249
- },
4250
- {
4251
- value: '#0D0D0D',
4252
- name: 'gray 5',
4253
- },
4254
- {
4255
- value: '#0A0A0A',
4256
- name: 'gray 4',
4257
- },
4258
- {
4259
- value: '#080808',
4260
- name: 'gray 3',
4261
- },
4262
- {
4263
- value: '#050505',
4264
- name: 'gray 2',
4265
- },
4266
- {
4267
- value: '#030303',
4268
- name: 'gray 1',
4269
- },
4270
- {
4271
- value: '#F5F5F5',
4272
- css: true,
4273
- name: 'whitesmoke',
4274
- },
4275
- ];
4276
-
4277
- /**
4278
- * Module dependencies
4279
- */
4280
-
4281
- (function (module) {
4282
- var colors$1 = colors;
4283
-
4284
- var cssColors = colors$1.filter(function (color) {
4285
- return !!color.css;
4286
- });
4287
-
4288
- var vgaColors = colors$1.filter(function (color) {
4289
- return !!color.vga;
4290
- });
4291
-
4292
- /**
4293
- * Get color value for a certain name.
4294
- * @param name {String}
4295
- * @return {String} Hex color value
4296
- * @api public
4297
- */
4298
-
4299
- module.exports = function (name) {
4300
- var color = module.exports.get(name);
4301
- return color && color.value;
4302
- };
4303
-
4304
- /**
4305
- * Get color object.
4306
- *
4307
- * @param name {String}
4308
- * @return {Object} Color object
4309
- * @api public
4310
- */
4311
-
4312
- module.exports.get = function (name) {
4313
- name = name || '';
4314
- name = name.trim().toLowerCase();
4315
- return colors$1
4316
- .filter(function (color) {
4317
- return color.name.toLowerCase() === name;
4318
- })
4319
- .pop();
4320
- };
4321
-
4322
- /**
4323
- * Get all color object.
4324
- *
4325
- * @return {Array}
4326
- * @api public
4327
- */
4328
-
4329
- module.exports.all = module.exports.get.all = function () {
4330
- return colors$1;
4331
- };
4332
-
4333
- /**
4334
- * Get color object compatible with CSS.
4335
- *
4336
- * @return {Array}
4337
- * @api public
4338
- */
4339
-
4340
- module.exports.get.css = function (name) {
4341
- if (!name) return cssColors;
4342
- name = name || '';
4343
- name = name.trim().toLowerCase();
4344
- return cssColors
4345
- .filter(function (color) {
4346
- return color.name.toLowerCase() === name;
4347
- })
4348
- .pop();
4349
- };
4350
-
4351
- module.exports.get.vga = function (name) {
4352
- if (!name) return vgaColors;
4353
- name = name || '';
4354
- name = name.trim().toLowerCase();
4355
- return vgaColors
4356
- .filter(function (color) {
4357
- return color.name.toLowerCase() === name;
4358
- })
4359
- .pop();
4360
- };
4361
- })(colornames);
4362
-
4363
- /**
4364
- * lodash (Custom Build) <https://lodash.com/>
4365
- * Build: `lodash modularize exports="npm" -o ./`
4366
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
4367
- * Released under MIT license <https://lodash.com/license>
4368
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
4369
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4370
- */
4371
-
4372
- /** `Object#toString` result references. */
4373
- var symbolTag$2 = '[object Symbol]';
4374
-
4375
- /** Used to match words composed of alphanumeric characters. */
4376
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
4377
-
4378
- /** Used to compose unicode character classes. */
4379
- var rsAstralRange$2 = '\\ud800-\\udfff',
4380
- rsComboMarksRange$2 = '\\u0300-\\u036f\\ufe20-\\ufe23',
4381
- rsComboSymbolsRange$2 = '\\u20d0-\\u20f0',
4382
- rsDingbatRange = '\\u2700-\\u27bf',
4383
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
4384
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
4385
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
4386
- rsPunctuationRange = '\\u2000-\\u206f',
4387
- rsSpaceRange =
4388
- ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
4389
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
4390
- rsVarRange$2 = '\\ufe0e\\ufe0f',
4391
- rsBreakRange =
4392
- rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
4393
-
4394
- /** Used to compose unicode capture groups. */
4395
- var rsApos = "['\u2019]",
4396
- rsBreak = '[' + rsBreakRange + ']',
4397
- rsCombo$2 = '[' + rsComboMarksRange$2 + rsComboSymbolsRange$2 + ']',
4398
- rsDigits = '\\d+',
4399
- rsDingbat = '[' + rsDingbatRange + ']',
4400
- rsLower = '[' + rsLowerRange + ']',
4401
- rsMisc =
4402
- '[^' +
4403
- rsAstralRange$2 +
4404
- rsBreakRange +
4405
- rsDigits +
4406
- rsDingbatRange +
4407
- rsLowerRange +
4408
- rsUpperRange +
4409
- ']',
4410
- rsFitz$2 = '\\ud83c[\\udffb-\\udfff]',
4411
- rsModifier$2 = '(?:' + rsCombo$2 + '|' + rsFitz$2 + ')',
4412
- rsNonAstral$2 = '[^' + rsAstralRange$2 + ']',
4413
- rsRegional$2 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
4414
- rsSurrPair$2 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
4415
- rsUpper = '[' + rsUpperRange + ']',
4416
- rsZWJ$2 = '\\u200d';
4417
-
4418
- /** Used to compose unicode regexes. */
4419
- var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
4420
- rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
4421
- rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
4422
- rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
4423
- reOptMod$2 = rsModifier$2 + '?',
4424
- rsOptVar$2 = '[' + rsVarRange$2 + ']?',
4425
- rsOptJoin$2 =
4426
- '(?:' +
4427
- rsZWJ$2 +
4428
- '(?:' +
4429
- [rsNonAstral$2, rsRegional$2, rsSurrPair$2].join('|') +
4430
- ')' +
4431
- rsOptVar$2 +
4432
- reOptMod$2 +
4433
- ')*',
4434
- rsSeq$2 = rsOptVar$2 + reOptMod$2 + rsOptJoin$2,
4435
- rsEmoji =
4436
- '(?:' + [rsDingbat, rsRegional$2, rsSurrPair$2].join('|') + ')' + rsSeq$2;
4437
-
4438
- /** Used to match complex or compound words. */
4439
- var reUnicodeWord = RegExp(
4440
- [
4441
- rsUpper +
4442
- '?' +
4443
- rsLower +
4444
- '+' +
4445
- rsOptLowerContr +
4446
- '(?=' +
4447
- [rsBreak, rsUpper, '$'].join('|') +
4448
- ')',
4449
- rsUpperMisc +
4450
- '+' +
4451
- rsOptUpperContr +
4452
- '(?=' +
4453
- [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') +
4454
- ')',
4455
- rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
4456
- rsUpper + '+' + rsOptUpperContr,
4457
- rsDigits,
4458
- rsEmoji,
4459
- ].join('|'),
4460
- 'g'
4461
- );
4462
-
4463
- /** Used to detect strings that need a more robust regexp to match words. */
4464
- var reHasUnicodeWord =
4465
- /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
4466
-
4467
- /** Detect free variable `global` from Node.js. */
4468
- var freeGlobal$2 =
4469
- typeof commonjsGlobal == 'object' &&
4470
- commonjsGlobal &&
4471
- commonjsGlobal.Object === Object &&
4472
- commonjsGlobal;
4473
-
4474
- /** Detect free variable `self`. */
4475
- var freeSelf$2 =
4476
- typeof self == 'object' && self && self.Object === Object && self;
4477
-
4478
- /** Used as a reference to the global object. */
4479
- var root$2 = freeGlobal$2 || freeSelf$2 || Function('return this')();
4480
-
4481
- /**
4482
- * Splits an ASCII `string` into an array of its words.
4483
- *
4484
- * @private
4485
- * @param {string} The string to inspect.
4486
- * @returns {Array} Returns the words of `string`.
4487
- */
4488
- function asciiWords(string) {
4489
- return string.match(reAsciiWord) || [];
4490
- }
4491
-
4492
- /**
4493
- * Checks if `string` contains a word composed of Unicode symbols.
4494
- *
4495
- * @private
4496
- * @param {string} string The string to inspect.
4497
- * @returns {boolean} Returns `true` if a word is found, else `false`.
4498
- */
4499
- function hasUnicodeWord(string) {
4500
- return reHasUnicodeWord.test(string);
4501
- }
4502
-
4503
- /**
4504
- * Splits a Unicode `string` into an array of its words.
4505
- *
4506
- * @private
4507
- * @param {string} The string to inspect.
4508
- * @returns {Array} Returns the words of `string`.
4509
- */
4510
- function unicodeWords(string) {
4511
- return string.match(reUnicodeWord) || [];
4512
- }
4513
-
4514
- /** Used for built-in method references. */
4515
- var objectProto$2 = Object.prototype;
4516
-
4517
- /**
4518
- * Used to resolve the
4519
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4520
- * of values.
4521
- */
4522
- var objectToString$2 = objectProto$2.toString;
4523
-
4524
- /** Built-in value references. */
4525
- var Symbol$3 = root$2.Symbol;
4526
-
4527
- /** Used to convert symbols to primitives and strings. */
4528
- var symbolProto$2 = Symbol$3 ? Symbol$3.prototype : undefined,
4529
- symbolToString$2 = symbolProto$2 ? symbolProto$2.toString : undefined;
4530
-
4531
- /**
4532
- * The base implementation of `_.toString` which doesn't convert nullish
4533
- * values to empty strings.
4534
- *
4535
- * @private
4536
- * @param {*} value The value to process.
4537
- * @returns {string} Returns the string.
4538
- */
4539
- function baseToString$2(value) {
4540
- // Exit early for strings to avoid a performance hit in some environments.
4541
- if (typeof value == 'string') {
4542
- return value;
4543
- }
4544
- if (isSymbol$2(value)) {
4545
- return symbolToString$2 ? symbolToString$2.call(value) : '';
4546
- }
4547
- var result = value + '';
4548
- return result == '0' && 1 / value == -Infinity ? '-0' : result;
4549
- }
4550
-
4551
- /**
4552
- * Checks if `value` is object-like. A value is object-like if it's not `null`
4553
- * and has a `typeof` result of "object".
4554
- *
4555
- * @static
4556
- * @memberOf _
4557
- * @since 4.0.0
4558
- * @category Lang
4559
- * @param {*} value The value to check.
4560
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
4561
- * @example
4562
- *
4563
- * _.isObjectLike({});
4564
- * // => true
4565
- *
4566
- * _.isObjectLike([1, 2, 3]);
4567
- * // => true
4568
- *
4569
- * _.isObjectLike(_.noop);
4570
- * // => false
4571
- *
4572
- * _.isObjectLike(null);
4573
- * // => false
4574
- */
4575
- function isObjectLike$2(value) {
4576
- return !!value && typeof value == 'object';
4577
- }
4578
-
4579
- /**
4580
- * Checks if `value` is classified as a `Symbol` primitive or object.
4581
- *
4582
- * @static
4583
- * @memberOf _
4584
- * @since 4.0.0
4585
- * @category Lang
4586
- * @param {*} value The value to check.
4587
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
4588
- * @example
4589
- *
4590
- * _.isSymbol(Symbol.iterator);
4591
- * // => true
4592
- *
4593
- * _.isSymbol('abc');
4594
- * // => false
4595
- */
4596
- function isSymbol$2(value) {
4597
- return (
4598
- typeof value == 'symbol' ||
4599
- (isObjectLike$2(value) && objectToString$2.call(value) == symbolTag$2)
4600
- );
4601
- }
4602
-
4603
- /**
4604
- * Converts `value` to a string. An empty string is returned for `null`
4605
- * and `undefined` values. The sign of `-0` is preserved.
4606
- *
4607
- * @static
4608
- * @memberOf _
4609
- * @since 4.0.0
4610
- * @category Lang
4611
- * @param {*} value The value to process.
4612
- * @returns {string} Returns the string.
4613
- * @example
4614
- *
4615
- * _.toString(null);
4616
- * // => ''
4617
- *
4618
- * _.toString(-0);
4619
- * // => '-0'
4620
- *
4621
- * _.toString([1, 2, 3]);
4622
- * // => '1,2,3'
4623
- */
4624
- function toString$2(value) {
4625
- return value == null ? '' : baseToString$2(value);
4626
- }
4627
-
4628
- /**
4629
- * Splits `string` into an array of its words.
4630
- *
4631
- * @static
4632
- * @memberOf _
4633
- * @since 3.0.0
4634
- * @category String
4635
- * @param {string} [string=''] The string to inspect.
4636
- * @param {RegExp|string} [pattern] The pattern to match words.
4637
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
4638
- * @returns {Array} Returns the words of `string`.
4639
- * @example
4640
- *
4641
- * _.words('fred, barney, & pebbles');
4642
- * // => ['fred', 'barney', 'pebbles']
4643
- *
4644
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
4645
- * // => ['fred', 'barney', '&', 'pebbles']
4646
- */
4647
- function words(string, pattern, guard) {
4648
- string = toString$2(string);
4649
- pattern = guard ? undefined : pattern;
4650
-
4651
- if (pattern === undefined) {
4652
- return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
4653
- }
4654
- return string.match(pattern) || [];
4655
- }
4656
-
4657
- var lodash_words = words;
4658
-
4659
- /**
4660
- * lodash (Custom Build) <https://lodash.com/>
4661
- * Build: `lodash modularize exports="npm" -o ./`
4662
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
4663
- * Released under MIT license <https://lodash.com/license>
4664
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
4665
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4666
- */
4667
-
4668
- /** `Object#toString` result references. */
4669
- var symbolTag$1 = '[object Symbol]';
4670
-
4671
- /** Used to match leading and trailing whitespace. */
4672
- var reTrimStart = /^\s+/;
4673
-
4674
- /** Used to compose unicode character classes. */
4675
- var rsAstralRange$1 = '\\ud800-\\udfff',
4676
- rsComboMarksRange$1 = '\\u0300-\\u036f\\ufe20-\\ufe23',
4677
- rsComboSymbolsRange$1 = '\\u20d0-\\u20f0',
4678
- rsVarRange$1 = '\\ufe0e\\ufe0f';
4679
-
4680
- /** Used to compose unicode capture groups. */
4681
- var rsAstral$1 = '[' + rsAstralRange$1 + ']',
4682
- rsCombo$1 = '[' + rsComboMarksRange$1 + rsComboSymbolsRange$1 + ']',
4683
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
4684
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
4685
- rsNonAstral$1 = '[^' + rsAstralRange$1 + ']',
4686
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
4687
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
4688
- rsZWJ$1 = '\\u200d';
4689
-
4690
- /** Used to compose unicode regexes. */
4691
- var reOptMod$1 = rsModifier$1 + '?',
4692
- rsOptVar$1 = '[' + rsVarRange$1 + ']?',
4693
- rsOptJoin$1 =
4694
- '(?:' +
4695
- rsZWJ$1 +
4696
- '(?:' +
4697
- [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') +
4698
- ')' +
4699
- rsOptVar$1 +
4700
- reOptMod$1 +
4701
- ')*',
4702
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
4703
- rsSymbol$1 =
4704
- '(?:' +
4705
- [
4706
- rsNonAstral$1 + rsCombo$1 + '?',
4707
- rsCombo$1,
4708
- rsRegional$1,
4709
- rsSurrPair$1,
4710
- rsAstral$1,
4711
- ].join('|') +
4712
- ')';
4713
-
4714
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
4715
- var reUnicode$1 = RegExp(
4716
- rsFitz$1 + '(?=' + rsFitz$1 + ')|' + rsSymbol$1 + rsSeq$1,
4717
- 'g'
4718
- );
4719
-
4720
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
4721
- var reHasUnicode$1 = RegExp(
4722
- '[' +
4723
- rsZWJ$1 +
4724
- rsAstralRange$1 +
4725
- rsComboMarksRange$1 +
4726
- rsComboSymbolsRange$1 +
4727
- rsVarRange$1 +
4728
- ']'
4729
- );
4730
-
4731
- /** Detect free variable `global` from Node.js. */
4732
- var freeGlobal$1 =
4733
- typeof commonjsGlobal == 'object' &&
4734
- commonjsGlobal &&
4735
- commonjsGlobal.Object === Object &&
4736
- commonjsGlobal;
4737
-
4738
- /** Detect free variable `self`. */
4739
- var freeSelf$1 =
4740
- typeof self == 'object' && self && self.Object === Object && self;
4741
-
4742
- /** Used as a reference to the global object. */
4743
- var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
4744
-
4745
- /**
4746
- * Converts an ASCII `string` to an array.
4747
- *
4748
- * @private
4749
- * @param {string} string The string to convert.
4750
- * @returns {Array} Returns the converted array.
4751
- */
4752
- function asciiToArray$1(string) {
4753
- return string.split('');
4754
- }
4755
-
4756
- /**
4757
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
4758
- * support for iteratee shorthands.
4759
- *
4760
- * @private
4761
- * @param {Array} array The array to inspect.
4762
- * @param {Function} predicate The function invoked per iteration.
4763
- * @param {number} fromIndex The index to search from.
4764
- * @param {boolean} [fromRight] Specify iterating from right to left.
4765
- * @returns {number} Returns the index of the matched value, else `-1`.
4766
- */
4767
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
4768
- var length = array.length,
4769
- index = fromIndex + -1;
4770
-
4771
- while (++index < length) {
4772
- if (predicate(array[index], index, array)) {
4773
- return index;
4774
- }
4775
- }
4776
- return -1;
4777
- }
4778
-
4779
- /**
4780
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
4781
- *
4782
- * @private
4783
- * @param {Array} array The array to inspect.
4784
- * @param {*} value The value to search for.
4785
- * @param {number} fromIndex The index to search from.
4786
- * @returns {number} Returns the index of the matched value, else `-1`.
4787
- */
4788
- function baseIndexOf(array, value, fromIndex) {
4789
- if (value !== value) {
4790
- return baseFindIndex(array, baseIsNaN, fromIndex);
4791
- }
4792
- var index = fromIndex - 1,
4793
- length = array.length;
4794
-
4795
- while (++index < length) {
4796
- if (array[index] === value) {
4797
- return index;
4798
- }
4799
- }
4800
- return -1;
4801
- }
4802
-
4803
- /**
4804
- * The base implementation of `_.isNaN` without support for number objects.
4805
- *
4806
- * @private
4807
- * @param {*} value The value to check.
4808
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
4809
- */
4810
- function baseIsNaN(value) {
4811
- return value !== value;
4812
- }
4813
-
4814
- /**
4815
- * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
4816
- * that is not found in the character symbols.
4817
- *
4818
- * @private
4819
- * @param {Array} strSymbols The string symbols to inspect.
4820
- * @param {Array} chrSymbols The character symbols to find.
4821
- * @returns {number} Returns the index of the first unmatched string symbol.
4822
- */
4823
- function charsStartIndex(strSymbols, chrSymbols) {
4824
- var index = -1,
4825
- length = strSymbols.length;
4826
-
4827
- while (
4828
- ++index < length &&
4829
- baseIndexOf(chrSymbols, strSymbols[index], 0) > -1
4830
- ) {}
4831
- return index;
4832
- }
4833
-
4834
- /**
4835
- * Checks if `string` contains Unicode symbols.
4836
- *
4837
- * @private
4838
- * @param {string} string The string to inspect.
4839
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
4840
- */
4841
- function hasUnicode$1(string) {
4842
- return reHasUnicode$1.test(string);
4843
- }
4844
-
4845
- /**
4846
- * Converts `string` to an array.
4847
- *
4848
- * @private
4849
- * @param {string} string The string to convert.
4850
- * @returns {Array} Returns the converted array.
4851
- */
4852
- function stringToArray$1(string) {
4853
- return hasUnicode$1(string)
4854
- ? unicodeToArray$1(string)
4855
- : asciiToArray$1(string);
4856
- }
4857
-
4858
- /**
4859
- * Converts a Unicode `string` to an array.
4860
- *
4861
- * @private
4862
- * @param {string} string The string to convert.
4863
- * @returns {Array} Returns the converted array.
4864
- */
4865
- function unicodeToArray$1(string) {
4866
- return string.match(reUnicode$1) || [];
4867
- }
4868
-
4869
- /** Used for built-in method references. */
4870
- var objectProto$1 = Object.prototype;
4871
-
4872
- /**
4873
- * Used to resolve the
4874
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
4875
- * of values.
4876
- */
4877
- var objectToString$1 = objectProto$1.toString;
4878
-
4879
- /** Built-in value references. */
4880
- var Symbol$2 = root$1.Symbol;
4881
-
4882
- /** Used to convert symbols to primitives and strings. */
4883
- var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
4884
- symbolToString$1 = symbolProto$1 ? symbolProto$1.toString : undefined;
4885
-
4886
- /**
4887
- * The base implementation of `_.slice` without an iteratee call guard.
4888
- *
4889
- * @private
4890
- * @param {Array} array The array to slice.
4891
- * @param {number} [start=0] The start position.
4892
- * @param {number} [end=array.length] The end position.
4893
- * @returns {Array} Returns the slice of `array`.
4894
- */
4895
- function baseSlice$1(array, start, end) {
4896
- var index = -1,
4897
- length = array.length;
4898
-
4899
- if (start < 0) {
4900
- start = -start > length ? 0 : length + start;
4901
- }
4902
- end = end > length ? length : end;
4903
- if (end < 0) {
4904
- end += length;
4905
- }
4906
- length = start > end ? 0 : (end - start) >>> 0;
4907
- start >>>= 0;
4908
-
4909
- var result = Array(length);
4910
- while (++index < length) {
4911
- result[index] = array[index + start];
4912
- }
4913
- return result;
4914
- }
4915
-
4916
- /**
4917
- * The base implementation of `_.toString` which doesn't convert nullish
4918
- * values to empty strings.
4919
- *
4920
- * @private
4921
- * @param {*} value The value to process.
4922
- * @returns {string} Returns the string.
4923
- */
4924
- function baseToString$1(value) {
4925
- // Exit early for strings to avoid a performance hit in some environments.
4926
- if (typeof value == 'string') {
4927
- return value;
4928
- }
4929
- if (isSymbol$1(value)) {
4930
- return symbolToString$1 ? symbolToString$1.call(value) : '';
4931
- }
4932
- var result = value + '';
4933
- return result == '0' && 1 / value == -Infinity ? '-0' : result;
4934
- }
4935
-
4936
- /**
4937
- * Casts `array` to a slice if it's needed.
4938
- *
4939
- * @private
4940
- * @param {Array} array The array to inspect.
4941
- * @param {number} start The start position.
4942
- * @param {number} [end=array.length] The end position.
4943
- * @returns {Array} Returns the cast slice.
4944
- */
4945
- function castSlice$1(array, start, end) {
4946
- var length = array.length;
4947
- end = end === undefined ? length : end;
4948
- return !start && end >= length ? array : baseSlice$1(array, start, end);
4949
- }
4950
-
4951
- /**
4952
- * Checks if `value` is object-like. A value is object-like if it's not `null`
4953
- * and has a `typeof` result of "object".
4954
- *
4955
- * @static
4956
- * @memberOf _
4957
- * @since 4.0.0
4958
- * @category Lang
4959
- * @param {*} value The value to check.
4960
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
4961
- * @example
4962
- *
4963
- * _.isObjectLike({});
4964
- * // => true
4965
- *
4966
- * _.isObjectLike([1, 2, 3]);
4967
- * // => true
4968
- *
4969
- * _.isObjectLike(_.noop);
4970
- * // => false
4971
- *
4972
- * _.isObjectLike(null);
4973
- * // => false
4974
- */
4975
- function isObjectLike$1(value) {
4976
- return !!value && typeof value == 'object';
4977
- }
4978
-
4979
- /**
4980
- * Checks if `value` is classified as a `Symbol` primitive or object.
4981
- *
4982
- * @static
4983
- * @memberOf _
4984
- * @since 4.0.0
4985
- * @category Lang
4986
- * @param {*} value The value to check.
4987
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
4988
- * @example
4989
- *
4990
- * _.isSymbol(Symbol.iterator);
4991
- * // => true
4992
- *
4993
- * _.isSymbol('abc');
4994
- * // => false
4995
- */
4996
- function isSymbol$1(value) {
4997
- return (
4998
- typeof value == 'symbol' ||
4999
- (isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1)
5000
- );
5001
- }
5002
-
5003
- /**
5004
- * Converts `value` to a string. An empty string is returned for `null`
5005
- * and `undefined` values. The sign of `-0` is preserved.
5006
- *
5007
- * @static
5008
- * @memberOf _
5009
- * @since 4.0.0
5010
- * @category Lang
5011
- * @param {*} value The value to process.
5012
- * @returns {string} Returns the string.
5013
- * @example
5014
- *
5015
- * _.toString(null);
5016
- * // => ''
5017
- *
5018
- * _.toString(-0);
5019
- * // => '-0'
5020
- *
5021
- * _.toString([1, 2, 3]);
5022
- * // => '1,2,3'
5023
- */
5024
- function toString$1(value) {
5025
- return value == null ? '' : baseToString$1(value);
5026
- }
5027
-
5028
- /**
5029
- * Removes leading whitespace or specified characters from `string`.
5030
- *
5031
- * @static
5032
- * @memberOf _
5033
- * @since 4.0.0
5034
- * @category String
5035
- * @param {string} [string=''] The string to trim.
5036
- * @param {string} [chars=whitespace] The characters to trim.
5037
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
5038
- * @returns {string} Returns the trimmed string.
5039
- * @example
5040
- *
5041
- * _.trimStart(' abc ');
5042
- * // => 'abc '
5043
- *
5044
- * _.trimStart('-_-abc-_-', '_-');
5045
- * // => 'abc-_-'
5046
- */
5047
- function trimStart$1(string, chars, guard) {
5048
- string = toString$1(string);
5049
- if (string && (guard || chars === undefined)) {
5050
- return string.replace(reTrimStart, '');
5051
- }
5052
- if (!string || !(chars = baseToString$1(chars))) {
5053
- return string;
5054
- }
5055
- var strSymbols = stringToArray$1(string),
5056
- start = charsStartIndex(strSymbols, stringToArray$1(chars));
5057
-
5058
- return castSlice$1(strSymbols, start).join('');
5059
- }
5060
-
5061
- var lodash_trimstart = trimStart$1;
5062
-
5063
- /**
5064
- * lodash (Custom Build) <https://lodash.com/>
5065
- * Build: `lodash modularize exports="npm" -o ./`
5066
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
5067
- * Released under MIT license <https://lodash.com/license>
5068
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
5069
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
5070
- */
5071
-
5072
- /** Used as references for various `Number` constants. */
5073
- var INFINITY = 1 / 0,
5074
- MAX_SAFE_INTEGER = 9007199254740991,
5075
- MAX_INTEGER = 1.7976931348623157e308,
5076
- NAN = 0 / 0;
5077
-
5078
- /** `Object#toString` result references. */
5079
- var symbolTag = '[object Symbol]';
5080
-
5081
- /** Used to match leading and trailing whitespace. */
5082
- var reTrim = /^\s+|\s+$/g;
5083
-
5084
- /** Used to detect bad signed hexadecimal string values. */
5085
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
5086
-
5087
- /** Used to detect binary string values. */
5088
- var reIsBinary = /^0b[01]+$/i;
5089
-
5090
- /** Used to detect octal string values. */
5091
- var reIsOctal = /^0o[0-7]+$/i;
5092
-
5093
- /** Used to compose unicode character classes. */
5094
- var rsAstralRange = '\\ud800-\\udfff',
5095
- rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
5096
- rsComboSymbolsRange = '\\u20d0-\\u20f0',
5097
- rsVarRange = '\\ufe0e\\ufe0f';
5098
-
5099
- /** Used to compose unicode capture groups. */
5100
- var rsAstral = '[' + rsAstralRange + ']',
5101
- rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
5102
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
5103
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
5104
- rsNonAstral = '[^' + rsAstralRange + ']',
5105
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
5106
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
5107
- rsZWJ = '\\u200d';
5108
-
5109
- /** Used to compose unicode regexes. */
5110
- var reOptMod = rsModifier + '?',
5111
- rsOptVar = '[' + rsVarRange + ']?',
5112
- rsOptJoin =
5113
- '(?:' +
5114
- rsZWJ +
5115
- '(?:' +
5116
- [rsNonAstral, rsRegional, rsSurrPair].join('|') +
5117
- ')' +
5118
- rsOptVar +
5119
- reOptMod +
5120
- ')*',
5121
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
5122
- rsSymbol =
5123
- '(?:' +
5124
- [
5125
- rsNonAstral + rsCombo + '?',
5126
- rsCombo,
5127
- rsRegional,
5128
- rsSurrPair,
5129
- rsAstral,
5130
- ].join('|') +
5131
- ')';
5132
-
5133
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
5134
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
5135
-
5136
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
5137
- var reHasUnicode = RegExp(
5138
- '[' +
5139
- rsZWJ +
5140
- rsAstralRange +
5141
- rsComboMarksRange +
5142
- rsComboSymbolsRange +
5143
- rsVarRange +
5144
- ']'
5145
- );
5146
-
5147
- /** Built-in method references without a dependency on `root`. */
5148
- var freeParseInt = parseInt;
5149
-
5150
- /** Detect free variable `global` from Node.js. */
5151
- var freeGlobal =
5152
- typeof commonjsGlobal == 'object' &&
5153
- commonjsGlobal &&
5154
- commonjsGlobal.Object === Object &&
5155
- commonjsGlobal;
5156
-
5157
- /** Detect free variable `self`. */
5158
- var freeSelf =
5159
- typeof self == 'object' && self && self.Object === Object && self;
5160
-
5161
- /** Used as a reference to the global object. */
5162
- var root = freeGlobal || freeSelf || Function('return this')();
5163
-
5164
- /**
5165
- * Gets the size of an ASCII `string`.
5166
- *
5167
- * @private
5168
- * @param {string} string The string inspect.
5169
- * @returns {number} Returns the string size.
5170
- */
5171
- var asciiSize = baseProperty('length');
5172
-
5173
- /**
5174
- * Converts an ASCII `string` to an array.
5175
- *
5176
- * @private
5177
- * @param {string} string The string to convert.
5178
- * @returns {Array} Returns the converted array.
5179
- */
5180
- function asciiToArray(string) {
5181
- return string.split('');
5182
- }
5183
-
5184
- /**
5185
- * The base implementation of `_.property` without support for deep paths.
5186
- *
5187
- * @private
5188
- * @param {string} key The key of the property to get.
5189
- * @returns {Function} Returns the new accessor function.
5190
- */
5191
- function baseProperty(key) {
5192
- return function (object) {
5193
- return object == null ? undefined : object[key];
5194
- };
5195
- }
5196
-
5197
- /**
5198
- * Checks if `string` contains Unicode symbols.
5199
- *
5200
- * @private
5201
- * @param {string} string The string to inspect.
5202
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
5203
- */
5204
- function hasUnicode(string) {
5205
- return reHasUnicode.test(string);
5206
- }
5207
-
5208
- /**
5209
- * Gets the number of symbols in `string`.
5210
- *
5211
- * @private
5212
- * @param {string} string The string to inspect.
5213
- * @returns {number} Returns the string size.
5214
- */
5215
- function stringSize(string) {
5216
- return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
5217
- }
5218
-
5219
- /**
5220
- * Converts `string` to an array.
5221
- *
5222
- * @private
5223
- * @param {string} string The string to convert.
5224
- * @returns {Array} Returns the converted array.
5225
- */
5226
- function stringToArray(string) {
5227
- return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
5228
- }
5229
-
5230
- /**
5231
- * Gets the size of a Unicode `string`.
5232
- *
5233
- * @private
5234
- * @param {string} string The string inspect.
5235
- * @returns {number} Returns the string size.
5236
- */
5237
- function unicodeSize(string) {
5238
- var result = (reUnicode.lastIndex = 0);
5239
- while (reUnicode.test(string)) {
5240
- result++;
5241
- }
5242
- return result;
5243
- }
5244
-
5245
- /**
5246
- * Converts a Unicode `string` to an array.
5247
- *
5248
- * @private
5249
- * @param {string} string The string to convert.
5250
- * @returns {Array} Returns the converted array.
5251
- */
5252
- function unicodeToArray(string) {
5253
- return string.match(reUnicode) || [];
5254
- }
5255
-
5256
- /** Used for built-in method references. */
5257
- var objectProto = Object.prototype;
5258
-
5259
- /**
5260
- * Used to resolve the
5261
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
5262
- * of values.
5263
- */
5264
- var objectToString = objectProto.toString;
5265
-
5266
- /** Built-in value references. */
5267
- var Symbol$1 = root.Symbol;
5268
-
5269
- /* Built-in method references for those with the same name as other `lodash` methods. */
5270
- var nativeCeil = Math.ceil,
5271
- nativeFloor = Math.floor;
5272
-
5273
- /** Used to convert symbols to primitives and strings. */
5274
- var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
5275
- symbolToString = symbolProto ? symbolProto.toString : undefined;
5276
-
5277
- /**
5278
- * The base implementation of `_.repeat` which doesn't coerce arguments.
5279
- *
5280
- * @private
5281
- * @param {string} string The string to repeat.
5282
- * @param {number} n The number of times to repeat the string.
5283
- * @returns {string} Returns the repeated string.
5284
- */
5285
- function baseRepeat(string, n) {
5286
- var result = '';
5287
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
5288
- return result;
5289
- }
5290
- // Leverage the exponentiation by squaring algorithm for a faster repeat.
5291
- // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
5292
- do {
5293
- if (n % 2) {
5294
- result += string;
5295
- }
5296
- n = nativeFloor(n / 2);
5297
- if (n) {
5298
- string += string;
5299
- }
5300
- } while (n);
5301
-
5302
- return result;
5303
- }
5304
-
5305
- /**
5306
- * The base implementation of `_.slice` without an iteratee call guard.
5307
- *
5308
- * @private
5309
- * @param {Array} array The array to slice.
5310
- * @param {number} [start=0] The start position.
5311
- * @param {number} [end=array.length] The end position.
5312
- * @returns {Array} Returns the slice of `array`.
5313
- */
5314
- function baseSlice(array, start, end) {
5315
- var index = -1,
5316
- length = array.length;
5317
-
5318
- if (start < 0) {
5319
- start = -start > length ? 0 : length + start;
5320
- }
5321
- end = end > length ? length : end;
5322
- if (end < 0) {
5323
- end += length;
5324
- }
5325
- length = start > end ? 0 : (end - start) >>> 0;
5326
- start >>>= 0;
5327
-
5328
- var result = Array(length);
5329
- while (++index < length) {
5330
- result[index] = array[index + start];
5331
- }
5332
- return result;
5333
- }
5334
-
5335
- /**
5336
- * The base implementation of `_.toString` which doesn't convert nullish
5337
- * values to empty strings.
5338
- *
5339
- * @private
5340
- * @param {*} value The value to process.
5341
- * @returns {string} Returns the string.
5342
- */
5343
- function baseToString(value) {
5344
- // Exit early for strings to avoid a performance hit in some environments.
5345
- if (typeof value == 'string') {
5346
- return value;
5347
- }
5348
- if (isSymbol(value)) {
5349
- return symbolToString ? symbolToString.call(value) : '';
5350
- }
5351
- var result = value + '';
5352
- return result == '0' && 1 / value == -INFINITY ? '-0' : result;
5353
- }
5354
-
5355
- /**
5356
- * Casts `array` to a slice if it's needed.
5357
- *
5358
- * @private
5359
- * @param {Array} array The array to inspect.
5360
- * @param {number} start The start position.
5361
- * @param {number} [end=array.length] The end position.
5362
- * @returns {Array} Returns the cast slice.
5363
- */
5364
- function castSlice(array, start, end) {
5365
- var length = array.length;
5366
- end = end === undefined ? length : end;
5367
- return !start && end >= length ? array : baseSlice(array, start, end);
5368
- }
5369
-
5370
- /**
5371
- * Creates the padding for `string` based on `length`. The `chars` string
5372
- * is truncated if the number of characters exceeds `length`.
5373
- *
5374
- * @private
5375
- * @param {number} length The padding length.
5376
- * @param {string} [chars=' '] The string used as padding.
5377
- * @returns {string} Returns the padding for `string`.
5378
- */
5379
- function createPadding(length, chars) {
5380
- chars = chars === undefined ? ' ' : baseToString(chars);
5381
-
5382
- var charsLength = chars.length;
5383
- if (charsLength < 2) {
5384
- return charsLength ? baseRepeat(chars, length) : chars;
5385
- }
5386
- var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
5387
- return hasUnicode(chars)
5388
- ? castSlice(stringToArray(result), 0, length).join('')
5389
- : result.slice(0, length);
5390
- }
5391
-
5392
- /**
5393
- * Checks if `value` is the
5394
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5395
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5396
- *
5397
- * @static
5398
- * @memberOf _
5399
- * @since 0.1.0
5400
- * @category Lang
5401
- * @param {*} value The value to check.
5402
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5403
- * @example
5404
- *
5405
- * _.isObject({});
5406
- * // => true
5407
- *
5408
- * _.isObject([1, 2, 3]);
5409
- * // => true
5410
- *
5411
- * _.isObject(_.noop);
5412
- * // => true
5413
- *
5414
- * _.isObject(null);
5415
- * // => false
5416
- */
5417
- function isObject(value) {
5418
- var type = typeof value;
5419
- return !!value && (type == 'object' || type == 'function');
5420
- }
5421
-
5422
- /**
5423
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5424
- * and has a `typeof` result of "object".
5425
- *
5426
- * @static
5427
- * @memberOf _
5428
- * @since 4.0.0
5429
- * @category Lang
5430
- * @param {*} value The value to check.
5431
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5432
- * @example
5433
- *
5434
- * _.isObjectLike({});
5435
- * // => true
5436
- *
5437
- * _.isObjectLike([1, 2, 3]);
5438
- * // => true
5439
- *
5440
- * _.isObjectLike(_.noop);
5441
- * // => false
5442
- *
5443
- * _.isObjectLike(null);
5444
- * // => false
5445
- */
5446
- function isObjectLike(value) {
5447
- return !!value && typeof value == 'object';
5448
- }
5449
-
5450
- /**
5451
- * Checks if `value` is classified as a `Symbol` primitive or object.
5452
- *
5453
- * @static
5454
- * @memberOf _
5455
- * @since 4.0.0
5456
- * @category Lang
5457
- * @param {*} value The value to check.
5458
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
5459
- * @example
5460
- *
5461
- * _.isSymbol(Symbol.iterator);
5462
- * // => true
5463
- *
5464
- * _.isSymbol('abc');
5465
- * // => false
5466
- */
5467
- function isSymbol(value) {
5468
- return (
5469
- typeof value == 'symbol' ||
5470
- (isObjectLike(value) && objectToString.call(value) == symbolTag)
5471
- );
5472
- }
5473
-
5474
- /**
5475
- * Converts `value` to a finite number.
5476
- *
5477
- * @static
5478
- * @memberOf _
5479
- * @since 4.12.0
5480
- * @category Lang
5481
- * @param {*} value The value to convert.
5482
- * @returns {number} Returns the converted number.
5483
- * @example
5484
- *
5485
- * _.toFinite(3.2);
5486
- * // => 3.2
5487
- *
5488
- * _.toFinite(Number.MIN_VALUE);
5489
- * // => 5e-324
5490
- *
5491
- * _.toFinite(Infinity);
5492
- * // => 1.7976931348623157e+308
5493
- *
5494
- * _.toFinite('3.2');
5495
- * // => 3.2
5496
- */
5497
- function toFinite(value) {
5498
- if (!value) {
5499
- return value === 0 ? value : 0;
5500
- }
5501
- value = toNumber(value);
5502
- if (value === INFINITY || value === -INFINITY) {
5503
- var sign = value < 0 ? -1 : 1;
5504
- return sign * MAX_INTEGER;
5505
- }
5506
- return value === value ? value : 0;
5507
- }
5508
-
5509
- /**
5510
- * Converts `value` to an integer.
5511
- *
5512
- * **Note:** This method is loosely based on
5513
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
5514
- *
5515
- * @static
5516
- * @memberOf _
5517
- * @since 4.0.0
5518
- * @category Lang
5519
- * @param {*} value The value to convert.
5520
- * @returns {number} Returns the converted integer.
5521
- * @example
5522
- *
5523
- * _.toInteger(3.2);
5524
- * // => 3
5525
- *
5526
- * _.toInteger(Number.MIN_VALUE);
5527
- * // => 0
5528
- *
5529
- * _.toInteger(Infinity);
5530
- * // => 1.7976931348623157e+308
5531
- *
5532
- * _.toInteger('3.2');
5533
- * // => 3
5534
- */
5535
- function toInteger(value) {
5536
- var result = toFinite(value),
5537
- remainder = result % 1;
5538
-
5539
- return result === result ? (remainder ? result - remainder : result) : 0;
5540
- }
5541
-
5542
- /**
5543
- * Converts `value` to a number.
5544
- *
5545
- * @static
5546
- * @memberOf _
5547
- * @since 4.0.0
5548
- * @category Lang
5549
- * @param {*} value The value to process.
5550
- * @returns {number} Returns the number.
5551
- * @example
5552
- *
5553
- * _.toNumber(3.2);
5554
- * // => 3.2
5555
- *
5556
- * _.toNumber(Number.MIN_VALUE);
5557
- * // => 5e-324
5558
- *
5559
- * _.toNumber(Infinity);
5560
- * // => Infinity
5561
- *
5562
- * _.toNumber('3.2');
5563
- * // => 3.2
5564
- */
5565
- function toNumber(value) {
5566
- if (typeof value == 'number') {
5567
- return value;
5568
- }
5569
- if (isSymbol(value)) {
5570
- return NAN;
5571
- }
5572
- if (isObject(value)) {
5573
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
5574
- value = isObject(other) ? other + '' : other;
5575
- }
5576
- if (typeof value != 'string') {
5577
- return value === 0 ? value : +value;
5578
- }
5579
- value = value.replace(reTrim, '');
5580
- var isBinary = reIsBinary.test(value);
5581
- return isBinary || reIsOctal.test(value)
5582
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
5583
- : reIsBadHex.test(value)
5584
- ? NAN
5585
- : +value;
5586
- }
5587
-
5588
- /**
5589
- * Converts `value` to a string. An empty string is returned for `null`
5590
- * and `undefined` values. The sign of `-0` is preserved.
5591
- *
5592
- * @static
5593
- * @memberOf _
5594
- * @since 4.0.0
5595
- * @category Lang
5596
- * @param {*} value The value to process.
5597
- * @returns {string} Returns the string.
5598
- * @example
5599
- *
5600
- * _.toString(null);
5601
- * // => ''
5602
- *
5603
- * _.toString(-0);
5604
- * // => '-0'
5605
- *
5606
- * _.toString([1, 2, 3]);
5607
- * // => '1,2,3'
5608
- */
5609
- function toString(value) {
5610
- return value == null ? '' : baseToString(value);
5611
- }
5612
-
5613
- /**
5614
- * Pads `string` on the right side if it's shorter than `length`. Padding
5615
- * characters are truncated if they exceed `length`.
5616
- *
5617
- * @static
5618
- * @memberOf _
5619
- * @since 4.0.0
5620
- * @category String
5621
- * @param {string} [string=''] The string to pad.
5622
- * @param {number} [length=0] The padding length.
5623
- * @param {string} [chars=' '] The string used as padding.
5624
- * @returns {string} Returns the padded string.
5625
- * @example
5626
- *
5627
- * _.padEnd('abc', 6);
5628
- * // => 'abc '
5629
- *
5630
- * _.padEnd('abc', 6, '_-');
5631
- * // => 'abc_-_'
5632
- *
5633
- * _.padEnd('abc', 3);
5634
- * // => 'abc'
5635
- */
5636
- function padEnd$1(string, length, chars) {
5637
- string = toString(string);
5638
- length = toInteger(length);
5639
-
5640
- var strLength = length ? stringSize(string) : 0;
5641
- return length && strLength < length
5642
- ? string + createPadding(length - strLength, chars)
5643
- : string;
5644
- }
5645
-
5646
- var lodash_padend = padEnd$1;
5647
-
5648
- /* eslint-disable no-mixed-operators */
5649
- var rgbHex$1 = (red, green, blue, alpha) => {
5650
- const isPercent = (red + (alpha || '')).toString().includes('%');
5651
-
5652
- if (typeof red === 'string') {
5653
- [red, green, blue, alpha] = red.match(/(0?\.?\d{1,3})%?\b/g).map(Number);
5654
- } else if (alpha !== undefined) {
5655
- alpha = parseFloat(alpha);
5656
- }
5657
-
5658
- if (
5659
- typeof red !== 'number' ||
5660
- typeof green !== 'number' ||
5661
- typeof blue !== 'number' ||
5662
- red > 255 ||
5663
- green > 255 ||
5664
- blue > 255
5665
- ) {
5666
- throw new TypeError('Expected three numbers below 256');
5667
- }
5668
-
5669
- if (typeof alpha === 'number') {
5670
- if (!isPercent && alpha >= 0 && alpha <= 1) {
5671
- alpha = Math.round(255 * alpha);
5672
- } else if (isPercent && alpha >= 0 && alpha <= 100) {
5673
- alpha = Math.round((255 * alpha) / 100);
5674
- } else {
5675
- throw new TypeError(
5676
- `Expected alpha value (${alpha}) as a fraction or percentage`
5677
- );
5678
- }
5679
-
5680
- alpha = (alpha | (1 << 8)).toString(16).slice(1);
5681
- } else {
5682
- alpha = '';
5683
- }
5684
-
5685
- return (
5686
- (blue | (green << 8) | (red << 16) | (1 << 24)).toString(16).slice(1) +
5687
- alpha
5688
- );
5689
- };
5690
-
5691
- const hexCharacters = 'a-f\\d';
5692
- const match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;
5693
- const match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;
5694
- const nonHexChars = new RegExp(`[^#${hexCharacters}]`, 'gi');
5695
- const validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, 'i');
5696
-
5697
- var hexRgb$1 = (hex, options = {}) => {
5698
- if (
5699
- typeof hex !== 'string' ||
5700
- nonHexChars.test(hex) ||
5701
- !validHexSize.test(hex)
5702
- ) {
5703
- throw new TypeError('Expected a valid hex string');
5704
- }
5705
-
5706
- hex = hex.replace(/^#/, '');
5707
- let alphaFromHex = 1;
5708
-
5709
- if (hex.length === 8) {
5710
- alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
5711
- hex = hex.slice(0, 6);
5712
- }
5713
-
5714
- if (hex.length === 4) {
5715
- alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
5716
- hex = hex.slice(0, 3);
5717
- }
5718
-
5719
- if (hex.length === 3) {
5720
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
5721
- }
5722
-
5723
- const number = Number.parseInt(hex, 16);
5724
- const red = number >> 16;
5725
- const green = (number >> 8) & 255;
5726
- const blue = number & 255;
5727
- const alpha =
5728
- typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
5729
-
5730
- if (options.format === 'array') {
5731
- return [red, green, blue, alpha];
5732
- }
5733
-
5734
- if (options.format === 'css') {
5735
- const alphaString =
5736
- alpha === 1 ? '' : ` / ${Number((alpha * 100).toFixed(2))}%`;
5737
- return `rgb(${red} ${green} ${blue}${alphaString})`;
5738
- }
5739
-
5740
- return { red, green, blue, alpha };
5741
- };
5742
-
5743
- var toHex = colornames.exports;
5744
- var _words = lodash_words;
5745
- var trimStart = lodash_trimstart;
5746
- var padEnd = lodash_padend;
5747
- var rgbHex = rgbHex$1;
5748
- var hexRgb = hexRgb$1;
5749
-
5750
- const MIXED_WEIGHT = 0.75;
5751
- const TEXT_WEIGHT = 0.25;
5752
- const SEED = 16777215;
5753
- const FACTOR = 49979693;
5754
-
5755
- var stringToColor = function (object) {
5756
- return '#' + generateColor(String(JSON.stringify(object)));
5757
- };
5758
-
5759
- function getColors(text) {
5760
- var words = _words(text);
5761
- var colors = [];
5762
- words.forEach(function (word) {
5763
- var color = toHex(word);
5764
- if (color) colors.push(hexRgb(trimStart(color, '#'), { format: 'array' }));
5765
- });
5766
- return colors;
5767
- }
5768
-
5769
- function mixColors(colors) {
5770
- var mixed = [0, 0, 0];
5771
- colors.forEach(function (value) {
5772
- for (var i = 0; i < 3; i++) mixed[i] += value[i];
5773
- });
5774
- return [
5775
- mixed[0] / colors.length,
5776
- mixed[1] / colors.length,
5777
- mixed[2] / colors.length,
5778
- ];
5779
- }
5780
-
5781
- function generateColor(text) {
5782
- var mixed;
5783
- var colors = getColors(text);
5784
- if (colors.length > 0) mixed = mixColors(colors);
5785
- var b = 1;
5786
- var d = 0;
5787
- var f = 1;
5788
- if (text.length > 0) {
5789
- for (var i = 0; i < text.length; i++)
5790
- text[i].charCodeAt(0) > d && (d = text[i].charCodeAt(0)),
5791
- (f = parseInt(SEED / d)),
5792
- (b = (b + text[i].charCodeAt(0) * f * FACTOR) % SEED);
5793
- }
5794
- var hex = ((b * text.length) % SEED).toString(16);
5795
- hex = padEnd(hex, 6, hex);
5796
- var rgb = hexRgb(hex, { format: 'array' });
5797
- if (mixed)
5798
- return rgbHex(
5799
- TEXT_WEIGHT * rgb[0] + MIXED_WEIGHT * mixed[0],
5800
- TEXT_WEIGHT * rgb[1] + MIXED_WEIGHT * mixed[1],
5801
- TEXT_WEIGHT * rgb[2] + MIXED_WEIGHT * mixed[2]
5802
- );
5803
- return hex;
5804
- }
5805
-
5806
1810
  function _class_call_check$1(instance, Constructor) {
5807
1811
  if (!(instance instanceof Constructor)) {
5808
1812
  throw new TypeError('Cannot call a class as a function');
@@ -5860,12 +1864,6 @@ var InfoFormatter = /*#__PURE__*/ (function () {
5860
1864
  return name.charAt(0).toUpperCase();
5861
1865
  },
5862
1866
  },
5863
- {
5864
- key: 'getBackgroundColor',
5865
- value: function getBackgroundColor(email) {
5866
- return stringToColor(email);
5867
- },
5868
- },
5869
1867
  {
5870
1868
  key: 'getInitial',
5871
1869
  value: function getInitial(name) {