@native-systems/utility 2.2.1 → 2.3.1

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
@@ -358,7 +358,7 @@ function _call_super$1(_this, derived, args) {
358
358
  : derived.apply(_this, args)
359
359
  );
360
360
  }
361
- function _class_call_check$6(instance, Constructor) {
361
+ function _class_call_check$a(instance, Constructor) {
362
362
  if (!(instance instanceof Constructor)) {
363
363
  throw new TypeError('Cannot call a class as a function');
364
364
  }
@@ -479,7 +479,7 @@ function _is_native_reflect_construct$1() {
479
479
  var NativeException = /*#__PURE__*/ (function (Error1) {
480
480
  _inherits$1(NativeException, Error1);
481
481
  function NativeException(code, message) {
482
- _class_call_check$6(this, NativeException);
482
+ _class_call_check$a(this, NativeException);
483
483
  var _this;
484
484
  (_this = _call_super$1(this, NativeException, [message])),
485
485
  _define_property$5(_this, 'code', void 0);
@@ -511,7 +511,7 @@ function _call_super(_this, derived, args) {
511
511
  : derived.apply(_this, args)
512
512
  );
513
513
  }
514
- function _class_call_check$5(instance, Constructor) {
514
+ function _class_call_check$9(instance, Constructor) {
515
515
  if (!(instance instanceof Constructor)) {
516
516
  throw new TypeError('Cannot call a class as a function');
517
517
  }
@@ -531,7 +531,7 @@ function _construct(Parent, args, Class) {
531
531
  }
532
532
  return _construct.apply(null, arguments);
533
533
  }
534
- function _defineProperties$5(target, props) {
534
+ function _defineProperties$9(target, props) {
535
535
  for (var i = 0; i < props.length; i++) {
536
536
  var descriptor = props[i];
537
537
  descriptor.enumerable = descriptor.enumerable || false;
@@ -540,8 +540,8 @@ function _defineProperties$5(target, props) {
540
540
  Object.defineProperty(target, descriptor.key, descriptor);
541
541
  }
542
542
  }
543
- function _create_class$5(Constructor, protoProps, staticProps) {
544
- if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
543
+ function _create_class$9(Constructor, protoProps, staticProps) {
544
+ if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
545
545
  return Constructor;
546
546
  }
547
547
  function _define_property$4(obj, key, value) {
@@ -641,7 +641,7 @@ function _is_native_reflect_construct() {
641
641
  var PgException = /*#__PURE__*/ (function (Error1) {
642
642
  _inherits(PgException, Error1);
643
643
  function PgException(err, message, specific) {
644
- _class_call_check$5(this, PgException);
644
+ _class_call_check$9(this, PgException);
645
645
  var _this;
646
646
  (_this = _call_super(this, PgException, [message])),
647
647
  _define_property$4(_this, 'err', void 0),
@@ -651,7 +651,7 @@ var PgException = /*#__PURE__*/ (function (Error1) {
651
651
  _this.specific = specific;
652
652
  return _this;
653
653
  }
654
- _create_class$5(PgException, [
654
+ _create_class$9(PgException, [
655
655
  {
656
656
  key: 'getStatus',
657
657
  value: function getStatus() {
@@ -687,12 +687,12 @@ var PgException = /*#__PURE__*/ (function (Error1) {
687
687
  return PgException;
688
688
  })(_wrap_native_super(Error));
689
689
 
690
- function _class_call_check$4(instance, Constructor) {
690
+ function _class_call_check$8(instance, Constructor) {
691
691
  if (!(instance instanceof Constructor)) {
692
692
  throw new TypeError('Cannot call a class as a function');
693
693
  }
694
694
  }
695
- function _defineProperties$4(target, props) {
695
+ function _defineProperties$8(target, props) {
696
696
  for (var i = 0; i < props.length; i++) {
697
697
  var descriptor = props[i];
698
698
  descriptor.enumerable = descriptor.enumerable || false;
@@ -701,8 +701,8 @@ function _defineProperties$4(target, props) {
701
701
  Object.defineProperty(target, descriptor.key, descriptor);
702
702
  }
703
703
  }
704
- function _create_class$4(Constructor, protoProps, staticProps) {
705
- if (protoProps) _defineProperties$4(Constructor.prototype, protoProps);
704
+ function _create_class$8(Constructor, protoProps, staticProps) {
705
+ if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
706
706
  return Constructor;
707
707
  }
708
708
  function _define_property$3(obj, key, value) {
@@ -733,7 +733,7 @@ var NO_OP = function (_message) {
733
733
  };
734
734
  var ConsoleLogger = /*#__PURE__*/ (function () {
735
735
  function ConsoleLogger(options) {
736
- _class_call_check$4(this, ConsoleLogger);
736
+ _class_call_check$8(this, ConsoleLogger);
737
737
  _define_property$3(this, 'log', void 0);
738
738
  _define_property$3(this, 'warn', void 0);
739
739
  _define_property$3(this, 'error', void 0);
@@ -758,7 +758,7 @@ var ConsoleLogger = /*#__PURE__*/ (function () {
758
758
  : NO_OP;
759
759
  this.debug = process.env.DEBUG === '1' ? console.log.bind(console) : NO_OP;
760
760
  }
761
- _create_class$4(ConsoleLogger, [
761
+ _create_class$8(ConsoleLogger, [
762
762
  {
763
763
  key: 'disable',
764
764
  value: function disable() {
@@ -809,12 +809,12 @@ var logger = new ConsoleLogger({
809
809
  level: LOG_LEVEL,
810
810
  });
811
811
 
812
- function _class_call_check$3(instance, Constructor) {
812
+ function _class_call_check$7(instance, Constructor) {
813
813
  if (!(instance instanceof Constructor)) {
814
814
  throw new TypeError('Cannot call a class as a function');
815
815
  }
816
816
  }
817
- function _defineProperties$3(target, props) {
817
+ function _defineProperties$7(target, props) {
818
818
  for (var i = 0; i < props.length; i++) {
819
819
  var descriptor = props[i];
820
820
  descriptor.enumerable = descriptor.enumerable || false;
@@ -823,15 +823,15 @@ function _defineProperties$3(target, props) {
823
823
  Object.defineProperty(target, descriptor.key, descriptor);
824
824
  }
825
825
  }
826
- function _create_class$3(Constructor, protoProps, staticProps) {
827
- if (staticProps) _defineProperties$3(Constructor, staticProps);
826
+ function _create_class$7(Constructor, protoProps, staticProps) {
827
+ if (staticProps) _defineProperties$7(Constructor, staticProps);
828
828
  return Constructor;
829
829
  }
830
830
  var HttpHandler = /*#__PURE__*/ (function () {
831
831
  function HttpHandler() {
832
- _class_call_check$3(this, HttpHandler);
832
+ _class_call_check$7(this, HttpHandler);
833
833
  }
834
- _create_class$3(HttpHandler, null, [
834
+ _create_class$7(HttpHandler, null, [
835
835
  {
836
836
  key: 'response',
837
837
  value: function response(response) {
@@ -875,12 +875,12 @@ var HttpHandler = /*#__PURE__*/ (function () {
875
875
  return HttpHandler;
876
876
  })();
877
877
 
878
- function _class_call_check$2(instance, Constructor) {
878
+ function _class_call_check$6(instance, Constructor) {
879
879
  if (!(instance instanceof Constructor)) {
880
880
  throw new TypeError('Cannot call a class as a function');
881
881
  }
882
882
  }
883
- function _defineProperties$2(target, props) {
883
+ function _defineProperties$6(target, props) {
884
884
  for (var i = 0; i < props.length; i++) {
885
885
  var descriptor = props[i];
886
886
  descriptor.enumerable = descriptor.enumerable || false;
@@ -889,8 +889,8 @@ function _defineProperties$2(target, props) {
889
889
  Object.defineProperty(target, descriptor.key, descriptor);
890
890
  }
891
891
  }
892
- function _create_class$2(Constructor, protoProps, staticProps) {
893
- if (staticProps) _defineProperties$2(Constructor, staticProps);
892
+ function _create_class$6(Constructor, protoProps, staticProps) {
893
+ if (staticProps) _defineProperties$6(Constructor, staticProps);
894
894
  return Constructor;
895
895
  }
896
896
  function _define_property$2(obj, key, value) {
@@ -908,9 +908,9 @@ function _define_property$2(obj, key, value) {
908
908
  }
909
909
  var CookieHelper = /*#__PURE__*/ (function () {
910
910
  function CookieHelper() {
911
- _class_call_check$2(this, CookieHelper);
911
+ _class_call_check$6(this, CookieHelper);
912
912
  }
913
- _create_class$2(CookieHelper, null, [
913
+ _create_class$6(CookieHelper, null, [
914
914
  {
915
915
  key: 'isProduction',
916
916
  value: function isProduction() {
@@ -1089,12 +1089,12 @@ function parseTemplate(template) {
1089
1089
  };
1090
1090
  }
1091
1091
 
1092
- function _class_call_check$1(instance, Constructor) {
1092
+ function _class_call_check$5(instance, Constructor) {
1093
1093
  if (!(instance instanceof Constructor)) {
1094
1094
  throw new TypeError('Cannot call a class as a function');
1095
1095
  }
1096
1096
  }
1097
- function _defineProperties$1(target, props) {
1097
+ function _defineProperties$5(target, props) {
1098
1098
  for (var i = 0; i < props.length; i++) {
1099
1099
  var descriptor = props[i];
1100
1100
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1103,9 +1103,9 @@ function _defineProperties$1(target, props) {
1103
1103
  Object.defineProperty(target, descriptor.key, descriptor);
1104
1104
  }
1105
1105
  }
1106
- function _create_class$1(Constructor, protoProps, staticProps) {
1107
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
1108
- if (staticProps) _defineProperties$1(Constructor, staticProps);
1106
+ function _create_class$5(Constructor, protoProps, staticProps) {
1107
+ if (protoProps) _defineProperties$5(Constructor.prototype, protoProps);
1108
+ if (staticProps) _defineProperties$5(Constructor, staticProps);
1109
1109
  return Constructor;
1110
1110
  }
1111
1111
  function _define_property$1(obj, key, value) {
@@ -1140,14 +1140,14 @@ function _object_spread(target) {
1140
1140
  }
1141
1141
  var PatternCompiler = /*#__PURE__*/ (function () {
1142
1142
  function PatternCompiler(defaultView, installPlugins) {
1143
- _class_call_check$1(this, PatternCompiler);
1143
+ _class_call_check$5(this, PatternCompiler);
1144
1144
  _define_property$1(this, 'defaultView', void 0);
1145
1145
  _define_property$1(this, 'handlebars', void 0);
1146
1146
  this.defaultView = defaultView;
1147
1147
  this.handlebars = Handlebars.create();
1148
1148
  installPlugins(this.handlebars);
1149
1149
  }
1150
- _create_class$1(
1150
+ _create_class$5(
1151
1151
  PatternCompiler,
1152
1152
  [
1153
1153
  {
@@ -1204,12 +1204,12 @@ var stringPlugin = function (handlebars) {
1204
1204
  });
1205
1205
  };
1206
1206
 
1207
- function _class_call_check(instance, Constructor) {
1207
+ function _class_call_check$4(instance, Constructor) {
1208
1208
  if (!(instance instanceof Constructor)) {
1209
1209
  throw new TypeError('Cannot call a class as a function');
1210
1210
  }
1211
1211
  }
1212
- function _defineProperties(target, props) {
1212
+ function _defineProperties$4(target, props) {
1213
1213
  for (var i = 0; i < props.length; i++) {
1214
1214
  var descriptor = props[i];
1215
1215
  descriptor.enumerable = descriptor.enumerable || false;
@@ -1218,8 +1218,8 @@ function _defineProperties(target, props) {
1218
1218
  Object.defineProperty(target, descriptor.key, descriptor);
1219
1219
  }
1220
1220
  }
1221
- function _create_class(Constructor, protoProps, staticProps) {
1222
- if (staticProps) _defineProperties(Constructor, staticProps);
1221
+ function _create_class$4(Constructor, protoProps, staticProps) {
1222
+ if (staticProps) _defineProperties$4(Constructor, staticProps);
1223
1223
  return Constructor;
1224
1224
  }
1225
1225
  function _define_property(obj, key, value) {
@@ -1248,9 +1248,9 @@ function _instanceof(left, right) {
1248
1248
  }
1249
1249
  var DateFormatter = /*#__PURE__*/ (function () {
1250
1250
  function DateFormatter() {
1251
- _class_call_check(this, DateFormatter);
1251
+ _class_call_check$4(this, DateFormatter);
1252
1252
  }
1253
- _create_class(DateFormatter, null, [
1253
+ _create_class$4(DateFormatter, null, [
1254
1254
  {
1255
1255
  key: 'format',
1256
1256
  value: function format(date) {
@@ -1312,7 +1312,16 @@ _define_property(
1312
1312
  DateFormatter,
1313
1313
  'getZoneAdjustedWeekday',
1314
1314
  function (dateString, options) {
1315
- var timezone = options.timezone;
1315
+ var defaultTimeZone =
1316
+ arguments.length > 2 && arguments[2] !== void 0
1317
+ ? arguments[2]
1318
+ : 'Europe/Berlin';
1319
+ var _options_timezone;
1320
+ var timezone =
1321
+ (_options_timezone = options.timezone) !== null &&
1322
+ _options_timezone !== void 0
1323
+ ? _options_timezone
1324
+ : defaultTimeZone;
1316
1325
  return new Date(dateString).toLocaleDateString(options.locale, {
1317
1326
  weekday: 'long',
1318
1327
  timeZone: timezone,
@@ -1323,7 +1332,16 @@ _define_property(
1323
1332
  DateFormatter,
1324
1333
  'getZoneAdjustedDate',
1325
1334
  function (dateString, options) {
1326
- var timezone = options.timezone;
1335
+ var defaultTimeZone =
1336
+ arguments.length > 2 && arguments[2] !== void 0
1337
+ ? arguments[2]
1338
+ : 'Europe/Berlin';
1339
+ var _options_timezone;
1340
+ var timezone =
1341
+ (_options_timezone = options.timezone) !== null &&
1342
+ _options_timezone !== void 0
1343
+ ? _options_timezone
1344
+ : defaultTimeZone;
1327
1345
  return new Date(dateString).toLocaleDateString(options.locale, {
1328
1346
  month: 'long',
1329
1347
  day: 'numeric',
@@ -1335,7 +1353,16 @@ _define_property(
1335
1353
  DateFormatter,
1336
1354
  'getZoneAdjustedTime',
1337
1355
  function (dateString, options) {
1338
- var timezone = options.timezone;
1356
+ var defaultTimeZone =
1357
+ arguments.length > 2 && arguments[2] !== void 0
1358
+ ? arguments[2]
1359
+ : 'Europe/Berlin';
1360
+ var _options_timezone;
1361
+ var timezone =
1362
+ (_options_timezone = options.timezone) !== null &&
1363
+ _options_timezone !== void 0
1364
+ ? _options_timezone
1365
+ : defaultTimeZone;
1339
1366
  return new Date(dateString)
1340
1367
  .toLocaleTimeString(options.locale, {
1341
1368
  hour: '2-digit',
@@ -1474,15 +1501,4432 @@ var userTimezonePlugin = function (handlebars, param) {
1474
1501
  );
1475
1502
  };
1476
1503
 
1504
+ function _array_like_to_array(arr, len) {
1505
+ if (len == null || len > arr.length) len = arr.length;
1506
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1507
+ return arr2;
1508
+ }
1509
+ function _array_with_holes(arr) {
1510
+ if (Array.isArray(arr)) return arr;
1511
+ }
1512
+ function _iterable_to_array_limit(arr, i) {
1513
+ var _i =
1514
+ arr == null
1515
+ ? null
1516
+ : (typeof Symbol !== 'undefined' && arr[Symbol.iterator]) ||
1517
+ arr['@@iterator'];
1518
+ if (_i == null) return;
1519
+ var _arr = [];
1520
+ var _n = true;
1521
+ var _d = false;
1522
+ var _s, _e;
1523
+ try {
1524
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1525
+ _arr.push(_s.value);
1526
+ if (i && _arr.length === i) break;
1527
+ }
1528
+ } catch (err) {
1529
+ _d = true;
1530
+ _e = err;
1531
+ } finally {
1532
+ try {
1533
+ if (!_n && _i['return'] != null) _i['return']();
1534
+ } finally {
1535
+ if (_d) throw _e;
1536
+ }
1537
+ }
1538
+ return _arr;
1539
+ }
1540
+ function _non_iterable_rest() {
1541
+ throw new TypeError(
1542
+ 'Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
1543
+ );
1544
+ }
1545
+ function _sliced_to_array(arr, i) {
1546
+ return (
1547
+ _array_with_holes(arr) ||
1548
+ _iterable_to_array_limit(arr, i) ||
1549
+ _unsupported_iterable_to_array(arr, i) ||
1550
+ _non_iterable_rest()
1551
+ );
1552
+ }
1553
+ function _unsupported_iterable_to_array(o, minLen) {
1554
+ if (!o) return;
1555
+ if (typeof o === 'string') return _array_like_to_array(o, minLen);
1556
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1557
+ if (n === 'Object' && o.constructor) n = o.constructor.name;
1558
+ if (n === 'Map' || n === 'Set') return Array.from(n);
1559
+ if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1560
+ return _array_like_to_array(o, minLen);
1561
+ }
1562
+ function splitCamelCase(value) {
1563
+ var _value_match;
1564
+ return (_value_match = value.match(/[A-Z]+(?![a-z])|[A-Z]?[a-z]+/g)) !==
1565
+ null && _value_match !== void 0
1566
+ ? _value_match
1567
+ : [];
1568
+ }
1569
+ function sanitizeFallback(fallback) {
1570
+ var cleaned = (fallback !== null && fallback !== void 0 ? fallback : 'org')
1571
+ .toLowerCase()
1572
+ .replace(/[^a-z0-9-]/g, '');
1573
+ return cleaned.length > 0 ? cleaned : 'org';
1574
+ }
1575
+ function buildPrefixFromSegments(segments, useShortSuffixRule) {
1576
+ if (segments.length === 0) return '';
1577
+ if (useShortSuffixRule && segments.length === 2) {
1578
+ var _segments = _sliced_to_array(segments, 2),
1579
+ first = _segments[0],
1580
+ second = _segments[1];
1581
+ if (second.length <= 2 && first.length >= 2) {
1582
+ return ''
1583
+ .concat(first[0])
1584
+ .concat(first[1])
1585
+ .concat(second[0])
1586
+ .toLowerCase();
1587
+ }
1588
+ }
1589
+ return segments
1590
+ .map(function (segment) {
1591
+ return segment[0];
1592
+ })
1593
+ .join('')
1594
+ .toLowerCase();
1595
+ }
1596
+ function generatePrefix(name, fallback) {
1597
+ var safeFallback = sanitizeFallback(fallback);
1598
+ if (!name) return safeFallback;
1599
+ var words = name
1600
+ .replace(/[^a-zA-Z0-9]+/g, ' ')
1601
+ .trim()
1602
+ .split(/\s+/)
1603
+ .filter(Boolean);
1604
+ if (words.length === 0) return safeFallback;
1605
+ if (words.length === 1) {
1606
+ var lettersOnly = words[0].replace(/[^a-zA-Z]/g, '');
1607
+ if (!lettersOnly) return safeFallback;
1608
+ if (lettersOnly === lettersOnly.toLowerCase()) {
1609
+ return lettersOnly;
1610
+ }
1611
+ if (lettersOnly === lettersOnly.toUpperCase()) {
1612
+ return lettersOnly.toLowerCase();
1613
+ }
1614
+ var segments = splitCamelCase(lettersOnly);
1615
+ var prefix = buildPrefixFromSegments(segments, true);
1616
+ return prefix.length > 0 ? prefix : safeFallback;
1617
+ }
1618
+ var segments1 = words.flatMap(function (word) {
1619
+ var lettersOnly = word.replace(/[^a-zA-Z]/g, '');
1620
+ if (!lettersOnly) return [];
1621
+ return splitCamelCase(lettersOnly);
1622
+ });
1623
+ var prefix1 = buildPrefixFromSegments(segments1, false);
1624
+ return prefix1.length > 0 ? prefix1 : safeFallback;
1625
+ }
1626
+
1627
+ function _class_call_check$3(instance, Constructor) {
1628
+ if (!(instance instanceof Constructor)) {
1629
+ throw new TypeError('Cannot call a class as a function');
1630
+ }
1631
+ }
1632
+ function _defineProperties$3(target, props) {
1633
+ for (var i = 0; i < props.length; i++) {
1634
+ var descriptor = props[i];
1635
+ descriptor.enumerable = descriptor.enumerable || false;
1636
+ descriptor.configurable = true;
1637
+ if ('value' in descriptor) descriptor.writable = true;
1638
+ Object.defineProperty(target, descriptor.key, descriptor);
1639
+ }
1640
+ }
1641
+ function _create_class$3(Constructor, protoProps, staticProps) {
1642
+ if (staticProps) _defineProperties$3(Constructor, staticProps);
1643
+ return Constructor;
1644
+ }
1645
+ var LabelMapper = /*#__PURE__*/ (function () {
1646
+ function LabelMapper() {
1647
+ _class_call_check$3(this, LabelMapper);
1648
+ }
1649
+ _create_class$3(LabelMapper, null, [
1650
+ {
1651
+ key: 'intLabel',
1652
+ value: function intLabel(v, suffix) {
1653
+ var fallback =
1654
+ arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : '–';
1655
+ if (typeof v !== 'number' || !Number.isFinite(v)) return fallback;
1656
+ return ''
1657
+ .concat(new Intl.NumberFormat('de-DE').format(v))
1658
+ .concat(suffix);
1659
+ },
1660
+ },
1661
+ ]);
1662
+ return LabelMapper;
1663
+ })();
1664
+
1665
+ function _class_call_check$2(instance, Constructor) {
1666
+ if (!(instance instanceof Constructor)) {
1667
+ throw new TypeError('Cannot call a class as a function');
1668
+ }
1669
+ }
1670
+ function _defineProperties$2(target, props) {
1671
+ for (var i = 0; i < props.length; i++) {
1672
+ var descriptor = props[i];
1673
+ descriptor.enumerable = descriptor.enumerable || false;
1674
+ descriptor.configurable = true;
1675
+ if ('value' in descriptor) descriptor.writable = true;
1676
+ Object.defineProperty(target, descriptor.key, descriptor);
1677
+ }
1678
+ }
1679
+ function _create_class$2(Constructor, protoProps, staticProps) {
1680
+ if (staticProps) _defineProperties$2(Constructor, staticProps);
1681
+ return Constructor;
1682
+ }
1683
+ var FormSanitizer = /*#__PURE__*/ (function () {
1684
+ function FormSanitizer() {
1685
+ _class_call_check$2(this, FormSanitizer);
1686
+ }
1687
+ _create_class$2(FormSanitizer, null, [
1688
+ {
1689
+ key: 'formHoldsNewData',
1690
+ value: function formHoldsNewData(localData, data) {
1691
+ var formDataKeys = Object.keys(data);
1692
+ var _iteratorNormalCompletion = true,
1693
+ _didIteratorError = false,
1694
+ _iteratorError = undefined;
1695
+ try {
1696
+ for (
1697
+ var _iterator = formDataKeys[Symbol.iterator](), _step;
1698
+ !(_iteratorNormalCompletion = (_step = _iterator.next()).done);
1699
+ _iteratorNormalCompletion = true
1700
+ ) {
1701
+ var key = _step.value;
1702
+ var formDataValue = data[key];
1703
+ if (formDataValue !== localData[key]) {
1704
+ return true;
1705
+ }
1706
+ }
1707
+ } catch (err) {
1708
+ _didIteratorError = true;
1709
+ _iteratorError = err;
1710
+ } finally {
1711
+ try {
1712
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1713
+ _iterator.return();
1714
+ }
1715
+ } finally {
1716
+ if (_didIteratorError) {
1717
+ throw _iteratorError;
1718
+ }
1719
+ }
1720
+ }
1721
+ return false;
1722
+ },
1723
+ },
1724
+ ]);
1725
+ return FormSanitizer;
1726
+ })();
1727
+
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
+ function _class_call_check$1(instance, Constructor) {
5807
+ if (!(instance instanceof Constructor)) {
5808
+ throw new TypeError('Cannot call a class as a function');
5809
+ }
5810
+ }
5811
+ function _defineProperties$1(target, props) {
5812
+ for (var i = 0; i < props.length; i++) {
5813
+ var descriptor = props[i];
5814
+ descriptor.enumerable = descriptor.enumerable || false;
5815
+ descriptor.configurable = true;
5816
+ if ('value' in descriptor) descriptor.writable = true;
5817
+ Object.defineProperty(target, descriptor.key, descriptor);
5818
+ }
5819
+ }
5820
+ function _create_class$1(Constructor, protoProps, staticProps) {
5821
+ if (staticProps) _defineProperties$1(Constructor, staticProps);
5822
+ return Constructor;
5823
+ }
5824
+ var InfoFormatter = /*#__PURE__*/ (function () {
5825
+ function InfoFormatter() {
5826
+ _class_call_check$1(this, InfoFormatter);
5827
+ }
5828
+ _create_class$1(InfoFormatter, null, [
5829
+ {
5830
+ key: 'getName',
5831
+ value: function getName(firstName, lastName, email) {
5832
+ if (firstName && lastName) {
5833
+ return ''.concat(firstName, ' ').concat(lastName);
5834
+ }
5835
+ if (firstName) {
5836
+ return firstName;
5837
+ }
5838
+ if (lastName) {
5839
+ return lastName;
5840
+ }
5841
+ if (email) {
5842
+ return email;
5843
+ }
5844
+ return 'Nutzer';
5845
+ },
5846
+ },
5847
+ {
5848
+ key: 'getEmail',
5849
+ value: function getEmail(email) {
5850
+ if (email) {
5851
+ return email;
5852
+ }
5853
+ return;
5854
+ },
5855
+ },
5856
+ {
5857
+ key: 'getLetter',
5858
+ value: function getLetter(name) {
5859
+ if (!name) return null;
5860
+ return name.charAt(0).toUpperCase();
5861
+ },
5862
+ },
5863
+ {
5864
+ key: 'getBackgroundColor',
5865
+ value: function getBackgroundColor(email) {
5866
+ return stringToColor(email);
5867
+ },
5868
+ },
5869
+ {
5870
+ key: 'getInitial',
5871
+ value: function getInitial(name) {
5872
+ return name.slice(0, 1).toUpperCase();
5873
+ },
5874
+ },
5875
+ ]);
5876
+ return InfoFormatter;
5877
+ })();
5878
+
5879
+ function _class_call_check(instance, Constructor) {
5880
+ if (!(instance instanceof Constructor)) {
5881
+ throw new TypeError('Cannot call a class as a function');
5882
+ }
5883
+ }
5884
+ function _defineProperties(target, props) {
5885
+ for (var i = 0; i < props.length; i++) {
5886
+ var descriptor = props[i];
5887
+ descriptor.enumerable = descriptor.enumerable || false;
5888
+ descriptor.configurable = true;
5889
+ if ('value' in descriptor) descriptor.writable = true;
5890
+ Object.defineProperty(target, descriptor.key, descriptor);
5891
+ }
5892
+ }
5893
+ function _create_class(Constructor, protoProps, staticProps) {
5894
+ if (staticProps) _defineProperties(Constructor, staticProps);
5895
+ return Constructor;
5896
+ }
5897
+ var LanguageHandler = /*#__PURE__*/ (function () {
5898
+ function LanguageHandler() {
5899
+ _class_call_check(this, LanguageHandler);
5900
+ }
5901
+ _create_class(LanguageHandler, null, [
5902
+ {
5903
+ key: 'langFromLocale',
5904
+ value: function langFromLocale(locale) {
5905
+ try {
5906
+ return new Intl.Locale(locale).language;
5907
+ } catch (e) {
5908
+ return locale.split(/[-_]/)[0].toLowerCase();
5909
+ }
5910
+ },
5911
+ },
5912
+ ]);
5913
+ return LanguageHandler;
5914
+ })();
5915
+
1477
5916
  exports.CookieHelper = CookieHelper;
1478
5917
  exports.DateFormatter = DateFormatter;
5918
+ exports.FormSanitizer = FormSanitizer;
1479
5919
  exports.HttpHandler = HttpHandler;
1480
5920
  exports.HttpStatus = HttpStatus;
5921
+ exports.InfoFormatter = InfoFormatter;
5922
+ exports.LabelMapper = LabelMapper;
5923
+ exports.LanguageHandler = LanguageHandler;
1481
5924
  exports.NativeException = NativeException;
1482
5925
  exports.PatternCompiler = PatternCompiler;
1483
5926
  exports.PgException = PgException;
1484
5927
  exports.PostgresError = PostgresError;
1485
5928
  exports.eqPlugin = eqPlugin;
5929
+ exports.generatePrefix = generatePrefix;
1486
5930
  exports.logger = logger;
1487
5931
  exports.markdownPlugin = markdownPlugin;
1488
5932
  exports.parseTemplate = parseTemplate;