@stackone/malachite 0.49.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  var k3 = Object.defineProperty;
2
- var K5 = (e) => {
2
+ var R5 = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var E3 = (e, t, r) => t in e ? k3(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var X = (e, t, r) => E3(e, typeof t != "symbol" ? t + "" : t, r), He = (e, t, r) => t.has(e) || K5("Cannot " + r);
7
- var he = (e, t, r) => (He(e, t, "read from private field"), r ? r.call(e) : t.get(e)), je = (e, t, r) => t.has(e) ? K5("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), W5 = (e, t, r, a) => (He(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), C1 = (e, t, r) => (He(e, t, "access private method"), r);
8
- import { jsx as l, jsxs as w, Fragment as w1 } from "react/jsx-runtime";
6
+ var X = (e, t, r) => E3(e, typeof t != "symbol" ? t + "" : t, r), He = (e, t, r) => t.has(e) || R5("Cannot " + r);
7
+ var he = (e, t, r) => (He(e, t, "read from private field"), r ? r.call(e) : t.get(e)), je = (e, t, r) => t.has(e) ? R5("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), W5 = (e, t, r, a) => (He(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), C1 = (e, t, r) => (He(e, t, "access private method"), r);
8
+ import { jsx as l, jsxs as v, Fragment as w1 } from "react/jsx-runtime";
9
9
  import * as c from "react";
10
10
  import P1, { useState as H, useEffect as u1, useRef as U, useId as d2, forwardRef as s5, createElement as h2, Fragment as k1, useMemo as W1, createContext as I1, useContext as N1, useReducer as ae, useCallback as B1, useLayoutEffect as oe } from "react";
11
11
  import { createPortal as le } from "react-dom";
@@ -96,7 +96,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
96
96
  ...r
97
97
  };
98
98
  return /* @__PURE__ */ l(D3, { className: t, style: o, onClick: a });
99
- }, P3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M0.47874 4.39793L3.85374 7.77293C3.95941 7.8786 4.10273 7.93797 4.25218 7.93797C4.40162 7.93797 4.54494 7.8786 4.65061 7.77293C4.75629 7.66726 4.81565 7.52393 4.81565 7.37449C4.81565 7.22505 4.75629 7.08173 4.65061 6.97605L2.23608 4.56246H9.12671C9.27589 4.56246 9.41897 4.5032 9.52446 4.39771C9.62995 4.29222 9.68921 4.14914 9.68921 3.99996C9.68921 3.85078 9.62995 3.7077 9.52446 3.60221C9.41897 3.49672 9.27589 3.43746 9.12671 3.43746H2.23608L4.64968 1.02246C4.75535 0.916788 4.81472 0.773465 4.81472 0.624022C4.81472 0.474579 4.75535 0.331257 4.64968 0.225585C4.54401 0.119913 4.40068 0.0605469 4.25124 0.0605469C4.1018 0.0605469 3.95848 0.119913 3.8528 0.225585L0.477803 3.60058C0.425354 3.65291 0.383759 3.71509 0.355407 3.78354C0.327055 3.85199 0.312506 3.92536 0.312593 3.99945C0.312679 4.07354 0.327402 4.14688 0.355915 4.21526C0.384427 4.28365 0.426168 4.34572 0.47874 4.39793Z", fill: "#7B7B7B" })), R3 = ({ size: e = 16, className: t = "", style: r = {}, onClick: a }) => {
99
+ }, P3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 8, viewBox: "0 0 10 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M0.47874 4.39793L3.85374 7.77293C3.95941 7.8786 4.10273 7.93797 4.25218 7.93797C4.40162 7.93797 4.54494 7.8786 4.65061 7.77293C4.75629 7.66726 4.81565 7.52393 4.81565 7.37449C4.81565 7.22505 4.75629 7.08173 4.65061 6.97605L2.23608 4.56246H9.12671C9.27589 4.56246 9.41897 4.5032 9.52446 4.39771C9.62995 4.29222 9.68921 4.14914 9.68921 3.99996C9.68921 3.85078 9.62995 3.7077 9.52446 3.60221C9.41897 3.49672 9.27589 3.43746 9.12671 3.43746H2.23608L4.64968 1.02246C4.75535 0.916788 4.81472 0.773465 4.81472 0.624022C4.81472 0.474579 4.75535 0.331257 4.64968 0.225585C4.54401 0.119913 4.40068 0.0605469 4.25124 0.0605469C4.1018 0.0605469 3.95848 0.119913 3.8528 0.225585L0.477803 3.60058C0.425354 3.65291 0.383759 3.71509 0.355407 3.78354C0.327055 3.85199 0.312506 3.92536 0.312593 3.99945C0.312679 4.07354 0.327402 4.14688 0.355915 4.21526C0.384427 4.28365 0.426168 4.34572 0.47874 4.39793Z", fill: "#7B7B7B" })), K3 = ({ size: e = 16, className: t = "", style: r = {}, onClick: a }) => {
100
100
  const o = {
101
101
  width: typeof e == "number" ? `${e}px` : e,
102
102
  height: typeof e == "number" ? `${e}px` : e,
@@ -105,7 +105,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
105
105
  ...r
106
106
  };
107
107
  return /* @__PURE__ */ l(P3, { className: t, style: o, onClick: a });
108
- }, K3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { transform: "translate(2.64 2.64)" }, /* @__PURE__ */ c.createElement("path", { d: "M7.72031 0.609375V5.89062C7.72031 6.05224 7.65611 6.20724 7.54183 6.32152C7.42755 6.4358 7.27256 6.5 7.11094 6.5C6.94932 6.5 6.79433 6.4358 6.68005 6.32152C6.56577 6.20724 6.50156 6.05224 6.50156 5.89062V2.08203L1.04207 7.54051C0.927594 7.65499 0.772329 7.7193 0.610432 7.7193C0.448535 7.7193 0.29327 7.65499 0.178791 7.54051C0.0643133 7.42603 0 7.27076 0 7.10887C0 6.94697 0.0643133 6.79171 0.178791 6.67723L5.63828 1.21875H1.82969C1.66807 1.21875 1.51308 1.15455 1.3988 1.04027C1.28452 0.925988 1.22031 0.770991 1.22031 0.609375C1.22031 0.447759 1.28452 0.292762 1.3988 0.178482C1.51308 0.0642017 1.66807 0 1.82969 0H7.11094C7.27256 0 7.42755 0.0642017 7.54183 0.178482C7.65611 0.292762 7.72031 0.447759 7.72031 0.609375Z", fill: "currentColor" }))), W3 = ({
108
+ }, R3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { transform: "translate(2.64 2.64)" }, /* @__PURE__ */ c.createElement("path", { d: "M7.72031 0.609375V5.89062C7.72031 6.05224 7.65611 6.20724 7.54183 6.32152C7.42755 6.4358 7.27256 6.5 7.11094 6.5C6.94932 6.5 6.79433 6.4358 6.68005 6.32152C6.56577 6.20724 6.50156 6.05224 6.50156 5.89062V2.08203L1.04207 7.54051C0.927594 7.65499 0.772329 7.7193 0.610432 7.7193C0.448535 7.7193 0.29327 7.65499 0.178791 7.54051C0.0643133 7.42603 0 7.27076 0 7.10887C0 6.94697 0.0643133 6.79171 0.178791 6.67723L5.63828 1.21875H1.82969C1.66807 1.21875 1.51308 1.15455 1.3988 1.04027C1.28452 0.925988 1.22031 0.770991 1.22031 0.609375C1.22031 0.447759 1.28452 0.292762 1.3988 0.178482C1.51308 0.0642017 1.66807 0 1.82969 0H7.11094C7.27256 0 7.42755 0.0642017 7.54183 0.178482C7.65611 0.292762 7.72031 0.447759 7.72031 0.609375Z", fill: "currentColor" }))), W3 = ({
109
109
  size: e = 16,
110
110
  className: t = "",
111
111
  style: r = {},
@@ -117,7 +117,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
117
117
  display: "inline-block",
118
118
  ...r
119
119
  };
120
- return /* @__PURE__ */ l(K3, { className: t, style: o, onClick: a });
120
+ return /* @__PURE__ */ l(R3, { className: t, style: o, onClick: a });
121
121
  }, G3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M5.75069 8.5C5.75076 10.152 5.33141 11.7769 4.53194 13.2225C4.48418 13.3087 4.4199 13.3846 4.34279 13.4459C4.26568 13.5073 4.17724 13.5528 4.08252 13.58C3.98781 13.6072 3.88867 13.6154 3.79077 13.6042C3.69287 13.5931 3.59812 13.5628 3.51194 13.515C3.3379 13.4185 3.2093 13.2569 3.15444 13.0656C3.12728 12.9709 3.11904 12.8717 3.1302 12.7738C3.14135 12.6759 3.17168 12.5812 3.21944 12.495C3.89601 11.2722 4.25086 9.89752 4.25069 8.5C4.25076 7.7784 4.45902 7.07214 4.8505 6.46595C5.24197 5.85977 5.80003 5.3794 6.45772 5.08249C7.11541 4.78558 7.8448 4.68473 8.55838 4.79205C9.27196 4.89936 9.93942 5.21028 10.4807 5.6875C10.5546 5.75267 10.6149 5.83175 10.6582 5.92023C10.7015 6.0087 10.7269 6.10484 10.7331 6.20316C10.7392 6.30147 10.726 6.40003 10.694 6.49322C10.6621 6.5864 10.6121 6.67238 10.5469 6.74625C10.4818 6.82012 10.4027 6.88043 10.3142 6.92374C10.2257 6.96704 10.1296 6.9925 10.0313 6.99865C9.93298 7.0048 9.83441 6.99153 9.74123 6.95959C9.64804 6.92765 9.56206 6.87767 9.48819 6.8125C9.16342 6.52633 8.76299 6.33991 8.33492 6.27561C7.90685 6.21131 7.46933 6.27186 7.07481 6.44998C6.68029 6.62811 6.34553 6.91626 6.11067 7.27987C5.87581 7.64349 5.75082 8.06713 5.75069 8.5ZM11.0107 8H11.0007C10.8039 7.99997 10.615 8.07727 10.4747 8.21523C10.3344 8.35319 10.254 8.54076 10.2507 8.7375C10.2243 10.5147 9.86388 12.2711 9.18819 13.915C9.14832 14.0065 9.1271 14.105 9.12579 14.2048C9.12447 14.3046 9.14309 14.4036 9.18054 14.4961C9.21799 14.5886 9.27353 14.6727 9.3439 14.7435C9.41427 14.8143 9.49806 14.8703 9.59035 14.9083C9.68264 14.9462 9.78158 14.9654 9.88138 14.9647C9.98117 14.9639 10.0798 14.9432 10.1715 14.9039C10.2632 14.8645 10.3462 14.8073 10.4155 14.7354C10.4848 14.6636 10.539 14.5787 10.5751 14.4856C11.3227 12.6686 11.7215 10.7271 11.7507 8.7625C11.7523 8.66375 11.7345 8.56564 11.6981 8.47381C11.6618 8.38198 11.6076 8.29824 11.5388 8.22739C11.47 8.15654 11.3878 8.09998 11.2971 8.06096C11.2064 8.02194 11.1088 8.00122 11.0101 8H11.0107ZM7.12194 13.0756C6.94335 12.9894 6.73787 12.9774 6.55046 13.0423C6.36306 13.1072 6.20898 13.2437 6.12194 13.4219C6.03632 13.5975 5.94382 13.775 5.84819 13.9481C5.80047 14.0343 5.77018 14.129 5.75907 14.2269C5.74795 14.3248 5.75623 14.4239 5.78342 14.5186C5.81061 14.6133 5.85618 14.7017 5.91754 14.7788C5.97889 14.8559 6.05483 14.9201 6.14101 14.9678C6.22719 15.0155 6.32192 15.0458 6.41981 15.0569C6.51769 15.0681 6.61681 15.0598 6.71149 15.0326C6.80618 15.0054 6.89458 14.9598 6.97166 14.8985C7.04873 14.8371 7.11297 14.7612 7.16069 14.675C7.26944 14.4788 7.37382 14.2781 7.47319 14.0781C7.51609 13.9892 7.54101 13.8927 7.54653 13.7942C7.55205 13.6956 7.53807 13.597 7.50538 13.5038C7.47269 13.4107 7.42194 13.3249 7.35603 13.2514C7.29013 13.178 7.21036 13.1182 7.12132 13.0756H7.12194ZM8.00069 7.75C7.80178 7.75 7.61102 7.82902 7.47036 7.96967C7.32971 8.11032 7.25069 8.30109 7.25069 8.5C7.25101 9.36813 7.1514 10.2334 6.95382 11.0788C6.90845 11.2724 6.94182 11.4761 7.0466 11.6451C7.15138 11.8141 7.31899 11.9345 7.51257 11.98C7.56888 11.9934 7.62657 12.0001 7.68444 12C7.85344 11.9998 8.01743 11.9426 8.14982 11.8375C8.2822 11.7325 8.37523 11.5858 8.41382 11.4213C8.6381 10.4637 8.75114 9.48347 8.75069 8.5C8.75069 8.30109 8.67168 8.11032 8.53102 7.96967C8.39037 7.82902 8.19961 7.75 8.00069 7.75ZM8.00069 1.75C7.33363 1.74948 6.67017 1.84784 6.03194 2.04188C5.93756 2.0706 5.84975 2.11764 5.77354 2.1803C5.69733 2.24296 5.63421 2.32002 5.58778 2.40707C5.54135 2.49413 5.51252 2.58948 5.50294 2.68767C5.49336 2.78587 5.50322 2.88499 5.53194 2.97938C5.58996 3.17 5.72132 3.32977 5.89714 3.42354C5.9842 3.46997 6.07954 3.4988 6.17774 3.50838C6.27593 3.51796 6.37506 3.5081 6.46944 3.47938C7.25409 3.24094 8.08366 3.18951 8.89175 3.32918C9.69984 3.46885 10.464 3.79576 11.1231 4.28373C11.7822 4.7717 12.3179 5.40719 12.6874 6.13933C13.0568 6.87147 13.2497 7.67993 13.2507 8.5C13.2513 9.78984 13.1079 11.0757 12.8232 12.3338C12.8014 12.4298 12.7987 12.5293 12.8153 12.6264C12.832 12.7235 12.8676 12.8163 12.9201 12.8997C12.9726 12.983 13.041 13.0552 13.1215 13.1121C13.2019 13.169 13.2927 13.2095 13.3888 13.2313C13.4433 13.2439 13.4991 13.2502 13.5551 13.25C13.7251 13.25 13.89 13.1922 14.0229 13.0861C14.1557 12.9801 14.2486 12.832 14.2863 12.6663C14.5954 11.2991 14.7511 9.90169 14.7507 8.5C14.7487 6.7104 14.0369 4.99466 12.7715 3.72922C11.506 2.46378 9.7903 1.75199 8.00069 1.75ZM4.28007 3.73375C4.21039 3.66383 4.1276 3.60835 4.03643 3.5705C3.94527 3.53265 3.84753 3.51316 3.74882 3.51316C3.65011 3.51316 3.55237 3.53265 3.4612 3.5705C3.37004 3.60835 3.28725 3.66383 3.21757 3.73375C2.59152 4.35919 2.09542 5.10232 1.75785 5.92033C1.42029 6.73835 1.24792 7.61508 1.25069 8.5C1.25273 9.25504 1.09043 10.0015 0.775069 10.6875C0.731252 10.7774 0.705848 10.8751 0.700353 10.9749C0.694857 11.0748 0.70938 11.1747 0.743067 11.2689C0.776754 11.363 0.828926 11.4495 0.896514 11.5231C0.964102 11.5968 1.04574 11.6562 1.13663 11.6979C1.22752 11.7396 1.32583 11.7627 1.42577 11.7658C1.5257 11.7689 1.62526 11.752 1.71858 11.7161C1.81189 11.6802 1.89709 11.626 1.96915 11.5567C2.04121 11.4874 2.09869 11.4044 2.13819 11.3125C2.54388 10.4305 2.75288 9.47082 2.75069 8.5C2.74875 7.81184 2.88305 7.13011 3.14586 6.49411C3.40867 5.85811 3.79479 5.28043 4.28194 4.79438C4.42234 4.65348 4.50101 4.46258 4.50066 4.26368C4.50031 4.06477 4.42096 3.87415 4.28007 3.73375Z", fill: "#7B7B7B" }))), T3 = ({
122
122
  size: e = 16,
123
123
  className: t = "",
@@ -561,7 +561,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
561
561
  onClick: a
562
562
  }
563
563
  );
564
- }, Pr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M6.5 1.21875C5.45547 1.21875 4.43439 1.52849 3.5659 2.1088C2.6974 2.68911 2.02049 3.51393 1.62076 4.47895C1.22104 5.44397 1.11645 6.50586 1.32023 7.53032C1.52401 8.55478 2.027 9.49581 2.76559 10.2344C3.50419 10.973 4.44522 11.476 5.46968 11.6798C6.49414 11.8835 7.55603 11.779 8.52105 11.3792C9.48607 10.9795 10.3109 10.3026 10.8912 9.4341C11.4715 8.56561 11.7813 7.54453 11.7813 6.5C11.7798 5.09978 11.2229 3.75733 10.2328 2.76723C9.24267 1.77712 7.90022 1.22023 6.5 1.21875ZM6.09375 4.0625C6.09375 3.95476 6.13655 3.85142 6.21274 3.77524C6.28893 3.69905 6.39226 3.65625 6.5 3.65625C6.60775 3.65625 6.71108 3.69905 6.78726 3.77524C6.86345 3.85142 6.90625 3.95476 6.90625 4.0625V6.90625C6.90625 7.01399 6.86345 7.11733 6.78726 7.19351C6.71108 7.2697 6.60775 7.3125 6.5 7.3125C6.39226 7.3125 6.28893 7.2697 6.21274 7.19351C6.13655 7.11733 6.09375 7.01399 6.09375 6.90625V4.0625ZM6.5 9.34375C6.37948 9.34375 6.26166 9.30801 6.16145 9.24105C6.06124 9.17409 5.98313 9.07892 5.93701 8.96757C5.89089 8.85622 5.87882 8.7337 5.90234 8.61549C5.92585 8.49728 5.98389 8.3887 6.06911 8.30348C6.15433 8.21826 6.26291 8.16022 6.38112 8.13671C6.49933 8.1132 6.62185 8.12526 6.7332 8.17139C6.84455 8.21751 6.93972 8.29561 7.00668 8.39582C7.07364 8.49604 7.10938 8.61385 7.10938 8.73437C7.10938 8.89599 7.04517 9.05099 6.93089 9.16527C6.81661 9.27955 6.66162 9.34375 6.5 9.34375Z", fill: "currentColor" })), Rr = ({
564
+ }, Pr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 13, height: 13, viewBox: "0 0 13 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("path", { d: "M6.5 1.21875C5.45547 1.21875 4.43439 1.52849 3.5659 2.1088C2.6974 2.68911 2.02049 3.51393 1.62076 4.47895C1.22104 5.44397 1.11645 6.50586 1.32023 7.53032C1.52401 8.55478 2.027 9.49581 2.76559 10.2344C3.50419 10.973 4.44522 11.476 5.46968 11.6798C6.49414 11.8835 7.55603 11.779 8.52105 11.3792C9.48607 10.9795 10.3109 10.3026 10.8912 9.4341C11.4715 8.56561 11.7813 7.54453 11.7813 6.5C11.7798 5.09978 11.2229 3.75733 10.2328 2.76723C9.24267 1.77712 7.90022 1.22023 6.5 1.21875ZM6.09375 4.0625C6.09375 3.95476 6.13655 3.85142 6.21274 3.77524C6.28893 3.69905 6.39226 3.65625 6.5 3.65625C6.60775 3.65625 6.71108 3.69905 6.78726 3.77524C6.86345 3.85142 6.90625 3.95476 6.90625 4.0625V6.90625C6.90625 7.01399 6.86345 7.11733 6.78726 7.19351C6.71108 7.2697 6.60775 7.3125 6.5 7.3125C6.39226 7.3125 6.28893 7.2697 6.21274 7.19351C6.13655 7.11733 6.09375 7.01399 6.09375 6.90625V4.0625ZM6.5 9.34375C6.37948 9.34375 6.26166 9.30801 6.16145 9.24105C6.06124 9.17409 5.98313 9.07892 5.93701 8.96757C5.89089 8.85622 5.87882 8.7337 5.90234 8.61549C5.92585 8.49728 5.98389 8.3887 6.06911 8.30348C6.15433 8.21826 6.26291 8.16022 6.38112 8.13671C6.49933 8.1132 6.62185 8.12526 6.7332 8.17139C6.84455 8.21751 6.93972 8.29561 7.00668 8.39582C7.07364 8.49604 7.10938 8.61385 7.10938 8.73437C7.10938 8.89599 7.04517 9.05099 6.93089 9.16527C6.81661 9.27955 6.66162 9.34375 6.5 9.34375Z", fill: "currentColor" })), Kr = ({
565
565
  size: e = 16,
566
566
  className: t = "",
567
567
  style: r = {},
@@ -575,7 +575,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
575
575
  ...r
576
576
  };
577
577
  return /* @__PURE__ */ l(Pr, { className: t, style: o, onClick: a });
578
- }, Kr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.5326 10.8606C11.6025 10.9303 11.6579 11.0131 11.6958 11.1042C11.7337 11.1954 11.7531 11.2931 11.7531 11.3918C11.7531 11.4906 11.7337 11.5883 11.6958 11.6795C11.6579 11.7706 11.6025 11.8534 11.5326 11.9231L8.53255 14.9231C8.46287 14.993 8.38008 15.0485 8.28892 15.0863C8.19775 15.1242 8.10001 15.1437 8.0013 15.1437C7.90259 15.1437 7.80485 15.1242 7.71369 15.0863C7.62252 15.0485 7.53973 14.993 7.47005 14.9231L4.47005 11.9231C4.32915 11.7822 4.25 11.5911 4.25 11.3918C4.25 11.1926 4.32915 11.0015 4.47005 10.8606C4.61095 10.7197 4.80204 10.6405 5.0013 10.6405C5.20056 10.6405 5.39165 10.7197 5.53255 10.8606L8.00193 13.3287L10.4713 10.8587C10.5411 10.7891 10.6239 10.7339 10.715 10.6964C10.8061 10.6588 10.9038 10.6395 11.0023 10.6397C11.1009 10.6399 11.1984 10.6595 11.2894 10.6974C11.3804 10.7353 11.463 10.7907 11.5326 10.8606ZM5.53255 5.92309L8.00193 3.45372L10.4713 5.92372C10.6122 6.06461 10.8033 6.14377 11.0026 6.14377C11.2018 6.14377 11.3929 6.06461 11.5338 5.92372C11.6747 5.78282 11.7539 5.59172 11.7539 5.39247C11.7539 5.19321 11.6747 5.00211 11.5338 4.86122L8.5338 1.86122C8.46412 1.7913 8.38133 1.73582 8.29016 1.69796C8.199 1.66011 8.10126 1.64063 8.00255 1.64062C7.90384 1.64063 7.8061 1.66011 7.71494 1.69796C7.62377 1.73582 7.54098 1.7913 7.4713 1.86122L4.4713 4.86122C4.3304 5.00211 4.25125 5.19321 4.25125 5.39247C4.25125 5.59172 4.3304 5.78282 4.4713 5.92372C4.6122 6.06461 4.80329 6.14377 5.00255 6.14377C5.20181 6.14377 5.3929 6.06461 5.5338 5.92372L5.53255 5.92309Z", fill: "currentColor" }))), Wr = ({
578
+ }, Rr = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17, viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.5326 10.8606C11.6025 10.9303 11.6579 11.0131 11.6958 11.1042C11.7337 11.1954 11.7531 11.2931 11.7531 11.3918C11.7531 11.4906 11.7337 11.5883 11.6958 11.6795C11.6579 11.7706 11.6025 11.8534 11.5326 11.9231L8.53255 14.9231C8.46287 14.993 8.38008 15.0485 8.28892 15.0863C8.19775 15.1242 8.10001 15.1437 8.0013 15.1437C7.90259 15.1437 7.80485 15.1242 7.71369 15.0863C7.62252 15.0485 7.53973 14.993 7.47005 14.9231L4.47005 11.9231C4.32915 11.7822 4.25 11.5911 4.25 11.3918C4.25 11.1926 4.32915 11.0015 4.47005 10.8606C4.61095 10.7197 4.80204 10.6405 5.0013 10.6405C5.20056 10.6405 5.39165 10.7197 5.53255 10.8606L8.00193 13.3287L10.4713 10.8587C10.5411 10.7891 10.6239 10.7339 10.715 10.6964C10.8061 10.6588 10.9038 10.6395 11.0023 10.6397C11.1009 10.6399 11.1984 10.6595 11.2894 10.6974C11.3804 10.7353 11.463 10.7907 11.5326 10.8606ZM5.53255 5.92309L8.00193 3.45372L10.4713 5.92372C10.6122 6.06461 10.8033 6.14377 11.0026 6.14377C11.2018 6.14377 11.3929 6.06461 11.5338 5.92372C11.6747 5.78282 11.7539 5.59172 11.7539 5.39247C11.7539 5.19321 11.6747 5.00211 11.5338 4.86122L8.5338 1.86122C8.46412 1.7913 8.38133 1.73582 8.29016 1.69796C8.199 1.66011 8.10126 1.64063 8.00255 1.64062C7.90384 1.64063 7.8061 1.66011 7.71494 1.69796C7.62377 1.73582 7.54098 1.7913 7.4713 1.86122L4.4713 4.86122C4.3304 5.00211 4.25125 5.19321 4.25125 5.39247C4.25125 5.59172 4.3304 5.78282 4.4713 5.92372C4.6122 6.06461 4.80329 6.14377 5.00255 6.14377C5.20181 6.14377 5.3929 6.06461 5.5338 5.92372L5.53255 5.92309Z", fill: "currentColor" }))), Wr = ({
579
579
  size: e = 16,
580
580
  className: t = "",
581
581
  style: r = {},
@@ -589,7 +589,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
589
589
  ...r
590
590
  };
591
591
  return /* @__PURE__ */ l(
592
- Kr,
592
+ Rr,
593
593
  {
594
594
  className: t,
595
595
  style: o,
@@ -998,7 +998,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
998
998
  onClick: a
999
999
  }
1000
1000
  );
1001
- }, R6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.875 8.21875V10.25C11.875 10.4655 11.7894 10.6722 11.637 10.8245C11.4847 10.9769 11.278 11.0625 11.0625 11.0625H2.9375C2.72201 11.0625 2.51535 10.9769 2.36298 10.8245C2.2106 10.6722 2.125 10.4655 2.125 10.25V8.21875C2.125 8.00326 2.2106 7.7966 2.36298 7.64423C2.51535 7.49185 2.72201 7.40625 2.9375 7.40625H11.0625C11.278 7.40625 11.4847 7.49185 11.637 7.64423C11.7894 7.7966 11.875 8.00326 11.875 8.21875ZM11.0625 2.9375H2.9375C2.72201 2.9375 2.51535 3.0231 2.36298 3.17548C2.2106 3.32785 2.125 3.53451 2.125 3.75V5.78125C2.125 5.99674 2.2106 6.2034 2.36298 6.35577C2.51535 6.50815 2.72201 6.59375 2.9375 6.59375H11.0625C11.278 6.59375 11.4847 6.50815 11.637 6.35577C11.7894 6.2034 11.875 5.99674 11.875 5.78125V3.75C11.875 3.53451 11.7894 3.32785 11.637 3.17548C11.4847 3.0231 11.278 2.9375 11.0625 2.9375Z", fill: "white" }))), K6 = ({
1001
+ }, K6 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 14, height: 14, viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ c.createElement("g", { id: "Frame" }, /* @__PURE__ */ c.createElement("path", { id: "Vector", d: "M11.875 8.21875V10.25C11.875 10.4655 11.7894 10.6722 11.637 10.8245C11.4847 10.9769 11.278 11.0625 11.0625 11.0625H2.9375C2.72201 11.0625 2.51535 10.9769 2.36298 10.8245C2.2106 10.6722 2.125 10.4655 2.125 10.25V8.21875C2.125 8.00326 2.2106 7.7966 2.36298 7.64423C2.51535 7.49185 2.72201 7.40625 2.9375 7.40625H11.0625C11.278 7.40625 11.4847 7.49185 11.637 7.64423C11.7894 7.7966 11.875 8.00326 11.875 8.21875ZM11.0625 2.9375H2.9375C2.72201 2.9375 2.51535 3.0231 2.36298 3.17548C2.2106 3.32785 2.125 3.53451 2.125 3.75V5.78125C2.125 5.99674 2.2106 6.2034 2.36298 6.35577C2.51535 6.50815 2.72201 6.59375 2.9375 6.59375H11.0625C11.278 6.59375 11.4847 6.50815 11.637 6.35577C11.7894 6.2034 11.875 5.99674 11.875 5.78125V3.75C11.875 3.53451 11.7894 3.32785 11.637 3.17548C11.4847 3.0231 11.278 2.9375 11.0625 2.9375Z", fill: "white" }))), R6 = ({
1002
1002
  size: e = 16,
1003
1003
  className: t = "",
1004
1004
  style: r = {},
@@ -1012,7 +1012,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1012
1012
  ...r
1013
1013
  };
1014
1014
  return /* @__PURE__ */ l(
1015
- R6,
1015
+ K6,
1016
1016
  {
1017
1017
  className: t,
1018
1018
  style: o,
@@ -1427,7 +1427,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1427
1427
  AddIcon: F3,
1428
1428
  AdvancedLogsIcon: L3,
1429
1429
  ApiKeysIcon: Q3,
1430
- ArrowLeftIcon: R3,
1430
+ ArrowLeftIcon: K3,
1431
1431
  ArrowUpRightIcon: W3,
1432
1432
  AuthenticationIcon: T3,
1433
1433
  BiDirectionalArrowsIcon: H3,
@@ -1455,7 +1455,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1455
1455
  EditIcon: Fr,
1456
1456
  EnableIcon: Lr,
1457
1457
  EnumIcon: Qr,
1458
- ErrorCircleFilled: Rr,
1458
+ ErrorCircleFilled: Kr,
1459
1459
  ExpandIcon: Wr,
1460
1460
  EyeClosedIcon: Tr,
1461
1461
  EyeIcon: Hr,
@@ -1483,7 +1483,7 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1483
1483
  NotFoundIcon: N6,
1484
1484
  OrganizationIcon: D6,
1485
1485
  PlusIcon: P6,
1486
- PreviewIcon: K6,
1486
+ PreviewIcon: R6,
1487
1487
  ProgrammaticWebhookIcon: G6,
1488
1488
  PulseIcon: Y6,
1489
1489
  RefreshIcon: j6,
@@ -1530,98 +1530,57 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1530
1530
  disabled: d = !1,
1531
1531
  stickyHeader: h = !1,
1532
1532
  stickyTopOffset: C = 0,
1533
- roundTop: p = !1,
1534
- roundBottom: u = !1,
1535
- animate: m = !0
1533
+ animate: p = !0
1536
1534
  }) => {
1537
- const [b, x] = H(n), A = s !== void 0 ? s : b, [v, y] = H(!1);
1535
+ const [u, m] = H(n), b = s !== void 0 ? s : u, [x, A] = H(!1);
1538
1536
  u1(() => {
1539
- A || y(!1);
1540
- }, [A]);
1541
- const F = () => {
1542
- const E = !A;
1543
- s === void 0 && x(E), i == null || i(E);
1544
- }, M = ["flex flex-col w-full text-left", r].filter(Boolean).join(" "), N = [
1537
+ b || A(!1);
1538
+ }, [b]);
1539
+ const w = () => {
1540
+ const I = !b;
1541
+ s === void 0 && m(I), i == null || i(I);
1542
+ }, y = ["flex flex-col w-full text-left", r].filter(Boolean).join(" "), V = [
1545
1543
  // `group` only when enabled, so the arrow doesn't darken on hover while disabled.
1546
1544
  d ? "" : "group",
1547
1545
  "flex items-center w-full transition-colors",
1548
1546
  "border-0 border-b border-solid border-[var(--malachite-card-border)]",
1549
1547
  h ? "sticky z-10" : "",
1550
- A ? "bg-[var(--malachite-buttonlist-hover-background)]" : d ? "bg-transparent" : "bg-transparent hover:bg-[var(--malachite-buttonlist-hover-background)]"
1551
- ].filter(Boolean).join(" "), I = {};
1552
- h && (I.top = `${C}px`, I.backgroundColor = "var(--malachite-card-background)"), p && (I.borderTopLeftRadius = "13px", I.borderTopRightRadius = "13px"), u && !A && (I.borderBottomLeftRadius = "13px", I.borderBottomRightRadius = "13px");
1553
- const S = (E, Z) => ({
1554
- position: "absolute",
1555
- [E]: 0,
1556
- [Z]: 0,
1557
- width: "13px",
1558
- height: "13px",
1559
- background: `radial-gradient(circle at ${E === "top" ? "bottom" : "top"} ${Z === "left" ? "right" : "left"}, transparent 12.5px, var(--malachite-card-sunken-background) 13px)`,
1560
- pointerEvents: "none"
1561
- });
1562
- return /* @__PURE__ */ w("div", { className: M, children: [
1563
- /* @__PURE__ */ w("div", { className: N, style: I, "data-accordion-header": "", children: [
1564
- h && p && /* @__PURE__ */ w(w1, { children: [
1565
- /* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("top", "left") }),
1566
- /* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("top", "right") })
1567
- ] }),
1568
- /* @__PURE__ */ w(
1548
+ b ? "bg-[var(--malachite-buttonlist-hover-background)]" : d ? "bg-transparent" : "bg-transparent hover:bg-[var(--malachite-buttonlist-hover-background)]"
1549
+ ].filter(Boolean).join(" "), D = h ? { top: `${C}px`, backgroundColor: "var(--malachite-card-background)" } : {};
1550
+ return /* @__PURE__ */ v("div", { className: y, children: [
1551
+ /* @__PURE__ */ v("div", { className: V, style: D, "data-accordion-header": "", children: [
1552
+ /* @__PURE__ */ v(
1569
1553
  "button",
1570
1554
  {
1571
1555
  type: "button",
1572
1556
  className: "flex flex-1 items-center gap-[12px] min-w-0 p-[16px] appearance-none border-0 bg-transparent text-left cursor-pointer select-none disabled:cursor-not-allowed",
1573
- onClick: F,
1574
- "aria-expanded": A,
1557
+ onClick: w,
1558
+ "aria-expanded": b,
1575
1559
  disabled: d,
1576
1560
  children: [
1577
- /* @__PURE__ */ l(Z7, { expanded: A }),
1561
+ /* @__PURE__ */ l(Z7, { expanded: b }),
1578
1562
  t ?? /* @__PURE__ */ l("span", { className: "flex-1 min-w-0 truncate font-medium text-[13px] tracking-[0.13px] text-[var(--malachite-text-primary)]", children: e })
1579
1563
  ]
1580
1564
  }
1581
1565
  ),
1582
1566
  o && /* @__PURE__ */ l("span", { className: "shrink-0 flex items-center pr-[16px] text-[var(--malachite-text-secondary)]", children: o })
1583
1567
  ] }),
1584
- m ? (
1568
+ p ? (
1585
1569
  /* Height animates via grid-template-rows (0fr → 1fr); body clips during. */
1586
1570
  /* @__PURE__ */ l(
1587
1571
  "div",
1588
1572
  {
1589
1573
  className: "grid w-full transition-[grid-template-rows] duration-200 ease-in-out",
1590
- style: { gridTemplateRows: A ? "1fr" : "0fr" },
1591
- onTransitionEnd: (E) => {
1592
- E.propertyName === "grid-template-rows" && A && y(!0);
1574
+ style: { gridTemplateRows: b ? "1fr" : "0fr" },
1575
+ onTransitionEnd: (I) => {
1576
+ I.propertyName === "grid-template-rows" && b && A(!0);
1593
1577
  },
1594
- children: /* @__PURE__ */ l(
1595
- "div",
1596
- {
1597
- className: v && A ? "overflow-visible" : "overflow-hidden",
1598
- style: u ? { borderBottomLeftRadius: "13px", borderBottomRightRadius: "13px" } : void 0,
1599
- children: a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a })
1600
- }
1601
- )
1578
+ children: /* @__PURE__ */ l("div", { className: x && b ? "overflow-visible" : "overflow-hidden", children: a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a }) })
1602
1579
  }
1603
1580
  )
1604
1581
  ) : (
1605
1582
  /* Instant open — no clip, so a sticky child inside pins immediately. */
1606
- A && a && /* @__PURE__ */ w(
1607
- "div",
1608
- {
1609
- style: {
1610
- position: "relative",
1611
- ...u ? {
1612
- borderBottomLeftRadius: "13px",
1613
- borderBottomRightRadius: "13px"
1614
- } : {}
1615
- },
1616
- children: [
1617
- /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a }),
1618
- u && /* @__PURE__ */ w(w1, { children: [
1619
- /* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("bottom", "left") }),
1620
- /* @__PURE__ */ l("span", { "aria-hidden": "true", style: S("bottom", "right") })
1621
- ] })
1622
- ]
1623
- }
1624
- )
1583
+ b && a && /* @__PURE__ */ l("div", { className: "border-b border-solid border-[var(--malachite-card-border)]", children: a })
1625
1584
  )
1626
1585
  ] });
1627
1586
  }, F7 = {
@@ -1640,29 +1599,29 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1640
1599
  maxWidth: s = "320px",
1641
1600
  fill: i = !1
1642
1601
  }) => {
1643
- const d = n || i ? { ...n ? F7 : {}, ...i ? N7 : {} } : void 0, [h, C] = H(!1), p = U(null), u = U(null), m = U(null), b = d2(), x = e != null && e !== "" && e !== !1, A = (S) => {
1644
- S.stopPropagation(), x && (p.current && clearTimeout(p.current), p.current = setTimeout(() => {
1602
+ const d = n || i ? { ...n ? F7 : {}, ...i ? N7 : {} } : void 0, [h, C] = H(!1), p = U(null), u = U(null), m = U(null), b = d2(), x = e != null && e !== "" && e !== !1, A = (Z) => {
1603
+ Z.stopPropagation(), x && (p.current && clearTimeout(p.current), p.current = setTimeout(() => {
1645
1604
  C(!0);
1646
1605
  }, r * 1e3));
1647
- }, v = (S) => {
1648
- S.stopPropagation(), p.current && clearTimeout(p.current), C(!1);
1606
+ }, w = (Z) => {
1607
+ Z.stopPropagation(), p.current && clearTimeout(p.current), C(!1);
1649
1608
  }, y = () => {
1650
1609
  x && (p.current && clearTimeout(p.current), C(!0));
1651
- }, F = () => {
1610
+ }, S = () => {
1652
1611
  p.current && clearTimeout(p.current), C(!1);
1653
- }, [, M] = H({});
1612
+ }, [, V] = H({});
1654
1613
  u1(() => {
1655
- const S = () => {
1656
- h && M({});
1614
+ const Z = () => {
1615
+ h && V({});
1657
1616
  };
1658
- return window.addEventListener("scroll", S, !0), window.addEventListener("resize", S), () => {
1659
- p.current && clearTimeout(p.current), window.removeEventListener("scroll", S, !0), window.removeEventListener("resize", S);
1617
+ return window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), () => {
1618
+ p.current && clearTimeout(p.current), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
1660
1619
  };
1661
1620
  }, [h]);
1662
- const Q = () => {
1621
+ const D = () => {
1663
1622
  if (!m.current)
1664
1623
  return { display: "none" };
1665
- const S = m.current.getBoundingClientRect(), E = {
1624
+ const Z = m.current.getBoundingClientRect(), M = {
1666
1625
  position: "fixed",
1667
1626
  zIndex: 2147483647,
1668
1627
  display: "flex",
@@ -1690,44 +1649,44 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1690
1649
  switch (o) {
1691
1650
  case "top":
1692
1651
  return {
1693
- ...E,
1694
- top: S.top - 8,
1695
- left: S.left + S.width / 2,
1652
+ ...M,
1653
+ top: Z.top - 8,
1654
+ left: Z.left + Z.width / 2,
1696
1655
  transform: `translate(-50%, -100%) ${h ? "scale(1)" : "scale(0.95)"}`
1697
1656
  };
1698
1657
  case "bottom":
1699
1658
  return {
1700
- ...E,
1701
- top: S.bottom + 8,
1702
- left: S.left + S.width / 2,
1659
+ ...M,
1660
+ top: Z.bottom + 8,
1661
+ left: Z.left + Z.width / 2,
1703
1662
  transform: `translateX(-50%) ${h ? "scale(1)" : "scale(0.95)"}`
1704
1663
  };
1705
1664
  case "left":
1706
1665
  return {
1707
- ...E,
1708
- top: S.top + S.height / 2,
1709
- left: S.left - 8,
1666
+ ...M,
1667
+ top: Z.top + Z.height / 2,
1668
+ left: Z.left - 8,
1710
1669
  transform: `translate(-100%, -50%) ${h ? "scale(1)" : "scale(0.95)"}`
1711
1670
  };
1712
1671
  case "right":
1713
1672
  return {
1714
- ...E,
1715
- top: S.top + S.height / 2,
1716
- left: S.right + 8,
1673
+ ...M,
1674
+ top: Z.top + Z.height / 2,
1675
+ left: Z.right + 8,
1717
1676
  transform: `translateY(-50%) ${h ? "scale(1)" : "scale(0.95)"}`
1718
1677
  };
1719
1678
  default:
1720
1679
  return {
1721
- ...E,
1722
- top: S.top - 8,
1723
- left: S.left + S.width / 2,
1680
+ ...M,
1681
+ top: Z.top - 8,
1682
+ left: Z.left + Z.width / 2,
1724
1683
  transform: `translate(-50%, -100%) ${h ? "scale(1)" : "scale(0.95)"}`
1725
1684
  };
1726
1685
  }
1727
- }, N = x ? b : void 0, I = a || !P1.isValidElement(t) ? /* @__PURE__ */ l("span", { "aria-describedby": N, children: t }) : P1.cloneElement(t, {
1728
- "aria-describedby": [t.props["aria-describedby"], N].filter(Boolean).join(" ") || void 0
1686
+ }, I = x ? b : void 0, N = a || !P1.isValidElement(t) ? /* @__PURE__ */ l("span", { "aria-describedby": I, children: t }) : P1.cloneElement(t, {
1687
+ "aria-describedby": [t.props["aria-describedby"], I].filter(Boolean).join(" ") || void 0
1729
1688
  });
1730
- return /* @__PURE__ */ w(w1, { children: [
1689
+ return /* @__PURE__ */ v(w1, { children: [
1731
1690
  /* @__PURE__ */ l(
1732
1691
  "div",
1733
1692
  {
@@ -1735,14 +1694,14 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1735
1694
  className: "relative flex items-center",
1736
1695
  style: d,
1737
1696
  onMouseEnter: A,
1738
- onMouseLeave: v,
1697
+ onMouseLeave: w,
1739
1698
  onFocus: y,
1740
- onBlur: F,
1741
- children: I
1699
+ onBlur: S,
1700
+ children: N
1742
1701
  }
1743
1702
  ),
1744
1703
  x && le(
1745
- /* @__PURE__ */ l("div", { ref: u, id: b, role: "tooltip", style: Q(), children: e }),
1704
+ /* @__PURE__ */ l("div", { ref: u, id: b, role: "tooltip", style: D(), children: e }),
1746
1705
  document.body
1747
1706
  )
1748
1707
  ] });
@@ -1795,35 +1754,35 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1795
1754
  default:
1796
1755
  return "rounded-xl";
1797
1756
  }
1798
- }, K1 = {
1757
+ }, R1 = {
1799
1758
  neutral: "focus-visible:[outline:2px_solid_var(--malachite-text-primary)]",
1800
1759
  destructive: "focus-visible:[outline:2px_solid_var(--malachite-text-destructive)]",
1801
1760
  success: "focus-visible:[outline:2px_solid_var(--malachite-text-success)]",
1802
1761
  warning: "focus-visible:[outline:2px_solid_var(--malachite-text-warning)]",
1803
1762
  error: "focus-visible:[outline:2px_solid_var(--malachite-text-error)]"
1804
- }, R7 = (e, t) => {
1763
+ }, K7 = (e, t) => {
1805
1764
  const r = `font-medium transition-[color,background-color,border-color,opacity,box-shadow] duration-200 ease-in-out outline-none focus-visible:outline-offset-2 border border-solid ${P7(t)} cursor-pointer`;
1806
1765
  switch (e) {
1807
1766
  case "filled":
1808
- return `${r} ${K1.neutral} btn-filled shadow-default`;
1767
+ return `${r} ${R1.neutral} btn-filled shadow-default`;
1809
1768
  case "outline":
1810
- return `${r} ${K1.neutral} btn-outline shadow-default`;
1769
+ return `${r} ${R1.neutral} btn-outline shadow-default`;
1811
1770
  case "destructive":
1812
- return `${r} ${K1.destructive} btn-destructive`;
1771
+ return `${r} ${R1.destructive} btn-destructive`;
1813
1772
  case "success":
1814
- return `${r} ${K1.success} btn-glass-success`;
1773
+ return `${r} ${R1.success} btn-glass-success`;
1815
1774
  case "warning":
1816
- return `${r} ${K1.warning} btn-glass-warning`;
1775
+ return `${r} ${R1.warning} btn-glass-warning`;
1817
1776
  case "error":
1818
- return `${r} ${K1.error} btn-glass-error`;
1777
+ return `${r} ${R1.error} btn-glass-error`;
1819
1778
  case "ghost":
1820
- return `${r} ${K1.neutral} btn-ghost`;
1779
+ return `${r} ${R1.neutral} btn-ghost`;
1821
1780
  case "no-style":
1822
- return `${r} ${K1.neutral} btn-no-style border-none`;
1781
+ return `${r} ${R1.neutral} btn-no-style border-none`;
1823
1782
  default:
1824
- return `${r} ${K1.neutral} btn-filled shadow-default`;
1783
+ return `${r} ${R1.neutral} btn-filled shadow-default`;
1825
1784
  }
1826
- }, K7 = () => /* @__PURE__ */ w(
1785
+ }, R7 = () => /* @__PURE__ */ v(
1827
1786
  "svg",
1828
1787
  {
1829
1788
  className: "animate-spin -ml-1 mr-2 h-4 w-4",
@@ -1870,31 +1829,31 @@ const V3 = (e) => /* @__PURE__ */ c.createElement("svg", { width: 16, height: 17
1870
1829
  className: m = "",
1871
1830
  ...b
1872
1831
  }, x) => {
1873
- const A = r ?? D7(t), v = o || a, y = [
1832
+ const A = r ?? D7(t), w = o || a, y = [
1874
1833
  "flex items-center justify-center",
1875
1834
  p ? "p-0" : L7(t),
1876
- R7(e, A),
1835
+ K7(e, A),
1877
1836
  i ? "w-full" : "",
1878
1837
  d ? "max-w-full" : "",
1879
- v ? "cursor-not-allowed" : "",
1880
- h && v ? "pointer-events-none" : "",
1838
+ w ? "cursor-not-allowed" : "",
1839
+ h && w ? "pointer-events-none" : "",
1881
1840
  m
1882
- ].filter(Boolean).join(" "), M = /* @__PURE__ */ l("button", { ref: x, disabled: o || a, className: y, ...b, children: (() => {
1841
+ ].filter(Boolean).join(" "), V = /* @__PURE__ */ l("button", { ref: x, disabled: o || a, className: y, ...b, children: (() => {
1883
1842
  if (a)
1884
- return /* @__PURE__ */ w(w1, { children: [
1885
- /* @__PURE__ */ l(K7, {}),
1843
+ return /* @__PURE__ */ v(w1, { children: [
1844
+ /* @__PURE__ */ l(R7, {}),
1886
1845
  u
1887
1846
  ] });
1888
- const Q = `inline-flex items-center shrink-0 ${Q7(t)}`;
1889
- return n && s === "start" ? /* @__PURE__ */ w(w1, { children: [
1890
- /* @__PURE__ */ l("span", { className: `${Q}${u ? " mr-2" : ""}`, children: n }),
1847
+ const D = `inline-flex items-center shrink-0 ${Q7(t)}`;
1848
+ return n && s === "start" ? /* @__PURE__ */ v(w1, { children: [
1849
+ /* @__PURE__ */ l("span", { className: `${D}${u ? " mr-2" : ""}`, children: n }),
1891
1850
  u
1892
- ] }) : n && s === "end" ? /* @__PURE__ */ w(w1, { children: [
1851
+ ] }) : n && s === "end" ? /* @__PURE__ */ v(w1, { children: [
1893
1852
  u,
1894
- /* @__PURE__ */ l("span", { className: `${Q}${u ? " ml-2" : ""}`, children: n })
1853
+ /* @__PURE__ */ l("span", { className: `${D}${u ? " ml-2" : ""}`, children: n })
1895
1854
  ] }) : u;
1896
1855
  })() });
1897
- return h ? /* @__PURE__ */ l(U1, { text: h, placement: C, fill: i, children: v ? /* @__PURE__ */ l("span", { className: `inline-flex cursor-not-allowed${i ? " w-full" : ""}`, children: M }) : M }) : M;
1856
+ return h ? /* @__PURE__ */ l(U1, { text: h, placement: C, fill: i, children: w ? /* @__PURE__ */ l("span", { className: `inline-flex cursor-not-allowed${i ? " w-full" : ""}`, children: V }) : V }) : V;
1898
1857
  }
1899
1858
  );
1900
1859
  ne.displayName = "Button";
@@ -2069,24 +2028,24 @@ ${C}` : C;
2069
2028
  if (!(t = n.exec(e)) || this.rules.block.hr.test(e)) break;
2070
2029
  h = t[0], e = e.substring(h.length);
2071
2030
  let p = t[2].split(`
2072
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (v) => " ".repeat(3 * v.length)), u = e.split(`
2031
+ `, 1)[0].replace(this.rules.other.listReplaceTabs, (w) => " ".repeat(3 * w.length)), u = e.split(`
2073
2032
  `, 1)[0], m = !p.trim(), b = 0;
2074
2033
  if (this.options.pedantic ? (b = 2, C = p.trimStart()) : m ? b = t[1].length + 1 : (b = t[2].search(this.rules.other.nonSpaceChar), b = b > 4 ? 1 : b, C = p.slice(b), b += t[1].length), m && this.rules.other.blankLine.test(u) && (h += u + `
2075
2034
  `, e = e.substring(u.length + 1), d = !0), !d) {
2076
- let v = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), F = this.rules.other.fencesBeginRegex(b), M = this.rules.other.headingBeginRegex(b), Q = this.rules.other.htmlBeginRegex(b);
2035
+ let w = this.rules.other.nextBulletRegex(b), y = this.rules.other.hrRegex(b), S = this.rules.other.fencesBeginRegex(b), V = this.rules.other.headingBeginRegex(b), D = this.rules.other.htmlBeginRegex(b);
2077
2036
  for (; e; ) {
2078
- let N = e.split(`
2079
- `, 1)[0], I;
2080
- if (u = N, this.options.pedantic ? (u = u.replace(this.rules.other.listReplaceNesting, " "), I = u) : I = u.replace(this.rules.other.tabCharGlobal, " "), F.test(u) || M.test(u) || Q.test(u) || v.test(u) || y.test(u)) break;
2081
- if (I.search(this.rules.other.nonSpaceChar) >= b || !u.trim()) C += `
2082
- ` + I.slice(b);
2037
+ let I = e.split(`
2038
+ `, 1)[0], N;
2039
+ if (u = I, this.options.pedantic ? (u = u.replace(this.rules.other.listReplaceNesting, " "), N = u) : N = u.replace(this.rules.other.tabCharGlobal, " "), S.test(u) || V.test(u) || D.test(u) || w.test(u) || y.test(u)) break;
2040
+ if (N.search(this.rules.other.nonSpaceChar) >= b || !u.trim()) C += `
2041
+ ` + N.slice(b);
2083
2042
  else {
2084
- if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || F.test(p) || M.test(p) || y.test(p)) break;
2043
+ if (m || p.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(p) || V.test(p) || y.test(p)) break;
2085
2044
  C += `
2086
2045
  ` + u;
2087
2046
  }
2088
- !m && !u.trim() && (m = !0), h += N + `
2089
- `, e = e.substring(N.length + 1), p = I.slice(b);
2047
+ !m && !u.trim() && (m = !0), h += I + `
2048
+ `, e = e.substring(I.length + 1), p = N.slice(b);
2090
2049
  }
2091
2050
  }
2092
2051
  o.loose || (s ? o.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (s = !0));
@@ -3355,7 +3314,7 @@ const M2 = ({
3355
3314
  size: t,
3356
3315
  omitMargin: r
3357
3316
  }) => ({
3358
- blockquote: (u) => /* @__PURE__ */ w(w1, { children: [
3317
+ blockquote: (u) => /* @__PURE__ */ v(w1, { children: [
3359
3318
  /* @__PURE__ */ l("br", {}),
3360
3319
  /* @__PURE__ */ l(
3361
3320
  "div",
@@ -3380,7 +3339,7 @@ const M2 = ({
3380
3339
  `paragraph-${Math.random().toString(36).substr(2, 9)}`
3381
3340
  ),
3382
3341
  codespan: (u) => /* @__PURE__ */ l(M2, { size: t, children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
3383
- heading: (u, m) => /* @__PURE__ */ w(w1, { children: [
3342
+ heading: (u, m) => /* @__PURE__ */ v(w1, { children: [
3384
3343
  m === 1 ? /* @__PURE__ */ l(I2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`) : /* @__PURE__ */ l(S2, { children: Array.isArray(u) ? u[0] : u }, `paragraph-${Math.random().toString(36).substr(2, 9)}`),
3385
3344
  /* @__PURE__ */ l("br", {})
3386
3345
  ] }),
@@ -3468,8 +3427,8 @@ const M2 = ({
3468
3427
  onToggle: s
3469
3428
  }) => {
3470
3429
  const i = !!o, [d, h] = H(!1), C = n !== void 0 ? n : d, p = () => {
3471
- const v = !C;
3472
- n === void 0 && h(v), s == null || s(v);
3430
+ const w = !C;
3431
+ n === void 0 && h(w), s == null || s(w);
3473
3432
  }, u = {
3474
3433
  width: "16px",
3475
3434
  height: "16px",
@@ -3516,9 +3475,9 @@ const M2 = ({
3516
3475
  i ? "gap-2 px-2.5 py-1" : "gap-2",
3517
3476
  i && C ? "rounded-t-[12px]" : i ? "rounded-[12px]" : ""
3518
3477
  ].filter(Boolean).join(" "), A = ["w-full", "overflow-hidden"].filter(Boolean).join(" ");
3519
- return i ? /* @__PURE__ */ w("div", { className: `${b} alert-expandable`, children: [
3520
- /* @__PURE__ */ w("div", { className: x, children: [
3521
- /* @__PURE__ */ w("div", { className: "flex-1 flex gap-2 items-center", children: [
3478
+ return i ? /* @__PURE__ */ v("div", { className: `${b} alert-expandable`, children: [
3479
+ /* @__PURE__ */ v("div", { className: x, children: [
3480
+ /* @__PURE__ */ v("div", { className: "flex-1 flex gap-2 items-center", children: [
3522
3481
  m[e],
3523
3482
  /* @__PURE__ */ l("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ l("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ l(U5, { text: t, type: e }) }) })
3524
3483
  ] }),
@@ -3547,7 +3506,7 @@ const M2 = ({
3547
3506
  ) })
3548
3507
  ] }),
3549
3508
  C && /* @__PURE__ */ l(w1, { children: /* @__PURE__ */ l("div", { className: A, children: /* @__PURE__ */ l("div", { className: "bg-white rounded-[10px] shadow-[0px_1px_0px_0px_rgba(0,0,0,0.15)] border border-[#e8e8e8] border-solid mx-2 mb-2 max-h-[553px] overflow-y-auto", children: o }) }) })
3550
- ] }) : /* @__PURE__ */ w("div", { className: b, children: [
3509
+ ] }) : /* @__PURE__ */ v("div", { className: b, children: [
3551
3510
  m[e],
3552
3511
  /* @__PURE__ */ l("div", { className: "flex-1 flex items-center", children: /* @__PURE__ */ l("div", { className: "[&>div]:mb-0", children: /* @__PURE__ */ l(U5, { text: t, type: e }) }) })
3553
3512
  ] });
@@ -3665,7 +3624,7 @@ const M2 = ({
3665
3624
  children: m.map((b, x) => /* @__PURE__ */ l(P1.Fragment, { children: b }, x))
3666
3625
  }
3667
3626
  );
3668
- }, Re = ({
3627
+ }, Ke = ({
3669
3628
  label: e,
3670
3629
  hint: t,
3671
3630
  tooltip: r,
@@ -3678,22 +3637,22 @@ const M2 = ({
3678
3637
  children: h
3679
3638
  }) => {
3680
3639
  const C = i ? /* @__PURE__ */ l(Q0, { control: i, name: a, children: h }) : h;
3681
- return /* @__PURE__ */ w(be, { direction: "vertical", size: 6, align: "stretch", children: [
3682
- (e ?? t ?? o) && /* @__PURE__ */ w(be, { direction: "vertical", size: 4, align: "stretch", children: [
3683
- /* @__PURE__ */ w("div", { className: "flex justify-between items-start", children: [
3684
- /* @__PURE__ */ l(K0, { text: e, required: n, tooltip: r }),
3640
+ return /* @__PURE__ */ v(be, { direction: "vertical", size: 6, align: "stretch", children: [
3641
+ (e ?? t ?? o) && /* @__PURE__ */ v(be, { direction: "vertical", size: 4, align: "stretch", children: [
3642
+ /* @__PURE__ */ v("div", { className: "flex justify-between items-start", children: [
3643
+ /* @__PURE__ */ l(R0, { text: e, required: n, tooltip: r }),
3685
3644
  t && /* @__PURE__ */ l(P0, { text: t })
3686
3645
  ] }),
3687
- o && /* @__PURE__ */ l(R0, { text: o })
3646
+ o && /* @__PURE__ */ l(K0, { text: o })
3688
3647
  ] }),
3689
3648
  s ? d : C
3690
3649
  ] });
3691
- }, P0 = ({ text: e }) => /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), R0 = ({ text: e }) => /* @__PURE__ */ l("div", { className: "pl-2 text-left", children: /* @__PURE__ */ l(v5, { color: "dimmed", size: "small", text: e ?? "", omitMargin: !0 }) }), K0 = ({
3650
+ }, P0 = ({ text: e }) => /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "pr-2 relative top-[3px]", children: e }), K0 = ({ text: e }) => /* @__PURE__ */ l("div", { className: "pl-2 text-left", children: /* @__PURE__ */ l(v5, { color: "dimmed", size: "small", text: e ?? "", omitMargin: !0 }) }), R0 = ({
3692
3651
  text: e,
3693
3652
  required: t,
3694
3653
  tooltip: r
3695
- }) => e ? /* @__PURE__ */ w("div", { className: "flex items-center", children: [
3696
- /* @__PURE__ */ w(Q1, { size: "xsmall", color: "primary", fontWeight: "semi-bold", className: "pl-2", children: [
3654
+ }) => e ? /* @__PURE__ */ v("div", { className: "flex items-center", children: [
3655
+ /* @__PURE__ */ v(Q1, { size: "xsmall", color: "primary", fontWeight: "semi-bold", className: "pl-2", children: [
3697
3656
  e,
3698
3657
  !t && /* @__PURE__ */ l(Q1, { size: "xsmall", color: "dimmed", className: "ml-1", children: "(Optional)" })
3699
3658
  ] }),
@@ -3756,19 +3715,19 @@ const M2 = ({
3756
3715
  glassFooter: b = !1,
3757
3716
  className: x = "",
3758
3717
  style: A = {},
3759
- headerConfig: v = {}
3718
+ headerConfig: w = {}
3760
3719
  }) => {
3761
- const y = U(null), [F, M] = H(0);
3720
+ const y = U(null), [S, V] = H(0);
3762
3721
  u1(() => {
3763
3722
  if (b && m && y.current) {
3764
3723
  const L = new ResizeObserver((a1) => {
3765
3724
  for (const $ of a1)
3766
- M($.contentRect.height);
3725
+ V($.contentRect.height);
3767
3726
  });
3768
- return L.observe(y.current), M(y.current.offsetHeight), () => L.disconnect();
3727
+ return L.observe(y.current), V(y.current.offsetHeight), () => L.disconnect();
3769
3728
  }
3770
3729
  }, [b, m]);
3771
- const N = [
3730
+ const I = [
3772
3731
  "card-base",
3773
3732
  s ? "card-dimmed" : "",
3774
3733
  C === "rounded" ? "card-rounded" : "",
@@ -3776,16 +3735,16 @@ const M2 = ({
3776
3735
  u ? "flex flex-col" : "",
3777
3736
  a === "small" ? "text-sm" : "",
3778
3737
  x
3779
- ].filter(Boolean).join(" "), I = parseInt(r) || 20, E = {
3738
+ ].filter(Boolean).join(" "), N = parseInt(r) || 20, M = {
3780
3739
  padding: r,
3781
3740
  display: i ? "flex" : void 0,
3782
3741
  flexDirection: i,
3783
3742
  alignItems: d,
3784
3743
  ...u && { overflow: "auto", height: "100%" },
3785
- ...b && m && F > 0 && {
3786
- paddingBottom: `${I + F + 10}px`
3744
+ ...b && m && S > 0 && {
3745
+ paddingBottom: `${N + S + 10}px`
3787
3746
  }
3788
- }, Z = {
3747
+ }, F = {
3789
3748
  width: o,
3790
3749
  minWidth: n,
3791
3750
  alignSelf: p,
@@ -3795,7 +3754,7 @@ const M2 = ({
3795
3754
  overflow: "hidden",
3796
3755
  ...A
3797
3756
  };
3798
- return /* @__PURE__ */ w("div", { className: N, style: Z, children: [
3757
+ return /* @__PURE__ */ v("div", { className: I, style: F, children: [
3799
3758
  e && /* @__PURE__ */ l(
3800
3759
  "div",
3801
3760
  {
@@ -3804,7 +3763,7 @@ const M2 = ({
3804
3763
  marginBottom: "1px",
3805
3764
  fontSize: a === "small" ? "12px" : "13px",
3806
3765
  fontWeight: "normal",
3807
- padding: v == null ? void 0 : v.padding
3766
+ padding: w == null ? void 0 : w.padding
3808
3767
  },
3809
3768
  children: /* @__PURE__ */ l("div", { className: "font-normal overflow-visible", children: e })
3810
3769
  }
@@ -3814,7 +3773,7 @@ const M2 = ({
3814
3773
  {
3815
3774
  className: "flex-1",
3816
3775
  style: {
3817
- ...E,
3776
+ ...M,
3818
3777
  ...b && m && { position: "relative" }
3819
3778
  },
3820
3779
  children: t
@@ -3869,8 +3828,8 @@ const M2 = ({
3869
3828
  color: "#fff",
3870
3829
  opacity: a ? 0.5 : 1,
3871
3830
  transition: "background-color 150ms ease, border-color 150ms ease"
3872
- }, x = /* @__PURE__ */ w(w1, { children: [
3873
- C && /* @__PURE__ */ w(
3831
+ }, x = /* @__PURE__ */ v(w1, { children: [
3832
+ C && /* @__PURE__ */ v(
3874
3833
  "svg",
3875
3834
  {
3876
3835
  width: Math.round(o * 0.78),
@@ -3964,8 +3923,8 @@ const M2 = ({
3964
3923
  color: e.background ? "#fff" : "var(--malachite-text-primary)"
3965
3924
  }), ia = ({ from: e, to: t, className: r = "" }) => {
3966
3925
  const a = !!(e.label || t.label);
3967
- return /* @__PURE__ */ w("div", { className: `flex flex-col items-center gap-[12px] ${r}`, children: [
3968
- /* @__PURE__ */ w("div", { className: "flex items-center justify-center", children: [
3926
+ return /* @__PURE__ */ v("div", { className: `flex flex-col items-center gap-[12px] ${r}`, children: [
3927
+ /* @__PURE__ */ v("div", { className: "flex items-center justify-center", children: [
3969
3928
  /* @__PURE__ */ l(
3970
3929
  "div",
3971
3930
  {
@@ -3993,7 +3952,7 @@ const M2 = ({
3993
3952
  }
3994
3953
  )
3995
3954
  ] }),
3996
- a && /* @__PURE__ */ w("div", { className: "flex items-center gap-[8px] text-[13px] font-medium text-[var(--malachite-text-secondary)]", children: [
3955
+ a && /* @__PURE__ */ v("div", { className: "flex items-center gap-[8px] text-[13px] font-medium text-[var(--malachite-text-secondary)]", children: [
3997
3956
  e.label && /* @__PURE__ */ l("span", { children: e.label }),
3998
3957
  e.label && t.label && /* @__PURE__ */ l("span", { className: "text-[var(--malachite-text-placeholder)]", children: "→" }),
3999
3958
  t.label && /* @__PURE__ */ l("span", { children: t.label })
@@ -4042,7 +4001,7 @@ var L2 = (e) => {
4042
4001
  });
4043
4002
  };
4044
4003
  L2.displayName = "JVR.ShowTools";
4045
- var D2 = {}, Q2 = /* @__PURE__ */ I1(D2), j0 = (e, t) => f({}, e, t), Ke = () => N1(Q2), y5 = /* @__PURE__ */ I1(() => {
4004
+ var D2 = {}, Q2 = /* @__PURE__ */ I1(D2), j0 = (e, t) => f({}, e, t), Re = () => N1(Q2), y5 = /* @__PURE__ */ I1(() => {
4046
4005
  });
4047
4006
  y5.displayName = "JVR.DispatchExpands";
4048
4007
  function q0() {
@@ -4066,7 +4025,7 @@ var P2 = (e) => {
4066
4025
  });
4067
4026
  };
4068
4027
  P2.displayName = "JVR.Expands";
4069
- var R2 = {
4028
+ var K2 = {
4070
4029
  Str: {
4071
4030
  as: "span",
4072
4031
  "data-type": "string",
@@ -4186,11 +4145,11 @@ var R2 = {
4186
4145
  className: "w-rjv-type",
4187
4146
  children: "date"
4188
4147
  }
4189
- }, K2 = /* @__PURE__ */ I1(R2), U0 = (e, t) => f({}, e, t), i1 = () => N1(K2), A5 = /* @__PURE__ */ I1(() => {
4148
+ }, R2 = /* @__PURE__ */ I1(K2), U0 = (e, t) => f({}, e, t), i1 = () => N1(R2), A5 = /* @__PURE__ */ I1(() => {
4190
4149
  });
4191
4150
  A5.displayName = "JVR.DispatchTypes";
4192
4151
  function O0() {
4193
- return ae(U0, R2);
4152
+ return ae(U0, K2);
4194
4153
  }
4195
4154
  function X0() {
4196
4155
  return N1(A5);
@@ -4201,7 +4160,7 @@ function W2(e) {
4201
4160
  dispatch: r,
4202
4161
  children: a
4203
4162
  } = e;
4204
- return /* @__PURE__ */ l(K2.Provider, {
4163
+ return /* @__PURE__ */ l(R2.Provider, {
4205
4164
  value: t,
4206
4165
  children: /* @__PURE__ */ l(A5.Provider, {
4207
4166
  value: r,
@@ -4498,7 +4457,7 @@ z2.displayName = "JVR.Colon";
4498
4457
  var $2 = (e) => {
4499
4458
  var {
4500
4459
  Arrow: t = {}
4501
- } = E1(), r = Ke(), {
4460
+ } = E1(), r = Re(), {
4502
4461
  expandKey: a,
4503
4462
  style: o,
4504
4463
  value: n,
@@ -4512,12 +4471,12 @@ var $2 = (e) => {
4512
4471
  } = t, m = Y(t, d4), b = C || "span", x = u && typeof u == "function", A = f({}, m, {
4513
4472
  "data-expanded": h,
4514
4473
  style: f({}, p, o)
4515
- }), v = {
4474
+ }), w = {
4516
4475
  value: n,
4517
4476
  parentValue: s,
4518
4477
  keyName: i,
4519
4478
  keys: d || (i ? [i] : [])
4520
- }, y = x && u(A, v);
4479
+ }, y = x && u(A, w);
4521
4480
  return y || /* @__PURE__ */ l(b, f({}, m, {
4522
4481
  style: f({}, p, o)
4523
4482
  }));
@@ -4549,8 +4508,8 @@ var _2 = (e) => {
4549
4508
  var {
4550
4509
  as: b,
4551
4510
  render: x
4552
- } = i, A = Y(i, C4), v = b || "span", y = x && typeof x == "function" && x(A, d);
4553
- return y || /* @__PURE__ */ l(v, f({}, A));
4511
+ } = i, A = Y(i, C4), w = b || "span", y = x && typeof x == "function" && x(A, d);
4512
+ return y || /* @__PURE__ */ l(w, f({}, A));
4554
4513
  };
4555
4514
  _2.displayName = "JVR.BracketsOpen";
4556
4515
  var V5 = (e) => {
@@ -4582,8 +4541,8 @@ var V5 = (e) => {
4582
4541
  var {
4583
4542
  as: x,
4584
4543
  render: A
4585
- } = h, v = Y(h, p4), y = x || "span", F = A && typeof A == "function" && A(v, i);
4586
- return F || /* @__PURE__ */ l(y, f({}, v));
4544
+ } = h, w = Y(h, p4), y = x || "span", S = A && typeof A == "function" && A(w, i);
4545
+ return S || /* @__PURE__ */ l(y, f({}, w));
4587
4546
  };
4588
4547
  V5.displayName = "JVR.BracketsClose";
4589
4548
  var et = (e) => {
@@ -4594,7 +4553,7 @@ var et = (e) => {
4594
4553
  parentValue: n,
4595
4554
  level: s,
4596
4555
  keys: i = []
4597
- } = e, d = Ke(), {
4556
+ } = e, d = Re(), {
4598
4557
  collapsed: h,
4599
4558
  shouldExpandNodeInitially: C
4600
4559
  } = $1(), p = typeof h == "boolean" ? h : typeof h == "number" ? s > h : !1, u = (t = d[o]) != null ? t : p, m = C && C(u, {
@@ -4616,11 +4575,11 @@ var et = (e) => {
4616
4575
  value: a,
4617
4576
  keys: i,
4618
4577
  parentValue: n
4619
- }, v = Array.isArray(a), y = a instanceof Set;
4578
+ }, w = Array.isArray(a), y = a instanceof Set;
4620
4579
  return /* @__PURE__ */ l("div", {
4621
4580
  style: x,
4622
4581
  children: /* @__PURE__ */ l(V5, f({
4623
- isBrackets: v || y
4582
+ isBrackets: w || y
4624
4583
  }, A, {
4625
4584
  isVisiable: !0
4626
4585
  }))
@@ -4706,28 +4665,28 @@ var L1 = {
4706
4665
  }), p.length > s && (C.onClick = () => {
4707
4666
  m(!u);
4708
4667
  }));
4709
- var A = u ? "" + p.slice(0, s) + i : p, v = h && typeof h == "function", y = v && h(f({}, C, {
4668
+ var A = u ? "" + p.slice(0, s) + i : p, w = h && typeof h == "function", y = w && h(f({}, C, {
4710
4669
  style: x
4711
4670
  }), {
4712
4671
  type: "type",
4713
4672
  value: t,
4714
4673
  keyName: r,
4715
4674
  keys: a
4716
- }), F = u ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", M = v && h(f({}, C, {
4675
+ }), S = u ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", V = w && h(f({}, C, {
4717
4676
  children: A,
4718
- className: F
4677
+ className: S
4719
4678
  }), {
4720
4679
  type: "value",
4721
4680
  value: t,
4722
4681
  keyName: r,
4723
4682
  keys: a
4724
4683
  });
4725
- return /* @__PURE__ */ w(k1, {
4684
+ return /* @__PURE__ */ v(k1, {
4726
4685
  children: [n && (y || /* @__PURE__ */ l(b, f({}, C, {
4727
4686
  style: x
4728
- }))), M || /* @__PURE__ */ w(k1, {
4687
+ }))), V || /* @__PURE__ */ v(k1, {
4729
4688
  children: [/* @__PURE__ */ l(ve, {}), /* @__PURE__ */ l(b, f({}, C, {
4730
- className: F,
4689
+ className: S,
4731
4690
  children: A
4732
4691
  })), /* @__PURE__ */ l(ve, {})]
4733
4692
  })]
@@ -4761,7 +4720,7 @@ var ot = (e) => {
4761
4720
  keyName: r,
4762
4721
  keys: a
4763
4722
  });
4764
- return /* @__PURE__ */ w(k1, {
4723
+ return /* @__PURE__ */ v(k1, {
4765
4724
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4766
4725
  style: C
4767
4726
  }))), m || /* @__PURE__ */ l(h, f({}, d, {
@@ -4798,7 +4757,7 @@ var lt = (e) => {
4798
4757
  keyName: r,
4799
4758
  keys: a
4800
4759
  });
4801
- return /* @__PURE__ */ w(k1, {
4760
+ return /* @__PURE__ */ v(k1, {
4802
4761
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4803
4762
  style: C
4804
4763
  }))), m || /* @__PURE__ */ l(h, f({}, d, {
@@ -4835,7 +4794,7 @@ var nt = (e) => {
4835
4794
  keyName: r,
4836
4795
  keys: a
4837
4796
  });
4838
- return /* @__PURE__ */ w(k1, {
4797
+ return /* @__PURE__ */ v(k1, {
4839
4798
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4840
4799
  style: C
4841
4800
  }))), m || /* @__PURE__ */ l(h, f({}, d, {
@@ -4872,7 +4831,7 @@ var it = (e) => {
4872
4831
  keyName: r,
4873
4832
  keys: a
4874
4833
  });
4875
- return /* @__PURE__ */ w(k1, {
4834
+ return /* @__PURE__ */ v(k1, {
4876
4835
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4877
4836
  style: C
4878
4837
  }))), m || /* @__PURE__ */ l(h, f({}, d, {
@@ -4909,7 +4868,7 @@ var ct = (e) => {
4909
4868
  keyName: r,
4910
4869
  keys: a
4911
4870
  });
4912
- return /* @__PURE__ */ w(k1, {
4871
+ return /* @__PURE__ */ v(k1, {
4913
4872
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4914
4873
  style: C
4915
4874
  }))), m || /* @__PURE__ */ l(h, f({}, d, {
@@ -4946,10 +4905,10 @@ var st = (e) => {
4946
4905
  keyName: r,
4947
4906
  keys: a
4948
4907
  });
4949
- return /* @__PURE__ */ w(k1, {
4908
+ return /* @__PURE__ */ v(k1, {
4950
4909
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4951
4910
  style: C
4952
- }))), m || /* @__PURE__ */ w("a", f({
4911
+ }))), m || /* @__PURE__ */ v("a", f({
4953
4912
  href: t == null ? void 0 : t.href,
4954
4913
  target: "_blank"
4955
4914
  }, d, {
@@ -4986,7 +4945,7 @@ var dt = (e) => {
4986
4945
  keyName: r,
4987
4946
  keys: a
4988
4947
  });
4989
- return /* @__PURE__ */ w(k1, {
4948
+ return /* @__PURE__ */ v(k1, {
4990
4949
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
4991
4950
  style: C
4992
4951
  }))), b || /* @__PURE__ */ l(h, f({}, d, {
@@ -5023,7 +4982,7 @@ var ht = (e) => {
5023
4982
  keyName: r,
5024
4983
  keys: a
5025
4984
  });
5026
- return /* @__PURE__ */ w(k1, {
4985
+ return /* @__PURE__ */ v(k1, {
5027
4986
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
5028
4987
  style: C
5029
4988
  }))), m]
@@ -5057,7 +5016,7 @@ var Ct = (e) => {
5057
5016
  keyName: r,
5058
5017
  keys: a
5059
5018
  });
5060
- return /* @__PURE__ */ w(k1, {
5019
+ return /* @__PURE__ */ v(k1, {
5061
5020
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
5062
5021
  style: C
5063
5022
  }))), m]
@@ -5091,7 +5050,7 @@ var ut = (e) => {
5091
5050
  keyName: r,
5092
5051
  keys: a
5093
5052
  });
5094
- return /* @__PURE__ */ w(k1, {
5053
+ return /* @__PURE__ */ v(k1, {
5095
5054
  children: [n && (u || /* @__PURE__ */ l(h, f({}, d, {
5096
5055
  style: C
5097
5056
  }))), m]
@@ -5279,23 +5238,23 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
5279
5238
  Copied: m = {}
5280
5239
  } = S1();
5281
5240
  if (d === !1 || !C) return null;
5282
- var b = (Q) => {
5283
- Q.stopPropagation();
5284
- var N = "";
5285
- typeof r == "number" && r === 1 / 0 ? N = "Infinity" : typeof r == "number" && isNaN(r) ? N = "NaN" : typeof r == "bigint" ? N = l5(r) : r instanceof Date ? N = r.toLocaleString() : N = JSON.stringify(r, (S, E) => typeof E == "bigint" ? l5(E) : E, 2), i && i(N, r), u(!0);
5286
- var I = navigator.clipboard || {
5287
- writeText(S) {
5288
- return new Promise((E, Z) => {
5241
+ var b = (D) => {
5242
+ D.stopPropagation();
5243
+ var I = "";
5244
+ typeof r == "number" && r === 1 / 0 ? I = "Infinity" : typeof r == "number" && isNaN(r) ? I = "NaN" : typeof r == "bigint" ? I = l5(r) : r instanceof Date ? I = r.toLocaleString() : I = JSON.stringify(r, (Z, M) => typeof M == "bigint" ? l5(M) : M, 2), i && i(I, r), u(!0);
5245
+ var N = navigator.clipboard || {
5246
+ writeText(Z) {
5247
+ return new Promise((M, F) => {
5289
5248
  var L = document.createElement("textarea");
5290
- L.style.position = "absolute", L.style.opacity = "0", L.style.left = "-99999999px", L.value = S, document.body.appendChild(L), L.select(), document.execCommand("copy") ? E() : Z(), L.remove();
5249
+ L.style.position = "absolute", L.style.opacity = "0", L.style.left = "-99999999px", L.value = Z, document.body.appendChild(L), L.select(), document.execCommand("copy") ? M() : F(), L.remove();
5291
5250
  });
5292
5251
  }
5293
5252
  };
5294
- I.writeText(N).then(() => {
5295
- var S = setTimeout(() => {
5296
- u(!1), clearTimeout(S);
5253
+ N.writeText(I).then(() => {
5254
+ var Z = setTimeout(() => {
5255
+ u(!1), clearTimeout(Z);
5297
5256
  }, 3e3);
5298
- }).catch((S) => {
5257
+ }).catch((Z) => {
5299
5258
  });
5300
5259
  }, x = {
5301
5260
  style: {
@@ -5305,9 +5264,9 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
5305
5264
  onClick: b
5306
5265
  }, {
5307
5266
  render: A
5308
- } = m, v = Y(m, D4), y = f({}, v, s, x, {
5309
- style: f({}, v.style, s.style, x.style)
5310
- }), F = A && typeof A == "function", M = F && A(f({}, y, {
5267
+ } = m, w = Y(m, D4), y = f({}, w, s, x, {
5268
+ style: f({}, w.style, s.style, x.style)
5269
+ }), S = A && typeof A == "function", V = S && A(f({}, y, {
5311
5270
  "data-copied": p
5312
5271
  }), {
5313
5272
  value: r,
@@ -5315,7 +5274,7 @@ var L4 = ["keyName", "value", "parentValue", "expandKey", "keys"], D4 = ["as", "
5315
5274
  keys: n,
5316
5275
  parentValue: a
5317
5276
  });
5318
- return M || (p ? /* @__PURE__ */ l("svg", f({
5277
+ return V || (p ? /* @__PURE__ */ l("svg", f({
5319
5278
  viewBox: "0 0 32 36"
5320
5279
  }, y, {
5321
5280
  children: /* @__PURE__ */ l("path", {
@@ -5342,7 +5301,7 @@ var vt = (e) => {
5342
5301
  level: n,
5343
5302
  keys: s = [],
5344
5303
  parentValue: i
5345
- } = e, d = Ke(), {
5304
+ } = e, d = Re(), {
5346
5305
  objectSortKeys: h,
5347
5306
  indentWidth: C,
5348
5307
  collapsed: p,
@@ -5356,13 +5315,13 @@ var vt = (e) => {
5356
5315
  });
5357
5316
  if (d[o] === void 0 && x || b)
5358
5317
  return null;
5359
- var A = Array.isArray(a), v = A ? Object.entries(a).map((F) => [Number(F[0]), F[1]]) : Object.entries(a);
5360
- h && (v = h === !0 ? v.sort((F, M) => {
5361
- var [Q] = F, [N] = M;
5362
- return typeof Q == "string" && typeof N == "string" ? Q.localeCompare(N) : 0;
5363
- }) : v.sort((F, M) => {
5364
- var [Q, N] = F, [I, S] = M;
5365
- return typeof Q == "string" && typeof I == "string" ? h(Q, I, N, S) : 0;
5318
+ var A = Array.isArray(a), w = A ? Object.entries(a).map((S) => [Number(S[0]), S[1]]) : Object.entries(a);
5319
+ h && (w = h === !0 ? w.sort((S, V) => {
5320
+ var [D] = S, [I] = V;
5321
+ return typeof D == "string" && typeof I == "string" ? D.localeCompare(I) : 0;
5322
+ }) : w.sort((S, V) => {
5323
+ var [D, I] = S, [N, Z] = V;
5324
+ return typeof D == "string" && typeof N == "string" ? h(D, N, I, Z) : 0;
5366
5325
  }));
5367
5326
  var y = {
5368
5327
  borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
@@ -5372,15 +5331,15 @@ var vt = (e) => {
5372
5331
  return /* @__PURE__ */ l("div", {
5373
5332
  className: "w-rjv-wrap",
5374
5333
  style: y,
5375
- children: v.map((F, M) => {
5376
- var [Q, N] = F;
5334
+ children: w.map((S, V) => {
5335
+ var [D, I] = S;
5377
5336
  return /* @__PURE__ */ l(xt, {
5378
5337
  parentValue: a,
5379
- keyName: Q,
5380
- keys: [...s, Q],
5381
- value: N,
5338
+ keyName: D,
5339
+ keys: [...s, D],
5340
+ value: I,
5382
5341
  level: n
5383
- }, M);
5342
+ }, V);
5384
5343
  })
5385
5344
  });
5386
5345
  };
@@ -5405,8 +5364,8 @@ var I5 = (e) => {
5405
5364
  keys: a,
5406
5365
  parentValue: r
5407
5366
  };
5408
- return /* @__PURE__ */ w(k1, {
5409
- children: [/* @__PURE__ */ w("span", {
5367
+ return /* @__PURE__ */ v(k1, {
5368
+ children: [/* @__PURE__ */ v("span", {
5410
5369
  ref: i,
5411
5370
  children: [/* @__PURE__ */ l(o5, f({
5412
5371
  isNumber: s,
@@ -5448,7 +5407,7 @@ var xt = (e) => {
5448
5407
  [i]: !1
5449
5408
  })
5450
5409
  };
5451
- return /* @__PURE__ */ w(ft, f({
5410
+ return /* @__PURE__ */ v(ft, f({
5452
5411
  className: "w-rjv-line",
5453
5412
  value: r,
5454
5413
  keyName: t,
@@ -5499,7 +5458,7 @@ var At = (e) => {
5499
5458
  return p || /* @__PURE__ */ l(d, f({}, C));
5500
5459
  };
5501
5460
  At.displayName = "JVR.CountInfoExtraComps";
5502
- var R4 = ["value", "keyName"], K4 = ["as", "render"], kt = (e) => {
5461
+ var K4 = ["value", "keyName"], R4 = ["as", "render"], kt = (e) => {
5503
5462
  var {
5504
5463
  CountInfo: t = {}
5505
5464
  } = S1();
@@ -5510,7 +5469,7 @@ var Et = (e) => {
5510
5469
  var {
5511
5470
  value: t = {},
5512
5471
  keyName: r
5513
- } = e, a = Y(e, R4), {
5472
+ } = e, a = Y(e, K4), {
5514
5473
  displayObjectSize: o
5515
5474
  } = $1(), {
5516
5475
  CountInfo: n = {}
@@ -5519,7 +5478,7 @@ var Et = (e) => {
5519
5478
  var {
5520
5479
  as: s,
5521
5480
  render: i
5522
- } = n, d = Y(n, K4), h = s || "span";
5481
+ } = n, d = Y(n, R4), h = s || "span";
5523
5482
  d.style = f({}, d.style, e.style);
5524
5483
  var C = Object.keys(t).length;
5525
5484
  d.children || (d.children = C + " item" + (C === 1 ? "" : "s"));
@@ -5567,7 +5526,7 @@ var Mt = (e) => {
5567
5526
  value: s,
5568
5527
  parentValue: i,
5569
5528
  level: d
5570
- } = e, h = Ke(), C = J0(), {
5529
+ } = e, h = Re(), C = J0(), {
5571
5530
  onExpand: p,
5572
5531
  collapsed: u,
5573
5532
  shouldExpandNodeInitially: m
@@ -5579,7 +5538,7 @@ var Mt = (e) => {
5579
5538
  parentValue: i
5580
5539
  });
5581
5540
  h[a] === void 0 && m && (x = !!A);
5582
- var v = () => {
5541
+ var w = () => {
5583
5542
  var L = {
5584
5543
  expand: !x,
5585
5544
  value: s,
@@ -5592,39 +5551,39 @@ var Mt = (e) => {
5592
5551
  }, y = {
5593
5552
  display: "inline-flex",
5594
5553
  alignItems: "center"
5595
- }, F = {
5554
+ }, S = {
5596
5555
  transform: "rotate(" + (x ? "-90" : "0") + "deg)",
5597
5556
  transition: "all 0.3s"
5598
- }, M = Object.keys(s).length, Q = typeof s == "object", N = Array.isArray(s), I = s instanceof Set, S = M !== 0 && (N || I || Q), E = {
5557
+ }, V = Object.keys(s).length, D = typeof s == "object", I = Array.isArray(s), N = s instanceof Set, Z = V !== 0 && (I || N || D), M = {
5599
5558
  style: y
5600
5559
  };
5601
- S && (E.onClick = v);
5602
- var Z = {
5560
+ Z && (M.onClick = w);
5561
+ var F = {
5603
5562
  keyName: r,
5604
5563
  value: s,
5605
5564
  keys: o,
5606
5565
  parentValue: i
5607
5566
  };
5608
- return /* @__PURE__ */ w("span", f({}, E, {
5609
- children: [S && /* @__PURE__ */ l($2, f({
5610
- style: F,
5567
+ return /* @__PURE__ */ v("span", f({}, M, {
5568
+ children: [Z && /* @__PURE__ */ l($2, f({
5569
+ style: S,
5611
5570
  expandKey: a
5612
- }, Z)), (r || typeof r == "number") && /* @__PURE__ */ l(I5, f({}, Z)), /* @__PURE__ */ l(tt, {
5571
+ }, F)), (r || typeof r == "number") && /* @__PURE__ */ l(I5, f({}, F)), /* @__PURE__ */ l(tt, {
5613
5572
  value: n,
5614
5573
  keyName: r
5615
5574
  }), /* @__PURE__ */ l(rt, {
5616
5575
  value: n,
5617
5576
  keyName: r
5618
5577
  }), /* @__PURE__ */ l(_2, f({
5619
- isBrackets: N || I
5620
- }, Z)), /* @__PURE__ */ l(Vt, {
5578
+ isBrackets: I || N
5579
+ }, F)), /* @__PURE__ */ l(Vt, {
5621
5580
  keyName: r,
5622
5581
  value: s,
5623
5582
  isExpanded: x
5624
5583
  }), /* @__PURE__ */ l(V5, f({
5625
- isVisiable: x || !S,
5626
- isBrackets: N || I
5627
- }, Z)), /* @__PURE__ */ l(Et, {
5584
+ isVisiable: x || !Z,
5585
+ isBrackets: I || N
5586
+ }, F)), /* @__PURE__ */ l(Et, {
5628
5587
  value: s,
5629
5588
  keyName: r
5630
5589
  }), /* @__PURE__ */ l(At, {
@@ -5657,7 +5616,7 @@ var G4 = ["className", "children", "parentValue", "keyid", "level", "value", "in
5657
5616
  [p]: !1
5658
5617
  })
5659
5618
  };
5660
- return /* @__PURE__ */ w("div", f({
5619
+ return /* @__PURE__ */ v("div", f({
5661
5620
  className: u,
5662
5621
  ref: t
5663
5622
  }, h, m, {
@@ -5750,20 +5709,20 @@ var Pt = (e) => {
5750
5709
  return V1(t, e, "Bigint"), null;
5751
5710
  };
5752
5711
  Pt.displayName = "JVR.Bigint";
5753
- var Rt = (e) => {
5712
+ var Kt = (e) => {
5754
5713
  var {
5755
5714
  Date: t = {}
5756
5715
  } = i1();
5757
5716
  return V1(t, e, "Date"), null;
5758
5717
  };
5759
- Rt.displayName = "JVR.Date";
5760
- var Kt = (e) => {
5718
+ Kt.displayName = "JVR.Date";
5719
+ var Rt = (e) => {
5761
5720
  var {
5762
5721
  False: t = {}
5763
5722
  } = i1();
5764
5723
  return V1(t, e, "False"), null;
5765
5724
  };
5766
- Kt.displayName = "JVR.False";
5725
+ Rt.displayName = "JVR.False";
5767
5726
  var Wt = (e) => {
5768
5727
  var {
5769
5728
  Float: t = {}
@@ -5858,15 +5817,15 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
5858
5817
  displayDataTypes: b = !0,
5859
5818
  objectSortKeys: x = !1,
5860
5819
  onExpand: A,
5861
- onCopied: v
5862
- } = e, y = Y(e, T4), F = f({
5820
+ onCopied: w
5821
+ } = e, y = Y(e, T4), S = f({
5863
5822
  lineHeight: 1.4,
5864
5823
  fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
5865
5824
  color: "var(--w-rjv-color, #002b36)",
5866
5825
  backgroundColor: "var(--w-rjv-background-color, #00000000)",
5867
5826
  fontSize: 13
5868
- }, a), M = ["w-json-view-container", "w-rjv", r].filter(Boolean).join(" ");
5869
- return /* @__PURE__ */ w(X2, {
5827
+ }, a), V = ["w-json-view-container", "w-rjv", r].filter(Boolean).join(" ");
5828
+ return /* @__PURE__ */ v(X2, {
5870
5829
  initialState: {
5871
5830
  value: o,
5872
5831
  objectSortKeys: x,
@@ -5878,7 +5837,7 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
5878
5837
  shortenTextAfterLength: C,
5879
5838
  stringEllipsis: p,
5880
5839
  highlightUpdates: u,
5881
- onCopied: v,
5840
+ onCopied: w,
5882
5841
  onExpand: A
5883
5842
  },
5884
5843
  initialTypes: {
@@ -5888,14 +5847,14 @@ var T4 = ["className", "style", "value", "children", "collapsed", "shouldExpandN
5888
5847
  value: o
5889
5848
  }, y, {
5890
5849
  ref: t,
5891
- className: M,
5892
- style: F
5850
+ className: V,
5851
+ style: S
5893
5852
  })), n]
5894
5853
  });
5895
5854
  });
5896
5855
  z.Bigint = Pt;
5897
- z.Date = Rt;
5898
- z.False = Kt;
5856
+ z.Date = Kt;
5857
+ z.False = Rt;
5899
5858
  z.Float = Wt;
5900
5859
  z.Int = Gt;
5901
5860
  z.Map = Tt;
@@ -5993,7 +5952,7 @@ const ca = ({
5993
5952
  `);
5994
5953
  return /* @__PURE__ */ l("div", { className: "p-4 overflow-auto text-left", children: d.map((h, C) => {
5995
5954
  const p = C + 1;
5996
- return /* @__PURE__ */ w("div", { className: "flex items-start", style: { minHeight: "20px" }, children: [
5955
+ return /* @__PURE__ */ v("div", { className: "flex items-start", style: { minHeight: "20px" }, children: [
5997
5956
  r && /* @__PURE__ */ l(
5998
5957
  "span",
5999
5958
  {
@@ -6025,7 +5984,7 @@ const ca = ({
6025
5984
  ] }, C);
6026
5985
  }) });
6027
5986
  };
6028
- return /* @__PURE__ */ w(
5987
+ return /* @__PURE__ */ v(
6029
5988
  "div",
6030
5989
  {
6031
5990
  className: `border rounded-lg overflow-hidden ${a}`,
@@ -6061,7 +6020,7 @@ const ca = ({
6061
6020
  ]
6062
6021
  }
6063
6022
  );
6064
- }, Z5 = ({ size: e = "medium", helperText: t = !1, helperTextMarginTop: r = !1, heightClass: a }) => /* @__PURE__ */ w("div", { className: "w-full", children: [
6023
+ }, Z5 = ({ size: e = "medium", helperText: t = !1, helperTextMarginTop: r = !1, heightClass: a }) => /* @__PURE__ */ v("div", { className: "w-full", children: [
6065
6024
  /* @__PURE__ */ l(
6066
6025
  "div",
6067
6026
  {
@@ -6127,7 +6086,7 @@ const ca = ({
6127
6086
  {
6128
6087
  className: `flex items-center justify-center ${s} ${t}`,
6129
6088
  style: r,
6130
- children: /* @__PURE__ */ w(
6089
+ children: /* @__PURE__ */ v(
6131
6090
  "svg",
6132
6091
  {
6133
6092
  className: `animate-spin ${n}`,
@@ -6209,7 +6168,7 @@ const X5 = 8, J1 = 8, i5 = {
6209
6168
  size: C = "medium"
6210
6169
  }, p) => {
6211
6170
  const u = q4[C], m = $t({ disabled: a, error: o, open: e });
6212
- return s && !a ? /* @__PURE__ */ w(
6171
+ return s && !a ? /* @__PURE__ */ v(
6213
6172
  "div",
6214
6173
  {
6215
6174
  ref: p,
@@ -6261,7 +6220,7 @@ const X5 = 8, J1 = 8, i5 = {
6261
6220
  ) })
6262
6221
  ]
6263
6222
  }
6264
- ) : /* @__PURE__ */ w(
6223
+ ) : /* @__PURE__ */ v(
6265
6224
  "button",
6266
6225
  {
6267
6226
  ref: p,
@@ -6281,7 +6240,7 @@ const X5 = 8, J1 = 8, i5 = {
6281
6240
  disabled:cursor-not-allowed
6282
6241
  `,
6283
6242
  children: [
6284
- /* @__PURE__ */ l("div", { className: "text-left flex-1 min-w-0 flex items-center gap-2", children: r ? /* @__PURE__ */ w(w1, { children: [
6243
+ /* @__PURE__ */ l("div", { className: "text-left flex-1 min-w-0 flex items-center gap-2", children: r ? /* @__PURE__ */ v(w1, { children: [
6285
6244
  r.icon && /* @__PURE__ */ l("span", { className: "flex items-center justify-center shrink-0", children: r.icon }),
6286
6245
  /* @__PURE__ */ l(
6287
6246
  Q1,
@@ -6292,7 +6251,7 @@ const X5 = 8, J1 = 8, i5 = {
6292
6251
  children: r.triggerLabel ?? r.label
6293
6252
  }
6294
6253
  ),
6295
- r.subtitle && /* @__PURE__ */ w(w1, { children: [
6254
+ r.subtitle && /* @__PURE__ */ v(w1, { children: [
6296
6255
  /* @__PURE__ */ l(Q1, { size: "small", color: "dimmed", className: "mx-2", children: "|" }),
6297
6256
  /* @__PURE__ */ l(Q1, { size: "small", color: "dimmed", children: r.subtitle })
6298
6257
  ] })
@@ -6343,8 +6302,8 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
6343
6302
  transition: "background-color 120ms ease",
6344
6303
  background: n
6345
6304
  },
6346
- children: /* @__PURE__ */ w("div", { style: { flex: 1, display: "flex", alignItems: "center", gap: 12 }, children: [
6347
- /* @__PURE__ */ l("div", { style: { flex: 1 }, children: /* @__PURE__ */ w("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
6305
+ children: /* @__PURE__ */ v("div", { style: { flex: 1, display: "flex", alignItems: "center", gap: 12 }, children: [
6306
+ /* @__PURE__ */ l("div", { style: { flex: 1 }, children: /* @__PURE__ */ v("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
6348
6307
  e.icon && /* @__PURE__ */ l(
6349
6308
  "span",
6350
6309
  {
@@ -6373,7 +6332,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
6373
6332
  children: e.label
6374
6333
  }
6375
6334
  ),
6376
- e.subtitle && /* @__PURE__ */ w(w1, { children: [
6335
+ e.subtitle && /* @__PURE__ */ v(w1, { children: [
6377
6336
  /* @__PURE__ */ l(
6378
6337
  "span",
6379
6338
  {
@@ -6416,7 +6375,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
6416
6375
  overflow: "hidden",
6417
6376
  ...o
6418
6377
  },
6419
- children: a ? /* @__PURE__ */ w(
6378
+ children: a ? /* @__PURE__ */ v(
6420
6379
  "div",
6421
6380
  {
6422
6381
  style: {
@@ -6448,7 +6407,7 @@ const J4 = ({ item: e, selected: t, onItemSelected: r }) => {
6448
6407
  },
6449
6408
  children: e.map((s, i) => {
6450
6409
  const d = e[i - 1], h = !!s.group && (!d || d.group !== s.group);
6451
- return /* @__PURE__ */ w(P1.Fragment, { children: [
6410
+ return /* @__PURE__ */ v(P1.Fragment, { children: [
6452
6411
  h && /* @__PURE__ */ l(
6453
6412
  "div",
6454
6413
  {
@@ -6496,58 +6455,58 @@ const sa = ({
6496
6455
  helperText: b,
6497
6456
  placeholder: x,
6498
6457
  search: A = !1,
6499
- size: v = "medium"
6458
+ size: w = "medium"
6500
6459
  }) => {
6501
- const [y, F] = H(!1), [M, Q] = H(
6502
- e.find((R) => R.id === r)
6460
+ const [y, S] = H(!1), [V, D] = H(
6461
+ e.find((K) => K.id === r)
6503
6462
  );
6504
6463
  u1(() => {
6505
- const R = e.find((G) => G.id === r);
6506
- Q((G) => (G == null ? void 0 : G.id) === (R == null ? void 0 : R.id) ? G : R);
6464
+ const K = e.find((G) => G.id === r);
6465
+ D((G) => (G == null ? void 0 : G.id) === (K == null ? void 0 : K.id) ? G : K);
6507
6466
  }, [r, e]);
6508
- const [N, I] = H(""), S = U(null), E = U(null), Z = U(null), [L, a1] = H(null), $ = B1(() => {
6509
- var s1, B;
6510
- const R = E.current;
6511
- if (!R) return;
6512
- const G = R.getBoundingClientRect(), p1 = ((s1 = Z.current) == null ? void 0 : s1.offsetWidth) || 180, k = ((B = Z.current) == null ? void 0 : B.offsetHeight) ?? 0, D = window.innerWidth - J1 * 2;
6467
+ const [I, N] = H(""), Z = U(null), M = U(null), F = U(null), [L, a1] = H(null), $ = B1(() => {
6468
+ var s1, E;
6469
+ const K = M.current;
6470
+ if (!K) return;
6471
+ const G = K.getBoundingClientRect(), p1 = ((s1 = F.current) == null ? void 0 : s1.offsetWidth) || 180, k = ((E = F.current) == null ? void 0 : E.offsetHeight) ?? 0, Q = window.innerWidth - J1 * 2;
6513
6472
  let T, P;
6514
- if (v === "small") {
6515
- const K = Math.min(p1, D), q = G.right - K, J = window.innerWidth - K - J1;
6516
- T = Math.max(J1, Math.min(q, J)), P = K;
6473
+ if (w === "small") {
6474
+ const R = Math.min(p1, Q), q = G.right - R, J = window.innerWidth - R - J1;
6475
+ T = Math.max(J1, Math.min(q, J)), P = R;
6517
6476
  } else {
6518
- P = Math.min(G.width, D);
6519
- const K = window.innerWidth - P - J1;
6520
- T = Math.max(J1, Math.min(G.left, K));
6477
+ P = Math.min(G.width, Q);
6478
+ const R = window.innerWidth - P - J1;
6479
+ T = Math.max(J1, Math.min(G.left, R));
6521
6480
  }
6522
6481
  const t1 = window.innerHeight - G.bottom, _ = k > 0 && t1 < k + J1, c1 = _ ? G.top - k - X5 : G.bottom + X5;
6523
6482
  a1({ top: c1, left: T, width: P, openUp: _ });
6524
- }, [v]);
6483
+ }, [w]);
6525
6484
  u1(() => {
6526
6485
  if (!y) {
6527
6486
  a1(null);
6528
6487
  return;
6529
6488
  }
6530
6489
  $();
6531
- const R = (k) => {
6532
- const D = k.composedPath(), T = S.current, P = Z.current, t1 = !!T && D.includes(T), _ = !!P && D.includes(P);
6533
- !t1 && !_ && (F(!1), A && I(""));
6490
+ const K = (k) => {
6491
+ const Q = k.composedPath(), T = Z.current, P = F.current, t1 = !!T && Q.includes(T), _ = !!P && Q.includes(P);
6492
+ !t1 && !_ && (S(!1), A && N(""));
6534
6493
  }, G = (k) => {
6535
- k.key === "Escape" && (F(!1), A && I(""));
6494
+ k.key === "Escape" && (S(!1), A && N(""));
6536
6495
  }, p1 = () => $();
6537
- return document.addEventListener("mousedown", R), document.addEventListener("keydown", G), window.addEventListener("scroll", p1, !0), window.addEventListener("resize", p1), () => {
6538
- document.removeEventListener("mousedown", R), document.removeEventListener("keydown", G), window.removeEventListener("scroll", p1, !0), window.removeEventListener("resize", p1);
6496
+ return document.addEventListener("mousedown", K), document.addEventListener("keydown", G), window.addEventListener("scroll", p1, !0), window.addEventListener("resize", p1), () => {
6497
+ document.removeEventListener("mousedown", K), document.removeEventListener("keydown", G), window.removeEventListener("scroll", p1, !0), window.removeEventListener("resize", p1);
6539
6498
  };
6540
6499
  }, [y, A, $]), oe(() => {
6541
- y && Z.current && $();
6500
+ y && F.current && $();
6542
6501
  }, [y, $]);
6543
- const f1 = (R) => {
6544
- Q(R), F(!1), A && I(""), t == null || t(R == null ? void 0 : R.id);
6545
- }, o1 = (R, G) => {
6546
- const p1 = G.toLowerCase(), k = R.label.toLowerCase().includes(p1), D = R.subtitle ? R.subtitle.toLowerCase().includes(p1) : !1, T = R.rightSideText ? R.rightSideText.toLowerCase().includes(p1) : !1;
6547
- return k || D || T;
6502
+ const f1 = (K) => {
6503
+ D(K), S(!1), A && N(""), t == null || t(K == null ? void 0 : K.id);
6504
+ }, o1 = (K, G) => {
6505
+ const p1 = G.toLowerCase(), k = K.label.toLowerCase().includes(p1), Q = K.subtitle ? K.subtitle.toLowerCase().includes(p1) : !1, T = K.rightSideText ? K.rightSideText.toLowerCase().includes(p1) : !1;
6506
+ return k || Q || T;
6548
6507
  };
6549
- return /* @__PURE__ */ w(
6550
- Re,
6508
+ return /* @__PURE__ */ v(
6509
+ Ke,
6551
6510
  {
6552
6511
  label: n,
6553
6512
  hint: s,
@@ -6560,49 +6519,49 @@ const sa = ({
6560
6519
  loadingComponent: /* @__PURE__ */ l(
6561
6520
  Z5,
6562
6521
  {
6563
- heightClass: i5[v],
6522
+ heightClass: i5[w],
6564
6523
  helperText: !!b,
6565
6524
  helperTextMarginTop: !0
6566
6525
  }
6567
6526
  ),
6568
6527
  children: [
6569
- /* @__PURE__ */ w("div", { ref: S, className: "relative w-full", children: [
6528
+ /* @__PURE__ */ v("div", { ref: Z, className: "relative w-full", children: [
6570
6529
  /* @__PURE__ */ l(
6571
6530
  _t,
6572
6531
  {
6573
- ref: E,
6532
+ ref: M,
6574
6533
  isOpen: y,
6575
- onClick: () => !a && F(!y),
6576
- selectedItem: M,
6534
+ onClick: () => !a && S(!y),
6535
+ selectedItem: V,
6577
6536
  disabled: a,
6578
6537
  error: o,
6579
6538
  placeholder: x,
6580
6539
  search: A,
6581
- searchQuery: N,
6582
- onSearchChange: I,
6583
- onFocusOpen: () => F(!0),
6584
- size: v
6540
+ searchQuery: I,
6541
+ onSearchChange: N,
6542
+ onFocusOpen: () => S(!0),
6543
+ size: w
6585
6544
  }
6586
6545
  ),
6587
6546
  y && le(
6588
6547
  /* @__PURE__ */ l(
6589
6548
  e3,
6590
6549
  {
6591
- ref: Z,
6550
+ ref: F,
6592
6551
  style: {
6593
6552
  position: "fixed",
6594
6553
  top: (L == null ? void 0 : L.top) ?? 0,
6595
6554
  left: (L == null ? void 0 : L.left) ?? 0,
6596
- width: v === "small" ? "auto" : L == null ? void 0 : L.width,
6597
- maxWidth: v === "small" ? `calc(100vw - ${J1 * 2}px)` : void 0,
6555
+ width: w === "small" ? "auto" : L == null ? void 0 : L.width,
6556
+ maxWidth: w === "small" ? `calc(100vw - ${J1 * 2}px)` : void 0,
6598
6557
  // Hidden on first paint until measured (see the layout effect).
6599
6558
  visibility: L ? "visible" : "hidden",
6600
6559
  opacity: L ? 1 : 0,
6601
6560
  zIndex: 2147483646
6602
6561
  },
6603
- items: A && N ? e.filter((R) => o1(R, N)) : e,
6562
+ items: A && I ? e.filter((K) => o1(K, I)) : e,
6604
6563
  onItemSelected: f1,
6605
- selectedItem: M,
6564
+ selectedItem: V,
6606
6565
  menuLoading: p
6607
6566
  }
6608
6567
  ),
@@ -6624,24 +6583,24 @@ const sa = ({
6624
6583
  className: i = "",
6625
6584
  style: d
6626
6585
  }) => {
6627
- const [h, C] = H(!1), p = a === "small" ? "h-8" : "h-10", u = a === "small" ? 15 : 16, m = o === "muted", b = m ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", x = m ? "border-transparent" : "border-[var(--malachite-card-border)]", A = n ? "" : "hover:border-[var(--malachite-text-placeholder)]", v = m ? "text-[var(--malachite-text-secondary)]" : "text-[var(--malachite-text-placeholder)]", y = m ? "placeholder:text-[var(--malachite-text-secondary)]" : "placeholder:text-[var(--malachite-text-placeholder)]", F = m ? "none" : h ? "0px 1px 0px 0px rgba(0, 175, 102, 0.15)" : "0px 1px 1px 0px rgba(0, 0, 0, 0.15)";
6628
- return /* @__PURE__ */ w(
6586
+ const [h, C] = H(!1), p = a === "small" ? "h-8" : "h-10", u = a === "small" ? 15 : 16, m = o === "muted", b = m ? "bg-[var(--malachite-card-border)]" : "bg-[var(--malachite-card-background)]", x = m ? "border-transparent" : "border-[var(--malachite-card-border)]", A = n ? "" : "hover:border-[var(--malachite-text-placeholder)]", w = m ? "text-[var(--malachite-text-secondary)]" : "text-[var(--malachite-text-placeholder)]", y = m ? "placeholder:text-[var(--malachite-text-secondary)]" : "placeholder:text-[var(--malachite-text-placeholder)]", S = m ? "none" : h ? "0px 1px 0px 0px rgba(0, 175, 102, 0.15)" : "0px 1px 1px 0px rgba(0, 0, 0, 0.15)";
6587
+ return /* @__PURE__ */ v(
6629
6588
  "div",
6630
6589
  {
6631
6590
  className: `w-full ${b} border border-solid ${x} ${A} transition-colors rounded-[12px] flex items-center gap-[10px] px-[10px] ${p} ${n ? "opacity-60 cursor-not-allowed" : ""} ${i}`,
6632
6591
  style: {
6633
- boxShadow: F,
6592
+ boxShadow: S,
6634
6593
  borderColor: h ? "var(--malachite-success-border-hover)" : void 0,
6635
6594
  ...d
6636
6595
  },
6637
6596
  children: [
6638
- /* @__PURE__ */ l(d5, { size: u, className: `${v} shrink-0` }),
6597
+ /* @__PURE__ */ l(d5, { size: u, className: `${w} shrink-0` }),
6639
6598
  /* @__PURE__ */ l(
6640
6599
  "input",
6641
6600
  {
6642
6601
  type: "text",
6643
6602
  value: e,
6644
- onChange: (M) => t(M.target.value),
6603
+ onChange: (V) => t(V.target.value),
6645
6604
  onFocus: () => C(!0),
6646
6605
  onBlur: () => C(!1),
6647
6606
  placeholder: r,
@@ -6722,48 +6681,48 @@ const sa = ({
6722
6681
  onRemove: u,
6723
6682
  className: m = ""
6724
6683
  }) => {
6725
- const b = C ? { color: ye(C) } : void 0, x = U(null), A = U(null), [v, y] = H(!1), F = typeof e == "string" || typeof e == "number", M = B1((E) => {
6684
+ const b = C ? { color: ye(C) } : void 0, x = U(null), A = U(null), [w, y] = H(!1), S = typeof e == "string" || typeof e == "number", V = B1((M) => {
6726
6685
  var $;
6727
- if (($ = x.current) == null || $.disconnect(), x.current = null, A.current !== null && (cancelAnimationFrame(A.current), A.current = null), !E || typeof ResizeObserver > "u")
6686
+ if (($ = x.current) == null || $.disconnect(), x.current = null, A.current !== null && (cancelAnimationFrame(A.current), A.current = null), !M || typeof ResizeObserver > "u")
6728
6687
  return;
6729
- const Z = () => {
6730
- A.current = null, E.clientWidth !== 0 && y((f1) => {
6731
- const o1 = E.scrollWidth > E.clientWidth;
6688
+ const F = () => {
6689
+ A.current = null, M.clientWidth !== 0 && y((f1) => {
6690
+ const o1 = M.scrollWidth > M.clientWidth;
6732
6691
  return f1 === o1 ? f1 : o1;
6733
6692
  });
6734
6693
  }, L = () => {
6735
- A.current === null && (A.current = requestAnimationFrame(Z));
6694
+ A.current === null && (A.current = requestAnimationFrame(F));
6736
6695
  };
6737
6696
  L();
6738
6697
  const a1 = new ResizeObserver(L);
6739
- a1.observe(E), x.current = a1;
6740
- }, []), Q = (E) => {
6741
- a && (E.stopPropagation(), E.preventDefault(), a());
6742
- }, N = [
6698
+ a1.observe(M), x.current = a1;
6699
+ }, []), D = (M) => {
6700
+ a && (M.stopPropagation(), M.preventDefault(), a());
6701
+ }, I = [
6743
6702
  U4(s),
6744
6703
  z4(t, i),
6745
6704
  n === "uppercase" ? "uppercase" : "normal-case",
6746
6705
  a ? "cursor-pointer" : `cursor-${p}`,
6747
- F ? "min-w-0 max-w-full" : "",
6706
+ S ? "min-w-0 max-w-full" : "",
6748
6707
  m
6749
- ].filter(Boolean).join(" "), I = $4(t, r, o, i), S = /* @__PURE__ */ w("div", { className: N, onClick: Q, style: I, children: [
6708
+ ].filter(Boolean).join(" "), N = $4(t, r, o, i), Z = /* @__PURE__ */ v("div", { className: I, onClick: D, style: N, children: [
6750
6709
  d && h === "left" && /* @__PURE__ */ l("span", { className: "mr-1 flex items-center", style: b, children: d }),
6751
- F ? /* @__PURE__ */ l("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ l("span", { ref: M, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ l("span", { className: "flex items-center", children: e }),
6710
+ S ? /* @__PURE__ */ l("span", { className: "flex items-center min-w-0", children: /* @__PURE__ */ l("span", { ref: V, className: "block min-w-0 truncate", children: e }, String(e)) }) : /* @__PURE__ */ l("span", { className: "flex items-center", children: e }),
6752
6711
  d && h === "right" && /* @__PURE__ */ l("span", { className: "ml-1 flex items-center", style: b, children: d }),
6753
6712
  u && /* @__PURE__ */ l(
6754
6713
  "button",
6755
6714
  {
6756
6715
  type: "button",
6757
6716
  "aria-label": `Remove ${typeof e == "string" ? e : ""}`,
6758
- onClick: (E) => {
6759
- E.stopPropagation(), u(E);
6717
+ onClick: (M) => {
6718
+ M.stopPropagation(), u(M);
6760
6719
  },
6761
6720
  className: "ml-0.5 flex items-center justify-center shrink-0 border-none bg-transparent text-current cursor-pointer p-0 leading-none opacity-70 hover:opacity-100",
6762
6721
  children: /* @__PURE__ */ l(u2, { size: 10 })
6763
6722
  }
6764
6723
  )
6765
6724
  ] });
6766
- return v ? /* @__PURE__ */ l(U1, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children: S }) : S;
6725
+ return w ? /* @__PURE__ */ l(U1, { text: e, placement: "top", wrapChildren: !1, isShrinkable: !0, children: Z }) : Z;
6767
6726
  }, qe = 8, e8 = 10, t3 = "ArrowDown", r3 = "ArrowUp", a3 = "Enter", t8 = "Backspace", r8 = "Escape", a8 = /* @__PURE__ */ new Set([t3, r3, a3]), o3 = P1.forwardRef(
6768
6727
  ({ triggerRole: e, disabled: t, children: r, ...a }, o) => e !== "button" ? /* @__PURE__ */ l(
6769
6728
  "div",
@@ -6804,36 +6763,36 @@ const ha = ({
6804
6763
  name: b,
6805
6764
  description: x,
6806
6765
  tooltip: A,
6807
- hint: v,
6766
+ hint: w,
6808
6767
  required: y = !1,
6809
- formControl: F,
6810
- chips: M = !1,
6811
- chipsRemovable: Q = !0,
6812
- chipsMax: N = "auto",
6813
- inlineSearch: I = !1,
6814
- className: S = "",
6815
- style: E
6768
+ formControl: S,
6769
+ chips: V = !1,
6770
+ chipsRemovable: D = !0,
6771
+ chipsMax: I = "auto",
6772
+ inlineSearch: N = !1,
6773
+ className: Z = "",
6774
+ style: M
6816
6775
  }) => {
6817
- const Z = d2(), L = `${Z}-listbox`, a1 = (V) => `${Z}-option-${V}`, [$, f1] = H(() => r ?? []), o1 = t !== void 0, R = o1 ? t : $, [G, p1] = H(!1), [k, D] = H(
6776
+ const F = d2(), L = `${F}-listbox`, a1 = (B) => `${F}-option-${B}`, [$, f1] = H(() => r ?? []), o1 = t !== void 0, K = o1 ? t : $, [G, p1] = H(!1), [k, Q] = H(
6818
6777
  null
6819
- ), [T, P] = H(""), [t1, _] = H(-1), c1 = U(null), s1 = U(null), B = U(null), K = U(null), q = U([]), J = W1(
6820
- () => e.filter((V) => R.includes(V.value)),
6821
- [e, R]
6822
- ), j = typeof N == "number" ? N : void 0, y1 = W1(() => {
6823
- const V = T.trim().toLowerCase();
6824
- return V ? e.filter((W) => (W.searchText ?? (typeof W.label == "string" ? W.label : "")).toLowerCase().includes(V)) : e;
6825
- }, [e, T]), Z1 = U(!1), Y1 = B1((V) => {
6826
- Z1.current = !0, P(V);
6778
+ ), [T, P] = H(""), [t1, _] = H(-1), c1 = U(null), s1 = U(null), E = U(null), R = U(null), q = U([]), J = W1(
6779
+ () => e.filter((B) => K.includes(B.value)),
6780
+ [e, K]
6781
+ ), j = typeof I == "number" ? I : void 0, y1 = W1(() => {
6782
+ const B = T.trim().toLowerCase();
6783
+ return B ? e.filter((W) => (W.searchText ?? (typeof W.label == "string" ? W.label : "")).toLowerCase().includes(B)) : e;
6784
+ }, [e, T]), Z1 = U(!1), Y1 = B1((B) => {
6785
+ Z1.current = !0, P(B);
6827
6786
  }, []);
6828
6787
  u1(() => {
6829
6788
  Z1.current && (_(-1), Z1.current = !1);
6830
6789
  }, [T]);
6831
- const se = I ? !1 : s ?? e.length > e8, d1 = B1(() => {
6790
+ const se = N ? !1 : s ?? e.length > e8, d1 = B1(() => {
6832
6791
  var H1, de;
6833
- const V = c1.current;
6834
- if (!V) return;
6835
- const W = V.getBoundingClientRect(), h1 = ((H1 = B.current) == null ? void 0 : H1.offsetHeight) ?? 0, F1 = ((de = B.current) == null ? void 0 : de.offsetWidth) ?? W.width, A1 = W.left, g1 = window.innerWidth - F1 - qe, b1 = Math.max(qe, Math.min(A1, g1)), l1 = window.innerHeight - W.bottom, v1 = h1 > 0 && l1 < h1 + qe ? W.top - h1 - 4 : W.bottom + 4;
6836
- D({ top: v1, left: b1, width: Math.max(W.width, h ?? 0) });
6792
+ const B = c1.current;
6793
+ if (!B) return;
6794
+ const W = B.getBoundingClientRect(), h1 = ((H1 = E.current) == null ? void 0 : H1.offsetHeight) ?? 0, F1 = ((de = E.current) == null ? void 0 : de.offsetWidth) ?? W.width, A1 = W.left, g1 = window.innerWidth - F1 - qe, b1 = Math.max(qe, Math.min(A1, g1)), l1 = window.innerHeight - W.bottom, v1 = h1 > 0 && l1 < h1 + qe ? W.top - h1 - 4 : W.bottom + 4;
6795
+ Q({ top: v1, left: b1, width: Math.max(W.width, h ?? 0) });
6837
6796
  }, [h]);
6838
6797
  u1(() => {
6839
6798
  var F1;
@@ -6841,51 +6800,51 @@ const ha = ({
6841
6800
  P(""), _(-1);
6842
6801
  return;
6843
6802
  }
6844
- d1(), I && ((F1 = s1.current) == null || F1.focus());
6845
- const V = () => d1(), W = (A1) => {
6846
- const g1 = A1.composedPath(), b1 = c1.current, l1 = B.current;
6803
+ d1(), N && ((F1 = s1.current) == null || F1.focus());
6804
+ const B = () => d1(), W = (A1) => {
6805
+ const g1 = A1.composedPath(), b1 = c1.current, l1 = E.current;
6847
6806
  (!b1 || !g1.includes(b1)) && (!l1 || !g1.includes(l1)) && p1(!1);
6848
6807
  }, h1 = (A1) => {
6849
6808
  A1.key === r8 && p1(!1);
6850
6809
  };
6851
- return window.addEventListener("scroll", V, !0), window.addEventListener("resize", V), document.addEventListener("mousedown", W), document.addEventListener("keydown", h1), () => {
6852
- window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V), document.removeEventListener("mousedown", W), document.removeEventListener("keydown", h1);
6810
+ return window.addEventListener("scroll", B, !0), window.addEventListener("resize", B), document.addEventListener("mousedown", W), document.addEventListener("keydown", h1), () => {
6811
+ window.removeEventListener("scroll", B, !0), window.removeEventListener("resize", B), document.removeEventListener("mousedown", W), document.removeEventListener("keydown", h1);
6853
6812
  };
6854
- }, [G, d1, I]), oe(() => {
6855
- G && B.current && d1();
6813
+ }, [G, d1, N]), oe(() => {
6814
+ G && E.current && d1();
6856
6815
  }, [G, d1]);
6857
- const R1 = B1(
6858
- (V) => {
6859
- o1 || f1(V), a == null || a(V);
6816
+ const K1 = B1(
6817
+ (B) => {
6818
+ o1 || f1(B), a == null || a(B);
6860
6819
  },
6861
6820
  [o1, a]
6862
6821
  ), ke = B1(
6863
- (V) => e.some((W) => W.value === V && W.disabled),
6822
+ (B) => e.some((W) => W.value === B && W.disabled),
6864
6823
  [e]
6865
6824
  ), Te = B1(
6866
- (V) => {
6867
- ke(V) || (R.includes(V) ? R1(R.filter((W) => W !== V)) : R1([...R, V]));
6825
+ (B) => {
6826
+ ke(B) || (K.includes(B) ? K1(K.filter((W) => W !== B)) : K1([...K, B]));
6868
6827
  },
6869
- [R, R1, ke]
6828
+ [K, K1, ke]
6870
6829
  ), Ee = W1(
6871
- () => new Set(e.filter((V) => V.disabled).map((V) => V.value)),
6830
+ () => new Set(e.filter((B) => B.disabled).map((B) => B.value)),
6872
6831
  [e]
6873
6832
  ), m3 = B1(
6874
- (V) => {
6875
- V.stopPropagation();
6876
- const W = R.filter((h1) => Ee.has(h1));
6877
- R1(W);
6833
+ (B) => {
6834
+ B.stopPropagation();
6835
+ const W = K.filter((h1) => Ee.has(h1));
6836
+ K1(W);
6878
6837
  },
6879
- [R1, R, Ee]
6838
+ [K1, K, Ee]
6880
6839
  ), D5 = B1(
6881
- (V, W) => {
6882
- W.stopPropagation(), !ke(V) && R1(R.filter((h1) => h1 !== V));
6840
+ (B, W) => {
6841
+ W.stopPropagation(), !ke(B) && K1(K.filter((h1) => h1 !== B));
6883
6842
  },
6884
- [R, R1, ke]
6843
+ [K, K1, ke]
6885
6844
  ), Be = B1(
6886
- (V) => {
6887
- if (!a8.has(V.key)) return;
6888
- if (V.preventDefault(), V.stopPropagation(), !G) {
6845
+ (B) => {
6846
+ if (!a8.has(B.key)) return;
6847
+ if (B.preventDefault(), B.stopPropagation(), !G) {
6889
6848
  p1(!0);
6890
6849
  return;
6891
6850
  }
@@ -6893,7 +6852,7 @@ const ha = ({
6893
6852
  if (W === 0) return;
6894
6853
  const h1 = (g1) => {
6895
6854
  requestAnimationFrame(() => {
6896
- const b1 = q.current[g1], l1 = K.current;
6855
+ const b1 = q.current[g1], l1 = R.current;
6897
6856
  if (!b1 || !l1) return;
6898
6857
  const v1 = b1.offsetTop, H1 = v1 + b1.offsetHeight, de = l1.scrollTop, A3 = de + l1.clientHeight;
6899
6858
  H1 > A3 ? l1.scrollTo({
@@ -6921,7 +6880,7 @@ const ha = ({
6921
6880
  return (v1 = s1.current) == null ? void 0 : v1.focus();
6922
6881
  });
6923
6882
  };
6924
- switch (V.key) {
6883
+ switch (B.key) {
6925
6884
  case t3:
6926
6885
  F1(1);
6927
6886
  break;
@@ -6935,39 +6894,39 @@ const ha = ({
6935
6894
  },
6936
6895
  [G, y1, t1, Te, e]
6937
6896
  ), Q5 = B1(
6938
- (V) => {
6939
- if (V.key === t8 && T === "" && R.length > 0) {
6940
- V.preventDefault(), R1(R.slice(0, -1)), requestAnimationFrame(() => {
6897
+ (B) => {
6898
+ if (B.key === t8 && T === "" && K.length > 0) {
6899
+ B.preventDefault(), K1(K.slice(0, -1)), requestAnimationFrame(() => {
6941
6900
  var W;
6942
6901
  return (W = s1.current) == null ? void 0 : W.focus();
6943
6902
  });
6944
6903
  return;
6945
6904
  }
6946
- Be(V);
6905
+ Be(B);
6947
6906
  },
6948
- [Be, T, R, R1]
6907
+ [Be, T, K, K1]
6949
6908
  ), b3 = i === "small" ? "h-8" : "h-10", f3 = typeof d == "number" ? `${d}px` : d, P5 = J.length > 0 && !C && !u, w3 = $t({
6950
6909
  disabled: C,
6951
6910
  error: p,
6952
6911
  open: G,
6953
6912
  loading: u,
6954
6913
  hasSelection: J.length > 0
6955
- }), Ye = W1(() => I ? /* @__PURE__ */ l(
6914
+ }), Ye = W1(() => N ? /* @__PURE__ */ l(
6956
6915
  "input",
6957
6916
  {
6958
6917
  ref: s1,
6959
6918
  type: "text",
6960
6919
  value: T,
6961
- onChange: (V) => Y1(V.target.value),
6920
+ onChange: (B) => Y1(B.target.value),
6962
6921
  onKeyDown: Q5,
6963
6922
  placeholder: J.length === 0 ? o : "",
6964
6923
  className: "flex-1 w-full min-w-[40px] border-none outline-none bg-transparent text-[13px] p-0 text-[var(--malachite-text-primary,rgb(10,10,10))]",
6965
- onMouseDown: (V) => {
6966
- V.preventDefault();
6924
+ onMouseDown: (B) => {
6925
+ B.preventDefault();
6967
6926
  }
6968
6927
  }
6969
6928
  ) : null, [
6970
- I,
6929
+ N,
6971
6930
  T,
6972
6931
  Y1,
6973
6932
  Q5,
@@ -6976,15 +6935,15 @@ const ha = ({
6976
6935
  ]), v3 = W1(() => {
6977
6936
  if (n && J.length > 0)
6978
6937
  return n(J);
6979
- if (M && J.length > 0) {
6980
- const V = j != null ? J.slice(0, j) : J, W = J.length - V.length;
6981
- return /* @__PURE__ */ w(
6938
+ if (V && J.length > 0) {
6939
+ const B = j != null ? J.slice(0, j) : J, W = J.length - B.length;
6940
+ return /* @__PURE__ */ v(
6982
6941
  "div",
6983
6942
  {
6984
6943
  className: "flex items-center gap-1 overflow-hidden min-w-0 flex-1",
6985
6944
  style: { flexWrap: "nowrap" },
6986
6945
  children: [
6987
- V.map((h1) => {
6946
+ B.map((h1) => {
6988
6947
  const F1 = Ee.has(h1.value);
6989
6948
  return /* @__PURE__ */ l(
6990
6949
  _4,
@@ -6992,13 +6951,13 @@ const ha = ({
6992
6951
  value: h1.label,
6993
6952
  type: "default",
6994
6953
  textTransform: "none",
6995
- onRemove: Q && !C && !F1 ? (A1) => D5(h1.value, A1) : void 0,
6954
+ onRemove: D && !C && !F1 ? (A1) => D5(h1.value, A1) : void 0,
6996
6955
  className: "shrink-0"
6997
6956
  },
6998
6957
  h1.value
6999
6958
  );
7000
6959
  }),
7001
- W > 0 && /* @__PURE__ */ w("span", { className: "shrink-0 text-xs text-[var(--malachite-text-secondary,rgb(123,123,123))]", children: [
6960
+ W > 0 && /* @__PURE__ */ v("span", { className: "shrink-0 text-xs text-[var(--malachite-text-secondary,rgb(123,123,123))]", children: [
7002
6961
  "+",
7003
6962
  W
7004
6963
  ] }),
@@ -7007,16 +6966,16 @@ const ha = ({
7007
6966
  }
7008
6967
  );
7009
6968
  }
7010
- return I && J.length === 0 ? Ye : J.length === 0 ? /* @__PURE__ */ l("span", { className: "text-[var(--malachite-text-placeholder)]", children: o }) : J.length === 1 ? /* @__PURE__ */ l("span", { children: J[0].label }) : /* @__PURE__ */ l("span", { children: `${J.length} selected` });
6969
+ return N && J.length === 0 ? Ye : J.length === 0 ? /* @__PURE__ */ l("span", { className: "text-[var(--malachite-text-placeholder)]", children: o }) : J.length === 1 ? /* @__PURE__ */ l("span", { children: J[0].label }) : /* @__PURE__ */ l("span", { children: `${J.length} selected` });
7011
6970
  }, [
7012
6971
  J,
7013
6972
  n,
7014
- M,
6973
+ V,
7015
6974
  j,
7016
- Q,
6975
+ D,
7017
6976
  C,
7018
6977
  D5,
7019
- I,
6978
+ N,
7020
6979
  Ye,
7021
6980
  o,
7022
6981
  Ee
@@ -7038,37 +6997,37 @@ const ha = ({
7038
6997
  maxHeight: 360,
7039
6998
  visibility: k ? "visible" : "hidden",
7040
6999
  opacity: k ? 1 : 0
7041
- }, y3 = !!(x || A || v || b || F || y), R5 = /* @__PURE__ */ w(w1, { children: [
7042
- /* @__PURE__ */ w("div", { className: "relative", style: { width: f3 }, children: [
7043
- /* @__PURE__ */ w(
7000
+ }, y3 = !!(x || A || w || b || S || y), K5 = /* @__PURE__ */ v(w1, { children: [
7001
+ /* @__PURE__ */ v("div", { className: "relative", style: { width: f3 }, children: [
7002
+ /* @__PURE__ */ v(
7044
7003
  o3,
7045
7004
  {
7046
7005
  ref: c1,
7047
- triggerRole: I ? "combobox" : M && Q ? "group" : "button",
7006
+ triggerRole: N ? "combobox" : V && D ? "group" : "button",
7048
7007
  disabled: C || u,
7049
7008
  [n5]: "",
7050
7009
  "aria-haspopup": "listbox",
7051
7010
  "aria-expanded": G,
7052
7011
  "aria-controls": G ? L : void 0,
7053
- "aria-activedescendant": I && G && t1 >= 0 ? a1(t1) : void 0,
7012
+ "aria-activedescendant": N && G && t1 >= 0 ? a1(t1) : void 0,
7054
7013
  "aria-label": m,
7055
7014
  "aria-invalid": p || void 0,
7056
7015
  "aria-busy": u || void 0,
7057
7016
  onClick: () => {
7058
- C || u || p1((V) => !V);
7017
+ C || u || p1((B) => !B);
7059
7018
  },
7060
7019
  onKeyDown: Be,
7061
7020
  style: {
7062
7021
  transition: "border-color 0.15s ease, box-shadow 0.15s ease",
7063
7022
  ...w3,
7064
- ...E
7023
+ ...M
7065
7024
  },
7066
- className: `w-full ${b3} border border-solid rounded-[12px] flex items-center gap-[8px] px-[12px] text-[13px] font-normal text-[var(--malachite-text-primary)] ${C || u ? "cursor-not-allowed" : "cursor-pointer"} ${S}`,
7025
+ className: `w-full ${b3} border border-solid rounded-[12px] flex items-center gap-[8px] px-[12px] text-[13px] font-normal text-[var(--malachite-text-primary)] ${C || u ? "cursor-not-allowed" : "cursor-pointer"} ${Z}`,
7067
7026
  children: [
7068
7027
  /* @__PURE__ */ l(
7069
7028
  "span",
7070
7029
  {
7071
- className: `flex-1 min-w-0 text-left ${I ? "flex" : "truncate"} ${P5 ? "pr-[18px]" : ""}`,
7030
+ className: `flex-1 min-w-0 text-left ${N ? "flex" : "truncate"} ${P5 ? "pr-[18px]" : ""}`,
7072
7031
  children: v3
7073
7032
  }
7074
7033
  ),
@@ -7099,16 +7058,16 @@ const ha = ({
7099
7058
  )
7100
7059
  ] }),
7101
7060
  G && le(
7102
- /* @__PURE__ */ w(
7061
+ /* @__PURE__ */ v(
7103
7062
  "div",
7104
7063
  {
7105
- ref: B,
7064
+ ref: E,
7106
7065
  id: L,
7107
7066
  role: "listbox",
7108
7067
  "aria-multiselectable": "true",
7109
7068
  style: x3,
7110
7069
  children: [
7111
- se && /* @__PURE__ */ w(
7070
+ se && /* @__PURE__ */ v(
7112
7071
  "div",
7113
7072
  {
7114
7073
  style: {
@@ -7137,7 +7096,7 @@ const ha = ({
7137
7096
  {
7138
7097
  type: "text",
7139
7098
  value: T,
7140
- onChange: (V) => Y1(V.target.value),
7099
+ onChange: (B) => Y1(B.target.value),
7141
7100
  onKeyDown: Be,
7142
7101
  placeholder: "Search",
7143
7102
  "aria-label": "Search options",
@@ -7171,7 +7130,7 @@ const ha = ({
7171
7130
  /* @__PURE__ */ l(
7172
7131
  "div",
7173
7132
  {
7174
- ref: K,
7133
+ ref: R,
7175
7134
  style: {
7176
7135
  display: "flex",
7177
7136
  flexDirection: "column",
@@ -7193,9 +7152,9 @@ const ha = ({
7193
7152
  },
7194
7153
  children: "No results"
7195
7154
  }
7196
- ) : y1.map((V, W) => {
7197
- const h1 = R.includes(V.value), F1 = W === t1, A1 = !!V.disabled;
7198
- return /* @__PURE__ */ w(
7155
+ ) : y1.map((B, W) => {
7156
+ const h1 = K.includes(B.value), F1 = W === t1, A1 = !!B.disabled;
7157
+ return /* @__PURE__ */ v(
7199
7158
  "button",
7200
7159
  {
7201
7160
  id: a1(W),
@@ -7208,7 +7167,7 @@ const ha = ({
7208
7167
  "aria-disabled": A1 || void 0,
7209
7168
  onClick: () => {
7210
7169
  var g1;
7211
- Te(V.value), P(""), (g1 = s1.current) == null || g1.focus();
7170
+ Te(B.value), P(""), (g1 = s1.current) == null || g1.focus();
7212
7171
  },
7213
7172
  onMouseEnter: () => _(W),
7214
7173
  onMouseLeave: () => {
@@ -7230,8 +7189,8 @@ const ha = ({
7230
7189
  },
7231
7190
  children: [
7232
7191
  (() => {
7233
- const g1 = V.description ? V.descriptionMode ?? "icon" : null, b1 = g1 === "subtitle", l1 = /* @__PURE__ */ l("span", { style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: V.label });
7234
- return /* @__PURE__ */ w(
7192
+ const g1 = B.description ? B.descriptionMode ?? "icon" : null, b1 = g1 === "subtitle", l1 = /* @__PURE__ */ l("span", { style: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: B.label });
7193
+ return /* @__PURE__ */ v(
7235
7194
  "span",
7236
7195
  {
7237
7196
  style: {
@@ -7246,7 +7205,7 @@ const ha = ({
7246
7205
  g1 === "hover" ? /* @__PURE__ */ l(
7247
7206
  U1,
7248
7207
  {
7249
- text: V.description,
7208
+ text: B.description,
7250
7209
  delay: 0.6,
7251
7210
  maxWidth: 420,
7252
7211
  children: l1
@@ -7255,7 +7214,7 @@ const ha = ({
7255
7214
  g1 === "icon" && /* @__PURE__ */ l(
7256
7215
  U1,
7257
7216
  {
7258
- text: V.description,
7217
+ text: B.description,
7259
7218
  delay: 0.6,
7260
7219
  maxWidth: 420,
7261
7220
  children: /* @__PURE__ */ l(
@@ -7270,7 +7229,7 @@ const ha = ({
7270
7229
  },
7271
7230
  "aria-label": "More information",
7272
7231
  onClick: (v1) => v1.stopPropagation(),
7273
- children: V.descriptionIcon ?? /* @__PURE__ */ l(p2, { size: 14 })
7232
+ children: B.descriptionIcon ?? /* @__PURE__ */ l(p2, { size: 14 })
7274
7233
  }
7275
7234
  )
7276
7235
  }
@@ -7283,24 +7242,24 @@ const ha = ({
7283
7242
  color: "var(--malachite-text-secondary, rgb(123, 123, 123))",
7284
7243
  whiteSpace: "normal",
7285
7244
  lineHeight: 1.3,
7286
- ...V.descriptionMaxLines ? {
7245
+ ...B.descriptionMaxLines ? {
7287
7246
  display: "-webkit-box",
7288
- WebkitLineClamp: V.descriptionMaxLines,
7247
+ WebkitLineClamp: B.descriptionMaxLines,
7289
7248
  WebkitBoxOrient: "vertical",
7290
7249
  overflow: "hidden"
7291
7250
  } : {}
7292
7251
  },
7293
- children: V.description
7252
+ children: B.description
7294
7253
  }
7295
7254
  )
7296
7255
  ]
7297
7256
  }
7298
7257
  );
7299
7258
  })(),
7300
- V.badge && /* @__PURE__ */ l("span", { style: { marginLeft: "auto", flexShrink: 0, paddingLeft: 8 }, children: V.badge })
7259
+ B.badge && /* @__PURE__ */ l("span", { style: { marginLeft: "auto", flexShrink: 0, paddingLeft: 8 }, children: B.badge })
7301
7260
  ]
7302
7261
  },
7303
- V.value
7262
+ B.value
7304
7263
  );
7305
7264
  })
7306
7265
  }
@@ -7312,20 +7271,20 @@ const ha = ({
7312
7271
  )
7313
7272
  ] });
7314
7273
  return y3 ? /* @__PURE__ */ l(
7315
- Re,
7274
+ Ke,
7316
7275
  {
7317
7276
  label: m,
7318
- hint: v,
7277
+ hint: w,
7319
7278
  tooltip: A,
7320
7279
  name: b ?? "",
7321
7280
  required: y,
7322
7281
  loading: u,
7323
- formControl: F,
7282
+ formControl: S,
7324
7283
  description: x,
7325
7284
  loadingComponent: /* @__PURE__ */ l(Z5, { size: "medium" }),
7326
- children: R5
7285
+ children: K5
7327
7286
  }
7328
- ) : R5;
7287
+ ) : K5;
7329
7288
  };
7330
7289
  var o8 = /* @__PURE__ */ ((e) => (e.XSmall = "xsmall", e.Small = "small", e.Medium = "medium", e.Large = "large", e))(o8 || {}), l8 = /* @__PURE__ */ ((e) => (e.Left = "flex-start", e.Right = "flex-end", e.Center = "center", e.SpaceBetween = "space-between", e.SpaceAround = "space-around", e.SpaceEvenly = "space-evenly", e))(l8 || {}), n8 = /* @__PURE__ */ ((e) => (e.Top = "flex-start", e.Bottom = "flex-end", e.Center = "center", e.Normal = "normal", e.Stretch = "stretch", e))(n8 || {}), i8 = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(i8 || {});
7331
7290
  const Ca = ({
@@ -7395,7 +7354,7 @@ const Ca = ({
7395
7354
  }, ua = ({
7396
7355
  fullWidth: e = !1,
7397
7356
  showDocsSupport: t = !1
7398
- }) => /* @__PURE__ */ w(
7357
+ }) => /* @__PURE__ */ v(
7399
7358
  be,
7400
7359
  {
7401
7360
  direction: "horizontal",
@@ -7416,7 +7375,7 @@ const Ca = ({
7416
7375
  }
7417
7376
  }
7418
7377
  ) }),
7419
- t ? /* @__PURE__ */ w(be, { direction: "horizontal", size: 10, children: [
7378
+ t ? /* @__PURE__ */ v(be, { direction: "horizontal", size: 10, children: [
7420
7379
  /* @__PURE__ */ l(
7421
7380
  ee,
7422
7381
  {
@@ -7442,7 +7401,7 @@ const Ca = ({
7442
7401
  children: "Support"
7443
7402
  }
7444
7403
  )
7445
- ] }) : /* @__PURE__ */ w(be, { direction: "horizontal", size: 10, children: [
7404
+ ] }) : /* @__PURE__ */ v(be, { direction: "horizontal", size: 10, children: [
7446
7405
  /* @__PURE__ */ l(
7447
7406
  ee,
7448
7407
  {
@@ -7471,7 +7430,7 @@ const Ca = ({
7471
7430
  ] })
7472
7431
  ]
7473
7432
  }
7474
- ), z5 = "text-[13px] font-medium no-underline text-[var(--malachite-text-placeholder)] hover:text-[var(--malachite-text-secondary)]", pa = ({ links: e, className: t = "" }) => /* @__PURE__ */ l("nav", { className: `flex items-center justify-center gap-[8px] ${t}`, children: e.map((r, a) => /* @__PURE__ */ w(P1.Fragment, { children: [
7433
+ ), z5 = "text-[13px] font-medium no-underline text-[var(--malachite-text-placeholder)] hover:text-[var(--malachite-text-secondary)]", pa = ({ links: e, className: t = "" }) => /* @__PURE__ */ l("nav", { className: `flex items-center justify-center gap-[8px] ${t}`, children: e.map((r, a) => /* @__PURE__ */ v(P1.Fragment, { children: [
7475
7434
  a > 0 && /* @__PURE__ */ l("span", { className: "text-[13px] text-[var(--malachite-card-border)]", children: "•" }),
7476
7435
  r.href ? /* @__PURE__ */ l("a", { href: r.href, onClick: r.onClick, className: z5, children: r.label }) : /* @__PURE__ */ l(
7477
7436
  "button",
@@ -7610,7 +7569,7 @@ const ma = ({
7610
7569
  }) => /* @__PURE__ */ l(
7611
7570
  "div",
7612
7571
  {
7613
- className: `w-full rounded-[14px] ${r === "visible" ? "overflow-visible" : "overflow-hidden"} bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] ${t ? "py-3 px-4" : ""} ${s}`,
7572
+ className: `w-full rounded-[14px] ${r === "clip" ? "overflow-clip" : r === "visible" ? "overflow-visible" : "overflow-hidden"} bg-[var(--malachite-card-background)] border border-solid border-[var(--malachite-card-border)] ${t ? "py-3 px-4" : ""} ${s}`,
7614
7573
  style: { boxShadow: C8, ...i },
7615
7574
  role: a,
7616
7575
  "aria-label": o,
@@ -7619,7 +7578,7 @@ const ma = ({
7619
7578
  }
7620
7579
  );
7621
7580
  p8.Row = u8;
7622
- const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div", { className: `flex items-center gap-[6px] ${r}`, children: [
7581
+ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ v("div", { className: `flex items-center gap-[6px] ${r}`, children: [
7623
7582
  /* @__PURE__ */ l("span", { className: "min-w-[16px] h-[16px] px-[4px] rounded-[6px] flex items-center justify-center text-[12px] font-mono font-semibold bg-[var(--malachite-success-background-glass)] text-[var(--malachite-text-success)]", children: e.toLocaleString() }),
7624
7583
  /* @__PURE__ */ l("span", { className: "text-[13px] font-medium text-[var(--malachite-text-success)]", children: t })
7625
7584
  ] }), fa = ({
@@ -7645,15 +7604,15 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
7645
7604
  }
7646
7605
  const A = () => b(x.offsetHeight);
7647
7606
  A();
7648
- const v = new ResizeObserver(A);
7649
- return v.observe(x), () => v.disconnect();
7650
- }, [s]), /* @__PURE__ */ w(
7607
+ const w = new ResizeObserver(A);
7608
+ return w.observe(x), () => w.disconnect();
7609
+ }, [s]), /* @__PURE__ */ v(
7651
7610
  "div",
7652
7611
  {
7653
7612
  className: `w-full h-screen flex flex-col overflow-hidden bg-[var(--malachite-card-sunken-background)] ${p}`,
7654
7613
  style: h ? { minWidth: `${h}px` } : void 0,
7655
7614
  children: [
7656
- /* @__PURE__ */ w("div", { className: "w-full shrink-0 flex items-center justify-between px-6 pt-4 min-h-[28px]", children: [
7615
+ /* @__PURE__ */ v("div", { className: "w-full shrink-0 flex items-center justify-between px-6 pt-4 min-h-[28px]", children: [
7657
7616
  e ? /* @__PURE__ */ l(
7658
7617
  ne,
7659
7618
  {
@@ -7667,7 +7626,7 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
7667
7626
  className: "w-7 h-7"
7668
7627
  }
7669
7628
  ) : /* @__PURE__ */ l("span", { className: "w-7 h-7" }),
7670
- /* @__PURE__ */ w("div", { className: "flex items-center gap-[16px]", children: [
7629
+ /* @__PURE__ */ v("div", { className: "flex items-center gap-[16px]", children: [
7671
7630
  a ?? /* @__PURE__ */ l("span", {}),
7672
7631
  o ?? /* @__PURE__ */ l("span", { className: "w-7 h-7" })
7673
7632
  ] })
@@ -7680,7 +7639,7 @@ const ba = ({ count: e, label: t, className: r = "" }) => /* @__PURE__ */ w("div
7680
7639
  children: n
7681
7640
  }
7682
7641
  ) }) : null,
7683
- /* @__PURE__ */ w("div", { className: "relative flex-1 min-h-0", children: [
7642
+ /* @__PURE__ */ v("div", { className: "relative flex-1 min-h-0", children: [
7684
7643
  /* @__PURE__ */ l(
7685
7644
  "div",
7686
7645
  {
@@ -7888,7 +7847,7 @@ const k8 = `
7888
7847
  }
7889
7848
  }
7890
7849
  }
7891
- }, [t]), r ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */ w(w1, { children: [
7850
+ }, [t]), r ? (console.log("[ShadowEscape] Portal container ready, rendering children outside Shadow DOM"), /* @__PURE__ */ v(w1, { children: [
7892
7851
  /* @__PURE__ */ l("div", { ref: o, style: { display: "none" } }),
7893
7852
  le(e, r)
7894
7853
  ] })) : (console.log("[ShadowEscape] No portal container yet, rendering marker..."), /* @__PURE__ */ l("div", { ref: o, style: { display: "none" } }));
@@ -9222,7 +9181,7 @@ function Aa() {
9222
9181
  }
9223
9182
  P8();
9224
9183
  let Se = null, o2 = !1;
9225
- const R8 = () => {
9184
+ const K8 = () => {
9226
9185
  if (Se || o2)
9227
9186
  return Se;
9228
9187
  if (o2 = !0, typeof CSSStyleSheet > "u")
@@ -9234,7 +9193,7 @@ const R8 = () => {
9234
9193
  console.error("Failed to construct Tailwind stylesheet:", e);
9235
9194
  }
9236
9195
  return Se;
9237
- }, l2 = "malachite-tailwind-style", K8 = (e, t) => {
9196
+ }, l2 = "malachite-tailwind-style", R8 = (e, t) => {
9238
9197
  if (!("adoptedStyleSheets" in e))
9239
9198
  return !1;
9240
9199
  try {
@@ -9262,8 +9221,8 @@ const R8 = () => {
9262
9221
  }, [o]), u1(() => {
9263
9222
  if (!o)
9264
9223
  return;
9265
- const s = R8();
9266
- if ((!s || !K8(o, s)) && W8(o, n3), l3(), M8(), S8(), t) {
9224
+ const s = K8();
9225
+ if ((!s || !R8(o, s)) && W8(o, n3), l3(), M8(), S8(), t) {
9267
9226
  Q8(o, t);
9268
9227
  return;
9269
9228
  }
@@ -9370,7 +9329,7 @@ const R8 = () => {
9370
9329
  {
9371
9330
  className: `flex items-center justify-center rounded-full ${r}`,
9372
9331
  style: { width: `${t}px`, height: `${t}px`, backgroundColor: G8[e] },
9373
- children: /* @__PURE__ */ w(
9332
+ children: /* @__PURE__ */ v(
9374
9333
  "svg",
9375
9334
  {
9376
9335
  width: o,
@@ -9428,33 +9387,33 @@ const R8 = () => {
9428
9387
  defaultValue: b,
9429
9388
  disabled: x,
9430
9389
  prefixValue: A,
9431
- prefixSecondaryValue: v,
9390
+ prefixSecondaryValue: w,
9432
9391
  ellipsis: y = !1,
9433
- formControl: F,
9434
- buttons: M,
9435
- onCopyClick: Q,
9436
- showCopyButton: N,
9437
- onChange: I,
9438
- onBlur: S,
9439
- helperText: E,
9440
- showPasswordToggle: Z = !0
9392
+ formControl: S,
9393
+ buttons: V,
9394
+ onCopyClick: D,
9395
+ showCopyButton: I,
9396
+ onChange: N,
9397
+ onBlur: Z,
9398
+ helperText: M,
9399
+ showPasswordToggle: F = !0
9441
9400
  }) => {
9442
- const [L, a1] = H(!1), [$, f1] = H(b || ""), [o1, R] = H(!1);
9401
+ const [L, a1] = H(!1), [$, f1] = H(b || ""), [o1, K] = H(!1);
9443
9402
  u1(() => {
9444
9403
  if (o1) {
9445
- const B = setTimeout(() => {
9446
- R(!1);
9404
+ const E = setTimeout(() => {
9405
+ K(!1);
9447
9406
  }, 1e3);
9448
- return () => clearTimeout(B);
9407
+ return () => clearTimeout(E);
9449
9408
  }
9450
9409
  }, [o1]);
9451
- const G = (B) => {
9452
- const K = B.target.value;
9453
- f1(K), I == null || I(K);
9454
- }, p1 = Q ? () => {
9455
- $ && (navigator.clipboard.writeText($), R(!0), Q());
9456
- } : void 0, k = (B) => {
9457
- switch (B) {
9410
+ const G = (E) => {
9411
+ const R = E.target.value;
9412
+ f1(R), N == null || N(R);
9413
+ }, p1 = D ? () => {
9414
+ $ && (navigator.clipboard.writeText($), K(!0), D());
9415
+ } : void 0, k = (E) => {
9416
+ switch (E) {
9458
9417
  case "small":
9459
9418
  return "h-8 py-2 text-sm";
9460
9419
  case "medium":
@@ -9464,13 +9423,13 @@ const R8 = () => {
9464
9423
  default:
9465
9424
  return "h-10 py-[10px] text-[15px] leading-[1.4]";
9466
9425
  }
9467
- }, D = (B, K) => {
9468
- switch (B) {
9426
+ }, Q = (E, R) => {
9427
+ switch (E) {
9469
9428
  case "ghost":
9470
9429
  return {
9471
9430
  wrapper: [
9472
- K ? "border-0 border-b border-solid border-[var(--malachite-destructive-border)]" : "",
9473
- K ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : ""
9431
+ R ? "border-0 border-b border-solid border-[var(--malachite-destructive-border)]" : "",
9432
+ R ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : ""
9474
9433
  ],
9475
9434
  shadow: "shadow-none",
9476
9435
  borderRadius: "rounded-none"
@@ -9480,14 +9439,14 @@ const R8 = () => {
9480
9439
  return {
9481
9440
  wrapper: [
9482
9441
  "border border-solid",
9483
- K ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
9484
- K ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-control-border-hover)] hover:border-[var(--malachite-control-border-hover)]"
9442
+ R ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
9443
+ R ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-control-border-hover)] hover:border-[var(--malachite-control-border-hover)]"
9485
9444
  ],
9486
- shadow: K ? "shadow-error" : "shadow-default",
9445
+ shadow: R ? "shadow-error" : "shadow-default",
9487
9446
  borderRadius: "rounded-[12px]"
9488
9447
  };
9489
9448
  }
9490
- }, T = p === "password" ? L ? "text" : "password" : p, P = o || A || v, t1 = N ?? !!(p1 && x && $), _ = i || t1 || (M == null ? void 0 : M.length) || p === "password" && Z, c1 = D(m, i), s1 = [
9449
+ }, T = p === "password" ? L ? "text" : "password" : p, P = o || A || w, t1 = I ?? !!(p1 && x && $), _ = i || t1 || (V == null ? void 0 : V.length) || p === "password" && F, c1 = Q(m, i), s1 = [
9491
9450
  "relative",
9492
9451
  "flex items-center",
9493
9452
  "w-full",
@@ -9496,10 +9455,10 @@ const R8 = () => {
9496
9455
  "transition-colors duration-200 ease-in-out",
9497
9456
  c1.shadow,
9498
9457
  ...x ? [] : c1.wrapper,
9499
- k(u).split(" ").find((B) => B.startsWith("h-")) || "h-10"
9458
+ k(u).split(" ").find((E) => E.startsWith("h-")) || "h-10"
9500
9459
  ].filter(Boolean).join(" ");
9501
- return /* @__PURE__ */ w(
9502
- Re,
9460
+ return /* @__PURE__ */ v(
9461
+ Ke,
9503
9462
  {
9504
9463
  label: e,
9505
9464
  hint: t,
@@ -9507,16 +9466,16 @@ const R8 = () => {
9507
9466
  name: n,
9508
9467
  required: s,
9509
9468
  loading: h,
9510
- formControl: F,
9469
+ formControl: S,
9511
9470
  description: d,
9512
- loadingComponent: /* @__PURE__ */ l(Z5, { size: u, helperText: !!E }),
9471
+ loadingComponent: /* @__PURE__ */ l(Z5, { size: u, helperText: !!M }),
9513
9472
  children: [
9514
- /* @__PURE__ */ w("div", { className: s1, children: [
9473
+ /* @__PURE__ */ v("div", { className: s1, children: [
9515
9474
  P && /* @__PURE__ */ l("div", { className: "flex items-center pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ l(
9516
9475
  Y8,
9517
9476
  {
9518
9477
  prefixValue: A,
9519
- prefixSecondaryValue: v,
9478
+ prefixSecondaryValue: w,
9520
9479
  icon: o
9521
9480
  }
9522
9481
  ) }),
@@ -9527,7 +9486,7 @@ const R8 = () => {
9527
9486
  placeholder: a,
9528
9487
  value: $,
9529
9488
  onChange: G,
9530
- onBlur: S,
9489
+ onBlur: Z,
9531
9490
  disabled: x || C,
9532
9491
  readOnly: C,
9533
9492
  autoComplete: "off",
@@ -9535,10 +9494,10 @@ const R8 = () => {
9535
9494
  name: n
9536
9495
  }
9537
9496
  ),
9538
- _ && /* @__PURE__ */ w(
9497
+ _ && /* @__PURE__ */ v(
9539
9498
  "div",
9540
9499
  {
9541
- className: `flex items-center pl-1 flex-shrink-0 ${p === "password" && Z ? "pr-0" : "pr-3"}`,
9500
+ className: `flex items-center pl-1 flex-shrink-0 ${p === "password" && F ? "pr-0" : "pr-3"}`,
9542
9501
  children: [
9543
9502
  /* @__PURE__ */ l(
9544
9503
  H8,
@@ -9550,20 +9509,20 @@ const R8 = () => {
9550
9509
  copied: o1,
9551
9510
  type: p,
9552
9511
  showPassword: L,
9553
- showPasswordToggle: Z,
9512
+ showPasswordToggle: F,
9554
9513
  onTogglePassword: () => a1(!L)
9555
9514
  }
9556
9515
  ),
9557
- /* @__PURE__ */ l(j8, { buttons: M })
9516
+ /* @__PURE__ */ l(j8, { buttons: V })
9558
9517
  ]
9559
9518
  }
9560
9519
  )
9561
9520
  ] }),
9562
- E && /* @__PURE__ */ l("div", { className: "text-[13px] text-[var(--malachite-text-dimmed)] text-left pl-2", children: E })
9521
+ M && /* @__PURE__ */ l("div", { className: "text-[13px] text-[var(--malachite-text-dimmed)] text-left pl-2", children: M })
9563
9522
  ]
9564
9523
  }
9565
9524
  );
9566
- }, Y8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ w("div", { className: "flex items-center gap-1", children: [
9525
+ }, Y8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
9567
9526
  r && /* @__PURE__ */ l("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0", children: r }),
9568
9527
  e && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
9569
9528
  t && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: t })
@@ -9577,7 +9536,7 @@ const R8 = () => {
9577
9536
  showPassword: s,
9578
9537
  showPasswordToggle: i = !0,
9579
9538
  onTogglePassword: d
9580
- }) => /* @__PURE__ */ w("div", { className: "flex items-center gap-1", children: [
9539
+ }) => /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
9581
9540
  e && /* @__PURE__ */ l("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0", children: /* @__PURE__ */ l(
9582
9541
  r1.InfoIcon,
9583
9542
  {
@@ -9645,18 +9604,18 @@ const R8 = () => {
9645
9604
  prefixSecondaryValue: x,
9646
9605
  // ellipsis = false,
9647
9606
  formControl: A,
9648
- buttons: v,
9607
+ buttons: w,
9649
9608
  onCopyClick: y,
9650
- onChange: F,
9651
- value: M,
9652
- onBlur: Q,
9653
- rows: N = 4,
9654
- maxLength: I,
9655
- resize: S = "vertical"
9609
+ onChange: S,
9610
+ value: V,
9611
+ onBlur: D,
9612
+ rows: I = 4,
9613
+ maxLength: N,
9614
+ resize: Z = "vertical"
9656
9615
  }) => {
9657
- const [E, Z] = H(u || ""), L = M !== void 0 ? M : E, a1 = M !== void 0, $ = (k) => {
9658
- const D = k.target.value;
9659
- a1 || Z(D), F == null || F(D);
9616
+ const [M, F] = H(u || ""), L = V !== void 0 ? V : M, a1 = V !== void 0, $ = (k) => {
9617
+ const Q = k.target.value;
9618
+ a1 || F(Q), S == null || S(Q);
9660
9619
  }, f1 = (k) => {
9661
9620
  switch (k) {
9662
9621
  case "small":
@@ -9668,7 +9627,7 @@ const R8 = () => {
9668
9627
  default:
9669
9628
  return "text-[15px] leading-[1.4]";
9670
9629
  }
9671
- }, o1 = (k, D) => {
9630
+ }, o1 = (k, Q) => {
9672
9631
  const T = {
9673
9632
  small: 20,
9674
9633
  medium: 22,
@@ -9678,10 +9637,10 @@ const R8 = () => {
9678
9637
  medium: 24,
9679
9638
  large: 24
9680
9639
  }[k];
9681
- return `${T * D + P}px`;
9682
- }, R = o || b || x, G = i || y && m && L || (v == null ? void 0 : v.length);
9640
+ return `${T * Q + P}px`;
9641
+ }, K = o || b || x, G = i || y && m && L || (w == null ? void 0 : w.length);
9683
9642
  return /* @__PURE__ */ l(
9684
- Re,
9643
+ Ke,
9685
9644
  {
9686
9645
  label: e,
9687
9646
  hint: t,
@@ -9691,7 +9650,7 @@ const R8 = () => {
9691
9650
  loading: h,
9692
9651
  formControl: A,
9693
9652
  description: d,
9694
- loadingComponent: /* @__PURE__ */ l(q8, { size: p, rows: N }),
9653
+ loadingComponent: /* @__PURE__ */ l(q8, { size: p, rows: I }),
9695
9654
  children: (() => {
9696
9655
  const k = [
9697
9656
  "relative",
@@ -9706,7 +9665,7 @@ const R8 = () => {
9706
9665
  i ? "shadow-error" : "shadow-default",
9707
9666
  i ? "border-[var(--malachite-destructive-border)]" : "border-[var(--malachite-card-border)]",
9708
9667
  i ? "focus-within:border-[var(--malachite-destructive-border-hover)] hover:border-[var(--malachite-destructive-border-hover)]" : "focus-within:border-[var(--malachite-control-border-hover)] hover:border-[var(--malachite-control-border-hover)]"
9709
- ].filter(Boolean).join(" "), D = [
9668
+ ].filter(Boolean).join(" "), Q = [
9710
9669
  "flex-1",
9711
9670
  "bg-transparent",
9712
9671
  "border-none",
@@ -9718,25 +9677,25 @@ const R8 = () => {
9718
9677
  f1(p),
9719
9678
  "px-[16px]",
9720
9679
  "py-[12px]",
9721
- S === "none" ? "resize-none" : S === "vertical" ? "resize-y" : S === "horizontal" ? "resize-x" : "resize"
9680
+ Z === "none" ? "resize-none" : Z === "vertical" ? "resize-y" : Z === "horizontal" ? "resize-x" : "resize"
9722
9681
  ].filter(Boolean).join(" "), T = /* @__PURE__ */ l(
9723
9682
  "textarea",
9724
9683
  {
9725
9684
  placeholder: a,
9726
9685
  value: m ? u : L,
9727
9686
  onChange: $,
9728
- onBlur: Q,
9687
+ onBlur: D,
9729
9688
  disabled: m || !!b || !!x || C,
9730
9689
  readOnly: C,
9731
- rows: N,
9732
- maxLength: I,
9733
- style: { minHeight: o1(p, N) },
9734
- className: D,
9690
+ rows: I,
9691
+ maxLength: N,
9692
+ style: { minHeight: o1(p, I) },
9693
+ className: Q,
9735
9694
  name: n
9736
9695
  }
9737
9696
  );
9738
- return /* @__PURE__ */ w("div", { className: k, children: [
9739
- R && /* @__PURE__ */ l("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ l(
9697
+ return /* @__PURE__ */ v("div", { className: k, children: [
9698
+ K && /* @__PURE__ */ l("div", { className: "flex pt-3 pl-3 pr-1 flex-shrink-0 pointer-events-none", children: /* @__PURE__ */ l(
9740
9699
  J8,
9741
9700
  {
9742
9701
  prefixValue: b,
@@ -9745,7 +9704,7 @@ const R8 = () => {
9745
9704
  }
9746
9705
  ) }),
9747
9706
  T,
9748
- G && /* @__PURE__ */ w("div", { className: "flex pt-3 pl-1 pr-3 flex-shrink-0", children: [
9707
+ G && /* @__PURE__ */ v("div", { className: "flex pt-3 pl-1 pr-3 flex-shrink-0", children: [
9749
9708
  /* @__PURE__ */ l(
9750
9709
  U8,
9751
9710
  {
@@ -9755,7 +9714,7 @@ const R8 = () => {
9755
9714
  onCopyClick: y
9756
9715
  }
9757
9716
  ),
9758
- /* @__PURE__ */ l(O8, { buttons: v })
9717
+ /* @__PURE__ */ l(O8, { buttons: w })
9759
9718
  ] })
9760
9719
  ] });
9761
9720
  })()
@@ -9781,11 +9740,11 @@ const R8 = () => {
9781
9740
  return `${n * o + s}px`;
9782
9741
  })(e, t) }
9783
9742
  }
9784
- ), J8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ w("div", { className: "flex items-start gap-1", children: [
9743
+ ), J8 = ({ prefixValue: e, prefixSecondaryValue: t, icon: r }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
9785
9744
  r && /* @__PURE__ */ l("span", { className: "flex items-center justify-center text-[var(--malachite-text-dimmed)] w-4 h-4 flex-shrink-0 mt-1", children: r }),
9786
9745
  e && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: e }),
9787
9746
  t && /* @__PURE__ */ l("span", { className: "text-[15px] leading-[1.4] text-[var(--malachite-text-dimmed)] whitespace-nowrap", children: t })
9788
- ] }), U8 = ({ error: e, disabled: t, defaultValue: r, onCopyClick: a }) => /* @__PURE__ */ w("div", { className: "flex items-start gap-1", children: [
9747
+ ] }), U8 = ({ error: e, disabled: t, defaultValue: r, onCopyClick: a }) => /* @__PURE__ */ v("div", { className: "flex items-start gap-1", children: [
9789
9748
  e && /* @__PURE__ */ l("div", { className: "flex items-center justify-center w-5 h-5 flex-shrink-0 mt-1", children: /* @__PURE__ */ l(
9790
9749
  r1.InfoIcon,
9791
9750
  {
@@ -9882,8 +9841,8 @@ const R8 = () => {
9882
9841
  onChange: i,
9883
9842
  onShowSizeChange: d
9884
9843
  }) => {
9885
- const h = t > 0 ? t : 10, C = Math.max(1, Math.ceil(r / h)), p = Math.min(Math.max(1, e), C), [u, m] = H(""), b = (Z) => {
9886
- const L = Math.min(Math.max(1, Z), C);
9844
+ const h = t > 0 ? t : 10, C = Math.max(1, Math.ceil(r / h)), p = Math.min(Math.max(1, e), C), [u, m] = H(""), b = (F) => {
9845
+ const L = Math.min(Math.max(1, F), C);
9887
9846
  L !== p && (i == null || i(L, h));
9888
9847
  }, x = {
9889
9848
  minWidth: 32,
@@ -9901,24 +9860,24 @@ const R8 = () => {
9901
9860
  cursor: "pointer",
9902
9861
  userSelect: "none",
9903
9862
  transition: "background-color 120ms ease, border-color 120ms ease, color 120ms ease"
9904
- }, A = (Z) => ({
9863
+ }, A = (F) => ({
9905
9864
  ...x,
9906
9865
  width: 32,
9907
9866
  minWidth: 32,
9908
- color: Z ? "var(--malachite-text-placeholder, rgb(187, 187, 187))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
9909
- opacity: Z ? 0.4 : 1,
9910
- cursor: Z ? "not-allowed" : "pointer"
9911
- }), v = (Z) => ({
9867
+ color: F ? "var(--malachite-text-placeholder, rgb(187, 187, 187))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
9868
+ opacity: F ? 0.4 : 1,
9869
+ cursor: F ? "not-allowed" : "pointer"
9870
+ }), w = (F) => ({
9912
9871
  ...x,
9913
- border: Z ? "1px solid var(--malachite-success-border, rgba(0, 175, 102, 0.2))" : "1px solid transparent",
9914
- color: Z ? "var(--malachite-success-foreground, rgb(2, 122, 66))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
9915
- background: Z ? "var(--malachite-card-background, rgb(255, 255, 255))" : "transparent"
9872
+ border: F ? "1px solid var(--malachite-success-border, rgba(0, 175, 102, 0.2))" : "1px solid transparent",
9873
+ color: F ? "var(--malachite-success-foreground, rgb(2, 122, 66))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
9874
+ background: F ? "var(--malachite-card-background, rgb(255, 255, 255))" : "transparent"
9916
9875
  }), y = {
9917
9876
  ...x,
9918
9877
  color: "var(--malachite-text-secondary, rgb(123, 123, 123))",
9919
9878
  cursor: "default",
9920
9879
  letterSpacing: 1
9921
- }, F = {
9880
+ }, S = {
9922
9881
  height: 32,
9923
9882
  padding: "0 8px",
9924
9883
  border: "1px solid var(--malachite-card-border, rgb(232, 232, 232))",
@@ -9935,7 +9894,7 @@ const R8 = () => {
9935
9894
  backgroundRepeat: "no-repeat",
9936
9895
  backgroundPosition: "right 8px center",
9937
9896
  paddingRight: 28
9938
- }, M = {
9897
+ }, V = {
9939
9898
  width: 56,
9940
9899
  height: 32,
9941
9900
  padding: "0 8px",
@@ -9946,11 +9905,11 @@ const R8 = () => {
9946
9905
  fontSize: 13,
9947
9906
  textAlign: "center",
9948
9907
  outline: "none"
9949
- }, Q = r === 0 ? 0 : (p - 1) * h + 1, N = Math.min(p * h, r), I = n ? n(r, [Q, N]) : `Total ${r.toLocaleString("en-US")} items`, S = () => {
9950
- const Z = parseInt(u, 10);
9951
- Number.isNaN(Z) || (b(Z), m(""));
9952
- }, E = $8(p, C);
9953
- return /* @__PURE__ */ w(
9908
+ }, D = r === 0 ? 0 : (p - 1) * h + 1, I = Math.min(p * h, r), N = n ? n(r, [D, I]) : `Total ${r.toLocaleString("en-US")} items`, Z = () => {
9909
+ const F = parseInt(u, 10);
9910
+ Number.isNaN(F) || (b(F), m(""));
9911
+ }, M = $8(p, C);
9912
+ return /* @__PURE__ */ v(
9954
9913
  "div",
9955
9914
  {
9956
9915
  className: "mt-4 flex items-center justify-end gap-3 flex-wrap",
@@ -9965,10 +9924,10 @@ const R8 = () => {
9965
9924
  color: "var(--malachite-text-primary, rgb(10, 10, 10))",
9966
9925
  marginRight: 4
9967
9926
  },
9968
- children: I
9927
+ children: N
9969
9928
  }
9970
9929
  ),
9971
- /* @__PURE__ */ w("div", { className: "flex items-center gap-1", children: [
9930
+ /* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
9972
9931
  /* @__PURE__ */ l(
9973
9932
  "button",
9974
9933
  {
@@ -9980,18 +9939,18 @@ const R8 = () => {
9980
9939
  children: /* @__PURE__ */ l(r1.CaretLeftIcon, { size: 12 })
9981
9940
  }
9982
9941
  ),
9983
- E.map(
9984
- (Z, L) => Z === "ellipsis" ? /* @__PURE__ */ l("span", { style: y, "aria-hidden": "true", children: "•••" }, `e-${L}`) : /* @__PURE__ */ l(
9942
+ M.map(
9943
+ (F, L) => F === "ellipsis" ? /* @__PURE__ */ l("span", { style: y, "aria-hidden": "true", children: "•••" }, `e-${L}`) : /* @__PURE__ */ l(
9985
9944
  "button",
9986
9945
  {
9987
9946
  type: "button",
9988
- "aria-label": `Page ${Z}`,
9989
- "aria-current": Z === p ? "page" : void 0,
9990
- onClick: () => b(Z),
9991
- style: v(Z === p),
9992
- children: Z.toLocaleString("en-US")
9947
+ "aria-label": `Page ${F}`,
9948
+ "aria-current": F === p ? "page" : void 0,
9949
+ onClick: () => b(F),
9950
+ style: w(F === p),
9951
+ children: F.toLocaleString("en-US")
9993
9952
  },
9994
- Z
9953
+ F
9995
9954
  )
9996
9955
  ),
9997
9956
  /* @__PURE__ */ l(
@@ -10011,18 +9970,18 @@ const R8 = () => {
10011
9970
  {
10012
9971
  "aria-label": "Page size",
10013
9972
  value: String(t),
10014
- onChange: (Z) => {
10015
- const L = parseInt(Z.target.value, 10);
9973
+ onChange: (F) => {
9974
+ const L = parseInt(F.target.value, 10);
10016
9975
  Number.isNaN(L) || (d == null || d(p, L), i == null || i(p, L));
10017
9976
  },
10018
- style: F,
10019
- children: s.map((Z) => /* @__PURE__ */ w("option", { value: Z, children: [
10020
- Z,
9977
+ style: S,
9978
+ children: s.map((F) => /* @__PURE__ */ v("option", { value: F, children: [
9979
+ F,
10021
9980
  " / page"
10022
- ] }, Z))
9981
+ ] }, F))
10023
9982
  }
10024
9983
  ),
10025
- o && /* @__PURE__ */ w(
9984
+ o && /* @__PURE__ */ v(
10026
9985
  "div",
10027
9986
  {
10028
9987
  className: "flex items-center gap-2",
@@ -10040,12 +9999,12 @@ const R8 = () => {
10040
9999
  min: 1,
10041
10000
  max: C,
10042
10001
  value: u,
10043
- onChange: (Z) => m(Z.target.value),
10044
- onKeyDown: (Z) => {
10045
- Z.key === "Enter" && S();
10002
+ onChange: (F) => m(F.target.value),
10003
+ onKeyDown: (F) => {
10004
+ F.key === "Enter" && Z();
10046
10005
  },
10047
- onBlur: S,
10048
- style: M
10006
+ onBlur: Z,
10007
+ style: V
10049
10008
  }
10050
10009
  ),
10051
10010
  /* @__PURE__ */ l("span", { children: "Page" })
@@ -10163,7 +10122,7 @@ const R8 = () => {
10163
10122
  {
10164
10123
  className: "flex flex-[1_0_0] min-w-0 overflow-hidden",
10165
10124
  style: we(e),
10166
- children: /* @__PURE__ */ w(
10125
+ children: /* @__PURE__ */ v(
10167
10126
  "button",
10168
10127
  {
10169
10128
  ...u3(e.title, r),
@@ -10226,64 +10185,64 @@ const R8 = () => {
10226
10185
  rowVariant: b,
10227
10186
  onRow: x,
10228
10187
  onClickRow: A,
10229
- rowSelection: v,
10188
+ rowSelection: w,
10230
10189
  pagination: y,
10231
- className: F = "",
10232
- style: M,
10233
- stickyHeaderTop: Q,
10234
- scrollX: N = !1,
10235
- rowSection: I,
10236
- renderSectionDivider: S
10190
+ className: S = "",
10191
+ style: V,
10192
+ stickyHeaderTop: D,
10193
+ scrollX: I = !1,
10194
+ rowSection: N,
10195
+ renderSectionDivider: Z
10237
10196
  }) => {
10238
- const [E, Z] = H(null), L = U(null), a1 = U(null), $ = (k, D) => {
10239
- k && D && D.scrollLeft !== k.scrollLeft && (D.scrollLeft = k.scrollLeft);
10197
+ const [M, F] = H(null), L = U(null), a1 = U(null), $ = (k, Q) => {
10198
+ k && Q && Q.scrollLeft !== k.scrollLeft && (Q.scrollLeft = k.scrollLeft);
10240
10199
  }, { sortedData: f1, sectionDividers: o1 } = W1(() => {
10241
10200
  const k = (_) => {
10242
- if (!E) return _;
10243
- const c1 = e.find((B) => B.key === E.key);
10201
+ if (!M) return _;
10202
+ const c1 = e.find((E) => E.key === M.key);
10244
10203
  if (!c1) return _;
10245
10204
  if (typeof c1.sorter == "function") {
10246
- const B = [..._].sort(c1.sorter);
10247
- return E.direction === "asc" ? B : B.reverse();
10205
+ const E = [..._].sort(c1.sorter);
10206
+ return M.direction === "asc" ? E : E.reverse();
10248
10207
  }
10249
- const s1 = c1.dataIndex ?? E.key;
10250
- return [..._].sort((B, K) => {
10251
- const q = B[s1], J = K[s1];
10252
- return q < J ? E.direction === "asc" ? -1 : 1 : q > J ? E.direction === "asc" ? 1 : -1 : 0;
10208
+ const s1 = c1.dataIndex ?? M.key;
10209
+ return [..._].sort((E, R) => {
10210
+ const q = E[s1], J = R[s1];
10211
+ return q < J ? M.direction === "asc" ? -1 : 1 : q > J ? M.direction === "asc" ? 1 : -1 : 0;
10253
10212
  });
10254
10213
  };
10255
- if (!I)
10214
+ if (!N)
10256
10215
  return {
10257
10216
  sortedData: k(t),
10258
10217
  sectionDividers: /* @__PURE__ */ new Map()
10259
10218
  };
10260
- const D = [], T = /* @__PURE__ */ new Map();
10219
+ const Q = [], T = /* @__PURE__ */ new Map();
10261
10220
  for (const _ of t) {
10262
- const c1 = I(_);
10221
+ const c1 = N(_);
10263
10222
  let s1 = T.get(c1);
10264
- s1 === void 0 && (s1 = D.length, T.set(c1, s1), D.push({ key: c1, records: [] })), D[s1].records.push(_);
10223
+ s1 === void 0 && (s1 = Q.length, T.set(c1, s1), Q.push({ key: c1, records: [] })), Q[s1].records.push(_);
10265
10224
  }
10266
10225
  const P = [], t1 = /* @__PURE__ */ new Map();
10267
- for (const _ of D) {
10226
+ for (const _ of Q) {
10268
10227
  const c1 = k(_.records);
10269
10228
  t1.set(P.length, { key: _.key, records: c1 }), P.push(...c1);
10270
10229
  }
10271
10230
  return { sortedData: P, sectionDividers: t1 };
10272
- }, [t, E, e, I]), R = (k) => {
10273
- Z((D) => (D == null ? void 0 : D.key) === k ? D.direction === "asc" ? { key: k, direction: "desc" } : null : { key: k, direction: "asc" });
10274
- }, G = (k, D) => typeof d == "function" ? d(k) : String(k[d] || D);
10231
+ }, [t, M, e, N]), K = (k) => {
10232
+ F((Q) => (Q == null ? void 0 : Q.key) === k ? Q.direction === "asc" ? { key: k, direction: "desc" } : null : { key: k, direction: "asc" });
10233
+ }, G = (k, Q) => typeof d == "function" ? d(k) : String(k[d] || Q);
10275
10234
  if (u === "detached") {
10276
10235
  const k = {
10277
10236
  borderBottom: "1px solid var(--malachite-card-border, #e8e8e8)"
10278
- }, D = N ? t9(e) : 0, T = N ? { minWidth: D } : {}, P = {
10237
+ }, Q = I ? t9(e) : 0, T = I ? { minWidth: Q } : {}, P = {
10279
10238
  border: "1px solid var(--malachite-card-border, #e8e8e8)",
10280
10239
  borderRadius: 8,
10281
10240
  overflow: "hidden",
10282
10241
  ...T
10283
- }, t1 = (B, K, q = !1) => {
10284
- const J = G(B, K), j = (x == null ? void 0 : x(B, K)) || {}, y1 = b == null ? void 0 : b(B, K), Z1 = A || j.onClick ? () => {
10242
+ }, t1 = (E, R, q = !1) => {
10243
+ const J = G(E, R), j = (x == null ? void 0 : x(E, R)) || {}, y1 = b == null ? void 0 : b(E, R), Z1 = A || j.onClick ? () => {
10285
10244
  var d1;
10286
- A == null || A(B, K), (d1 = j.onClick) == null || d1.call(j, B, K);
10245
+ A == null || A(E, R), (d1 = j.onClick) == null || d1.call(j, E, R);
10287
10246
  } : void 0, Y1 = !!Z1, se = q ? {} : k;
10288
10247
  return /* @__PURE__ */ l(
10289
10248
  "div",
@@ -10291,7 +10250,7 @@ const R8 = () => {
10291
10250
  className: `
10292
10251
  group bg-white flex min-h-10 items-stretch relative w-full
10293
10252
  ${Y1 ? "cursor-pointer hover:bg-[#fafafa]" : ""}
10294
- ${(m == null ? void 0 : m(B, K)) || ""}
10253
+ ${(m == null ? void 0 : m(E, R)) || ""}
10295
10254
  `,
10296
10255
  style: y1 ? {
10297
10256
  ...se,
@@ -10301,26 +10260,26 @@ const R8 = () => {
10301
10260
  onClick: Z1,
10302
10261
  onDoubleClick: j.onDoubleClick ? () => {
10303
10262
  var d1;
10304
- return (d1 = j.onDoubleClick) == null ? void 0 : d1.call(j, B, K);
10263
+ return (d1 = j.onDoubleClick) == null ? void 0 : d1.call(j, E, R);
10305
10264
  } : void 0,
10306
10265
  onContextMenu: j.onContextMenu ? () => {
10307
10266
  var d1;
10308
- return (d1 = j.onContextMenu) == null ? void 0 : d1.call(j, B, K);
10267
+ return (d1 = j.onContextMenu) == null ? void 0 : d1.call(j, E, R);
10309
10268
  } : void 0,
10310
10269
  onMouseEnter: j.onMouseEnter ? () => {
10311
10270
  var d1;
10312
- return (d1 = j.onMouseEnter) == null ? void 0 : d1.call(j, B, K);
10271
+ return (d1 = j.onMouseEnter) == null ? void 0 : d1.call(j, E, R);
10313
10272
  } : void 0,
10314
10273
  onMouseLeave: j.onMouseLeave ? () => {
10315
10274
  var d1;
10316
- return (d1 = j.onMouseLeave) == null ? void 0 : d1.call(j, B, K);
10275
+ return (d1 = j.onMouseLeave) == null ? void 0 : d1.call(j, E, R);
10317
10276
  } : void 0,
10318
10277
  children: e.map((d1) => /* @__PURE__ */ l(
10319
10278
  i9,
10320
10279
  {
10321
10280
  column: d1,
10322
- record: B,
10323
- index: K,
10281
+ record: E,
10282
+ index: R,
10324
10283
  size: C
10325
10284
  },
10326
10285
  d1.key
@@ -10328,11 +10287,11 @@ const R8 = () => {
10328
10287
  },
10329
10288
  J
10330
10289
  );
10331
- }, _ = (B, K = !1) => /* @__PURE__ */ l(
10290
+ }, _ = (E, R = !1) => /* @__PURE__ */ l(
10332
10291
  "div",
10333
10292
  {
10334
10293
  className: "bg-white flex min-h-10 items-stretch w-full",
10335
- style: { ...K ? {} : k, ...T },
10294
+ style: { ...R ? {} : k, ...T },
10336
10295
  children: e.map((q) => (q.title === "" || q.title == null) && q.width !== void 0 ? /* @__PURE__ */ l(
10337
10296
  "div",
10338
10297
  {
@@ -10351,18 +10310,18 @@ const R8 = () => {
10351
10310
  q.key
10352
10311
  ))
10353
10312
  },
10354
- `skeleton-${B}`
10355
- ), c1 = i ? /* @__PURE__ */ l("div", { className: "flex min-h-10 items-stretch w-full", style: T, children: e.map((B) => /* @__PURE__ */ l(
10313
+ `skeleton-${E}`
10314
+ ), c1 = i ? /* @__PURE__ */ l("div", { className: "flex min-h-10 items-stretch w-full", style: T, children: e.map((E) => /* @__PURE__ */ l(
10356
10315
  n9,
10357
10316
  {
10358
- column: B,
10359
- sortDirection: (E == null ? void 0 : E.key) === B.key ? E.direction : null,
10360
- onSort: B.sorter ? () => R(B.key) : void 0
10317
+ column: E,
10318
+ sortDirection: (M == null ? void 0 : M.key) === E.key ? M.direction : null,
10319
+ onSort: E.sorter ? () => K(E.key) : void 0
10361
10320
  },
10362
- B.key
10363
- )) }) : null, s1 = Q !== void 0 && i && !h;
10364
- return /* @__PURE__ */ w("div", { className: `w-full ${F}`, style: M, children: [
10365
- /* @__PURE__ */ w(
10321
+ E.key
10322
+ )) }) : null, s1 = D !== void 0 && i && !h;
10323
+ return /* @__PURE__ */ v("div", { className: `w-full ${S}`, style: V, children: [
10324
+ /* @__PURE__ */ v(
10366
10325
  "div",
10367
10326
  {
10368
10327
  className: `bg-[#f7f7f7] flex flex-col items-start ${s1 ? "" : "overflow-clip"} p-[4px] relative rounded-[12px] w-full`,
@@ -10371,16 +10330,16 @@ const R8 = () => {
10371
10330
  "div",
10372
10331
  {
10373
10332
  ref: L,
10374
- onScroll: N ? () => $(L.current, a1.current) : void 0,
10333
+ onScroll: I ? () => $(L.current, a1.current) : void 0,
10375
10334
  style: {
10376
10335
  ...s1 ? {
10377
10336
  position: "sticky",
10378
- top: Q,
10337
+ top: D,
10379
10338
  zIndex: 8,
10380
10339
  backgroundColor: "#f7f7f7",
10381
10340
  width: "100%"
10382
10341
  } : { width: "100%" },
10383
- ...N ? { overflowX: "auto", scrollbarWidth: "none" } : {}
10342
+ ...I ? { overflowX: "auto", scrollbarWidth: "none" } : {}
10384
10343
  },
10385
10344
  children: c1
10386
10345
  }
@@ -10389,8 +10348,8 @@ const R8 = () => {
10389
10348
  "div",
10390
10349
  {
10391
10350
  ref: a1,
10392
- onScroll: N ? () => $(a1.current, L.current) : void 0,
10393
- className: `flex flex-col items-start ${N ? "overflow-x-auto" : "overflow-x-clip"} overflow-y-auto w-full`,
10351
+ onScroll: I ? () => $(a1.current, L.current) : void 0,
10352
+ className: `flex flex-col items-start ${I ? "overflow-x-auto" : "overflow-x-clip"} overflow-y-auto w-full`,
10394
10353
  style: {
10395
10354
  // Thin, transparent-track scrollbar — Firefox + modern Chromium
10396
10355
  // honor these; older Webkit falls back to the default scrollbar.
@@ -10403,16 +10362,16 @@ const R8 = () => {
10403
10362
  )
10404
10363
  } : {}
10405
10364
  },
10406
- children: a ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */ w("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: [
10365
+ children: a ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: [
10407
10366
  /* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[14px] font-medium mb-1", children: o }),
10408
10367
  /* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: n })
10409
10368
  ] }) }) : r ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: (() => {
10410
- const B = y != null && y.pageSize ? Math.min(y.pageSize, 10) : 5;
10411
- return Array.from({ length: B }).map(
10412
- (K, q) => _(q, q === B - 1)
10369
+ const E = y != null && y.pageSize ? Math.min(y.pageSize, 10) : 5;
10370
+ return Array.from({ length: E }).map(
10371
+ (R, q) => _(q, q === E - 1)
10413
10372
  );
10414
10373
  })() }) : f1.length === 0 ? /* @__PURE__ */ l("div", { className: "flex flex-col w-full", style: P, children: /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center bg-white w-full py-12", children: /* @__PURE__ */ l("div", { className: "text-[var(--malachite-text-secondary)] text-[13px]", children: "No data" }) }) }) : (() => {
10415
- const B = (q, J, j) => /* @__PURE__ */ l(
10374
+ const E = (q, J, j) => /* @__PURE__ */ l(
10416
10375
  "div",
10417
10376
  {
10418
10377
  className: "flex flex-col w-full",
@@ -10424,17 +10383,17 @@ const R8 = () => {
10424
10383
  `section-card-${j}`
10425
10384
  );
10426
10385
  if (o1.size === 0)
10427
- return B(f1, 0, "all");
10428
- const K = [...o1.keys()].sort((q, J) => q - J);
10429
- return K.map((q, J) => {
10386
+ return E(f1, 0, "all");
10387
+ const R = [...o1.keys()].sort((q, J) => q - J);
10388
+ return R.map((q, J) => {
10430
10389
  const j = o1.get(q);
10431
10390
  if (!j)
10432
10391
  return null;
10433
- const y1 = J + 1 < K.length ? K[J + 1] : f1.length, Z1 = f1.slice(q, y1), Y1 = S == null ? void 0 : S(
10392
+ const y1 = J + 1 < R.length ? R[J + 1] : f1.length, Z1 = f1.slice(q, y1), Y1 = Z == null ? void 0 : Z(
10434
10393
  j.key,
10435
10394
  j.records
10436
10395
  );
10437
- return /* @__PURE__ */ w(P1.Fragment, { children: [
10396
+ return /* @__PURE__ */ v(P1.Fragment, { children: [
10438
10397
  Y1 != null ? /* @__PURE__ */ l(
10439
10398
  "div",
10440
10399
  {
@@ -10443,7 +10402,7 @@ const R8 = () => {
10443
10402
  children: Y1
10444
10403
  }
10445
10404
  ) : null,
10446
- B(Z1, q, j.key)
10405
+ E(Z1, q, j.key)
10447
10406
  ] }, `section-${j.key}`);
10448
10407
  });
10449
10408
  })()
@@ -10469,9 +10428,9 @@ const R8 = () => {
10469
10428
  ] });
10470
10429
  }
10471
10430
  const p1 = (k) => {
10472
- const D = k.sorter, P = (E == null ? void 0 : E.key) === k.key ? E == null ? void 0 : E.direction : null, t1 = /* @__PURE__ */ w("div", { className: "flex items-center gap-2", children: [
10431
+ const Q = k.sorter, P = (M == null ? void 0 : M.key) === k.key ? M == null ? void 0 : M.direction : null, t1 = /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
10473
10432
  /* @__PURE__ */ l("span", { children: k.title }),
10474
- D && /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
10433
+ Q && /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
10475
10434
  /* @__PURE__ */ l(
10476
10435
  r1.CaretUpIcon,
10477
10436
  {
@@ -10498,11 +10457,11 @@ const R8 = () => {
10498
10457
  ${k.align === "right" ? "text-right" : ""}
10499
10458
  `,
10500
10459
  style: { width: k.width },
10501
- "aria-sort": D ? o9(P) : void 0,
10502
- children: D ? /* @__PURE__ */ l(
10460
+ "aria-sort": Q ? o9(P) : void 0,
10461
+ children: Q ? /* @__PURE__ */ l(
10503
10462
  "button",
10504
10463
  {
10505
- ...u3(k.title, () => R(k.key)),
10464
+ ...u3(k.title, () => K(k.key)),
10506
10465
  className: "flex w-full items-center cursor-pointer hover:opacity-80 appearance-none bg-transparent border-0 p-0 font-semibold text-inherit text-left",
10507
10466
  children: t1
10508
10467
  }
@@ -10511,14 +10470,14 @@ const R8 = () => {
10511
10470
  k.key
10512
10471
  );
10513
10472
  };
10514
- return a ? /* @__PURE__ */ l("div", { className: "w-full", style: { ...M }, children: /* @__PURE__ */ l(
10473
+ return a ? /* @__PURE__ */ l("div", { className: "w-full", style: { ...V }, children: /* @__PURE__ */ l(
10515
10474
  "div",
10516
10475
  {
10517
10476
  className: "overflow-x-auto",
10518
10477
  style: {
10519
10478
  ...h ? { maxHeight: h } : {}
10520
10479
  },
10521
- children: /* @__PURE__ */ w("table", { className: "w-full border-collapse rounded-lg overflow-hidden", children: [
10480
+ children: /* @__PURE__ */ v("table", { className: "w-full border-collapse rounded-lg overflow-hidden", children: [
10522
10481
  i && /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((k) => /* @__PURE__ */ l(
10523
10482
  "th",
10524
10483
  {
@@ -10539,9 +10498,9 @@ const R8 = () => {
10539
10498
  /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
10540
10499
  "td",
10541
10500
  {
10542
- colSpan: e.length + (v ? 1 : 0),
10501
+ colSpan: e.length + (w ? 1 : 0),
10543
10502
  className: "px-4 py-12 text-center",
10544
- children: /* @__PURE__ */ w("div", { className: "flex flex-col items-center justify-center", children: [
10503
+ children: /* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center", children: [
10545
10504
  /* @__PURE__ */ l("div", { className: "table-error-icon w-12 h-12 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ l(r1.WarningTriangleIcon, { size: 24 }) }),
10546
10505
  /* @__PURE__ */ l("div", { className: "table-error-title text-lg font-semibold mb-2", children: o }),
10547
10506
  /* @__PURE__ */ l("div", { className: "table-error-subtitle text-sm", children: n })
@@ -10550,7 +10509,7 @@ const R8 = () => {
10550
10509
  ) }) })
10551
10510
  ] })
10552
10511
  }
10553
- ) }) : /* @__PURE__ */ w("div", { className: `w-full ${F}`, style: { ...M }, children: [
10512
+ ) }) : /* @__PURE__ */ v("div", { className: `w-full ${S}`, style: { ...V }, children: [
10554
10513
  /* @__PURE__ */ l(
10555
10514
  "div",
10556
10515
  {
@@ -10563,14 +10522,14 @@ const R8 = () => {
10563
10522
  style: {
10564
10523
  ...h ? { maxHeight: h } : {}
10565
10524
  },
10566
- children: /* @__PURE__ */ w(
10525
+ children: /* @__PURE__ */ v(
10567
10526
  "table",
10568
10527
  {
10569
10528
  className: `w-full ${p === "fixed" || e.some((k) => k.width) ? "table-fixed" : "table-auto"} ${s ? "border-separate table-bordered" : "border-collapse"} rounded-lg overflow-hidden`,
10570
10529
  style: { borderSpacing: "0" },
10571
10530
  children: [
10572
10531
  i && /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ l("tr", { children: e.map((k) => p1(k)) }) }),
10573
- /* @__PURE__ */ l("tbody", { children: r ? Array.from({ length: 5 }).map((k, D) => /* @__PURE__ */ l(
10532
+ /* @__PURE__ */ l("tbody", { children: r ? Array.from({ length: 5 }).map((k, Q) => /* @__PURE__ */ l(
10574
10533
  "tr",
10575
10534
  {
10576
10535
  className: `table-row ${s ? "table-row-bordered" : ""}`,
@@ -10584,62 +10543,62 @@ const R8 = () => {
10584
10543
  T.key
10585
10544
  ))
10586
10545
  },
10587
- D
10588
- )) : f1.map((k, D) => {
10589
- const T = G(k, D), P = (x == null ? void 0 : x(k, D)) || {}, t1 = b == null ? void 0 : b(k, D), _ = D === 0, c1 = D === t.length - 1, s1 = t1 ? `var(--malachite-table-row-variant-${t1}-background)` : void 0;
10546
+ Q
10547
+ )) : f1.map((k, Q) => {
10548
+ const T = G(k, Q), P = (x == null ? void 0 : x(k, Q)) || {}, t1 = b == null ? void 0 : b(k, Q), _ = Q === 0, c1 = Q === t.length - 1, s1 = t1 ? `var(--malachite-table-row-variant-${t1}-background)` : void 0;
10590
10549
  return /* @__PURE__ */ l(
10591
10550
  "tr",
10592
10551
  {
10593
10552
  className: `
10594
10553
  ${s ? "table-row-bordered" : "table-row hover:opacity-80"}
10595
- ${(m == null ? void 0 : m(k, D)) || ""}
10554
+ ${(m == null ? void 0 : m(k, Q)) || ""}
10596
10555
  ${A || P.onClick ? "cursor-pointer" : ""}
10597
10556
  `,
10598
10557
  onClick: A || P.onClick ? () => {
10599
- var B;
10600
- A == null || A(k, D), (B = P.onClick) == null || B.call(P, k, D);
10558
+ var E;
10559
+ A == null || A(k, Q), (E = P.onClick) == null || E.call(P, k, Q);
10601
10560
  } : void 0,
10602
10561
  onDoubleClick: P.onDoubleClick ? () => {
10603
- var B;
10604
- return (B = P.onDoubleClick) == null ? void 0 : B.call(
10562
+ var E;
10563
+ return (E = P.onDoubleClick) == null ? void 0 : E.call(
10605
10564
  P,
10606
10565
  k,
10607
- D
10566
+ Q
10608
10567
  );
10609
10568
  } : void 0,
10610
10569
  onContextMenu: P.onContextMenu ? () => {
10611
- var B;
10612
- return (B = P.onContextMenu) == null ? void 0 : B.call(
10570
+ var E;
10571
+ return (E = P.onContextMenu) == null ? void 0 : E.call(
10613
10572
  P,
10614
10573
  k,
10615
- D
10574
+ Q
10616
10575
  );
10617
10576
  } : void 0,
10618
10577
  onMouseEnter: P.onMouseEnter ? () => {
10619
- var B;
10620
- return (B = P.onMouseEnter) == null ? void 0 : B.call(P, k, D);
10578
+ var E;
10579
+ return (E = P.onMouseEnter) == null ? void 0 : E.call(P, k, Q);
10621
10580
  } : void 0,
10622
10581
  onMouseLeave: P.onMouseLeave ? () => {
10623
- var B;
10624
- return (B = P.onMouseLeave) == null ? void 0 : B.call(P, k, D);
10582
+ var E;
10583
+ return (E = P.onMouseLeave) == null ? void 0 : E.call(P, k, Q);
10625
10584
  } : void 0,
10626
- children: e.map((B) => {
10627
- const K = B === e[0], q = B === e[e.length - 1];
10585
+ children: e.map((E) => {
10586
+ const R = E === e[0], q = E === e[e.length - 1];
10628
10587
  return /* @__PURE__ */ l(
10629
10588
  l9,
10630
10589
  {
10631
- column: B,
10590
+ column: E,
10632
10591
  record: k,
10633
- index: D,
10592
+ index: Q,
10634
10593
  size: C,
10635
10594
  bordered: s,
10636
10595
  isFirstRow: _,
10637
10596
  isLastRow: c1,
10638
- isFirstColumn: K,
10597
+ isFirstColumn: R,
10639
10598
  isLastColumn: q,
10640
10599
  variantBackground: s1
10641
10600
  },
10642
- B.key
10601
+ E.key
10643
10602
  );
10644
10603
  })
10645
10604
  },
@@ -10708,32 +10667,32 @@ const R8 = () => {
10708
10667
  }) => {
10709
10668
  const n = c9[o], [s, i] = H(!1), [d, h] = H(null), C = U(null), p = U(null), u = B1(() => {
10710
10669
  var L, a1;
10711
- const v = C.current;
10712
- if (!v)
10670
+ const w = C.current;
10671
+ if (!w)
10713
10672
  return;
10714
- const y = v.getBoundingClientRect(), F = ((L = p.current) == null ? void 0 : L.offsetWidth) || a, M = ((a1 = p.current) == null ? void 0 : a1.offsetHeight) || 0, Q = 8, N = y.right - F, I = window.innerWidth - F - Q, S = Math.max(Q, Math.min(N, I)), E = window.innerHeight - y.bottom, Z = M > 0 && E < M + Q ? y.top - M - 4 : y.bottom + 4;
10715
- h({ top: Z, left: S });
10673
+ const y = w.getBoundingClientRect(), S = ((L = p.current) == null ? void 0 : L.offsetWidth) || a, V = ((a1 = p.current) == null ? void 0 : a1.offsetHeight) || 0, D = 8, I = y.right - S, N = window.innerWidth - S - D, Z = Math.max(D, Math.min(I, N)), M = window.innerHeight - y.bottom, F = V > 0 && M < V + D ? y.top - V - 4 : y.bottom + 4;
10674
+ h({ top: F, left: Z });
10716
10675
  }, [a]);
10717
10676
  u1(() => {
10718
10677
  if (!s)
10719
10678
  return;
10720
10679
  u();
10721
- const v = () => u(), y = (M) => {
10722
- var N, I;
10723
- const Q = M.target;
10724
- !((N = C.current) != null && N.contains(Q)) && !((I = p.current) != null && I.contains(Q)) && i(!1);
10725
- }, F = (M) => {
10726
- M.key === "Escape" && i(!1);
10680
+ const w = () => u(), y = (V) => {
10681
+ var I, N;
10682
+ const D = V.target;
10683
+ !((I = C.current) != null && I.contains(D)) && !((N = p.current) != null && N.contains(D)) && i(!1);
10684
+ }, S = (V) => {
10685
+ V.key === "Escape" && i(!1);
10727
10686
  };
10728
- return window.addEventListener("scroll", v, !0), window.addEventListener("resize", v), document.addEventListener("mousedown", y, !0), document.addEventListener("keydown", F), () => {
10729
- window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", v), document.removeEventListener("mousedown", y, !0), document.removeEventListener("keydown", F);
10687
+ return window.addEventListener("scroll", w, !0), window.addEventListener("resize", w), document.addEventListener("mousedown", y, !0), document.addEventListener("keydown", S), () => {
10688
+ window.removeEventListener("scroll", w, !0), window.removeEventListener("resize", w), document.removeEventListener("mousedown", y, !0), document.removeEventListener("keydown", S);
10730
10689
  };
10731
10690
  }, [s, u]), oe(() => {
10732
10691
  s && p.current && u();
10733
10692
  }, [s, u]);
10734
- const m = (v) => {
10693
+ const m = (w) => {
10735
10694
  var y;
10736
- v.type === "divider" || v.disabled || ((y = v.onClick) == null || y.call(v), i(!1));
10695
+ w.type === "divider" || w.disabled || ((y = w.onClick) == null || y.call(w), i(!1));
10737
10696
  }, b = {
10738
10697
  display: "inline-flex",
10739
10698
  alignItems: "center",
@@ -10764,7 +10723,7 @@ const R8 = () => {
10764
10723
  gap: 2,
10765
10724
  visibility: d ? "visible" : "hidden",
10766
10725
  opacity: d ? 1 : 0
10767
- }, A = (v) => v.type === "divider" ? {
10726
+ }, A = (w) => w.type === "divider" ? {
10768
10727
  height: 1,
10769
10728
  background: "var(--malachite-card-border, rgb(232, 232, 232))",
10770
10729
  margin: "4px 0"
@@ -10775,16 +10734,16 @@ const R8 = () => {
10775
10734
  borderRadius: 8,
10776
10735
  fontSize: 13,
10777
10736
  fontWeight: 400,
10778
- color: v.danger ? "var(--malachite-text-destructive, rgb(237, 53, 54))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
10779
- cursor: v.disabled ? "not-allowed" : "pointer",
10780
- opacity: v.disabled ? 0.5 : 1,
10737
+ color: w.danger ? "var(--malachite-text-destructive, rgb(237, 53, 54))" : "var(--malachite-text-primary, rgb(10, 10, 10))",
10738
+ cursor: w.disabled ? "not-allowed" : "pointer",
10739
+ opacity: w.disabled ? 0.5 : 1,
10781
10740
  userSelect: "none",
10782
10741
  background: "transparent",
10783
10742
  border: "none",
10784
10743
  textAlign: "left",
10785
10744
  width: "100%"
10786
10745
  };
10787
- return /* @__PURE__ */ w(w1, { children: [
10746
+ return /* @__PURE__ */ v(w1, { children: [
10788
10747
  /* @__PURE__ */ l(
10789
10748
  "button",
10790
10749
  {
@@ -10793,10 +10752,10 @@ const R8 = () => {
10793
10752
  "aria-label": t,
10794
10753
  "aria-haspopup": "menu",
10795
10754
  "aria-expanded": s,
10796
- onClick: (v) => {
10797
- v.stopPropagation(), i((y) => !y);
10755
+ onClick: (w) => {
10756
+ w.stopPropagation(), i((y) => !y);
10798
10757
  },
10799
- onMouseDown: (v) => v.stopPropagation(),
10758
+ onMouseDown: (w) => w.stopPropagation(),
10800
10759
  style: b,
10801
10760
  children: r ?? /* @__PURE__ */ l(r1.MoreHorizontalIcon, { size: n.icon })
10802
10761
  }
@@ -10808,27 +10767,27 @@ const R8 = () => {
10808
10767
  ref: p,
10809
10768
  role: "menu",
10810
10769
  style: x,
10811
- onMouseDown: (v) => v.stopPropagation(),
10812
- onClick: (v) => v.stopPropagation(),
10770
+ onMouseDown: (w) => w.stopPropagation(),
10771
+ onClick: (w) => w.stopPropagation(),
10813
10772
  children: e.map(
10814
- (v) => v.type === "divider" ? /* @__PURE__ */ l("div", { style: A(v) }, v.key) : /* @__PURE__ */ w(
10773
+ (w) => w.type === "divider" ? /* @__PURE__ */ l("div", { style: A(w) }, w.key) : /* @__PURE__ */ v(
10815
10774
  "button",
10816
10775
  {
10817
10776
  type: "button",
10818
10777
  role: "menuitem",
10819
- disabled: v.disabled,
10820
- title: v.tooltip,
10821
- onClick: () => m(v),
10778
+ disabled: w.disabled,
10779
+ title: w.tooltip,
10780
+ onClick: () => m(w),
10822
10781
  onMouseEnter: (y) => {
10823
- v.disabled || (y.currentTarget.style.background = "rgba(0, 0, 0, 0.04)");
10782
+ w.disabled || (y.currentTarget.style.background = "rgba(0, 0, 0, 0.04)");
10824
10783
  },
10825
10784
  onMouseLeave: (y) => {
10826
10785
  y.currentTarget.style.background = "transparent";
10827
10786
  },
10828
- style: A(v),
10787
+ style: A(w),
10829
10788
  children: [
10830
- v.label,
10831
- v.icon && /* @__PURE__ */ l(
10789
+ w.label,
10790
+ w.icon && /* @__PURE__ */ l(
10832
10791
  "span",
10833
10792
  {
10834
10793
  style: {
@@ -10838,12 +10797,12 @@ const R8 = () => {
10838
10797
  paddingLeft: 16,
10839
10798
  color: "var(--malachite-icon-secondary, rgb(148, 148, 148))"
10840
10799
  },
10841
- children: v.icon
10800
+ children: w.icon
10842
10801
  }
10843
10802
  )
10844
10803
  ]
10845
10804
  },
10846
- v.key
10805
+ w.key
10847
10806
  )
10848
10807
  )
10849
10808
  }
@@ -11044,11 +11003,11 @@ const R8 = () => {
11044
11003
  const h = m9[s], C = t ? h.paddingWithIcon : h.padding, p = w9[i], u = n && !o, m = u && !!d, b = m ? ` ${f9}` : "";
11045
11004
  let x;
11046
11005
  n ? a ? x = u ? `${p.selected}${b}` : p.selected : u ? x = `${p.base} ${p.hover}${b}` : x = p.base : x = b9;
11047
- const A = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "", v = `${g9} ${h.text} ${C} ${x} ${A} ${r}`, y = t ? /* @__PURE__ */ l("span", { className: "inline-flex items-center justify-center w-4 h-4 shrink-0 [&>img]:max-w-full [&>img]:max-h-full [&>img]:object-contain", children: t }) : null;
11048
- return m ? /* @__PURE__ */ w("button", { type: "button", className: `${ie} ${v}`, onClick: d, children: [
11006
+ const A = o ? "opacity-50 cursor-not-allowed pointer-events-none" : "", w = `${g9} ${h.text} ${C} ${x} ${A} ${r}`, y = t ? /* @__PURE__ */ l("span", { className: "inline-flex items-center justify-center w-4 h-4 shrink-0 [&>img]:max-w-full [&>img]:max-h-full [&>img]:object-contain", children: t }) : null;
11007
+ return m ? /* @__PURE__ */ v("button", { type: "button", className: `${ie} ${w}`, onClick: d, children: [
11049
11008
  y,
11050
11009
  e
11051
- ] }) : /* @__PURE__ */ w("div", { className: v, children: [
11010
+ ] }) : /* @__PURE__ */ v("div", { className: w, children: [
11052
11011
  y,
11053
11012
  e
11054
11013
  ] });
@@ -11110,7 +11069,7 @@ const R8 = () => {
11110
11069
  }, Xe = 2, v9 = {
11111
11070
  small: { track: 28, height: 16, knob: 12 },
11112
11071
  medium: { track: 36, height: 20, knob: 16 }
11113
- }, Ra = ({
11072
+ }, Ka = ({
11114
11073
  checked: e,
11115
11074
  onChange: t,
11116
11075
  disabled: r = !1,
@@ -11296,7 +11255,7 @@ const V9 = () => {
11296
11255
  }
11297
11256
  }
11298
11257
  );
11299
- }, Ka = {
11258
+ }, Ra = {
11300
11259
  Button: Z9,
11301
11260
  Input: F9,
11302
11261
  Avatar: N9
@@ -11328,7 +11287,7 @@ const V9 = () => {
11328
11287
  }) => {
11329
11288
  const s = U(null), [i, d] = H(0);
11330
11289
  oe(() => {
11331
- var S;
11290
+ var Z;
11332
11291
  const C = s.current;
11333
11292
  if (!C)
11334
11293
  return;
@@ -11336,12 +11295,12 @@ const V9 = () => {
11336
11295
  (p instanceof Document || p instanceof ShadowRoot) && P9(p);
11337
11296
  const u = typeof ResizeObserver < "u", m = typeof MutationObserver < "u";
11338
11297
  let b = null, x = !1, A = -1;
11339
- const v = () => {
11298
+ const w = () => {
11340
11299
  x || b !== null || (b = requestAnimationFrame(y));
11341
11300
  }, y = () => {
11342
11301
  if (b = null, x || s.current !== C)
11343
11302
  return;
11344
- const E = Array.from(C.children), Z = !!n, L = Z ? E[E.length - 1] ?? null : null, a1 = Z ? E.slice(0, -1) : E;
11303
+ const M = Array.from(C.children), F = !!n, L = F ? M[M.length - 1] ?? null : null, a1 = F ? M.slice(0, -1) : M;
11345
11304
  for (const o1 of a1)
11346
11305
  o1.removeAttribute(ge);
11347
11306
  if (L && L.setAttribute(ge, ""), C.scrollWidth <= C.clientWidth) {
@@ -11356,24 +11315,24 @@ const V9 = () => {
11356
11315
  d((o1) => o1 === f1 ? o1 : f1), A = C.clientWidth;
11357
11316
  };
11358
11317
  y();
11359
- const F = () => {
11360
- x || s.current === C && C.clientWidth === A || v();
11361
- }, M = u ? new ResizeObserver(F) : null;
11362
- M == null || M.observe(C);
11363
- const Q = u ? new ResizeObserver(v) : null, N = () => {
11364
- if (Q) {
11365
- Q.disconnect();
11366
- for (const E of Array.from(C.children))
11367
- Q.observe(E);
11318
+ const S = () => {
11319
+ x || s.current === C && C.clientWidth === A || w();
11320
+ }, V = u ? new ResizeObserver(S) : null;
11321
+ V == null || V.observe(C);
11322
+ const D = u ? new ResizeObserver(w) : null, I = () => {
11323
+ if (D) {
11324
+ D.disconnect();
11325
+ for (const M of Array.from(C.children))
11326
+ D.observe(M);
11368
11327
  }
11369
11328
  };
11370
- N();
11371
- const I = m ? new MutationObserver(() => {
11372
- N(), v();
11329
+ I();
11330
+ const N = m ? new MutationObserver(() => {
11331
+ I(), w();
11373
11332
  }) : null;
11374
- return I == null || I.observe(C, { childList: !0 }), typeof document < "u" && ((S = document.fonts) != null && S.ready) && document.fonts.ready.then(v).catch(() => {
11333
+ return N == null || N.observe(C, { childList: !0 }), typeof document < "u" && ((Z = document.fonts) != null && Z.ready) && document.fonts.ready.then(w).catch(() => {
11375
11334
  }), () => {
11376
- x = !0, b !== null && cancelAnimationFrame(b), M == null || M.disconnect(), Q == null || Q.disconnect(), I == null || I.disconnect();
11335
+ x = !0, b !== null && cancelAnimationFrame(b), V == null || V.disconnect(), D == null || D.disconnect(), N == null || N.disconnect();
11377
11336
  };
11378
11337
  }, [t, r, a]);
11379
11338
  const h = {
@@ -11386,7 +11345,7 @@ const V9 = () => {
11386
11345
  minWidth: 0,
11387
11346
  width: "100%"
11388
11347
  };
11389
- return /* @__PURE__ */ w("div", { ref: s, className: o, style: h, "data-overflow-row": "", children: [
11348
+ return /* @__PURE__ */ v("div", { ref: s, className: o, style: h, "data-overflow-row": "", children: [
11390
11349
  e,
11391
11350
  n ? /* @__PURE__ */ l(
11392
11351
  "div",
@@ -11397,7 +11356,7 @@ const V9 = () => {
11397
11356
  }
11398
11357
  ) : null
11399
11358
  ] });
11400
- }, R9 = "w-full overflow-hidden bg-[var(--malachite-card-dimmed-background)]", K9 = "h-full transition-[width] duration-200 ease-in-out bg-[var(--malachite-text-primary)]", Ga = ({
11359
+ }, K9 = "w-full overflow-hidden bg-[var(--malachite-card-dimmed-background)]", R9 = "h-full transition-[width] duration-200 ease-in-out bg-[var(--malachite-text-primary)]", Ga = ({
11401
11360
  value: e,
11402
11361
  color: t,
11403
11362
  trackColor: r,
@@ -11417,7 +11376,7 @@ const V9 = () => {
11417
11376
  "aria-valuenow": Math.round(d),
11418
11377
  "aria-label": o,
11419
11378
  "aria-labelledby": n,
11420
- className: `${R9} ${s}`,
11379
+ className: `${K9} ${s}`,
11421
11380
  style: {
11422
11381
  height: `${a}px`,
11423
11382
  borderRadius: `${h}px`,
@@ -11427,7 +11386,7 @@ const V9 = () => {
11427
11386
  children: /* @__PURE__ */ l(
11428
11387
  "div",
11429
11388
  {
11430
- className: K9,
11389
+ className: R9,
11431
11390
  style: {
11432
11391
  width: `${d}%`,
11433
11392
  ...t && { background: t }
@@ -11458,7 +11417,7 @@ const V9 = () => {
11458
11417
  style: C = {}
11459
11418
  }) => {
11460
11419
  const p = `${T9} ${G9[d]} ${h}`, u = `${H9} ${W9[o]}`;
11461
- return /* @__PURE__ */ w(
11420
+ return /* @__PURE__ */ v(
11462
11421
  "div",
11463
11422
  {
11464
11423
  className: p,
@@ -11532,9 +11491,9 @@ const V9 = () => {
11532
11491
  logo: r,
11533
11492
  onClose: a,
11534
11493
  footer: o
11535
- }) => /* @__PURE__ */ w("div", { className: "flex h-screen w-full overflow-hidden gap-3 bg-[var(--malachite-card-sunken-background)] p-3", children: [
11536
- /* @__PURE__ */ w("div", { className: "flex min-w-0 flex-1 flex-col items-center px-[60px] py-[40px]", children: [
11537
- /* @__PURE__ */ w("div", { className: "flex h-6 w-full shrink-0 items-center justify-between", children: [
11494
+ }) => /* @__PURE__ */ v("div", { className: "flex h-screen w-full overflow-hidden gap-3 bg-[var(--malachite-card-sunken-background)] p-3", children: [
11495
+ /* @__PURE__ */ v("div", { className: "flex min-w-0 flex-1 flex-col items-center px-[60px] py-[40px]", children: [
11496
+ /* @__PURE__ */ v("div", { className: "flex h-6 w-full shrink-0 items-center justify-between", children: [
11538
11497
  /* @__PURE__ */ l("span", { className: "size-6 shrink-0", "aria-hidden": !0 }),
11539
11498
  r ?? /* @__PURE__ */ l("span", { className: "size-6 shrink-0", "aria-hidden": !0 }),
11540
11499
  /* @__PURE__ */ l("span", { className: "flex size-6 shrink-0 items-center justify-center", children: a ? /* @__PURE__ */ l(
@@ -11548,7 +11507,7 @@ const V9 = () => {
11548
11507
  /* @__PURE__ */ l("div", { className: "flex w-full min-h-0 flex-1 flex-col overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", children: /* @__PURE__ */ l("div", { className: "m-auto flex w-full max-w-[380px] flex-col items-center py-10", children: e }) }),
11549
11508
  /* @__PURE__ */ l("div", { className: "flex h-6 shrink-0 items-center justify-center", children: o })
11550
11509
  ] }),
11551
- /* @__PURE__ */ w("div", { className: "relative hidden min-w-0 flex-1 flex-col items-center justify-center overflow-hidden rounded-[28px] bg-[#2b2b2b] px-[60px] py-[40px] lg:flex", children: [
11510
+ /* @__PURE__ */ v("div", { className: "relative hidden min-w-0 flex-1 flex-col items-center justify-center overflow-hidden rounded-[28px] bg-[#2b2b2b] px-[60px] py-[40px] lg:flex", children: [
11552
11511
  a ? /* @__PURE__ */ l(
11553
11512
  c2,
11554
11513
  {
@@ -11567,7 +11526,7 @@ const V9 = () => {
11567
11526
  onToggle: n,
11568
11527
  expanded: s = !0
11569
11528
  }) => {
11570
- const i = typeof n == "function", d = `flex w-full items-center gap-2 ${o ? "pl-5" : ""}`, h = /* @__PURE__ */ w(w1, { children: [
11529
+ const i = typeof n == "function", d = `flex w-full items-center gap-2 ${o ? "pl-5" : ""}`, h = /* @__PURE__ */ v(w1, { children: [
11571
11530
  /* @__PURE__ */ l(
11572
11531
  "span",
11573
11532
  {
@@ -11600,9 +11559,9 @@ const V9 = () => {
11600
11559
  children: h
11601
11560
  }
11602
11561
  ) : /* @__PURE__ */ l("div", { className: d, children: h });
11603
- }, qa = ({ children: e }) => /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4 rounded-2xl bg-white/10 p-5", children: e }), Ja = ({ icon: e, label: t, tag: r, description: a }) => /* @__PURE__ */ w("div", { className: "flex w-full flex-col gap-0.5", children: [
11604
- /* @__PURE__ */ w("div", { className: "flex w-full items-center gap-0.5", children: [
11605
- /* @__PURE__ */ w("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
11562
+ }, qa = ({ children: e }) => /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4 rounded-2xl bg-white/10 p-5", children: e }), Ja = ({ icon: e, label: t, tag: r, description: a }) => /* @__PURE__ */ v("div", { className: "flex w-full flex-col gap-0.5", children: [
11563
+ /* @__PURE__ */ v("div", { className: "flex w-full items-center gap-0.5", children: [
11564
+ /* @__PURE__ */ v("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
11606
11565
  /* @__PURE__ */ l("span", { className: "flex size-[13px] shrink-0 items-center justify-center text-[var(--malachite-text-primary)]", children: e }),
11607
11566
  /* @__PURE__ */ l("p", { className: "whitespace-nowrap font-medium text-sm text-[var(--malachite-text-primary)] tracking-[0.14px]", children: t })
11608
11567
  ] }),
@@ -11621,7 +11580,7 @@ export {
11621
11580
  La as ActionMenu,
11622
11581
  ta as Alert,
11623
11582
  ra as Avatar,
11624
- Re as BaseFormComponent,
11583
+ Ke as BaseFormComponent,
11625
11584
  ne as Button,
11626
11585
  aa as ButtonList,
11627
11586
  oa as Card,
@@ -11658,7 +11617,7 @@ export {
11658
11617
  Pa as Radio,
11659
11618
  da as Search,
11660
11619
  wa as ShadowEscape,
11661
- Ka as Skeleton,
11620
+ Ra as Skeleton,
11662
11621
  be as Spacer,
11663
11622
  s8 as SpacingSize,
11664
11623
  zt as Spinner,
@@ -11675,7 +11634,7 @@ export {
11675
11634
  _4 as Tag,
11676
11635
  Sa as TextArea,
11677
11636
  Ua as ThemeScope,
11678
- Ra as Toggle,
11637
+ Ka as Toggle,
11679
11638
  U1 as Tooltip,
11680
11639
  X8 as TruncatedTooltip,
11681
11640
  Da as Typography,