@teselagen/ui 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. package/index.js +2454 -2290
  2. package/index.mjs +2454 -2290
  3. package/index.umd.js +872 -708
  4. package/package.json +1 -1
package/index.umd.js CHANGED
@@ -5783,145 +5783,6 @@ var __async = (__this, __arguments, generator) => {
5783
5783
  }, "__assign");
5784
5784
  return __assign$5.apply(this, arguments);
5785
5785
  }, "__assign$5");
5786
- function __awaiter(thisArg, _arguments, P2, generator) {
5787
- function adopt(value) {
5788
- return value instanceof P2 ? value : new P2(function(resolve) {
5789
- resolve(value);
5790
- });
5791
- }
5792
- __name(adopt, "adopt");
5793
- return new (P2 || (P2 = Promise))(function(resolve, reject) {
5794
- function fulfilled(value) {
5795
- try {
5796
- step2(generator.next(value));
5797
- } catch (e) {
5798
- reject(e);
5799
- }
5800
- }
5801
- __name(fulfilled, "fulfilled");
5802
- function rejected(value) {
5803
- try {
5804
- step2(generator["throw"](value));
5805
- } catch (e) {
5806
- reject(e);
5807
- }
5808
- }
5809
- __name(rejected, "rejected");
5810
- function step2(result) {
5811
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
5812
- }
5813
- __name(step2, "step");
5814
- step2((generator = generator.apply(thisArg, _arguments || [])).next());
5815
- });
5816
- }
5817
- __name(__awaiter, "__awaiter");
5818
- function __generator(thisArg, body) {
5819
- var _2 = { label: 0, sent: function() {
5820
- if (t2[0] & 1)
5821
- throw t2[1];
5822
- return t2[1];
5823
- }, trys: [], ops: [] }, f2, y2, t2, g2;
5824
- return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
5825
- return this;
5826
- }), g2;
5827
- function verb(n2) {
5828
- return function(v2) {
5829
- return step2([n2, v2]);
5830
- };
5831
- }
5832
- __name(verb, "verb");
5833
- function step2(op) {
5834
- if (f2)
5835
- throw new TypeError("Generator is already executing.");
5836
- while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
5837
- try {
5838
- if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
5839
- return t2;
5840
- if (y2 = 0, t2)
5841
- op = [op[0] & 2, t2.value];
5842
- switch (op[0]) {
5843
- case 0:
5844
- case 1:
5845
- t2 = op;
5846
- break;
5847
- case 4:
5848
- _2.label++;
5849
- return { value: op[1], done: false };
5850
- case 5:
5851
- _2.label++;
5852
- y2 = op[1];
5853
- op = [0];
5854
- continue;
5855
- case 7:
5856
- op = _2.ops.pop();
5857
- _2.trys.pop();
5858
- continue;
5859
- default:
5860
- if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
5861
- _2 = 0;
5862
- continue;
5863
- }
5864
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
5865
- _2.label = op[1];
5866
- break;
5867
- }
5868
- if (op[0] === 6 && _2.label < t2[1]) {
5869
- _2.label = t2[1];
5870
- t2 = op;
5871
- break;
5872
- }
5873
- if (t2 && _2.label < t2[2]) {
5874
- _2.label = t2[2];
5875
- _2.ops.push(op);
5876
- break;
5877
- }
5878
- if (t2[2])
5879
- _2.ops.pop();
5880
- _2.trys.pop();
5881
- continue;
5882
- }
5883
- op = body.call(thisArg, _2);
5884
- } catch (e) {
5885
- op = [6, e];
5886
- y2 = 0;
5887
- } finally {
5888
- f2 = t2 = 0;
5889
- }
5890
- if (op[0] & 5)
5891
- throw op[1];
5892
- return { value: op[0] ? op[1] : void 0, done: true };
5893
- }
5894
- __name(step2, "step");
5895
- }
5896
- __name(__generator, "__generator");
5897
- function __read$1(o2, n2) {
5898
- var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
5899
- if (!m2)
5900
- return o2;
5901
- var i2 = m2.call(o2), r2, ar = [], e;
5902
- try {
5903
- while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
5904
- ar.push(r2.value);
5905
- } catch (error) {
5906
- e = { error };
5907
- } finally {
5908
- try {
5909
- if (r2 && !r2.done && (m2 = i2["return"]))
5910
- m2.call(i2);
5911
- } finally {
5912
- if (e)
5913
- throw e.error;
5914
- }
5915
- }
5916
- return ar;
5917
- }
5918
- __name(__read$1, "__read$1");
5919
- function __spread() {
5920
- for (var ar = [], i2 = 0; i2 < arguments.length; i2++)
5921
- ar = ar.concat(__read$1(arguments[i2]));
5922
- return ar;
5923
- }
5924
- __name(__spread, "__spread");
5925
5786
  var grayScale = {
5926
5787
  BLACK: "#111418",
5927
5788
  DARK_GRAY1: "#1C2127",
@@ -10099,9 +9960,9 @@ var __async = (__this, __arguments, generator) => {
10099
9960
  }
10100
9961
  var propTypesExports = propTypes$1.exports;
10101
9962
  const PropTypes$2 = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
10102
- var key = "__global_unique_id__";
9963
+ var key$1 = "__global_unique_id__";
10103
9964
  var gud = /* @__PURE__ */ __name(function() {
10104
- return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
9965
+ return commonjsGlobal[key$1] = (commonjsGlobal[key$1] || 0) + 1;
10105
9966
  }, "gud");
10106
9967
  var __DEV__ = process.env.NODE_ENV !== "production";
10107
9968
  var warning$1 = /* @__PURE__ */ __name(function() {
@@ -17687,6 +17548,145 @@ var __async = (__this, __arguments, generator) => {
17687
17548
  }(AbstractPureComponent2)
17688
17549
  );
17689
17550
  var ContextMenu = contextMenu$1;
17551
+ function __awaiter(thisArg, _arguments, P2, generator) {
17552
+ function adopt(value) {
17553
+ return value instanceof P2 ? value : new P2(function(resolve) {
17554
+ resolve(value);
17555
+ });
17556
+ }
17557
+ __name(adopt, "adopt");
17558
+ return new (P2 || (P2 = Promise))(function(resolve, reject) {
17559
+ function fulfilled(value) {
17560
+ try {
17561
+ step2(generator.next(value));
17562
+ } catch (e) {
17563
+ reject(e);
17564
+ }
17565
+ }
17566
+ __name(fulfilled, "fulfilled");
17567
+ function rejected(value) {
17568
+ try {
17569
+ step2(generator["throw"](value));
17570
+ } catch (e) {
17571
+ reject(e);
17572
+ }
17573
+ }
17574
+ __name(rejected, "rejected");
17575
+ function step2(result) {
17576
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
17577
+ }
17578
+ __name(step2, "step");
17579
+ step2((generator = generator.apply(thisArg, _arguments || [])).next());
17580
+ });
17581
+ }
17582
+ __name(__awaiter, "__awaiter");
17583
+ function __generator(thisArg, body) {
17584
+ var _2 = { label: 0, sent: function() {
17585
+ if (t2[0] & 1)
17586
+ throw t2[1];
17587
+ return t2[1];
17588
+ }, trys: [], ops: [] }, f2, y2, t2, g2;
17589
+ return g2 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
17590
+ return this;
17591
+ }), g2;
17592
+ function verb(n2) {
17593
+ return function(v2) {
17594
+ return step2([n2, v2]);
17595
+ };
17596
+ }
17597
+ __name(verb, "verb");
17598
+ function step2(op) {
17599
+ if (f2)
17600
+ throw new TypeError("Generator is already executing.");
17601
+ while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
17602
+ try {
17603
+ if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
17604
+ return t2;
17605
+ if (y2 = 0, t2)
17606
+ op = [op[0] & 2, t2.value];
17607
+ switch (op[0]) {
17608
+ case 0:
17609
+ case 1:
17610
+ t2 = op;
17611
+ break;
17612
+ case 4:
17613
+ _2.label++;
17614
+ return { value: op[1], done: false };
17615
+ case 5:
17616
+ _2.label++;
17617
+ y2 = op[1];
17618
+ op = [0];
17619
+ continue;
17620
+ case 7:
17621
+ op = _2.ops.pop();
17622
+ _2.trys.pop();
17623
+ continue;
17624
+ default:
17625
+ if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
17626
+ _2 = 0;
17627
+ continue;
17628
+ }
17629
+ if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
17630
+ _2.label = op[1];
17631
+ break;
17632
+ }
17633
+ if (op[0] === 6 && _2.label < t2[1]) {
17634
+ _2.label = t2[1];
17635
+ t2 = op;
17636
+ break;
17637
+ }
17638
+ if (t2 && _2.label < t2[2]) {
17639
+ _2.label = t2[2];
17640
+ _2.ops.push(op);
17641
+ break;
17642
+ }
17643
+ if (t2[2])
17644
+ _2.ops.pop();
17645
+ _2.trys.pop();
17646
+ continue;
17647
+ }
17648
+ op = body.call(thisArg, _2);
17649
+ } catch (e) {
17650
+ op = [6, e];
17651
+ y2 = 0;
17652
+ } finally {
17653
+ f2 = t2 = 0;
17654
+ }
17655
+ if (op[0] & 5)
17656
+ throw op[1];
17657
+ return { value: op[0] ? op[1] : void 0, done: true };
17658
+ }
17659
+ __name(step2, "step");
17660
+ }
17661
+ __name(__generator, "__generator");
17662
+ function __read$1(o2, n2) {
17663
+ var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
17664
+ if (!m2)
17665
+ return o2;
17666
+ var i2 = m2.call(o2), r2, ar = [], e;
17667
+ try {
17668
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
17669
+ ar.push(r2.value);
17670
+ } catch (error) {
17671
+ e = { error };
17672
+ } finally {
17673
+ try {
17674
+ if (r2 && !r2.done && (m2 = i2["return"]))
17675
+ m2.call(i2);
17676
+ } finally {
17677
+ if (e)
17678
+ throw e.error;
17679
+ }
17680
+ }
17681
+ return ar;
17682
+ }
17683
+ __name(__read$1, "__read$1");
17684
+ function __spread() {
17685
+ for (var ar = [], i2 = 0; i2 < arguments.length; i2++)
17686
+ ar = ar.concat(__read$1(arguments[i2]));
17687
+ return ar;
17688
+ }
17689
+ __name(__spread, "__spread");
17690
17690
  var COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
17691
17691
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
17692
17692
  ["aac", "audio/aac"],
@@ -19948,10 +19948,10 @@ var __async = (__this, __arguments, generator) => {
19948
19948
  return new String(key2).toString();
19949
19949
  }
19950
19950
  __name(stringifyKey, "stringifyKey");
19951
- function toPrimitive$2(value) {
19951
+ function toPrimitive$3(value) {
19952
19952
  return value === null ? null : typeof value === "object" ? "" + value : value;
19953
19953
  }
19954
- __name(toPrimitive$2, "toPrimitive$2");
19954
+ __name(toPrimitive$3, "toPrimitive$3");
19955
19955
  function hasProp(target, prop) {
19956
19956
  return objectPrototype$2.hasOwnProperty.call(target, prop);
19957
19957
  }
@@ -20935,7 +20935,7 @@ var __async = (__this, __arguments, generator) => {
20935
20935
  return this.name_ + "[" + this.value_ + "]";
20936
20936
  }, "toString");
20937
20937
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
20938
- return toPrimitive$2(this.get());
20938
+ return toPrimitive$3(this.get());
20939
20939
  }, "valueOf");
20940
20940
  _proto[_Symbol$toPrimitive] = function() {
20941
20941
  return this.valueOf();
@@ -21139,7 +21139,7 @@ var __async = (__this, __arguments, generator) => {
21139
21139
  return this.name_ + "[" + this.derivation.toString() + "]";
21140
21140
  }, "toString");
21141
21141
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
21142
- return toPrimitive$2(this.get());
21142
+ return toPrimitive$3(this.get());
21143
21143
  }, "valueOf");
21144
21144
  _proto[_Symbol$toPrimitive$1] = function() {
21145
21145
  return this.valueOf();
@@ -37697,20 +37697,11 @@ ${latestSubscriptionCallbackError.current.stack}
37697
37697
  return true;
37698
37698
  }
37699
37699
  }, "_fails");
37700
- var _descriptors;
37701
- var hasRequired_descriptors;
37702
- function require_descriptors() {
37703
- if (hasRequired_descriptors)
37704
- return _descriptors;
37705
- hasRequired_descriptors = 1;
37706
- _descriptors = !_fails(function() {
37707
- return Object.defineProperty({}, "a", { get: function() {
37708
- return 7;
37709
- } }).a != 7;
37710
- });
37711
- return _descriptors;
37712
- }
37713
- __name(require_descriptors, "require_descriptors");
37700
+ var _descriptors = !_fails(function() {
37701
+ return Object.defineProperty({}, "a", { get: function() {
37702
+ return 7;
37703
+ } }).a != 7;
37704
+ });
37714
37705
  var _domCreate;
37715
37706
  var hasRequired_domCreate;
37716
37707
  function require_domCreate() {
@@ -37726,20 +37717,11 @@ ${latestSubscriptionCallbackError.current.stack}
37726
37717
  return _domCreate;
37727
37718
  }
37728
37719
  __name(require_domCreate, "require_domCreate");
37729
- var _ie8DomDefine;
37730
- var hasRequired_ie8DomDefine;
37731
- function require_ie8DomDefine() {
37732
- if (hasRequired_ie8DomDefine)
37733
- return _ie8DomDefine;
37734
- hasRequired_ie8DomDefine = 1;
37735
- _ie8DomDefine = !require_descriptors() && !_fails(function() {
37736
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
37737
- return 7;
37738
- } }).a != 7;
37739
- });
37740
- return _ie8DomDefine;
37741
- }
37742
- __name(require_ie8DomDefine, "require_ie8DomDefine");
37720
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
37721
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
37722
+ return 7;
37723
+ } }).a != 7;
37724
+ });
37743
37725
  var isObject$6 = _isObject;
37744
37726
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
37745
37727
  if (!isObject$6(it))
@@ -37753,33 +37735,25 @@ ${latestSubscriptionCallbackError.current.stack}
37753
37735
  return val;
37754
37736
  throw TypeError("Can't convert object to primitive value");
37755
37737
  }, "_toPrimitive");
37756
- var hasRequired_objectDp;
37757
- function require_objectDp() {
37758
- if (hasRequired_objectDp)
37759
- return _objectDp;
37760
- hasRequired_objectDp = 1;
37761
- var anObject2 = _anObject;
37762
- var IE8_DOM_DEFINE2 = require_ie8DomDefine();
37763
- var toPrimitive2 = _toPrimitive;
37764
- var dP2 = Object.defineProperty;
37765
- _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
37766
- anObject2(O2);
37767
- P2 = toPrimitive2(P2, true);
37768
- anObject2(Attributes);
37769
- if (IE8_DOM_DEFINE2)
37770
- try {
37771
- return dP2(O2, P2, Attributes);
37772
- } catch (e) {
37773
- }
37774
- if ("get" in Attributes || "set" in Attributes)
37775
- throw TypeError("Accessors not supported!");
37776
- if ("value" in Attributes)
37777
- O2[P2] = Attributes.value;
37778
- return O2;
37779
- }, "defineProperty");
37780
- return _objectDp;
37781
- }
37782
- __name(require_objectDp, "require_objectDp");
37738
+ var anObject$5 = _anObject;
37739
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
37740
+ var toPrimitive$2 = _toPrimitive;
37741
+ var dP$3 = Object.defineProperty;
37742
+ _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
37743
+ anObject$5(O2);
37744
+ P2 = toPrimitive$2(P2, true);
37745
+ anObject$5(Attributes);
37746
+ if (IE8_DOM_DEFINE$1)
37747
+ try {
37748
+ return dP$3(O2, P2, Attributes);
37749
+ } catch (e) {
37750
+ }
37751
+ if ("get" in Attributes || "set" in Attributes)
37752
+ throw TypeError("Accessors not supported!");
37753
+ if ("value" in Attributes)
37754
+ O2[P2] = Attributes.value;
37755
+ return O2;
37756
+ }, "defineProperty");
37783
37757
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
37784
37758
  return {
37785
37759
  enumerable: !(bitmap & 1),
@@ -37788,9 +37762,9 @@ ${latestSubscriptionCallbackError.current.stack}
37788
37762
  value
37789
37763
  };
37790
37764
  }, "_propertyDesc");
37791
- var dP$2 = require_objectDp();
37765
+ var dP$2 = _objectDp;
37792
37766
  var createDesc$3 = _propertyDesc;
37793
- var _hide = require_descriptors() ? function(object, key2, value) {
37767
+ var _hide = _descriptors ? function(object, key2, value) {
37794
37768
  return dP$2.f(object, key2, createDesc$3(1, value));
37795
37769
  } : function(object, key2, value) {
37796
37770
  object[key2] = value;
@@ -37968,7 +37942,15 @@ ${latestSubscriptionCallbackError.current.stack}
37968
37942
  var _objectGops = {};
37969
37943
  _objectGops.f = Object.getOwnPropertySymbols;
37970
37944
  var _objectPie = {};
37971
- _objectPie.f = {}.propertyIsEnumerable;
37945
+ var hasRequired_objectPie;
37946
+ function require_objectPie() {
37947
+ if (hasRequired_objectPie)
37948
+ return _objectPie;
37949
+ hasRequired_objectPie = 1;
37950
+ _objectPie.f = {}.propertyIsEnumerable;
37951
+ return _objectPie;
37952
+ }
37953
+ __name(require_objectPie, "require_objectPie");
37972
37954
  var defined$1 = _defined;
37973
37955
  var _toObject = /* @__PURE__ */ __name(function(it) {
37974
37956
  return Object(defined$1(it));
@@ -37979,10 +37961,10 @@ ${latestSubscriptionCallbackError.current.stack}
37979
37961
  if (hasRequired_objectAssign)
37980
37962
  return _objectAssign;
37981
37963
  hasRequired_objectAssign = 1;
37982
- var DESCRIPTORS2 = require_descriptors();
37964
+ var DESCRIPTORS2 = _descriptors;
37983
37965
  var getKeys2 = _objectKeys;
37984
37966
  var gOPS2 = _objectGops;
37985
- var pIE2 = _objectPie;
37967
+ var pIE2 = require_objectPie();
37986
37968
  var toObject2 = _toObject;
37987
37969
  var IObject2 = _iobject;
37988
37970
  var $assign = Object.assign;
@@ -38045,10 +38027,10 @@ ${latestSubscriptionCallbackError.current.stack}
38045
38027
  }, "_iterStep");
38046
38028
  var _iterators = {};
38047
38029
  var _redefine = _hide;
38048
- var dP$1 = require_objectDp();
38030
+ var dP$1 = _objectDp;
38049
38031
  var anObject$4 = _anObject;
38050
38032
  var getKeys$1 = _objectKeys;
38051
- var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
38033
+ var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties2(O2, Properties) {
38052
38034
  anObject$4(O2);
38053
38035
  var keys2 = getKeys$1(Properties);
38054
38036
  var length = keys2.length;
@@ -38115,7 +38097,7 @@ ${latestSubscriptionCallbackError.current.stack}
38115
38097
  };
38116
38098
  $exports.store = store;
38117
38099
  var _wksExports = _wks.exports;
38118
- var def = require_objectDp().f;
38100
+ var def = _objectDp.f;
38119
38101
  var has$9 = _has;
38120
38102
  var TAG$1 = _wksExports("toStringTag");
38121
38103
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -38388,7 +38370,7 @@ ${latestSubscriptionCallbackError.current.stack}
38388
38370
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
38389
38371
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
38390
38372
  }, "_isArrayIter");
38391
- var $defineProperty$1 = require_objectDp();
38373
+ var $defineProperty$1 = _objectDp;
38392
38374
  var createDesc$2 = _propertyDesc;
38393
38375
  var _createProperty = /* @__PURE__ */ __name(function(object, index2, value) {
38394
38376
  if (index2 in object)
@@ -38517,7 +38499,7 @@ ${latestSubscriptionCallbackError.current.stack}
38517
38499
  }
38518
38500
  }, "_default$7");
38519
38501
  var $export$3 = _export;
38520
- $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
38502
+ $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
38521
38503
  var $Object$1 = _coreExports.Object;
38522
38504
  var defineProperty$6 = /* @__PURE__ */ __name(function defineProperty2(it, key2, desc) {
38523
38505
  return $Object$1.defineProperty(it, key2, desc);
@@ -38558,7 +38540,7 @@ ${latestSubscriptionCallbackError.current.stack}
38558
38540
  var META$1 = _uid("meta");
38559
38541
  var isObject$5 = _isObject;
38560
38542
  var has$7 = _has;
38561
- var setDesc = require_objectDp().f;
38543
+ var setDesc = _objectDp.f;
38562
38544
  var id = 0;
38563
38545
  var isExtensible = Object.isExtensible || function() {
38564
38546
  return true;
@@ -38611,7 +38593,7 @@ ${latestSubscriptionCallbackError.current.stack}
38611
38593
  var _metaExports = _meta.exports;
38612
38594
  var core = _coreExports;
38613
38595
  var wksExt$1 = _wksExt;
38614
- var defineProperty$4 = require_objectDp().f;
38596
+ var defineProperty$4 = _objectDp.f;
38615
38597
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
38616
38598
  var $Symbol2 = core.Symbol || (core.Symbol = {});
38617
38599
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -38619,7 +38601,7 @@ ${latestSubscriptionCallbackError.current.stack}
38619
38601
  }, "_wksDefine");
38620
38602
  var getKeys = _objectKeys;
38621
38603
  var gOPS$1 = _objectGops;
38622
- var pIE$1 = _objectPie;
38604
+ var pIE$1 = require_objectPie();
38623
38605
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
38624
38606
  var result = getKeys(it);
38625
38607
  var getSymbols2 = gOPS$1.f;
@@ -38660,14 +38642,14 @@ ${latestSubscriptionCallbackError.current.stack}
38660
38642
  return windowNames && toString$3.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
38661
38643
  }, "getOwnPropertyNames");
38662
38644
  var _objectGopd = {};
38663
- var pIE = _objectPie;
38645
+ var pIE = require_objectPie();
38664
38646
  var createDesc$1 = _propertyDesc;
38665
38647
  var toIObject$1 = _toIobject;
38666
38648
  var toPrimitive$1 = _toPrimitive;
38667
38649
  var has$6 = _has;
38668
- var IE8_DOM_DEFINE = require_ie8DomDefine();
38650
+ var IE8_DOM_DEFINE = _ie8DomDefine;
38669
38651
  var gOPD$2 = Object.getOwnPropertyDescriptor;
38670
- _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
38652
+ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor2(O2, P2) {
38671
38653
  O2 = toIObject$1(O2);
38672
38654
  P2 = toPrimitive$1(P2, true);
38673
38655
  if (IE8_DOM_DEFINE)
@@ -38680,7 +38662,7 @@ ${latestSubscriptionCallbackError.current.stack}
38680
38662
  }, "getOwnPropertyDescriptor");
38681
38663
  var global$1 = _globalExports;
38682
38664
  var has$5 = _has;
38683
- var DESCRIPTORS = require_descriptors();
38665
+ var DESCRIPTORS = _descriptors;
38684
38666
  var $export$2 = _export;
38685
38667
  var redefine = _redefine;
38686
38668
  var META = _metaExports.KEY;
@@ -38703,7 +38685,7 @@ ${latestSubscriptionCallbackError.current.stack}
38703
38685
  var gOPNExt = _objectGopnExt;
38704
38686
  var $GOPD = _objectGopd;
38705
38687
  var $GOPS = _objectGops;
38706
- var $DP = require_objectDp();
38688
+ var $DP = _objectDp;
38707
38689
  var $keys$1 = _objectKeys;
38708
38690
  var gOPD$1 = $GOPD.f;
38709
38691
  var dP = $DP.f;
@@ -38840,7 +38822,7 @@ ${latestSubscriptionCallbackError.current.stack}
38840
38822
  $GOPD.f = $getOwnPropertyDescriptor;
38841
38823
  $DP.f = $defineProperty;
38842
38824
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
38843
- _objectPie.f = $propertyIsEnumerable;
38825
+ require_objectPie().f = $propertyIsEnumerable;
38844
38826
  $GOPS.f = $getOwnPropertySymbols;
38845
38827
  if (DESCRIPTORS && !_library) {
38846
38828
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -57259,7 +57241,7 @@ ${latestSubscriptionCallbackError.current.stack}
57259
57241
  }
57260
57242
  __name(getTextFromEl, "getTextFromEl");
57261
57243
  var colorString$1 = { exports: {} };
57262
- var colorName = {
57244
+ var colorName$1 = {
57263
57245
  "aliceblue": [240, 248, 255],
57264
57246
  "antiquewhite": [250, 235, 215],
57265
57247
  "aqua": [0, 255, 255],
@@ -57437,7 +57419,7 @@ ${latestSubscriptionCallbackError.current.stack}
57437
57419
  };
57438
57420
  };
57439
57421
  var simpleSwizzleExports = simpleSwizzle.exports;
57440
- var colorNames = colorName;
57422
+ var colorNames = colorName$1;
57441
57423
  var swizzle = simpleSwizzleExports;
57442
57424
  var hasOwnProperty$d = Object.hasOwnProperty;
57443
57425
  var reverseNames = /* @__PURE__ */ Object.create(null);
@@ -57453,25 +57435,25 @@ ${latestSubscriptionCallbackError.current.stack}
57453
57435
  cs.get = function(string2) {
57454
57436
  var prefix2 = string2.substring(0, 3).toLowerCase();
57455
57437
  var val;
57456
- var model;
57438
+ var model2;
57457
57439
  switch (prefix2) {
57458
57440
  case "hsl":
57459
57441
  val = cs.get.hsl(string2);
57460
- model = "hsl";
57442
+ model2 = "hsl";
57461
57443
  break;
57462
57444
  case "hwb":
57463
57445
  val = cs.get.hwb(string2);
57464
- model = "hwb";
57446
+ model2 = "hwb";
57465
57447
  break;
57466
57448
  default:
57467
57449
  val = cs.get.rgb(string2);
57468
- model = "rgb";
57450
+ model2 = "rgb";
57469
57451
  break;
57470
57452
  }
57471
57453
  if (!val) {
57472
57454
  return null;
57473
57455
  }
57474
- return { model, value: val };
57456
+ return { model: model2, value: val };
57475
57457
  };
57476
57458
  cs.get.rgb = function(string2) {
57477
57459
  if (!string2) {
@@ -57618,12 +57600,165 @@ ${latestSubscriptionCallbackError.current.stack}
57618
57600
  }
57619
57601
  __name(hexDouble, "hexDouble");
57620
57602
  var colorStringExports = colorString$1.exports;
57621
- const cssKeywords = colorName;
57622
- const reverseKeywords = {};
57623
- for (const key2 of Object.keys(cssKeywords)) {
57624
- reverseKeywords[cssKeywords[key2]] = key2;
57603
+ var conversions$2 = { exports: {} };
57604
+ var colorName = {
57605
+ "aliceblue": [240, 248, 255],
57606
+ "antiquewhite": [250, 235, 215],
57607
+ "aqua": [0, 255, 255],
57608
+ "aquamarine": [127, 255, 212],
57609
+ "azure": [240, 255, 255],
57610
+ "beige": [245, 245, 220],
57611
+ "bisque": [255, 228, 196],
57612
+ "black": [0, 0, 0],
57613
+ "blanchedalmond": [255, 235, 205],
57614
+ "blue": [0, 0, 255],
57615
+ "blueviolet": [138, 43, 226],
57616
+ "brown": [165, 42, 42],
57617
+ "burlywood": [222, 184, 135],
57618
+ "cadetblue": [95, 158, 160],
57619
+ "chartreuse": [127, 255, 0],
57620
+ "chocolate": [210, 105, 30],
57621
+ "coral": [255, 127, 80],
57622
+ "cornflowerblue": [100, 149, 237],
57623
+ "cornsilk": [255, 248, 220],
57624
+ "crimson": [220, 20, 60],
57625
+ "cyan": [0, 255, 255],
57626
+ "darkblue": [0, 0, 139],
57627
+ "darkcyan": [0, 139, 139],
57628
+ "darkgoldenrod": [184, 134, 11],
57629
+ "darkgray": [169, 169, 169],
57630
+ "darkgreen": [0, 100, 0],
57631
+ "darkgrey": [169, 169, 169],
57632
+ "darkkhaki": [189, 183, 107],
57633
+ "darkmagenta": [139, 0, 139],
57634
+ "darkolivegreen": [85, 107, 47],
57635
+ "darkorange": [255, 140, 0],
57636
+ "darkorchid": [153, 50, 204],
57637
+ "darkred": [139, 0, 0],
57638
+ "darksalmon": [233, 150, 122],
57639
+ "darkseagreen": [143, 188, 143],
57640
+ "darkslateblue": [72, 61, 139],
57641
+ "darkslategray": [47, 79, 79],
57642
+ "darkslategrey": [47, 79, 79],
57643
+ "darkturquoise": [0, 206, 209],
57644
+ "darkviolet": [148, 0, 211],
57645
+ "deeppink": [255, 20, 147],
57646
+ "deepskyblue": [0, 191, 255],
57647
+ "dimgray": [105, 105, 105],
57648
+ "dimgrey": [105, 105, 105],
57649
+ "dodgerblue": [30, 144, 255],
57650
+ "firebrick": [178, 34, 34],
57651
+ "floralwhite": [255, 250, 240],
57652
+ "forestgreen": [34, 139, 34],
57653
+ "fuchsia": [255, 0, 255],
57654
+ "gainsboro": [220, 220, 220],
57655
+ "ghostwhite": [248, 248, 255],
57656
+ "gold": [255, 215, 0],
57657
+ "goldenrod": [218, 165, 32],
57658
+ "gray": [128, 128, 128],
57659
+ "green": [0, 128, 0],
57660
+ "greenyellow": [173, 255, 47],
57661
+ "grey": [128, 128, 128],
57662
+ "honeydew": [240, 255, 240],
57663
+ "hotpink": [255, 105, 180],
57664
+ "indianred": [205, 92, 92],
57665
+ "indigo": [75, 0, 130],
57666
+ "ivory": [255, 255, 240],
57667
+ "khaki": [240, 230, 140],
57668
+ "lavender": [230, 230, 250],
57669
+ "lavenderblush": [255, 240, 245],
57670
+ "lawngreen": [124, 252, 0],
57671
+ "lemonchiffon": [255, 250, 205],
57672
+ "lightblue": [173, 216, 230],
57673
+ "lightcoral": [240, 128, 128],
57674
+ "lightcyan": [224, 255, 255],
57675
+ "lightgoldenrodyellow": [250, 250, 210],
57676
+ "lightgray": [211, 211, 211],
57677
+ "lightgreen": [144, 238, 144],
57678
+ "lightgrey": [211, 211, 211],
57679
+ "lightpink": [255, 182, 193],
57680
+ "lightsalmon": [255, 160, 122],
57681
+ "lightseagreen": [32, 178, 170],
57682
+ "lightskyblue": [135, 206, 250],
57683
+ "lightslategray": [119, 136, 153],
57684
+ "lightslategrey": [119, 136, 153],
57685
+ "lightsteelblue": [176, 196, 222],
57686
+ "lightyellow": [255, 255, 224],
57687
+ "lime": [0, 255, 0],
57688
+ "limegreen": [50, 205, 50],
57689
+ "linen": [250, 240, 230],
57690
+ "magenta": [255, 0, 255],
57691
+ "maroon": [128, 0, 0],
57692
+ "mediumaquamarine": [102, 205, 170],
57693
+ "mediumblue": [0, 0, 205],
57694
+ "mediumorchid": [186, 85, 211],
57695
+ "mediumpurple": [147, 112, 219],
57696
+ "mediumseagreen": [60, 179, 113],
57697
+ "mediumslateblue": [123, 104, 238],
57698
+ "mediumspringgreen": [0, 250, 154],
57699
+ "mediumturquoise": [72, 209, 204],
57700
+ "mediumvioletred": [199, 21, 133],
57701
+ "midnightblue": [25, 25, 112],
57702
+ "mintcream": [245, 255, 250],
57703
+ "mistyrose": [255, 228, 225],
57704
+ "moccasin": [255, 228, 181],
57705
+ "navajowhite": [255, 222, 173],
57706
+ "navy": [0, 0, 128],
57707
+ "oldlace": [253, 245, 230],
57708
+ "olive": [128, 128, 0],
57709
+ "olivedrab": [107, 142, 35],
57710
+ "orange": [255, 165, 0],
57711
+ "orangered": [255, 69, 0],
57712
+ "orchid": [218, 112, 214],
57713
+ "palegoldenrod": [238, 232, 170],
57714
+ "palegreen": [152, 251, 152],
57715
+ "paleturquoise": [175, 238, 238],
57716
+ "palevioletred": [219, 112, 147],
57717
+ "papayawhip": [255, 239, 213],
57718
+ "peachpuff": [255, 218, 185],
57719
+ "peru": [205, 133, 63],
57720
+ "pink": [255, 192, 203],
57721
+ "plum": [221, 160, 221],
57722
+ "powderblue": [176, 224, 230],
57723
+ "purple": [128, 0, 128],
57724
+ "rebeccapurple": [102, 51, 153],
57725
+ "red": [255, 0, 0],
57726
+ "rosybrown": [188, 143, 143],
57727
+ "royalblue": [65, 105, 225],
57728
+ "saddlebrown": [139, 69, 19],
57729
+ "salmon": [250, 128, 114],
57730
+ "sandybrown": [244, 164, 96],
57731
+ "seagreen": [46, 139, 87],
57732
+ "seashell": [255, 245, 238],
57733
+ "sienna": [160, 82, 45],
57734
+ "silver": [192, 192, 192],
57735
+ "skyblue": [135, 206, 235],
57736
+ "slateblue": [106, 90, 205],
57737
+ "slategray": [112, 128, 144],
57738
+ "slategrey": [112, 128, 144],
57739
+ "snow": [255, 250, 250],
57740
+ "springgreen": [0, 255, 127],
57741
+ "steelblue": [70, 130, 180],
57742
+ "tan": [210, 180, 140],
57743
+ "teal": [0, 128, 128],
57744
+ "thistle": [216, 191, 216],
57745
+ "tomato": [255, 99, 71],
57746
+ "turquoise": [64, 224, 208],
57747
+ "violet": [238, 130, 238],
57748
+ "wheat": [245, 222, 179],
57749
+ "white": [255, 255, 255],
57750
+ "whitesmoke": [245, 245, 245],
57751
+ "yellow": [255, 255, 0],
57752
+ "yellowgreen": [154, 205, 50]
57753
+ };
57754
+ var cssKeywords = colorName;
57755
+ var reverseKeywords = {};
57756
+ for (var key in cssKeywords) {
57757
+ if (cssKeywords.hasOwnProperty(key)) {
57758
+ reverseKeywords[cssKeywords[key]] = key;
57759
+ }
57625
57760
  }
57626
- const convert$2 = {
57761
+ var convert$2 = conversions$2.exports = {
57627
57762
  rgb: { channels: 3, labels: "rgb" },
57628
57763
  hsl: { channels: 3, labels: "hsl" },
57629
57764
  hsv: { channels: 3, labels: "hsv" },
@@ -57640,32 +57775,35 @@ ${latestSubscriptionCallbackError.current.stack}
57640
57775
  apple: { channels: 3, labels: ["r16", "g16", "b16"] },
57641
57776
  gray: { channels: 1, labels: ["gray"] }
57642
57777
  };
57643
- var conversions$2 = convert$2;
57644
- for (const model of Object.keys(convert$2)) {
57645
- if (!("channels" in convert$2[model])) {
57646
- throw new Error("missing channels property: " + model);
57647
- }
57648
- if (!("labels" in convert$2[model])) {
57649
- throw new Error("missing channel labels property: " + model);
57650
- }
57651
- if (convert$2[model].labels.length !== convert$2[model].channels) {
57652
- throw new Error("channel and label counts mismatch: " + model);
57778
+ for (var model in convert$2) {
57779
+ if (convert$2.hasOwnProperty(model)) {
57780
+ if (!("channels" in convert$2[model])) {
57781
+ throw new Error("missing channels property: " + model);
57782
+ }
57783
+ if (!("labels" in convert$2[model])) {
57784
+ throw new Error("missing channel labels property: " + model);
57785
+ }
57786
+ if (convert$2[model].labels.length !== convert$2[model].channels) {
57787
+ throw new Error("channel and label counts mismatch: " + model);
57788
+ }
57789
+ var channels = convert$2[model].channels;
57790
+ var labels = convert$2[model].labels;
57791
+ delete convert$2[model].channels;
57792
+ delete convert$2[model].labels;
57793
+ Object.defineProperty(convert$2[model], "channels", { value: channels });
57794
+ Object.defineProperty(convert$2[model], "labels", { value: labels });
57653
57795
  }
57654
- const { channels, labels } = convert$2[model];
57655
- delete convert$2[model].channels;
57656
- delete convert$2[model].labels;
57657
- Object.defineProperty(convert$2[model], "channels", { value: channels });
57658
- Object.defineProperty(convert$2[model], "labels", { value: labels });
57659
57796
  }
57660
57797
  convert$2.rgb.hsl = function(rgb) {
57661
- const r2 = rgb[0] / 255;
57662
- const g2 = rgb[1] / 255;
57663
- const b2 = rgb[2] / 255;
57664
- const min2 = Math.min(r2, g2, b2);
57665
- const max2 = Math.max(r2, g2, b2);
57666
- const delta = max2 - min2;
57667
- let h2;
57668
- let s2;
57798
+ var r2 = rgb[0] / 255;
57799
+ var g2 = rgb[1] / 255;
57800
+ var b2 = rgb[2] / 255;
57801
+ var min2 = Math.min(r2, g2, b2);
57802
+ var max2 = Math.max(r2, g2, b2);
57803
+ var delta = max2 - min2;
57804
+ var h2;
57805
+ var s2;
57806
+ var l2;
57669
57807
  if (max2 === min2) {
57670
57808
  h2 = 0;
57671
57809
  } else if (r2 === max2) {
@@ -57679,7 +57817,7 @@ ${latestSubscriptionCallbackError.current.stack}
57679
57817
  if (h2 < 0) {
57680
57818
  h2 += 360;
57681
57819
  }
57682
- const l2 = (min2 + max2) / 2;
57820
+ l2 = (min2 + max2) / 2;
57683
57821
  if (max2 === min2) {
57684
57822
  s2 = 0;
57685
57823
  } else if (l2 <= 0.5) {
@@ -57690,22 +57828,21 @@ ${latestSubscriptionCallbackError.current.stack}
57690
57828
  return [h2, s2 * 100, l2 * 100];
57691
57829
  };
57692
57830
  convert$2.rgb.hsv = function(rgb) {
57693
- let rdif;
57694
- let gdif;
57695
- let bdif;
57696
- let h2;
57697
- let s2;
57698
- const r2 = rgb[0] / 255;
57699
- const g2 = rgb[1] / 255;
57700
- const b2 = rgb[2] / 255;
57701
- const v2 = Math.max(r2, g2, b2);
57702
- const diff = v2 - Math.min(r2, g2, b2);
57703
- const diffc = /* @__PURE__ */ __name(function(c2) {
57831
+ var rdif;
57832
+ var gdif;
57833
+ var bdif;
57834
+ var h2;
57835
+ var s2;
57836
+ var r2 = rgb[0] / 255;
57837
+ var g2 = rgb[1] / 255;
57838
+ var b2 = rgb[2] / 255;
57839
+ var v2 = Math.max(r2, g2, b2);
57840
+ var diff = v2 - Math.min(r2, g2, b2);
57841
+ var diffc = /* @__PURE__ */ __name(function(c2) {
57704
57842
  return (v2 - c2) / 6 / diff + 1 / 2;
57705
57843
  }, "diffc");
57706
57844
  if (diff === 0) {
57707
- h2 = 0;
57708
- s2 = 0;
57845
+ h2 = s2 = 0;
57709
57846
  } else {
57710
57847
  s2 = diff / v2;
57711
57848
  rdif = diffc(r2);
@@ -57731,41 +57868,47 @@ ${latestSubscriptionCallbackError.current.stack}
57731
57868
  ];
57732
57869
  };
57733
57870
  convert$2.rgb.hwb = function(rgb) {
57734
- const r2 = rgb[0];
57735
- const g2 = rgb[1];
57736
- let b2 = rgb[2];
57737
- const h2 = convert$2.rgb.hsl(rgb)[0];
57738
- const w2 = 1 / 255 * Math.min(r2, Math.min(g2, b2));
57871
+ var r2 = rgb[0];
57872
+ var g2 = rgb[1];
57873
+ var b2 = rgb[2];
57874
+ var h2 = convert$2.rgb.hsl(rgb)[0];
57875
+ var w2 = 1 / 255 * Math.min(r2, Math.min(g2, b2));
57739
57876
  b2 = 1 - 1 / 255 * Math.max(r2, Math.max(g2, b2));
57740
57877
  return [h2, w2 * 100, b2 * 100];
57741
57878
  };
57742
57879
  convert$2.rgb.cmyk = function(rgb) {
57743
- const r2 = rgb[0] / 255;
57744
- const g2 = rgb[1] / 255;
57745
- const b2 = rgb[2] / 255;
57746
- const k2 = Math.min(1 - r2, 1 - g2, 1 - b2);
57747
- const c2 = (1 - r2 - k2) / (1 - k2) || 0;
57748
- const m2 = (1 - g2 - k2) / (1 - k2) || 0;
57749
- const y2 = (1 - b2 - k2) / (1 - k2) || 0;
57880
+ var r2 = rgb[0] / 255;
57881
+ var g2 = rgb[1] / 255;
57882
+ var b2 = rgb[2] / 255;
57883
+ var c2;
57884
+ var m2;
57885
+ var y2;
57886
+ var k2;
57887
+ k2 = Math.min(1 - r2, 1 - g2, 1 - b2);
57888
+ c2 = (1 - r2 - k2) / (1 - k2) || 0;
57889
+ m2 = (1 - g2 - k2) / (1 - k2) || 0;
57890
+ y2 = (1 - b2 - k2) / (1 - k2) || 0;
57750
57891
  return [c2 * 100, m2 * 100, y2 * 100, k2 * 100];
57751
57892
  };
57752
57893
  function comparativeDistance(x2, y2) {
57753
- return __pow(x2[0] - y2[0], 2) + __pow(x2[1] - y2[1], 2) + __pow(x2[2] - y2[2], 2);
57894
+ return Math.pow(x2[0] - y2[0], 2) + Math.pow(x2[1] - y2[1], 2) + Math.pow(x2[2] - y2[2], 2);
57754
57895
  }
57755
57896
  __name(comparativeDistance, "comparativeDistance");
57756
57897
  convert$2.rgb.keyword = function(rgb) {
57757
- const reversed = reverseKeywords[rgb];
57898
+ var reversed = reverseKeywords[rgb];
57758
57899
  if (reversed) {
57759
57900
  return reversed;
57760
57901
  }
57761
- let currentClosestDistance = Infinity;
57762
- let currentClosestKeyword;
57763
- for (const keyword of Object.keys(cssKeywords)) {
57764
- const value = cssKeywords[keyword];
57765
- const distance = comparativeDistance(rgb, value);
57766
- if (distance < currentClosestDistance) {
57767
- currentClosestDistance = distance;
57768
- currentClosestKeyword = keyword;
57902
+ var currentClosestDistance = Infinity;
57903
+ var currentClosestKeyword;
57904
+ for (var keyword in cssKeywords) {
57905
+ if (cssKeywords.hasOwnProperty(keyword)) {
57906
+ var value = cssKeywords[keyword];
57907
+ var distance = comparativeDistance(rgb, value);
57908
+ if (distance < currentClosestDistance) {
57909
+ currentClosestDistance = distance;
57910
+ currentClosestKeyword = keyword;
57911
+ }
57769
57912
  }
57770
57913
  }
57771
57914
  return currentClosestKeyword;
@@ -57774,40 +57917,45 @@ ${latestSubscriptionCallbackError.current.stack}
57774
57917
  return cssKeywords[keyword];
57775
57918
  };
57776
57919
  convert$2.rgb.xyz = function(rgb) {
57777
- let r2 = rgb[0] / 255;
57778
- let g2 = rgb[1] / 255;
57779
- let b2 = rgb[2] / 255;
57780
- r2 = r2 > 0.04045 ? __pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
57781
- g2 = g2 > 0.04045 ? __pow((g2 + 0.055) / 1.055, 2.4) : g2 / 12.92;
57782
- b2 = b2 > 0.04045 ? __pow((b2 + 0.055) / 1.055, 2.4) : b2 / 12.92;
57783
- const x2 = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805;
57784
- const y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722;
57785
- const z2 = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
57920
+ var r2 = rgb[0] / 255;
57921
+ var g2 = rgb[1] / 255;
57922
+ var b2 = rgb[2] / 255;
57923
+ r2 = r2 > 0.04045 ? Math.pow((r2 + 0.055) / 1.055, 2.4) : r2 / 12.92;
57924
+ g2 = g2 > 0.04045 ? Math.pow((g2 + 0.055) / 1.055, 2.4) : g2 / 12.92;
57925
+ b2 = b2 > 0.04045 ? Math.pow((b2 + 0.055) / 1.055, 2.4) : b2 / 12.92;
57926
+ var x2 = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805;
57927
+ var y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722;
57928
+ var z2 = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
57786
57929
  return [x2 * 100, y2 * 100, z2 * 100];
57787
57930
  };
57788
57931
  convert$2.rgb.lab = function(rgb) {
57789
- const xyz = convert$2.rgb.xyz(rgb);
57790
- let x2 = xyz[0];
57791
- let y2 = xyz[1];
57792
- let z2 = xyz[2];
57932
+ var xyz = convert$2.rgb.xyz(rgb);
57933
+ var x2 = xyz[0];
57934
+ var y2 = xyz[1];
57935
+ var z2 = xyz[2];
57936
+ var l2;
57937
+ var a2;
57938
+ var b2;
57793
57939
  x2 /= 95.047;
57794
57940
  y2 /= 100;
57795
57941
  z2 /= 108.883;
57796
- x2 = x2 > 8856e-6 ? __pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
57797
- y2 = y2 > 8856e-6 ? __pow(y2, 1 / 3) : 7.787 * y2 + 16 / 116;
57798
- z2 = z2 > 8856e-6 ? __pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
57799
- const l2 = 116 * y2 - 16;
57800
- const a2 = 500 * (x2 - y2);
57801
- const b2 = 200 * (y2 - z2);
57942
+ x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
57943
+ y2 = y2 > 8856e-6 ? Math.pow(y2, 1 / 3) : 7.787 * y2 + 16 / 116;
57944
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
57945
+ l2 = 116 * y2 - 16;
57946
+ a2 = 500 * (x2 - y2);
57947
+ b2 = 200 * (y2 - z2);
57802
57948
  return [l2, a2, b2];
57803
57949
  };
57804
57950
  convert$2.hsl.rgb = function(hsl) {
57805
- const h2 = hsl[0] / 360;
57806
- const s2 = hsl[1] / 100;
57807
- const l2 = hsl[2] / 100;
57808
- let t2;
57809
- let t3;
57810
- let val;
57951
+ var h2 = hsl[0] / 360;
57952
+ var s2 = hsl[1] / 100;
57953
+ var l2 = hsl[2] / 100;
57954
+ var t1;
57955
+ var t2;
57956
+ var t3;
57957
+ var rgb;
57958
+ var val;
57811
57959
  if (s2 === 0) {
57812
57960
  val = l2 * 255;
57813
57961
  return [val, val, val];
@@ -57817,9 +57965,9 @@ ${latestSubscriptionCallbackError.current.stack}
57817
57965
  } else {
57818
57966
  t2 = l2 + s2 - l2 * s2;
57819
57967
  }
57820
- const t1 = 2 * l2 - t2;
57821
- const rgb = [0, 0, 0];
57822
- for (let i2 = 0; i2 < 3; i2++) {
57968
+ t1 = 2 * l2 - t2;
57969
+ rgb = [0, 0, 0];
57970
+ for (var i2 = 0; i2 < 3; i2++) {
57823
57971
  t3 = h2 + 1 / 3 * -(i2 - 1);
57824
57972
  if (t3 < 0) {
57825
57973
  t3++;
@@ -57841,27 +57989,29 @@ ${latestSubscriptionCallbackError.current.stack}
57841
57989
  return rgb;
57842
57990
  };
57843
57991
  convert$2.hsl.hsv = function(hsl) {
57844
- const h2 = hsl[0];
57845
- let s2 = hsl[1] / 100;
57846
- let l2 = hsl[2] / 100;
57847
- let smin = s2;
57848
- const lmin = Math.max(l2, 0.01);
57992
+ var h2 = hsl[0];
57993
+ var s2 = hsl[1] / 100;
57994
+ var l2 = hsl[2] / 100;
57995
+ var smin = s2;
57996
+ var lmin = Math.max(l2, 0.01);
57997
+ var sv;
57998
+ var v2;
57849
57999
  l2 *= 2;
57850
58000
  s2 *= l2 <= 1 ? l2 : 2 - l2;
57851
58001
  smin *= lmin <= 1 ? lmin : 2 - lmin;
57852
- const v2 = (l2 + s2) / 2;
57853
- const sv = l2 === 0 ? 2 * smin / (lmin + smin) : 2 * s2 / (l2 + s2);
58002
+ v2 = (l2 + s2) / 2;
58003
+ sv = l2 === 0 ? 2 * smin / (lmin + smin) : 2 * s2 / (l2 + s2);
57854
58004
  return [h2, sv * 100, v2 * 100];
57855
58005
  };
57856
58006
  convert$2.hsv.rgb = function(hsv) {
57857
- const h2 = hsv[0] / 60;
57858
- const s2 = hsv[1] / 100;
57859
- let v2 = hsv[2] / 100;
57860
- const hi = Math.floor(h2) % 6;
57861
- const f2 = h2 - Math.floor(h2);
57862
- const p2 = 255 * v2 * (1 - s2);
57863
- const q2 = 255 * v2 * (1 - s2 * f2);
57864
- const t2 = 255 * v2 * (1 - s2 * (1 - f2));
58007
+ var h2 = hsv[0] / 60;
58008
+ var s2 = hsv[1] / 100;
58009
+ var v2 = hsv[2] / 100;
58010
+ var hi = Math.floor(h2) % 6;
58011
+ var f2 = h2 - Math.floor(h2);
58012
+ var p2 = 255 * v2 * (1 - s2);
58013
+ var q2 = 255 * v2 * (1 - s2 * f2);
58014
+ var t2 = 255 * v2 * (1 - s2 * (1 - f2));
57865
58015
  v2 *= 255;
57866
58016
  switch (hi) {
57867
58017
  case 0:
@@ -57879,14 +58029,15 @@ ${latestSubscriptionCallbackError.current.stack}
57879
58029
  }
57880
58030
  };
57881
58031
  convert$2.hsv.hsl = function(hsv) {
57882
- const h2 = hsv[0];
57883
- const s2 = hsv[1] / 100;
57884
- const v2 = hsv[2] / 100;
57885
- const vmin = Math.max(v2, 0.01);
57886
- let sl;
57887
- let l2;
58032
+ var h2 = hsv[0];
58033
+ var s2 = hsv[1] / 100;
58034
+ var v2 = hsv[2] / 100;
58035
+ var vmin = Math.max(v2, 0.01);
58036
+ var lmin;
58037
+ var sl;
58038
+ var l2;
57888
58039
  l2 = (2 - s2) * v2;
57889
- const lmin = (2 - s2) * vmin;
58040
+ lmin = (2 - s2) * vmin;
57890
58041
  sl = s2 * vmin;
57891
58042
  sl /= lmin <= 1 ? lmin : 2 - lmin;
57892
58043
  sl = sl || 0;
@@ -57894,25 +58045,28 @@ ${latestSubscriptionCallbackError.current.stack}
57894
58045
  return [h2, sl * 100, l2 * 100];
57895
58046
  };
57896
58047
  convert$2.hwb.rgb = function(hwb) {
57897
- const h2 = hwb[0] / 360;
57898
- let wh = hwb[1] / 100;
57899
- let bl = hwb[2] / 100;
57900
- const ratio = wh + bl;
57901
- let f2;
58048
+ var h2 = hwb[0] / 360;
58049
+ var wh = hwb[1] / 100;
58050
+ var bl = hwb[2] / 100;
58051
+ var ratio = wh + bl;
58052
+ var i2;
58053
+ var v2;
58054
+ var f2;
58055
+ var n2;
57902
58056
  if (ratio > 1) {
57903
58057
  wh /= ratio;
57904
58058
  bl /= ratio;
57905
58059
  }
57906
- const i2 = Math.floor(6 * h2);
57907
- const v2 = 1 - bl;
58060
+ i2 = Math.floor(6 * h2);
58061
+ v2 = 1 - bl;
57908
58062
  f2 = 6 * h2 - i2;
57909
58063
  if ((i2 & 1) !== 0) {
57910
58064
  f2 = 1 - f2;
57911
58065
  }
57912
- const n2 = wh + f2 * (v2 - wh);
57913
- let r2;
57914
- let g2;
57915
- let b2;
58066
+ n2 = wh + f2 * (v2 - wh);
58067
+ var r2;
58068
+ var g2;
58069
+ var b2;
57916
58070
  switch (i2) {
57917
58071
  default:
57918
58072
  case 6:
@@ -57950,61 +58104,67 @@ ${latestSubscriptionCallbackError.current.stack}
57950
58104
  return [r2 * 255, g2 * 255, b2 * 255];
57951
58105
  };
57952
58106
  convert$2.cmyk.rgb = function(cmyk) {
57953
- const c2 = cmyk[0] / 100;
57954
- const m2 = cmyk[1] / 100;
57955
- const y2 = cmyk[2] / 100;
57956
- const k2 = cmyk[3] / 100;
57957
- const r2 = 1 - Math.min(1, c2 * (1 - k2) + k2);
57958
- const g2 = 1 - Math.min(1, m2 * (1 - k2) + k2);
57959
- const b2 = 1 - Math.min(1, y2 * (1 - k2) + k2);
58107
+ var c2 = cmyk[0] / 100;
58108
+ var m2 = cmyk[1] / 100;
58109
+ var y2 = cmyk[2] / 100;
58110
+ var k2 = cmyk[3] / 100;
58111
+ var r2;
58112
+ var g2;
58113
+ var b2;
58114
+ r2 = 1 - Math.min(1, c2 * (1 - k2) + k2);
58115
+ g2 = 1 - Math.min(1, m2 * (1 - k2) + k2);
58116
+ b2 = 1 - Math.min(1, y2 * (1 - k2) + k2);
57960
58117
  return [r2 * 255, g2 * 255, b2 * 255];
57961
58118
  };
57962
58119
  convert$2.xyz.rgb = function(xyz) {
57963
- const x2 = xyz[0] / 100;
57964
- const y2 = xyz[1] / 100;
57965
- const z2 = xyz[2] / 100;
57966
- let r2;
57967
- let g2;
57968
- let b2;
58120
+ var x2 = xyz[0] / 100;
58121
+ var y2 = xyz[1] / 100;
58122
+ var z2 = xyz[2] / 100;
58123
+ var r2;
58124
+ var g2;
58125
+ var b2;
57969
58126
  r2 = x2 * 3.2406 + y2 * -1.5372 + z2 * -0.4986;
57970
58127
  g2 = x2 * -0.9689 + y2 * 1.8758 + z2 * 0.0415;
57971
58128
  b2 = x2 * 0.0557 + y2 * -0.204 + z2 * 1.057;
57972
- r2 = r2 > 31308e-7 ? 1.055 * __pow(r2, 1 / 2.4) - 0.055 : r2 * 12.92;
57973
- g2 = g2 > 31308e-7 ? 1.055 * __pow(g2, 1 / 2.4) - 0.055 : g2 * 12.92;
57974
- b2 = b2 > 31308e-7 ? 1.055 * __pow(b2, 1 / 2.4) - 0.055 : b2 * 12.92;
58129
+ r2 = r2 > 31308e-7 ? 1.055 * Math.pow(r2, 1 / 2.4) - 0.055 : r2 * 12.92;
58130
+ g2 = g2 > 31308e-7 ? 1.055 * Math.pow(g2, 1 / 2.4) - 0.055 : g2 * 12.92;
58131
+ b2 = b2 > 31308e-7 ? 1.055 * Math.pow(b2, 1 / 2.4) - 0.055 : b2 * 12.92;
57975
58132
  r2 = Math.min(Math.max(0, r2), 1);
57976
58133
  g2 = Math.min(Math.max(0, g2), 1);
57977
58134
  b2 = Math.min(Math.max(0, b2), 1);
57978
58135
  return [r2 * 255, g2 * 255, b2 * 255];
57979
58136
  };
57980
58137
  convert$2.xyz.lab = function(xyz) {
57981
- let x2 = xyz[0];
57982
- let y2 = xyz[1];
57983
- let z2 = xyz[2];
58138
+ var x2 = xyz[0];
58139
+ var y2 = xyz[1];
58140
+ var z2 = xyz[2];
58141
+ var l2;
58142
+ var a2;
58143
+ var b2;
57984
58144
  x2 /= 95.047;
57985
58145
  y2 /= 100;
57986
58146
  z2 /= 108.883;
57987
- x2 = x2 > 8856e-6 ? __pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
57988
- y2 = y2 > 8856e-6 ? __pow(y2, 1 / 3) : 7.787 * y2 + 16 / 116;
57989
- z2 = z2 > 8856e-6 ? __pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
57990
- const l2 = 116 * y2 - 16;
57991
- const a2 = 500 * (x2 - y2);
57992
- const b2 = 200 * (y2 - z2);
58147
+ x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
58148
+ y2 = y2 > 8856e-6 ? Math.pow(y2, 1 / 3) : 7.787 * y2 + 16 / 116;
58149
+ z2 = z2 > 8856e-6 ? Math.pow(z2, 1 / 3) : 7.787 * z2 + 16 / 116;
58150
+ l2 = 116 * y2 - 16;
58151
+ a2 = 500 * (x2 - y2);
58152
+ b2 = 200 * (y2 - z2);
57993
58153
  return [l2, a2, b2];
57994
58154
  };
57995
58155
  convert$2.lab.xyz = function(lab) {
57996
- const l2 = lab[0];
57997
- const a2 = lab[1];
57998
- const b2 = lab[2];
57999
- let x2;
58000
- let y2;
58001
- let z2;
58156
+ var l2 = lab[0];
58157
+ var a2 = lab[1];
58158
+ var b2 = lab[2];
58159
+ var x2;
58160
+ var y2;
58161
+ var z2;
58002
58162
  y2 = (l2 + 16) / 116;
58003
58163
  x2 = a2 / 500 + y2;
58004
58164
  z2 = y2 - b2 / 200;
58005
- const y22 = __pow(y2, 3);
58006
- const x22 = __pow(x2, 3);
58007
- const z22 = __pow(z2, 3);
58165
+ var y22 = Math.pow(y2, 3);
58166
+ var x22 = Math.pow(x2, 3);
58167
+ var z22 = Math.pow(z2, 3);
58008
58168
  y2 = y22 > 8856e-6 ? y22 : (y2 - 16 / 116) / 7.787;
58009
58169
  x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
58010
58170
  z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787;
@@ -58014,35 +58174,42 @@ ${latestSubscriptionCallbackError.current.stack}
58014
58174
  return [x2, y2, z2];
58015
58175
  };
58016
58176
  convert$2.lab.lch = function(lab) {
58017
- const l2 = lab[0];
58018
- const a2 = lab[1];
58019
- const b2 = lab[2];
58020
- let h2;
58021
- const hr = Math.atan2(b2, a2);
58177
+ var l2 = lab[0];
58178
+ var a2 = lab[1];
58179
+ var b2 = lab[2];
58180
+ var hr;
58181
+ var h2;
58182
+ var c2;
58183
+ hr = Math.atan2(b2, a2);
58022
58184
  h2 = hr * 360 / 2 / Math.PI;
58023
58185
  if (h2 < 0) {
58024
58186
  h2 += 360;
58025
58187
  }
58026
- const c2 = Math.sqrt(a2 * a2 + b2 * b2);
58188
+ c2 = Math.sqrt(a2 * a2 + b2 * b2);
58027
58189
  return [l2, c2, h2];
58028
58190
  };
58029
58191
  convert$2.lch.lab = function(lch) {
58030
- const l2 = lch[0];
58031
- const c2 = lch[1];
58032
- const h2 = lch[2];
58033
- const hr = h2 / 360 * 2 * Math.PI;
58034
- const a2 = c2 * Math.cos(hr);
58035
- const b2 = c2 * Math.sin(hr);
58192
+ var l2 = lch[0];
58193
+ var c2 = lch[1];
58194
+ var h2 = lch[2];
58195
+ var a2;
58196
+ var b2;
58197
+ var hr;
58198
+ hr = h2 / 360 * 2 * Math.PI;
58199
+ a2 = c2 * Math.cos(hr);
58200
+ b2 = c2 * Math.sin(hr);
58036
58201
  return [l2, a2, b2];
58037
58202
  };
58038
- convert$2.rgb.ansi16 = function(args, saturation = null) {
58039
- const [r2, g2, b2] = args;
58040
- let value = saturation === null ? convert$2.rgb.hsv(args)[2] : saturation;
58203
+ convert$2.rgb.ansi16 = function(args) {
58204
+ var r2 = args[0];
58205
+ var g2 = args[1];
58206
+ var b2 = args[2];
58207
+ var value = 1 in arguments ? arguments[1] : convert$2.rgb.hsv(args)[2];
58041
58208
  value = Math.round(value / 50);
58042
58209
  if (value === 0) {
58043
58210
  return 30;
58044
58211
  }
58045
- let ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
58212
+ var ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
58046
58213
  if (value === 2) {
58047
58214
  ansi += 60;
58048
58215
  }
@@ -58052,9 +58219,9 @@ ${latestSubscriptionCallbackError.current.stack}
58052
58219
  return convert$2.rgb.ansi16(convert$2.hsv.rgb(args), args[2]);
58053
58220
  };
58054
58221
  convert$2.rgb.ansi256 = function(args) {
58055
- const r2 = args[0];
58056
- const g2 = args[1];
58057
- const b2 = args[2];
58222
+ var r2 = args[0];
58223
+ var g2 = args[1];
58224
+ var b2 = args[2];
58058
58225
  if (r2 === g2 && g2 === b2) {
58059
58226
  if (r2 < 8) {
58060
58227
  return 16;
@@ -58064,11 +58231,11 @@ ${latestSubscriptionCallbackError.current.stack}
58064
58231
  }
58065
58232
  return Math.round((r2 - 8) / 247 * 24) + 232;
58066
58233
  }
58067
- const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
58234
+ var ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
58068
58235
  return ansi;
58069
58236
  };
58070
58237
  convert$2.ansi16.rgb = function(args) {
58071
- let color2 = args % 10;
58238
+ var color2 = args % 10;
58072
58239
  if (color2 === 0 || color2 === 7) {
58073
58240
  if (args > 50) {
58074
58241
  color2 += 3.5;
@@ -58076,55 +58243,55 @@ ${latestSubscriptionCallbackError.current.stack}
58076
58243
  color2 = color2 / 10.5 * 255;
58077
58244
  return [color2, color2, color2];
58078
58245
  }
58079
- const mult = (~~(args > 50) + 1) * 0.5;
58080
- const r2 = (color2 & 1) * mult * 255;
58081
- const g2 = (color2 >> 1 & 1) * mult * 255;
58082
- const b2 = (color2 >> 2 & 1) * mult * 255;
58246
+ var mult = (~~(args > 50) + 1) * 0.5;
58247
+ var r2 = (color2 & 1) * mult * 255;
58248
+ var g2 = (color2 >> 1 & 1) * mult * 255;
58249
+ var b2 = (color2 >> 2 & 1) * mult * 255;
58083
58250
  return [r2, g2, b2];
58084
58251
  };
58085
58252
  convert$2.ansi256.rgb = function(args) {
58086
58253
  if (args >= 232) {
58087
- const c2 = (args - 232) * 10 + 8;
58254
+ var c2 = (args - 232) * 10 + 8;
58088
58255
  return [c2, c2, c2];
58089
58256
  }
58090
58257
  args -= 16;
58091
- let rem;
58092
- const r2 = Math.floor(args / 36) / 5 * 255;
58093
- const g2 = Math.floor((rem = args % 36) / 6) / 5 * 255;
58094
- const b2 = rem % 6 / 5 * 255;
58258
+ var rem;
58259
+ var r2 = Math.floor(args / 36) / 5 * 255;
58260
+ var g2 = Math.floor((rem = args % 36) / 6) / 5 * 255;
58261
+ var b2 = rem % 6 / 5 * 255;
58095
58262
  return [r2, g2, b2];
58096
58263
  };
58097
58264
  convert$2.rgb.hex = function(args) {
58098
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
58099
- const string2 = integer.toString(16).toUpperCase();
58265
+ var integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
58266
+ var string2 = integer.toString(16).toUpperCase();
58100
58267
  return "000000".substring(string2.length) + string2;
58101
58268
  };
58102
58269
  convert$2.hex.rgb = function(args) {
58103
- const match2 = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
58270
+ var match2 = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
58104
58271
  if (!match2) {
58105
58272
  return [0, 0, 0];
58106
58273
  }
58107
- let colorString2 = match2[0];
58274
+ var colorString2 = match2[0];
58108
58275
  if (match2[0].length === 3) {
58109
- colorString2 = colorString2.split("").map((char2) => {
58276
+ colorString2 = colorString2.split("").map(function(char2) {
58110
58277
  return char2 + char2;
58111
58278
  }).join("");
58112
58279
  }
58113
- const integer = parseInt(colorString2, 16);
58114
- const r2 = integer >> 16 & 255;
58115
- const g2 = integer >> 8 & 255;
58116
- const b2 = integer & 255;
58280
+ var integer = parseInt(colorString2, 16);
58281
+ var r2 = integer >> 16 & 255;
58282
+ var g2 = integer >> 8 & 255;
58283
+ var b2 = integer & 255;
58117
58284
  return [r2, g2, b2];
58118
58285
  };
58119
58286
  convert$2.rgb.hcg = function(rgb) {
58120
- const r2 = rgb[0] / 255;
58121
- const g2 = rgb[1] / 255;
58122
- const b2 = rgb[2] / 255;
58123
- const max2 = Math.max(Math.max(r2, g2), b2);
58124
- const min2 = Math.min(Math.min(r2, g2), b2);
58125
- const chroma = max2 - min2;
58126
- let grayscale;
58127
- let hue;
58287
+ var r2 = rgb[0] / 255;
58288
+ var g2 = rgb[1] / 255;
58289
+ var b2 = rgb[2] / 255;
58290
+ var max2 = Math.max(Math.max(r2, g2), b2);
58291
+ var min2 = Math.min(Math.min(r2, g2), b2);
58292
+ var chroma = max2 - min2;
58293
+ var grayscale;
58294
+ var hue;
58128
58295
  if (chroma < 1) {
58129
58296
  grayscale = min2 / (1 - chroma);
58130
58297
  } else {
@@ -58137,44 +58304,49 @@ ${latestSubscriptionCallbackError.current.stack}
58137
58304
  } else if (max2 === g2) {
58138
58305
  hue = 2 + (b2 - r2) / chroma;
58139
58306
  } else {
58140
- hue = 4 + (r2 - g2) / chroma;
58307
+ hue = 4 + (r2 - g2) / chroma + 4;
58141
58308
  }
58142
58309
  hue /= 6;
58143
58310
  hue %= 1;
58144
58311
  return [hue * 360, chroma * 100, grayscale * 100];
58145
58312
  };
58146
58313
  convert$2.hsl.hcg = function(hsl) {
58147
- const s2 = hsl[1] / 100;
58148
- const l2 = hsl[2] / 100;
58149
- const c2 = l2 < 0.5 ? 2 * s2 * l2 : 2 * s2 * (1 - l2);
58150
- let f2 = 0;
58314
+ var s2 = hsl[1] / 100;
58315
+ var l2 = hsl[2] / 100;
58316
+ var c2 = 1;
58317
+ var f2 = 0;
58318
+ if (l2 < 0.5) {
58319
+ c2 = 2 * s2 * l2;
58320
+ } else {
58321
+ c2 = 2 * s2 * (1 - l2);
58322
+ }
58151
58323
  if (c2 < 1) {
58152
58324
  f2 = (l2 - 0.5 * c2) / (1 - c2);
58153
58325
  }
58154
58326
  return [hsl[0], c2 * 100, f2 * 100];
58155
58327
  };
58156
58328
  convert$2.hsv.hcg = function(hsv) {
58157
- const s2 = hsv[1] / 100;
58158
- const v2 = hsv[2] / 100;
58159
- const c2 = s2 * v2;
58160
- let f2 = 0;
58329
+ var s2 = hsv[1] / 100;
58330
+ var v2 = hsv[2] / 100;
58331
+ var c2 = s2 * v2;
58332
+ var f2 = 0;
58161
58333
  if (c2 < 1) {
58162
58334
  f2 = (v2 - c2) / (1 - c2);
58163
58335
  }
58164
58336
  return [hsv[0], c2 * 100, f2 * 100];
58165
58337
  };
58166
58338
  convert$2.hcg.rgb = function(hcg) {
58167
- const h2 = hcg[0] / 360;
58168
- const c2 = hcg[1] / 100;
58169
- const g2 = hcg[2] / 100;
58339
+ var h2 = hcg[0] / 360;
58340
+ var c2 = hcg[1] / 100;
58341
+ var g2 = hcg[2] / 100;
58170
58342
  if (c2 === 0) {
58171
58343
  return [g2 * 255, g2 * 255, g2 * 255];
58172
58344
  }
58173
- const pure2 = [0, 0, 0];
58174
- const hi = h2 % 1 * 6;
58175
- const v2 = hi % 1;
58176
- const w2 = 1 - v2;
58177
- let mg = 0;
58345
+ var pure2 = [0, 0, 0];
58346
+ var hi = h2 % 1 * 6;
58347
+ var v2 = hi % 1;
58348
+ var w2 = 1 - v2;
58349
+ var mg = 0;
58178
58350
  switch (Math.floor(hi)) {
58179
58351
  case 0:
58180
58352
  pure2[0] = 1;
@@ -58214,20 +58386,20 @@ ${latestSubscriptionCallbackError.current.stack}
58214
58386
  ];
58215
58387
  };
58216
58388
  convert$2.hcg.hsv = function(hcg) {
58217
- const c2 = hcg[1] / 100;
58218
- const g2 = hcg[2] / 100;
58219
- const v2 = c2 + g2 * (1 - c2);
58220
- let f2 = 0;
58389
+ var c2 = hcg[1] / 100;
58390
+ var g2 = hcg[2] / 100;
58391
+ var v2 = c2 + g2 * (1 - c2);
58392
+ var f2 = 0;
58221
58393
  if (v2 > 0) {
58222
58394
  f2 = c2 / v2;
58223
58395
  }
58224
58396
  return [hcg[0], f2 * 100, v2 * 100];
58225
58397
  };
58226
58398
  convert$2.hcg.hsl = function(hcg) {
58227
- const c2 = hcg[1] / 100;
58228
- const g2 = hcg[2] / 100;
58229
- const l2 = g2 * (1 - c2) + 0.5 * c2;
58230
- let s2 = 0;
58399
+ var c2 = hcg[1] / 100;
58400
+ var g2 = hcg[2] / 100;
58401
+ var l2 = g2 * (1 - c2) + 0.5 * c2;
58402
+ var s2 = 0;
58231
58403
  if (l2 > 0 && l2 < 0.5) {
58232
58404
  s2 = c2 / (2 * l2);
58233
58405
  } else if (l2 >= 0.5 && l2 < 1) {
@@ -58236,17 +58408,17 @@ ${latestSubscriptionCallbackError.current.stack}
58236
58408
  return [hcg[0], s2 * 100, l2 * 100];
58237
58409
  };
58238
58410
  convert$2.hcg.hwb = function(hcg) {
58239
- const c2 = hcg[1] / 100;
58240
- const g2 = hcg[2] / 100;
58241
- const v2 = c2 + g2 * (1 - c2);
58411
+ var c2 = hcg[1] / 100;
58412
+ var g2 = hcg[2] / 100;
58413
+ var v2 = c2 + g2 * (1 - c2);
58242
58414
  return [hcg[0], (v2 - c2) * 100, (1 - v2) * 100];
58243
58415
  };
58244
58416
  convert$2.hwb.hcg = function(hwb) {
58245
- const w2 = hwb[1] / 100;
58246
- const b2 = hwb[2] / 100;
58247
- const v2 = 1 - b2;
58248
- const c2 = v2 - w2;
58249
- let g2 = 0;
58417
+ var w2 = hwb[1] / 100;
58418
+ var b2 = hwb[2] / 100;
58419
+ var v2 = 1 - b2;
58420
+ var c2 = v2 - w2;
58421
+ var g2 = 0;
58250
58422
  if (c2 < 1) {
58251
58423
  g2 = (v2 - c2) / (1 - c2);
58252
58424
  }
@@ -58261,10 +58433,9 @@ ${latestSubscriptionCallbackError.current.stack}
58261
58433
  convert$2.gray.rgb = function(args) {
58262
58434
  return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
58263
58435
  };
58264
- convert$2.gray.hsl = function(args) {
58436
+ convert$2.gray.hsl = convert$2.gray.hsv = function(args) {
58265
58437
  return [0, 0, args[0]];
58266
58438
  };
58267
- convert$2.gray.hsv = convert$2.gray.hsl;
58268
58439
  convert$2.gray.hwb = function(gray) {
58269
58440
  return [0, 100, gray[0]];
58270
58441
  };
@@ -58275,20 +58446,21 @@ ${latestSubscriptionCallbackError.current.stack}
58275
58446
  return [gray[0], 0, 0];
58276
58447
  };
58277
58448
  convert$2.gray.hex = function(gray) {
58278
- const val = Math.round(gray[0] / 100 * 255) & 255;
58279
- const integer = (val << 16) + (val << 8) + val;
58280
- const string2 = integer.toString(16).toUpperCase();
58449
+ var val = Math.round(gray[0] / 100 * 255) & 255;
58450
+ var integer = (val << 16) + (val << 8) + val;
58451
+ var string2 = integer.toString(16).toUpperCase();
58281
58452
  return "000000".substring(string2.length) + string2;
58282
58453
  };
58283
58454
  convert$2.rgb.gray = function(rgb) {
58284
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
58455
+ var val = (rgb[0] + rgb[1] + rgb[2]) / 3;
58285
58456
  return [val / 255 * 100];
58286
58457
  };
58287
- const conversions$1 = conversions$2;
58458
+ var conversionsExports = conversions$2.exports;
58459
+ var conversions$1 = conversionsExports;
58288
58460
  function buildGraph() {
58289
- const graph = {};
58290
- const models2 = Object.keys(conversions$1);
58291
- for (let len = models2.length, i2 = 0; i2 < len; i2++) {
58461
+ var graph = {};
58462
+ var models2 = Object.keys(conversions$1);
58463
+ for (var len = models2.length, i2 = 0; i2 < len; i2++) {
58292
58464
  graph[models2[i2]] = {
58293
58465
  // http://jsperf.com/1-vs-infinity
58294
58466
  // micro-opt, but this is simple.
@@ -58300,15 +58472,15 @@ ${latestSubscriptionCallbackError.current.stack}
58300
58472
  }
58301
58473
  __name(buildGraph, "buildGraph");
58302
58474
  function deriveBFS(fromModel) {
58303
- const graph = buildGraph();
58304
- const queue = [fromModel];
58475
+ var graph = buildGraph();
58476
+ var queue = [fromModel];
58305
58477
  graph[fromModel].distance = 0;
58306
58478
  while (queue.length) {
58307
- const current = queue.pop();
58308
- const adjacents = Object.keys(conversions$1[current]);
58309
- for (let len = adjacents.length, i2 = 0; i2 < len; i2++) {
58310
- const adjacent = adjacents[i2];
58311
- const node2 = graph[adjacent];
58479
+ var current = queue.pop();
58480
+ var adjacents = Object.keys(conversions$1[current]);
58481
+ for (var len = adjacents.length, i2 = 0; i2 < len; i2++) {
58482
+ var adjacent = adjacents[i2];
58483
+ var node2 = graph[adjacent];
58312
58484
  if (node2.distance === -1) {
58313
58485
  node2.distance = graph[current].distance + 1;
58314
58486
  node2.parent = current;
@@ -58326,9 +58498,9 @@ ${latestSubscriptionCallbackError.current.stack}
58326
58498
  }
58327
58499
  __name(link, "link");
58328
58500
  function wrapConversion(toModel, graph) {
58329
- const path2 = [graph[toModel].parent, toModel];
58330
- let fn2 = conversions$1[graph[toModel].parent][toModel];
58331
- let cur = graph[toModel].parent;
58501
+ var path2 = [graph[toModel].parent, toModel];
58502
+ var fn2 = conversions$1[graph[toModel].parent][toModel];
58503
+ var cur = graph[toModel].parent;
58332
58504
  while (graph[cur].parent) {
58333
58505
  path2.unshift(graph[cur].parent);
58334
58506
  fn2 = link(conversions$1[graph[cur].parent][cur], fn2);
@@ -58339,12 +58511,12 @@ ${latestSubscriptionCallbackError.current.stack}
58339
58511
  }
58340
58512
  __name(wrapConversion, "wrapConversion");
58341
58513
  var route$1 = /* @__PURE__ */ __name(function(fromModel) {
58342
- const graph = deriveBFS(fromModel);
58343
- const conversion = {};
58344
- const models2 = Object.keys(graph);
58345
- for (let len = models2.length, i2 = 0; i2 < len; i2++) {
58346
- const toModel = models2[i2];
58347
- const node2 = graph[toModel];
58514
+ var graph = deriveBFS(fromModel);
58515
+ var conversion = {};
58516
+ var models2 = Object.keys(graph);
58517
+ for (var len = models2.length, i2 = 0; i2 < len; i2++) {
58518
+ var toModel = models2[i2];
58519
+ var node2 = graph[toModel];
58348
58520
  if (node2.parent === null) {
58349
58521
  continue;
58350
58522
  }
@@ -58352,18 +58524,17 @@ ${latestSubscriptionCallbackError.current.stack}
58352
58524
  }
58353
58525
  return conversion;
58354
58526
  }, "route$1");
58355
- const conversions = conversions$2;
58356
- const route = route$1;
58357
- const convert$1 = {};
58358
- const models = Object.keys(conversions);
58527
+ var conversions = conversionsExports;
58528
+ var route = route$1;
58529
+ var convert$1 = {};
58530
+ var models = Object.keys(conversions);
58359
58531
  function wrapRaw(fn2) {
58360
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
58361
- const arg0 = args[0];
58362
- if (arg0 === void 0 || arg0 === null) {
58363
- return arg0;
58532
+ var wrappedFn = /* @__PURE__ */ __name(function(args) {
58533
+ if (args === void 0 || args === null) {
58534
+ return args;
58364
58535
  }
58365
- if (arg0.length > 1) {
58366
- args = arg0;
58536
+ if (arguments.length > 1) {
58537
+ args = Array.prototype.slice.call(arguments);
58367
58538
  }
58368
58539
  return fn2(args);
58369
58540
  }, "wrappedFn");
@@ -58374,17 +58545,16 @@ ${latestSubscriptionCallbackError.current.stack}
58374
58545
  }
58375
58546
  __name(wrapRaw, "wrapRaw");
58376
58547
  function wrapRounded(fn2) {
58377
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
58378
- const arg0 = args[0];
58379
- if (arg0 === void 0 || arg0 === null) {
58380
- return arg0;
58548
+ var wrappedFn = /* @__PURE__ */ __name(function(args) {
58549
+ if (args === void 0 || args === null) {
58550
+ return args;
58381
58551
  }
58382
- if (arg0.length > 1) {
58383
- args = arg0;
58552
+ if (arguments.length > 1) {
58553
+ args = Array.prototype.slice.call(arguments);
58384
58554
  }
58385
- const result = fn2(args);
58555
+ var result = fn2(args);
58386
58556
  if (typeof result === "object") {
58387
- for (let len = result.length, i2 = 0; i2 < len; i2++) {
58557
+ for (var len = result.length, i2 = 0; i2 < len; i2++) {
58388
58558
  result[i2] = Math.round(result[i2]);
58389
58559
  }
58390
58560
  }
@@ -58396,100 +58566,102 @@ ${latestSubscriptionCallbackError.current.stack}
58396
58566
  return wrappedFn;
58397
58567
  }
58398
58568
  __name(wrapRounded, "wrapRounded");
58399
- models.forEach((fromModel) => {
58569
+ models.forEach(function(fromModel) {
58400
58570
  convert$1[fromModel] = {};
58401
58571
  Object.defineProperty(convert$1[fromModel], "channels", { value: conversions[fromModel].channels });
58402
58572
  Object.defineProperty(convert$1[fromModel], "labels", { value: conversions[fromModel].labels });
58403
- const routes = route(fromModel);
58404
- const routeModels = Object.keys(routes);
58405
- routeModels.forEach((toModel) => {
58406
- const fn2 = routes[toModel];
58573
+ var routes = route(fromModel);
58574
+ var routeModels = Object.keys(routes);
58575
+ routeModels.forEach(function(toModel) {
58576
+ var fn2 = routes[toModel];
58407
58577
  convert$1[fromModel][toModel] = wrapRounded(fn2);
58408
58578
  convert$1[fromModel][toModel].raw = wrapRaw(fn2);
58409
58579
  });
58410
58580
  });
58411
58581
  var colorConvert = convert$1;
58412
- const colorString = colorStringExports;
58413
- const convert = colorConvert;
58414
- const skippedModels = [
58415
- // To be honest, I don't really feel like keyword belongs in color convert, but eh.
58582
+ var colorString = colorStringExports;
58583
+ var convert = colorConvert;
58584
+ var _slice = [].slice;
58585
+ var skippedModels = [
58586
+ // to be honest, I don't really feel like keyword belongs in color convert, but eh.
58416
58587
  "keyword",
58417
- // Gray conflicts with some method names, and has its own method defined.
58588
+ // gray conflicts with some method names, and has its own method defined.
58418
58589
  "gray",
58419
- // Shouldn't really be in color-convert either...
58590
+ // shouldn't really be in color-convert either...
58420
58591
  "hex"
58421
58592
  ];
58422
- const hashedModelKeys = {};
58423
- for (const model of Object.keys(convert)) {
58424
- hashedModelKeys[[...convert[model].labels].sort().join("")] = model;
58425
- }
58426
- const limiters = {};
58427
- function Color(object, model) {
58593
+ var hashedModelKeys = {};
58594
+ Object.keys(convert).forEach(function(model2) {
58595
+ hashedModelKeys[_slice.call(convert[model2].labels).sort().join("")] = model2;
58596
+ });
58597
+ var limiters = {};
58598
+ function Color(obj, model2) {
58428
58599
  if (!(this instanceof Color)) {
58429
- return new Color(object, model);
58600
+ return new Color(obj, model2);
58430
58601
  }
58431
- if (model && model in skippedModels) {
58432
- model = null;
58602
+ if (model2 && model2 in skippedModels) {
58603
+ model2 = null;
58433
58604
  }
58434
- if (model && !(model in convert)) {
58435
- throw new Error("Unknown model: " + model);
58605
+ if (model2 && !(model2 in convert)) {
58606
+ throw new Error("Unknown model: " + model2);
58436
58607
  }
58437
- let i2;
58438
- let channels;
58439
- if (object == null) {
58608
+ var i2;
58609
+ var channels2;
58610
+ if (obj == null) {
58440
58611
  this.model = "rgb";
58441
58612
  this.color = [0, 0, 0];
58442
58613
  this.valpha = 1;
58443
- } else if (object instanceof Color) {
58444
- this.model = object.model;
58445
- this.color = [...object.color];
58446
- this.valpha = object.valpha;
58447
- } else if (typeof object === "string") {
58448
- const result = colorString.get(object);
58614
+ } else if (obj instanceof Color) {
58615
+ this.model = obj.model;
58616
+ this.color = obj.color.slice();
58617
+ this.valpha = obj.valpha;
58618
+ } else if (typeof obj === "string") {
58619
+ var result = colorString.get(obj);
58449
58620
  if (result === null) {
58450
- throw new Error("Unable to parse color from string: " + object);
58621
+ throw new Error("Unable to parse color from string: " + obj);
58451
58622
  }
58452
58623
  this.model = result.model;
58453
- channels = convert[this.model].channels;
58454
- this.color = result.value.slice(0, channels);
58455
- this.valpha = typeof result.value[channels] === "number" ? result.value[channels] : 1;
58456
- } else if (object.length > 0) {
58457
- this.model = model || "rgb";
58458
- channels = convert[this.model].channels;
58459
- const newArray = Array.prototype.slice.call(object, 0, channels);
58460
- this.color = zeroArray(newArray, channels);
58461
- this.valpha = typeof object[channels] === "number" ? object[channels] : 1;
58462
- } else if (typeof object === "number") {
58624
+ channels2 = convert[this.model].channels;
58625
+ this.color = result.value.slice(0, channels2);
58626
+ this.valpha = typeof result.value[channels2] === "number" ? result.value[channels2] : 1;
58627
+ } else if (obj.length) {
58628
+ this.model = model2 || "rgb";
58629
+ channels2 = convert[this.model].channels;
58630
+ var newArr = _slice.call(obj, 0, channels2);
58631
+ this.color = zeroArray(newArr, channels2);
58632
+ this.valpha = typeof obj[channels2] === "number" ? obj[channels2] : 1;
58633
+ } else if (typeof obj === "number") {
58634
+ obj &= 16777215;
58463
58635
  this.model = "rgb";
58464
58636
  this.color = [
58465
- object >> 16 & 255,
58466
- object >> 8 & 255,
58467
- object & 255
58637
+ obj >> 16 & 255,
58638
+ obj >> 8 & 255,
58639
+ obj & 255
58468
58640
  ];
58469
58641
  this.valpha = 1;
58470
58642
  } else {
58471
58643
  this.valpha = 1;
58472
- const keys2 = Object.keys(object);
58473
- if ("alpha" in object) {
58644
+ var keys2 = Object.keys(obj);
58645
+ if ("alpha" in obj) {
58474
58646
  keys2.splice(keys2.indexOf("alpha"), 1);
58475
- this.valpha = typeof object.alpha === "number" ? object.alpha : 0;
58647
+ this.valpha = typeof obj.alpha === "number" ? obj.alpha : 0;
58476
58648
  }
58477
- const hashedKeys = keys2.sort().join("");
58649
+ var hashedKeys = keys2.sort().join("");
58478
58650
  if (!(hashedKeys in hashedModelKeys)) {
58479
- throw new Error("Unable to parse color from object: " + JSON.stringify(object));
58651
+ throw new Error("Unable to parse color from object: " + JSON.stringify(obj));
58480
58652
  }
58481
58653
  this.model = hashedModelKeys[hashedKeys];
58482
- const { labels } = convert[this.model];
58483
- const color2 = [];
58484
- for (i2 = 0; i2 < labels.length; i2++) {
58485
- color2.push(object[labels[i2]]);
58654
+ var labels2 = convert[this.model].labels;
58655
+ var color2 = [];
58656
+ for (i2 = 0; i2 < labels2.length; i2++) {
58657
+ color2.push(obj[labels2[i2]]);
58486
58658
  }
58487
58659
  this.color = zeroArray(color2);
58488
58660
  }
58489
58661
  if (limiters[this.model]) {
58490
- channels = convert[this.model].channels;
58491
- for (i2 = 0; i2 < channels; i2++) {
58492
- const limit2 = limiters[this.model][i2];
58662
+ channels2 = convert[this.model].channels;
58663
+ for (i2 = 0; i2 < channels2; i2++) {
58664
+ var limit2 = limiters[this.model][i2];
58493
58665
  if (limit2) {
58494
58666
  this.color[i2] = limit2(this.color[i2]);
58495
58667
  }
@@ -58502,40 +58674,40 @@ ${latestSubscriptionCallbackError.current.stack}
58502
58674
  }
58503
58675
  __name(Color, "Color");
58504
58676
  Color.prototype = {
58505
- toString() {
58677
+ toString: function() {
58506
58678
  return this.string();
58507
58679
  },
58508
- toJSON() {
58680
+ toJSON: function() {
58509
58681
  return this[this.model]();
58510
58682
  },
58511
- string(places) {
58512
- let self2 = this.model in colorString.to ? this : this.rgb();
58683
+ string: function(places) {
58684
+ var self2 = this.model in colorString.to ? this : this.rgb();
58513
58685
  self2 = self2.round(typeof places === "number" ? places : 1);
58514
- const args = self2.valpha === 1 ? self2.color : [...self2.color, this.valpha];
58686
+ var args = self2.valpha === 1 ? self2.color : self2.color.concat(this.valpha);
58515
58687
  return colorString.to[self2.model](args);
58516
58688
  },
58517
- percentString(places) {
58518
- const self2 = this.rgb().round(typeof places === "number" ? places : 1);
58519
- const args = self2.valpha === 1 ? self2.color : [...self2.color, this.valpha];
58689
+ percentString: function(places) {
58690
+ var self2 = this.rgb().round(typeof places === "number" ? places : 1);
58691
+ var args = self2.valpha === 1 ? self2.color : self2.color.concat(this.valpha);
58520
58692
  return colorString.to.rgb.percent(args);
58521
58693
  },
58522
- array() {
58523
- return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
58694
+ array: function() {
58695
+ return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha);
58524
58696
  },
58525
- object() {
58526
- const result = {};
58527
- const { channels } = convert[this.model];
58528
- const { labels } = convert[this.model];
58529
- for (let i2 = 0; i2 < channels; i2++) {
58530
- result[labels[i2]] = this.color[i2];
58697
+ object: function() {
58698
+ var result = {};
58699
+ var channels2 = convert[this.model].channels;
58700
+ var labels2 = convert[this.model].labels;
58701
+ for (var i2 = 0; i2 < channels2; i2++) {
58702
+ result[labels2[i2]] = this.color[i2];
58531
58703
  }
58532
58704
  if (this.valpha !== 1) {
58533
58705
  result.alpha = this.valpha;
58534
58706
  }
58535
58707
  return result;
58536
58708
  },
58537
- unitArray() {
58538
- const rgb = this.rgb().color;
58709
+ unitArray: function() {
58710
+ var rgb = this.rgb().color;
58539
58711
  rgb[0] /= 255;
58540
58712
  rgb[1] /= 255;
58541
58713
  rgb[2] /= 255;
@@ -58544,8 +58716,8 @@ ${latestSubscriptionCallbackError.current.stack}
58544
58716
  }
58545
58717
  return rgb;
58546
58718
  },
58547
- unitObject() {
58548
- const rgb = this.rgb().object();
58719
+ unitObject: function() {
58720
+ var rgb = this.rgb().object();
58549
58721
  rgb.r /= 255;
58550
58722
  rgb.g /= 255;
58551
58723
  rgb.b /= 255;
@@ -58554,21 +58726,24 @@ ${latestSubscriptionCallbackError.current.stack}
58554
58726
  }
58555
58727
  return rgb;
58556
58728
  },
58557
- round(places) {
58729
+ round: function(places) {
58558
58730
  places = Math.max(places || 0, 0);
58559
- return new Color([...this.color.map(roundToPlace(places)), this.valpha], this.model);
58731
+ return new Color(this.color.map(roundToPlace(places)).concat(this.valpha), this.model);
58560
58732
  },
58561
- alpha(value) {
58562
- if (value !== void 0) {
58563
- return new Color([...this.color, Math.max(0, Math.min(1, value))], this.model);
58733
+ alpha: function(val) {
58734
+ if (arguments.length) {
58735
+ return new Color(this.color.concat(Math.max(0, Math.min(1, val))), this.model);
58564
58736
  }
58565
58737
  return this.valpha;
58566
58738
  },
58567
- // Rgb
58739
+ // rgb
58568
58740
  red: getset("rgb", 0, maxfn(255)),
58569
58741
  green: getset("rgb", 1, maxfn(255)),
58570
58742
  blue: getset("rgb", 2, maxfn(255)),
58571
- hue: getset(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (value) => (value % 360 + 360) % 360),
58743
+ hue: getset(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, function(val) {
58744
+ return (val % 360 + 360) % 360;
58745
+ }),
58746
+ // eslint-disable-line brace-style
58572
58747
  saturationl: getset("hsl", 1, maxfn(100)),
58573
58748
  lightness: getset("hsl", 2, maxfn(100)),
58574
58749
  saturationv: getset("hsv", 1, maxfn(100)),
@@ -58581,138 +58756,127 @@ ${latestSubscriptionCallbackError.current.stack}
58581
58756
  magenta: getset("cmyk", 1, maxfn(100)),
58582
58757
  yellow: getset("cmyk", 2, maxfn(100)),
58583
58758
  black: getset("cmyk", 3, maxfn(100)),
58584
- x: getset("xyz", 0, maxfn(95.047)),
58759
+ x: getset("xyz", 0, maxfn(100)),
58585
58760
  y: getset("xyz", 1, maxfn(100)),
58586
- z: getset("xyz", 2, maxfn(108.833)),
58761
+ z: getset("xyz", 2, maxfn(100)),
58587
58762
  l: getset("lab", 0, maxfn(100)),
58588
58763
  a: getset("lab", 1),
58589
58764
  b: getset("lab", 2),
58590
- keyword(value) {
58591
- if (value !== void 0) {
58592
- return new Color(value);
58765
+ keyword: function(val) {
58766
+ if (arguments.length) {
58767
+ return new Color(val);
58593
58768
  }
58594
58769
  return convert[this.model].keyword(this.color);
58595
58770
  },
58596
- hex(value) {
58597
- if (value !== void 0) {
58598
- return new Color(value);
58771
+ hex: function(val) {
58772
+ if (arguments.length) {
58773
+ return new Color(val);
58599
58774
  }
58600
58775
  return colorString.to.hex(this.rgb().round().color);
58601
58776
  },
58602
- hexa(value) {
58603
- if (value !== void 0) {
58604
- return new Color(value);
58605
- }
58606
- const rgbArray = this.rgb().round().color;
58607
- let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
58608
- if (alphaHex.length === 1) {
58609
- alphaHex = "0" + alphaHex;
58610
- }
58611
- return colorString.to.hex(rgbArray) + alphaHex;
58612
- },
58613
- rgbNumber() {
58614
- const rgb = this.rgb().color;
58777
+ rgbNumber: function() {
58778
+ var rgb = this.rgb().color;
58615
58779
  return (rgb[0] & 255) << 16 | (rgb[1] & 255) << 8 | rgb[2] & 255;
58616
58780
  },
58617
- luminosity() {
58618
- const rgb = this.rgb().color;
58619
- const lum = [];
58620
- for (const [i2, element2] of rgb.entries()) {
58621
- const chan = element2 / 255;
58622
- lum[i2] = chan <= 0.04045 ? chan / 12.92 : __pow((chan + 0.055) / 1.055, 2.4);
58781
+ luminosity: function() {
58782
+ var rgb = this.rgb().color;
58783
+ var lum = [];
58784
+ for (var i2 = 0; i2 < rgb.length; i2++) {
58785
+ var chan = rgb[i2] / 255;
58786
+ lum[i2] = chan <= 0.03928 ? chan / 12.92 : Math.pow((chan + 0.055) / 1.055, 2.4);
58623
58787
  }
58624
58788
  return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2];
58625
58789
  },
58626
- contrast(color2) {
58627
- const lum1 = this.luminosity();
58628
- const lum2 = color2.luminosity();
58790
+ contrast: function(color2) {
58791
+ var lum1 = this.luminosity();
58792
+ var lum2 = color2.luminosity();
58629
58793
  if (lum1 > lum2) {
58630
58794
  return (lum1 + 0.05) / (lum2 + 0.05);
58631
58795
  }
58632
58796
  return (lum2 + 0.05) / (lum1 + 0.05);
58633
58797
  },
58634
- level(color2) {
58635
- const contrastRatio = this.contrast(color2);
58636
- if (contrastRatio >= 7) {
58798
+ level: function(color2) {
58799
+ var contrastRatio = this.contrast(color2);
58800
+ if (contrastRatio >= 7.1) {
58637
58801
  return "AAA";
58638
58802
  }
58639
58803
  return contrastRatio >= 4.5 ? "AA" : "";
58640
58804
  },
58641
- isDark() {
58642
- const rgb = this.rgb().color;
58643
- const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 1e4;
58805
+ isDark: function() {
58806
+ var rgb = this.rgb().color;
58807
+ var yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1e3;
58644
58808
  return yiq < 128;
58645
58809
  },
58646
- isLight() {
58810
+ isLight: function() {
58647
58811
  return !this.isDark();
58648
58812
  },
58649
- negate() {
58650
- const rgb = this.rgb();
58651
- for (let i2 = 0; i2 < 3; i2++) {
58813
+ negate: function() {
58814
+ var rgb = this.rgb();
58815
+ for (var i2 = 0; i2 < 3; i2++) {
58652
58816
  rgb.color[i2] = 255 - rgb.color[i2];
58653
58817
  }
58654
58818
  return rgb;
58655
58819
  },
58656
- lighten(ratio) {
58657
- const hsl = this.hsl();
58820
+ lighten: function(ratio) {
58821
+ var hsl = this.hsl();
58658
58822
  hsl.color[2] += hsl.color[2] * ratio;
58659
58823
  return hsl;
58660
58824
  },
58661
- darken(ratio) {
58662
- const hsl = this.hsl();
58825
+ darken: function(ratio) {
58826
+ var hsl = this.hsl();
58663
58827
  hsl.color[2] -= hsl.color[2] * ratio;
58664
58828
  return hsl;
58665
58829
  },
58666
- saturate(ratio) {
58667
- const hsl = this.hsl();
58830
+ saturate: function(ratio) {
58831
+ var hsl = this.hsl();
58668
58832
  hsl.color[1] += hsl.color[1] * ratio;
58669
58833
  return hsl;
58670
58834
  },
58671
- desaturate(ratio) {
58672
- const hsl = this.hsl();
58835
+ desaturate: function(ratio) {
58836
+ var hsl = this.hsl();
58673
58837
  hsl.color[1] -= hsl.color[1] * ratio;
58674
58838
  return hsl;
58675
58839
  },
58676
- whiten(ratio) {
58677
- const hwb = this.hwb();
58840
+ whiten: function(ratio) {
58841
+ var hwb = this.hwb();
58678
58842
  hwb.color[1] += hwb.color[1] * ratio;
58679
58843
  return hwb;
58680
58844
  },
58681
- blacken(ratio) {
58682
- const hwb = this.hwb();
58845
+ blacken: function(ratio) {
58846
+ var hwb = this.hwb();
58683
58847
  hwb.color[2] += hwb.color[2] * ratio;
58684
58848
  return hwb;
58685
58849
  },
58686
- grayscale() {
58687
- const rgb = this.rgb().color;
58688
- const value = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
58689
- return Color.rgb(value, value, value);
58850
+ grayscale: function() {
58851
+ var rgb = this.rgb().color;
58852
+ var val = rgb[0] * 0.3 + rgb[1] * 0.59 + rgb[2] * 0.11;
58853
+ return Color.rgb(val, val, val);
58690
58854
  },
58691
- fade(ratio) {
58855
+ fade: function(ratio) {
58692
58856
  return this.alpha(this.valpha - this.valpha * ratio);
58693
58857
  },
58694
- opaquer(ratio) {
58858
+ opaquer: function(ratio) {
58695
58859
  return this.alpha(this.valpha + this.valpha * ratio);
58696
58860
  },
58697
- rotate(degrees) {
58698
- const hsl = this.hsl();
58699
- let hue = hsl.color[0];
58861
+ rotate: function(degrees) {
58862
+ var hsl = this.hsl();
58863
+ var hue = hsl.color[0];
58700
58864
  hue = (hue + degrees) % 360;
58701
58865
  hue = hue < 0 ? 360 + hue : hue;
58702
58866
  hsl.color[0] = hue;
58703
58867
  return hsl;
58704
58868
  },
58705
- mix(mixinColor, weight) {
58869
+ mix: function(mixinColor, weight) {
58706
58870
  if (!mixinColor || !mixinColor.rgb) {
58707
58871
  throw new Error('Argument to "mix" was not a Color instance, but rather an instance of ' + typeof mixinColor);
58708
58872
  }
58709
- const color1 = mixinColor.rgb();
58710
- const color2 = this.rgb();
58711
- const p2 = weight === void 0 ? 0.5 : weight;
58712
- const w2 = 2 * p2 - 1;
58713
- const a2 = color1.alpha() - color2.alpha();
58714
- const w1 = ((w2 * a2 === -1 ? w2 : (w2 + a2) / (1 + w2 * a2)) + 1) / 2;
58715
- const w22 = 1 - w1;
58873
+ var color1 = mixinColor.rgb();
58874
+ var color2 = this.rgb();
58875
+ var p2 = weight === void 0 ? 0.5 : weight;
58876
+ var w2 = 2 * p2 - 1;
58877
+ var a2 = color1.alpha() - color2.alpha();
58878
+ var w1 = ((w2 * a2 === -1 ? w2 : (w2 + a2) / (1 + w2 * a2)) + 1) / 2;
58879
+ var w22 = 1 - w1;
58716
58880
  return Color.rgb(
58717
58881
  w1 * color1.red() + w22 * color2.red(),
58718
58882
  w1 * color1.green() + w22 * color2.green(),
@@ -58721,55 +58885,55 @@ ${latestSubscriptionCallbackError.current.stack}
58721
58885
  );
58722
58886
  }
58723
58887
  };
58724
- for (const model of Object.keys(convert)) {
58725
- if (skippedModels.includes(model)) {
58726
- continue;
58888
+ Object.keys(convert).forEach(function(model2) {
58889
+ if (skippedModels.indexOf(model2) !== -1) {
58890
+ return;
58727
58891
  }
58728
- const { channels } = convert[model];
58729
- Color.prototype[model] = function(...args) {
58730
- if (this.model === model) {
58892
+ var channels2 = convert[model2].channels;
58893
+ Color.prototype[model2] = function() {
58894
+ if (this.model === model2) {
58731
58895
  return new Color(this);
58732
58896
  }
58733
- if (args.length > 0) {
58734
- return new Color(args, model);
58897
+ if (arguments.length) {
58898
+ return new Color(arguments, model2);
58735
58899
  }
58736
- return new Color([...assertArray(convert[this.model][model].raw(this.color)), this.valpha], model);
58900
+ var newAlpha = typeof arguments[channels2] === "number" ? channels2 : this.valpha;
58901
+ return new Color(assertArray(convert[this.model][model2].raw(this.color)).concat(newAlpha), model2);
58737
58902
  };
58738
- Color[model] = function(...args) {
58739
- let color2 = args[0];
58903
+ Color[model2] = function(color2) {
58740
58904
  if (typeof color2 === "number") {
58741
- color2 = zeroArray(args, channels);
58905
+ color2 = zeroArray(_slice.call(arguments), channels2);
58742
58906
  }
58743
- return new Color(color2, model);
58907
+ return new Color(color2, model2);
58744
58908
  };
58745
- }
58746
- function roundTo(number2, places) {
58747
- return Number(number2.toFixed(places));
58909
+ });
58910
+ function roundTo(num, places) {
58911
+ return Number(num.toFixed(places));
58748
58912
  }
58749
58913
  __name(roundTo, "roundTo");
58750
58914
  function roundToPlace(places) {
58751
- return function(number2) {
58752
- return roundTo(number2, places);
58915
+ return function(num) {
58916
+ return roundTo(num, places);
58753
58917
  };
58754
58918
  }
58755
58919
  __name(roundToPlace, "roundToPlace");
58756
- function getset(model, channel, modifier) {
58757
- model = Array.isArray(model) ? model : [model];
58758
- for (const m2 of model) {
58920
+ function getset(model2, channel, modifier) {
58921
+ model2 = Array.isArray(model2) ? model2 : [model2];
58922
+ model2.forEach(function(m2) {
58759
58923
  (limiters[m2] || (limiters[m2] = []))[channel] = modifier;
58760
- }
58761
- model = model[0];
58762
- return function(value) {
58763
- let result;
58764
- if (value !== void 0) {
58924
+ });
58925
+ model2 = model2[0];
58926
+ return function(val) {
58927
+ var result;
58928
+ if (arguments.length) {
58765
58929
  if (modifier) {
58766
- value = modifier(value);
58930
+ val = modifier(val);
58767
58931
  }
58768
- result = this[model]();
58769
- result.color[channel] = value;
58932
+ result = this[model2]();
58933
+ result.color[channel] = val;
58770
58934
  return result;
58771
58935
  }
58772
- result = this[model]().color[channel];
58936
+ result = this[model2]().color[channel];
58773
58937
  if (modifier) {
58774
58938
  result = modifier(result);
58775
58939
  }
@@ -58783,17 +58947,17 @@ ${latestSubscriptionCallbackError.current.stack}
58783
58947
  };
58784
58948
  }
58785
58949
  __name(maxfn, "maxfn");
58786
- function assertArray(value) {
58787
- return Array.isArray(value) ? value : [value];
58950
+ function assertArray(val) {
58951
+ return Array.isArray(val) ? val : [val];
58788
58952
  }
58789
58953
  __name(assertArray, "assertArray");
58790
- function zeroArray(array, length) {
58791
- for (let i2 = 0; i2 < length; i2++) {
58792
- if (typeof array[i2] !== "number") {
58793
- array[i2] = 0;
58954
+ function zeroArray(arr, length) {
58955
+ for (var i2 = 0; i2 < length; i2++) {
58956
+ if (typeof arr[i2] !== "number") {
58957
+ arr[i2] = 0;
58794
58958
  }
58795
58959
  }
58796
- return array;
58960
+ return arr;
58797
58961
  }
58798
58962
  __name(zeroArray, "zeroArray");
58799
58963
  var color = Color;
@@ -62012,8 +62176,8 @@ ${latestSubscriptionCallbackError.current.stack}
62012
62176
  graphqlQueryParams.pageNumber = Number(page);
62013
62177
  graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
62014
62178
  }
62015
- const { model } = schema;
62016
- const qb = new QueryBuilder$1(model);
62179
+ const { model: model2 } = schema;
62180
+ const qb = new QueryBuilder$1(model2);
62017
62181
  const ccFields = getFieldsMappedByCCDisplayName(schema);
62018
62182
  if (tableQueryParams.order && tableQueryParams.order.length) {
62019
62183
  tableQueryParams.order.forEach((orderVal) => {
@@ -63073,7 +63237,7 @@ ${latestSubscriptionCallbackError.current.stack}
63073
63237
  }, {
63074
63238
  key: "render",
63075
63239
  value: /* @__PURE__ */ __name(function render2() {
63076
- var _props = this.props, classNames2 = _props.classNames, className = _props.className, showPreviousButton = _props.showPreviousButton, showNextButton = _props.showNextButton, labels = _props.labels, dir = _props.dir;
63240
+ var _props = this.props, classNames2 = _props.classNames, className = _props.className, showPreviousButton = _props.showPreviousButton, showNextButton = _props.showNextButton, labels2 = _props.labels, dir = _props.dir;
63077
63241
  var previousClickHandler = void 0;
63078
63242
  var nextClickHandler = void 0;
63079
63243
  var previousKeyDownHandler = void 0;
@@ -63100,7 +63264,7 @@ ${latestSubscriptionCallbackError.current.stack}
63100
63264
  var previousButton = _react2$9.default.createElement("span", {
63101
63265
  tabIndex: "0",
63102
63266
  role: "button",
63103
- "aria-label": labels.previousMonth,
63267
+ "aria-label": labels2.previousMonth,
63104
63268
  key: "previous",
63105
63269
  className: previousClassName,
63106
63270
  onKeyDown: shouldShowPrevious ? previousKeyDownHandler : void 0,
@@ -63109,7 +63273,7 @@ ${latestSubscriptionCallbackError.current.stack}
63109
63273
  var nextButton = _react2$9.default.createElement("span", {
63110
63274
  tabIndex: "0",
63111
63275
  role: "button",
63112
- "aria-label": labels.nextMonth,
63276
+ "aria-label": labels2.nextMonth,
63113
63277
  key: "right",
63114
63278
  className: nextClassName,
63115
63279
  onKeyDown: shouldShowNext ? nextKeyDownHandler : void 0,
@@ -64472,7 +64636,7 @@ ${latestSubscriptionCallbackError.current.stack}
64472
64636
  }, {
64473
64637
  key: "renderNavbar",
64474
64638
  value: /* @__PURE__ */ __name(function renderNavbar() {
64475
- var _props2 = this.props, labels = _props2.labels, locale = _props2.locale, localeUtils = _props2.localeUtils, canChangeMonth = _props2.canChangeMonth, navbarElement = _props2.navbarElement, attributes = _objectWithoutProperties$5(_props2, ["labels", "locale", "localeUtils", "canChangeMonth", "navbarElement"]);
64639
+ var _props2 = this.props, labels2 = _props2.labels, locale = _props2.locale, localeUtils = _props2.localeUtils, canChangeMonth = _props2.canChangeMonth, navbarElement = _props2.navbarElement, attributes = _objectWithoutProperties$5(_props2, ["labels", "locale", "localeUtils", "canChangeMonth", "navbarElement"]);
64476
64640
  if (!canChangeMonth)
64477
64641
  return null;
64478
64642
  var props = {
@@ -64486,7 +64650,7 @@ ${latestSubscriptionCallbackError.current.stack}
64486
64650
  onNextClick: this.showNextMonth,
64487
64651
  onPreviousClick: this.showPreviousMonth,
64488
64652
  dir: attributes.dir,
64489
- labels,
64653
+ labels: labels2,
64490
64654
  locale,
64491
64655
  localeUtils
64492
64656
  };
@@ -78694,7 +78858,7 @@ ${latestSubscriptionCallbackError.current.stack}
78694
78858
  noOrderError,
78695
78859
  withDisplayOptions,
78696
78860
  cellRenderer,
78697
- model,
78861
+ model: model2,
78698
78862
  isCodeModel,
78699
78863
  noForm
78700
78864
  } = mergedOpts;
@@ -78758,7 +78922,7 @@ ${latestSubscriptionCallbackError.current.stack}
78758
78922
  withDisplayOptions,
78759
78923
  cellRenderer,
78760
78924
  isLocalCall,
78761
- model,
78925
+ model: model2,
78762
78926
  schema,
78763
78927
  mergedOpts
78764
78928
  }, getQueryParams({