@darajs/core 1.7.6 → 1.7.7

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.
@@ -23,8 +23,8 @@ var __privateSet = (obj, member, value, setter) => {
23
23
  return value;
24
24
  };
25
25
  (function(global2, factory) {
26
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tanstack/react-query"), require("react-dom"), require("styled-components")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tanstack/react-query", "react-dom", "styled-components"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.dara = global2.dara || {}, global2.dara.core = {}), global2.React, global2.ReactQuery, global2.ReactDOM, global2.styled));
27
- })(this, function(exports, React, reactQuery, ReactDOM, styled) {
26
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("styled-components"), require("react"), require("@tanstack/react-query"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "styled-components", "react", "@tanstack/react-query", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.dara = global2.dara || {}, global2.dara.core = {}), global2.styled, global2.React, global2.ReactQuery, global2.ReactDOM));
27
+ })(this, function(exports, styled, React, reactQuery, ReactDOM) {
28
28
  var _instance, _observers;
29
29
  "use strict";
30
30
  const _interopDefaultLegacy = (e3) => e3 && typeof e3 === "object" && "default" in e3 ? e3 : { default: e3 };
@@ -46,10 +46,10 @@ var __privateSet = (obj, member, value, setter) => {
46
46
  n2.default = e3;
47
47
  return Object.freeze(n2);
48
48
  }
49
+ const styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
49
50
  const React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
50
51
  const React__namespace = /* @__PURE__ */ _interopNamespace(React);
51
52
  const ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
52
- const styled__default = /* @__PURE__ */ _interopDefaultLegacy(styled);
53
53
  function _extends$4() {
54
54
  _extends$4 = Object.assign ? Object.assign.bind() : function(target) {
55
55
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -15753,13 +15753,13 @@ var __privateSet = (obj, member, value, setter) => {
15753
15753
  d2.displayName = "Icon", d2.propTypes = { path: o2.string.isRequired, size: o2.oneOfType([o2.number, o2.string]), color: o2.string, horizontal: o2.bool, vertical: o2.bool, rotate: o2.number, spin: o2.oneOfType([o2.bool, o2.number]), style: o2.object, inStack: o2.bool, className: o2.string }, d2.defaultProps = { size: null, color: "currentColor", horizontal: false, vertical: false, rotate: 0, spin: false };
15754
15754
  t2.default = d2;
15755
15755
  }]);
15756
- const shouldForwardProp$6 = (prop) => !["asButton"].includes(prop);
15757
- const StyledFAIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$6 })`
15756
+ const shouldForwardProp$7 = (prop) => !["asButton"].includes(prop);
15757
+ const StyledFAIcon$1 = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$7 })`
15758
15758
  cursor: ${(props) => props.asButton ? "pointer" : "inherit"};
15759
15759
  color: inherit;
15760
15760
  ${(props) => props.asButton ? `:hover { color: ${props.theme.colors.grey6}; }` : ""}
15761
15761
  `;
15762
- const mapFASizeToMD = {
15762
+ const mapFASizeToMD$1 = {
15763
15763
  "10x": "120px",
15764
15764
  "1x": "12px",
15765
15765
  "2x": "24px",
@@ -15774,28 +15774,28 @@ var __privateSet = (obj, member, value, setter) => {
15774
15774
  sm: "12px",
15775
15775
  xs: "6px"
15776
15776
  };
15777
- const SizeMappedMDIcon = (props) => {
15777
+ const SizeMappedMDIcon$1 = (props) => {
15778
15778
  if (props.size) {
15779
- return jsxRuntime.exports.jsx(Icon$3.Icon, Object.assign({}, props, { size: mapFASizeToMD[props.size] }));
15779
+ return jsxRuntime.exports.jsx(Icon$3.Icon, Object.assign({}, props, { size: mapFASizeToMD$1[props.size] }));
15780
15780
  }
15781
15781
  return jsxRuntime.exports.jsx(Icon$3.Icon, Object.assign({}, props));
15782
15782
  };
15783
- styled__default.default(SizeMappedMDIcon).withConfig({ shouldForwardProp: shouldForwardProp$6 })`
15783
+ styled__default.default(SizeMappedMDIcon$1).withConfig({ shouldForwardProp: shouldForwardProp$7 })`
15784
15784
  cursor: ${(props) => props.asButton ? "pointer" : "default"};
15785
15785
  color: inherit;
15786
15786
  ${(props) => props.asButton ? `:hover { color: ${props.theme.colors.grey6}; }` : ""}
15787
15787
  `;
15788
15788
  const CheckSquare = (props) => {
15789
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCheckSquare }, props));
15789
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faCheckSquare }, props));
15790
15790
  };
15791
15791
  const ChevronLeft = (props) => {
15792
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faChevronLeft }, props));
15792
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faChevronLeft }, props));
15793
15793
  };
15794
15794
  const ChevronRight = (props) => {
15795
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faChevronRight }, props));
15795
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faChevronRight }, props));
15796
15796
  };
15797
15797
  const Circle = (props) => {
15798
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircle }, props));
15798
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faCircle }, props));
15799
15799
  };
15800
15800
  var faSquare = {
15801
15801
  prefix: "far",
@@ -15813,55 +15813,40 @@ var __privateSet = (obj, member, value, setter) => {
15813
15813
  icon: [448, 512, [], "f0c5", "M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"]
15814
15814
  };
15815
15815
  const Copy = (props) => {
15816
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCopy }, props));
15817
- };
15818
- const Cross = (props) => {
15819
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faTimes }, props));
15816
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faCopy }, props));
15820
15817
  };
15821
15818
  const Square = (props) => {
15822
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faSquare }, props));
15819
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faSquare }, props));
15823
15820
  };
15824
15821
  const ToggleOff = (props) => {
15825
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faToggleOff }, props));
15822
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faToggleOff }, props));
15826
15823
  };
15827
15824
  const ToggleOn = (props) => {
15828
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faToggleOn }, props));
15825
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faToggleOn }, props));
15829
15826
  };
15830
15827
  const Trash = (props) => {
15831
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faTrash }, props));
15828
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faTrash }, props));
15832
15829
  };
15833
15830
  const ChevronDown = (props) => {
15834
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faChevronDown }, props));
15831
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faChevronDown }, props));
15835
15832
  };
15836
15833
  const ChevronUp = (props) => {
15837
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faChevronUp }, props));
15834
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faChevronUp }, props));
15838
15835
  };
15839
15836
  const Moon = (props) => {
15840
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faMoon }, props));
15837
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faMoon }, props));
15841
15838
  };
15842
15839
  const PenToSquare = (props) => {
15843
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faPenToSquare }, props));
15844
- };
15845
- const CircleCheck = (props) => {
15846
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleCheck }, props));
15847
- };
15848
- const CircleInfo = (props) => {
15849
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleInfo }, props));
15840
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faPenToSquare }, props));
15850
15841
  };
15851
15842
  const MagnifyingGlass = (props) => {
15852
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faMagnifyingGlass }, props));
15843
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faMagnifyingGlass }, props));
15853
15844
  };
15854
15845
  const Xmark = (props) => {
15855
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faXmark }, props));
15856
- };
15857
- const TriangleExclamation = (props) => {
15858
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faTriangleExclamation }, props));
15846
+ return jsxRuntime.exports.jsx(StyledFAIcon$1, Object.assign({ icon: faXmark }, props));
15859
15847
  };
15860
- const CircleXmark = (props) => {
15861
- return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleXmark }, props));
15862
- };
15863
- const shouldForwardProp$5 = (prop) => !["isOpen"].includes(prop);
15864
- const Icon$2 = styled__default.default(ChevronDown).withConfig({ shouldForwardProp: shouldForwardProp$5 })`
15848
+ const shouldForwardProp$6 = (prop) => !["isOpen"].includes(prop);
15849
+ const Icon$2 = styled__default.default(ChevronDown).withConfig({ shouldForwardProp: shouldForwardProp$6 })`
15865
15850
  cursor: ${(props) => props.disabled ? "not-allowed" : "pointer"};
15866
15851
  transform: ${(props) => {
15867
15852
  const start2 = props.angles ? props.angles[0] : 0;
@@ -17436,8 +17421,8 @@ var __privateSet = (obj, member, value, setter) => {
17436
17421
  width: 100%;
17437
17422
  height: 100%;
17438
17423
  `;
17439
- const shouldForwardProp$4 = (prop) => !["color", "width"].includes(prop);
17440
- const Badge = styled__default.default.span.withConfig({ shouldForwardProp: shouldForwardProp$4 })`
17424
+ const shouldForwardProp$5 = (prop) => !["color", "width"].includes(prop);
17425
+ const Badge = styled__default.default.span.withConfig({ shouldForwardProp: shouldForwardProp$5 })`
17441
17426
  display: inline-flex;
17442
17427
  align-items: center;
17443
17428
  justify-content: center;
@@ -17545,7 +17530,7 @@ var __privateSet = (obj, member, value, setter) => {
17545
17530
  };
17546
17531
  return _wrapNativeSuper$1(Class);
17547
17532
  }
17548
- var PolishedError$1 = /* @__PURE__ */ function(_Error) {
17533
+ var PolishedError$2 = /* @__PURE__ */ function(_Error) {
17549
17534
  _inheritsLoose$1(PolishedError2, _Error);
17550
17535
  function PolishedError2(code) {
17551
17536
  var _this;
@@ -17556,15 +17541,15 @@ var __privateSet = (obj, member, value, setter) => {
17556
17541
  }
17557
17542
  return PolishedError2;
17558
17543
  }(/* @__PURE__ */ _wrapNativeSuper$1(Error));
17559
- function colorToInt$1(color) {
17544
+ function colorToInt$2(color) {
17560
17545
  return Math.round(color * 255);
17561
17546
  }
17562
- function convertToInt$1(red, green, blue) {
17563
- return colorToInt$1(red) + "," + colorToInt$1(green) + "," + colorToInt$1(blue);
17547
+ function convertToInt$2(red, green, blue) {
17548
+ return colorToInt$2(red) + "," + colorToInt$2(green) + "," + colorToInt$2(blue);
17564
17549
  }
17565
- function hslToRgb$1(hue, saturation, lightness, convert2) {
17550
+ function hslToRgb$2(hue, saturation, lightness, convert2) {
17566
17551
  if (convert2 === void 0) {
17567
- convert2 = convertToInt$1;
17552
+ convert2 = convertToInt$2;
17568
17553
  }
17569
17554
  if (saturation === 0) {
17570
17555
  return convert2(lightness, lightness, lightness);
@@ -17600,7 +17585,7 @@ var __privateSet = (obj, member, value, setter) => {
17600
17585
  var finalBlue = blue + lightnessModification;
17601
17586
  return convert2(finalRed, finalGreen, finalBlue);
17602
17587
  }
17603
- var namedColorMap$1 = {
17588
+ var namedColorMap$2 = {
17604
17589
  aliceblue: "f0f8ff",
17605
17590
  antiquewhite: "faebd7",
17606
17591
  aqua: "00ffff",
@@ -17750,33 +17735,33 @@ var __privateSet = (obj, member, value, setter) => {
17750
17735
  yellow: "ff0",
17751
17736
  yellowgreen: "9acd32"
17752
17737
  };
17753
- function nameToHex$1(color) {
17738
+ function nameToHex$2(color) {
17754
17739
  if (typeof color !== "string")
17755
17740
  return color;
17756
17741
  var normalizedColorName = color.toLowerCase();
17757
- return namedColorMap$1[normalizedColorName] ? "#" + namedColorMap$1[normalizedColorName] : color;
17758
- }
17759
- var hexRegex$1 = /^#[a-fA-F0-9]{6}$/;
17760
- var hexRgbaRegex$1 = /^#[a-fA-F0-9]{8}$/;
17761
- var reducedHexRegex$1 = /^#[a-fA-F0-9]{3}$/;
17762
- var reducedRgbaHexRegex$1 = /^#[a-fA-F0-9]{4}$/;
17763
- var rgbRegex$1 = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
17764
- var rgbaRegex$1 = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
17765
- var hslRegex$1 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
17766
- var hslaRegex$1 = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
17767
- function parseToRgb$1(color) {
17742
+ return namedColorMap$2[normalizedColorName] ? "#" + namedColorMap$2[normalizedColorName] : color;
17743
+ }
17744
+ var hexRegex$2 = /^#[a-fA-F0-9]{6}$/;
17745
+ var hexRgbaRegex$2 = /^#[a-fA-F0-9]{8}$/;
17746
+ var reducedHexRegex$2 = /^#[a-fA-F0-9]{3}$/;
17747
+ var reducedRgbaHexRegex$2 = /^#[a-fA-F0-9]{4}$/;
17748
+ var rgbRegex$2 = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
17749
+ var rgbaRegex$2 = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
17750
+ var hslRegex$2 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
17751
+ var hslaRegex$2 = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
17752
+ function parseToRgb$2(color) {
17768
17753
  if (typeof color !== "string") {
17769
- throw new PolishedError$1(3);
17754
+ throw new PolishedError$2(3);
17770
17755
  }
17771
- var normalizedColor = nameToHex$1(color);
17772
- if (normalizedColor.match(hexRegex$1)) {
17756
+ var normalizedColor = nameToHex$2(color);
17757
+ if (normalizedColor.match(hexRegex$2)) {
17773
17758
  return {
17774
17759
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
17775
17760
  green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
17776
17761
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
17777
17762
  };
17778
17763
  }
17779
- if (normalizedColor.match(hexRgbaRegex$1)) {
17764
+ if (normalizedColor.match(hexRgbaRegex$2)) {
17780
17765
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
17781
17766
  return {
17782
17767
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -17785,14 +17770,14 @@ var __privateSet = (obj, member, value, setter) => {
17785
17770
  alpha
17786
17771
  };
17787
17772
  }
17788
- if (normalizedColor.match(reducedHexRegex$1)) {
17773
+ if (normalizedColor.match(reducedHexRegex$2)) {
17789
17774
  return {
17790
17775
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
17791
17776
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
17792
17777
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
17793
17778
  };
17794
17779
  }
17795
- if (normalizedColor.match(reducedRgbaHexRegex$1)) {
17780
+ if (normalizedColor.match(reducedRgbaHexRegex$2)) {
17796
17781
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
17797
17782
  return {
17798
17783
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -17801,7 +17786,7 @@ var __privateSet = (obj, member, value, setter) => {
17801
17786
  alpha: _alpha
17802
17787
  };
17803
17788
  }
17804
- var rgbMatched = rgbRegex$1.exec(normalizedColor);
17789
+ var rgbMatched = rgbRegex$2.exec(normalizedColor);
17805
17790
  if (rgbMatched) {
17806
17791
  return {
17807
17792
  red: parseInt("" + rgbMatched[1], 10),
@@ -17809,7 +17794,7 @@ var __privateSet = (obj, member, value, setter) => {
17809
17794
  blue: parseInt("" + rgbMatched[3], 10)
17810
17795
  };
17811
17796
  }
17812
- var rgbaMatched = rgbaRegex$1.exec(normalizedColor);
17797
+ var rgbaMatched = rgbaRegex$2.exec(normalizedColor);
17813
17798
  if (rgbaMatched) {
17814
17799
  return {
17815
17800
  red: parseInt("" + rgbaMatched[1], 10),
@@ -17818,15 +17803,15 @@ var __privateSet = (obj, member, value, setter) => {
17818
17803
  alpha: parseFloat("" + rgbaMatched[4])
17819
17804
  };
17820
17805
  }
17821
- var hslMatched = hslRegex$1.exec(normalizedColor);
17806
+ var hslMatched = hslRegex$2.exec(normalizedColor);
17822
17807
  if (hslMatched) {
17823
17808
  var hue = parseInt("" + hslMatched[1], 10);
17824
17809
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
17825
17810
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
17826
- var rgbColorString = "rgb(" + hslToRgb$1(hue, saturation, lightness) + ")";
17827
- var hslRgbMatched = rgbRegex$1.exec(rgbColorString);
17811
+ var rgbColorString = "rgb(" + hslToRgb$2(hue, saturation, lightness) + ")";
17812
+ var hslRgbMatched = rgbRegex$2.exec(rgbColorString);
17828
17813
  if (!hslRgbMatched) {
17829
- throw new PolishedError$1(4, normalizedColor, rgbColorString);
17814
+ throw new PolishedError$2(4, normalizedColor, rgbColorString);
17830
17815
  }
17831
17816
  return {
17832
17817
  red: parseInt("" + hslRgbMatched[1], 10),
@@ -17834,15 +17819,15 @@ var __privateSet = (obj, member, value, setter) => {
17834
17819
  blue: parseInt("" + hslRgbMatched[3], 10)
17835
17820
  };
17836
17821
  }
17837
- var hslaMatched = hslaRegex$1.exec(normalizedColor);
17822
+ var hslaMatched = hslaRegex$2.exec(normalizedColor);
17838
17823
  if (hslaMatched) {
17839
17824
  var _hue = parseInt("" + hslaMatched[1], 10);
17840
17825
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
17841
17826
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
17842
- var _rgbColorString = "rgb(" + hslToRgb$1(_hue, _saturation, _lightness) + ")";
17843
- var _hslRgbMatched = rgbRegex$1.exec(_rgbColorString);
17827
+ var _rgbColorString = "rgb(" + hslToRgb$2(_hue, _saturation, _lightness) + ")";
17828
+ var _hslRgbMatched = rgbRegex$2.exec(_rgbColorString);
17844
17829
  if (!_hslRgbMatched) {
17845
- throw new PolishedError$1(4, normalizedColor, _rgbColorString);
17830
+ throw new PolishedError$2(4, normalizedColor, _rgbColorString);
17846
17831
  }
17847
17832
  return {
17848
17833
  red: parseInt("" + _hslRgbMatched[1], 10),
@@ -17851,60 +17836,60 @@ var __privateSet = (obj, member, value, setter) => {
17851
17836
  alpha: parseFloat("" + hslaMatched[4])
17852
17837
  };
17853
17838
  }
17854
- throw new PolishedError$1(5);
17839
+ throw new PolishedError$2(5);
17855
17840
  }
17856
- var reduceHexValue$2 = function reduceHexValue2(value) {
17841
+ var reduceHexValue$3 = function reduceHexValue2(value) {
17857
17842
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
17858
17843
  return "#" + value[1] + value[3] + value[5];
17859
17844
  }
17860
17845
  return value;
17861
17846
  };
17862
- function numberToHex$1(value) {
17847
+ function numberToHex$2(value) {
17863
17848
  var hex = value.toString(16);
17864
17849
  return hex.length === 1 ? "0" + hex : hex;
17865
17850
  }
17866
- function rgb$1(value, green, blue) {
17851
+ function rgb$2(value, green, blue) {
17867
17852
  if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
17868
- return reduceHexValue$2("#" + numberToHex$1(value) + numberToHex$1(green) + numberToHex$1(blue));
17853
+ return reduceHexValue$3("#" + numberToHex$2(value) + numberToHex$2(green) + numberToHex$2(blue));
17869
17854
  } else if (typeof value === "object" && green === void 0 && blue === void 0) {
17870
- return reduceHexValue$2("#" + numberToHex$1(value.red) + numberToHex$1(value.green) + numberToHex$1(value.blue));
17855
+ return reduceHexValue$3("#" + numberToHex$2(value.red) + numberToHex$2(value.green) + numberToHex$2(value.blue));
17871
17856
  }
17872
- throw new PolishedError$1(6);
17857
+ throw new PolishedError$2(6);
17873
17858
  }
17874
- function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
17859
+ function rgba$2(firstValue, secondValue, thirdValue, fourthValue) {
17875
17860
  if (typeof firstValue === "string" && typeof secondValue === "number") {
17876
- var rgbValue = parseToRgb$1(firstValue);
17861
+ var rgbValue = parseToRgb$2(firstValue);
17877
17862
  return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
17878
17863
  } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
17879
- return fourthValue >= 1 ? rgb$1(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
17864
+ return fourthValue >= 1 ? rgb$2(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
17880
17865
  } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
17881
- return firstValue.alpha >= 1 ? rgb$1(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
17866
+ return firstValue.alpha >= 1 ? rgb$2(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
17882
17867
  }
17883
- throw new PolishedError$1(7);
17868
+ throw new PolishedError$2(7);
17884
17869
  }
17885
- function curried$1(f2, length, acc) {
17870
+ function curried$2(f2, length, acc) {
17886
17871
  return function fn() {
17887
17872
  var combined = acc.concat(Array.prototype.slice.call(arguments));
17888
- return combined.length >= length ? f2.apply(this, combined) : curried$1(f2, length, combined);
17873
+ return combined.length >= length ? f2.apply(this, combined) : curried$2(f2, length, combined);
17889
17874
  };
17890
17875
  }
17891
- function curry$2(f2) {
17892
- return curried$1(f2, f2.length, []);
17876
+ function curry$3(f2) {
17877
+ return curried$2(f2, f2.length, []);
17893
17878
  }
17894
- function guard$1(lowerBoundary, upperBoundary, value) {
17879
+ function guard$2(lowerBoundary, upperBoundary, value) {
17895
17880
  return Math.max(lowerBoundary, Math.min(upperBoundary, value));
17896
17881
  }
17897
- function transparentize$1(amount, color) {
17882
+ function transparentize$2(amount, color) {
17898
17883
  if (color === "transparent")
17899
17884
  return color;
17900
- var parsedColor = parseToRgb$1(color);
17885
+ var parsedColor = parseToRgb$2(color);
17901
17886
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
17902
17887
  var colorWithAlpha = _extends$1({}, parsedColor, {
17903
- alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
17888
+ alpha: guard$2(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
17904
17889
  });
17905
- return rgba$1(colorWithAlpha);
17890
+ return rgba$2(colorWithAlpha);
17906
17891
  }
17907
- var curriedTransparentize$2 = /* @__PURE__ */ curry$2(transparentize$1);
17892
+ var curriedTransparentize$2 = /* @__PURE__ */ curry$3(transparentize$2);
17908
17893
  const Wrapper$8 = styled__default.default.div`
17909
17894
  display: flex;
17910
17895
  gap: 1rem;
@@ -18159,7 +18144,7 @@ var __privateSet = (obj, member, value, setter) => {
18159
18144
  }};
18160
18145
  }
18161
18146
  `;
18162
- const shouldForwardProp$3 = (prop) => !["selected"].includes(prop);
18147
+ const shouldForwardProp$4 = (prop) => !["selected"].includes(prop);
18163
18148
  function getButtonStyle(buttonColor, disabled2, selected, theme2) {
18164
18149
  let color = buttonColor;
18165
18150
  let backgroundColor = "transparent";
@@ -18207,10 +18192,10 @@ var __privateSet = (obj, member, value, setter) => {
18207
18192
  `)}
18208
18193
  `;
18209
18194
  }
18210
- styled__default.default(BaseButton).withConfig({ shouldForwardProp: shouldForwardProp$3 })`
18195
+ styled__default.default(BaseButton).withConfig({ shouldForwardProp: shouldForwardProp$4 })`
18211
18196
  ${(props) => getButtonStyle(props.theme.colors.primary, props.disabled, props.selected, props.theme)}
18212
18197
  `;
18213
- styled__default.default(BaseButton).withConfig({ shouldForwardProp: shouldForwardProp$3 })`
18198
+ styled__default.default(BaseButton).withConfig({ shouldForwardProp: shouldForwardProp$4 })`
18214
18199
  ${(props) => getButtonStyle(props.theme.colors.secondary, props.disabled, props.selected, props.theme)}
18215
18200
  `;
18216
18201
  styled__default.default.div`
@@ -48785,8 +48770,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
48785
48770
  };
48786
48771
  const { fontSize } = window.getComputedStyle(document.documentElement);
48787
48772
  const ROW_HEIGHT = parseFloat(fontSize) * 2.5;
48788
- const shouldForwardProp$2 = (prop) => !["isSorted", "onClickRow"].includes(prop);
48789
- const Row = styled__default.default.div.withConfig({ shouldForwardProp: shouldForwardProp$2 })`
48773
+ const shouldForwardProp$3 = (prop) => !["isSorted", "onClickRow"].includes(prop);
48774
+ const Row = styled__default.default.div.withConfig({ shouldForwardProp: shouldForwardProp$3 })`
48790
48775
  cursor: ${(props) => props.onClickRow ? "pointer" : "default"};
48791
48776
  display: flex;
48792
48777
 
@@ -49032,7 +49017,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
49032
49017
  width: 10px;
49033
49018
  height: 100%;
49034
49019
  `;
49035
- const SortIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$2 })`
49020
+ const SortIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$3 })`
49036
49021
  color: ${(props) => props.isSorted ? props.theme.colors.grey3 : props.theme.colors.blue3};
49037
49022
  `;
49038
49023
  const TooltipIcon = styled__default.default(FontAwesomeIcon)`
@@ -50421,77 +50406,26 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50421
50406
  }
50422
50407
  return DelayMessage2;
50423
50408
  }();
50424
- function _isNativeFunction(fn) {
50425
- try {
50426
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
50427
- } catch (e3) {
50428
- return typeof fn === "function";
50429
- }
50430
- }
50431
- function _construct(Parent, args, Class) {
50432
- if (_isNativeReflectConstruct$1()) {
50433
- _construct = Reflect.construct.bind();
50434
- } else {
50435
- _construct = function _construct2(Parent2, args2, Class2) {
50436
- var a2 = [null];
50437
- a2.push.apply(a2, args2);
50438
- var Constructor = Function.bind.apply(Parent2, a2);
50439
- var instance = new Constructor();
50440
- if (Class2)
50441
- _setPrototypeOf$5(instance, Class2.prototype);
50442
- return instance;
50443
- };
50444
- }
50445
- return _construct.apply(null, arguments);
50446
- }
50447
- function _wrapNativeSuper(Class) {
50448
- var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
50449
- _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
50450
- if (Class2 === null || !_isNativeFunction(Class2))
50451
- return Class2;
50452
- if (typeof Class2 !== "function") {
50453
- throw new TypeError("Super expression must either be null or a function");
50454
- }
50455
- if (typeof _cache !== "undefined") {
50456
- if (_cache.has(Class2))
50457
- return _cache.get(Class2);
50458
- _cache.set(Class2, Wrapper2);
50459
- }
50460
- function Wrapper2() {
50461
- return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
50462
- }
50463
- Wrapper2.prototype = Object.create(Class2.prototype, {
50464
- constructor: {
50465
- value: Wrapper2,
50466
- enumerable: false,
50467
- writable: true,
50468
- configurable: true
50469
- }
50470
- });
50471
- return _setPrototypeOf$5(Wrapper2, Class2);
50472
- };
50473
- return _wrapNativeSuper(Class);
50474
- }
50475
- var PolishedError = /* @__PURE__ */ function(_Error) {
50476
- _inheritsLoose$2(PolishedError2, _Error);
50409
+ var PolishedError$1 = /* @__PURE__ */ function(_Error) {
50410
+ _inheritsLoose$1(PolishedError2, _Error);
50477
50411
  function PolishedError2(code) {
50478
50412
  var _this;
50479
50413
  {
50480
50414
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
50481
50415
  }
50482
- return _assertThisInitialized$2(_this);
50416
+ return _assertThisInitialized$3(_this);
50483
50417
  }
50484
50418
  return PolishedError2;
50485
- }(/* @__PURE__ */ _wrapNativeSuper(Error));
50486
- function colorToInt(color) {
50419
+ }(/* @__PURE__ */ _wrapNativeSuper$1(Error));
50420
+ function colorToInt$1(color) {
50487
50421
  return Math.round(color * 255);
50488
50422
  }
50489
- function convertToInt(red, green, blue) {
50490
- return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
50423
+ function convertToInt$1(red, green, blue) {
50424
+ return colorToInt$1(red) + "," + colorToInt$1(green) + "," + colorToInt$1(blue);
50491
50425
  }
50492
- function hslToRgb(hue, saturation, lightness, convert2) {
50426
+ function hslToRgb$1(hue, saturation, lightness, convert2) {
50493
50427
  if (convert2 === void 0) {
50494
- convert2 = convertToInt;
50428
+ convert2 = convertToInt$1;
50495
50429
  }
50496
50430
  if (saturation === 0) {
50497
50431
  return convert2(lightness, lightness, lightness);
@@ -50527,7 +50461,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50527
50461
  var finalBlue = blue + lightnessModification;
50528
50462
  return convert2(finalRed, finalGreen, finalBlue);
50529
50463
  }
50530
- var namedColorMap = {
50464
+ var namedColorMap$1 = {
50531
50465
  aliceblue: "f0f8ff",
50532
50466
  antiquewhite: "faebd7",
50533
50467
  aqua: "00ffff",
@@ -50677,33 +50611,33 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50677
50611
  yellow: "ff0",
50678
50612
  yellowgreen: "9acd32"
50679
50613
  };
50680
- function nameToHex(color) {
50614
+ function nameToHex$1(color) {
50681
50615
  if (typeof color !== "string")
50682
50616
  return color;
50683
50617
  var normalizedColorName = color.toLowerCase();
50684
- return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
50618
+ return namedColorMap$1[normalizedColorName] ? "#" + namedColorMap$1[normalizedColorName] : color;
50685
50619
  }
50686
- var hexRegex = /^#[a-fA-F0-9]{6}$/;
50687
- var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
50688
- var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
50689
- var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
50690
- var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
50691
- var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
50692
- var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
50693
- var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
50694
- function parseToRgb(color) {
50620
+ var hexRegex$1 = /^#[a-fA-F0-9]{6}$/;
50621
+ var hexRgbaRegex$1 = /^#[a-fA-F0-9]{8}$/;
50622
+ var reducedHexRegex$1 = /^#[a-fA-F0-9]{3}$/;
50623
+ var reducedRgbaHexRegex$1 = /^#[a-fA-F0-9]{4}$/;
50624
+ var rgbRegex$1 = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
50625
+ var rgbaRegex$1 = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
50626
+ var hslRegex$1 = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
50627
+ var hslaRegex$1 = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
50628
+ function parseToRgb$1(color) {
50695
50629
  if (typeof color !== "string") {
50696
- throw new PolishedError(3);
50630
+ throw new PolishedError$1(3);
50697
50631
  }
50698
- var normalizedColor = nameToHex(color);
50699
- if (normalizedColor.match(hexRegex)) {
50632
+ var normalizedColor = nameToHex$1(color);
50633
+ if (normalizedColor.match(hexRegex$1)) {
50700
50634
  return {
50701
50635
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
50702
50636
  green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
50703
50637
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
50704
50638
  };
50705
50639
  }
50706
- if (normalizedColor.match(hexRgbaRegex)) {
50640
+ if (normalizedColor.match(hexRgbaRegex$1)) {
50707
50641
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
50708
50642
  return {
50709
50643
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -50712,14 +50646,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50712
50646
  alpha
50713
50647
  };
50714
50648
  }
50715
- if (normalizedColor.match(reducedHexRegex)) {
50649
+ if (normalizedColor.match(reducedHexRegex$1)) {
50716
50650
  return {
50717
50651
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
50718
50652
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
50719
50653
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
50720
50654
  };
50721
50655
  }
50722
- if (normalizedColor.match(reducedRgbaHexRegex)) {
50656
+ if (normalizedColor.match(reducedRgbaHexRegex$1)) {
50723
50657
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
50724
50658
  return {
50725
50659
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -50728,7 +50662,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50728
50662
  alpha: _alpha
50729
50663
  };
50730
50664
  }
50731
- var rgbMatched = rgbRegex.exec(normalizedColor);
50665
+ var rgbMatched = rgbRegex$1.exec(normalizedColor);
50732
50666
  if (rgbMatched) {
50733
50667
  return {
50734
50668
  red: parseInt("" + rgbMatched[1], 10),
@@ -50736,7 +50670,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50736
50670
  blue: parseInt("" + rgbMatched[3], 10)
50737
50671
  };
50738
50672
  }
50739
- var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
50673
+ var rgbaMatched = rgbaRegex$1.exec(normalizedColor.substring(0, 50));
50740
50674
  if (rgbaMatched) {
50741
50675
  return {
50742
50676
  red: parseInt("" + rgbaMatched[1], 10),
@@ -50745,15 +50679,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50745
50679
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
50746
50680
  };
50747
50681
  }
50748
- var hslMatched = hslRegex.exec(normalizedColor);
50682
+ var hslMatched = hslRegex$1.exec(normalizedColor);
50749
50683
  if (hslMatched) {
50750
50684
  var hue = parseInt("" + hslMatched[1], 10);
50751
50685
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
50752
50686
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
50753
- var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
50754
- var hslRgbMatched = rgbRegex.exec(rgbColorString);
50687
+ var rgbColorString = "rgb(" + hslToRgb$1(hue, saturation, lightness) + ")";
50688
+ var hslRgbMatched = rgbRegex$1.exec(rgbColorString);
50755
50689
  if (!hslRgbMatched) {
50756
- throw new PolishedError(4, normalizedColor, rgbColorString);
50690
+ throw new PolishedError$1(4, normalizedColor, rgbColorString);
50757
50691
  }
50758
50692
  return {
50759
50693
  red: parseInt("" + hslRgbMatched[1], 10),
@@ -50761,15 +50695,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50761
50695
  blue: parseInt("" + hslRgbMatched[3], 10)
50762
50696
  };
50763
50697
  }
50764
- var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
50698
+ var hslaMatched = hslaRegex$1.exec(normalizedColor.substring(0, 50));
50765
50699
  if (hslaMatched) {
50766
50700
  var _hue = parseInt("" + hslaMatched[1], 10);
50767
50701
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
50768
50702
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
50769
- var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
50770
- var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
50703
+ var _rgbColorString = "rgb(" + hslToRgb$1(_hue, _saturation, _lightness) + ")";
50704
+ var _hslRgbMatched = rgbRegex$1.exec(_rgbColorString);
50771
50705
  if (!_hslRgbMatched) {
50772
- throw new PolishedError(4, normalizedColor, _rgbColorString);
50706
+ throw new PolishedError$1(4, normalizedColor, _rgbColorString);
50773
50707
  }
50774
50708
  return {
50775
50709
  red: parseInt("" + _hslRgbMatched[1], 10),
@@ -50778,50 +50712,191 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50778
50712
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
50779
50713
  };
50780
50714
  }
50781
- throw new PolishedError(5);
50715
+ throw new PolishedError$1(5);
50782
50716
  }
50783
- var reduceHexValue = function reduceHexValue2(value) {
50717
+ function rgbToHsl(color) {
50718
+ var red = color.red / 255;
50719
+ var green = color.green / 255;
50720
+ var blue = color.blue / 255;
50721
+ var max2 = Math.max(red, green, blue);
50722
+ var min2 = Math.min(red, green, blue);
50723
+ var lightness = (max2 + min2) / 2;
50724
+ if (max2 === min2) {
50725
+ if (color.alpha !== void 0) {
50726
+ return {
50727
+ hue: 0,
50728
+ saturation: 0,
50729
+ lightness,
50730
+ alpha: color.alpha
50731
+ };
50732
+ } else {
50733
+ return {
50734
+ hue: 0,
50735
+ saturation: 0,
50736
+ lightness
50737
+ };
50738
+ }
50739
+ }
50740
+ var hue;
50741
+ var delta = max2 - min2;
50742
+ var saturation = lightness > 0.5 ? delta / (2 - max2 - min2) : delta / (max2 + min2);
50743
+ switch (max2) {
50744
+ case red:
50745
+ hue = (green - blue) / delta + (green < blue ? 6 : 0);
50746
+ break;
50747
+ case green:
50748
+ hue = (blue - red) / delta + 2;
50749
+ break;
50750
+ default:
50751
+ hue = (red - green) / delta + 4;
50752
+ break;
50753
+ }
50754
+ hue *= 60;
50755
+ if (color.alpha !== void 0) {
50756
+ return {
50757
+ hue,
50758
+ saturation,
50759
+ lightness,
50760
+ alpha: color.alpha
50761
+ };
50762
+ }
50763
+ return {
50764
+ hue,
50765
+ saturation,
50766
+ lightness
50767
+ };
50768
+ }
50769
+ function parseToHsl(color) {
50770
+ return rgbToHsl(parseToRgb$1(color));
50771
+ }
50772
+ var reduceHexValue$2 = function reduceHexValue2(value) {
50784
50773
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
50785
50774
  return "#" + value[1] + value[3] + value[5];
50786
50775
  }
50787
50776
  return value;
50788
50777
  };
50789
- var reduceHexValue$1 = reduceHexValue;
50790
- function numberToHex(value) {
50778
+ var reduceHexValue$1$1 = reduceHexValue$2;
50779
+ function numberToHex$1(value) {
50791
50780
  var hex = value.toString(16);
50792
50781
  return hex.length === 1 ? "0" + hex : hex;
50793
50782
  }
50794
- function rgb(value, green, blue) {
50783
+ function colorToHex(color) {
50784
+ return numberToHex$1(Math.round(color * 255));
50785
+ }
50786
+ function convertToHex(red, green, blue) {
50787
+ return reduceHexValue$1$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
50788
+ }
50789
+ function hslToHex(hue, saturation, lightness) {
50790
+ return hslToRgb$1(hue, saturation, lightness, convertToHex);
50791
+ }
50792
+ function hsl(value, saturation, lightness) {
50793
+ if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number") {
50794
+ return hslToHex(value, saturation, lightness);
50795
+ } else if (typeof value === "object" && saturation === void 0 && lightness === void 0) {
50796
+ return hslToHex(value.hue, value.saturation, value.lightness);
50797
+ }
50798
+ throw new PolishedError$1(1);
50799
+ }
50800
+ function hsla(value, saturation, lightness, alpha) {
50801
+ if (typeof value === "number" && typeof saturation === "number" && typeof lightness === "number" && typeof alpha === "number") {
50802
+ return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb$1(value, saturation, lightness) + "," + alpha + ")";
50803
+ } else if (typeof value === "object" && saturation === void 0 && lightness === void 0 && alpha === void 0) {
50804
+ return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb$1(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
50805
+ }
50806
+ throw new PolishedError$1(2);
50807
+ }
50808
+ function rgb$1(value, green, blue) {
50795
50809
  if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
50796
- return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
50810
+ return reduceHexValue$1$1("#" + numberToHex$1(value) + numberToHex$1(green) + numberToHex$1(blue));
50797
50811
  } else if (typeof value === "object" && green === void 0 && blue === void 0) {
50798
- return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
50812
+ return reduceHexValue$1$1("#" + numberToHex$1(value.red) + numberToHex$1(value.green) + numberToHex$1(value.blue));
50799
50813
  }
50800
- throw new PolishedError(6);
50814
+ throw new PolishedError$1(6);
50801
50815
  }
50802
- function rgba(firstValue, secondValue, thirdValue, fourthValue) {
50816
+ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
50803
50817
  if (typeof firstValue === "string" && typeof secondValue === "number") {
50804
- var rgbValue = parseToRgb(firstValue);
50818
+ var rgbValue = parseToRgb$1(firstValue);
50805
50819
  return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
50806
50820
  } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
50807
- return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
50821
+ return fourthValue >= 1 ? rgb$1(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
50808
50822
  } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
50809
- return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
50823
+ return firstValue.alpha >= 1 ? rgb$1(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
50810
50824
  }
50811
- throw new PolishedError(7);
50825
+ throw new PolishedError$1(7);
50812
50826
  }
50813
- function curried(f2, length, acc) {
50827
+ var isRgb = function isRgb2(color) {
50828
+ return typeof color.red === "number" && typeof color.green === "number" && typeof color.blue === "number" && (typeof color.alpha !== "number" || typeof color.alpha === "undefined");
50829
+ };
50830
+ var isRgba = function isRgba2(color) {
50831
+ return typeof color.red === "number" && typeof color.green === "number" && typeof color.blue === "number" && typeof color.alpha === "number";
50832
+ };
50833
+ var isHsl = function isHsl2(color) {
50834
+ return typeof color.hue === "number" && typeof color.saturation === "number" && typeof color.lightness === "number" && (typeof color.alpha !== "number" || typeof color.alpha === "undefined");
50835
+ };
50836
+ var isHsla = function isHsla2(color) {
50837
+ return typeof color.hue === "number" && typeof color.saturation === "number" && typeof color.lightness === "number" && typeof color.alpha === "number";
50838
+ };
50839
+ function toColorString(color) {
50840
+ if (typeof color !== "object")
50841
+ throw new PolishedError$1(8);
50842
+ if (isRgba(color))
50843
+ return rgba$1(color);
50844
+ if (isRgb(color))
50845
+ return rgb$1(color);
50846
+ if (isHsla(color))
50847
+ return hsla(color);
50848
+ if (isHsl(color))
50849
+ return hsl(color);
50850
+ throw new PolishedError$1(8);
50851
+ }
50852
+ function curried$1(f2, length, acc) {
50814
50853
  return function fn() {
50815
50854
  var combined = acc.concat(Array.prototype.slice.call(arguments));
50816
- return combined.length >= length ? f2.apply(this, combined) : curried(f2, length, combined);
50855
+ return combined.length >= length ? f2.apply(this, combined) : curried$1(f2, length, combined);
50817
50856
  };
50818
50857
  }
50819
- function curry$1(f2) {
50820
- return curried(f2, f2.length, []);
50858
+ function curry$2(f2) {
50859
+ return curried$1(f2, f2.length, []);
50821
50860
  }
50822
- function guard(lowerBoundary, upperBoundary, value) {
50861
+ function adjustHue(degree, color) {
50862
+ if (color === "transparent")
50863
+ return color;
50864
+ var hslColor = parseToHsl(color);
50865
+ return toColorString(_extends$1({}, hslColor, {
50866
+ hue: hslColor.hue + parseFloat(degree)
50867
+ }));
50868
+ }
50869
+ curry$2(adjustHue);
50870
+ function guard$1(lowerBoundary, upperBoundary, value) {
50823
50871
  return Math.max(lowerBoundary, Math.min(upperBoundary, value));
50824
50872
  }
50873
+ function darken(amount, color) {
50874
+ if (color === "transparent")
50875
+ return color;
50876
+ var hslColor = parseToHsl(color);
50877
+ return toColorString(_extends$1({}, hslColor, {
50878
+ lightness: guard$1(0, 1, hslColor.lightness - parseFloat(amount))
50879
+ }));
50880
+ }
50881
+ curry$2(darken);
50882
+ function desaturate(amount, color) {
50883
+ if (color === "transparent")
50884
+ return color;
50885
+ var hslColor = parseToHsl(color);
50886
+ return toColorString(_extends$1({}, hslColor, {
50887
+ saturation: guard$1(0, 1, hslColor.saturation - parseFloat(amount))
50888
+ }));
50889
+ }
50890
+ curry$2(desaturate);
50891
+ function lighten(amount, color) {
50892
+ if (color === "transparent")
50893
+ return color;
50894
+ var hslColor = parseToHsl(color);
50895
+ return toColorString(_extends$1({}, hslColor, {
50896
+ lightness: guard$1(0, 1, hslColor.lightness + parseFloat(amount))
50897
+ }));
50898
+ }
50899
+ curry$2(lighten);
50825
50900
  function mix(weight, color, otherColor) {
50826
50901
  if (color === "transparent")
50827
50902
  return otherColor;
@@ -50829,12 +50904,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50829
50904
  return color;
50830
50905
  if (weight === 0)
50831
50906
  return otherColor;
50832
- var parsedColor1 = parseToRgb(color);
50833
- var color1 = _extends$4({}, parsedColor1, {
50907
+ var parsedColor1 = parseToRgb$1(color);
50908
+ var color1 = _extends$1({}, parsedColor1, {
50834
50909
  alpha: typeof parsedColor1.alpha === "number" ? parsedColor1.alpha : 1
50835
50910
  });
50836
- var parsedColor2 = parseToRgb(otherColor);
50837
- var color2 = _extends$4({}, parsedColor2, {
50911
+ var parsedColor2 = parseToRgb$1(otherColor);
50912
+ var color2 = _extends$1({}, parsedColor2, {
50838
50913
  alpha: typeof parsedColor2.alpha === "number" ? parsedColor2.alpha : 1
50839
50914
  });
50840
50915
  var alphaDelta = color1.alpha - color2.alpha;
@@ -50849,22 +50924,124 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
50849
50924
  blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),
50850
50925
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
50851
50926
  };
50852
- return rgba(mixedColor);
50927
+ return rgba$1(mixedColor);
50853
50928
  }
50854
- var curriedMix = /* @__PURE__ */ curry$1(mix);
50929
+ var curriedMix = curry$2(mix);
50855
50930
  var mix$1 = curriedMix;
50856
- function transparentize(amount, color) {
50931
+ function opacify(amount, color) {
50857
50932
  if (color === "transparent")
50858
50933
  return color;
50859
- var parsedColor = parseToRgb(color);
50934
+ var parsedColor = parseToRgb$1(color);
50860
50935
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
50861
- var colorWithAlpha = _extends$4({}, parsedColor, {
50862
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
50936
+ var colorWithAlpha = _extends$1({}, parsedColor, {
50937
+ alpha: guard$1(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
50863
50938
  });
50864
- return rgba(colorWithAlpha);
50939
+ return rgba$1(colorWithAlpha);
50865
50940
  }
50866
- var curriedTransparentize = /* @__PURE__ */ curry$1(transparentize);
50867
- var curriedTransparentize$1 = curriedTransparentize;
50941
+ curry$2(opacify);
50942
+ function saturate(amount, color) {
50943
+ if (color === "transparent")
50944
+ return color;
50945
+ var hslColor = parseToHsl(color);
50946
+ return toColorString(_extends$1({}, hslColor, {
50947
+ saturation: guard$1(0, 1, hslColor.saturation + parseFloat(amount))
50948
+ }));
50949
+ }
50950
+ curry$2(saturate);
50951
+ function setHue(hue, color) {
50952
+ if (color === "transparent")
50953
+ return color;
50954
+ return toColorString(_extends$1({}, parseToHsl(color), {
50955
+ hue: parseFloat(hue)
50956
+ }));
50957
+ }
50958
+ curry$2(setHue);
50959
+ function setLightness(lightness, color) {
50960
+ if (color === "transparent")
50961
+ return color;
50962
+ return toColorString(_extends$1({}, parseToHsl(color), {
50963
+ lightness: parseFloat(lightness)
50964
+ }));
50965
+ }
50966
+ curry$2(setLightness);
50967
+ function setSaturation(saturation, color) {
50968
+ if (color === "transparent")
50969
+ return color;
50970
+ return toColorString(_extends$1({}, parseToHsl(color), {
50971
+ saturation: parseFloat(saturation)
50972
+ }));
50973
+ }
50974
+ curry$2(setSaturation);
50975
+ function shade(percentage, color) {
50976
+ if (color === "transparent")
50977
+ return color;
50978
+ return mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color);
50979
+ }
50980
+ curry$2(shade);
50981
+ function tint(percentage, color) {
50982
+ if (color === "transparent")
50983
+ return color;
50984
+ return mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color);
50985
+ }
50986
+ curry$2(tint);
50987
+ function transparentize$1(amount, color) {
50988
+ if (color === "transparent")
50989
+ return color;
50990
+ var parsedColor = parseToRgb$1(color);
50991
+ var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
50992
+ var colorWithAlpha = _extends$1({}, parsedColor, {
50993
+ alpha: guard$1(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
50994
+ });
50995
+ return rgba$1(colorWithAlpha);
50996
+ }
50997
+ curry$2(transparentize$1);
50998
+ const shouldForwardProp$2 = (prop) => !["asButton"].includes(prop);
50999
+ const StyledFAIcon = styled__default.default(FontAwesomeIcon).withConfig({ shouldForwardProp: shouldForwardProp$2 })`
51000
+ cursor: ${(props) => props.asButton ? "pointer" : "inherit"};
51001
+ color: inherit;
51002
+ ${(props) => props.asButton ? `:hover { color: ${props.theme.colors.grey6}; }` : ""}
51003
+ `;
51004
+ const mapFASizeToMD = {
51005
+ "10x": "120px",
51006
+ "1x": "12px",
51007
+ "2x": "24px",
51008
+ "3x": "36px",
51009
+ "4x": "48px",
51010
+ "5x": "60px",
51011
+ "6x": "72px",
51012
+ "7x": "84px",
51013
+ "8x": "96px",
51014
+ "9x": "108px",
51015
+ lg: "24px",
51016
+ sm: "12px",
51017
+ xs: "6px"
51018
+ };
51019
+ const SizeMappedMDIcon = (props) => {
51020
+ if (props.size) {
51021
+ return jsxRuntime.exports.jsx(Icon$3.Icon, Object.assign({}, props, { size: mapFASizeToMD[props.size] }));
51022
+ }
51023
+ return jsxRuntime.exports.jsx(Icon$3.Icon, Object.assign({}, props));
51024
+ };
51025
+ styled__default.default(SizeMappedMDIcon).withConfig({ shouldForwardProp: shouldForwardProp$2 })`
51026
+ cursor: ${(props) => props.asButton ? "pointer" : "default"};
51027
+ color: inherit;
51028
+ ${(props) => props.asButton ? `:hover { color: ${props.theme.colors.grey6}; }` : ""}
51029
+ `;
51030
+ const Cross = (props) => {
51031
+ return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faTimes }, props));
51032
+ };
51033
+ const CircleCheck = (props) => {
51034
+ return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleCheck }, props));
51035
+ };
51036
+ const CircleInfo = (props) => {
51037
+ return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleInfo }, props));
51038
+ };
51039
+ const TriangleExclamation = (props) => {
51040
+ return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faTriangleExclamation }, props));
51041
+ };
51042
+ const CircleXmark = (props) => {
51043
+ return jsxRuntime.exports.jsx(StyledFAIcon, Object.assign({ icon: faCircleXmark }, props));
51044
+ };
50868
51045
  const NotificationWrapper$1 = styled__default.default.div`
50869
51046
  pointer-events: auto;
50870
51047
 
@@ -51638,14 +51815,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
51638
51815
  var _createWrap = createWrap$1;
51639
51816
  var createWrap = _createWrap;
51640
51817
  var WRAP_CURRY_FLAG = 8;
51641
- function curry(func, arity, guard2) {
51818
+ function curry$1(func, arity, guard2) {
51642
51819
  arity = guard2 ? void 0 : arity;
51643
51820
  var result = createWrap(func, WRAP_CURRY_FLAG, void 0, void 0, void 0, void 0, void 0, arity);
51644
- result.placeholder = curry.placeholder;
51821
+ result.placeholder = curry$1.placeholder;
51645
51822
  return result;
51646
51823
  }
51647
- curry.placeholder = {};
51648
- var curry_1 = curry;
51824
+ curry$1.placeholder = {};
51825
+ var curry_1 = curry$1;
51649
51826
  function useNotifications() {
51650
51827
  const { push } = React.useContext(NotificationContext);
51651
51828
  const curriedPush = React__default.default.useCallback((status) => curry_1((title, err2) => {
@@ -55765,10 +55942,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
55765
55942
  ).toPromise();
55766
55943
  }
55767
55944
  sendVariable(value, channel) {
55945
+ this.sendMessage(value, channel);
55946
+ }
55947
+ sendMessage(value, channel, chunkCount) {
55768
55948
  if (this.socket.readyState === WebSocket.OPEN) {
55769
55949
  this.socket.send(
55770
55950
  JSON.stringify({
55771
55951
  channel,
55952
+ chunk_count: chunkCount != null ? chunkCount : null,
55772
55953
  message: value,
55773
55954
  type: "message"
55774
55955
  })
@@ -58227,6 +58408,419 @@ Inferred class string: "${iconClasses}."`
58227
58408
  function isSelectorError(e3) {
58228
58409
  return e3 !== void 0 && e3 !== null && typeof e3 === "object" && "selectorId" in e3 && "selectorExtras" in e3;
58229
58410
  }
58411
+ function _isNativeFunction(fn) {
58412
+ try {
58413
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
58414
+ } catch (e3) {
58415
+ return typeof fn === "function";
58416
+ }
58417
+ }
58418
+ function _construct(Parent, args, Class) {
58419
+ if (_isNativeReflectConstruct$1()) {
58420
+ _construct = Reflect.construct.bind();
58421
+ } else {
58422
+ _construct = function _construct2(Parent2, args2, Class2) {
58423
+ var a2 = [null];
58424
+ a2.push.apply(a2, args2);
58425
+ var Constructor = Function.bind.apply(Parent2, a2);
58426
+ var instance = new Constructor();
58427
+ if (Class2)
58428
+ _setPrototypeOf$5(instance, Class2.prototype);
58429
+ return instance;
58430
+ };
58431
+ }
58432
+ return _construct.apply(null, arguments);
58433
+ }
58434
+ function _wrapNativeSuper(Class) {
58435
+ var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
58436
+ _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
58437
+ if (Class2 === null || !_isNativeFunction(Class2))
58438
+ return Class2;
58439
+ if (typeof Class2 !== "function") {
58440
+ throw new TypeError("Super expression must either be null or a function");
58441
+ }
58442
+ if (typeof _cache !== "undefined") {
58443
+ if (_cache.has(Class2))
58444
+ return _cache.get(Class2);
58445
+ _cache.set(Class2, Wrapper2);
58446
+ }
58447
+ function Wrapper2() {
58448
+ return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
58449
+ }
58450
+ Wrapper2.prototype = Object.create(Class2.prototype, {
58451
+ constructor: {
58452
+ value: Wrapper2,
58453
+ enumerable: false,
58454
+ writable: true,
58455
+ configurable: true
58456
+ }
58457
+ });
58458
+ return _setPrototypeOf$5(Wrapper2, Class2);
58459
+ };
58460
+ return _wrapNativeSuper(Class);
58461
+ }
58462
+ var PolishedError = /* @__PURE__ */ function(_Error) {
58463
+ _inheritsLoose$2(PolishedError2, _Error);
58464
+ function PolishedError2(code) {
58465
+ var _this;
58466
+ {
58467
+ _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
58468
+ }
58469
+ return _assertThisInitialized$2(_this);
58470
+ }
58471
+ return PolishedError2;
58472
+ }(/* @__PURE__ */ _wrapNativeSuper(Error));
58473
+ function colorToInt(color) {
58474
+ return Math.round(color * 255);
58475
+ }
58476
+ function convertToInt(red, green, blue) {
58477
+ return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
58478
+ }
58479
+ function hslToRgb(hue, saturation, lightness, convert2) {
58480
+ if (convert2 === void 0) {
58481
+ convert2 = convertToInt;
58482
+ }
58483
+ if (saturation === 0) {
58484
+ return convert2(lightness, lightness, lightness);
58485
+ }
58486
+ var huePrime = (hue % 360 + 360) % 360 / 60;
58487
+ var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
58488
+ var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
58489
+ var red = 0;
58490
+ var green = 0;
58491
+ var blue = 0;
58492
+ if (huePrime >= 0 && huePrime < 1) {
58493
+ red = chroma;
58494
+ green = secondComponent;
58495
+ } else if (huePrime >= 1 && huePrime < 2) {
58496
+ red = secondComponent;
58497
+ green = chroma;
58498
+ } else if (huePrime >= 2 && huePrime < 3) {
58499
+ green = chroma;
58500
+ blue = secondComponent;
58501
+ } else if (huePrime >= 3 && huePrime < 4) {
58502
+ green = secondComponent;
58503
+ blue = chroma;
58504
+ } else if (huePrime >= 4 && huePrime < 5) {
58505
+ red = secondComponent;
58506
+ blue = chroma;
58507
+ } else if (huePrime >= 5 && huePrime < 6) {
58508
+ red = chroma;
58509
+ blue = secondComponent;
58510
+ }
58511
+ var lightnessModification = lightness - chroma / 2;
58512
+ var finalRed = red + lightnessModification;
58513
+ var finalGreen = green + lightnessModification;
58514
+ var finalBlue = blue + lightnessModification;
58515
+ return convert2(finalRed, finalGreen, finalBlue);
58516
+ }
58517
+ var namedColorMap = {
58518
+ aliceblue: "f0f8ff",
58519
+ antiquewhite: "faebd7",
58520
+ aqua: "00ffff",
58521
+ aquamarine: "7fffd4",
58522
+ azure: "f0ffff",
58523
+ beige: "f5f5dc",
58524
+ bisque: "ffe4c4",
58525
+ black: "000",
58526
+ blanchedalmond: "ffebcd",
58527
+ blue: "0000ff",
58528
+ blueviolet: "8a2be2",
58529
+ brown: "a52a2a",
58530
+ burlywood: "deb887",
58531
+ cadetblue: "5f9ea0",
58532
+ chartreuse: "7fff00",
58533
+ chocolate: "d2691e",
58534
+ coral: "ff7f50",
58535
+ cornflowerblue: "6495ed",
58536
+ cornsilk: "fff8dc",
58537
+ crimson: "dc143c",
58538
+ cyan: "00ffff",
58539
+ darkblue: "00008b",
58540
+ darkcyan: "008b8b",
58541
+ darkgoldenrod: "b8860b",
58542
+ darkgray: "a9a9a9",
58543
+ darkgreen: "006400",
58544
+ darkgrey: "a9a9a9",
58545
+ darkkhaki: "bdb76b",
58546
+ darkmagenta: "8b008b",
58547
+ darkolivegreen: "556b2f",
58548
+ darkorange: "ff8c00",
58549
+ darkorchid: "9932cc",
58550
+ darkred: "8b0000",
58551
+ darksalmon: "e9967a",
58552
+ darkseagreen: "8fbc8f",
58553
+ darkslateblue: "483d8b",
58554
+ darkslategray: "2f4f4f",
58555
+ darkslategrey: "2f4f4f",
58556
+ darkturquoise: "00ced1",
58557
+ darkviolet: "9400d3",
58558
+ deeppink: "ff1493",
58559
+ deepskyblue: "00bfff",
58560
+ dimgray: "696969",
58561
+ dimgrey: "696969",
58562
+ dodgerblue: "1e90ff",
58563
+ firebrick: "b22222",
58564
+ floralwhite: "fffaf0",
58565
+ forestgreen: "228b22",
58566
+ fuchsia: "ff00ff",
58567
+ gainsboro: "dcdcdc",
58568
+ ghostwhite: "f8f8ff",
58569
+ gold: "ffd700",
58570
+ goldenrod: "daa520",
58571
+ gray: "808080",
58572
+ green: "008000",
58573
+ greenyellow: "adff2f",
58574
+ grey: "808080",
58575
+ honeydew: "f0fff0",
58576
+ hotpink: "ff69b4",
58577
+ indianred: "cd5c5c",
58578
+ indigo: "4b0082",
58579
+ ivory: "fffff0",
58580
+ khaki: "f0e68c",
58581
+ lavender: "e6e6fa",
58582
+ lavenderblush: "fff0f5",
58583
+ lawngreen: "7cfc00",
58584
+ lemonchiffon: "fffacd",
58585
+ lightblue: "add8e6",
58586
+ lightcoral: "f08080",
58587
+ lightcyan: "e0ffff",
58588
+ lightgoldenrodyellow: "fafad2",
58589
+ lightgray: "d3d3d3",
58590
+ lightgreen: "90ee90",
58591
+ lightgrey: "d3d3d3",
58592
+ lightpink: "ffb6c1",
58593
+ lightsalmon: "ffa07a",
58594
+ lightseagreen: "20b2aa",
58595
+ lightskyblue: "87cefa",
58596
+ lightslategray: "789",
58597
+ lightslategrey: "789",
58598
+ lightsteelblue: "b0c4de",
58599
+ lightyellow: "ffffe0",
58600
+ lime: "0f0",
58601
+ limegreen: "32cd32",
58602
+ linen: "faf0e6",
58603
+ magenta: "f0f",
58604
+ maroon: "800000",
58605
+ mediumaquamarine: "66cdaa",
58606
+ mediumblue: "0000cd",
58607
+ mediumorchid: "ba55d3",
58608
+ mediumpurple: "9370db",
58609
+ mediumseagreen: "3cb371",
58610
+ mediumslateblue: "7b68ee",
58611
+ mediumspringgreen: "00fa9a",
58612
+ mediumturquoise: "48d1cc",
58613
+ mediumvioletred: "c71585",
58614
+ midnightblue: "191970",
58615
+ mintcream: "f5fffa",
58616
+ mistyrose: "ffe4e1",
58617
+ moccasin: "ffe4b5",
58618
+ navajowhite: "ffdead",
58619
+ navy: "000080",
58620
+ oldlace: "fdf5e6",
58621
+ olive: "808000",
58622
+ olivedrab: "6b8e23",
58623
+ orange: "ffa500",
58624
+ orangered: "ff4500",
58625
+ orchid: "da70d6",
58626
+ palegoldenrod: "eee8aa",
58627
+ palegreen: "98fb98",
58628
+ paleturquoise: "afeeee",
58629
+ palevioletred: "db7093",
58630
+ papayawhip: "ffefd5",
58631
+ peachpuff: "ffdab9",
58632
+ peru: "cd853f",
58633
+ pink: "ffc0cb",
58634
+ plum: "dda0dd",
58635
+ powderblue: "b0e0e6",
58636
+ purple: "800080",
58637
+ rebeccapurple: "639",
58638
+ red: "f00",
58639
+ rosybrown: "bc8f8f",
58640
+ royalblue: "4169e1",
58641
+ saddlebrown: "8b4513",
58642
+ salmon: "fa8072",
58643
+ sandybrown: "f4a460",
58644
+ seagreen: "2e8b57",
58645
+ seashell: "fff5ee",
58646
+ sienna: "a0522d",
58647
+ silver: "c0c0c0",
58648
+ skyblue: "87ceeb",
58649
+ slateblue: "6a5acd",
58650
+ slategray: "708090",
58651
+ slategrey: "708090",
58652
+ snow: "fffafa",
58653
+ springgreen: "00ff7f",
58654
+ steelblue: "4682b4",
58655
+ tan: "d2b48c",
58656
+ teal: "008080",
58657
+ thistle: "d8bfd8",
58658
+ tomato: "ff6347",
58659
+ turquoise: "40e0d0",
58660
+ violet: "ee82ee",
58661
+ wheat: "f5deb3",
58662
+ white: "fff",
58663
+ whitesmoke: "f5f5f5",
58664
+ yellow: "ff0",
58665
+ yellowgreen: "9acd32"
58666
+ };
58667
+ function nameToHex(color) {
58668
+ if (typeof color !== "string")
58669
+ return color;
58670
+ var normalizedColorName = color.toLowerCase();
58671
+ return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
58672
+ }
58673
+ var hexRegex = /^#[a-fA-F0-9]{6}$/;
58674
+ var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
58675
+ var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
58676
+ var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
58677
+ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i;
58678
+ var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
58679
+ var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
58680
+ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
58681
+ function parseToRgb(color) {
58682
+ if (typeof color !== "string") {
58683
+ throw new PolishedError(3);
58684
+ }
58685
+ var normalizedColor = nameToHex(color);
58686
+ if (normalizedColor.match(hexRegex)) {
58687
+ return {
58688
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
58689
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
58690
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
58691
+ };
58692
+ }
58693
+ if (normalizedColor.match(hexRgbaRegex)) {
58694
+ var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
58695
+ return {
58696
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
58697
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
58698
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
58699
+ alpha
58700
+ };
58701
+ }
58702
+ if (normalizedColor.match(reducedHexRegex)) {
58703
+ return {
58704
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
58705
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
58706
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
58707
+ };
58708
+ }
58709
+ if (normalizedColor.match(reducedRgbaHexRegex)) {
58710
+ var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
58711
+ return {
58712
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
58713
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
58714
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
58715
+ alpha: _alpha
58716
+ };
58717
+ }
58718
+ var rgbMatched = rgbRegex.exec(normalizedColor);
58719
+ if (rgbMatched) {
58720
+ return {
58721
+ red: parseInt("" + rgbMatched[1], 10),
58722
+ green: parseInt("" + rgbMatched[2], 10),
58723
+ blue: parseInt("" + rgbMatched[3], 10)
58724
+ };
58725
+ }
58726
+ var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
58727
+ if (rgbaMatched) {
58728
+ return {
58729
+ red: parseInt("" + rgbaMatched[1], 10),
58730
+ green: parseInt("" + rgbaMatched[2], 10),
58731
+ blue: parseInt("" + rgbaMatched[3], 10),
58732
+ alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
58733
+ };
58734
+ }
58735
+ var hslMatched = hslRegex.exec(normalizedColor);
58736
+ if (hslMatched) {
58737
+ var hue = parseInt("" + hslMatched[1], 10);
58738
+ var saturation = parseInt("" + hslMatched[2], 10) / 100;
58739
+ var lightness = parseInt("" + hslMatched[3], 10) / 100;
58740
+ var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
58741
+ var hslRgbMatched = rgbRegex.exec(rgbColorString);
58742
+ if (!hslRgbMatched) {
58743
+ throw new PolishedError(4, normalizedColor, rgbColorString);
58744
+ }
58745
+ return {
58746
+ red: parseInt("" + hslRgbMatched[1], 10),
58747
+ green: parseInt("" + hslRgbMatched[2], 10),
58748
+ blue: parseInt("" + hslRgbMatched[3], 10)
58749
+ };
58750
+ }
58751
+ var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
58752
+ if (hslaMatched) {
58753
+ var _hue = parseInt("" + hslaMatched[1], 10);
58754
+ var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
58755
+ var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
58756
+ var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
58757
+ var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
58758
+ if (!_hslRgbMatched) {
58759
+ throw new PolishedError(4, normalizedColor, _rgbColorString);
58760
+ }
58761
+ return {
58762
+ red: parseInt("" + _hslRgbMatched[1], 10),
58763
+ green: parseInt("" + _hslRgbMatched[2], 10),
58764
+ blue: parseInt("" + _hslRgbMatched[3], 10),
58765
+ alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
58766
+ };
58767
+ }
58768
+ throw new PolishedError(5);
58769
+ }
58770
+ var reduceHexValue = function reduceHexValue2(value) {
58771
+ if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
58772
+ return "#" + value[1] + value[3] + value[5];
58773
+ }
58774
+ return value;
58775
+ };
58776
+ var reduceHexValue$1 = reduceHexValue;
58777
+ function numberToHex(value) {
58778
+ var hex = value.toString(16);
58779
+ return hex.length === 1 ? "0" + hex : hex;
58780
+ }
58781
+ function rgb(value, green, blue) {
58782
+ if (typeof value === "number" && typeof green === "number" && typeof blue === "number") {
58783
+ return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
58784
+ } else if (typeof value === "object" && green === void 0 && blue === void 0) {
58785
+ return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
58786
+ }
58787
+ throw new PolishedError(6);
58788
+ }
58789
+ function rgba(firstValue, secondValue, thirdValue, fourthValue) {
58790
+ if (typeof firstValue === "string" && typeof secondValue === "number") {
58791
+ var rgbValue = parseToRgb(firstValue);
58792
+ return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
58793
+ } else if (typeof firstValue === "number" && typeof secondValue === "number" && typeof thirdValue === "number" && typeof fourthValue === "number") {
58794
+ return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
58795
+ } else if (typeof firstValue === "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) {
58796
+ return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
58797
+ }
58798
+ throw new PolishedError(7);
58799
+ }
58800
+ function curried(f2, length, acc) {
58801
+ return function fn() {
58802
+ var combined = acc.concat(Array.prototype.slice.call(arguments));
58803
+ return combined.length >= length ? f2.apply(this, combined) : curried(f2, length, combined);
58804
+ };
58805
+ }
58806
+ function curry(f2) {
58807
+ return curried(f2, f2.length, []);
58808
+ }
58809
+ function guard(lowerBoundary, upperBoundary, value) {
58810
+ return Math.max(lowerBoundary, Math.min(upperBoundary, value));
58811
+ }
58812
+ function transparentize(amount, color) {
58813
+ if (color === "transparent")
58814
+ return color;
58815
+ var parsedColor = parseToRgb(color);
58816
+ var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
58817
+ var colorWithAlpha = _extends$4({}, parsedColor, {
58818
+ alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
58819
+ });
58820
+ return rgba(colorWithAlpha);
58821
+ }
58822
+ var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
58823
+ var curriedTransparentize$1 = curriedTransparentize;
58230
58824
  const StyledErrorDisplay = styled__default.default.div`
58231
58825
  display: flex;
58232
58826
  gap: 1rem;