etudes 27.3.0 → 27.5.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/build/etudes.js CHANGED
@@ -5810,220 +5810,230 @@ var $e = /* @__PURE__ */ a(({ children: e, ...n }, r) => (Array.isArray(e) && co
5810
5810
  })));
5811
5811
  process.env.NODE_ENV === "development" && ($e.displayName = "ExtractChild");
5812
5812
  //#endregion
5813
+ //#region src/utils/measureIntrinsicSize.ts
5814
+ function et(e, t) {
5815
+ if (typeof window > "u") return G.zero;
5816
+ let n = e.cloneNode(!0);
5817
+ n.style.position = "fixed", n.style.visibility = "hidden";
5818
+ let r = e.parentNode ?? document.body;
5819
+ try {
5820
+ r.insertBefore(n, e.nextSibling), n.style.width = "auto", n.style.whiteSpace = "pre";
5821
+ let i = n.getBoundingClientRect().width;
5822
+ if (t !== void 0 && i > t) {
5823
+ n.style.width = `${t}px`, n.style.whiteSpace = "normal";
5824
+ let e = n.getBoundingClientRect();
5825
+ return G.make(e.width, e.height);
5826
+ }
5827
+ let a = n.getBoundingClientRect();
5828
+ return G.make(a.width, a.height);
5829
+ } finally {
5830
+ n.remove();
5831
+ }
5832
+ }
5833
+ //#endregion
5834
+ //#region src/utils/setStyles.ts
5835
+ function tt(e, { target: t } = {}) {
5836
+ if (typeof window > "u") return;
5837
+ let n = t ?? window.document.documentElement;
5838
+ Object.keys(e).forEach((t) => {
5839
+ n.style[t] = e[t];
5840
+ });
5841
+ }
5842
+ //#endregion
5813
5843
  //#region src/hocs/WithTooltip.tsx
5814
- function et({ className: e, style: t, alignment: n, arrowHeight: r = 6, arrowWidth: i = 12, children: a, gap: o = 4, hint: l, maxWidth: u = 200, threshold: f = 100 }) {
5815
- let p = d(null), m = d(null), h = re(p), g = s(() => {
5816
- let a = window.document.createElement("span");
5817
- a.className = C(e), a.innerHTML = l, a.role = "tooltip";
5818
- let s = n ?? (p.current ? nt(p.current, f) : "tl"), c = tt(a), d = at({
5819
- alignment: s,
5820
- arrowSize: G.make(i, r),
5821
- fullDialogWidth: c.width,
5822
- gap: o,
5823
- maxDialogWidth: u,
5824
- targetWidth: h.width
5825
- }), m = P(t, d.dialog);
5826
- Object.keys(m).forEach((e) => a.style[e] = m[e]);
5827
- let g = window.document.createElement("span");
5828
- return Object.keys(d.arrow).forEach((e) => g.style[e] = d.arrow[e]), a.appendChild(g), a;
5844
+ function nt({ className: e = "", style: t, alignment: n, arrowHeight: r = 6, arrowWidth: i = 12, children: a, gap: o = 4, hint: l, maxWidth: u = 200, threshold: f = 100 }) {
5845
+ let p = d(null), m = d(null), h = d(null), g = d(void 0), _ = s(() => {
5846
+ let e = p.current, a = m.current, s = h.current;
5847
+ if (!e || !a || !s) return;
5848
+ let c = K.from(s), l = G.make(i, r), d = et(e, u), g = n ?? it(c, f), _ = at(g, d, l, o, c), v = ot(g, d, l, c);
5849
+ tt(P(t, _), { target: e }), tt(v, { target: a });
5829
5850
  }, [
5830
- e,
5831
5851
  n,
5832
- l,
5833
5852
  u,
5834
- je(t),
5835
- h.width,
5853
+ t,
5836
5854
  f,
5837
5855
  r,
5838
5856
  i,
5839
5857
  o
5840
- ]), _ = s(() => {
5841
- m.current && (m.current.style.opacity = "1", m.current.ariaHidden = "false");
5842
- }, []), v = s(() => {
5843
- m.current && (m.current.style.opacity = "0", m.current.ariaHidden = "true");
5844
- }, []);
5858
+ ]), v = s(() => {
5859
+ let e = p.current, t = h.current;
5860
+ if (!e || !t) return;
5861
+ let n = new IntersectionObserver((e) => {
5862
+ for (let n of e) if (n.target === t) {
5863
+ _();
5864
+ break;
5865
+ }
5866
+ });
5867
+ n.observe(t), g.current = n, window.addEventListener("resize", _), e.style.opacity = "1", e.ariaHidden = "false", _();
5868
+ }, [_]), y = s(() => {
5869
+ let e = p.current;
5870
+ e && (e.style.opacity = "0", e.ariaHidden = "true", g.current?.disconnect(), g.current = void 0, window.removeEventListener("resize", _));
5871
+ }, [_]);
5845
5872
  return c(() => {
5846
- let e = g();
5847
- return p.current?.appendChild(e), m.current = e, () => {
5848
- p.current?.removeChild(e), m.current = null;
5873
+ let { arrow: t, dialog: n } = rt(e, l);
5874
+ return m.current = t, p.current = n, window.document.body.appendChild(n), y(), () => {
5875
+ window.document.body.removeChild(n), m.current = null, p.current = null, g.current?.disconnect(), g.current = void 0, window.removeEventListener("resize", _);
5849
5876
  };
5850
- }, [g]), /* @__PURE__ */ (0, D.jsx)($e, {
5851
- ref: p,
5852
- onMouseEnter: _,
5853
- onMouseLeave: v,
5877
+ }, [e, l]), /* @__PURE__ */ (0, D.jsx)($e, {
5878
+ ref: h,
5879
+ onMouseEnter: v,
5880
+ onMouseLeave: y,
5854
5881
  children: a
5855
5882
  });
5856
5883
  }
5857
- function tt(e) {
5858
- if (typeof window > "u") return G.zero;
5859
- let t = e.cloneNode(!1);
5860
- t.innerHTML = e.innerHTML, t.style.visibility = "hidden", t.style.whiteSpace = "pre", window.document.body.appendChild(t);
5861
- let n = t.getBoundingClientRect();
5862
- return window.document.body.removeChild(t), G.make(n.width, n.height);
5884
+ function rt(e, t) {
5885
+ let n = window.document.createElement("span");
5886
+ n.className = e, n.innerHTML = t, n.role = "tooltip", tt({
5887
+ boxSizing: "border-box",
5888
+ height: "auto",
5889
+ margin: "0",
5890
+ pointerEvents: "none",
5891
+ position: "fixed",
5892
+ userSelect: "none",
5893
+ zIndex: 100
5894
+ }, { target: n });
5895
+ let r = window.document.createElement("span");
5896
+ return tt({
5897
+ background: "inherit",
5898
+ position: "absolute"
5899
+ }, { target: r }), n.appendChild(r), {
5900
+ arrow: r,
5901
+ dialog: n
5902
+ };
5863
5903
  }
5864
- function nt(e, t) {
5865
- let n = K.fromViewport(), r = K.intersecting(e), i = r.left - n.left < t, a = n.right - r.right < t, o = r.top - n.top < t, s = n.bottom - r.bottom < t;
5866
- return i && o ? "br" : i && s ? "tr" : a && o ? "bl" : a && s ? "tl" : i ? "cr" : a ? "cl" : "tc";
5904
+ function it(e, t) {
5905
+ let n = K.fromViewport(), r = e.left - n.left < t, i = n.right - e.right < t, a = e.top - n.top < t, o = n.bottom - e.bottom < t;
5906
+ return r && a ? "br" : r && o ? "tr" : i && a ? "bl" : i && o ? "tl" : r ? "cr" : i ? "cl" : "tc";
5867
5907
  }
5868
- function rt({ alignment: e, arrowSize: t, fullDialogWidth: n, gap: r, maxDialogWidth: i, targetWidth: a }) {
5869
- let o = Math.min(n, i), s = a > o;
5908
+ function at(e, t, n, r, i) {
5909
+ let a = t.width, o = i.width > a, s = i.left + i.width / 2, c = i.top + i.height / 2, l = { width: `${a}px` };
5870
5910
  switch (e) {
5871
5911
  case "bc": return {
5872
- left: "50%",
5873
- top: `calc(100% + ${t.height}px + ${r}px)`,
5912
+ ...l,
5913
+ left: `${s}px`,
5914
+ top: `${i.bottom + n.height + r}px`,
5874
5915
  transform: "translateX(-50%)"
5875
5916
  };
5876
5917
  case "bl": return {
5877
- left: s ? "50%" : "",
5878
- right: s ? "" : "0",
5879
- top: `calc(100% + ${t.height}px + ${r}px)`,
5880
- transform: `translate(${o > a ? "0" : "-50%"}, 0)`
5918
+ ...l,
5919
+ left: o ? `${s}px` : `${i.right}px`,
5920
+ top: `${i.bottom + n.height + r}px`,
5921
+ transform: o ? "translateX(-50%)" : "translateX(-100%)"
5881
5922
  };
5882
5923
  case "br": return {
5883
- left: s ? "50%" : "0",
5884
- top: `calc(100% + ${t.height}px + ${r}px)`,
5885
- transform: `translate(${o > a ? "0" : "-50%"}, 0)`
5924
+ ...l,
5925
+ left: o ? `${s}px` : `${i.left}px`,
5926
+ top: `${i.bottom + n.height + r}px`,
5927
+ transform: o ? "translateX(-50%)" : ""
5886
5928
  };
5887
5929
  case "cl": return {
5888
- right: `calc(100% + ${t.height + r}px)`,
5889
- top: "50%",
5890
- transform: "translate(0, -50%)"
5930
+ ...l,
5931
+ left: `${i.left - n.height - r}px`,
5932
+ top: `${c}px`,
5933
+ transform: "translate(-100%, -50%)"
5891
5934
  };
5892
5935
  case "cr": return {
5893
- left: `calc(100% + ${t.height + r}px)`,
5894
- top: "50%",
5895
- transform: "translate(0, -50%)"
5936
+ ...l,
5937
+ left: `${i.right + n.height + r}px`,
5938
+ top: `${c}px`,
5939
+ transform: "translateY(-50%)"
5896
5940
  };
5897
5941
  case "tc": return {
5898
- bottom: `calc(100% + ${t.height}px + ${r}px)`,
5899
- left: "50%",
5900
- transform: "translateX(-50%)"
5942
+ ...l,
5943
+ left: `${s}px`,
5944
+ top: `${i.top - n.height - r}px`,
5945
+ transform: "translate(-50%, -100%)"
5901
5946
  };
5902
5947
  case "tl": return {
5903
- bottom: `calc(100% + ${t.height}px + ${r}px)`,
5904
- left: s ? "50%" : "",
5905
- right: s ? "" : "0",
5906
- transform: `translate(${o > a ? "0" : "-50%"}, 0)`
5948
+ ...l,
5949
+ left: o ? `${s}px` : `${i.right}px`,
5950
+ top: `${i.top - n.height - r}px`,
5951
+ transform: o ? "translate(-50%, -100%)" : "translate(-100%, -100%)"
5907
5952
  };
5908
5953
  case "tr": return {
5909
- bottom: `calc(100% + ${t.height}px + ${r}px)`,
5910
- left: s ? "50%" : "0",
5911
- transform: `translate(${o > a ? "0" : "-50%"}, 0)`
5954
+ ...l,
5955
+ left: o ? `${s}px` : `${i.left}px`,
5956
+ top: `${i.top - n.height - r}px`,
5957
+ transform: o ? "translate(-50%, -100%)" : "translateY(-100%)"
5912
5958
  };
5913
5959
  default: return console.error(`[etudes::WithTooltip] Invalid alignment: ${e}`), {};
5914
5960
  }
5915
5961
  }
5916
- function it({ alignment: e, arrowSize: t, fullDialogWidth: n, maxDialogWidth: r, targetWidth: i }) {
5917
- let a = i > Math.min(n, r);
5962
+ function ot(e, t, n, r) {
5963
+ let i = r.width, a = i > t.width, o = {
5964
+ bottom: "auto",
5965
+ height: `${n.height}px`,
5966
+ left: "auto",
5967
+ right: "auto",
5968
+ top: "auto",
5969
+ width: `${n.width}px`
5970
+ };
5918
5971
  switch (e) {
5919
5972
  case "bc": return {
5973
+ ...o,
5920
5974
  clipPath: "polygon(50% 0,100% 100%,0 100%)",
5921
- height: `${t.height}px`,
5922
5975
  left: "50%",
5923
5976
  top: "0",
5924
- transform: "translate(-50%, -100%)",
5925
- width: `${t.width}px`
5977
+ transform: "translate(-50%, -100%)"
5926
5978
  };
5927
5979
  case "bl": return {
5980
+ ...o,
5928
5981
  clipPath: "polygon(50% 0,100% 100%,0 100%)",
5929
- height: `${t.height}px`,
5930
5982
  left: a ? "50%" : "",
5931
- right: a ? "" : `${i - t.width / 2 - i / 2}px`,
5983
+ right: a ? "" : `${i - n.width / 2 - i / 2}px`,
5932
5984
  top: "0",
5933
- transform: `translate(${a ? "-50%" : "0"}, -100%)`,
5934
- width: `${t.width}px`
5985
+ transform: `translate(${a ? "-50%" : "0"}, -100%)`
5935
5986
  };
5936
5987
  case "br": return {
5988
+ ...o,
5937
5989
  clipPath: "polygon(50% 0,100% 100%,0 100%)",
5938
- height: `${t.height}px`,
5939
- left: a ? "50%" : `${i - t.width / 2 - i / 2}px`,
5990
+ left: a ? "50%" : `${i - n.width / 2 - i / 2}px`,
5940
5991
  top: "0",
5941
- transform: `translate(${a ? "-50%" : "0"}, -100%)`,
5942
- width: `${t.width}px`
5992
+ transform: `translate(${a ? "-50%" : "0"}, -100%)`
5943
5993
  };
5944
5994
  case "cl": return {
5995
+ ...o,
5945
5996
  clipPath: "polygon(0 0,100% 50%,0 100%)",
5946
- height: `${t.width}px`,
5947
5997
  right: "0",
5948
5998
  top: "50%",
5949
- transform: "translate(100%, -50%)",
5950
- width: `${t.height}px`
5999
+ transform: "translate(100%, -50%)"
5951
6000
  };
5952
6001
  case "cr": return {
6002
+ ...o,
5953
6003
  clipPath: "polygon(100% 0,0 50%,100% 100%)",
5954
- height: `${t.width}px`,
5955
6004
  left: "0",
5956
6005
  top: "50%",
5957
- transform: "translate(-100%, -50%)",
5958
- width: `${t.height}px`
6006
+ transform: "translate(-100%, -50%)"
5959
6007
  };
5960
6008
  case "tc": return {
6009
+ ...o,
5961
6010
  bottom: 0,
5962
- clipPath: "polygon(50% 100%,100% 0,0 0)",
5963
- height: `${t.height}px`,
6011
+ clipPath: "polygon(50% 100%, 100% 0, 0 0)",
5964
6012
  left: "50%",
5965
- transform: "translate(-50%, 100%)",
5966
- width: `${t.width}px`
6013
+ transform: "translate(-50%, 100%)"
5967
6014
  };
5968
6015
  case "tl": return {
6016
+ ...o,
5969
6017
  bottom: 0,
5970
- clipPath: "polygon(50% 100%,100% 0,0 0)",
5971
- height: `${t.height}px`,
6018
+ clipPath: "polygon(50% 100%, 100% 0, 0 0)",
5972
6019
  left: a ? "50%" : "",
5973
- right: a ? "" : `${i - t.width / 2 - i / 2}px`,
5974
- transform: `translate(${a ? "-50%" : "0"}, 100%)`,
5975
- width: `${t.width}px`
6020
+ right: a ? "" : `${i - n.width / 2 - i / 2}px`,
6021
+ transform: `translate(${a ? "-50%" : "0"}, 100%)`
5976
6022
  };
5977
6023
  case "tr": return {
6024
+ ...o,
5978
6025
  bottom: 0,
5979
- clipPath: "polygon(50% 100%,100% 0,0 0)",
5980
- height: `${t.height}px`,
5981
- left: a ? "50%" : `${i - t.width / 2 - i / 2}px`,
5982
- transform: `translate(${a ? "-50%" : "0"}, 100%)`,
5983
- width: `${t.width}px`
6026
+ clipPath: "polygon(50% 100%, 100% 0, 0 0)",
6027
+ left: a ? "50%" : `${i - n.width / 2 - i / 2}px`,
6028
+ transform: `translate(${a ? "-50%" : "0"}, 100%)`
5984
6029
  };
5985
6030
  default: return console.error(`[etudes::WithTooltip] Invalid alignment: ${e}`), {};
5986
6031
  }
5987
6032
  }
5988
- function at({ alignment: e, arrowSize: t, fullDialogWidth: n, gap: r, maxDialogWidth: i, targetWidth: a }) {
5989
- return j({
5990
- arrow: {
5991
- background: "inherit",
5992
- position: "absolute",
5993
- ...it({
5994
- alignment: e,
5995
- arrowSize: t,
5996
- fullDialogWidth: n,
5997
- gap: r,
5998
- maxDialogWidth: i,
5999
- targetWidth: a
6000
- })
6001
- },
6002
- dialog: {
6003
- boxSizing: "border-box",
6004
- height: "auto",
6005
- margin: "0",
6006
- opacity: "0",
6007
- pointerEvents: "none",
6008
- position: "absolute",
6009
- userSelect: "none",
6010
- whiteSpace: n > i ? "normal" : "pre",
6011
- width: n > i ? `${i}px` : "",
6012
- ...rt({
6013
- alignment: e,
6014
- arrowSize: t,
6015
- fullDialogWidth: n,
6016
- gap: r,
6017
- maxDialogWidth: i,
6018
- targetWidth: a
6019
- })
6020
- }
6021
- });
6022
- }
6023
- process.env.NODE_ENV === "development" && (et.displayName = "WithTooltip");
6033
+ process.env.NODE_ENV === "development" && (nt.displayName = "WithTooltip");
6024
6034
  //#endregion
6025
6035
  //#region src/hooks/useClassName.ts
6026
- function ot(e, { target: t, isEnabled: n = !0 } = {}) {
6036
+ function st(e, { target: t, isEnabled: n = !0 } = {}) {
6027
6037
  l(() => {
6028
6038
  if (!n) return;
6029
6039
  let r = t ?? window.document.documentElement, i = r.classList.contains(e);
@@ -6038,7 +6048,7 @@ function ot(e, { target: t, isEnabled: n = !0 } = {}) {
6038
6048
  }
6039
6049
  //#endregion
6040
6050
  //#region src/hooks/useClickOutside.ts
6041
- function st(e, t, { isEnabled: n = !0 } = {}) {
6051
+ function ct(e, t, { isEnabled: n = !0 } = {}) {
6042
6052
  let r = J(t), i = J([].concat(e));
6043
6053
  c(() => {
6044
6054
  if (!n) return;
@@ -6054,7 +6064,7 @@ function st(e, t, { isEnabled: n = !0 } = {}) {
6054
6064
  }
6055
6065
  //#endregion
6056
6066
  //#region src/hooks/useCopyBlobToClipboard.ts
6057
- function ct() {
6067
+ function lt() {
6058
6068
  return s(async (e) => {
6059
6069
  let t = e.type, n = new ClipboardItem({ [t]: e });
6060
6070
  try {
@@ -6066,7 +6076,7 @@ function ct() {
6066
6076
  }
6067
6077
  //#endregion
6068
6078
  //#region src/hooks/useDownloadBlob.ts
6069
- function lt() {
6079
+ function ut() {
6070
6080
  return s((e, t) => {
6071
6081
  let n = URL.createObjectURL(e), r = document.createElement("a");
6072
6082
  r.href = n, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
@@ -6074,17 +6084,17 @@ function lt() {
6074
6084
  }
6075
6085
  //#endregion
6076
6086
  //#region src/utils/getDPR.ts
6077
- function ut() {
6087
+ function dt() {
6078
6088
  return typeof window > "u" ? 1 : window.devicePixelRatio || 1;
6079
6089
  }
6080
6090
  //#endregion
6081
6091
  //#region src/hooks/useDPR.ts
6082
- function dt() {
6083
- return u(() => ut(), []);
6092
+ function ft() {
6093
+ return u(() => dt(), []);
6084
6094
  }
6085
6095
  //#endregion
6086
6096
  //#region src/hooks/useDrag.ts
6087
- function ft(e, { isEnabled: t = !0, shouldUpdateCursor: n = !0, onDragEnd: r, onDragMove: i, onDragStart: a }) {
6097
+ function pt(e, { isEnabled: t = !0, shouldUpdateCursor: n = !0, onDragEnd: r, onDragMove: i, onDragStart: a }) {
6088
6098
  let o = d(void 0), c = d(void 0), u = J(a), f = J(i), p = J(r), m = s((e) => {
6089
6099
  if (!o.current) return;
6090
6100
  let t = U.make(e.clientX, e.clientY), n = U.subtract(t, c.current ?? o.current);
@@ -6136,7 +6146,7 @@ function ft(e, { isEnabled: t = !0, shouldUpdateCursor: n = !0, onDragEnd: r, on
6136
6146
  }
6137
6147
  //#endregion
6138
6148
  //#region src/hooks/useDropzone.ts
6139
- function pt(e) {
6149
+ function mt(e) {
6140
6150
  let t = J(e), [n, r] = f(!1), i = s((e) => {
6141
6151
  e.preventDefault(), e.stopPropagation(), r(!0);
6142
6152
  }, []);
@@ -6155,7 +6165,7 @@ function pt(e) {
6155
6165
  }
6156
6166
  //#endregion
6157
6167
  //#region src/hooks/useInterval.ts
6158
- function mt(e, { shouldAutoStart: t = !0, shouldInvokeInitially: n = !1, onInterval: r }, i = []) {
6168
+ function ht(e, { shouldAutoStart: t = !0, shouldInvokeInitially: n = !1, onInterval: r }, i = []) {
6159
6169
  let a = d(void 0), o = J(r), l = s(() => {
6160
6170
  clearInterval(a.current), a.current = void 0;
6161
6171
  }, []), u = s(() => {
@@ -6180,7 +6190,7 @@ function mt(e, { shouldAutoStart: t = !0, shouldInvokeInitially: n = !1, onInter
6180
6190
  }
6181
6191
  //#endregion
6182
6192
  //#region src/hooks/useIsMounted.ts
6183
- function ht() {
6193
+ function gt() {
6184
6194
  let [e, t] = f(!1);
6185
6195
  return c(() => (t(!0), () => {
6186
6196
  t(!1);
@@ -6188,17 +6198,17 @@ function ht() {
6188
6198
  }
6189
6199
  //#endregion
6190
6200
  //#region src/utils/isTouchDevice.ts
6191
- function gt() {
6201
+ function _t() {
6192
6202
  return typeof window > "u" ? !1 : !!(window.navigator !== void 0 && (window.navigator.maxTouchPoints > 0 || "msMaxTouchPoints" in window.navigator && window.navigator.msMaxTouchPoints > 0) || window.matchMedia("(pointer: coarse)").matches || window.matchMedia("(hover: none)").matches || "ontouchstart" in window || "ontouchstart" in window.document.documentElement);
6193
6203
  }
6194
6204
  //#endregion
6195
6205
  //#region src/hooks/useIsTouchDevice.ts
6196
- function _t() {
6197
- return u(() => gt(), []);
6206
+ function vt() {
6207
+ return u(() => _t(), []);
6198
6208
  }
6199
6209
  //#endregion
6200
6210
  //#region src/hooks/useKeyboardShortcut.ts
6201
- function vt(e, t, { capture: n = !1, preventsDefault: r = !0, stopsPropagation: i = !0, target: a, isEnabled: o = !0 } = {}) {
6211
+ function yt(e, t, { capture: n = !1, preventsDefault: r = !0, stopsPropagation: i = !0, target: a, isEnabled: o = !0 } = {}) {
6202
6212
  let s = J(t), l = Array.isArray(e) ? e : [e], d = u(() => l.map((e) => e.toLowerCase()).sort(), [l.join(",")]);
6203
6213
  c(() => {
6204
6214
  if (!o || d.length === 0) return;
@@ -6227,46 +6237,46 @@ function vt(e, t, { capture: n = !1, preventsDefault: r = !0, stopsPropagation:
6227
6237
  }
6228
6238
  //#endregion
6229
6239
  //#region src/utils/createLocalCache.ts
6230
- var yt = typeof window < "u" ? window.localStorage : void 0;
6231
- function bt({ defaultTTL: e = 300 } = {}) {
6240
+ var bt = typeof window < "u" ? window.localStorage : void 0;
6241
+ function xt({ defaultTTL: e = 300 } = {}) {
6232
6242
  return {
6233
- get: Ct,
6234
- invalidate: xt,
6235
- set: (t, n, r = e) => wt(t, n, r)
6243
+ get: wt,
6244
+ invalidate: St,
6245
+ set: (t, n, r = e) => Tt(t, n, r)
6236
6246
  };
6237
6247
  }
6238
- function xt(e) {
6239
- yt?.removeItem(e);
6240
- }
6241
6248
  function St(e) {
6249
+ bt?.removeItem(e);
6250
+ }
6251
+ function Ct(e) {
6242
6252
  let { timestamp: t, ttl: n } = e;
6243
6253
  return (Date.now() - t) / 1e3 >= n;
6244
6254
  }
6245
- function Ct(e) {
6246
- let t = yt?.getItem(e);
6255
+ function wt(e) {
6256
+ let t = bt?.getItem(e);
6247
6257
  if (!t) return;
6248
6258
  let n = JSON.parse(t);
6249
- if (n) if (St(n)) {
6250
- xt(e);
6259
+ if (n) if (Ct(n)) {
6260
+ St(e);
6251
6261
  return;
6252
6262
  } else return n.value;
6253
6263
  }
6254
- function wt(e, t, n) {
6264
+ function Tt(e, t, n) {
6255
6265
  let r = {
6256
6266
  timestamp: Date.now(),
6257
6267
  ttl: n,
6258
6268
  value: e
6259
6269
  };
6260
- return yt?.setItem(t, JSON.stringify(r)), e;
6270
+ return bt?.setItem(t, JSON.stringify(r)), e;
6261
6271
  }
6262
6272
  //#endregion
6263
6273
  //#region src/hooks/useLocalCache.ts
6264
- function Tt(e) {
6265
- return u(() => bt({ defaultTTL: e }), [e]);
6274
+ function Et(e) {
6275
+ return u(() => xt({ defaultTTL: e }), [e]);
6266
6276
  }
6267
6277
  //#endregion
6268
6278
  //#region src/hooks/useMouseEnter.ts
6269
- function Et(e, t, { isEnabled: n = !0 } = {}) {
6279
+ function Dt(e, t, { isEnabled: n = !0 } = {}) {
6270
6280
  let r = J(t);
6271
6281
  l(() => {
6272
6282
  if (!n) return;
@@ -6281,7 +6291,7 @@ function Et(e, t, { isEnabled: n = !0 } = {}) {
6281
6291
  }
6282
6292
  //#endregion
6283
6293
  //#region src/hooks/useMouseLeave.ts
6284
- function Dt(e, t, { isEnabled: n = !0 } = {}) {
6294
+ function Ot(e, t, { isEnabled: n = !0 } = {}) {
6285
6295
  let r = J(t);
6286
6296
  l(() => {
6287
6297
  if (!n) return;
@@ -6296,7 +6306,7 @@ function Dt(e, t, { isEnabled: n = !0 } = {}) {
6296
6306
  }
6297
6307
  //#endregion
6298
6308
  //#region src/hooks/useOS.ts
6299
- function Ot() {
6309
+ function kt() {
6300
6310
  let e = navigator.userAgent || navigator.vendor || window.opera;
6301
6311
  return u(() => {
6302
6312
  switch (!0) {
@@ -6311,7 +6321,7 @@ function Ot() {
6311
6321
  }
6312
6322
  //#endregion
6313
6323
  //#region src/hooks/usePrevious.ts
6314
- function kt(e) {
6324
+ function At(e) {
6315
6325
  let t = d(void 0);
6316
6326
  return c(() => {
6317
6327
  t.current = e;
@@ -6319,11 +6329,11 @@ function kt(e) {
6319
6329
  }
6320
6330
  //#endregion
6321
6331
  //#region src/hooks/useScrollPosition.ts
6322
- function At(...e) {
6332
+ function jt(...e) {
6323
6333
  let t = typeof e[0] == "function" ? void 0 : e[0], n = typeof e[0] == "function" ? e[0] : e[1], r = typeof e[0] == "function" ? e[1] ?? [] : e[2] ?? [], i = J(n), a = d(void 0), o = d(!1);
6324
6334
  l(() => {
6325
- let e = jt(t), n = () => {
6326
- let t = e ? Nt(e) : Mt();
6335
+ let e = Mt(t), n = () => {
6336
+ let t = e ? Pt(e) : Nt();
6327
6337
  t && (i.current(t, a.current), a.current = t);
6328
6338
  }, r = () => {
6329
6339
  o.current || typeof requestAnimationFrame == "function" && (o.current = !0, requestAnimationFrame(() => {
@@ -6335,10 +6345,10 @@ function At(...e) {
6335
6345
  };
6336
6346
  }, [...r]);
6337
6347
  }
6338
- function jt(e) {
6348
+ function Mt(e) {
6339
6349
  if (e != null) return e instanceof HTMLElement ? e : e.current ?? void 0;
6340
6350
  }
6341
- function Mt() {
6351
+ function Nt() {
6342
6352
  let e = window.scrollX, t = window.scrollY, n = document.documentElement.scrollWidth - window.innerWidth, r = document.documentElement.scrollHeight - window.innerHeight;
6343
6353
  return {
6344
6354
  current: U.make(e, t),
@@ -6347,7 +6357,7 @@ function Mt() {
6347
6357
  start: U.make(0, 0)
6348
6358
  };
6349
6359
  }
6350
- function Nt(e) {
6360
+ function Pt(e) {
6351
6361
  let t = e.scrollLeft, n = e.scrollTop, r = e.scrollWidth - e.clientWidth, i = e.scrollHeight - e.clientHeight;
6352
6362
  return {
6353
6363
  current: U.make(t, n),
@@ -6358,46 +6368,46 @@ function Nt(e) {
6358
6368
  }
6359
6369
  //#endregion
6360
6370
  //#region src/utils/createSessionCache.ts
6361
- var Pt = typeof window < "u" ? window.sessionStorage : void 0;
6362
- function Ft({ defaultTTL: e = 300 } = {}) {
6371
+ var Ft = typeof window < "u" ? window.sessionStorage : void 0;
6372
+ function It({ defaultTTL: e = 300 } = {}) {
6363
6373
  return {
6364
- get: Rt,
6365
- invalidate: It,
6366
- set: (t, n, r = e) => zt(t, n, r)
6374
+ get: zt,
6375
+ invalidate: Lt,
6376
+ set: (t, n, r = e) => Bt(t, n, r)
6367
6377
  };
6368
6378
  }
6369
- function It(e) {
6370
- Pt?.removeItem(e);
6371
- }
6372
6379
  function Lt(e) {
6380
+ Ft?.removeItem(e);
6381
+ }
6382
+ function Rt(e) {
6373
6383
  let { timestamp: t, ttl: n } = e;
6374
6384
  return (Date.now() - t) / 1e3 >= n;
6375
6385
  }
6376
- function Rt(e) {
6377
- let t = Pt?.getItem(e);
6386
+ function zt(e) {
6387
+ let t = Ft?.getItem(e);
6378
6388
  if (!t) return;
6379
6389
  let n = JSON.parse(t);
6380
- if (n) if (Lt(n)) {
6381
- It(e);
6390
+ if (n) if (Rt(n)) {
6391
+ Lt(e);
6382
6392
  return;
6383
6393
  } else return n.value;
6384
6394
  }
6385
- function zt(e, t, n) {
6395
+ function Bt(e, t, n) {
6386
6396
  let r = {
6387
6397
  timestamp: Date.now(),
6388
6398
  ttl: n,
6389
6399
  value: e
6390
6400
  };
6391
- return Pt?.setItem(t, JSON.stringify(r)), e;
6401
+ return Ft?.setItem(t, JSON.stringify(r)), e;
6392
6402
  }
6393
6403
  //#endregion
6394
6404
  //#region src/hooks/useSessionCache.ts
6395
- function Bt(e) {
6396
- return u(() => Ft({ defaultTTL: e }), [e]);
6405
+ function Vt(e) {
6406
+ return u(() => It({ defaultTTL: e }), [e]);
6397
6407
  }
6398
6408
  //#endregion
6399
6409
  //#region src/hooks/useSize.ts
6400
- function Vt(e) {
6410
+ function Ht(e) {
6401
6411
  let [t, n] = f(G.zero);
6402
6412
  return te(e, (e) => {
6403
6413
  let t = K.from(e), r = K.size(t);
@@ -6406,29 +6416,29 @@ function Vt(e) {
6406
6416
  }
6407
6417
  //#endregion
6408
6418
  //#region src/utils/getStyle.ts
6409
- function Ht(e, { computed: t, target: n }) {
6419
+ function Ut(e, { computed: t, target: n }) {
6410
6420
  if (typeof window > "u") return;
6411
6421
  let r = n ?? window.document.documentElement;
6412
6422
  return t ? window.getComputedStyle(r).getPropertyValue(e) || void 0 : r.style.getPropertyValue(e) || void 0;
6413
6423
  }
6414
6424
  //#endregion
6415
6425
  //#region src/utils/setStyle.ts
6416
- function Ut(e, t, { target: n } = {}) {
6426
+ function Wt(e, t, { target: n } = {}) {
6417
6427
  if (typeof window > "u") return;
6418
6428
  let r = n ?? window.document.documentElement;
6419
6429
  t === void 0 ? r.style.removeProperty(e) : r.style.setProperty(e, t);
6420
6430
  }
6421
6431
  //#endregion
6422
6432
  //#region src/hooks/useStyle.ts
6423
- function Wt(e, t, { target: n, isEnabled: r = !0 } = {}) {
6433
+ function Gt(e, t, { target: n, isEnabled: r = !0 } = {}) {
6424
6434
  l(() => {
6425
6435
  if (!r) return;
6426
- let i = n ?? window.document.documentElement, a = Ht(e, {
6436
+ let i = n ?? window.document.documentElement, a = Ut(e, {
6427
6437
  computed: !1,
6428
6438
  target: i
6429
6439
  });
6430
- return Ut(e, t, { target: i }), () => {
6431
- Ut(e, a, { target: i });
6440
+ return Wt(e, t, { target: i }), () => {
6441
+ Wt(e, a, { target: i });
6432
6442
  };
6433
6443
  }, [
6434
6444
  e,
@@ -6439,7 +6449,7 @@ function Wt(e, t, { target: n, isEnabled: r = !0 } = {}) {
6439
6449
  }
6440
6450
  //#endregion
6441
6451
  //#region src/hooks/useSystemColorScheme.ts
6442
- function Gt(e = "light") {
6452
+ function Kt(e = "light") {
6443
6453
  let [t, n] = f(e);
6444
6454
  return l(() => {
6445
6455
  let e = window.matchMedia("(prefers-color-scheme: dark)");
@@ -6453,7 +6463,7 @@ function Gt(e = "light") {
6453
6463
  }
6454
6464
  //#endregion
6455
6465
  //#region src/hooks/useTimeout.ts
6456
- function Kt(e, { shouldAutoStart: t = !0, onTimeout: n }, r = []) {
6466
+ function qt(e, { shouldAutoStart: t = !0, onTimeout: n }, r = []) {
6457
6467
  let i = d(void 0), a = J(n), o = s(() => {
6458
6468
  i.current !== void 0 && (clearTimeout(i.current), i.current = void 0);
6459
6469
  }, []), l = s(() => {
@@ -6474,8 +6484,8 @@ function Kt(e, { shouldAutoStart: t = !0, onTimeout: n }, r = []) {
6474
6484
  }
6475
6485
  //#endregion
6476
6486
  //#region src/primitives/Collection.tsx
6477
- var qt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent: r, itemLength: i, itemPadding: a = 0, items: o = [], layout: s = "list", numSegments: l = 1, orientation: u = "vertical", selection: d, selectionMode: f = "none", isSelectionTogglable: p = !1, onActivateAt: m, onCustomEvent: h, onDeselectAt: g, onSelectAt: _, onSelectionChange: v, ...y }, b) => {
6478
- let x = Zt(d ?? [], o), S = $t({
6487
+ var Jt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent: r, itemLength: i, itemPadding: a = 0, items: o = [], layout: s = "list", numSegments: l = 1, orientation: u = "vertical", selection: d, selectionMode: f = "none", isSelectionTogglable: p = !1, onActivateAt: m, onCustomEvent: h, onDeselectAt: g, onSelectAt: _, onSelectionChange: v, ...y }, b) => {
6488
+ let x = Qt(d ?? [], o), S = en({
6479
6489
  itemLength: i,
6480
6490
  itemPadding: a,
6481
6491
  layout: s,
@@ -6488,7 +6498,7 @@ var qt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent
6488
6498
  let t;
6489
6499
  switch (f) {
6490
6500
  case "multiple":
6491
- t = (t) => Qt([...t.filter((t) => t !== e), e]);
6501
+ t = (t) => $t([...t.filter((t) => t !== e), e]);
6492
6502
  break;
6493
6503
  case "single":
6494
6504
  t = (t) => [e];
@@ -6520,7 +6530,7 @@ var qt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent
6520
6530
  }
6521
6531
  j(e, t);
6522
6532
  }, [f]);
6523
- let M = A(n, { item: Jt });
6533
+ let M = A(n, { item: Yt });
6524
6534
  return /* @__PURE__ */ (0, D.jsx)("div", {
6525
6535
  ...y,
6526
6536
  className: C(e),
@@ -6550,7 +6560,7 @@ var qt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent
6550
6560
  className: C({ active: i }),
6551
6561
  style: c,
6552
6562
  "aria-selected": i,
6553
- element: M.item ?? /* @__PURE__ */ (0, D.jsx)(Jt, {}),
6563
+ element: M.item ?? /* @__PURE__ */ (0, D.jsx)(Yt, {}),
6554
6564
  role: n,
6555
6565
  selectionMode: f,
6556
6566
  onActivateAt: m,
@@ -6560,23 +6570,23 @@ var qt = /* @__PURE__ */ a(({ className: e, style: t, children: n, ItemComponent
6560
6570
  }
6561
6571
  })
6562
6572
  });
6563
- }), Jt = ({ children: e, selectionMode: t, onActivateAt: n, ...r }) => n || t === "single" || t === "multiple" ? /* @__PURE__ */ (0, D.jsx)("button", {
6573
+ }), Yt = ({ children: e, selectionMode: t, onActivateAt: n, ...r }) => n || t === "single" || t === "multiple" ? /* @__PURE__ */ (0, D.jsx)("button", {
6564
6574
  ...r,
6565
6575
  children: e
6566
6576
  }) : /* @__PURE__ */ (0, D.jsx)("div", {
6567
6577
  ...r,
6568
6578
  children: e
6569
- }), Yt = /* @__PURE__ */ Object.assign(qt, { Item: Jt });
6570
- function Xt(e, t) {
6579
+ }), Xt = /* @__PURE__ */ Object.assign(Jt, { Item: Yt });
6580
+ function Zt(e, t) {
6571
6581
  return !!(isNaN(e) || e >= t.length || e < 0);
6572
6582
  }
6573
- function Zt(e, t) {
6574
- return Qt(e).filter((e) => !Xt(e, t));
6583
+ function Qt(e, t) {
6584
+ return $t(e).filter((e) => !Zt(e, t));
6575
6585
  }
6576
- function Qt(e) {
6586
+ function $t(e) {
6577
6587
  return e.sort((e, t) => e - t);
6578
6588
  }
6579
- function $t({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection", numSegments: r = 1, orientation: i = "vertical" }) {
6589
+ function en({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection", numSegments: r = 1, orientation: i = "vertical" }) {
6580
6590
  return j({
6581
6591
  item: {
6582
6592
  counterIncrement: "item-counter",
@@ -6614,11 +6624,11 @@ function $t({ itemLength: e = NaN, itemPadding: t = 0, layout: n = "collection",
6614
6624
  }
6615
6625
  });
6616
6626
  }
6617
- process.env.NODE_ENV === "development" && (qt.displayName = "Collection", Jt.displayName = "Collection.Item");
6627
+ process.env.NODE_ENV === "development" && (Jt.displayName = "Collection", Yt.displayName = "Collection.Item");
6618
6628
  //#endregion
6619
6629
  //#region src/primitives/Accordion.tsx
6620
- var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n, HeaderComponent: r, ItemComponent: i, orientation: a = "vertical", sectionPadding: o = 0, sections: s, selection: c, selectionMode: l = "single", shouldAutoCollapse: u = !1, onActivateAt: f, onCollapseSectionAt: p, onDeselectAt: m, onExpandedSectionsChange: h, onExpandSectionAt: g, onHeaderCustomEvent: _, onItemCustomEvent: v, onSelectAt: y, onSelectionChange: b, ...x }, S) => {
6621
- let w = un(c ?? {}, s), T = ln(n ?? [], s), E = fn({ orientation: a }), O = s.map(() => d(null)), k = O.map(Vt), j = (e, t) => (w[t]?.indexOf(e) ?? -1) >= 0, M = (e) => T.indexOf(e) >= 0, F = (e) => {
6630
+ var tn = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n, HeaderComponent: r, ItemComponent: i, orientation: a = "vertical", sectionPadding: o = 0, sections: s, selection: c, selectionMode: l = "single", shouldAutoCollapse: u = !1, onActivateAt: f, onCollapseSectionAt: p, onDeselectAt: m, onExpandedSectionsChange: h, onExpandSectionAt: g, onHeaderCustomEvent: _, onItemCustomEvent: v, onSelectAt: y, onSelectionChange: b, ...x }, S) => {
6631
+ let w = dn(c ?? {}, s), T = un(n ?? [], s), E = pn({ orientation: a }), O = s.map(() => d(null)), k = O.map(Ht), j = (e, t) => (w[t]?.indexOf(e) ?? -1) >= 0, M = (e) => T.indexOf(e) >= 0, F = (e) => {
6622
6632
  let t;
6623
6633
  t = M(e) ? (t) => t.filter((t) => t !== e) : u ? (t) => [e] : (t) => [...t.filter((t) => t !== e), e], R(T, t(T));
6624
6634
  }, I = (e, t) => {
@@ -6628,7 +6638,7 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6628
6638
  case "multiple":
6629
6639
  n = (n) => ({
6630
6640
  ...n,
6631
- [t]: dn([...(n[t] ?? []).filter((t) => t !== e), e])
6641
+ [t]: fn([...(n[t] ?? []).filter((t) => t !== e), e])
6632
6642
  });
6633
6643
  break;
6634
6644
  case "single":
@@ -6655,11 +6665,11 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6655
6665
  }
6656
6666
  r.forEach((e) => m?.(e[0], e[1])), i.forEach((e) => y?.(e[0], e[1])), b?.(t);
6657
6667
  }, B = A(t, {
6658
- collapseIcon: rn,
6659
- expandIcon: nn,
6660
- header: tn,
6661
- item: on,
6662
- section: an
6668
+ collapseIcon: an,
6669
+ expandIcon: rn,
6670
+ header: nn,
6671
+ item: sn,
6672
+ section: on
6663
6673
  });
6664
6674
  return /* @__PURE__ */ (0, D.jsx)("div", {
6665
6675
  ref: S,
@@ -6677,7 +6687,7 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6677
6687
  marginLeft: t === 0 ? "0px" : `${o}px`,
6678
6688
  ...S.width > 0 ? { width: `${T}px` } : { visibility: "hidden" }
6679
6689
  }),
6680
- element: B.section ?? /* @__PURE__ */ (0, D.jsx)(an, {}),
6690
+ element: B.section ?? /* @__PURE__ */ (0, D.jsx)(on, {}),
6681
6691
  children: [/* @__PURE__ */ (0, D.jsx)("div", {
6682
6692
  ref: O[t],
6683
6693
  style: P(E.headerContainer),
@@ -6701,7 +6711,7 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6701
6711
  }),
6702
6712
  style: P(E.header),
6703
6713
  "aria-expanded": !x,
6704
- element: B.header ?? /* @__PURE__ */ (0, D.jsx)(tn, {}),
6714
+ element: B.header ?? /* @__PURE__ */ (0, D.jsx)(nn, {}),
6705
6715
  role: "button",
6706
6716
  onClick: () => F(t),
6707
6717
  children: [/* @__PURE__ */ (0, D.jsx)("span", { dangerouslySetInnerHTML: { __html: e.label } }), B.expandIcon && /* @__PURE__ */ (0, D.jsx)(N, {
@@ -6726,7 +6736,7 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6726
6736
  width: `${b}px`
6727
6737
  }),
6728
6738
  role: "region",
6729
- children: /* @__PURE__ */ (0, D.jsx)(Yt, {
6739
+ children: /* @__PURE__ */ (0, D.jsx)(Xt, {
6730
6740
  className: C({
6731
6741
  collapsed: x,
6732
6742
  expanded: !x
@@ -6746,54 +6756,54 @@ var en = /* @__PURE__ */ a(({ style: e, children: t, expandedSectionIndices: n,
6746
6756
  onCustomEvent: (e, n, r) => v?.(e, t, n, r),
6747
6757
  onDeselectAt: (e) => L(e, t),
6748
6758
  onSelectAt: (e) => I(e, t),
6749
- children: !i && (B.item ?? /* @__PURE__ */ (0, D.jsx)(on, {}))
6759
+ children: !i && (B.item ?? /* @__PURE__ */ (0, D.jsx)(sn, {}))
6750
6760
  })
6751
6761
  })]
6752
6762
  });
6753
6763
  }
6754
6764
  })
6755
6765
  });
6756
- }), tn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
6766
+ }), nn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
6757
6767
  ...t,
6758
6768
  children: e
6759
- }), nn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
6769
+ }), rn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
6760
6770
  ...t,
6761
6771
  children: e
6762
- }), rn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
6772
+ }), an = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
6763
6773
  ...t,
6764
6774
  children: e
6765
- }), an = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
6775
+ }), on = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
6766
6776
  ...t,
6767
6777
  children: e
6768
- }), on = Yt.Item, sn = /* @__PURE__ */ Object.assign(en, {
6769
- Header: tn,
6770
- ExpandIcon: nn,
6771
- CollapseIcon: rn,
6772
- Section: an,
6773
- Item: on
6778
+ }), sn = Xt.Item, cn = /* @__PURE__ */ Object.assign(tn, {
6779
+ Header: nn,
6780
+ ExpandIcon: rn,
6781
+ CollapseIcon: an,
6782
+ Section: on,
6783
+ Item: sn
6774
6784
  });
6775
- function cn(e, t) {
6785
+ function X(e, t) {
6776
6786
  return e >= t.length || e < 0;
6777
6787
  }
6778
- function X(e, t, n) {
6779
- return !!(cn(t, n) || e >= (n[t].items ?? []).length || e < 0);
6780
- }
6781
- function ln(e, t) {
6782
- return dn(e).filter((e) => !cn(e, t));
6788
+ function ln(e, t, n) {
6789
+ return !!(X(t, n) || e >= (n[t].items ?? []).length || e < 0);
6783
6790
  }
6784
6791
  function un(e, t) {
6792
+ return fn(e).filter((e) => !X(e, t));
6793
+ }
6794
+ function dn(e, t) {
6785
6795
  let n = {};
6786
6796
  for (let r in t) {
6787
6797
  if (!Object.hasOwn(t, r)) continue;
6788
- let i = dn([...e[r] ?? []]);
6789
- n[Number(r)] = dn(i).filter((e) => !X(e, Number(r), t));
6798
+ let i = fn([...e[r] ?? []]);
6799
+ n[Number(r)] = fn(i).filter((e) => !ln(e, Number(r), t));
6790
6800
  }
6791
6801
  return n;
6792
6802
  }
6793
- function dn(e) {
6803
+ function fn(e) {
6794
6804
  return e.sort((e, t) => e - t);
6795
6805
  }
6796
- function fn({ orientation: e = "vertical" }) {
6806
+ function pn({ orientation: e = "vertical" }) {
6797
6807
  return j({
6798
6808
  collapseIcon: {
6799
6809
  pointerEvents: "none",
@@ -6845,11 +6855,11 @@ function fn({ orientation: e = "vertical" }) {
6845
6855
  }
6846
6856
  });
6847
6857
  }
6848
- process.env.NODE_ENV === "development" && (en.displayName = "Accordion", tn.displayName = "Accordion.Header", nn.displayName = "Accordion.ExpandIcon", rn.displayName = "Accordion.CollapseIcon", on.displayName = "Accordion.Item");
6858
+ process.env.NODE_ENV === "development" && (tn.displayName = "Accordion", nn.displayName = "Accordion.Header", rn.displayName = "Accordion.ExpandIcon", an.displayName = "Accordion.CollapseIcon", sn.displayName = "Accordion.Item");
6849
6859
  //#endregion
6850
6860
  //#region src/primitives/Carousel.tsx
6851
- var pn = /* @__PURE__ */ a(({ autoAdvanceInterval: e = 0, dragSpeed: t = 1, index: n = 0, ItemComponent: r, items: i = [], orientation: a = "horizontal", isDragEnabled: o = !0, shouldTrackExposure: c = !1, onAutoAdvancePause: u, onAutoAdvanceResume: p, onIndexChange: m, ...h }, g) => {
6852
- let _ = d(void 0), v = d(null), y = d(void 0), b = d(void 0), x = d(void 0), S = 1e3, C = J(u), w = J(p), T = J(m), E = d(U.zero), O = d(!1), k = d(!1), A = _t(), [j, M] = f(hn(v, a)), [N, F] = f(!1), I = _n({
6861
+ var mn = /* @__PURE__ */ a(({ autoAdvanceInterval: e = 0, dragSpeed: t = 1, index: n = 0, ItemComponent: r, items: i = [], orientation: a = "horizontal", isDragEnabled: o = !0, shouldTrackExposure: c = !1, onAutoAdvancePause: u, onAutoAdvanceResume: p, onIndexChange: m, ...h }, g) => {
6862
+ let _ = d(void 0), v = d(null), y = d(void 0), b = d(void 0), x = d(void 0), S = 1e3, C = J(u), w = J(p), T = J(m), E = d(U.zero), O = d(!1), k = d(!1), A = vt(), [j, M] = f(gn(v, a)), [N, F] = f(!1), I = vn({
6853
6863
  orientation: a,
6854
6864
  scrollSnapEnabled: A || !N
6855
6865
  }), L = e > 0, R = s(() => {
@@ -6859,9 +6869,9 @@ var pn = /* @__PURE__ */ a(({ autoAdvanceInterval: e = 0, dragSpeed: t = 1, inde
6859
6869
  clearTimeout(x.current), x.current = void 0;
6860
6870
  }, S);
6861
6871
  }, [S, R]), B = s(() => {
6862
- mn(v, n, a), z();
6872
+ hn(v, n, a), z();
6863
6873
  }, [n, a]), V = s(() => {
6864
- M(hn(v, a));
6874
+ M(gn(v, a));
6865
6875
  }, [a]), H = s((e) => {
6866
6876
  A || (y.current = U.make(e.clientX, e.clientY), F(!0));
6867
6877
  }, [A]), W = s((e) => {
@@ -6909,10 +6919,10 @@ var pn = /* @__PURE__ */ a(({ autoAdvanceInterval: e = 0, dragSpeed: t = 1, inde
6909
6919
  c,
6910
6920
  V
6911
6921
  ]);
6912
- return ft(v, {
6922
+ return pt(v, {
6913
6923
  isEnabled: !A && o && i.length > 1,
6914
6924
  onDragMove: q
6915
- }), mt(N || !L ? -1 : e, { onInterval: K }, [n]), l(() => {
6925
+ }), ht(N || !L ? -1 : e, { onInterval: K }, [n]), l(() => {
6916
6926
  !L || A || (N ? C.current?.() : w.current?.());
6917
6927
  }, [
6918
6928
  A,
@@ -6958,7 +6968,7 @@ var pn = /* @__PURE__ */ a(({ autoAdvanceInterval: e = 0, dragSpeed: t = 1, inde
6958
6968
  })
6959
6969
  });
6960
6970
  });
6961
- function mn(e, t, n) {
6971
+ function hn(e, t, n) {
6962
6972
  let r = e?.current;
6963
6973
  if (!r) return;
6964
6974
  let i = n === "horizontal" ? 0 : r.clientHeight * t, a = n === "horizontal" ? r.clientWidth * t : 0;
@@ -6968,14 +6978,14 @@ function mn(e, t, n) {
6968
6978
  top: i
6969
6979
  });
6970
6980
  }
6971
- function hn(e, t) {
6981
+ function gn(e, t) {
6972
6982
  let n = e?.current;
6973
6983
  if (!n) return;
6974
6984
  let r = [];
6975
- for (let i = 0; i < n.children.length; i++) r.push(gn(i, e, t));
6985
+ for (let i = 0; i < n.children.length; i++) r.push(_n(i, e, t));
6976
6986
  return r;
6977
6987
  }
6978
- function gn(e, t, n) {
6988
+ function _n(e, t, n) {
6979
6989
  let r = t?.current, i = r?.children[e];
6980
6990
  if (!i) return 0;
6981
6991
  let a = K.intersecting(i, r);
@@ -6985,7 +6995,7 @@ function gn(e, t, n) {
6985
6995
  default: return console.error(`[etudes::Carousel] Unsupported orientation: ${n}`), NaN;
6986
6996
  }
6987
6997
  }
6988
- function _n({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
6998
+ function vn({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
6989
6999
  return j({
6990
7000
  item: {
6991
7001
  height: "100%",
@@ -7021,15 +7031,15 @@ function _n({ orientation: e = "horizontal", scrollSnapEnabled: t = !1 }) {
7021
7031
  }
7022
7032
  });
7023
7033
  }
7024
- process.env.NODE_ENV === "development" && (pn.displayName = "Carousel");
7034
+ process.env.NODE_ENV === "development" && (mn.displayName = "Carousel");
7025
7035
  //#endregion
7026
7036
  //#region src/primitives/CodeInput.tsx
7027
- var vn = /* @__PURE__ */ a(({ style: e, autoComplete: t = "one-time-code", autoFocus: n = !1, children: r, inputMode: i = "numeric", placeholder: a, size: o, value: s, isDisabled: l = !1, isRequired: u = !0, onChange: f, ...p }, m) => {
7028
- let h = Sn(s, o), g = d([]), _ = xn(), v = A(r, { field: yn }), y = (e) => {
7037
+ var yn = /* @__PURE__ */ a(({ style: e, autoComplete: t = "one-time-code", autoFocus: n = !1, children: r, inputMode: i = "numeric", placeholder: a, size: o, value: s, isDisabled: l = !1, isRequired: u = !0, onChange: f, ...p }, m) => {
7038
+ let h = Cn(s, o), g = d([]), _ = Sn(), v = A(r, { field: bn }), y = (e) => {
7029
7039
  e < 0 ? g.current[0]?.focus() : e >= o ? g.current[o - 1]?.focus() : g.current[e]?.focus();
7030
7040
  }, b = (e) => (t) => {
7031
- let n = h[e], r = wn(t.target.value, n);
7032
- f(Cn(h.slice(), r.split("").slice(0, o), e)), y(Math.min(e + r.length, o - 1));
7041
+ let n = h[e], r = Tn(t.target.value, n);
7042
+ f(wn(h.slice(), r.split("").slice(0, o), e)), y(Math.min(e + r.length, o - 1));
7033
7043
  }, x = (e) => (t) => {
7034
7044
  switch (t.key) {
7035
7045
  case "ArrowLeft":
@@ -7049,7 +7059,7 @@ var vn = /* @__PURE__ */ a(({ style: e, autoComplete: t = "one-time-code", autoF
7049
7059
  }, S = (e) => (t) => {
7050
7060
  t.preventDefault();
7051
7061
  let n = t.clipboardData.getData("text").trim();
7052
- f(Cn(h.slice(), n.split("").slice(0, o), e)), y(Math.min(e + n.length, o - 1));
7062
+ f(wn(h.slice(), n.split("").slice(0, o), e)), y(Math.min(e + n.length, o - 1));
7053
7063
  };
7054
7064
  return c(() => {
7055
7065
  if (!n) return;
@@ -7068,7 +7078,7 @@ var vn = /* @__PURE__ */ a(({ style: e, autoComplete: t = "one-time-code", autoF
7068
7078
  "aria-required": u,
7069
7079
  autoComplete: t,
7070
7080
  disabled: l,
7071
- element: v.field ?? /* @__PURE__ */ (0, D.jsx)(yn, {}),
7081
+ element: v.field ?? /* @__PURE__ */ (0, D.jsx)(bn, {}),
7072
7082
  inputMode: i,
7073
7083
  placeholder: a,
7074
7084
  required: u,
@@ -7079,13 +7089,13 @@ var vn = /* @__PURE__ */ a(({ style: e, autoComplete: t = "one-time-code", autoF
7079
7089
  })
7080
7090
  })
7081
7091
  });
7082
- }), yn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("input", {
7092
+ }), bn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("input", {
7083
7093
  ...e,
7084
7094
  autoCapitalize: "off",
7085
7095
  autoCorrect: "off",
7086
7096
  type: "text"
7087
- }), bn = /* @__PURE__ */ Object.assign(vn, { Field: yn });
7088
- function xn() {
7097
+ }), xn = /* @__PURE__ */ Object.assign(yn, { Field: bn });
7098
+ function Sn() {
7089
7099
  return j({
7090
7100
  field: {
7091
7101
  caretColor: "transparent",
@@ -7099,24 +7109,24 @@ function xn() {
7099
7109
  }
7100
7110
  });
7101
7111
  }
7102
- function Sn(e, t) {
7112
+ function Cn(e, t) {
7103
7113
  let n = e.slice(0, t);
7104
7114
  for (; n.length < t;) n.push("");
7105
7115
  return n;
7106
7116
  }
7107
- function Cn(e, t, n = 0) {
7117
+ function wn(e, t, n = 0) {
7108
7118
  let r = n, i = 0;
7109
7119
  for (; i < t.length && r < e.length;) e[r] = t[i], r++, i++;
7110
7120
  for (; i < t.length;) e.shift(), e.push(t[i]), i++;
7111
7121
  return e;
7112
7122
  }
7113
- function wn(e, t) {
7123
+ function Tn(e, t) {
7114
7124
  return t === "" ? e : e.startsWith(t) ? e.slice(t.length) : e.endsWith(t) ? e.slice(0, -t.length) : e;
7115
7125
  }
7116
- process.env.NODE_ENV === "development" && (vn.displayName = "CodeInput", yn.displayName = "CodeInput.Field");
7126
+ process.env.NODE_ENV === "development" && (yn.displayName = "CodeInput", bn.displayName = "CodeInput.Field");
7117
7127
  //#endregion
7118
7128
  //#region src/primitives/TextField.tsx
7119
- var Tn = /* @__PURE__ */ a(({ className: e, emptyValue: t = "", formatter: n, placeholder: r, type: i = "text", value: a, isDisabled: o = !1, isRequired: c = !1, onChange: l, onFocus: u, onUnfocus: d, ...f }, p) => {
7129
+ var En = /* @__PURE__ */ a(({ className: e, emptyValue: t = "", formatter: n, placeholder: r, type: i = "text", value: a, isDisabled: o = !1, isRequired: c = !1, onChange: l, onFocus: u, onUnfocus: d, ...f }, p) => {
7120
7130
  let m = s((e) => {
7121
7131
  let r = (n?.(e) ?? e) || t;
7122
7132
  l?.(r);
@@ -7138,10 +7148,10 @@ var Tn = /* @__PURE__ */ a(({ className: e, emptyValue: t = "", formatter: n, pl
7138
7148
  onFocus: ({ target: e }) => u?.(e.value)
7139
7149
  });
7140
7150
  });
7141
- process.env.NODE_ENV === "development" && (Tn.displayName = "TextField");
7151
+ process.env.NODE_ENV === "development" && (En.displayName = "TextField");
7142
7152
  //#endregion
7143
7153
  //#region src/primitives/Counter.tsx
7144
- var En = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r = NaN, min: i = NaN, quantity: a = 0, onChange: o, ...s }, l) => {
7154
+ var Dn = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r = NaN, min: i = NaN, quantity: a = 0, onChange: o, ...s }, l) => {
7145
7155
  let u = () => {
7146
7156
  o?.(_(a - 1));
7147
7157
  }, d = () => {
@@ -7157,7 +7167,7 @@ var En = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r
7157
7167
  }, _ = (e) => {
7158
7168
  let t = e;
7159
7169
  return isNaN(i) || (t = Math.max(i, t)), isNaN(r) || (t = Math.min(r, t)), t;
7160
- }, [v, y] = f(h(a)), b = kt(a), x = !isNaN(r) && a + 1 > r, S = !isNaN(i) && a - 1 < i;
7170
+ }, [v, y] = f(h(a)), b = At(a), x = !isNaN(r) && a + 1 > r, S = !isNaN(i) && a - 1 < i;
7161
7171
  c(() => {
7162
7172
  b === void 0 || b === a || y(h(_(a)));
7163
7173
  }, [
@@ -7166,24 +7176,24 @@ var En = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r
7166
7176
  r
7167
7177
  ]);
7168
7178
  let w = A(n, {
7169
- addButton: On,
7170
- subscribeButton: kn,
7171
- textField: Dn
7179
+ addButton: kn,
7180
+ subscribeButton: An,
7181
+ textField: On
7172
7182
  });
7173
7183
  return /* @__PURE__ */ (0, D.jsxs)("div", {
7174
7184
  ...s,
7175
7185
  ref: l,
7176
- style: P(e, jn.root),
7186
+ style: P(e, Mn.root),
7177
7187
  children: [
7178
7188
  /* @__PURE__ */ (0, D.jsx)(N, {
7179
7189
  className: C({ disabled: S }),
7180
- style: P(jn.subtract),
7181
- element: w.subscribeButton ?? /* @__PURE__ */ (0, D.jsx)(kn, {}),
7190
+ style: P(Mn.subtract),
7191
+ element: w.subscribeButton ?? /* @__PURE__ */ (0, D.jsx)(An, {}),
7182
7192
  onClick: () => u()
7183
7193
  }),
7184
7194
  /* @__PURE__ */ (0, D.jsx)(N, {
7185
- style: P(jn.textField),
7186
- element: w.textField ?? /* @__PURE__ */ (0, D.jsx)(Dn, {}),
7195
+ style: P(Mn.textField),
7196
+ element: w.textField ?? /* @__PURE__ */ (0, D.jsx)(On, {}),
7187
7197
  value: v,
7188
7198
  isDisabled: !t,
7189
7199
  onChange: p,
@@ -7191,23 +7201,23 @@ var En = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r
7191
7201
  }),
7192
7202
  /* @__PURE__ */ (0, D.jsx)(N, {
7193
7203
  className: C({ disabled: x }),
7194
- style: P(jn.add),
7195
- element: w.addButton ?? /* @__PURE__ */ (0, D.jsx)(On, {}),
7204
+ style: P(Mn.add),
7205
+ element: w.addButton ?? /* @__PURE__ */ (0, D.jsx)(kn, {}),
7196
7206
  onClick: () => d()
7197
7207
  })
7198
7208
  ]
7199
7209
  });
7200
- }), Dn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)(Tn, { ...e }), On = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7210
+ }), On = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)(En, { ...e }), kn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7201
7211
  ...t,
7202
7212
  children: e
7203
- }), kn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7213
+ }), An = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7204
7214
  ...t,
7205
7215
  children: e
7206
- }), An = /* @__PURE__ */ Object.assign(En, {
7207
- TextField: Dn,
7208
- AddButton: On,
7209
- SubtractButton: kn
7210
- }), jn = j({
7216
+ }), jn = /* @__PURE__ */ Object.assign(Dn, {
7217
+ TextField: On,
7218
+ AddButton: kn,
7219
+ SubtractButton: An
7220
+ }), Mn = j({
7211
7221
  add: { flex: "0 0 auto" },
7212
7222
  root: {
7213
7223
  alignItems: "stretch",
@@ -7218,14 +7228,14 @@ var En = /* @__PURE__ */ a(({ style: e, allowsInput: t = !0, children: n, max: r
7218
7228
  subtract: { flex: "0 0 auto" },
7219
7229
  textField: { width: "100%" }
7220
7230
  });
7221
- process.env.NODE_ENV === "development" && (En.displayName = "Counter", On.displayName = "Counter.AddButton", kn.displayName = "Counter.SubtractButton", Dn.displayName = "Counter.TextField");
7231
+ process.env.NODE_ENV === "development" && (Dn.displayName = "Counter", kn.displayName = "Counter.AddButton", An.displayName = "Counter.SubtractButton", On.displayName = "Counter.TextField");
7222
7232
  //#endregion
7223
7233
  //#region src/primitives/Dial.tsx
7224
- var Mn = /* @__PURE__ */ a(({ style: e, angle: t = 0, children: n, knobLength: r = 30, knobThickness: i = 10, radius: a = 50, trackGap: o = 0, trackThickness: s = 2, ...c }, l) => {
7234
+ var Nn = /* @__PURE__ */ a(({ style: e, angle: t = 0, children: n, knobLength: r = 30, knobThickness: i = 10, radius: a = 50, trackGap: o = 0, trackThickness: s = 2, ...c }, l) => {
7225
7235
  let u = a * 2, d = Math.max(0, Math.min(360, r)), f = A(n, {
7226
- knob: Pn,
7227
- track: Nn
7228
- }), p = Rn({
7236
+ knob: Fn,
7237
+ track: Pn
7238
+ }), p = zn({
7229
7239
  angle: t,
7230
7240
  diameter: u
7231
7241
  });
@@ -7243,7 +7253,7 @@ var Mn = /* @__PURE__ */ a(({ style: e, angle: t = 0, children: n, knobLength: r
7243
7253
  children: /* @__PURE__ */ (0, D.jsx)(N, {
7244
7254
  cx: a,
7245
7255
  cy: a,
7246
- element: f.track ?? /* @__PURE__ */ (0, D.jsx)(Nn, {}),
7256
+ element: f.track ?? /* @__PURE__ */ (0, D.jsx)(Pn, {}),
7247
7257
  fill: "none",
7248
7258
  r: a - s / 2,
7249
7259
  strokeDasharray: o,
@@ -7257,27 +7267,27 @@ var Mn = /* @__PURE__ */ a(({ style: e, angle: t = 0, children: n, knobLength: r
7257
7267
  viewBox: `0 0 ${u} ${u}`,
7258
7268
  xmlns: "http://www.w3.org/2000/svg",
7259
7269
  children: /* @__PURE__ */ (0, D.jsx)(N, {
7260
- d: Ln(a, a, a - i / 2 - (s - i) / 2, -d / 2, d / 2),
7261
- element: f.knob ?? /* @__PURE__ */ (0, D.jsx)(Pn, {}),
7270
+ d: Rn(a, a, a - i / 2 - (s - i) / 2, -d / 2, d / 2),
7271
+ element: f.knob ?? /* @__PURE__ */ (0, D.jsx)(Fn, {}),
7262
7272
  fill: "none",
7263
7273
  strokeWidth: i
7264
7274
  })
7265
7275
  })
7266
7276
  })]
7267
7277
  });
7268
- }), Nn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("circle", { ...e }), Pn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("path", { ...e }), Fn = /* @__PURE__ */ Object.assign(Mn, {
7269
- Track: Nn,
7270
- Knob: Pn
7278
+ }), Pn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("circle", { ...e }), Fn = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("path", { ...e }), In = /* @__PURE__ */ Object.assign(Nn, {
7279
+ Track: Pn,
7280
+ Knob: Fn
7271
7281
  });
7272
- function In(e, t, n, r) {
7282
+ function Ln(e, t, n, r) {
7273
7283
  let i = (r - 90) * Math.PI / 180;
7274
7284
  return {
7275
7285
  x: e + n * Math.cos(i),
7276
7286
  y: t + n * Math.sin(i)
7277
7287
  };
7278
7288
  }
7279
- function Ln(e, t, n, r, i) {
7280
- let a = In(e, t, n, i), o = In(e, t, n, r), s = i - r <= 180 ? "0" : "1";
7289
+ function Rn(e, t, n, r, i) {
7290
+ let a = Ln(e, t, n, i), o = Ln(e, t, n, r), s = i - r <= 180 ? "0" : "1";
7281
7291
  return [
7282
7292
  "M",
7283
7293
  a.x,
@@ -7292,7 +7302,7 @@ function Ln(e, t, n, r, i) {
7292
7302
  o.y
7293
7303
  ].join(" ");
7294
7304
  }
7295
- function Rn({ angle: e = 0, diameter: t = 0 }) {
7305
+ function zn({ angle: e = 0, diameter: t = 0 }) {
7296
7306
  return j({
7297
7307
  knobContainer: {
7298
7308
  backgroundPosition: "center",
@@ -7326,11 +7336,11 @@ function Rn({ angle: e = 0, diameter: t = 0 }) {
7326
7336
  }
7327
7337
  });
7328
7338
  }
7329
- process.env.NODE_ENV === "development" && (Fn.displayName = "Dial", Nn.displayName = "Dial.Track", Pn.displayName = "Dial.Knob");
7339
+ process.env.NODE_ENV === "development" && (In.displayName = "Dial", Pn.displayName = "Dial.Track", Fn.displayName = "Dial.Knob");
7330
7340
  //#endregion
7331
7341
  //#region src/primitives/Dropdown.tsx
7332
- var zn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPadding: r = 0, ItemComponent: i, itemLength: a, itemPadding: o = 0, items: s = [], label: l, layout: u = "list", maxVisibleItems: p = -1, numSegments: m = 1, orientation: h = "vertical", selection: g = [], selectionMode: _ = "single", ToggleComponent: v, isCollapsed: y, isInverted: b = !1, isSelectionTogglable: x = !1, shouldCollapseOnSelect: S = !0, onActivateAt: w, onCollapse: T, onDeselectAt: E, onExpand: O, onSelectAt: k, onSelectionChange: j, onToggleCustomEvent: M, ...F }, I) => {
7333
- let L = d(null), R = re(L), z = s.length, B = Yn(s, p, m, u), V = a ?? (h === "vertical" ? R.height : R.width), H = V * B + o * (B - 1), U = qn(g, s), [W, G] = f(y ?? !0), K = Xn({
7342
+ var Bn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPadding: r = 0, ItemComponent: i, itemLength: a, itemPadding: o = 0, items: s = [], label: l, layout: u = "list", maxVisibleItems: p = -1, numSegments: m = 1, orientation: h = "vertical", selection: g = [], selectionMode: _ = "single", ToggleComponent: v, isCollapsed: y, isInverted: b = !1, isSelectionTogglable: x = !1, shouldCollapseOnSelect: S = !0, onActivateAt: w, onCollapse: T, onDeselectAt: E, onExpand: O, onSelectAt: k, onSelectionChange: j, onToggleCustomEvent: M, ...F }, I) => {
7343
+ let L = d(null), R = re(L), z = s.length, B = Xn(s, p, m, u), V = a ?? (h === "vertical" ? R.height : R.width), H = V * B + o * (B - 1), U = Jn(g, s), [W, G] = f(y ?? !0), K = Zn({
7334
7344
  collectionPadding: r,
7335
7345
  maxVisibleItems: p,
7336
7346
  menuLength: H,
@@ -7339,11 +7349,11 @@ var zn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPad
7339
7349
  isCollapsed: W,
7340
7350
  isInverted: b
7341
7351
  }), q = A(n, {
7342
- collapseIcon: Un,
7343
- collection: Bn,
7344
- expandIcon: Wn,
7345
- item: Vn,
7346
- toggle: Hn
7352
+ collapseIcon: Wn,
7353
+ collection: Vn,
7354
+ expandIcon: Gn,
7355
+ item: Hn,
7356
+ toggle: Un
7347
7357
  }), J = () => {
7348
7358
  W && (G(!1), O?.());
7349
7359
  }, ee = () => {
@@ -7401,7 +7411,7 @@ var zn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPad
7401
7411
  style: P(K.toggle),
7402
7412
  "aria-expanded": !W,
7403
7413
  "aria-haspopup": "listbox",
7404
- element: q.toggle ?? /* @__PURE__ */ (0, D.jsx)(Hn, {}),
7414
+ element: q.toggle ?? /* @__PURE__ */ (0, D.jsx)(Un, {}),
7405
7415
  onClick: te,
7406
7416
  children: [/* @__PURE__ */ (0, D.jsx)("span", { dangerouslySetInnerHTML: { __html: l?.(U) ?? (U.length > 0 ? U.map((e) => s[e]).join(", ") : "") } }), q.expandIcon && /* @__PURE__ */ (0, D.jsx)(N, {
7407
7417
  className: C({
@@ -7413,7 +7423,7 @@ var zn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPad
7413
7423
  })]
7414
7424
  }), /* @__PURE__ */ (0, D.jsx)(N, {
7415
7425
  style: P(K.collection),
7416
- element: q.collection ?? /* @__PURE__ */ (0, D.jsx)(Bn, {}),
7426
+ element: q.collection ?? /* @__PURE__ */ (0, D.jsx)(Vn, {}),
7417
7427
  ItemComponent: i,
7418
7428
  itemLength: V,
7419
7429
  itemPadding: o,
@@ -7428,38 +7438,38 @@ var zn = /* @__PURE__ */ a(({ className: e, style: t, children: n, collectionPad
7428
7438
  onDeselectAt: E,
7429
7439
  onSelectAt: ne,
7430
7440
  onSelectionChange: j,
7431
- children: !i && (q.item ?? /* @__PURE__ */ (0, D.jsx)(Vn, {}))
7441
+ children: !i && (q.item ?? /* @__PURE__ */ (0, D.jsx)(Hn, {}))
7432
7442
  })]
7433
7443
  })
7434
7444
  });
7435
- }), Bn = Yt, Vn = Yt.Item, Hn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7445
+ }), Vn = Xt, Hn = Xt.Item, Un = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("button", {
7436
7446
  ...t,
7437
7447
  children: e
7438
- }), Un = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
7448
+ }), Wn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
7439
7449
  ...t,
7440
7450
  "aria-hidden": !0,
7441
7451
  children: e
7442
- }), Wn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
7452
+ }), Gn = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("figure", {
7443
7453
  ...t,
7444
7454
  "aria-hidden": !0,
7445
7455
  children: e
7446
- }), Gn = /* @__PURE__ */ Object.assign(zn, {
7447
- Collection: Bn,
7448
- CollapseIcon: Un,
7449
- ExpandIcon: Wn,
7450
- Item: Vn,
7451
- Toggle: Hn
7456
+ }), Kn = /* @__PURE__ */ Object.assign(Bn, {
7457
+ Collection: Vn,
7458
+ CollapseIcon: Wn,
7459
+ ExpandIcon: Gn,
7460
+ Item: Hn,
7461
+ Toggle: Un
7452
7462
  });
7453
- function Kn(e, t) {
7463
+ function qn(e, t) {
7454
7464
  return !!(isNaN(e) || e >= t.length || e < 0);
7455
7465
  }
7456
- function qn(e, t) {
7457
- return Jn(e).filter((e) => !Kn(e, t));
7466
+ function Jn(e, t) {
7467
+ return Yn(e).filter((e) => !qn(e, t));
7458
7468
  }
7459
- function Jn(e) {
7469
+ function Yn(e) {
7460
7470
  return e.sort((e, t) => e - t);
7461
7471
  }
7462
- function Yn(e, t, n, r) {
7472
+ function Xn(e, t, n, r) {
7463
7473
  let i = e.length;
7464
7474
  switch (r) {
7465
7475
  case "grid": {
@@ -7469,7 +7479,7 @@ function Yn(e, t, n, r) {
7469
7479
  default: return t < 0 ? i : Math.min(i, t);
7470
7480
  }
7471
7481
  }
7472
- function Xn({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n = NaN, numItems: r = 0, orientation: i = "vertical", isCollapsed: a = !0, isInverted: o = !1 }) {
7482
+ function Zn({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n = NaN, numItems: r = 0, orientation: i = "vertical", isCollapsed: a = !0, isInverted: o = !1 }) {
7473
7483
  return j({
7474
7484
  body: {
7475
7485
  height: "100%",
@@ -7528,13 +7538,13 @@ function Xn({ collectionPadding: e = 0, maxVisibleItems: t = 0, menuLength: n =
7528
7538
  }
7529
7539
  });
7530
7540
  }
7531
- process.env.NODE_ENV === "development" && (zn.displayName = "Dropdown", Bn.displayName = "Dropdown.Collection", Un.displayName = "Dropdown.CollapseIcon", Wn.displayName = "Dropdown.ExpandIcon", Vn.displayName = "Dropdown.Item", Hn.displayName = "Dropdown.Toggle");
7541
+ process.env.NODE_ENV === "development" && (Bn.displayName = "Dropdown", Vn.displayName = "Dropdown.Collection", Wn.displayName = "Dropdown.CollapseIcon", Gn.displayName = "Dropdown.ExpandIcon", Hn.displayName = "Dropdown.Item", Un.displayName = "Dropdown.Toggle");
7532
7542
  //#endregion
7533
7543
  //#region node_modules/fast-xml-parser/src/util.js
7534
- var Zn = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
7535
- Zn + "";
7536
- var Qn = "[" + Zn + "][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*", $n = RegExp("^" + Qn + "$");
7537
- function er(e, t) {
7544
+ var Qn = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
7545
+ Qn + "";
7546
+ var $n = "[" + Qn + "][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*", er = RegExp("^" + $n + "$");
7547
+ function tr(e, t) {
7538
7548
  let n = [], r = t.exec(e);
7539
7549
  for (; r;) {
7540
7550
  let i = [];
@@ -7545,13 +7555,13 @@ function er(e, t) {
7545
7555
  }
7546
7556
  return n;
7547
7557
  }
7548
- var tr = function(e) {
7549
- return $n.exec(e) != null;
7558
+ var nr = function(e) {
7559
+ return er.exec(e) != null;
7550
7560
  };
7551
- function nr(e) {
7561
+ function rr(e) {
7552
7562
  return e !== void 0;
7553
7563
  }
7554
- var rr = [
7564
+ var ir = [
7555
7565
  "hasOwnProperty",
7556
7566
  "toString",
7557
7567
  "valueOf",
@@ -7559,41 +7569,41 @@ var rr = [
7559
7569
  "__defineSetter__",
7560
7570
  "__lookupGetter__",
7561
7571
  "__lookupSetter__"
7562
- ], ir = [
7572
+ ], ar = [
7563
7573
  "__proto__",
7564
7574
  "constructor",
7565
7575
  "prototype"
7566
- ], ar = {
7576
+ ], or = {
7567
7577
  allowBooleanAttributes: !1,
7568
7578
  unpairedTags: []
7569
7579
  };
7570
- function or(e, t) {
7571
- t = Object.assign({}, ar, t);
7580
+ function sr(e, t) {
7581
+ t = Object.assign({}, or, t);
7572
7582
  let n = [], r = !1, i = !1;
7573
7583
  e[0] === "" && (e = e.substr(1));
7574
7584
  for (let a = 0; a < e.length; a++) if (e[a] === "<" && e[a + 1] === "?") {
7575
- if (a += 2, a = cr(e, a), a.err) return a;
7585
+ if (a += 2, a = lr(e, a), a.err) return a;
7576
7586
  } else if (e[a] === "<") {
7577
7587
  let o = a;
7578
7588
  if (a++, e[a] === "!") {
7579
- a = lr(e, a);
7589
+ a = ur(e, a);
7580
7590
  continue;
7581
7591
  } else {
7582
7592
  let s = !1;
7583
7593
  e[a] === "/" && (s = !0, a++);
7584
7594
  let c = "";
7585
7595
  for (; a < e.length && e[a] !== ">" && e[a] !== " " && e[a] !== " " && e[a] !== "\n" && e[a] !== "\r"; a++) c += e[a];
7586
- if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !vr(c)) {
7596
+ if (c = c.trim(), c[c.length - 1] === "/" && (c = c.substring(0, c.length - 1), a--), !yr(c)) {
7587
7597
  let t;
7588
7598
  return t = c.trim().length === 0 ? "Invalid space after '<'." : "Tag '" + c + "' is an invalid name.", Z("InvalidTag", t, Q(e, a));
7589
7599
  }
7590
- let l = fr(e, a);
7600
+ let l = pr(e, a);
7591
7601
  if (l === !1) return Z("InvalidAttr", "Attributes for '" + c + "' have open quote.", Q(e, a));
7592
7602
  let u = l.value;
7593
7603
  if (a = l.index, u[u.length - 1] === "/") {
7594
7604
  let n = a - u.length;
7595
7605
  u = u.substring(0, u.length - 1);
7596
- let i = mr(u, t);
7606
+ let i = hr(u, t);
7597
7607
  if (i === !0) r = !0;
7598
7608
  else return Z(i.err.code, i.err.msg, Q(e, n + i.err.line));
7599
7609
  } else if (s) {
@@ -7609,7 +7619,7 @@ function or(e, t) {
7609
7619
  n.length == 0 && (i = !0);
7610
7620
  }
7611
7621
  } else {
7612
- let s = mr(u, t);
7622
+ let s = hr(u, t);
7613
7623
  if (s !== !0) return Z(s.err.code, s.err.msg, Q(e, a - u.length + s.err.line));
7614
7624
  if (i === !0) return Z("InvalidXml", "Multiple possible root nodes found.", Q(e, a));
7615
7625
  t.unpairedTags.indexOf(c) !== -1 || n.push({
@@ -7618,20 +7628,20 @@ function or(e, t) {
7618
7628
  }), r = !0;
7619
7629
  }
7620
7630
  for (a++; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "!") {
7621
- a++, a = lr(e, a);
7631
+ a++, a = ur(e, a);
7622
7632
  continue;
7623
7633
  } else if (e[a + 1] === "?") {
7624
- if (a = cr(e, ++a), a.err) return a;
7634
+ if (a = lr(e, ++a), a.err) return a;
7625
7635
  } else break;
7626
7636
  else if (e[a] === "&") {
7627
- let t = gr(e, a);
7637
+ let t = _r(e, a);
7628
7638
  if (t == -1) return Z("InvalidChar", "char '&' is not expected.", Q(e, a));
7629
7639
  a = t;
7630
- } else if (i === !0 && !sr(e[a])) return Z("InvalidXml", "Extra text at the end", Q(e, a));
7640
+ } else if (i === !0 && !cr(e[a])) return Z("InvalidXml", "Extra text at the end", Q(e, a));
7631
7641
  e[a] === "<" && a--;
7632
7642
  }
7633
7643
  } else {
7634
- if (sr(e[a])) continue;
7644
+ if (cr(e[a])) continue;
7635
7645
  return Z("InvalidChar", "char '" + e[a] + "' is not expected.", Q(e, a));
7636
7646
  }
7637
7647
  return r ? n.length == 1 ? Z("InvalidTag", "Unclosed tag '" + n[0].tagName + "'.", Q(e, n[0].tagStartPos)) : n.length > 0 ? Z("InvalidXml", "Invalid '" + JSON.stringify(n.map((e) => e.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", {
@@ -7639,10 +7649,10 @@ function or(e, t) {
7639
7649
  col: 1
7640
7650
  }) : !0 : Z("InvalidXml", "Start tag expected.", 1);
7641
7651
  }
7642
- function sr(e) {
7652
+ function cr(e) {
7643
7653
  return e === " " || e === " " || e === "\n" || e === "\r";
7644
7654
  }
7645
- function cr(e, t) {
7655
+ function lr(e, t) {
7646
7656
  let n = t;
7647
7657
  for (; t < e.length; t++) if (e[t] == "?" || e[t] == " ") {
7648
7658
  let r = e.substr(n, t - n);
@@ -7654,7 +7664,7 @@ function cr(e, t) {
7654
7664
  }
7655
7665
  return t;
7656
7666
  }
7657
- function lr(e, t) {
7667
+ function ur(e, t) {
7658
7668
  if (e.length > t + 5 && e[t + 1] === "-" && e[t + 2] === "-") {
7659
7669
  for (t += 3; t < e.length; t++) if (e[t] === "-" && e[t + 1] === "-" && e[t + 2] === ">") {
7660
7670
  t += 2;
@@ -7672,11 +7682,11 @@ function lr(e, t) {
7672
7682
  }
7673
7683
  return t;
7674
7684
  }
7675
- var ur = "\"", dr = "'";
7676
- function fr(e, t) {
7685
+ var dr = "\"", fr = "'";
7686
+ function pr(e, t) {
7677
7687
  let n = "", r = "", i = !1;
7678
7688
  for (; t < e.length; t++) {
7679
- if (e[t] === ur || e[t] === dr) r === "" ? r = e[t] : r !== e[t] || (r = "");
7689
+ if (e[t] === dr || e[t] === fr) r === "" ? r = e[t] : r !== e[t] || (r = "");
7680
7690
  else if (e[t] === ">" && r === "") {
7681
7691
  i = !0;
7682
7692
  break;
@@ -7689,21 +7699,21 @@ function fr(e, t) {
7689
7699
  tagClosed: i
7690
7700
  } : !1;
7691
7701
  }
7692
- var pr = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
7693
- function mr(e, t) {
7694
- let n = er(e, pr), r = {};
7702
+ var mr = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
7703
+ function hr(e, t) {
7704
+ let n = tr(e, mr), r = {};
7695
7705
  for (let e = 0; e < n.length; e++) {
7696
- if (n[e][1].length === 0) return Z("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", yr(n[e]));
7697
- if (n[e][3] !== void 0 && n[e][4] === void 0) return Z("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", yr(n[e]));
7698
- if (n[e][3] === void 0 && !t.allowBooleanAttributes) return Z("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", yr(n[e]));
7706
+ if (n[e][1].length === 0) return Z("InvalidAttr", "Attribute '" + n[e][2] + "' has no space in starting.", br(n[e]));
7707
+ if (n[e][3] !== void 0 && n[e][4] === void 0) return Z("InvalidAttr", "Attribute '" + n[e][2] + "' is without value.", br(n[e]));
7708
+ if (n[e][3] === void 0 && !t.allowBooleanAttributes) return Z("InvalidAttr", "boolean attribute '" + n[e][2] + "' is not allowed.", br(n[e]));
7699
7709
  let i = n[e][2];
7700
- if (!_r(i)) return Z("InvalidAttr", "Attribute '" + i + "' is an invalid name.", yr(n[e]));
7710
+ if (!vr(i)) return Z("InvalidAttr", "Attribute '" + i + "' is an invalid name.", br(n[e]));
7701
7711
  if (!Object.prototype.hasOwnProperty.call(r, i)) r[i] = 1;
7702
- else return Z("InvalidAttr", "Attribute '" + i + "' is repeated.", yr(n[e]));
7712
+ else return Z("InvalidAttr", "Attribute '" + i + "' is repeated.", br(n[e]));
7703
7713
  }
7704
7714
  return !0;
7705
7715
  }
7706
- function hr(e, t) {
7716
+ function gr(e, t) {
7707
7717
  let n = /\d/;
7708
7718
  for (e[t] === "x" && (t++, n = /[\da-fA-F]/); t < e.length; t++) {
7709
7719
  if (e[t] === ";") return t;
@@ -7711,9 +7721,9 @@ function hr(e, t) {
7711
7721
  }
7712
7722
  return -1;
7713
7723
  }
7714
- function gr(e, t) {
7724
+ function _r(e, t) {
7715
7725
  if (t++, e[t] === ";") return -1;
7716
- if (e[t] === "#") return t++, hr(e, t);
7726
+ if (e[t] === "#") return t++, gr(e, t);
7717
7727
  let n = 0;
7718
7728
  for (; t < e.length; t++, n++) if (!(e[t].match(/\w/) && n < 20)) {
7719
7729
  if (e[t] === ";") break;
@@ -7729,11 +7739,11 @@ function Z(e, t, n) {
7729
7739
  col: n.col
7730
7740
  } };
7731
7741
  }
7732
- function _r(e) {
7733
- return tr(e);
7734
- }
7735
7742
  function vr(e) {
7736
- return tr(e);
7743
+ return nr(e);
7744
+ }
7745
+ function yr(e) {
7746
+ return nr(e);
7737
7747
  }
7738
7748
  function Q(e, t) {
7739
7749
  let n = e.substring(0, t).split(/\r?\n/);
@@ -7742,12 +7752,12 @@ function Q(e, t) {
7742
7752
  col: n[n.length - 1].length + 1
7743
7753
  };
7744
7754
  }
7745
- function yr(e) {
7755
+ function br(e) {
7746
7756
  return e.startIndex + e[1].length;
7747
7757
  }
7748
7758
  //#endregion
7749
7759
  //#region node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js
7750
- var br = (e) => rr.includes(e) ? "__" + e : e, xr = {
7760
+ var xr = (e) => ir.includes(e) ? "__" + e : e, Sr = {
7751
7761
  preserveOrder: !1,
7752
7762
  attributeNamePrefix: "@_",
7753
7763
  attributesGroupName: !1,
@@ -7788,14 +7798,14 @@ var br = (e) => rr.includes(e) ? "__" + e : e, xr = {
7788
7798
  maxNestedTags: 100,
7789
7799
  strictReservedNames: !0,
7790
7800
  jPath: !0,
7791
- onDangerousProperty: br
7801
+ onDangerousProperty: xr
7792
7802
  };
7793
- function Sr(e, t) {
7803
+ function Cr(e, t) {
7794
7804
  if (typeof e != "string") return;
7795
7805
  let n = e.toLowerCase();
7796
- if (rr.some((e) => n === e.toLowerCase()) || ir.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
7806
+ if (ir.some((e) => n === e.toLowerCase()) || ar.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
7797
7807
  }
7798
- function Cr(e) {
7808
+ function wr(e) {
7799
7809
  return typeof e == "boolean" ? {
7800
7810
  enabled: e,
7801
7811
  maxEntitySize: 1e4,
@@ -7814,10 +7824,10 @@ function Cr(e) {
7814
7824
  maxEntityCount: Math.max(1, e.maxEntityCount ?? 100),
7815
7825
  allowedTags: e.allowedTags ?? null,
7816
7826
  tagFilter: e.tagFilter ?? null
7817
- } : Cr(!0);
7827
+ } : wr(!0);
7818
7828
  }
7819
- var wr = function(e) {
7820
- let t = Object.assign({}, xr, e), n = [
7829
+ var Tr = function(e) {
7830
+ let t = Object.assign({}, Sr, e), n = [
7821
7831
  {
7822
7832
  value: t.attributeNamePrefix,
7823
7833
  name: "attributeNamePrefix"
@@ -7839,9 +7849,9 @@ var wr = function(e) {
7839
7849
  name: "commentPropName"
7840
7850
  }
7841
7851
  ];
7842
- for (let { value: e, name: t } of n) e && Sr(e, t);
7843
- return t.onDangerousProperty === null && (t.onDangerousProperty = br), t.processEntities = Cr(t.processEntities), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
7844
- }, Tr = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", Er = class {
7852
+ for (let { value: e, name: t } of n) e && Cr(e, t);
7853
+ return t.onDangerousProperty === null && (t.onDangerousProperty = xr), t.processEntities = wr(t.processEntities), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
7854
+ }, Er = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", Dr = class {
7845
7855
  constructor(e) {
7846
7856
  this.tagname = e, this.child = [], this[":@"] = Object.create(null);
7847
7857
  }
@@ -7852,12 +7862,12 @@ var wr = function(e) {
7852
7862
  e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
7853
7863
  [e.tagname]: e.child,
7854
7864
  ":@": e[":@"]
7855
- }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Tr] = { startIndex: t });
7865
+ }) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Er] = { startIndex: t });
7856
7866
  }
7857
7867
  static getMetaDataSymbol() {
7858
- return Tr;
7868
+ return Er;
7859
7869
  }
7860
- }, Dr = class {
7870
+ }, Or = class {
7861
7871
  constructor(e) {
7862
7872
  this.suppressValidationErr = !e, this.options = e;
7863
7873
  }
@@ -7867,7 +7877,7 @@ var wr = function(e) {
7867
7877
  t += 9;
7868
7878
  let i = 1, a = !1, o = !1, s = "";
7869
7879
  for (; t < e.length; t++) if (e[t] === "<" && !o) {
7870
- if (a && Or(e, "!ENTITY", t)) {
7880
+ if (a && kr(e, "!ENTITY", t)) {
7871
7881
  t += 7;
7872
7882
  let i, a;
7873
7883
  if ([i, a, t] = this.readEntityExp(e, t + 1, this.suppressValidationErr), a.indexOf("&") === -1) {
@@ -7878,16 +7888,16 @@ var wr = function(e) {
7878
7888
  val: a
7879
7889
  }, r++;
7880
7890
  }
7881
- } else if (a && Or(e, "!ELEMENT", t)) {
7891
+ } else if (a && kr(e, "!ELEMENT", t)) {
7882
7892
  t += 8;
7883
7893
  let { index: n } = this.readElementExp(e, t + 1);
7884
7894
  t = n;
7885
- } else if (a && Or(e, "!ATTLIST", t)) t += 8;
7886
- else if (a && Or(e, "!NOTATION", t)) {
7895
+ } else if (a && kr(e, "!ATTLIST", t)) t += 8;
7896
+ else if (a && kr(e, "!NOTATION", t)) {
7887
7897
  t += 9;
7888
7898
  let { index: n } = this.readNotationExp(e, t + 1, this.suppressValidationErr);
7889
7899
  t = n;
7890
- } else if (Or(e, "!--", t)) o = !0;
7900
+ } else if (kr(e, "!--", t)) o = !0;
7891
7901
  else throw Error("Invalid DOCTYPE");
7892
7902
  i++, s = "";
7893
7903
  } else if (e[t] === ">") {
@@ -7905,7 +7915,7 @@ var wr = function(e) {
7905
7915
  let n = t;
7906
7916
  for (; t < e.length && !/\s/.test(e[t]) && e[t] !== "\"" && e[t] !== "'";) t++;
7907
7917
  let r = e.substring(n, t);
7908
- if (kr(r), t = $(e, t), !this.suppressValidationErr) {
7918
+ if (Ar(r), t = $(e, t), !this.suppressValidationErr) {
7909
7919
  if (e.substring(t, t + 6).toUpperCase() === "SYSTEM") throw Error("External entities are not supported");
7910
7920
  if (e[t] === "%") throw Error("Parameter entities are not supported");
7911
7921
  }
@@ -7922,7 +7932,7 @@ var wr = function(e) {
7922
7932
  let n = t;
7923
7933
  for (; t < e.length && !/\s/.test(e[t]);) t++;
7924
7934
  let r = e.substring(n, t);
7925
- !this.suppressValidationErr && kr(r), t = $(e, t);
7935
+ !this.suppressValidationErr && Ar(r), t = $(e, t);
7926
7936
  let i = e.substring(t, t + 6).toUpperCase();
7927
7937
  if (!this.suppressValidationErr && i !== "SYSTEM" && i !== "PUBLIC") throw Error(`Expected SYSTEM or PUBLIC, found "${i}"`);
7928
7938
  t += i.length, t = $(e, t);
@@ -7950,11 +7960,11 @@ var wr = function(e) {
7950
7960
  let n = t;
7951
7961
  for (; t < e.length && !/\s/.test(e[t]);) t++;
7952
7962
  let r = e.substring(n, t);
7953
- if (!this.suppressValidationErr && !tr(r)) throw Error(`Invalid element name: "${r}"`);
7963
+ if (!this.suppressValidationErr && !nr(r)) throw Error(`Invalid element name: "${r}"`);
7954
7964
  t = $(e, t);
7955
7965
  let i = "";
7956
- if (e[t] === "E" && Or(e, "MPTY", t)) t += 4;
7957
- else if (e[t] === "A" && Or(e, "NY", t)) t += 2;
7966
+ if (e[t] === "E" && kr(e, "MPTY", t)) t += 4;
7967
+ else if (e[t] === "A" && kr(e, "NY", t)) t += 2;
7958
7968
  else if (e[t] === "(") {
7959
7969
  t++;
7960
7970
  let n = t;
@@ -7972,9 +7982,9 @@ var wr = function(e) {
7972
7982
  let n = t;
7973
7983
  for (; t < e.length && !/\s/.test(e[t]);) t++;
7974
7984
  let r = e.substring(n, t);
7975
- for (kr(r), t = $(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
7985
+ for (Ar(r), t = $(e, t), n = t; t < e.length && !/\s/.test(e[t]);) t++;
7976
7986
  let i = e.substring(n, t);
7977
- if (!kr(i)) throw Error(`Invalid attribute name: "${i}"`);
7987
+ if (!Ar(i)) throw Error(`Invalid attribute name: "${i}"`);
7978
7988
  t = $(e, t);
7979
7989
  let a = "";
7980
7990
  if (e.substring(t, t + 8).toUpperCase() === "NOTATION") {
@@ -7985,7 +7995,7 @@ var wr = function(e) {
7985
7995
  let r = t;
7986
7996
  for (; t < e.length && e[t] !== "|" && e[t] !== ")";) t++;
7987
7997
  let i = e.substring(r, t);
7988
- if (i = i.trim(), !kr(i)) throw Error(`Invalid notation name: "${i}"`);
7998
+ if (i = i.trim(), !Ar(i)) throw Error(`Invalid notation name: "${i}"`);
7989
7999
  n.push(i), e[t] === "|" && (t++, t = $(e, t));
7990
8000
  }
7991
8001
  if (e[t] !== ")") throw Error("Unterminated list of notations");
@@ -8018,35 +8028,35 @@ var wr = function(e) {
8018
8028
  for (; t < e.length && /\s/.test(e[t]);) t++;
8019
8029
  return t;
8020
8030
  };
8021
- function Or(e, t, n) {
8031
+ function kr(e, t, n) {
8022
8032
  for (let r = 0; r < t.length; r++) if (t[r] !== e[n + r + 1]) return !1;
8023
8033
  return !0;
8024
8034
  }
8025
- function kr(e) {
8026
- if (tr(e)) return e;
8035
+ function Ar(e) {
8036
+ if (nr(e)) return e;
8027
8037
  throw Error(`Invalid entity name ${e}`);
8028
8038
  }
8029
8039
  //#endregion
8030
8040
  //#region node_modules/strnum/strnum.js
8031
- var Ar = /^[-+]?0x[a-fA-F0-9]+$/, jr = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Mr = {
8041
+ var jr = /^[-+]?0x[a-fA-F0-9]+$/, Mr = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, Nr = {
8032
8042
  hex: !0,
8033
8043
  leadingZeros: !0,
8034
8044
  decimalPoint: ".",
8035
8045
  eNotation: !0,
8036
8046
  infinity: "original"
8037
8047
  };
8038
- function Nr(e, t = {}) {
8039
- if (t = Object.assign({}, Mr, t), !e || typeof e != "string") return e;
8048
+ function Pr(e, t = {}) {
8049
+ if (t = Object.assign({}, Nr, t), !e || typeof e != "string") return e;
8040
8050
  let n = e.trim();
8041
8051
  if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
8042
8052
  if (n === "0") return 0;
8043
- if (t.hex && Ar.test(n)) return Lr(n, 16);
8044
- if (!isFinite(n)) return Rr(e, Number(n), t);
8045
- if (n.includes("e") || n.includes("E")) return Fr(e, n, t);
8053
+ if (t.hex && jr.test(n)) return Rr(n, 16);
8054
+ if (!isFinite(n)) return zr(e, Number(n), t);
8055
+ if (n.includes("e") || n.includes("E")) return Ir(e, n, t);
8046
8056
  {
8047
- let r = jr.exec(n);
8057
+ let r = Mr.exec(n);
8048
8058
  if (r) {
8049
- let i = r[1] || "", a = r[2], o = Ir(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
8059
+ let i = r[1] || "", a = r[2], o = Lr(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
8050
8060
  if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
8051
8061
  {
8052
8062
  let r = Number(n), s = String(r);
@@ -8059,25 +8069,25 @@ function Nr(e, t = {}) {
8059
8069
  } else return e;
8060
8070
  }
8061
8071
  }
8062
- var Pr = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
8063
- function Fr(e, t, n) {
8072
+ var Fr = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
8073
+ function Ir(e, t, n) {
8064
8074
  if (!n.eNotation) return e;
8065
- let r = t.match(Pr);
8075
+ let r = t.match(Fr);
8066
8076
  if (r) {
8067
8077
  let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
8068
8078
  return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
8069
8079
  } else return e;
8070
8080
  }
8071
- function Ir(e) {
8081
+ function Lr(e) {
8072
8082
  return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
8073
8083
  }
8074
- function Lr(e, t) {
8084
+ function Rr(e, t) {
8075
8085
  if (parseInt) return parseInt(e, t);
8076
8086
  if (Number.parseInt) return Number.parseInt(e, t);
8077
8087
  if (window && window.parseInt) return window.parseInt(e, t);
8078
8088
  throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
8079
8089
  }
8080
- function Rr(e, t, n) {
8090
+ function zr(e, t, n) {
8081
8091
  let r = t === Infinity;
8082
8092
  switch (n.infinity.toLowerCase()) {
8083
8093
  case "null": return null;
@@ -8088,14 +8098,14 @@ function Rr(e, t, n) {
8088
8098
  }
8089
8099
  //#endregion
8090
8100
  //#region node_modules/fast-xml-parser/src/ignoreAttributes.js
8091
- function zr(e) {
8101
+ function Br(e) {
8092
8102
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
8093
8103
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
8094
8104
  } : () => !1;
8095
8105
  }
8096
8106
  //#endregion
8097
8107
  //#region node_modules/path-expression-matcher/src/Expression.js
8098
- var Br = class {
8108
+ var Vr = class {
8099
8109
  constructor(e, t = {}) {
8100
8110
  this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
8101
8111
  }
@@ -8151,13 +8161,13 @@ var Br = class {
8151
8161
  toString() {
8152
8162
  return this.pattern;
8153
8163
  }
8154
- }, Vr = new Set([
8164
+ }, Hr = new Set([
8155
8165
  "push",
8156
8166
  "pop",
8157
8167
  "reset",
8158
8168
  "updateCurrent",
8159
8169
  "restore"
8160
- ]), Hr = class {
8170
+ ]), Ur = class {
8161
8171
  constructor(e = {}) {
8162
8172
  this.separator = e.separator || ".", this.path = [], this.siblingStacks = [];
8163
8173
  }
@@ -8288,7 +8298,7 @@ var Br = class {
8288
8298
  readOnly() {
8289
8299
  return new Proxy(this, {
8290
8300
  get(e, t, n) {
8291
- if (Vr.has(t)) return () => {
8301
+ if (Hr.has(t)) return () => {
8292
8302
  throw TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`);
8293
8303
  };
8294
8304
  let r = Reflect.get(e, t, n);
@@ -8305,7 +8315,7 @@ var Br = class {
8305
8315
  };
8306
8316
  //#endregion
8307
8317
  //#region node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
8308
- function Ur(e, t) {
8318
+ function Wr(e, t) {
8309
8319
  if (!e) return {};
8310
8320
  let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
8311
8321
  if (!n) return {};
@@ -8316,7 +8326,7 @@ function Ur(e, t) {
8316
8326
  } else r[e] = n[e];
8317
8327
  return r;
8318
8328
  }
8319
- function Wr(e) {
8329
+ function Gr(e) {
8320
8330
  if (!e || typeof e != "string") return;
8321
8331
  let t = e.indexOf(":");
8322
8332
  if (t !== -1 && t > 0) {
@@ -8324,7 +8334,7 @@ function Wr(e) {
8324
8334
  if (n !== "xmlns") return n;
8325
8335
  }
8326
8336
  }
8327
- var Gr = class {
8337
+ var Kr = class {
8328
8338
  constructor(e) {
8329
8339
  if (this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
8330
8340
  apos: {
@@ -8381,22 +8391,22 @@ var Gr = class {
8381
8391
  },
8382
8392
  num_dec: {
8383
8393
  regex: /&#([0-9]{1,7});/g,
8384
- val: (e, t) => si(t, 10, "&#")
8394
+ val: (e, t) => ci(t, 10, "&#")
8385
8395
  },
8386
8396
  num_hex: {
8387
8397
  regex: /&#x([0-9a-fA-F]{1,6});/g,
8388
- val: (e, t) => si(t, 16, "&#x")
8398
+ val: (e, t) => ci(t, 16, "&#x")
8389
8399
  }
8390
- }, this.addExternalEntities = Kr, this.parseXml = Zr, this.parseTextData = qr, this.resolveNameSpace = Jr, this.buildAttributesMap = Xr, this.isItStopNode = ti, this.replaceEntitiesValue = $r, this.readStopNodeData = ai, this.saveTextToParentTag = ei, this.addChild = Qr, this.ignoreAttributesFn = zr(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new Hr(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.options.stopNodes && this.options.stopNodes.length > 0) {
8400
+ }, this.addExternalEntities = qr, this.parseXml = Qr, this.parseTextData = Jr, this.resolveNameSpace = Yr, this.buildAttributesMap = Zr, this.isItStopNode = ni, this.replaceEntitiesValue = ei, this.readStopNodeData = oi, this.saveTextToParentTag = ti, this.addChild = $r, this.ignoreAttributesFn = Br(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0, this.matcher = new Ur(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.options.stopNodes && this.options.stopNodes.length > 0) {
8391
8401
  this.stopNodeExpressions = [];
8392
8402
  for (let e = 0; e < this.options.stopNodes.length; e++) {
8393
8403
  let t = this.options.stopNodes[e];
8394
- typeof t == "string" ? this.stopNodeExpressions.push(new Br(t)) : t instanceof Br && this.stopNodeExpressions.push(t);
8404
+ typeof t == "string" ? this.stopNodeExpressions.push(new Vr(t)) : t instanceof Vr && this.stopNodeExpressions.push(t);
8395
8405
  }
8396
8406
  }
8397
8407
  }
8398
8408
  };
8399
- function Kr(e) {
8409
+ function qr(e) {
8400
8410
  let t = Object.keys(e);
8401
8411
  for (let n = 0; n < t.length; n++) {
8402
8412
  let r = t[n], i = r.replace(/[.\-+*:]/g, "\\.");
@@ -8406,14 +8416,14 @@ function Kr(e) {
8406
8416
  };
8407
8417
  }
8408
8418
  }
8409
- function qr(e, t, n, r, i, a, o) {
8419
+ function Jr(e, t, n, r, i, a, o) {
8410
8420
  if (e !== void 0 && (this.options.trimValues && !r && (e = e.trim()), e.length > 0)) {
8411
8421
  o || (e = this.replaceEntitiesValue(e, t, n));
8412
8422
  let r = this.options.jPath ? n.toString() : n, s = this.options.tagValueProcessor(t, e, r, i, a);
8413
- return s == null ? e : typeof s != typeof e || s !== e ? s : this.options.trimValues || e.trim() === e ? oi(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
8423
+ return s == null ? e : typeof s != typeof e || s !== e ? s : this.options.trimValues || e.trim() === e ? si(e, this.options.parseTagValue, this.options.numberParseOptions) : e;
8414
8424
  }
8415
8425
  }
8416
- function Jr(e) {
8426
+ function Yr(e) {
8417
8427
  if (this.options.removeNSPrefix) {
8418
8428
  let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
8419
8429
  if (t[0] === "xmlns") return "";
@@ -8421,10 +8431,10 @@ function Jr(e) {
8421
8431
  }
8422
8432
  return e;
8423
8433
  }
8424
- var Yr = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
8425
- function Xr(e, t, n) {
8434
+ var Xr = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
8435
+ function Zr(e, t, n) {
8426
8436
  if (this.options.ignoreAttributes !== !0 && typeof e == "string") {
8427
- let r = er(e, Yr), i = r.length, a = {}, o = {};
8437
+ let r = tr(e, Xr), i = r.length, a = {}, o = {};
8428
8438
  for (let e = 0; e < i; e++) {
8429
8439
  let t = this.resolveNameSpace(r[e][1]), i = r[e][4];
8430
8440
  if (t.length && i !== void 0) {
@@ -8437,10 +8447,10 @@ function Xr(e, t, n) {
8437
8447
  let i = this.resolveNameSpace(r[e][1]), o = this.options.jPath ? t.toString() : this.readonlyMatcher;
8438
8448
  if (this.ignoreAttributesFn(i, o)) continue;
8439
8449
  let s = r[e][4], c = this.options.attributeNamePrefix + i;
8440
- if (i.length) if (this.options.transformAttributeName && (c = this.options.transformAttributeName(c)), c = li(c, this.options), s !== void 0) {
8450
+ if (i.length) if (this.options.transformAttributeName && (c = this.options.transformAttributeName(c)), c = ui(c, this.options), s !== void 0) {
8441
8451
  this.options.trimValues && (s = s.trim()), s = this.replaceEntitiesValue(s, n, this.readonlyMatcher);
8442
8452
  let e = this.options.jPath ? t.toString() : this.readonlyMatcher, r = this.options.attributeValueProcessor(i, s, e);
8443
- r == null ? a[c] = s : typeof r != typeof s || r !== s ? a[c] = r : a[c] = oi(s, this.options.parseAttributeValue, this.options.numberParseOptions);
8453
+ r == null ? a[c] = s : typeof r != typeof s || r !== s ? a[c] = r : a[c] = si(s, this.options.parseAttributeValue, this.options.numberParseOptions);
8444
8454
  } else this.options.allowBooleanAttributes && (a[c] = !0);
8445
8455
  }
8446
8456
  if (!Object.keys(a).length) return;
@@ -8451,31 +8461,31 @@ function Xr(e, t, n) {
8451
8461
  return a;
8452
8462
  }
8453
8463
  }
8454
- var Zr = function(e) {
8464
+ var Qr = function(e) {
8455
8465
  e = e.replace(/\r\n?/g, "\n");
8456
- let t = new Er("!xml"), n = t, r = "";
8466
+ let t = new Dr("!xml"), n = t, r = "";
8457
8467
  this.matcher.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
8458
- let i = new Dr(this.options.processEntities);
8468
+ let i = new Or(this.options.processEntities);
8459
8469
  for (let a = 0; a < e.length; a++) if (e[a] === "<") if (e[a + 1] === "/") {
8460
- let t = ri(e, ">", a, "Closing Tag is not closed."), i = e.substring(a + 2, t).trim();
8470
+ let t = ii(e, ">", a, "Closing Tag is not closed."), i = e.substring(a + 2, t).trim();
8461
8471
  if (this.options.removeNSPrefix) {
8462
8472
  let e = i.indexOf(":");
8463
8473
  e !== -1 && (i = i.substr(e + 1));
8464
8474
  }
8465
- i = ci(this.options.transformTagName, i, "", this.options).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
8475
+ i = li(this.options.transformTagName, i, "", this.options).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
8466
8476
  let o = this.matcher.getCurrentTag();
8467
8477
  if (i && this.options.unpairedTags.indexOf(i) !== -1) throw Error(`Unpaired tag can not be used as closing tag: </${i}>`);
8468
8478
  o && this.options.unpairedTags.indexOf(o) !== -1 && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", a = t;
8469
8479
  } else if (e[a + 1] === "?") {
8470
- let t = ii(e, a, !1, "?>");
8480
+ let t = ai(e, a, !1, "?>");
8471
8481
  if (!t) throw Error("Pi Tag is not closed.");
8472
8482
  if (r = this.saveTextToParentTag(r, n, this.readonlyMatcher), !(this.options.ignoreDeclaration && t.tagName === "?xml" || this.options.ignorePiTags)) {
8473
- let e = new Er(t.tagName);
8483
+ let e = new Dr(t.tagName);
8474
8484
  e.add(this.options.textNodeName, ""), t.tagName !== t.tagExp && t.attrExpPresent && (e[":@"] = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName)), this.addChild(n, e, this.readonlyMatcher, a);
8475
8485
  }
8476
8486
  a = t.closeIndex + 1;
8477
8487
  } else if (e.substr(a + 1, 3) === "!--") {
8478
- let t = ri(e, "-->", a + 4, "Comment is not closed.");
8488
+ let t = ii(e, "-->", a + 4, "Comment is not closed.");
8479
8489
  if (this.options.commentPropName) {
8480
8490
  let i = e.substring(a + 4, t - 2);
8481
8491
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(this.options.commentPropName, [{ [this.options.textNodeName]: i }]);
@@ -8485,25 +8495,25 @@ var Zr = function(e) {
8485
8495
  let t = i.readDocType(e, a);
8486
8496
  this.docTypeEntities = t.entities, a = t.i;
8487
8497
  } else if (e.substr(a + 1, 2) === "![") {
8488
- let t = ri(e, "]]>", a, "CDATA is not closed.") - 2, i = e.substring(a + 9, t);
8498
+ let t = ii(e, "]]>", a, "CDATA is not closed.") - 2, i = e.substring(a + 9, t);
8489
8499
  r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
8490
8500
  let o = this.parseTextData(i, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
8491
8501
  o ??= "", this.options.cdataPropName ? n.add(this.options.cdataPropName, [{ [this.options.textNodeName]: i }]) : n.add(this.options.textNodeName, o), a = t + 2;
8492
8502
  } else {
8493
- let i = ii(e, a, this.options.removeNSPrefix);
8503
+ let i = ai(e, a, this.options.removeNSPrefix);
8494
8504
  if (!i) {
8495
8505
  let t = e.substring(Math.max(0, a - 50), Math.min(e.length, a + 50));
8496
8506
  throw Error(`readTagExp returned undefined at position ${a}. Context: "${t}"`);
8497
8507
  }
8498
8508
  let o = i.tagName, s = i.rawTagName, c = i.tagExp, l = i.attrExpPresent, u = i.closeIndex;
8499
- if ({tagName: o, tagExp: c} = ci(this.options.transformTagName, o, c, this.options), this.options.strictReservedNames && (o === this.options.commentPropName || o === this.options.cdataPropName || o === this.options.textNodeName || o === this.options.attributesGroupName)) throw Error(`Invalid tag name: ${o}`);
8509
+ if ({tagName: o, tagExp: c} = li(this.options.transformTagName, o, c, this.options), this.options.strictReservedNames && (o === this.options.commentPropName || o === this.options.cdataPropName || o === this.options.textNodeName || o === this.options.attributesGroupName)) throw Error(`Invalid tag name: ${o}`);
8500
8510
  n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
8501
8511
  let d = n;
8502
8512
  d && this.options.unpairedTags.indexOf(d.tagname) !== -1 && (n = this.tagsNodeStack.pop(), this.matcher.pop());
8503
8513
  let f = !1;
8504
8514
  c.length > 0 && c.lastIndexOf("/") === c.length - 1 && (f = !0, o[o.length - 1] === "/" ? (o = o.substr(0, o.length - 1), c = o) : c = c.substr(0, c.length - 1), l = o !== c);
8505
8515
  let p = null, m;
8506
- m = Wr(s), o !== t.tagname && this.matcher.push(o, {}, m), o !== c && l && (p = this.buildAttributesMap(c, this.matcher, o), p && Ur(p, this.options)), o !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
8516
+ m = Gr(s), o !== t.tagname && this.matcher.push(o, {}, m), o !== c && l && (p = this.buildAttributesMap(c, this.matcher, o), p && Wr(p, this.options)), o !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode(this.stopNodeExpressions, this.matcher));
8507
8517
  let h = a;
8508
8518
  if (this.isCurrentNodeStopNode) {
8509
8519
  let t = "";
@@ -8514,19 +8524,19 @@ var Zr = function(e) {
8514
8524
  if (!n) throw Error(`Unexpected end of ${s}`);
8515
8525
  a = n.i, t = n.tagContent;
8516
8526
  }
8517
- let r = new Er(o);
8527
+ let r = new Dr(o);
8518
8528
  p && (r[":@"] = p), r.add(this.options.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, h);
8519
8529
  } else {
8520
8530
  if (f) {
8521
- ({tagName: o, tagExp: c} = ci(this.options.transformTagName, o, c, this.options));
8522
- let e = new Er(o);
8531
+ ({tagName: o, tagExp: c} = li(this.options.transformTagName, o, c, this.options));
8532
+ let e = new Dr(o);
8523
8533
  p && (e[":@"] = p), this.addChild(n, e, this.readonlyMatcher, h), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
8524
8534
  } else if (this.options.unpairedTags.indexOf(o) !== -1) {
8525
- let e = new Er(o);
8535
+ let e = new Dr(o);
8526
8536
  p && (e[":@"] = p), this.addChild(n, e, this.readonlyMatcher, h), this.matcher.pop(), this.isCurrentNodeStopNode = !1, a = i.closeIndex;
8527
8537
  continue;
8528
8538
  } else {
8529
- let e = new Er(o);
8539
+ let e = new Dr(o);
8530
8540
  if (this.tagsNodeStack.length > this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
8531
8541
  this.tagsNodeStack.push(n), p && (e[":@"] = p), this.addChild(n, e, this.readonlyMatcher, h), n = e;
8532
8542
  }
@@ -8536,12 +8546,12 @@ var Zr = function(e) {
8536
8546
  else r += e[a];
8537
8547
  return t.child;
8538
8548
  };
8539
- function Qr(e, t, n, r) {
8549
+ function $r(e, t, n, r) {
8540
8550
  this.options.captureMetaData || (r = void 0);
8541
8551
  let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
8542
8552
  a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
8543
8553
  }
8544
- function $r(e, t, n) {
8554
+ function ei(e, t, n) {
8545
8555
  let r = this.options.processEntities;
8546
8556
  if (!r || !r.enabled) return e;
8547
8557
  if (r.allowedTags) {
@@ -8573,15 +8583,15 @@ function $r(e, t, n) {
8573
8583
  }
8574
8584
  return e = e.replace(this.ampEntity.regex, this.ampEntity.val), e;
8575
8585
  }
8576
- function ei(e, t, n, r) {
8586
+ function ti(e, t, n, r) {
8577
8587
  return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
8578
8588
  }
8579
- function ti(e, t) {
8589
+ function ni(e, t) {
8580
8590
  if (!e || e.length === 0) return !1;
8581
8591
  for (let n = 0; n < e.length; n++) if (t.matches(e[n])) return !0;
8582
8592
  return !1;
8583
8593
  }
8584
- function ni(e, t, n = ">") {
8594
+ function ri(e, t, n = ">") {
8585
8595
  let r, i = "";
8586
8596
  for (let a = t; a < e.length; a++) {
8587
8597
  let t = e[a];
@@ -8600,13 +8610,13 @@ function ni(e, t, n = ">") {
8600
8610
  i += t;
8601
8611
  }
8602
8612
  }
8603
- function ri(e, t, n, r) {
8613
+ function ii(e, t, n, r) {
8604
8614
  let i = e.indexOf(t, n);
8605
8615
  if (i === -1) throw Error(r);
8606
8616
  return i + t.length - 1;
8607
8617
  }
8608
- function ii(e, t, n, r = ">") {
8609
- let i = ni(e, t + 1, r);
8618
+ function ai(e, t, n, r = ">") {
8619
+ let i = ri(e, t + 1, r);
8610
8620
  if (!i) return;
8611
8621
  let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
8612
8622
  s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
@@ -8623,52 +8633,52 @@ function ii(e, t, n, r = ">") {
8623
8633
  rawTagName: u
8624
8634
  };
8625
8635
  }
8626
- function ai(e, t, n) {
8636
+ function oi(e, t, n) {
8627
8637
  let r = n, i = 1;
8628
8638
  for (; n < e.length; n++) if (e[n] === "<") if (e[n + 1] === "/") {
8629
- let a = ri(e, ">", n, `${t} is not closed`);
8639
+ let a = ii(e, ">", n, `${t} is not closed`);
8630
8640
  if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
8631
8641
  tagContent: e.substring(r, n),
8632
8642
  i: a
8633
8643
  };
8634
8644
  n = a;
8635
- } else if (e[n + 1] === "?") n = ri(e, "?>", n + 1, "StopNode is not closed.");
8636
- else if (e.substr(n + 1, 3) === "!--") n = ri(e, "-->", n + 3, "StopNode is not closed.");
8637
- else if (e.substr(n + 1, 2) === "![") n = ri(e, "]]>", n, "StopNode is not closed.") - 2;
8645
+ } else if (e[n + 1] === "?") n = ii(e, "?>", n + 1, "StopNode is not closed.");
8646
+ else if (e.substr(n + 1, 3) === "!--") n = ii(e, "-->", n + 3, "StopNode is not closed.");
8647
+ else if (e.substr(n + 1, 2) === "![") n = ii(e, "]]>", n, "StopNode is not closed.") - 2;
8638
8648
  else {
8639
- let r = ii(e, n, ">");
8649
+ let r = ai(e, n, ">");
8640
8650
  r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
8641
8651
  }
8642
8652
  }
8643
- function oi(e, t, n) {
8653
+ function si(e, t, n) {
8644
8654
  if (t && typeof e == "string") {
8645
8655
  let t = e.trim();
8646
- return t === "true" ? !0 : t === "false" ? !1 : Nr(e, n);
8647
- } else if (nr(e)) return e;
8656
+ return t === "true" ? !0 : t === "false" ? !1 : Pr(e, n);
8657
+ } else if (rr(e)) return e;
8648
8658
  else return "";
8649
8659
  }
8650
- function si(e, t, n) {
8660
+ function ci(e, t, n) {
8651
8661
  let r = Number.parseInt(e, t);
8652
8662
  return r >= 0 && r <= 1114111 ? String.fromCodePoint(r) : n + e + ";";
8653
8663
  }
8654
- function ci(e, t, n, r) {
8664
+ function li(e, t, n, r) {
8655
8665
  if (e) {
8656
8666
  let r = e(t);
8657
8667
  n === t && (n = r), t = r;
8658
8668
  }
8659
- return t = li(t, r), {
8669
+ return t = ui(t, r), {
8660
8670
  tagName: t,
8661
8671
  tagExp: n
8662
8672
  };
8663
8673
  }
8664
- function li(e, t) {
8665
- if (ir.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
8666
- return rr.includes(e) ? t.onDangerousProperty(e) : e;
8674
+ function ui(e, t) {
8675
+ if (ar.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
8676
+ return ir.includes(e) ? t.onDangerousProperty(e) : e;
8667
8677
  }
8668
8678
  //#endregion
8669
8679
  //#region node_modules/fast-xml-parser/src/xmlparser/node2json.js
8670
- var ui = Er.getMetaDataSymbol();
8671
- function di(e, t) {
8680
+ var di = Dr.getMetaDataSymbol();
8681
+ function fi(e, t) {
8672
8682
  if (!e || typeof e != "object") return {};
8673
8683
  if (!t) return e;
8674
8684
  let n = {};
@@ -8678,22 +8688,22 @@ function di(e, t) {
8678
8688
  } else n[r] = e[r];
8679
8689
  return n;
8680
8690
  }
8681
- function fi(e, t, n, r) {
8682
- return pi(e, t, n, r);
8683
- }
8684
8691
  function pi(e, t, n, r) {
8692
+ return mi(e, t, n, r);
8693
+ }
8694
+ function mi(e, t, n, r) {
8685
8695
  let i, a = {};
8686
8696
  for (let o = 0; o < e.length; o++) {
8687
- let s = e[o], c = mi(s);
8697
+ let s = e[o], c = hi(s);
8688
8698
  if (c !== void 0 && c !== t.textNodeName) {
8689
- let e = di(s[":@"] || {}, t.attributeNamePrefix);
8699
+ let e = fi(s[":@"] || {}, t.attributeNamePrefix);
8690
8700
  n.push(c, e);
8691
8701
  }
8692
8702
  if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
8693
8703
  else if (c === void 0) continue;
8694
8704
  else if (s[c]) {
8695
- let e = pi(s[c], t, n, r), i = gi(e, t);
8696
- if (s[":@"] ? hi(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[ui] !== void 0 && typeof e == "object" && e && (e[ui] = s[ui]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
8705
+ let e = mi(s[c], t, n, r), i = _i(e, t);
8706
+ if (s[":@"] ? gi(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[di] !== void 0 && typeof e == "object" && e && (e[di] = s[di]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
8697
8707
  else {
8698
8708
  let n = t.jPath ? r.toString() : r;
8699
8709
  t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
@@ -8703,14 +8713,14 @@ function pi(e, t, n, r) {
8703
8713
  }
8704
8714
  return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
8705
8715
  }
8706
- function mi(e) {
8716
+ function hi(e) {
8707
8717
  let t = Object.keys(e);
8708
8718
  for (let e = 0; e < t.length; e++) {
8709
8719
  let n = t[e];
8710
8720
  if (n !== ":@") return n;
8711
8721
  }
8712
8722
  }
8713
- function hi(e, t, n, r) {
8723
+ function gi(e, t, n, r) {
8714
8724
  if (t) {
8715
8725
  let i = Object.keys(t), a = i.length;
8716
8726
  for (let o = 0; o < a; o++) {
@@ -8719,28 +8729,28 @@ function hi(e, t, n, r) {
8719
8729
  }
8720
8730
  }
8721
8731
  }
8722
- function gi(e, t) {
8732
+ function _i(e, t) {
8723
8733
  let { textNodeName: n } = t, r = Object.keys(e).length;
8724
8734
  return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
8725
8735
  }
8726
8736
  //#endregion
8727
8737
  //#region node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
8728
- var _i = class {
8738
+ var vi = class {
8729
8739
  constructor(e) {
8730
- this.externalEntities = {}, this.options = wr(e);
8740
+ this.externalEntities = {}, this.options = Tr(e);
8731
8741
  }
8732
8742
  parse(e, t) {
8733
8743
  if (typeof e != "string" && e.toString) e = e.toString();
8734
8744
  else if (typeof e != "string") throw Error("XML data is accepted in String or Bytes[] form.");
8735
8745
  if (t) {
8736
8746
  t === !0 && (t = {});
8737
- let n = or(e, t);
8747
+ let n = sr(e, t);
8738
8748
  if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
8739
8749
  }
8740
- let n = new Gr(this.options);
8750
+ let n = new Kr(this.options);
8741
8751
  n.addExternalEntities(this.externalEntities);
8742
8752
  let r = n.parseXml(e);
8743
- return this.options.preserveOrder || r === void 0 ? r : fi(r, this.options, n.matcher, n.readonlyMatcher);
8753
+ return this.options.preserveOrder || r === void 0 ? r : pi(r, this.options, n.matcher, n.readonlyMatcher);
8744
8754
  }
8745
8755
  addEntity(e, t) {
8746
8756
  if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
@@ -8749,39 +8759,39 @@ var _i = class {
8749
8759
  this.externalEntities[e] = t;
8750
8760
  }
8751
8761
  static getMetaDataSymbol() {
8752
- return Er.getMetaDataSymbol();
8762
+ return Dr.getMetaDataSymbol();
8753
8763
  }
8754
- }, vi = "\n";
8755
- function yi(e, t) {
8764
+ }, yi = "\n";
8765
+ function bi(e, t) {
8756
8766
  let n = "";
8757
- t.format && t.indentBy.length > 0 && (n = vi);
8767
+ t.format && t.indentBy.length > 0 && (n = yi);
8758
8768
  let r = [];
8759
8769
  if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
8760
8770
  let n = t.stopNodes[e];
8761
- typeof n == "string" ? r.push(new Br(n)) : n instanceof Br && r.push(n);
8771
+ typeof n == "string" ? r.push(new Vr(n)) : n instanceof Vr && r.push(n);
8762
8772
  }
8763
- let i = new Hr();
8764
- return bi(e, t, n, i, r);
8773
+ let i = new Ur();
8774
+ return xi(e, t, n, i, r);
8765
8775
  }
8766
- function bi(e, t, n, r, i) {
8776
+ function xi(e, t, n, r, i) {
8767
8777
  let a = "", o = !1;
8768
8778
  if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
8769
8779
  if (!Array.isArray(e)) {
8770
8780
  if (e != null) {
8771
8781
  let n = e.toString();
8772
- return n = Di(n, t), n;
8782
+ return n = Oi(n, t), n;
8773
8783
  }
8774
8784
  return "";
8775
8785
  }
8776
8786
  for (let s = 0; s < e.length; s++) {
8777
- let c = e[s], l = wi(c);
8787
+ let c = e[s], l = Ti(c);
8778
8788
  if (l === void 0) continue;
8779
- let u = xi(c[":@"], t);
8789
+ let u = Si(c[":@"], t);
8780
8790
  r.push(l, u);
8781
- let d = Ei(r, i);
8791
+ let d = Di(r, i);
8782
8792
  if (l === t.textNodeName) {
8783
8793
  let e = c[l];
8784
- d || (e = t.tagValueProcessor(l, e), e = Di(e, t)), o && (a += n), a += e, o = !1, r.pop();
8794
+ d || (e = t.tagValueProcessor(l, e), e = Oi(e, t)), o && (a += n), a += e, o = !1, r.pop();
8785
8795
  continue;
8786
8796
  } else if (l === t.cdataPropName) {
8787
8797
  o && (a += n), a += `<![CDATA[${c[l][0][t.textNodeName]}]]>`, o = !1, r.pop();
@@ -8790,18 +8800,18 @@ function bi(e, t, n, r, i) {
8790
8800
  a += n + `<!--${c[l][0][t.textNodeName]}-->`, o = !0, r.pop();
8791
8801
  continue;
8792
8802
  } else if (l[0] === "?") {
8793
- let e = Ti(c[":@"], t, d), i = l === "?xml" ? "" : n, s = c[l][0][t.textNodeName];
8803
+ let e = Ei(c[":@"], t, d), i = l === "?xml" ? "" : n, s = c[l][0][t.textNodeName];
8794
8804
  s = s.length === 0 ? "" : " " + s, a += i + `<${l}${s}${e}?>`, o = !0, r.pop();
8795
8805
  continue;
8796
8806
  }
8797
8807
  let f = n;
8798
8808
  f !== "" && (f += t.indentBy);
8799
- let p = n + `<${l}${Ti(c[":@"], t, d)}`, m;
8800
- m = d ? Si(c[l], t) : bi(c[l], t, f, r, i), t.unpairedTags.indexOf(l) === -1 ? (!m || m.length === 0) && t.suppressEmptyNode ? a += p + "/>" : m && m.endsWith(">") ? a += p + `>${m}${n}</${l}>` : (a += p + ">", m && n !== "" && (m.includes("/>") || m.includes("</")) ? a += n + t.indentBy + m + n : a += m, a += `</${l}>`) : t.suppressUnpairedNode ? a += p + ">" : a += p + "/>", o = !0, r.pop();
8809
+ let p = n + `<${l}${Ei(c[":@"], t, d)}`, m;
8810
+ m = d ? Ci(c[l], t) : xi(c[l], t, f, r, i), t.unpairedTags.indexOf(l) === -1 ? (!m || m.length === 0) && t.suppressEmptyNode ? a += p + "/>" : m && m.endsWith(">") ? a += p + `>${m}${n}</${l}>` : (a += p + ">", m && n !== "" && (m.includes("/>") || m.includes("</")) ? a += n + t.indentBy + m + n : a += m, a += `</${l}>`) : t.suppressUnpairedNode ? a += p + ">" : a += p + "/>", o = !0, r.pop();
8801
8811
  }
8802
8812
  return a;
8803
8813
  }
8804
- function xi(e, t) {
8814
+ function Si(e, t) {
8805
8815
  if (!e || t.ignoreAttributes) return null;
8806
8816
  let n = {}, r = !1;
8807
8817
  for (let i in e) {
@@ -8811,23 +8821,23 @@ function xi(e, t) {
8811
8821
  }
8812
8822
  return r ? n : null;
8813
8823
  }
8814
- function Si(e, t) {
8824
+ function Ci(e, t) {
8815
8825
  if (!Array.isArray(e)) return e == null ? "" : e.toString();
8816
8826
  let n = "";
8817
8827
  for (let r = 0; r < e.length; r++) {
8818
- let i = e[r], a = wi(i);
8828
+ let i = e[r], a = Ti(i);
8819
8829
  if (a === t.textNodeName) n += i[a];
8820
8830
  else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
8821
8831
  else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
8822
8832
  else if (a && a[0] === "?") continue;
8823
8833
  else if (a) {
8824
- let e = Ci(i[":@"], t), r = Si(i[a], t);
8834
+ let e = wi(i[":@"], t), r = Ci(i[a], t);
8825
8835
  !r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
8826
8836
  }
8827
8837
  }
8828
8838
  return n;
8829
8839
  }
8830
- function Ci(e, t) {
8840
+ function wi(e, t) {
8831
8841
  let n = "";
8832
8842
  if (e && !t.ignoreAttributes) for (let r in e) {
8833
8843
  if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
@@ -8836,28 +8846,28 @@ function Ci(e, t) {
8836
8846
  }
8837
8847
  return n;
8838
8848
  }
8839
- function wi(e) {
8849
+ function Ti(e) {
8840
8850
  let t = Object.keys(e);
8841
8851
  for (let n = 0; n < t.length; n++) {
8842
8852
  let r = t[n];
8843
8853
  if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
8844
8854
  }
8845
8855
  }
8846
- function Ti(e, t, n) {
8856
+ function Ei(e, t, n) {
8847
8857
  let r = "";
8848
8858
  if (e && !t.ignoreAttributes) for (let i in e) {
8849
8859
  if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
8850
8860
  let a;
8851
- n ? a = e[i] : (a = t.attributeValueProcessor(i, e[i]), a = Di(a, t)), a === !0 && t.suppressBooleanAttributes ? r += ` ${i.substr(t.attributeNamePrefix.length)}` : r += ` ${i.substr(t.attributeNamePrefix.length)}="${a}"`;
8861
+ n ? a = e[i] : (a = t.attributeValueProcessor(i, e[i]), a = Oi(a, t)), a === !0 && t.suppressBooleanAttributes ? r += ` ${i.substr(t.attributeNamePrefix.length)}` : r += ` ${i.substr(t.attributeNamePrefix.length)}="${a}"`;
8852
8862
  }
8853
8863
  return r;
8854
8864
  }
8855
- function Ei(e, t) {
8865
+ function Di(e, t) {
8856
8866
  if (!t || t.length === 0) return !1;
8857
8867
  for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
8858
8868
  return !1;
8859
8869
  }
8860
- function Di(e, t) {
8870
+ function Oi(e, t) {
8861
8871
  if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
8862
8872
  let r = t.entities[n];
8863
8873
  e = e.replace(r.regex, r.val);
@@ -8866,14 +8876,14 @@ function Di(e, t) {
8866
8876
  }
8867
8877
  //#endregion
8868
8878
  //#region node_modules/fast-xml-builder/src/ignoreAttributes.js
8869
- function Oi(e) {
8879
+ function ki(e) {
8870
8880
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
8871
8881
  for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
8872
8882
  } : () => !1;
8873
8883
  }
8874
8884
  //#endregion
8875
8885
  //#region node_modules/fast-xml-builder/src/fxb.js
8876
- var ki = {
8886
+ var Ai = {
8877
8887
  attributeNamePrefix: "@_",
8878
8888
  attributesGroupName: !1,
8879
8889
  textNodeName: "#text",
@@ -8921,25 +8931,25 @@ var ki = {
8921
8931
  maxNestedTags: 100,
8922
8932
  jPath: !0
8923
8933
  };
8924
- function Ai(e) {
8925
- if (this.options = Object.assign({}, ki, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
8934
+ function ji(e) {
8935
+ if (this.options = Object.assign({}, Ai, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
8926
8936
  let t = this.options.stopNodes[e];
8927
- typeof t == "string" ? this.stopNodeExpressions.push(new Br(t)) : t instanceof Br && this.stopNodeExpressions.push(t);
8937
+ typeof t == "string" ? this.stopNodeExpressions.push(new Vr(t)) : t instanceof Vr && this.stopNodeExpressions.push(t);
8928
8938
  }
8929
8939
  this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
8930
8940
  return !1;
8931
- } : (this.ignoreAttributesFn = Oi(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Ni), this.processTextOrObjNode = ji, this.options.format ? (this.indentate = Mi, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
8941
+ } : (this.ignoreAttributesFn = ki(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Pi), this.processTextOrObjNode = Mi, this.options.format ? (this.indentate = Ni, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
8932
8942
  return "";
8933
8943
  }, this.tagEndChar = ">", this.newLine = "");
8934
8944
  }
8935
- Ai.prototype.build = function(e) {
8936
- if (this.options.preserveOrder) return yi(e, this.options);
8945
+ ji.prototype.build = function(e) {
8946
+ if (this.options.preserveOrder) return bi(e, this.options);
8937
8947
  {
8938
8948
  Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
8939
- let t = new Hr();
8949
+ let t = new Ur();
8940
8950
  return this.j2x(e, 0, t).val;
8941
8951
  }
8942
- }, Ai.prototype.j2x = function(e, t, n) {
8952
+ }, ji.prototype.j2x = function(e, t, n) {
8943
8953
  let r = "", i = "";
8944
8954
  if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
8945
8955
  let a = this.options.jPath ? n.toString() : n, o = this.checkStopNode(n);
@@ -8991,10 +9001,10 @@ Ai.prototype.build = function(e) {
8991
9001
  attrStr: r,
8992
9002
  val: i
8993
9003
  };
8994
- }, Ai.prototype.buildAttrPairStr = function(e, t, n) {
9004
+ }, ji.prototype.buildAttrPairStr = function(e, t, n) {
8995
9005
  return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + t + "\"";
8996
9006
  };
8997
- function ji(e, t, n, r) {
9007
+ function Mi(e, t, n, r) {
8998
9008
  let i = this.extractAttributes(e);
8999
9009
  if (r.push(t, i), this.checkStopNode(r)) {
9000
9010
  let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
@@ -9003,7 +9013,7 @@ function ji(e, t, n, r) {
9003
9013
  let a = this.j2x(e, n + 1, r);
9004
9014
  return r.pop(), e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, a.attrStr, n, r) : this.buildObjectNode(a.val, t, a.attrStr, n);
9005
9015
  }
9006
- Ai.prototype.extractAttributes = function(e) {
9016
+ ji.prototype.extractAttributes = function(e) {
9007
9017
  if (!e || typeof e != "object") return null;
9008
9018
  let t = {}, n = !1;
9009
9019
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -9019,7 +9029,7 @@ Ai.prototype.extractAttributes = function(e) {
9019
9029
  i && (t[i] = e[r], n = !0);
9020
9030
  }
9021
9031
  return n ? t : null;
9022
- }, Ai.prototype.buildRawContent = function(e) {
9032
+ }, ji.prototype.buildRawContent = function(e) {
9023
9033
  if (typeof e == "string") return e;
9024
9034
  if (typeof e != "object" || !e) return String(e);
9025
9035
  if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
@@ -9040,7 +9050,7 @@ Ai.prototype.extractAttributes = function(e) {
9040
9050
  } else t += `<${n}>${r}</${n}>`;
9041
9051
  }
9042
9052
  return t;
9043
- }, Ai.prototype.buildAttributesForStopNode = function(e) {
9053
+ }, ji.prototype.buildAttributesForStopNode = function(e) {
9044
9054
  if (!e || typeof e != "object") return "";
9045
9055
  let t = "";
9046
9056
  if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
@@ -9059,20 +9069,20 @@ Ai.prototype.extractAttributes = function(e) {
9059
9069
  }
9060
9070
  }
9061
9071
  return t;
9062
- }, Ai.prototype.buildObjectNode = function(e, t, n, r) {
9072
+ }, ji.prototype.buildObjectNode = function(e, t, n, r) {
9063
9073
  if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
9064
9074
  {
9065
9075
  let i = "</" + t + this.tagEndChar, a = "";
9066
9076
  return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${e}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
9067
9077
  }
9068
- }, Ai.prototype.closeTag = function(e) {
9078
+ }, ji.prototype.closeTag = function(e) {
9069
9079
  let t = "";
9070
9080
  return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
9071
- }, Ai.prototype.checkStopNode = function(e) {
9081
+ }, ji.prototype.checkStopNode = function(e) {
9072
9082
  if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
9073
9083
  for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
9074
9084
  return !1;
9075
- }, Ai.prototype.buildTextValNode = function(e, t, n, r, i) {
9085
+ }, ji.prototype.buildTextValNode = function(e, t, n, r, i) {
9076
9086
  if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) return this.indentate(r) + `<![CDATA[${e}]]>` + this.newLine;
9077
9087
  if (this.options.commentPropName !== !1 && t === this.options.commentPropName) return this.indentate(r) + `<!--${e}-->` + this.newLine;
9078
9088
  if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
@@ -9080,28 +9090,28 @@ Ai.prototype.extractAttributes = function(e) {
9080
9090
  let i = this.options.tagValueProcessor(t, e);
9081
9091
  return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
9082
9092
  }
9083
- }, Ai.prototype.replaceEntitiesValue = function(e) {
9093
+ }, ji.prototype.replaceEntitiesValue = function(e) {
9084
9094
  if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
9085
9095
  let n = this.options.entities[t];
9086
9096
  e = e.replace(n.regex, n.val);
9087
9097
  }
9088
9098
  return e;
9089
9099
  };
9090
- function Mi(e) {
9100
+ function Ni(e) {
9091
9101
  return this.options.indentBy.repeat(e);
9092
9102
  }
9093
- function Ni(e) {
9103
+ function Pi(e) {
9094
9104
  return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
9095
9105
  }
9096
9106
  //#endregion
9097
9107
  //#region node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
9098
- var Pi = Ai, Fi = /* @__PURE__ */ a(({ fillMode: e = "preserve", svg: t, shouldStripClasses: n = !0, shouldStripIds: r = !0, shouldStripPositions: i = !0, shouldStripStyles: a = !0, ...o }, s) => {
9108
+ var Fi = ji, Ii = /* @__PURE__ */ a(({ fillMode: e = "preserve", svg: t, shouldStripClasses: n = !0, shouldStripIds: r = !0, shouldStripPositions: i = !0, shouldStripStyles: a = !0, ...o }, s) => {
9099
9109
  let c = ["id"].map((e) => `@_${e}`), l = ["class"].map((e) => `@_${e}`), u = [
9100
9110
  "fill",
9101
9111
  "stroke",
9102
9112
  "style"
9103
9113
  ].map((e) => `@_${e}`), d = ["x", "y"].map((e) => `@_${e}`), f = () => {
9104
- let o = new _i({
9114
+ let o = new vi({
9105
9115
  attributeNamePrefix: "@_",
9106
9116
  ignoreAttributes: !1,
9107
9117
  ignoreDeclaration: !0,
@@ -9126,7 +9136,7 @@ var Pi = Ai, Fi = /* @__PURE__ */ a(({ fillMode: e = "preserve", svg: t, shouldS
9126
9136
  }
9127
9137
  return t;
9128
9138
  }
9129
- }), s = new Pi({
9139
+ }), s = new Fi({
9130
9140
  attributeNamePrefix: "@_",
9131
9141
  format: !1,
9132
9142
  ignoreAttributes: !1
@@ -9139,20 +9149,20 @@ var Pi = Ai, Fi = /* @__PURE__ */ a(({ fillMode: e = "preserve", svg: t, shouldS
9139
9149
  dangerouslySetInnerHTML: { __html: f() }
9140
9150
  });
9141
9151
  });
9142
- process.env.NODE_ENV === "development" && (Fi.displayName = "FlatSVG");
9152
+ process.env.NODE_ENV === "development" && (Ii.displayName = "FlatSVG");
9143
9153
  //#endregion
9144
9154
  //#region src/primitives/Form.tsx
9145
- var Ii = /* @__PURE__ */ a(({ onSubmit: e, ...t }, n) => /* @__PURE__ */ (0, D.jsx)("form", {
9155
+ var Li = /* @__PURE__ */ a(({ onSubmit: e, ...t }, n) => /* @__PURE__ */ (0, D.jsx)("form", {
9146
9156
  ...t,
9147
9157
  ref: n,
9148
9158
  onSubmit: (t) => {
9149
9159
  t.preventDefault(), e();
9150
9160
  }
9151
9161
  }));
9152
- process.env.NODE_ENV !== "production" && (Ii.displayName = "Form");
9162
+ process.env.NODE_ENV !== "production" && (Li.displayName = "Form");
9153
9163
  //#endregion
9154
9164
  //#region src/primitives/MasonryGrid.tsx
9155
- var Li = "base-", Ri = /* @__PURE__ */ a(({ className: e, alignSections: t = !1, children: n, horizontalSpacing: r = 0, orientation: i = "vertical", sections: a = 3, verticalSpacing: o = 0, isReversed: l = !1, ...u }, p) => {
9165
+ var Ri = "base-", zi = /* @__PURE__ */ a(({ className: e, alignSections: t = !1, children: n, horizontalSpacing: r = 0, orientation: i = "vertical", sections: a = 3, verticalSpacing: o = 0, isReversed: l = !1, ...u }, p) => {
9156
9166
  let m = d(null), [h, g] = f(NaN), [_, v] = f(NaN), [y, b] = f(NaN), [x, S] = f(NaN), w = () => K.from(m.current).width, T = () => K.from(m.current).height, E = () => {
9157
9167
  let e = m.current;
9158
9168
  if (!e) return;
@@ -9165,29 +9175,29 @@ var Li = "base-", Ri = /* @__PURE__ */ a(({ className: e, alignSections: t = !1,
9165
9175
  let i = [...Array(s)].map(() => 0);
9166
9176
  for (let e of Array.from(n)) {
9167
9177
  if (!(e instanceof HTMLElement)) continue;
9168
- let n = Ui(e, a), [c, l] = Vi(i, n);
9178
+ let n = Wi(e, a), [c, l] = Hi(i, n);
9169
9179
  e.role = "gridcell", e.style.position = "absolute", e.style.width = `calc(${100 / s * n}% - ${r * (s - 1) / s * n}px + ${r * (n - 1)}px)`, e.style.height = "", e.style.left = `calc(${100 / s * c}% - ${r * (s - 1) / s * c}px + ${r * c}px)`, e.style.top = `${l + (l === 0 ? 0 : o)}px`;
9170
9180
  for (let t = 0; t < n; t++) i[c + t] = l + (l === 0 ? 0 : o) + K.from(e).height;
9171
9181
  if (t && c + n === s) {
9172
- let e = Hi(i);
9182
+ let e = Ui(i);
9173
9183
  for (let t = 0; t < s; t++) i[t] = e;
9174
9184
  }
9175
9185
  }
9176
- let c = w(), u = Hi(i, s);
9186
+ let c = w(), u = Ui(i, s);
9177
9187
  if (g(c), v(u), isNaN(u) || (e.style.height = `${u}px`), l) for (let e of Array.from(n)) e instanceof HTMLElement && (e.style.left = `calc(${c}px - ${e.style.left} - ${e.getBoundingClientRect().width}px)`);
9178
9188
  } else {
9179
9189
  let i = [...Array(s)].map(() => 0);
9180
9190
  for (let e of Array.from(n)) {
9181
9191
  if (!(e instanceof HTMLElement)) continue;
9182
- let n = Ui(e, a), [c, l] = Vi(i, n);
9192
+ let n = Wi(e, a), [c, l] = Hi(i, n);
9183
9193
  e.style.position = "absolute", e.style.width = "", e.style.height = `calc(${100 / s * n}% - ${o * (s - 1) / s * n}px + ${o * (n - 1)}px)`, e.style.top = `calc(${100 / s * c}% - ${o * (s - 1) / s * c}px + ${o * c}px)`, e.style.left = `${l + (l === 0 ? 0 : r)}px`;
9184
9194
  for (let t = 0; t < n; t++) i[c + t] = l + (l === 0 ? 0 : r) + K.from(e).width;
9185
9195
  if (t && c + n === s) {
9186
- let e = Hi(i);
9196
+ let e = Ui(i);
9187
9197
  for (let t = 0; t < s; t++) i[t] = e;
9188
9198
  }
9189
9199
  }
9190
- let c = T(), u = Hi(i, s);
9200
+ let c = T(), u = Ui(i, s);
9191
9201
  if (v(c), g(u), isNaN(u) || (e.style.width = `${u}px`), l) for (let e of Array.from(n)) e instanceof HTMLElement && (e.style.top = `calc(${c}px - ${e.style.top} - ${e.getBoundingClientRect().height}px)`);
9192
9202
  }
9193
9203
  };
@@ -9202,7 +9212,7 @@ var Li = "base-", Ri = /* @__PURE__ */ a(({ className: e, alignSections: t = !1,
9202
9212
  o,
9203
9213
  i
9204
9214
  ])), c(() => {
9205
- let e = Wi(m.current?.innerHTML);
9215
+ let e = Gi(m.current?.innerHTML);
9206
9216
  if (e.length === 0) return E();
9207
9217
  let t = e.length;
9208
9218
  for (let n = 0; n < t; n++) {
@@ -9210,7 +9220,7 @@ var Li = "base-", Ri = /* @__PURE__ */ a(({ className: e, alignSections: t = !1,
9210
9220
  r.src = t, r.onload = () => E();
9211
9221
  }
9212
9222
  }, [n]);
9213
- let O = zi({ orientation: i }), k = Bi({
9223
+ let O = Bi({ orientation: i }), k = Vi({
9214
9224
  minHeight: _,
9215
9225
  minWidth: h,
9216
9226
  orientation: i
@@ -9227,10 +9237,10 @@ var Li = "base-", Ri = /* @__PURE__ */ a(({ className: e, alignSections: t = !1,
9227
9237
  })
9228
9238
  });
9229
9239
  });
9230
- function zi({ orientation: e = "horizontal" }) {
9240
+ function Bi({ orientation: e = "horizontal" }) {
9231
9241
  return k({ root: C(e) });
9232
9242
  }
9233
- function Bi({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizontal" }) {
9243
+ function Vi({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizontal" }) {
9234
9244
  return j({ body: {
9235
9245
  height: n === "horizontal" ? "100%" : "auto",
9236
9246
  minHeight: n === "vertical" && !isNaN(e) ? `${e}px` : "",
@@ -9239,28 +9249,28 @@ function Bi({ minHeight: e = NaN, minWidth: t = NaN, orientation: n = "horizonta
9239
9249
  width: n === "horizontal" ? "auto" : "100%"
9240
9250
  } });
9241
9251
  }
9242
- function Vi(e, t) {
9252
+ function Hi(e, t) {
9243
9253
  let n = e.length, r = NaN, i = Infinity;
9244
9254
  for (let a = 0; a < n; a++) {
9245
9255
  let o = e[a], s = o < i, c = a + t <= n, l = !0;
9246
9256
  for (let n = 1; n < t; n++) e[a + n] > o && (l = !1);
9247
9257
  s && c && l && (r = a, i = o);
9248
9258
  }
9249
- return isNaN(r) ? [0, Hi(e, t)] : [r, i];
9259
+ return isNaN(r) ? [0, Ui(e, t)] : [r, i];
9250
9260
  }
9251
- function Hi(e, t) {
9261
+ function Ui(e, t) {
9252
9262
  let n = e;
9253
9263
  return t != null && !isNaN(t) && (n = n.slice(0, Math.max(1, Math.min(t, e.length)))), n.reduce((e, t, n) => t > e ? t : e, 0);
9254
9264
  }
9255
- function Ui(e, t) {
9265
+ function Wi(e, t) {
9256
9266
  let n = e.classList;
9257
- for (let e of Array.from(n)) if (e.startsWith(Li)) {
9258
- let n = parseFloat(e.replace(Li, ""));
9267
+ for (let e of Array.from(n)) if (e.startsWith(Ri)) {
9268
+ let n = parseFloat(e.replace(Ri, ""));
9259
9269
  if (!isNaN(n)) return Math.min(Math.max(n, 1), t);
9260
9270
  }
9261
9271
  return 1;
9262
9272
  }
9263
- function Wi(e) {
9273
+ function Gi(e) {
9264
9274
  if (!e) return [];
9265
9275
  let t = /<img.*?src=(["'])(.*?)\1/g, n = /<img.*?src=(["'])(.*?)\1/, r = t.exec(e) ?? [], i = [];
9266
9276
  for (let e of r) {
@@ -9269,19 +9279,19 @@ function Wi(e) {
9269
9279
  }
9270
9280
  return i;
9271
9281
  }
9272
- process.env.NODE_ENV === "development" && (Ri.displayName = "MasonryGrid");
9282
+ process.env.NODE_ENV === "development" && (zi.displayName = "MasonryGrid");
9273
9283
  //#endregion
9274
9284
  //#region src/primitives/RangeSlider.tsx
9275
- var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, knobHeight: r = 28, knobPadding: i = 0, knobWidth: a = 40, max: o, min: l, orientation: u = "vertical", range: p, steps: m = -1, isClipped: h = !1, onChange: g, ..._ }, v) => {
9276
- let y = d(null), b = re(y), x = d(null), S = d(null), [w, T] = f(p ?? [l, o]), E = sa(l, o, m), [O, k] = w.map((e) => aa(e, l, o, u, b, a, r, h)), j = k - O, M = A(t, {
9277
- gutter: Ki,
9278
- highlight: Ji,
9279
- knob: Yi,
9280
- knobContainer: Xi,
9281
- label: qi
9285
+ var Ki = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, knobHeight: r = 28, knobPadding: i = 0, knobWidth: a = 40, max: o, min: l, orientation: u = "vertical", range: p, steps: m = -1, isClipped: h = !1, onChange: g, ..._ }, v) => {
9286
+ let y = d(null), b = re(y), x = d(null), S = d(null), [w, T] = f(p ?? [l, o]), E = ca(l, o, m), [O, k] = w.map((e) => oa(e, l, o, u, b, a, r, h)), j = k - O, M = A(t, {
9287
+ gutter: qi,
9288
+ highlight: Yi,
9289
+ knob: Xi,
9290
+ knobContainer: Zi,
9291
+ label: Ji
9282
9292
  }), F = s((e, t, n) => {
9283
- let i = u === "horizontal" ? t : n, s = aa(l, l, o, u, b, a, r, h), c = aa(w[1], l, o, u, b, a, r, h), d = aa(e, l, o, u, b, a, r, h) + i;
9284
- return ra(Math.max(s, Math.min(c, d)), l, o, u, b, a, r, h);
9293
+ let i = u === "horizontal" ? t : n, s = oa(l, l, o, u, b, a, r, h), c = oa(w[1], l, o, u, b, a, r, h), d = oa(e, l, o, u, b, a, r, h) + i;
9294
+ return ia(Math.max(s, Math.min(c, d)), l, o, u, b, a, r, h);
9285
9295
  }, [
9286
9296
  a,
9287
9297
  r,
@@ -9292,8 +9302,8 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9292
9302
  w[1],
9293
9303
  K.toString(b)
9294
9304
  ]), I = s((e, t, n) => {
9295
- let i = u === "horizontal" ? t : n, s = aa(w[0], l, o, u, b, a, r, h), c = aa(o, l, o, u, b, a, r, h), d = aa(e, l, o, u, b, a, r, h) + i;
9296
- return ra(Math.max(s, Math.min(c, d)), l, o, u, b, a, r, h);
9305
+ let i = u === "horizontal" ? t : n, s = oa(w[0], l, o, u, b, a, r, h), c = oa(o, l, o, u, b, a, r, h), d = oa(e, l, o, u, b, a, r, h) + i;
9306
+ return ia(Math.max(s, Math.min(c, d)), l, o, u, b, a, r, h);
9297
9307
  }, [
9298
9308
  a,
9299
9309
  r,
@@ -9309,12 +9319,12 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9309
9319
  }), { setValue: V, value: H, isDragging: U, isReleasing: W } = Ne(S, {
9310
9320
  initialValue: p?.[1] ?? o,
9311
9321
  transform: I
9312
- }), G = Qi({
9322
+ }), G = $i({
9313
9323
  isDraggingEndKnob: U,
9314
9324
  isDraggingStartKnob: z,
9315
9325
  isReleasingEndKnob: W,
9316
9326
  isReleasingStartKnob: B
9317
- }), q = $i({
9327
+ }), q = ea({
9318
9328
  highlightLength: j,
9319
9329
  knobHeight: r,
9320
9330
  knobPadding: i,
@@ -9335,9 +9345,9 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9335
9345
  U,
9336
9346
  W
9337
9347
  ]), c(() => {
9338
- E && L(oa(R, E));
9348
+ E && L(sa(R, E));
9339
9349
  }, [B, je(E)]), c(() => {
9340
- !E || !W || V(oa(H, E));
9350
+ !E || !W || V(sa(H, E));
9341
9351
  }, [W, je(E)]), /* @__PURE__ */ (0, D.jsx)("div", {
9342
9352
  ..._,
9343
9353
  className: C(e, u),
@@ -9351,11 +9361,11 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9351
9361
  children: [
9352
9362
  /* @__PURE__ */ (0, D.jsx)(N, {
9353
9363
  style: P(q.gutter),
9354
- element: M.gutter ?? /* @__PURE__ */ (0, D.jsx)(Ki, {})
9364
+ element: M.gutter ?? /* @__PURE__ */ (0, D.jsx)(qi, {})
9355
9365
  }),
9356
9366
  /* @__PURE__ */ (0, D.jsx)(N, {
9357
9367
  style: P(q.highlight),
9358
- element: M.highlight ?? /* @__PURE__ */ (0, D.jsx)(Ji, {})
9368
+ element: M.highlight ?? /* @__PURE__ */ (0, D.jsx)(Yi, {})
9359
9369
  }),
9360
9370
  /* @__PURE__ */ (0, D.jsx)(N, {
9361
9371
  className: G.startKnobContainer,
@@ -9368,15 +9378,15 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9368
9378
  top: `${O}px`
9369
9379
  }),
9370
9380
  disabled: (0, Ae.default)([R, H], [l, l]),
9371
- element: M.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(Xi, {}),
9381
+ element: M.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(Zi, {}),
9372
9382
  children: /* @__PURE__ */ (0, D.jsxs)(N, {
9373
9383
  className: G.startKnob,
9374
9384
  style: P(q.knob),
9375
- element: M.knob ?? /* @__PURE__ */ (0, D.jsx)(Yi, {}),
9385
+ element: M.knob ?? /* @__PURE__ */ (0, D.jsx)(Xi, {}),
9376
9386
  children: [/* @__PURE__ */ (0, D.jsx)("div", { style: q.knobHitBox }), M.label && /* @__PURE__ */ (0, D.jsx)(N, {
9377
9387
  className: G.startLabel,
9378
9388
  style: P(q.label),
9379
- element: M.label ?? /* @__PURE__ */ (0, D.jsx)(qi, {}),
9389
+ element: M.label ?? /* @__PURE__ */ (0, D.jsx)(Ji, {}),
9380
9390
  children: Number(R.toFixed(n)).toLocaleString()
9381
9391
  })]
9382
9392
  })
@@ -9392,15 +9402,15 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9392
9402
  top: `${k}px`
9393
9403
  }),
9394
9404
  disabled: (0, Ae.default)([R, H], [o, o]),
9395
- element: M.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(Xi, {}),
9405
+ element: M.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(Zi, {}),
9396
9406
  children: /* @__PURE__ */ (0, D.jsxs)(N, {
9397
9407
  className: G.endKnob,
9398
9408
  style: P(q.knob),
9399
- element: M.knob ?? /* @__PURE__ */ (0, D.jsx)(Yi, {}),
9409
+ element: M.knob ?? /* @__PURE__ */ (0, D.jsx)(Xi, {}),
9400
9410
  children: [/* @__PURE__ */ (0, D.jsx)("div", { style: q.knobHitBox }), M.label && /* @__PURE__ */ (0, D.jsx)(N, {
9401
9411
  className: G.endLabel,
9402
9412
  style: P(q.label),
9403
- element: M.label ?? /* @__PURE__ */ (0, D.jsx)(qi, {}),
9413
+ element: M.label ?? /* @__PURE__ */ (0, D.jsx)(Ji, {}),
9404
9414
  children: Number(H.toFixed(n)).toLocaleString()
9405
9415
  })]
9406
9416
  })
@@ -9408,14 +9418,14 @@ var Gi = /* @__PURE__ */ a(({ className: e, children: t, decimalPlaces: n = 2, k
9408
9418
  ]
9409
9419
  })
9410
9420
  });
9411
- }), Ki = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), qi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Ji = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Yi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Xi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), Zi = /* @__PURE__ */ Object.assign(Gi, {
9412
- Gutter: Ki,
9413
- Highlight: Ji,
9414
- Knob: Yi,
9415
- KnobContainer: Xi,
9416
- Label: qi
9421
+ }), qi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Ji = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Yi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Xi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Zi = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), Qi = /* @__PURE__ */ Object.assign(Ki, {
9422
+ Gutter: qi,
9423
+ Highlight: Yi,
9424
+ Knob: Xi,
9425
+ KnobContainer: Zi,
9426
+ Label: Ji
9417
9427
  });
9418
- function Qi({ isDraggingEndKnob: e = !1, isDraggingStartKnob: t = !1, isReleasingEndKnob: n = !1, isReleasingStartKnob: r = !1 }) {
9428
+ function $i({ isDraggingEndKnob: e = !1, isDraggingStartKnob: t = !1, isReleasingEndKnob: n = !1, isReleasingStartKnob: r = !1 }) {
9419
9429
  return k({
9420
9430
  endKnob: C({
9421
9431
  dragging: e,
@@ -9443,7 +9453,7 @@ function Qi({ isDraggingEndKnob: e = !1, isDraggingStartKnob: t = !1, isReleasin
9443
9453
  })
9444
9454
  });
9445
9455
  }
9446
- function $i({ highlightLength: e = 0, knobHeight: t = 0, knobPadding: n = 0, knobWidth: r = 0, orientation: i = "horizontal", start: a = 0 }) {
9456
+ function ea({ highlightLength: e = 0, knobHeight: t = 0, knobPadding: n = 0, knobWidth: r = 0, orientation: i = "horizontal", start: a = 0 }) {
9447
9457
  return j({
9448
9458
  body: {
9449
9459
  height: "100%",
@@ -9500,10 +9510,10 @@ function $i({ highlightLength: e = 0, knobHeight: t = 0, knobPadding: n = 0, kno
9500
9510
  }
9501
9511
  });
9502
9512
  }
9503
- function ea(e, t, n) {
9513
+ function ta(e, t, n) {
9504
9514
  return (e - t) / (n - t);
9505
9515
  }
9506
- function ta(e, t, n, r, i, a) {
9516
+ function na(e, t, n, r, i, a) {
9507
9517
  switch (t) {
9508
9518
  case "horizontal": {
9509
9519
  let t = a ? n.width - r : n.width;
@@ -9516,23 +9526,23 @@ function ta(e, t, n, r, i, a) {
9516
9526
  default: return console.error(`[etudes::RangeSlider] Invalid orientation: ${t}`), NaN;
9517
9527
  }
9518
9528
  }
9519
- function na(e, t, n) {
9529
+ function ra(e, t, n) {
9520
9530
  return e * (n - t) + t;
9521
9531
  }
9522
- function ra(e, t, n, r, i, a, o, s) {
9523
- return na(ta(e, r, i, a, o, s), t, n);
9532
+ function ia(e, t, n, r, i, a, o, s) {
9533
+ return ra(na(e, r, i, a, o, s), t, n);
9524
9534
  }
9525
- function ia(e, t, n, r, i, a) {
9535
+ function aa(e, t, n, r, i, a) {
9526
9536
  switch (t) {
9527
9537
  case "horizontal": return e * (a ? n.width - r : n.width) + (a ? r * .5 : 0);
9528
9538
  case "vertical": return e * (a ? n.height - i : n.height) + (a ? i * .5 : 0);
9529
9539
  default: return console.error(`[etudes::RangeSlider] Invalid orientation: ${t}`), NaN;
9530
9540
  }
9531
9541
  }
9532
- function aa(e, t, n, r, i, a, o, s) {
9533
- return ia(ea(e, t, n), r, i, a, o, s);
9542
+ function oa(e, t, n, r, i, a, o, s) {
9543
+ return aa(ta(e, t, n), r, i, a, o, s);
9534
9544
  }
9535
- function oa(e, t) {
9545
+ function sa(e, t) {
9536
9546
  let n = t.length, r = 0, i = Infinity;
9537
9547
  for (let a = 0; a < n; a++) {
9538
9548
  let n = t[a], o = Math.abs(e - n);
@@ -9540,63 +9550,63 @@ function oa(e, t) {
9540
9550
  }
9541
9551
  return t[r];
9542
9552
  }
9543
- function sa(e, t, n) {
9553
+ function ca(e, t, n) {
9544
9554
  if (!(n < 0)) return [
9545
9555
  e,
9546
9556
  ...[...Array(n)].map((r, i) => e + (i + 1) * (t - e) / (1 + n)),
9547
9557
  t
9548
9558
  ];
9549
9559
  }
9550
- process.env.NODE_ENV === "development" && (Gi.displayName = "RangeSlider", Ki.displayName = "RangeSlider.Gutter", qi.displayName = "RangeSlider.Label", Ji.displayName = "RangeSlider.Highlight", Yi.displayName = "RangeSlider.Knob");
9560
+ process.env.NODE_ENV === "development" && (Ki.displayName = "RangeSlider", qi.displayName = "RangeSlider.Gutter", Ji.displayName = "RangeSlider.Label", Yi.displayName = "RangeSlider.Highlight", Xi.displayName = "RangeSlider.Knob");
9551
9561
  //#endregion
9552
9562
  //#region src/primitives/Select.tsx
9553
- var ca = /* @__PURE__ */ a(({ id: e, children: t, name: n, options: r, placeholder: i, value: a = "", isRequired: o = !1, onChange: s, ...c }, l) => {
9563
+ var la = /* @__PURE__ */ a(({ id: e, children: t, name: n, options: r, placeholder: i, value: a = "", isRequired: o = !1, onChange: s, ...c }, l) => {
9554
9564
  let u = A(t, {
9555
- expandIcon: la,
9556
- option: da,
9557
- toggle: ua
9565
+ expandIcon: ua,
9566
+ option: fa,
9567
+ toggle: da
9558
9568
  });
9559
9569
  return /* @__PURE__ */ (0, D.jsxs)("div", {
9560
9570
  ...c,
9561
9571
  ref: l,
9562
- style: pa.root,
9572
+ style: ma.root,
9563
9573
  children: [/* @__PURE__ */ (0, D.jsxs)(N, {
9564
- style: pa.select,
9574
+ style: ma.select,
9565
9575
  "aria-required": o ? "true" : void 0,
9566
- element: u.toggle ?? /* @__PURE__ */ (0, D.jsx)(ua, {}),
9576
+ element: u.toggle ?? /* @__PURE__ */ (0, D.jsx)(da, {}),
9567
9577
  name: n,
9568
9578
  required: o,
9569
9579
  value: a,
9570
9580
  onChange: (e) => s?.(e.target.value),
9571
9581
  children: [i !== void 0 && /* @__PURE__ */ (0, D.jsx)(N, {
9572
9582
  disabled: !0,
9573
- element: u.option ?? /* @__PURE__ */ (0, D.jsx)(da, {}),
9583
+ element: u.option ?? /* @__PURE__ */ (0, D.jsx)(fa, {}),
9574
9584
  hidden: !0,
9575
9585
  value: "",
9576
9586
  children: i
9577
9587
  }), r.map((e, t) => /* @__PURE__ */ (0, D.jsx)(N, {
9578
- element: u.option ?? /* @__PURE__ */ (0, D.jsx)(da, {}),
9588
+ element: u.option ?? /* @__PURE__ */ (0, D.jsx)(fa, {}),
9579
9589
  value: e,
9580
9590
  children: e
9581
9591
  }, `${t}-${e}`))]
9582
9592
  }), u.expandIcon && /* @__PURE__ */ (0, D.jsx)(N, {
9583
- style: pa.expandIcon,
9593
+ style: ma.expandIcon,
9584
9594
  element: u.expandIcon
9585
9595
  })]
9586
9596
  });
9587
- }), la = ({ style: e, children: t, ...n }) => /* @__PURE__ */ (0, D.jsx)("figure", {
9597
+ }), ua = ({ style: e, children: t, ...n }) => /* @__PURE__ */ (0, D.jsx)("figure", {
9588
9598
  ...n,
9589
9599
  style: P(e, { pointerEvents: "none" }),
9590
9600
  "aria-hidden": !0,
9591
9601
  children: t
9592
- }), ua = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("select", {
9602
+ }), da = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("select", {
9593
9603
  ...t,
9594
9604
  children: e
9595
- }), da = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("option", { ...e }), fa = /* @__PURE__ */ Object.assign(ca, {
9596
- ExpandIcon: la,
9597
- Option: da,
9598
- Toggle: ua
9599
- }), pa = j({
9605
+ }), fa = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("option", { ...e }), pa = /* @__PURE__ */ Object.assign(la, {
9606
+ ExpandIcon: ua,
9607
+ Option: fa,
9608
+ Toggle: da
9609
+ }), ma = j({
9600
9610
  expandIcon: {
9601
9611
  pointerEvents: "none",
9602
9612
  zIndex: 1
@@ -9618,10 +9628,10 @@ var ca = /* @__PURE__ */ a(({ id: e, children: t, name: n, options: r, placehold
9618
9628
  width: "100%"
9619
9629
  }
9620
9630
  });
9621
- process.env.NODE_ENV === "development" && (ca.displayName = "Select", la.displayName = "Select.ExpandIcon", da.displayName = "Select.Option", ua.displayName = "Select.Toggle");
9631
+ process.env.NODE_ENV === "development" && (la.displayName = "Select", ua.displayName = "Select.ExpandIcon", fa.displayName = "Select.Option", da.displayName = "Select.Toggle");
9622
9632
  //#endregion
9623
9633
  //#region src/primitives/Slider.tsx
9624
- var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobWidth: i = 30, labelProvider: a, orientation: o = "vertical", position: l = 0, trackPadding: u = 0, isClipped: f = !1, isInverted: p = !1, isTrackInteractive: m = !0, shouldOnlyDispatchOnDragEnd: h = !1, onChange: g, onDragEnd: _, onDragStart: v, ...y }, b) => {
9634
+ var ha = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, knobPadding: r = 0, knobWidth: i = 30, labelProvider: a, orientation: o = "vertical", position: l = 0, trackPadding: u = 0, isClipped: f = !1, isInverted: p = !1, isTrackInteractive: m = !0, shouldOnlyDispatchOnDragEnd: h = !1, onChange: g, onDragEnd: _, onDragStart: v, ...y }, b) => {
9625
9635
  let x = d(null), S = d(null), w = s((e, t, r) => {
9626
9636
  let a = K.from(x.current), s = p ? 1 - e : e;
9627
9637
  switch (o) {
@@ -9668,13 +9678,13 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9668
9678
  transform: w,
9669
9679
  onDragEnd: _,
9670
9680
  onDragStart: v
9671
- }), M = p ? 1 - O : O, F = ba({
9681
+ }), M = p ? 1 - O : O, F = xa({
9672
9682
  orientation: o,
9673
9683
  isAtEnd: p ? O === 0 : O === 1,
9674
9684
  isAtStart: p ? O === 1 : O === 0,
9675
9685
  isDragging: k,
9676
9686
  isReleasing: j
9677
- }), I = xa({
9687
+ }), I = Sa({
9678
9688
  knobHeight: n,
9679
9689
  knobPadding: r,
9680
9690
  knobWidth: i,
@@ -9691,10 +9701,10 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9691
9701
  k || !h || g?.(O, !0);
9692
9702
  }, [k]);
9693
9703
  let L = A(t, {
9694
- knob: ga,
9695
- knobContainer: _a,
9696
- label: va,
9697
- track: ha
9704
+ knob: _a,
9705
+ knobContainer: va,
9706
+ label: ya,
9707
+ track: ga
9698
9708
  });
9699
9709
  return /* @__PURE__ */ (0, D.jsx)("div", {
9700
9710
  ...y,
@@ -9716,7 +9726,7 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9716
9726
  left: "0",
9717
9727
  width: `calc(${M * 100}% - ${u <= 0 ? 0 : i * .5}px - ${u}px)`
9718
9728
  }),
9719
- element: L.track ?? /* @__PURE__ */ (0, D.jsx)(ha, {}),
9729
+ element: L.track ?? /* @__PURE__ */ (0, D.jsx)(ga, {}),
9720
9730
  onClick: T,
9721
9731
  children: /* @__PURE__ */ (0, D.jsx)("div", { style: I.trackHitBox })
9722
9732
  }),
@@ -9729,7 +9739,7 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9729
9739
  right: "0",
9730
9740
  width: `calc(${(1 - M) * 100}% - ${u <= 0 ? 0 : i * .5}px - ${u}px)`
9731
9741
  }),
9732
- element: L.track ?? /* @__PURE__ */ (0, D.jsx)(ha, {}),
9742
+ element: L.track ?? /* @__PURE__ */ (0, D.jsx)(ga, {}),
9733
9743
  onClick: T,
9734
9744
  children: /* @__PURE__ */ (0, D.jsx)("div", { style: I.trackHitBox })
9735
9745
  }),
@@ -9737,15 +9747,15 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9737
9747
  className: C(F.knobContainer),
9738
9748
  ref: S,
9739
9749
  style: I.knobContainer,
9740
- element: L.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(_a, {}),
9750
+ element: L.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(va, {}),
9741
9751
  children: /* @__PURE__ */ (0, D.jsxs)(N, {
9742
9752
  className: C(F.knob),
9743
9753
  style: P(I.knob),
9744
- element: L.knob ?? /* @__PURE__ */ (0, D.jsx)(ga, {}),
9754
+ element: L.knob ?? /* @__PURE__ */ (0, D.jsx)(_a, {}),
9745
9755
  children: [/* @__PURE__ */ (0, D.jsx)("div", { style: I.knobHitBox }), a && /* @__PURE__ */ (0, D.jsx)(N, {
9746
9756
  className: C(F.label),
9747
9757
  style: P(I.label),
9748
- element: L.label ?? /* @__PURE__ */ (0, D.jsx)(va, {}),
9758
+ element: L.label ?? /* @__PURE__ */ (0, D.jsx)(ya, {}),
9749
9759
  children: a(O)
9750
9760
  })]
9751
9761
  })
@@ -9753,13 +9763,13 @@ var ma = /* @__PURE__ */ a(({ className: e, children: t, knobHeight: n = 30, kno
9753
9763
  ]
9754
9764
  })
9755
9765
  });
9756
- }), ha = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), ga = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), _a = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), va = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), ya = /* @__PURE__ */ Object.assign(ma, {
9757
- Track: ha,
9758
- Knob: ga,
9759
- KnobContainer: _a,
9760
- Label: va
9766
+ }), ga = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), _a = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), va = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), ya = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), ba = /* @__PURE__ */ Object.assign(ha, {
9767
+ Track: ga,
9768
+ Knob: _a,
9769
+ KnobContainer: va,
9770
+ Label: ya
9761
9771
  });
9762
- function ba({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, isDragging: r = !1, isReleasing: i = !1 }) {
9772
+ function xa({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, isDragging: r = !1, isReleasing: i = !1 }) {
9763
9773
  return k({
9764
9774
  knob: C(e, {
9765
9775
  "at-end": t,
@@ -9793,7 +9803,7 @@ function ba({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, i
9793
9803
  })
9794
9804
  });
9795
9805
  }
9796
- function xa({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPosition: r = 0, orientation: i = "vertical", isClipped: a = !1, isTrackInteractive: o = !0 }) {
9806
+ function Sa({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPosition: r = 0, orientation: i = "vertical", isClipped: a = !1, isTrackInteractive: o = !0 }) {
9797
9807
  return j({
9798
9808
  body: {
9799
9809
  height: "100%",
@@ -9858,20 +9868,20 @@ function xa({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPo
9858
9868
  }
9859
9869
  });
9860
9870
  }
9861
- process.env.NODE_ENV === "development" && (ma.displayName = "Slider", ha.displayName = "Slider.Track", ga.displayName = "Slider.Knob", _a.displayName = "Slider.KnobContainer", va.displayName = "Slider.Label");
9871
+ process.env.NODE_ENV === "development" && (ha.displayName = "Slider", ga.displayName = "Slider.Track", _a.displayName = "Slider.Knob", va.displayName = "Slider.KnobContainer", ya.displayName = "Slider.Label");
9862
9872
  //#endregion
9863
9873
  //#region src/primitives/StepSlider.tsx
9864
- var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding: i = 0, knobWidth: a = 30, labelProvider: o, orientation: l = "vertical", steps: u = Da(10), trackPadding: p = 0, isClipped: m = !1, isInverted: h = !1, isTrackInteractive: g = !0, shouldOnlyDispatchOnDragEnd: _ = !1, onDragEnd: v, onDragStart: y, onIndexChange: b, onPositionChange: x, ...S }, w) => {
9874
+ var Ca = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeight: r = 30, knobPadding: i = 0, knobWidth: a = 30, labelProvider: o, orientation: l = "vertical", steps: u = Oa(10), trackPadding: p = 0, isClipped: m = !1, isInverted: h = !1, isTrackInteractive: g = !0, shouldOnlyDispatchOnDragEnd: _ = !1, onDragEnd: v, onDragStart: y, onIndexChange: b, onPositionChange: x, ...S }, w) => {
9865
9875
  let T = d(null), E = d(null), O = re(T), [k, j] = f(n), M = s((e, t, n) => {
9866
- let i = h ? Na(e) : e;
9876
+ let i = h ? Pa(e) : e;
9867
9877
  switch (l) {
9868
9878
  case "horizontal": {
9869
- let e = m ? O.width - a : O.width, n = Pa((i * e + t) / e);
9870
- return h ? Na(n) : n;
9879
+ let e = m ? O.width - a : O.width, n = Fa((i * e + t) / e);
9880
+ return h ? Pa(n) : n;
9871
9881
  }
9872
9882
  case "vertical": {
9873
- let e = m ? O.height - r : O.height, t = Pa((i * e + n) / e);
9874
- return h ? Na(t) : t;
9883
+ let e = m ? O.height - r : O.height, t = Fa((i * e + n) / e);
9884
+ return h ? Pa(t) : t;
9875
9885
  }
9876
9886
  default: return console.error(`[etudes::StepSlider] Invalid orientation: ${l}`), NaN;
9877
9887
  }
@@ -9884,7 +9894,7 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9884
9894
  r,
9885
9895
  l
9886
9896
  ]), { setValue: F, value: I, isDragging: L, isReleasing: R } = Ne(E, {
9887
- initialValue: Aa(n, u),
9897
+ initialValue: ja(n, u),
9888
9898
  transform: M,
9889
9899
  onDragEnd: v,
9890
9900
  onDragStart: y
@@ -9893,16 +9903,16 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9893
9903
  let t = K.fromViewport();
9894
9904
  switch (l) {
9895
9905
  case "horizontal": {
9896
- let n = (e.clientX + t.left - O.left) / O.width, r = h ? Na(n) : n, i = ka(r, u);
9897
- j(i === k ? Pa(r > I ? i + 1 : i - 1, u.length - 1) : i);
9906
+ let n = (e.clientX + t.left - O.left) / O.width, r = h ? Pa(n) : n, i = Aa(r, u);
9907
+ j(i === k ? Fa(r > I ? i + 1 : i - 1, u.length - 1) : i);
9898
9908
  break;
9899
9909
  }
9900
9910
  case "vertical": {
9901
- let n = (e.clientY + t.top - O.top) / O.height, r = h ? Na(n) : n, i = ka(r, u);
9911
+ let n = (e.clientY + t.top - O.top) / O.height, r = h ? Pa(n) : n, i = Aa(r, u);
9902
9912
  if (i === k) {
9903
9913
  let e = r > I ? i + 1 : i - 1;
9904
- F(Aa(e, u)), j(Pa(e, u.length - 1));
9905
- } else F(Aa(i, u)), j(i);
9914
+ F(ja(e, u)), j(Fa(e, u.length - 1));
9915
+ } else F(ja(i, u)), j(i);
9906
9916
  break;
9907
9917
  }
9908
9918
  default: console.error(`[etudes::StepSlider] Invalid orientation: ${l}`);
@@ -9918,13 +9928,13 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9918
9928
  g,
9919
9929
  l,
9920
9930
  je(u)
9921
- ]), B = h ? Na(I) : I, V = ja({
9931
+ ]), B = h ? Pa(I) : I, V = Ma({
9922
9932
  orientation: l,
9923
9933
  isAtEnd: h ? I === 0 : I === 1,
9924
9934
  isAtStart: h ? I === 1 : I === 0,
9925
9935
  isDragging: L,
9926
9936
  isReleasing: R
9927
- }), H = Ma({
9937
+ }), H = Na({
9928
9938
  knobHeight: r,
9929
9939
  knobPadding: i,
9930
9940
  knobWidth: a,
@@ -9933,13 +9943,13 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9933
9943
  isClipped: m,
9934
9944
  isTrackInteractive: g
9935
9945
  }), U = A(t, {
9936
- knob: Ca,
9937
- knobContainer: wa,
9938
- label: Ta,
9939
- track: Ea
9946
+ knob: wa,
9947
+ knobContainer: Ta,
9948
+ label: Ea,
9949
+ track: Da
9940
9950
  });
9941
9951
  return c(() => {
9942
- L || (F(Aa(n, u)), j(n));
9952
+ L || (F(ja(n, u)), j(n));
9943
9953
  }, [
9944
9954
  n,
9945
9955
  L,
@@ -9947,10 +9957,10 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9947
9957
  ]), c(() => {
9948
9958
  if (L) {
9949
9959
  if (_) return;
9950
- j(ka(I, u));
9960
+ j(Aa(I, u));
9951
9961
  } else {
9952
- let e = ka(I, u);
9953
- F(Aa(e, u)), j(e);
9962
+ let e = Aa(I, u);
9963
+ F(ja(e, u)), j(e);
9954
9964
  }
9955
9965
  }, [
9956
9966
  I,
@@ -9980,7 +9990,7 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9980
9990
  left: "0",
9981
9991
  width: `calc(${B * 100}% - ${p <= 0 ? 0 : a * .5}px - ${p}px)`
9982
9992
  }),
9983
- element: U.track ?? /* @__PURE__ */ (0, D.jsx)(Ea, {}),
9993
+ element: U.track ?? /* @__PURE__ */ (0, D.jsx)(Da, {}),
9984
9994
  onClick: z,
9985
9995
  children: /* @__PURE__ */ (0, D.jsx)("div", { style: H.trackHitBox })
9986
9996
  }),
@@ -9988,12 +9998,12 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
9988
9998
  className: C(h ? "start" : "end", V.track),
9989
9999
  style: P(H.track, l === "vertical" ? {
9990
10000
  bottom: "0",
9991
- height: `calc(${Na(B) * 100}% - ${p <= 0 ? 0 : r * .5}px - ${p}px)`
10001
+ height: `calc(${Pa(B) * 100}% - ${p <= 0 ? 0 : r * .5}px - ${p}px)`
9992
10002
  } : {
9993
10003
  right: "0",
9994
- width: `calc(${Na(B) * 100}% - ${p <= 0 ? 0 : a * .5}px - ${p}px)`
10004
+ width: `calc(${Pa(B) * 100}% - ${p <= 0 ? 0 : a * .5}px - ${p}px)`
9995
10005
  }),
9996
- element: U.track ?? /* @__PURE__ */ (0, D.jsx)(Ea, {}),
10006
+ element: U.track ?? /* @__PURE__ */ (0, D.jsx)(Da, {}),
9997
10007
  onClick: z,
9998
10008
  children: /* @__PURE__ */ (0, D.jsx)("div", { style: H.trackHitBox })
9999
10009
  }),
@@ -10001,50 +10011,50 @@ var Sa = /* @__PURE__ */ a(({ className: e, children: t, index: n = 0, knobHeigh
10001
10011
  className: C(V.knobContainer),
10002
10012
  ref: E,
10003
10013
  style: P(H.knobContainer),
10004
- element: U.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(wa, {}),
10014
+ element: U.knobContainer ?? /* @__PURE__ */ (0, D.jsx)(Ta, {}),
10005
10015
  children: /* @__PURE__ */ (0, D.jsxs)(N, {
10006
10016
  className: C(V.knob),
10007
10017
  style: P(H.knob),
10008
- element: U.knob ?? /* @__PURE__ */ (0, D.jsx)(Ca, {}),
10018
+ element: U.knob ?? /* @__PURE__ */ (0, D.jsx)(wa, {}),
10009
10019
  children: [/* @__PURE__ */ (0, D.jsx)("div", { style: H.knobHitBox }), u && o && /* @__PURE__ */ (0, D.jsx)(N, {
10010
10020
  className: C(V.label),
10011
10021
  style: P(H.label),
10012
- element: U.label ?? /* @__PURE__ */ (0, D.jsx)(Ta, {}),
10013
- children: o(I, ka(I, u))
10022
+ element: U.label ?? /* @__PURE__ */ (0, D.jsx)(Ea, {}),
10023
+ children: o(I, Aa(I, u))
10014
10024
  })]
10015
10025
  })
10016
10026
  })
10017
10027
  ]
10018
10028
  })
10019
10029
  });
10020
- }), Ca = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), wa = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), Ta = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Ea = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e });
10021
- function Da(e) {
10030
+ }), wa = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Ta = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("button", { ...e }), Ea = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e }), Da = ({ ...e }) => /* @__PURE__ */ (0, D.jsx)("div", { ...e });
10031
+ function Oa(e) {
10022
10032
  if (e <= 1) return console.error("[etudes::StepSlider] `length` value must be greater than or equal to 2"), [];
10023
10033
  if (Math.round(e) !== e) return console.error("[etudes::StepSlider] `length` value must be an integer"), [];
10024
10034
  let t = 1 / (e - 1);
10025
10035
  return Array(e).fill(null).map((e, n) => t * n);
10026
10036
  }
10027
- var Oa = /* @__PURE__ */ Object.assign(Sa, {
10028
- Knob: Ca,
10029
- KnobContainer: wa,
10030
- Label: Ta,
10031
- Track: Ea,
10032
- generateSteps: Da
10037
+ var ka = /* @__PURE__ */ Object.assign(Ca, {
10038
+ Knob: wa,
10039
+ KnobContainer: Ta,
10040
+ Label: Ea,
10041
+ Track: Da,
10042
+ generateSteps: Oa
10033
10043
  });
10034
- function ka(e, t) {
10044
+ function Aa(e, t) {
10035
10045
  let n = -1, r = NaN;
10036
10046
  for (let i = 0, a = t.length; i < a; i++) {
10037
- let a = Aa(i, t);
10047
+ let a = ja(i, t);
10038
10048
  if (isNaN(a)) continue;
10039
10049
  let o = Math.abs(e - a);
10040
10050
  (isNaN(r) || o < r) && (r = o, n = i);
10041
10051
  }
10042
10052
  return n;
10043
10053
  }
10044
- function Aa(e, t) {
10054
+ function ja(e, t) {
10045
10055
  return e >= t.length ? NaN : t[e];
10046
10056
  }
10047
- function ja({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, isDragging: r = !1, isReleasing: i = !1 }) {
10057
+ function Ma({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, isDragging: r = !1, isReleasing: i = !1 }) {
10048
10058
  return k({
10049
10059
  knob: C(e, {
10050
10060
  "at-end": t,
@@ -10078,7 +10088,7 @@ function ja({ orientation: e = "vertical", isAtEnd: t = !1, isAtStart: n = !1, i
10078
10088
  })
10079
10089
  });
10080
10090
  }
10081
- function Ma({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPosition: r = 0, orientation: i = "vertical", isClipped: a = !1, isTrackInteractive: o = !1 }) {
10091
+ function Na({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPosition: r = 0, orientation: i = "vertical", isClipped: a = !1, isTrackInteractive: o = !1 }) {
10082
10092
  return j({
10083
10093
  body: {
10084
10094
  height: "100%",
@@ -10143,16 +10153,16 @@ function Ma({ knobHeight: e = 0, knobPadding: t = 0, knobWidth: n = 0, naturalPo
10143
10153
  }
10144
10154
  });
10145
10155
  }
10146
- function Na(e) {
10156
+ function Pa(e) {
10147
10157
  return 1 - e;
10148
10158
  }
10149
- function Pa(e, t = 1, n = 0) {
10159
+ function Fa(e, t = 1, n = 0) {
10150
10160
  return Math.max(n, Math.min(t, e));
10151
10161
  }
10152
- process.env.NODE_ENV === "development" && (Sa.displayName = "StepSlider", Ea.displayName = "StepSlider.Track", Ca.displayName = "StepSlider.Knob", wa.displayName = "StepSlider.KnobContainer", Ta.displayName = "StepSlider.Label");
10162
+ process.env.NODE_ENV === "development" && (Ca.displayName = "StepSlider", Da.displayName = "StepSlider.Track", wa.displayName = "StepSlider.Knob", Ta.displayName = "StepSlider.KnobContainer", Ea.displayName = "StepSlider.Label");
10153
10163
  //#endregion
10154
10164
  //#region src/primitives/SwipeRegion.tsx
10155
- var Fa = /* @__PURE__ */ a(({ children: e, threshold: t = .5, isEnabled: n = !0, onSwipeDown: r, onSwipeLeft: i, onSwipeRight: a, onSwipeUp: o, ...s }, c) => {
10165
+ var Ia = /* @__PURE__ */ a(({ children: e, threshold: t = .5, isEnabled: n = !0, onSwipeDown: r, onSwipeLeft: i, onSwipeRight: a, onSwipeUp: o, ...s }, c) => {
10156
10166
  let [l, u] = f(void 0), [d, p] = f(void 0), [m, h] = f(NaN), g = (e, t) => {
10157
10167
  if (isNaN(e) || isNaN(t)) return y();
10158
10168
  u(U.make(e, t));
@@ -10180,22 +10190,22 @@ var Fa = /* @__PURE__ */ a(({ children: e, threshold: t = .5, isEnabled: n = !0,
10180
10190
  children: e
10181
10191
  });
10182
10192
  });
10183
- process.env.NODE_ENV === "development" && (Fa.displayName = "SwipeRegion");
10193
+ process.env.NODE_ENV === "development" && (Ia.displayName = "SwipeRegion");
10184
10194
  //#endregion
10185
10195
  //#region src/primitives/TextArea.tsx
10186
- var Ia = /* @__PURE__ */ a(({ onChange: e, ...t }, n) => /* @__PURE__ */ (0, D.jsx)("textarea", {
10196
+ var La = /* @__PURE__ */ a(({ onChange: e, ...t }, n) => /* @__PURE__ */ (0, D.jsx)("textarea", {
10187
10197
  ...t,
10188
10198
  ref: n,
10189
10199
  onChange: (t) => e(t.target.value)
10190
10200
  }));
10191
- process.env.NODE_ENV === "development" && (Ia.displayName = "TextArea");
10201
+ process.env.NODE_ENV === "development" && (La.displayName = "TextArea");
10192
10202
  //#endregion
10193
10203
  //#region src/primitives/Toggle.tsx
10194
- var La = /* @__PURE__ */ a(({ className: e, style: t, children: n, orientation: r = "horizontal", isInverted: i = !1, isOn: a = !1, onChange: o, ...s }, c) => {
10195
- let l = d(null), u = Vt(l), f = A(n, {
10196
- knob: za,
10197
- track: Ra
10198
- }), p = Va({ isOn: a }), m = Ha({
10204
+ var Ra = /* @__PURE__ */ a(({ className: e, style: t, children: n, orientation: r = "horizontal", isInverted: i = !1, isOn: a = !1, onChange: o, ...s }, c) => {
10205
+ let l = d(null), u = Ht(l), f = A(n, {
10206
+ knob: Ba,
10207
+ track: za
10208
+ }), p = Ha({ isOn: a }), m = Ua({
10199
10209
  knobSize: u,
10200
10210
  orientation: r,
10201
10211
  isInverted: i,
@@ -10214,7 +10224,7 @@ var La = /* @__PURE__ */ a(({ className: e, style: t, children: n, orientation:
10214
10224
  }), /* @__PURE__ */ (0, D.jsx)(N, {
10215
10225
  className: p.track,
10216
10226
  style: m.track,
10217
- element: f.track ?? /* @__PURE__ */ (0, D.jsx)(Ra, {}),
10227
+ element: f.track ?? /* @__PURE__ */ (0, D.jsx)(za, {}),
10218
10228
  children: /* @__PURE__ */ (0, D.jsx)("div", {
10219
10229
  style: {
10220
10230
  height: "100%",
@@ -10225,29 +10235,29 @@ var La = /* @__PURE__ */ a(({ className: e, style: t, children: n, orientation:
10225
10235
  className: p.knob,
10226
10236
  ref: l,
10227
10237
  style: m.knob,
10228
- element: f.knob ?? /* @__PURE__ */ (0, D.jsx)(za, {})
10238
+ element: f.knob ?? /* @__PURE__ */ (0, D.jsx)(Ba, {})
10229
10239
  })
10230
10240
  })
10231
10241
  })]
10232
10242
  });
10233
- }), Ra = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
10243
+ }), za = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
10234
10244
  ...t,
10235
10245
  children: e
10236
- }), za = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
10246
+ }), Ba = ({ children: e, ...t }) => /* @__PURE__ */ (0, D.jsx)("div", {
10237
10247
  ...t,
10238
10248
  children: e
10239
- }), Ba = /* @__PURE__ */ Object.assign(La, {
10240
- Knob: za,
10241
- Track: Ra
10249
+ }), Va = /* @__PURE__ */ Object.assign(Ra, {
10250
+ Knob: Ba,
10251
+ Track: za
10242
10252
  });
10243
- function Va({ isOn: e = !1 }) {
10253
+ function Ha({ isOn: e = !1 }) {
10244
10254
  return k({
10245
10255
  knob: C({ active: e }),
10246
10256
  root: C({ active: e }),
10247
10257
  track: C({ active: e })
10248
10258
  });
10249
10259
  }
10250
- function Ha({ knobSize: e = G.zero, orientation: t = "horizontal", isInverted: n = !1, isOn: r = !1 }) {
10260
+ function Ua({ knobSize: e = G.zero, orientation: t = "horizontal", isInverted: n = !1, isOn: r = !1 }) {
10251
10261
  return j({
10252
10262
  input: {
10253
10263
  height: 0,
@@ -10277,26 +10287,26 @@ function Ha({ knobSize: e = G.zero, orientation: t = "horizontal", isInverted: n
10277
10287
  track: { position: "relative" }
10278
10288
  });
10279
10289
  }
10280
- process.env.NODE_ENV === "development" && (La.displayName = "Toggle", za.displayName = "Toggle.Knob", Ra.displayName = "Toggle.Track");
10290
+ process.env.NODE_ENV === "development" && (Ra.displayName = "Toggle", Ba.displayName = "Toggle.Knob", za.displayName = "Toggle.Track");
10281
10291
  //#endregion
10282
10292
  //#region src/utils/createKeyDeep.ts
10283
- function Ua(e) {
10284
- return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(Ua)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, Ua(t)])) : je(e);
10293
+ function Wa(e) {
10294
+ return e == null ? "" : Array.isArray(e) ? JSON.stringify(e.map(Wa)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => [e, Wa(t)])) : je(e);
10285
10295
  }
10286
10296
  //#endregion
10287
10297
  //#region src/utils/ExtractChildren.tsx
10288
- function Wa({ children: e, ...n }) {
10298
+ function Ga({ children: e, ...n }) {
10289
10299
  return /* @__PURE__ */ (0, D.jsx)(D.Fragment, { children: t.map(e, (e) => o(e) ? M(e, { ...n }) : e) });
10290
10300
  }
10291
- process.env.NODE_ENV === "development" && (Wa.displayName = "ExtractChildren");
10301
+ process.env.NODE_ENV === "development" && (Ga.displayName = "ExtractChildren");
10292
10302
  //#endregion
10293
10303
  //#region src/utils/getSystemColorScheme.ts
10294
- function Ga() {
10304
+ function Ka() {
10295
10305
  return typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
10296
10306
  }
10297
10307
  //#endregion
10298
10308
  //#region src/utils/NoSSR.tsx
10299
- function Ka({ children: e, fallback: t = void 0 }) {
10309
+ function qa({ children: e, fallback: t = void 0 }) {
10300
10310
  let [n, i] = f(!1);
10301
10311
  if (c(() => {
10302
10312
  i(typeof window < "u");
@@ -10306,4 +10316,4 @@ function Ka({ children: e, fallback: t = void 0 }) {
10306
10316
  });
10307
10317
  }
10308
10318
  //#endregion
10309
- export { sn as Accordion, L as Burger, V as BurgerButton, we as Button, pn as Carousel, bn as CodeInput, Yt as Collection, Y as Conditional, An as Counter, pe as CoverImage, Se as CoverVideo, Fn as Dial, Gn as Dropdown, qe as Each, $e as ExtractChild, Wa as ExtractChildren, Fi as FlatSVG, Ii as Form, ce as Image, ie as ImageSource, Ri as MasonryGrid, Ka as NoSSR, De as OptionButton, Fe as Panorama, We as PanoramaSlider, le as Picture, Zi as RangeSlider, O as Repeat, fa as Select, Ke as SelectableButton, ya as Slider, Oa as StepSlider, N as Styled, Fa as SwipeRegion, Ze as Switch, Ia as TextArea, Tn as TextField, Ba as Toggle, ve as Video, et as WithTooltip, de as _Content, ga as _Knob, _a as _KnobContainer, va as _Label, ha as _Track, fe as _Viewport, k as asClassNameDict, A as asComponentDict, j as asStyleDict, M as cloneStyledElement, je as createKey, Ua as createKeyDeep, bt as createLocalCache, Ft as createSessionCache, Ht as getStyle, Ga as getSystemColorScheme, gt as isTouchDevice, Ut as setStyle, P as styles, ot as useClassName, st as useClickOutside, ct as useCopyBlobToClipboard, dt as useDPR, lt as useDownloadBlob, ft as useDrag, pt as useDropzone, ae as useImageLoader, oe as useImageSize, Me as useInertiaDrag, Ne as useInertiaDragValue, ee as useIntersectionObserver, mt as useInterval, ht as useIsMounted, _t as useIsTouchDevice, vt as useKeyboardShortcut, J as useLatest, Tt as useLocalCache, Et as useMouseEnter, Dt as useMouseLeave, Ot as useOS, kt as usePrevious, re as useRect, At as useScrollPosition, Bt as useSessionCache, Vt as useSize, te as useSizeObserver, Wt as useStyle, Gt as useSystemColorScheme, Kt as useTimeout, he as useVideoMetadataLoader, ge as useVideoSize, ne as useViewportSize };
10319
+ export { cn as Accordion, L as Burger, V as BurgerButton, we as Button, mn as Carousel, xn as CodeInput, Xt as Collection, Y as Conditional, jn as Counter, pe as CoverImage, Se as CoverVideo, In as Dial, Kn as Dropdown, qe as Each, $e as ExtractChild, Ga as ExtractChildren, Ii as FlatSVG, Li as Form, ce as Image, ie as ImageSource, zi as MasonryGrid, qa as NoSSR, De as OptionButton, Fe as Panorama, We as PanoramaSlider, le as Picture, Qi as RangeSlider, O as Repeat, pa as Select, Ke as SelectableButton, ba as Slider, ka as StepSlider, N as Styled, Ia as SwipeRegion, Ze as Switch, La as TextArea, En as TextField, Va as Toggle, ve as Video, nt as WithTooltip, de as _Content, _a as _Knob, va as _KnobContainer, ya as _Label, ga as _Track, fe as _Viewport, k as asClassNameDict, A as asComponentDict, j as asStyleDict, M as cloneStyledElement, je as createKey, Wa as createKeyDeep, xt as createLocalCache, It as createSessionCache, Ut as getStyle, Ka as getSystemColorScheme, _t as isTouchDevice, et as measureIntrinsicSize, Wt as setStyle, tt as setStyles, P as styles, st as useClassName, ct as useClickOutside, lt as useCopyBlobToClipboard, ft as useDPR, ut as useDownloadBlob, pt as useDrag, mt as useDropzone, ae as useImageLoader, oe as useImageSize, Me as useInertiaDrag, Ne as useInertiaDragValue, ee as useIntersectionObserver, ht as useInterval, gt as useIsMounted, vt as useIsTouchDevice, yt as useKeyboardShortcut, J as useLatest, Et as useLocalCache, Dt as useMouseEnter, Ot as useMouseLeave, kt as useOS, At as usePrevious, re as useRect, jt as useScrollPosition, Vt as useSessionCache, Ht as useSize, te as useSizeObserver, Gt as useStyle, Kt as useSystemColorScheme, qt as useTimeout, he as useVideoMetadataLoader, ge as useVideoSize, ne as useViewportSize };