@sheetxl/utils-react 0.7.28-beta.4 → 0.8.0-beta.2

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.
@@ -1,35 +1,35 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.7.28-beta.4
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.2
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { CommonUtils as e, DefaultLanguagePackService as t, DefaultNotifier as n, ExpectedError as o, InternalClipboard as r, Notifier as i, TimerUtils as s, fetchLocaleResourceAll as l, formatMessage as a, loadPackageLocales as c, mergeMessageFiles as h, resolveLocaleChain as u } from "@sheetxl/utils";
8
8
  import * as d from "react";
9
- import f, { Component as p, cloneElement as m, createContext as g, createElement as _, forwardRef as v, isValidElement as y, memo as b, useCallback as w, useContext as x, useEffect as S, useId as C, useImperativeHandle as M, useLayoutEffect as E, useMemo as k, useReducer as T, useRef as L, useState as D, useSyncExternalStore as A } from "react";
10
- import { Fragment as P, jsx as z, jsxs as R } from "react/jsx-runtime";
11
- import * as $ from "detect-it";
12
- import { useMeasure as B } from "react-use";
9
+ import f, { Component as p, cloneElement as m, createContext as g, createElement as _, forwardRef as v, isValidElement as y, lazy as b, memo as w, useCallback as x, useContext as S, useEffect as C, useId as M, useImperativeHandle as E, useLayoutEffect as T, useMemo as k, useReducer as L, useRef as D, useState as P, useSyncExternalStore as A } from "react";
10
+ import { Fragment as z, jsx as R, jsxs as $ } from "react/jsx-runtime";
11
+ import * as B from "detect-it";
12
+ import { useMeasure as I } from "react-use";
13
13
  import { mergeRefs as H } from "react-merge-refs";
14
- import { createRoot as I } from "react-dom/client";
15
- import { createPortal as N, unstable_batchedUpdates as O } from "react-dom";
16
- import F from "clsx";
17
- import { autoUpdate as W, flip as K, offset as V, size as j, useFloating as U } from "@floating-ui/react-dom";
18
- import { DraggableCore as Y } from "react-draggable";
19
- import X from "prop-types";
20
- var q = Object.defineProperty, Z = (e, t) => {
14
+ import { createRoot as N } from "react-dom/client";
15
+ import { createPortal as O, unstable_batchedUpdates as F } from "react-dom";
16
+ import W from "clsx";
17
+ import { autoUpdate as K, flip as V, offset as j, size as Y, useFloating as U } from "@floating-ui/react-dom";
18
+ import { DraggableCore as X } from "react-draggable";
19
+ import q from "prop-types";
20
+ var Z = Object.defineProperty, G = (e, t) => {
21
21
  let n = {};
22
- for (var o in e) q(n, o, {
22
+ for (var o in e) Z(n, o, {
23
23
  get: e[o],
24
24
  enumerable: !0
25
25
  });
26
- return t || q(n, Symbol.toStringTag, { value: "Module" }), n;
27
- }, G = {
26
+ return t || Z(n, Symbol.toStringTag, { value: "Module" }), n;
27
+ }, J = {
28
28
  Shift: "shift",
29
29
  Alt: "alt",
30
30
  Ctrl: "ctrl",
31
31
  Meta: "meta"
32
- }, J = {
32
+ }, Q = {
33
33
  BackSpace: 8,
34
34
  Tab: 9,
35
35
  Clear: 12,
@@ -74,15 +74,15 @@ var q = Object.defineProperty, Z = (e, t) => {
74
74
  BracketRight: 221,
75
75
  BracketLeft: 219,
76
76
  Composition: 229
77
- }, Q = {
77
+ }, ee = {
78
78
  Left: 1,
79
79
  Middle: 2,
80
80
  Right: 3
81
- }, ee = {
81
+ }, te = {
82
82
  Toolbar: "toolbar",
83
83
  Menuitem: "menuitem"
84
- }, te = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
- function ne(e, t) {
84
+ }, ne = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
85
+ function oe(e, t) {
86
86
  const n = {}, o = {}, r = t.length;
87
87
  for (let i = 0; i < r; i++) {
88
88
  const r = t[i];
@@ -91,7 +91,7 @@ function ne(e, t) {
91
91
  if ("key" === e) continue;
92
92
  const t = r[e];
93
93
  if (void 0 !== t) {
94
- if (te.has(e) && Array.isArray(t)) {
94
+ if (ne.has(e) && Array.isArray(t)) {
95
95
  const o = n[e];
96
96
  n[e] = [...t, ...o ?? []];
97
97
  } else n[e] = t;
@@ -105,7 +105,7 @@ function ne(e, t) {
105
105
  contributedBy: o
106
106
  };
107
107
  }
108
- var oe = class {
108
+ var re = class {
109
109
  constructor() {
110
110
  this._byName = /* @__PURE__ */ new Map(), this._dynamicByName = /* @__PURE__ */ new Map(), this._listeners = /* @__PURE__ */ new Set(), this._batchDepth = 0, this._batchDirty = !1, this._version = 0;
111
111
  }
@@ -177,7 +177,7 @@ var oe = class {
177
177
  const n = this._byName.get(e)?.get(t);
178
178
  if (n && 0 !== n.length) return {
179
179
  key: t,
180
- ...ne(t, n.map((e) => ({
180
+ ...oe(t, n.map((e) => ({
181
181
  key: t,
182
182
  ...e.def
183
183
  }))).props
@@ -224,12 +224,12 @@ var oe = class {
224
224
  _notify() {
225
225
  this._version++, this._batchDepth > 0 ? this._batchDirty = !0 : this._listeners.forEach((e) => e.onChange?.());
226
226
  }
227
- }, re = new oe(), ie = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, se = (e, t) => {
227
+ }, ie = new re(), se = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, le = (e, t) => {
228
228
  if (e) {
229
229
  for (const n in e) if (n.toLowerCase() === t) return e[n];
230
230
  }
231
231
  };
232
- var le = new class {
232
+ var ae = new class {
233
233
  constructor() {
234
234
  this._items = /* @__PURE__ */ new Map(), this._version = 0, this._listeners = /* @__PURE__ */ new Set();
235
235
  }
@@ -250,13 +250,13 @@ var le = new class {
250
250
  this._items.set(o, function(e) {
251
251
  const { getLabel: n, getDescription: o, getIcon: r } = e, i = e.key, s = { ...e };
252
252
  return s.getLabel = (e) => {
253
- const o = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
253
+ const o = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
254
254
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (o ? t.lookup(`cmd.${i}.label@${o}`) : void 0) ?? t.lookup(`cmd.${i}.label`) ?? n?.(e);
255
255
  }, s.getDescription = (e) => {
256
- const n = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
256
+ const n = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
257
257
  return "string" == typeof s ? r?.params ? a(s, r.params, t.getActive()) : s : (n ? t.lookup(`cmd.${i}.desc@${n}`) : void 0) ?? t.lookup(`cmd.${i}.desc`) ?? o?.(e);
258
258
  }, s.getIcon = (e) => {
259
- const t = e && e !== i ? e : void 0, n = re.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
259
+ const t = e && e !== i ? e : void 0, n = ie.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
260
260
  return "string" == typeof o ? o : r ? r(e) : void 0;
261
261
  }, s;
262
262
  }(e)), this._notify();
@@ -273,7 +273,7 @@ var le = new class {
273
273
  if (!n || !Array.isArray(n.members)) return null;
274
274
  const o = n.members, r = /* @__PURE__ */ new Set();
275
275
  for (const e of o) {
276
- const t = ie(e);
276
+ const t = se(e);
277
277
  t && r.add(t);
278
278
  }
279
279
  const i = [];
@@ -282,7 +282,7 @@ var le = new class {
282
282
  const n = e.key;
283
283
  if (!n || n.toLowerCase() === t) continue;
284
284
  if (r.has(n.toLowerCase())) continue;
285
- const o = se(e.contributions, t);
285
+ const o = le(e.contributions, t);
286
286
  o && i.push({
287
287
  key: n,
288
288
  placement: o,
@@ -300,7 +300,7 @@ var le = new class {
300
300
  const t = e.placement.order ?? 0;
301
301
  let n;
302
302
  if (e.placement.anchor) {
303
- const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => ie(e) === r);
303
+ const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => se(e) === r);
304
304
  n = i >= 0 ? i : t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
305
305
  } else n = t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
306
306
  l.push({
@@ -316,32 +316,34 @@ var le = new class {
316
316
  for (const e of l) "before" !== e.divider && "both" !== e.divider || a.push("-"), a.push(e.member), "after" !== e.divider && "both" !== e.divider || a.push("-");
317
317
  return a;
318
318
  }
319
- }(), ae = g(null);
320
- function ce() {
319
+ }(), ce = g(null);
320
+ function he() {
321
321
  return A((e) => {
322
- const n = t.addChangeListener(e), o = re.addListener({ onChange: e }), r = le.addListener({ onChange: e });
322
+ const n = t.addChangeListener(e), o = ie.addListener({ onChange: e }), r = ae.addListener({ onChange: e });
323
323
  return () => {
324
324
  n(), o(), r();
325
325
  };
326
- }, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`), x(ae) ?? le;
326
+ }, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`), S(ce) ?? ae;
327
327
  }
328
- function he({ registry: e = le, children: t }) {
329
- return z(ae.Provider, {
328
+ function ue({ registry: e = ae, children: t }) {
329
+ return R(ce.Provider, {
330
330
  value: e,
331
331
  children: t
332
332
  });
333
333
  }
334
- function ue(e) {
335
- return ce().get(e);
334
+ function de(e) {
335
+ return he().get(e);
336
336
  }
337
- var de = b((e) => {
337
+ var fe = w((e) => {
338
338
  const { entryKey: t, groupKey: n, fallback: o } = e;
339
- return z(P, { children: ue(t)?.getLabel?.(n) ?? o ?? t });
339
+ return R(z, { children: de(t)?.getLabel?.(n) ?? o ?? t });
340
340
  });
341
- function fe(e, t) {
341
+ fe.displayName = "CommandButtonEntryLabel";
342
+ var pe = "quickAction";
343
+ function me(e, t) {
342
344
  return "function" == typeof e ? e("function" == typeof t ? t() : t) : e;
343
345
  }
344
- function pe(e, n) {
346
+ function ge(e, n) {
345
347
  const { key: o, props: r, contributedBy: i } = e, s = r.callback, l = () => r.disabledReasons ?? [], c = () => l().length > 0 || !s, h = {
346
348
  contributedBy: i,
347
349
  getKey: () => o,
@@ -349,16 +351,16 @@ function pe(e, n) {
349
351
  getTarget: () => "function" == typeof r.target ? r.target() : r.target,
350
352
  getState: () => r.state,
351
353
  getLabel: (e) => {
352
- const n = fe((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
354
+ const n = me((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
353
355
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
354
356
  },
355
357
  getDescription: (e) => {
356
- const n = fe((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
358
+ const n = me((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
357
359
  return r.params && void 0 !== n ? a(n, r.params, t.getActive()) : n;
358
360
  },
359
- getTags: () => fe(r.tags, r.context),
360
- getIcon: (e) => fe((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
361
- getShortcut: () => fe(r.shortcut, r.context),
361
+ getTags: () => me(r.tags, r.context),
362
+ getIcon: (e) => me((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
363
+ getShortcut: () => me(r.shortcut, r.context),
362
364
  disabledReasons: l,
363
365
  disabled: c,
364
366
  execute: async (e) => {
@@ -379,40 +381,39 @@ function pe(e, n) {
379
381
  };
380
382
  return h;
381
383
  }
382
- de.displayName = "CommandButtonEntryLabel";
383
- var me = [
384
+ var _e = [
384
385
  "ctrl",
385
386
  "shift",
386
387
  "alt",
387
388
  "meta"
388
- ], ge = new Set(me);
389
- function _e(e) {
389
+ ], ve = new Set(_e);
390
+ function ye(e) {
390
391
  const t = e.split("+"), n = t[t.length - 1], o = [];
391
392
  for (let e = 0; e < t.length - 1; e++) {
392
393
  const n = t[e].toLowerCase();
393
- ge.has(n) && o.push(n);
394
+ ve.has(n) && o.push(n);
394
395
  }
395
396
  return o.length ? {
396
397
  key: n,
397
398
  modifiers: o
398
399
  } : { key: n };
399
400
  }
400
- function ve(e) {
401
- return [...(e.modifiers ?? []).slice().sort((e, t) => me.indexOf(e) - me.indexOf(t)), e.key].join("+");
401
+ function be(e) {
402
+ return [...(e.modifiers ?? []).slice().sort((e, t) => _e.indexOf(e) - _e.indexOf(t)), e.key].join("+");
402
403
  }
403
- function ye(e) {
404
+ function we(e) {
404
405
  return e;
405
406
  }
406
- async function be(e) {
407
+ async function xe(e) {
407
408
  const t = await fetch(e);
408
409
  if (!t.ok) throw new Error(`Failed to fetch command catalog '${String(e)}': ${t.status} ${t.statusText}`);
409
410
  return await t.json();
410
411
  }
411
- function we(e) {
412
+ function Se(e) {
412
413
  const t = {};
413
- return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(_e) : _e(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
414
+ return void 0 !== e.label && (t.label = e.label), void 0 !== e.description && (t.description = e.description), void 0 !== e.groupLabels && (t.groupLabels = e.groupLabels), void 0 !== e.groupDescriptions && (t.groupDescriptions = e.groupDescriptions), void 0 !== e.icon && (t.icon = e.icon), void 0 !== e.groupIcons && (t.groupIcons = e.groupIcons), void 0 !== e.shortcut && null !== e.shortcut && (t.shortcut = Array.isArray(e.shortcut) ? e.shortcut.map(ye) : ye(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
414
415
  }
415
- function xe(e, t) {
416
+ function Ce(e, t) {
416
417
  return t ? e ? {
417
418
  ...e,
418
419
  ...t,
@@ -430,7 +431,7 @@ function xe(e, t) {
430
431
  } : void 0
431
432
  } : t : e ?? {};
432
433
  }
433
- function Se(e = re) {
434
+ function Me(e = ie) {
434
435
  const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
435
436
  let s = t.getActive();
436
437
  function a(e) {
@@ -473,7 +474,7 @@ function Se(e = re) {
473
474
  let o = t.contributors.get(n);
474
475
  o || (o = (e) => {
475
476
  const o = p(t);
476
- if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, we(i));
477
+ if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, Se(i));
477
478
  }, t.contributors.set(n, o)), e.registerStatic(n, o);
478
479
  }
479
480
  });
@@ -533,7 +534,7 @@ function Se(e = re) {
533
534
  for (const o of i) {
534
535
  const i = u(o, r), s = /* @__PURE__ */ new Map();
535
536
  for (const e of [...i].reverse()) for (const t of r[e]?.catalogs ?? []) s.set(`${t.scope}\0${t.sourceId}`, t);
536
- for (const t of s.values()) _(t.scope, o, async () => a((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(ye).reverse()), { sourceId: t.sourceId });
537
+ for (const t of s.values()) _(t.scope, o, async () => a((await Promise.all([...i].reverse().map((o) => l(e, `${o}/${t.file}`, n)))).flat().map(we).reverse()), { sourceId: t.sourceId });
537
538
  r[o].messages?.length && t.registerMessages(e, o, async () => {
538
539
  const t = await Promise.all([...i].reverse().map((t) => h(e, t, r[t]?.messages ?? [], n)));
539
540
  return Object.assign({}, ...t);
@@ -553,11 +554,11 @@ function Se(e = re) {
553
554
  dispose: () => b()
554
555
  };
555
556
  }
556
- var Ce = Se(), Me = g(null);
557
- function Ee() {
558
- return x(Me);
557
+ var Ee = Me(), Te = g(null);
558
+ function ke() {
559
+ return S(Te);
559
560
  }
560
- var ke = class e {
561
+ var Le = class e {
561
562
  constructor(e, t = null, n) {
562
563
  this._children = /* @__PURE__ */ new Map(), this._defs = /* @__PURE__ */ new Map(), this._middleware = [], this._version = 0, this._resolveCache = /* @__PURE__ */ new WeakMap(), this._resolveCacheVersion = -1, this._listeners = /* @__PURE__ */ new Set(), this._executeListeners = /* @__PURE__ */ new Map(), this._resolveStaticCache = /* @__PURE__ */ new Map(), this._resolveStaticCacheVersion = -1, this._elements = [], this.key = e, this.name = n?.name ?? e, this._parent = t, this._root = t ? t._root : this, n?.registry && (this._registry = n.registry, this._registryUnsub = n.registry.addListener({ onChange: () => this._bump() }));
563
564
  }
@@ -615,7 +616,7 @@ var ke = class e {
615
616
  let n = e;
616
617
  for (; n;) {
617
618
  const e = t.get(n);
618
- if (e) return Te(e) ?? void 0;
619
+ if (e) return De(e) ?? void 0;
619
620
  n = n.parentElement;
620
621
  }
621
622
  }
@@ -743,7 +744,7 @@ var ke = class e {
743
744
  }
744
745
  let _;
745
746
  if (m.length > 0) {
746
- const t = ne(e, m), n = t.contributedBy.callback;
747
+ const t = oe(e, m), n = t.contributedBy.callback;
747
748
  if (t.props.callback && void 0 !== n) {
748
749
  const e = g[n]?.getMiddleware();
749
750
  if (e && e.length > 0) {
@@ -752,7 +753,7 @@ var ke = class e {
752
753
  t.props.callback = n;
753
754
  }
754
755
  }
755
- _ = pe(t, () => i._executeListeners.get(e));
756
+ _ = ge(t, () => i._executeListeners.get(e));
756
757
  }
757
758
  return l || f || c.set(e, _), _;
758
759
  }
@@ -764,13 +765,13 @@ var ke = class e {
764
765
  if (n._resolveStaticCache.has(r)) return n._resolveStaticCache.get(r);
765
766
  const i = o.findByKey(e, t);
766
767
  let s;
767
- return i && (s = pe(ne(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
768
+ return i && (s = ge(oe(e, [i.def]), () => n._executeListeners.get(e))), n._resolveStaticCache.set(r, s), s;
768
769
  }
769
770
  };
770
- function Te(e) {
771
- return e ? e instanceof ke ? e : "function" == typeof e ? e() : e.getAnchor() : null;
771
+ function De(e) {
772
+ return e ? e instanceof Le ? e : "function" == typeof e ? e() : e.getAnchor() : null;
772
773
  }
773
- var Le = class {
774
+ var Pe = class {
774
775
  constructor(e = null) {
775
776
  this._listeners = /* @__PURE__ */ new Set(), this._current = e;
776
777
  }
@@ -785,7 +786,7 @@ var Le = class {
785
786
  this._listeners.delete(e);
786
787
  };
787
788
  }
788
- }, De = class {
789
+ }, Ae = class {
789
790
  constructor(e) {
790
791
  this._scope = e;
791
792
  }
@@ -795,7 +796,7 @@ var Le = class {
795
796
  subscribe() {
796
797
  return () => {};
797
798
  }
798
- }, Ae = class {
799
+ }, ze = class {
799
800
  constructor(e, t) {
800
801
  this._scopes = /* @__PURE__ */ new Map(), this._rootElement = null, this._lastFocusEvent = null, this._current = null, this._currentElement = null, this._recall = null, this._recallPending = !1, this._listeners = /* @__PURE__ */ new Set(), this._root = e ?? null, "function" == typeof t ? (this._recall = t, this._invokeRecall()) : null != t && (t instanceof Promise ? t.then((e) => {
801
802
  null != e && this._seed(e);
@@ -819,7 +820,7 @@ var Le = class {
819
820
  }
820
821
  }
821
822
  getAnchor() {
822
- return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), Te(this._current);
823
+ return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), De(this._current);
823
824
  }
824
825
  getElement() {
825
826
  return this._rootElement;
@@ -855,7 +856,7 @@ var Le = class {
855
856
  }
856
857
  }
857
858
  findScope(e) {
858
- return Te(this.findSource(e) ?? null) ?? void 0;
859
+ return De(this.findSource(e) ?? null) ?? void 0;
859
860
  }
860
861
  attach(e) {
861
862
  this._rootElement = e;
@@ -873,7 +874,7 @@ var Le = class {
873
874
  _notify() {
874
875
  this._listeners.forEach((e) => e());
875
876
  }
876
- }, Pe = class {
877
+ }, Re = class {
877
878
  constructor(e) {
878
879
  this._layers = [], this._listeners = /* @__PURE__ */ new Set(), this._base = e, this._top = e;
879
880
  }
@@ -904,25 +905,25 @@ var Le = class {
904
905
  this._listeners.delete(e);
905
906
  };
906
907
  }
907
- }, ze = Z({
908
- EmptyCssProperties: () => $e,
909
- createSyntheticEvent: () => Ye,
910
- detectIt: () => Ne,
911
- edgeCenter: () => je,
912
- edgeTrailingShift: () => Ve,
913
- focusableNodeNames: () => Re,
914
- getDevicePixelRatio: () => Oe,
915
- isEditable: () => He,
916
- replaceRangeText: () => Ie,
917
- snapDeviceEdge: () => We,
918
- snapDeviceWidth: () => Fe,
919
- snapLineCenter: () => Ke,
920
- toPrettyKeyCode: () => Ue
921
- }), Re = /* @__PURE__ */ new Set([
908
+ }, $e = G({
909
+ EmptyCssProperties: () => Ie,
910
+ createSyntheticEvent: () => qe,
911
+ detectIt: () => Fe,
912
+ edgeCenter: () => Ue,
913
+ edgeTrailingShift: () => Ye,
914
+ focusableNodeNames: () => Be,
915
+ getDevicePixelRatio: () => We,
916
+ isEditable: () => Ne,
917
+ replaceRangeText: () => Oe,
918
+ snapDeviceEdge: () => Ve,
919
+ snapDeviceWidth: () => Ke,
920
+ snapLineCenter: () => je,
921
+ toPrettyKeyCode: () => Xe
922
+ }), Be = /* @__PURE__ */ new Set([
922
923
  "INPUT",
923
924
  "TEXTAREA",
924
925
  "SELECT"
925
- ]), $e = {}, Be = /* @__PURE__ */ new Set([
926
+ ]), Ie = {}, He = /* @__PURE__ */ new Set([
926
927
  "button",
927
928
  "checkbox",
928
929
  "radio",
@@ -934,41 +935,41 @@ var Le = class {
934
935
  "image",
935
936
  "hidden"
936
937
  ]);
937
- function He(e) {
938
+ function Ne(e) {
938
939
  if (!e) return !1;
939
940
  const t = e.tagName;
940
- return "TEXTAREA" === t || ("INPUT" === t ? !Be.has(e.type) : !0 === e.isContentEditable);
941
+ return "TEXTAREA" === t || ("INPUT" === t ? !He.has(e.type) : !0 === e.isContentEditable);
941
942
  }
942
- function Ie(e, t, n, o) {
943
+ function Oe(e, t, n, o) {
943
944
  e.setSelectionRange(t, n);
944
945
  try {
945
946
  if ("undefined" != typeof document && document.activeElement === e && "function" == typeof document.execCommand && document.execCommand("insertText", !1, o)) return !0;
946
947
  } catch {}
947
948
  return e.setRangeText(o, t, n, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
948
949
  }
949
- function Ne() {
950
- return $;
950
+ function Fe() {
951
+ return B;
951
952
  }
952
- function Oe() {
953
+ function We() {
953
954
  return "undefined" != typeof window && window.devicePixelRatio || 1;
954
955
  }
955
- function Fe(e, t = Oe()) {
956
+ function Ke(e, t = We()) {
956
957
  return Math.max(1, Math.round(e * t)) / t;
957
958
  }
958
- function We(e, t = Oe()) {
959
+ function Ve(e, t = We()) {
959
960
  return Math.round(e * t) / t;
960
961
  }
961
- function Ke(e, t = 1, n = Oe()) {
962
+ function je(e, t = 1, n = We()) {
962
963
  const o = Math.max(1, Math.round(t * n)) % 2 * .5;
963
964
  return (Math.round(e * n - o) + o) / n;
964
965
  }
965
- function Ve(e, t, n = Oe()) {
966
+ function Ye(e, t, n = We()) {
966
967
  return Math.round(t) % 2 == 0 && "trailing" === e ? 1 / n : 0;
967
968
  }
968
- function je(e, t, n, o = Oe()) {
969
- return Ke(e + Ve(t, n, o), n / o, o);
969
+ function Ue(e, t, n, o = We()) {
970
+ return je(e + Ye(t, n, o), n / o, o);
970
971
  }
971
- var Ue = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), Ye = (e, t) => {
972
+ var Xe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), qe = (e, t) => {
972
973
  let n = !1, o = !1;
973
974
  const r = {
974
975
  nativeEvent: e,
@@ -994,7 +995,7 @@ var Ue = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camel
994
995
  for (const t in e) t in r || "function" == typeof e[t] || (r[t] = e[t]);
995
996
  return r;
996
997
  };
997
- function Xe(e, t, n) {
998
+ function Ze(e, t, n) {
998
999
  if (!globalThis.__sxlKeyDebug) return;
999
1000
  const o = e.target, r = [
1000
1001
  e.ctrlKey && "ctrl",
@@ -1008,11 +1009,11 @@ function Xe(e, t, n) {
1008
1009
  const t = e.type ? `[type=${e.type}]` : "", n = e.getAttribute?.("class")?.split(" ").slice(0, 2).join(".") ?? "";
1009
1010
  return `${e.tagName.toLowerCase()}${t}${n ? "." + n : ""}`;
1010
1011
  })(o),
1011
- editable: He(o),
1012
+ editable: Ne(o),
1012
1013
  delivery: e.nativeEvent ? "synthetic" : "native"
1013
1014
  });
1014
1015
  }
1015
- var qe = /* @__PURE__ */ new Set([
1016
+ var Ge = /* @__PURE__ */ new Set([
1016
1017
  "Backspace",
1017
1018
  "Delete",
1018
1019
  "Insert",
@@ -1025,10 +1026,10 @@ var qe = /* @__PURE__ */ new Set([
1025
1026
  "ArrowUp",
1026
1027
  "ArrowDown"
1027
1028
  ]);
1028
- function Ze(e) {
1029
- return qe.has(e.key);
1029
+ function Je(e) {
1030
+ return Ge.has(e.key);
1030
1031
  }
1031
- var Ge = class {
1032
+ var Qe = class {
1032
1033
  constructor(e) {
1033
1034
  this._lastEvent = null, this._resolver = e;
1034
1035
  }
@@ -1046,12 +1047,12 @@ var Ge = class {
1046
1047
  return t && "number" == typeof t.nodeType ? t : null;
1047
1048
  }
1048
1049
  dispatch(e) {
1049
- if (this._lastEvent === e) return Xe(e, null, "de-duped (reached dispatch again)"), !1;
1050
+ if (this._lastEvent === e) return Ze(e, null, "de-duped (reached dispatch again)"), !1;
1050
1051
  this._lastEvent = e;
1051
1052
  const t = this.findKey(e);
1052
- if (!t) return Xe(e, null, "unmatched"), !1;
1053
+ if (!t) return Ze(e, null, "unmatched"), !1;
1053
1054
  const n = this._resolver.resolve(t, this._eventOrigin(e));
1054
- return n ? n.disabled() ? (Xe(e, t, "disabled"), !1) : (Xe(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Xe(e, t, "unresolved at this origin"), !1);
1055
+ return n ? n.disabled() ? (Ze(e, t, "disabled"), !1) : (Ze(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Ze(e, t, "unresolved at this origin"), !1);
1055
1056
  }
1056
1057
  attach(e) {
1057
1058
  const t = (e) => {
@@ -1070,29 +1071,29 @@ var Ge = class {
1070
1071
  return e;
1071
1072
  }
1072
1073
  _eventCandidates(e) {
1073
- return Qe(e);
1074
+ return tt(e);
1074
1075
  }
1075
1076
  _shortcutString(e) {
1076
- return Je(e);
1077
+ return et(e);
1077
1078
  }
1078
1079
  };
1079
- function Je(e) {
1080
+ function et(e) {
1080
1081
  const t = e.modifiers ?? [];
1081
- return et(t.includes(G.Ctrl) || t.includes(G.Meta), t.includes(G.Alt), t.includes(G.Shift)) + tt(e.key);
1082
+ return nt(t.includes(J.Ctrl) || t.includes(J.Meta), t.includes(J.Alt), t.includes(J.Shift)) + ot(e.key);
1082
1083
  }
1083
- function Qe(e) {
1084
- const t = et(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1085
- return /* @__PURE__ */ new Set([t + tt(e.code), t + tt(e.key)]);
1084
+ function tt(e) {
1085
+ const t = nt(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1086
+ return /* @__PURE__ */ new Set([t + ot(e.code), t + ot(e.key)]);
1086
1087
  }
1087
- function et(e, t, n) {
1088
+ function nt(e, t, n) {
1088
1089
  return (e ? "mod+" : "") + (t ? "alt+" : "") + (n ? "shift+" : "");
1089
1090
  }
1090
- function tt(e) {
1091
+ function ot(e) {
1091
1092
  return e ? e.length > 3 && e.startsWith("Key") ? e.slice(3).toUpperCase() : e.length > 5 && e.startsWith("Digit") ? e.slice(5) : 1 === e.length ? e.toUpperCase() : e : "";
1092
1093
  }
1093
- var nt = class {
1094
+ var rt = class {
1094
1095
  constructor(e, t, n) {
1095
- this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new Ge(this);
1096
+ this._version = 0, this._listeners = /* @__PURE__ */ new Set(), this._dirty = !1, this._hadAnchor = !1, this._unsubs = [], this._connected = !1, this._injectors = /* @__PURE__ */ new Set(), this._keyBindsEl = null, this.scope = e, this._tracker = t, this._root = n?.root, this._debounceMs = n?.debounce ?? 0, this._autoKeyBindings = n?.keyBindings ?? !0, this._keyBindings = new Qe(this);
1096
1097
  }
1097
1098
  connect() {
1098
1099
  this._connected || (this._connected = !0, this._unsubs = [this.scope.addListener({ onChange: () => this._emit() }), this._tracker.subscribe(() => {
@@ -1163,19 +1164,19 @@ var nt = class {
1163
1164
  _notify() {
1164
1165
  this._version++, this._listeners.forEach((e) => e());
1165
1166
  }
1166
- }, ot = g(null);
1167
- function rt() {
1168
- return x(ot);
1169
- }
1170
- var it = g(0);
1167
+ }, it = g(null);
1171
1168
  function st() {
1172
- return x(it);
1169
+ return S(it);
1173
1170
  }
1174
- var lt = g(null);
1171
+ var lt = g(0);
1175
1172
  function at() {
1176
- return x(lt);
1173
+ return S(lt);
1174
+ }
1175
+ var ct = g(null);
1176
+ function ht() {
1177
+ return S(ct);
1177
1178
  }
1178
- function ct(e, t) {
1179
+ function ut(e, t) {
1179
1180
  let n, o = !1;
1180
1181
  const r = () => {
1181
1182
  if (o) return;
@@ -1186,9 +1187,9 @@ function ct(e, t) {
1186
1187
  o = !0, n?.();
1187
1188
  };
1188
1189
  }
1189
- function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1190
- const a = at(), c = rt(), h = st(), u = o ?? h, d = k(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1191
- S(() => {
1190
+ function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1191
+ const a = ht(), c = st(), h = at(), u = o ?? h, d = k(() => e && a ? a.createChild(e.scopeName) : null, [a, e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null]), f = d ?? t ?? null;
1192
+ C(() => {
1192
1193
  if (!d) return;
1193
1194
  const e = c ? c.register(d, u) : void 0;
1194
1195
  return () => {
@@ -1200,7 +1201,7 @@ function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1200
1201
  u
1201
1202
  ]);
1202
1203
  const p = e?.contributor?.dynamic, m = e?.data;
1203
- S(() => {
1204
+ C(() => {
1204
1205
  if (!d || !p) return;
1205
1206
  const e = d.contribution(), t = p(e, m);
1206
1207
  return () => {
@@ -1210,49 +1211,49 @@ function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1210
1211
  d,
1211
1212
  p,
1212
1213
  m
1213
- ]), S(() => {
1214
+ ]), C(() => {
1214
1215
  if (!d || !n) return;
1215
1216
  const e = (Array.isArray(n) ? n : [n]).map((e) => d.use(e));
1216
1217
  return () => {
1217
1218
  for (const t of e) t();
1218
1219
  };
1219
- }, [d, n]), S(() => {
1220
+ }, [d, n]), C(() => {
1220
1221
  if (s) return s.current = f, () => {
1221
1222
  s.current = null;
1222
1223
  };
1223
1224
  }, [s, f]);
1224
- const g = L(null), _ = r ?? g;
1225
- ut(r || "function" == typeof l ? f : null, _, i);
1225
+ const g = D(null), _ = r ?? g;
1226
+ ft(r || "function" == typeof l ? f : null, _, i);
1226
1227
  const v = k(() => d ? d.getRegistry()?.getDynamic(d.name) ?? [] : [], [d]);
1227
- return z(lt.Provider, {
1228
+ return R(ct.Provider, {
1228
1229
  value: f,
1229
- children: R(ot.Provider, {
1230
+ children: $(it.Provider, {
1230
1231
  value: d ? null : c,
1231
- children: [d && v.map((e, t) => z(e, {
1232
+ children: [d && v.map((e, t) => R(e, {
1232
1233
  scope: d,
1233
1234
  data: m
1234
1235
  }, t)), "function" == typeof l ? l(_) : l]
1235
1236
  })
1236
1237
  });
1237
1238
  }
1238
- function ut(e, t, n) {
1239
- S(() => {
1239
+ function ft(e, t, n) {
1240
+ C(() => {
1240
1241
  if (!e) return;
1241
- if (!n) return ct(t, (t) => e.attachBounds(t));
1242
+ if (!n) return ut(t, (t) => e.attachBounds(t));
1242
1243
  const o = !0 === n ? void 0 : n;
1243
- return ct(t, (t) => e.attachElement(t, o));
1244
+ return ut(t, (t) => e.attachElement(t, o));
1244
1245
  }, [
1245
1246
  e,
1246
1247
  t,
1247
1248
  n
1248
1249
  ]);
1249
1250
  }
1250
- var dt = g(null);
1251
- function ft() {
1252
- return x(dt);
1251
+ var pt = g(null);
1252
+ function mt() {
1253
+ return S(pt);
1253
1254
  }
1254
- function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1255
- const s = at(), l = "synthetic" === n, a = k(() => s ? new nt(s, e, {
1255
+ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1256
+ const s = ht(), l = "synthetic" === n, a = k(() => s ? new rt(s, e, {
1256
1257
  debounce: t,
1257
1258
  keyBindings: !l && n,
1258
1259
  root: o
@@ -1263,13 +1264,13 @@ function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1263
1264
  n,
1264
1265
  o
1265
1266
  ]);
1266
- S(() => (a?.connect(), () => a?.dispose()), [a]);
1267
- const c = L(null), h = r ?? (l ? c : null);
1268
- return S(() => {
1269
- if (h && e.attach) return ct(h, (t) => e.attach(t));
1270
- }, [h, e]), z(dt.Provider, l ? {
1267
+ C(() => (a?.connect(), () => a?.dispose()), [a]);
1268
+ const c = D(null), h = r ?? (l ? c : null);
1269
+ return C(() => {
1270
+ if (h && e.attach) return ut(h, (t) => e.attach(t));
1271
+ }, [h, e]), R(pt.Provider, l ? {
1271
1272
  value: a,
1272
- children: z("div", {
1273
+ children: R("div", {
1273
1274
  className: "command-key-seam",
1274
1275
  style: { display: "contents" },
1275
1276
  ref: c,
@@ -1283,45 +1284,45 @@ function pt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1283
1284
  children: i
1284
1285
  });
1285
1286
  }
1286
- function mt() {
1287
- const e = ft();
1288
- return w((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1289
- }
1290
- var gt = g(null);
1291
1287
  function _t() {
1292
- return x(gt);
1288
+ const e = mt();
1289
+ return x((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1293
1290
  }
1294
- var vt = [];
1295
- function yt({ prefer: e, children: t }) {
1296
- return z(gt.Provider, {
1297
- value: e ?? vt,
1291
+ var vt = g(null);
1292
+ function yt() {
1293
+ return S(vt);
1294
+ }
1295
+ var bt = [];
1296
+ function wt({ prefer: e, children: t }) {
1297
+ return R(vt.Provider, {
1298
+ value: e ?? bt,
1298
1299
  children: t
1299
1300
  });
1300
1301
  }
1301
- var bt = g(null), wt = bt.Provider;
1302
- function xt() {
1303
- return x(bt);
1302
+ var xt = g(null), St = xt.Provider;
1303
+ function Ct() {
1304
+ return S(xt);
1304
1305
  }
1305
- var St = g(null), Ct = St.Provider, Mt = () => x(St);
1306
- function Et(e, t) {
1307
- const n = ft(), o = _t(), r = k(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = L(t);
1306
+ var Mt = g(null), Et = Mt.Provider, Tt = () => S(Mt);
1307
+ function kt(e, t) {
1308
+ const n = mt(), o = yt(), r = k(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = D(t);
1308
1309
  i.current = t;
1309
- const s = Mt(), l = L(s);
1310
+ const s = Tt(), l = D(s);
1310
1311
  l.current = s;
1311
- const a = xt(), c = L(a);
1312
+ const a = Ct(), c = D(a);
1312
1313
  return c.current = a, k(() => n ? r.map((e) => {
1313
1314
  return n.resolve(e) || (o ? n.scope.resolveStatic(e, o) : void 0);
1314
1315
  }) : r.map(() => {}), [
1315
1316
  n,
1316
1317
  r,
1317
- A(w((e) => {
1318
+ A(x((e) => {
1318
1319
  if (!n) return () => {};
1319
1320
  const t = [];
1320
1321
  t.push(n.subscribe(e));
1321
1322
  const o = {
1322
1323
  beforeExecute: (e, t) => {
1323
1324
  const n = i.current?.beforeExecute;
1324
- return n ? n(e, t) : l.current?.closeAll() ?? void 0;
1325
+ if (!e?.getTags?.()?.includes("quickAction")) return n ? n(e, t) : l.current?.closeAll() ?? void 0;
1325
1326
  },
1326
1327
  onExecute: (e, t) => {
1327
1328
  i.current?.onExecute?.(e, t), c.current?.();
@@ -1336,9 +1337,9 @@ function Et(e, t) {
1336
1337
  o
1337
1338
  ]);
1338
1339
  }
1339
- function kt(e) {
1340
- const t = at();
1341
- S(() => {
1340
+ function Lt(e) {
1341
+ const t = ht();
1342
+ C(() => {
1342
1343
  if (!t) return;
1343
1344
  const n = [];
1344
1345
  for (const o of e) {
@@ -1350,72 +1351,73 @@ function kt(e) {
1350
1351
  };
1351
1352
  }, [t, e]);
1352
1353
  }
1353
- var Tt = Z({
1354
- ACCUMULATE: () => te,
1355
- CommandAnchorProvider: () => pt,
1356
- CommandButtonEntryLabel: () => de,
1357
- CommandButtonRegistryContext: () => ae,
1358
- CommandButtonRegistryProvider: () => he,
1359
- CommandButtonType: () => ee,
1360
- CommandChainContext: () => ot,
1361
- CommandFallbackContext: () => gt,
1362
- CommandFallbackProvider: () => yt,
1363
- CommandFocusProvider: () => wt,
1364
- CommandOrderContext: () => it,
1365
- CommandRegistry: () => oe,
1366
- CommandRegistryContext: () => Me,
1367
- CommandResolver: () => nt,
1368
- CommandResolverContext: () => dt,
1369
- CommandScope: () => ke,
1370
- CommandScopeContext: () => lt,
1371
- CommandScopeProvider: () => ht,
1372
- ConstantActivation: () => De,
1373
- DefaultCommandButtonRegistry: () => le,
1374
- DefaultCommandCatalogService: () => Ce,
1375
- DefaultCommandRegistry: () => re,
1376
- FocusActivation: () => Ae,
1377
- KeyBindingDispatcher: () => Ge,
1378
- LayerActivation: () => Pe,
1379
- ManualActivation: () => Le,
1380
- asCommandCatalog: () => ye,
1381
- attachWhenReady: () => ct,
1382
- chromeToPartial: () => we,
1383
- createCommandCatalogService: () => Se,
1384
- createResolvedCommand: () => pe,
1385
- fetchCatalog: () => be,
1386
- isCaretKey: () => Ze,
1387
- keyEventCanonicals: () => Qe,
1388
- keyStrokeToCanonical: () => Je,
1389
- mergeChrome: () => xe,
1390
- parseShortcutString: () => _e,
1391
- reduceDefinitions: () => ne,
1392
- resolveAnchorSource: () => Te,
1393
- serializeShortcut: () => ve,
1394
- useCommandButtonEntry: () => ue,
1395
- useCommandButtonRegistry: () => ce,
1396
- useCommandChain: () => rt,
1397
- useCommandElement: () => ut,
1398
- useCommandExecute: () => mt,
1399
- useCommandFallback: () => _t,
1400
- useCommandFocusRestore: () => xt,
1401
- useCommandOrder: () => st,
1402
- useCommandRegistry: () => Ee,
1403
- useCommandResolver: () => ft,
1404
- useCommandScope: () => at,
1405
- useCommands: () => Et,
1406
- useContributeCommands: () => kt
1407
- }), Lt = "idle", Dt = g({
1354
+ var Dt = G({
1355
+ ACCUMULATE: () => ne,
1356
+ CommandAnchorProvider: () => gt,
1357
+ CommandButtonEntryLabel: () => fe,
1358
+ CommandButtonRegistryContext: () => ce,
1359
+ CommandButtonRegistryProvider: () => ue,
1360
+ CommandButtonType: () => te,
1361
+ CommandChainContext: () => it,
1362
+ CommandFallbackContext: () => vt,
1363
+ CommandFallbackProvider: () => wt,
1364
+ CommandFocusProvider: () => St,
1365
+ CommandOrderContext: () => lt,
1366
+ CommandRegistry: () => re,
1367
+ CommandRegistryContext: () => Te,
1368
+ CommandResolver: () => rt,
1369
+ CommandResolverContext: () => pt,
1370
+ CommandScope: () => Le,
1371
+ CommandScopeContext: () => ct,
1372
+ CommandScopeProvider: () => dt,
1373
+ ConstantActivation: () => Ae,
1374
+ DefaultCommandButtonRegistry: () => ae,
1375
+ DefaultCommandCatalogService: () => Ee,
1376
+ DefaultCommandRegistry: () => ie,
1377
+ FocusActivation: () => ze,
1378
+ KeyBindingDispatcher: () => Qe,
1379
+ LayerActivation: () => Re,
1380
+ ManualActivation: () => Pe,
1381
+ QUICK_ACTION_TAG: () => pe,
1382
+ asCommandCatalog: () => we,
1383
+ attachWhenReady: () => ut,
1384
+ chromeToPartial: () => Se,
1385
+ createCommandCatalogService: () => Me,
1386
+ createResolvedCommand: () => ge,
1387
+ fetchCatalog: () => xe,
1388
+ isCaretKey: () => Je,
1389
+ keyEventCanonicals: () => tt,
1390
+ keyStrokeToCanonical: () => et,
1391
+ mergeChrome: () => Ce,
1392
+ parseShortcutString: () => ye,
1393
+ reduceDefinitions: () => oe,
1394
+ resolveAnchorSource: () => De,
1395
+ serializeShortcut: () => be,
1396
+ useCommandButtonEntry: () => de,
1397
+ useCommandButtonRegistry: () => he,
1398
+ useCommandChain: () => st,
1399
+ useCommandElement: () => ft,
1400
+ useCommandExecute: () => _t,
1401
+ useCommandFallback: () => yt,
1402
+ useCommandFocusRestore: () => Ct,
1403
+ useCommandOrder: () => at,
1404
+ useCommandRegistry: () => ke,
1405
+ useCommandResolver: () => mt,
1406
+ useCommandScope: () => ht,
1407
+ useCommands: () => kt,
1408
+ useContributeCommands: () => Lt
1409
+ }), Pt = "idle", At = g({
1408
1410
  mode: "idle",
1409
1411
  interrupt: () => {}
1410
1412
  });
1411
- function At() {
1412
- return x(Dt);
1413
+ function zt() {
1414
+ return S(At);
1413
1415
  }
1414
- function Pt({ children: e }) {
1415
- const t = At(), [n, o] = D(Lt), r = L(null), i = w(() => {
1416
- o(Lt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Lt), 400);
1416
+ function Rt({ children: e }) {
1417
+ const t = zt(), [n, o] = P(Pt), r = D(null), i = x(() => {
1418
+ o(Pt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Pt), 400);
1417
1419
  }, []), s = "interrupted" === n || "interrupted" === t?.mode ? "interrupted" : "idle";
1418
- return z(Dt.Provider, {
1420
+ return R(At.Provider, {
1419
1421
  value: {
1420
1422
  mode: s,
1421
1423
  interrupt: i
@@ -1423,7 +1425,7 @@ function Pt({ children: e }) {
1423
1425
  children: e
1424
1426
  });
1425
1427
  }
1426
- var zt = 3, Rt = .5, $t = 50, Bt = (e) => ({
1428
+ var $t = 3, Bt = .5, It = 50, Ht = (e) => ({
1427
1429
  x: e.x,
1428
1430
  y: e.y,
1429
1431
  width: e.width,
@@ -1433,8 +1435,8 @@ var zt = 3, Rt = .5, $t = 50, Bt = (e) => ({
1433
1435
  right: e.right,
1434
1436
  bottom: e.bottom
1435
1437
  });
1436
- function Ht(e = {}) {
1437
- const { threshold: t = Rt, stillnessThreshold: n = zt, maxHierarchyDepth: o = $t } = e, [r, i] = B(), s = L(null), [l, a] = T((e) => e + 1, 0), c = L(void 0), h = L({
1438
+ function Nt(e = {}) {
1439
+ const { threshold: t = Bt, stillnessThreshold: n = $t, maxHierarchyDepth: o = It } = e, [r, i] = I(), s = D(null), [l, a] = L((e) => e + 1, 0), c = D(void 0), h = D({
1438
1440
  x: 0,
1439
1441
  y: 0,
1440
1442
  width: 0,
@@ -1443,19 +1445,19 @@ function Ht(e = {}) {
1443
1445
  left: 0,
1444
1446
  right: 0,
1445
1447
  bottom: 0
1446
- }), u = w((e) => {
1448
+ }), u = x((e) => {
1447
1449
  s.current = e, "function" == typeof r && r(e);
1448
- }, [r]), [d, f] = D(i);
1449
- return S(() => {
1450
+ }, [r]), [d, f] = P(i);
1451
+ return C(() => {
1450
1452
  i && !d && f(i);
1451
- }, [i, d]), S(() => {
1453
+ }, [i, d]), C(() => {
1452
1454
  const e = s.current;
1453
1455
  if (!e) return;
1454
1456
  let r = !1, i = 0;
1455
1457
  const l = () => {
1456
1458
  if (!e) return;
1457
1459
  const o = e.getBoundingClientRect(), s = h.current;
1458
- Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Bt(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Bt(o)), a()), h.current = Bt(o), c.current = requestAnimationFrame(l);
1460
+ Math.abs(o.x - s.x) > t || Math.abs(o.y - s.y) > t || Math.abs(o.width - s.width) > t || Math.abs(o.height - s.height) > t ? (r || (r = !0, f(Ht(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ht(o)), a()), h.current = Ht(o), c.current = requestAnimationFrame(l);
1459
1461
  };
1460
1462
  c.current = requestAnimationFrame(l);
1461
1463
  const u = (e) => {
@@ -1479,7 +1481,7 @@ function Ht(e = {}) {
1479
1481
  o
1480
1482
  ]), [u, d];
1481
1483
  }
1482
- var It = {
1484
+ var Ot = {
1483
1485
  BottomEnd: "bottom-end",
1484
1486
  BottomStart: "bottom-start",
1485
1487
  Bottom: "bottom",
@@ -1492,8 +1494,8 @@ var It = {
1492
1494
  TopEnd: "top-end",
1493
1495
  TopStart: "top-start",
1494
1496
  Top: "top"
1495
- }, Nt = b(v((e, t) => {
1496
- const { refFocusStart: n, ...o } = e, r = L(null), i = w(() => {
1497
+ }, Ft = w(v((e, t) => {
1498
+ const { refFocusStart: n, ...o } = e, r = D(null), i = x(() => {
1497
1499
  if (n) return void n?.current?.focus();
1498
1500
  const e = r.current?.parentElement;
1499
1501
  if (!e) return;
@@ -1511,14 +1513,14 @@ var It = {
1511
1513
  return e.tabindex - t.tabindex;
1512
1514
  }), o[0].child.focus());
1513
1515
  }, [n]);
1514
- return z("div", {
1516
+ return R("div", {
1515
1517
  tabIndex: 0,
1516
1518
  ref: H([r, t]),
1517
1519
  onFocus: i,
1518
1520
  ...o
1519
1521
  });
1520
1522
  }));
1521
- function Ot(e, t, n = !1) {
1523
+ function Wt(e, t, n = !1) {
1522
1524
  if (0 === t) return e;
1523
1525
  function o(e, t, n) {
1524
1526
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -1578,10 +1580,10 @@ function Ot(e, t, n = !1) {
1578
1580
  return e + t.join(" ") + " ";
1579
1581
  }, "");
1580
1582
  }
1581
- var Ft = b(v((e, t) => {
1582
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = B(), p = L(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = k(() => {
1583
+ var Kt = w(v((e, t) => {
1584
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = I(), p = D(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = k(() => {
1583
1585
  const e = d - _, t = f - v;
1584
- return Ot(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
1586
+ return Wt(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
1585
1587
  }, [
1586
1588
  d,
1587
1589
  f,
@@ -1592,7 +1594,7 @@ var Ft = b(v((e, t) => {
1592
1594
  b
1593
1595
  ]), x = k(() => "rounded" === a ? w : ((e, t = 0) => {
1594
1596
  const n = e / 2, o = f - n + t;
1595
- return Ot(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1597
+ return Wt(`M 0 ${n} L ${i} ${n} L ${i} ${o} L ${2 * i} ${o} L ${d - 2 * i} ${o} M ${d - 2 * i} ${o} L ${d - i} ${o} L ${d - i} ${n} L ${d} ${n}`, i);
1596
1598
  })(s), [
1597
1599
  a,
1598
1600
  w,
@@ -1604,7 +1606,7 @@ var Ft = b(v((e, t) => {
1604
1606
  if (0 === i) return;
1605
1607
  if ("rounded" === a) return w;
1606
1608
  const e = f - s / 2;
1607
- return Ot(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1609
+ return Wt(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
1608
1610
  }, [
1609
1611
  d,
1610
1612
  f,
@@ -1616,7 +1618,7 @@ var Ft = b(v((e, t) => {
1616
1618
  ...y(r) ? r.props?.style : void 0,
1617
1619
  clipPath: `path('${S}')`
1618
1620
  } }), [S, r]);
1619
- return R("div", {
1621
+ return $("div", {
1620
1622
  className: n,
1621
1623
  style: {
1622
1624
  display: "flex",
@@ -1629,7 +1631,7 @@ var Ft = b(v((e, t) => {
1629
1631
  u,
1630
1632
  t
1631
1633
  ]),
1632
- children: [y(r) ? m(r, C) : z(P, {}), z("svg", {
1634
+ children: [y(r) ? m(r, C) : R(z, {}), R("svg", {
1633
1635
  style: {
1634
1636
  position: "absolute",
1635
1637
  top: 0,
@@ -1639,7 +1641,7 @@ var Ft = b(v((e, t) => {
1639
1641
  width: d,
1640
1642
  height: f,
1641
1643
  viewBox: `0 0 ${d} ${f}`,
1642
- children: z("path", {
1644
+ children: R("path", {
1643
1645
  d: x,
1644
1646
  stroke: l,
1645
1647
  fill: "none",
@@ -1648,21 +1650,56 @@ var Ft = b(v((e, t) => {
1648
1650
  })
1649
1651
  })]
1650
1652
  });
1651
- })), Wt = {
1653
+ })), Vt = g(null);
1654
+ function jt() {
1655
+ return S(Vt);
1656
+ }
1657
+ function Yt(e, t) {
1658
+ const n = t?.renderError;
1659
+ let o = null;
1660
+ const r = () => {
1661
+ const t = {
1662
+ failed: !1,
1663
+ shown: !1,
1664
+ component: b(async () => {
1665
+ try {
1666
+ return await e();
1667
+ } catch (e) {
1668
+ t.failed = !0;
1669
+ return { default: (o) => {
1670
+ if (t.shown = !0, !n) throw e;
1671
+ return n(e, o);
1672
+ } };
1673
+ }
1674
+ })
1675
+ };
1676
+ return t;
1677
+ }, i = () => ((!o || o.failed && o.shown) && (o = r()), o.component);
1678
+ return (e) => {
1679
+ const [t, n] = P(i), s = x(() => {
1680
+ n(() => (o && !o.failed || (o = r()), o.component));
1681
+ }, []);
1682
+ return R(Vt.Provider, {
1683
+ value: s,
1684
+ children: R(t, { ...e })
1685
+ });
1686
+ };
1687
+ }
1688
+ var Ut = {
1652
1689
  Default: "default",
1653
1690
  Error: "error",
1654
1691
  Success: "success",
1655
1692
  Warning: "warning",
1656
1693
  Info: "info"
1657
1694
  };
1658
- function Kt(e = () => {}, t = () => {}, n = () => {}) {
1695
+ function Xt(e = () => {}, t = () => {}, n = () => {}) {
1659
1696
  const o = () => e();
1660
1697
  return o.setProgress = t, o.setMessage = n, o;
1661
1698
  }
1662
- function Vt() {
1663
- return Kt();
1699
+ function qt() {
1700
+ return Xt();
1664
1701
  }
1665
- var jt = class extends n {
1702
+ var Zt = class extends n {
1666
1703
  setOverrides(e) {
1667
1704
  super.setOverrides(e);
1668
1705
  }
@@ -1672,11 +1709,11 @@ var jt = class extends n {
1672
1709
  showMessage(e, t) {
1673
1710
  const n = this.getDelegate();
1674
1711
  if (n?.showMessage) return n.showMessage(e, t);
1675
- t?.type !== Wt.Warning ? t?.type !== Wt.Error ? i.log(e) : i.error(e) : i.warn(e);
1712
+ t?.type !== Ut.Warning ? t?.type !== Ut.Error ? i.log(e) : i.error(e) : i.warn(e);
1676
1713
  }
1677
1714
  showBusy(e, t) {
1678
1715
  const n = this.getDelegate();
1679
- return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(Vt());
1716
+ return n?.showBusy ? n.showBusy(e, t) : Promise.resolve(qt());
1680
1717
  }
1681
1718
  showWindow(e, t) {
1682
1719
  const n = this.getDelegate();
@@ -1697,33 +1734,33 @@ var jt = class extends n {
1697
1734
  option: ""
1698
1735
  });
1699
1736
  }
1700
- }, Ut = g(new jt()), Yt = ({ children: e, notifier: t }) => (S(() => {
1737
+ }, Gt = g(new Zt()), Jt = ({ children: e, notifier: t }) => (C(() => {
1701
1738
  const e = i.getOverrides();
1702
1739
  return i.setOverrides(t), () => {
1703
1740
  i.setOverrides(e);
1704
1741
  };
1705
- }, [t]), _(Ut.Provider, { value: t }, e)), Xt = () => x(Ut), qt = (e, t) => {
1706
- const n = w((...t) => e?.(...t), t), o = L(null);
1742
+ }, [t]), _(Gt.Provider, { value: t }, e)), Qt = () => S(Gt), en = (e, t) => {
1743
+ const n = x((...t) => e?.(...t), t), o = D(null);
1707
1744
  o.current = n;
1708
- const r = w((...e) => o.current?.(...e), []);
1745
+ const r = x((...e) => o.current?.(...e), []);
1709
1746
  if (o.current) return r;
1710
- }, Zt = () => {};
1711
- function Gt(e, t) {
1712
- const n = w((t) => e ? e(t) : Zt, [e]), o = w(() => t ? t() : null, [t]);
1747
+ }, tn = () => {};
1748
+ function nn(e, t) {
1749
+ const n = x((t) => e ? e(t) : tn, [e]), o = x(() => t ? t() : null, [t]);
1713
1750
  return A(n, o, o);
1714
1751
  }
1715
- function Jt(e, t) {
1716
- const n = w((t) => e.subscribe(t), [e]), o = w(() => t(e), [e, t]);
1752
+ function on(e, t) {
1753
+ const n = x((t) => e.subscribe(t), [e]), o = x(() => t(e), [e, t]);
1717
1754
  return A(n, o, o);
1718
1755
  }
1719
- var Qt = () => {};
1720
- function en(e, t) {
1721
- const n = w((t) => e ? e.subscribe(t) : Qt, [e]), o = w(() => e ? t(e) : null, [e, t]);
1756
+ var rn = () => {};
1757
+ function sn(e, t) {
1758
+ const n = x((t) => e ? e.subscribe(t) : rn, [e]), o = x(() => e ? t(e) : null, [e, t]);
1722
1759
  return A(n, o, o);
1723
1760
  }
1724
- function tn(e) {
1725
- const [t, n] = D("undefined" != typeof window ? window.devicePixelRatio : 1), o = L(null);
1726
- return S(() => {
1761
+ function ln(e) {
1762
+ const [t, n] = P("undefined" != typeof window ? window.devicePixelRatio : 1), o = D(null);
1763
+ return C(() => {
1727
1764
  if ("undefined" == typeof window || !("matchMedia" in window)) return;
1728
1765
  const e = () => {
1729
1766
  const t = window.matchMedia(`screen and (resolution: ${window.devicePixelRatio}dppx)`);
@@ -1740,14 +1777,14 @@ function tn(e) {
1740
1777
  };
1741
1778
  }, [e]), t;
1742
1779
  }
1743
- function nn(e) {
1780
+ function an(e) {
1744
1781
  if ("undefined" == typeof window) return 1;
1745
1782
  const { defaultDpr: t = 1, maxDpr: n = 3, round: o = !0 } = e || {}, r = "undefined" != typeof window && "number" == typeof window.devicePixelRatio ? window.devicePixelRatio : t;
1746
1783
  return Math.min(Math.max(1, o ? Math.floor(r) : r), n);
1747
1784
  }
1748
- function on(e, t, n) {
1749
- const o = qt(t, [t]);
1750
- S(() => {
1785
+ function cn(e, t, n) {
1786
+ const o = en(t, [t]);
1787
+ C(() => {
1751
1788
  const t = (t) => {
1752
1789
  e.current && !e.current.contains(t.target) && o(t);
1753
1790
  };
@@ -1756,32 +1793,32 @@ function on(e, t, n) {
1756
1793
  };
1757
1794
  }, [e]);
1758
1795
  }
1759
- function rn(e = {}) {
1760
- const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = D(!1), [l, a] = D(null), [c, h] = D(!1);
1761
- S(() => {
1796
+ function hn(e = {}) {
1797
+ const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = P(!1), [l, a] = P(null), [c, h] = P(!1);
1798
+ C(() => {
1762
1799
  s(function() {
1763
1800
  if ("undefined" == typeof document) return !1;
1764
1801
  const e = document.permissionsPolicy ?? document.featurePolicy;
1765
1802
  return e?.allowsFeature ? e.allowsFeature("fullscreen") : !!document.fullscreenEnabled;
1766
1803
  }());
1767
1804
  }, []);
1768
- const u = w(async () => {
1805
+ const u = x(async () => {
1769
1806
  const e = t?.current ?? document.documentElement;
1770
1807
  try {
1771
1808
  await e.requestFullscreen(r);
1772
1809
  } catch (e) {
1773
1810
  throw (e instanceof TypeError || e instanceof DOMException && "TypeError" === e.name) && s(!1), e;
1774
1811
  }
1775
- }, [t, r]), d = w(async () => {
1812
+ }, [t, r]), d = x(async () => {
1776
1813
  await document.exitFullscreen();
1777
- }, []), f = w(() => document.fullscreenElement ? d() : u(), [u, d]), p = w((e) => {
1814
+ }, []), f = x(() => document.fullscreenElement ? d() : u(), [u, d]), p = x((e) => {
1778
1815
  const t = document.fullscreenElement ?? null;
1779
1816
  a(t), h(!!t), n?.(e);
1780
- }, [n]), m = w((e) => {
1817
+ }, [n]), m = x((e) => {
1781
1818
  const t = document.fullscreenElement ?? null;
1782
1819
  a(t), h(!!t), o?.(e);
1783
1820
  }, [o]);
1784
- return S(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1821
+ return C(() => (document.addEventListener("fullscreenchange", p), document.addEventListener("fullscreenerror", m), () => {
1785
1822
  document.removeEventListener("fullscreenchange", p), document.removeEventListener("fullscreenerror", m);
1786
1823
  }), [p, m]), {
1787
1824
  isFullscreenAvailable: i,
@@ -1792,21 +1829,21 @@ function rn(e = {}) {
1792
1829
  toggleFullscreen: f
1793
1830
  };
1794
1831
  }
1795
- var sn = "_portal-root_105xh_14", ln = "_fullscreen_105xh_31", an = 0, cn = () => {
1832
+ var un = "_portal-root_105xh_14", dn = "_fullscreen_105xh_31", fn = 0, pn = () => {
1796
1833
  const e = document.fullscreenElement, t = e ?? document.body;
1797
1834
  let n = document.querySelector(".portal-root");
1798
- n || (n = document.createElement("div"), n.className = `portal-root ${sn}`), n.parentElement !== t && t.appendChild(n);
1835
+ n || (n = document.createElement("div"), n.className = `portal-root ${un}`), n.parentElement !== t && t.appendChild(n);
1799
1836
  const o = !!e;
1800
- return n.classList.toggle("fullscreen", o), n.classList.toggle(ln, o), n;
1837
+ return n.classList.toggle("fullscreen", o), n.classList.toggle(dn, o), n;
1801
1838
  };
1802
- function hn() {
1803
- const [e, t] = D(!!document.fullscreenElement), n = w(() => cn(), []);
1804
- return S(() => {
1839
+ function mn() {
1840
+ const [e, t] = P(!!document.fullscreenElement), n = x(() => pn(), []);
1841
+ return C(() => {
1805
1842
  const e = () => {
1806
- t(!!document.fullscreenElement), cn();
1843
+ t(!!document.fullscreenElement), pn();
1807
1844
  };
1808
- return an++, cn(), document.addEventListener("fullscreenchange", e), () => {
1809
- document.removeEventListener("fullscreenchange", e), --an <= 0 && (an = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1845
+ return fn++, pn(), document.addEventListener("fullscreenchange", e), () => {
1846
+ document.removeEventListener("fullscreenchange", e), --fn <= 0 && (fn = 0, document.querySelectorAll(".portal-root").forEach((e) => {
1810
1847
  e.parentNode?.removeChild(e);
1811
1848
  }));
1812
1849
  };
@@ -1815,67 +1852,124 @@ function hn() {
1815
1852
  isFullscreen: e
1816
1853
  };
1817
1854
  }
1818
- function un(e) {
1855
+ var gn = "_dragging_at5p4_10", _n = /* @__PURE__ */ new Set([
1856
+ "text",
1857
+ "search",
1858
+ "url",
1859
+ "tel",
1860
+ "password",
1861
+ ""
1862
+ ]), vn = (e, t, n) => {
1863
+ const o = e.getBoundingClientRect();
1864
+ if (!o.width || !o.height) return null;
1865
+ const r = Math.min(Math.max(t, o.left + 1), o.right - 1), i = Math.min(Math.max(n, o.top + 1), o.bottom - 1), s = e.ownerDocument, l = s.caretPositionFromPoint?.(r, i);
1866
+ if (l) return l.offset;
1867
+ const a = s.caretRangeFromPoint?.(r, i);
1868
+ return a ? a.startOffset : null;
1869
+ }, yn = () => {
1870
+ const e = D(null);
1871
+ return C(() => () => {
1872
+ e.current?.();
1873
+ }, []), k(() => ({
1874
+ onPointerDown: (t) => {
1875
+ if (void 0 !== t?.button && 0 !== t.button) return;
1876
+ if (e.current) return;
1877
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && _n.has(o.type) ? o : null);
1878
+ var o;
1879
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? vn(n, t.clientX, t.clientY) : null;
1880
+ let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1881
+ const a = (e, t) => {
1882
+ if (!i || !n || null === r) return;
1883
+ const o = vn(n, e, t);
1884
+ null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1885
+ }, c = (e) => {
1886
+ s = e.clientX, l = e.clientY, a(s, l);
1887
+ }, h = (e) => {
1888
+ if (!n || null === r) return;
1889
+ if (e.detail > 1) return void (i = !1);
1890
+ e.preventDefault();
1891
+ const t = n.ownerDocument.activeElement === n;
1892
+ n.focus({ preventScroll: !0 }), (t || n.selectionStart === n.selectionEnd) && n.setSelectionRange(r, r);
1893
+ }, u = document.documentElement, d = i ? window.setInterval(() => {
1894
+ if (!i || !n) return;
1895
+ const e = n.getBoundingClientRect(), t = s < e.left ? s - e.left : s > e.right ? s - e.right : 0, o = l < e.top ? l - e.top : l > e.bottom ? l - e.bottom : 0;
1896
+ if (!t && !o) return;
1897
+ const r = (e) => Math.max(-24, Math.min(24, e));
1898
+ n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1899
+ }, 50) : 0, f = () => {
1900
+ e.current = null, u.classList.remove(gn), d && window.clearInterval(d), window.removeEventListener("mousedown", h, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1901
+ };
1902
+ e.current = f, u.classList.add(gn), i && window.addEventListener("mousedown", h, {
1903
+ capture: !0,
1904
+ once: !0
1905
+ }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
1906
+ },
1907
+ onDragStart: (e) => {
1908
+ e.preventDefault();
1909
+ }
1910
+ }), []);
1911
+ };
1912
+ function bn(e) {
1819
1913
  if (!e) throw new Error("must have a PointerHandlerOptions");
1820
- const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = qt(t, [t]), l = qt(n, [n]), a = qt(o, [o]), c = L(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = L(null), f = L(null), p = L(null), m = L(null), g = w(() => {
1914
+ const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1, consumeTouch: i = !0 } = e, s = en(t, [t]), l = en(n, [n]), a = en(o, [o]), c = D(!1), h = e?.timerInitial ?? 230, u = e?.timerContinuous ?? h / 2, d = D(null), f = D(null), p = D(null), m = D(null), g = x(() => {
1821
1915
  m.current && (clearTimeout(m.current), m.current = null);
1822
- }, []), _ = w((e) => {
1916
+ }, []), _ = x((e) => {
1823
1917
  m.current = setTimeout(() => {
1824
1918
  window.requestAnimationFrame(() => {
1825
1919
  if (!1 === c.current) return;
1826
1920
  const e = f.current, t = d.current;
1827
1921
  if (!e || !t) return;
1828
- const n = Ye(e, t.currentTarget);
1922
+ const n = qe(e, t.currentTarget);
1829
1923
  a?.(n, p.current, t);
1830
1924
  }), _(u);
1831
1925
  }, e ?? h);
1832
1926
  }, []);
1833
- S(() => () => g(), []);
1834
- const v = r ? "pointer" : "mouse", y = w((e) => {
1927
+ C(() => () => g(), []);
1928
+ const v = r ? "pointer" : "mouse", y = x((e) => {
1835
1929
  e.stopPropagation(), e.stopImmediatePropagation(), e.preventDefault();
1836
- }, []), b = qt((e) => {
1837
- document.removeEventListener(`${v}move`, M), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", k), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", x), g(), window.requestAnimationFrame(() => {
1930
+ }, []), b = en((e) => {
1931
+ document.removeEventListener(`${v}move`, M), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", T), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", w), g(), window.requestAnimationFrame(() => {
1838
1932
  if (!1 === c.current) return;
1839
1933
  c.current = !1;
1840
1934
  const t = e, n = d.current;
1841
1935
  if (!n) return;
1842
- const o = Ye(t, n.currentTarget);
1936
+ const o = qe(t, n.currentTarget);
1843
1937
  l?.(o, p.current, n), p.current = null;
1844
1938
  });
1845
- }, []), x = w(() => {
1939
+ }, []), w = x(() => {
1846
1940
  !1 !== c.current && (c.current = !1, b(f.current));
1847
- }, []), C = qt(() => {
1941
+ }, []), S = en(() => {
1848
1942
  g(), _(u), window.requestAnimationFrame(() => {
1849
1943
  if (!1 === c.current) return;
1850
1944
  const e = f.current, t = d.current;
1851
1945
  if (!e || !t) return;
1852
- const n = Ye(e, t.currentTarget);
1946
+ const n = qe(e, t.currentTarget);
1853
1947
  a?.(n, p.current, t);
1854
1948
  });
1855
- }, [u]), M = qt((e) => {
1856
- f.current = e, C();
1857
- }, []), E = qt((e) => {
1949
+ }, [u]), M = en((e) => {
1950
+ f.current = e, S();
1951
+ }, []), E = en((e) => {
1858
1952
  p.current = {
1859
1953
  ctrlKey: e.ctrlKey,
1860
1954
  shiftKey: e.shiftKey,
1861
1955
  altKey: e.altKey,
1862
1956
  metaKey: e.metaKey
1863
- }, C();
1864
- }, []), k = qt((e) => {
1957
+ }, S();
1958
+ }, []), T = en((e) => {
1865
1959
  p.current = {
1866
1960
  ctrlKey: e.ctrlKey,
1867
1961
  shiftKey: e.shiftKey,
1868
1962
  altKey: e.altKey,
1869
1963
  metaKey: e.metaKey
1870
- }, C();
1964
+ }, S();
1871
1965
  }, [u]);
1872
- return qt((e) => {
1966
+ return en((e) => {
1873
1967
  e.isDefaultPrevented() || (p.current = {
1874
1968
  ctrlKey: e.ctrlKey,
1875
1969
  shiftKey: e.shiftKey,
1876
1970
  altKey: e.altKey,
1877
1971
  metaKey: e.metaKey
1878
- }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, M, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", k, { passive: !1 }), window.addEventListener("blur", x, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1972
+ }, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, M, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", T, { passive: !1 }), window.addEventListener("blur", w, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
1879
1973
  passive: !1,
1880
1974
  capture: !0
1881
1975
  }), document.addEventListener("touchmove", y, {
@@ -1884,8 +1978,8 @@ function un(e) {
1884
1978
  })), c.current = !0, _(h)));
1885
1979
  }, [h, r]);
1886
1980
  }
1887
- function dn(e, t) {
1888
- return un({
1981
+ function wn(e, t) {
1982
+ return bn({
1889
1983
  onPointerDown: e,
1890
1984
  onPointerMoveOrWait: (t, n, o) => {
1891
1985
  e?.(o);
@@ -1893,49 +1987,49 @@ function dn(e, t) {
1893
1987
  ...t
1894
1988
  });
1895
1989
  }
1896
- var fn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1897
- const o = L(e);
1990
+ var xn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1991
+ const o = D(e);
1898
1992
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1899
1993
  const r = t();
1900
- return E(() => {
1994
+ return T(() => {
1901
1995
  o.current !== r && (o.current = r, n(r));
1902
1996
  }, [n, r]), null;
1903
- }, pn = (e) => {
1997
+ }, Sn = (e) => {
1904
1998
  console && console.warn && console.warn(e);
1905
- }, mn = globalThis, gn = 1, _n = !1, vn = !1, yn = [], bn = [], wn = () => {
1906
- bn.forEach((e) => e());
1907
- }, xn = ({ automaticContainerInternalUseOnly: e }) => {
1908
- const [t, n] = D([]), o = L([]);
1909
- return o.current = t, e || !1 !== _n || (vn = !0), S(() => {
1999
+ }, Cn = globalThis, Mn = 1, En = !1, Tn = !1, kn = [], Ln = [], Dn = () => {
2000
+ Ln.forEach((e) => e());
2001
+ }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
2002
+ const [t, n] = P([]), o = D([]);
2003
+ return o.current = t, e || !1 !== En || (Tn = !0), C(() => {
1910
2004
  let t = !0;
1911
2005
  function r() {
1912
- if (t) return bn[0] !== r ? (e || !0 !== _n || pn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...yn]);
2006
+ if (t) return Ln[0] !== r ? (e || !0 !== En || Sn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...kn]);
1913
2007
  }
1914
- return bn.push(r), wn(), () => {
1915
- t = !1, o.current?.length > 0 && pn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), bn.splice(bn.indexOf(r), 1), wn();
2008
+ return Ln.push(r), Dn(), () => {
2009
+ t = !1, o.current?.length > 0 && Sn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Ln.splice(Ln.indexOf(r), 1), Dn();
1916
2010
  };
1917
- }, [e]), z(P, { children: t.map(({ hook: e, key: t }) => _(fn, {
2011
+ }, [e]), R(z, { children: t.map(({ hook: e, key: t }) => _(xn, {
1918
2012
  ...e,
1919
2013
  key: t
1920
2014
  })) });
1921
- }, Sn = (e) => {
1922
- const t = gn++;
2015
+ }, An = (e) => {
2016
+ const t = Mn++;
1923
2017
  var n;
1924
- return yn.push({
2018
+ return kn.push({
1925
2019
  hook: e,
1926
2020
  key: t
1927
- }), 0 === bn.length && !1 === vn && (_n = !0, n = xn, mn.document && mn.document.createElement ? I(mn.document.createElement("div")).render(z(n, { automaticContainerInternalUseOnly: !0 })) : pn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), wn(), () => {
1928
- yn.splice(yn.findIndex((e) => e.key === t), 1), wn();
2021
+ }), 0 === Ln.length && !1 === Tn && (En = !0, n = Pn, Cn.document && Cn.document.createElement ? N(Cn.document.createElement("div")).render(R(n, { automaticContainerInternalUseOnly: !0 })) : Sn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), Dn(), () => {
2022
+ kn.splice(kn.findIndex((e) => e.key === t), 1), Dn();
1929
2023
  };
1930
- }, Cn = null;
1931
- Cn || (Cn = (e, t, n = {}) => {
2024
+ }, zn = null;
2025
+ zn || (zn = (e, t, n = {}) => {
1932
2026
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1933
2027
  const c = (e) => {
1934
- r = e, O(() => l.forEach((t) => t(e)));
2028
+ r = e, F(() => l.forEach((t) => t(e)));
1935
2029
  }, h = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1936
2030
  return () => {
1937
- const [n, s] = D(h);
1938
- return S(() => (i || (i = !0, o = Sn({
2031
+ const [n, s] = P(h);
2032
+ return C(() => (i || (i = !0, o = An({
1939
2033
  initValue: e,
1940
2034
  useHookBody: t,
1941
2035
  applyStateChange: c
@@ -1944,27 +2038,27 @@ Cn || (Cn = (e, t, n = {}) => {
1944
2038
  }), []), n;
1945
2039
  };
1946
2040
  });
1947
- var Mn = Cn, En = () => {
2041
+ var Rn = zn, $n = () => {
1948
2042
  console.warn("You must call useEditMode before setting its state.");
1949
- }, kn = Mn(null, () => {
1950
- const [e, t] = D(null);
1951
- return En = t, e;
1952
- }), Tn = (e) => {
1953
- En((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1954
- }, Ln = () => {
1955
- const e = kn();
2043
+ }, Bn = Rn(null, () => {
2044
+ const [e, t] = P(null);
2045
+ return $n = t, e;
2046
+ }), In = (e) => {
2047
+ $n((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
2048
+ }, Hn = () => {
2049
+ const e = Bn();
1956
2050
  return k(() => ({
1957
- setMode: Tn,
2051
+ setMode: In,
1958
2052
  getMode: () => e
1959
2053
  }), [e]);
1960
- }, Dn = { Active: "language" };
1961
- function An() {
2054
+ }, Nn = { Active: "language" };
2055
+ function On() {
1962
2056
  return A((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1963
2057
  }
1964
- function Pn() {
2058
+ function Fn() {
1965
2059
  return k(() => (e, n) => t.lookup(e, n) ?? e, [A((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision())]);
1966
2060
  }
1967
- var zn = (e, t, n, o) => ({
2061
+ var Wn = (e, t, n, o) => ({
1968
2062
  x: e,
1969
2063
  y: t,
1970
2064
  width: n,
@@ -1983,9 +2077,9 @@ var zn = (e, t, n, o) => ({
1983
2077
  right: e + n,
1984
2078
  bottom: t + o
1985
2079
  })
1986
- }), Rn = (e) => {
1987
- return zn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
1988
- }, $n = [
2080
+ }), Kn = (e) => {
2081
+ return Wn(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height);
2082
+ }, Vn = [
1989
2083
  "paddingTop",
1990
2084
  "paddingRight",
1991
2085
  "paddingBottom",
@@ -2015,18 +2109,18 @@ var zn = (e, t, n, o) => ({
2015
2109
  "wordBreak",
2016
2110
  "overflowWrap",
2017
2111
  "tabSize"
2018
- ], Bn = (e, t, n, o = 0) => {
2019
- if (!e || "undefined" == typeof document) return zn(0, 0, 0, 0);
2112
+ ], jn = (e, t, n, o = 0) => {
2113
+ if (!e || "undefined" == typeof document) return Wn(0, 0, 0, 0);
2020
2114
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
2021
2115
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
2022
2116
  const n = getComputedStyle(t), o = e.style;
2023
- for (const e of $n) o[e] = n[e];
2117
+ for (const e of Vn) o[e] = n[e];
2024
2118
  o.position = "absolute", o.top = "0", o.left = "0", o.visibility = "hidden", o.pointerEvents = "none", o.overflow = "hidden", o.boxSizing = "border-box", o.height = "auto", o.width = `${t.offsetWidth}px`;
2025
2119
  })(l, e), l.textContent = r.slice(0, i);
2026
2120
  const a = document.createElement("span");
2027
2121
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
2028
2122
  try {
2029
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Rn({
2123
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Kn({
2030
2124
  textareaRect: e.getBoundingClientRect(),
2031
2125
  mirrorRect: r,
2032
2126
  markerRect: {
@@ -2037,25 +2131,25 @@ var zn = (e, t, n, o) => ({
2037
2131
  scrollLeft: e.scrollLeft,
2038
2132
  scrollTop: e.scrollTop
2039
2133
  });
2040
- return o ? zn(s.left - o, s.top, 0, s.height) : s;
2134
+ return o ? Wn(s.left - o, s.top, 0, s.height) : s;
2041
2135
  } finally {
2042
2136
  s ? l.remove() : l.textContent = "";
2043
2137
  }
2044
- }, Hn = (e) => {
2045
- const t = L(null);
2046
- S(() => {
2138
+ }, Yn = (e) => {
2139
+ const t = D(null);
2140
+ C(() => {
2047
2141
  if ("undefined" == typeof document) return;
2048
2142
  const e = document.createElement("div");
2049
2143
  return t.current = e, document.body.appendChild(e), () => {
2050
2144
  e.remove(), t.current = null;
2051
2145
  };
2052
2146
  }, []);
2053
- const n = w((n, o) => Bn(e.current, n, t.current ?? void 0, o), [e]);
2147
+ const n = x((n, o) => jn(e.current, n, t.current ?? void 0, o), [e]);
2054
2148
  return {
2055
2149
  getCaretRect: n,
2056
- caretAnchor: w((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2150
+ caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
2057
2151
  };
2058
- }, In = Mn({
2152
+ }, Un = Rn({
2059
2153
  setClipboard: (e) => {
2060
2154
  throw new Error("This is only available via the useClipboard.");
2061
2155
  },
@@ -2063,17 +2157,17 @@ var zn = (e, t, n, o) => ({
2063
2157
  refNativeCopy: { current: null },
2064
2158
  refNativeLastKey: { current: null }
2065
2159
  }, () => {
2066
- const [e, t] = D(r.Global);
2160
+ const [e, t] = P(r.Global);
2067
2161
  return {
2068
2162
  setClipboard: (e) => t(e),
2069
2163
  getClipboard: () => e,
2070
- refNativeCopy: L(null),
2071
- refNativeLastKey: L(null)
2164
+ refNativeCopy: D(null),
2165
+ refNativeLastKey: D(null)
2072
2166
  };
2073
2167
  });
2074
- function Nn(e, t = !0) {
2075
- const n = L(e);
2076
- S(() => {
2168
+ function Xn(e, t = !0) {
2169
+ const n = D(e);
2170
+ C(() => {
2077
2171
  if (t) {
2078
2172
  const t = Object.entries(e).reduce((e, [t, o]) => (n.current[t] !== o && (e[t] = [n.current[t], o]), e), {});
2079
2173
  Object.keys(t).length > 0 && console.log("Changed props:", t);
@@ -2081,35 +2175,36 @@ function Nn(e, t = !0) {
2081
2175
  n.current = e;
2082
2176
  });
2083
2177
  }
2084
- var On = !1, Fn = 0, Wn = "undefined" != typeof document ? E : S, Kn = () => "sheetxl-ui-" + Fn++;
2085
- var Vn = f["useId".toString()], jn = null != Vn ? Vn : function() {
2086
- const [e, t] = D(() => On ? Kn() : void 0);
2087
- return Wn(() => {
2088
- null == e && t(Kn());
2089
- }, []), S(() => {
2090
- On || (On = !0);
2178
+ var qn = !1, Zn = 0, Gn = "undefined" != typeof document ? T : C, Jn = () => "sheetxl-ui-" + Zn++;
2179
+ var Qn = f["useId".toString()], eo = null != Qn ? Qn : function() {
2180
+ const [e, t] = P(() => qn ? Jn() : void 0);
2181
+ return Gn(() => {
2182
+ null == e && t(Jn());
2183
+ }, []), C(() => {
2184
+ qn || (qn = !0);
2091
2185
  }, []), e;
2092
- }, Un = [];
2093
- function Yn(e, t, n = Un) {
2094
- const o = L(null);
2095
- return M(e, () => {
2096
- if (!o.current) return;
2097
- const e = o.current, n = t?.();
2186
+ }, to = [];
2187
+ function no(e, t, n = to, o) {
2188
+ const r = D(null);
2189
+ return E(e, () => {
2190
+ const e = void 0 === o ? r.current : o;
2191
+ if (!e) return;
2192
+ const n = t?.();
2098
2193
  if (!n || "object" != typeof n) throw new Error("attributes must return a plain object of values");
2099
- const r = Object.keys(n), i = r.length;
2100
- for (let t = 0; t < i; t++) {
2101
- const o = r[t], i = n[o];
2194
+ const i = Object.keys(n), s = i.length;
2195
+ for (let t = 0; t < s; t++) {
2196
+ const o = i[t], r = n[o];
2102
2197
  Object.defineProperty(e, o, {
2103
- value: i,
2198
+ value: r,
2104
2199
  writable: !0,
2105
2200
  configurable: !0,
2106
2201
  enumerable: !0
2107
2202
  });
2108
2203
  }
2109
2204
  return e;
2110
- }, n), o;
2205
+ }, void 0 === o ? n : [...n, o]), r;
2111
2206
  }
2112
- var Xn = class extends p {
2207
+ var oo = class extends p {
2113
2208
  constructor(...e) {
2114
2209
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2115
2210
  }
@@ -2125,16 +2220,16 @@ var Xn = class extends p {
2125
2220
  render() {
2126
2221
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2127
2222
  }
2128
- }, qn = ({ children: e, fallback: t }) => {
2129
- const n = Xt();
2130
- return z(Xn, {
2223
+ }, ro = ({ children: e, fallback: t }) => {
2224
+ const n = Qt();
2225
+ return R(oo, {
2131
2226
  fallback: t,
2132
- onError: w((e) => {
2227
+ onError: x((e) => {
2133
2228
  n.showError(e);
2134
2229
  }, [n]),
2135
2230
  children: e
2136
2231
  });
2137
- }, Zn = class {
2232
+ }, io = class {
2138
2233
  constructor(e) {
2139
2234
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2140
2235
  const t = e.reason;
@@ -2149,15 +2244,15 @@ var Xn = class extends p {
2149
2244
  cleanup() {
2150
2245
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2151
2246
  }
2152
- }, Gn = ({ children: e }) => {
2153
- const t = Xt();
2154
- return S(() => {
2155
- const e = new Zn(t);
2247
+ }, so = ({ children: e }) => {
2248
+ const t = Qt();
2249
+ return C(() => {
2250
+ const e = new io(t);
2156
2251
  return () => {
2157
2252
  e.cleanup();
2158
2253
  };
2159
- }, [t]), z(P, { children: e });
2160
- }, Jn = 7, Qn = {
2254
+ }, [t]), R(z, { children: e });
2255
+ }, lo = 7, ao = {
2161
2256
  light: {
2162
2257
  "color-base-100": "#ffffff",
2163
2258
  "color-base-200": "#f5f5f5",
@@ -2254,26 +2349,26 @@ var Xn = class extends p {
2254
2349
  border: "1px",
2255
2350
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2256
2351
  }
2257
- }, eo = "--sxl-";
2258
- function to(e) {
2352
+ }, co = "--sxl-";
2353
+ function ho(e) {
2259
2354
  const t = {};
2260
2355
  for (const n in e) {
2261
2356
  const o = e[n];
2262
2357
  null != o && (Array.isArray(o) ? o.forEach((e, o) => {
2263
- null != e && (t[`${eo}${n}-${o + 1}`] = String(e));
2264
- }) : t[`${eo}${n}`] = String(o));
2358
+ null != e && (t[`${co}${n}-${o + 1}`] = String(e));
2359
+ }) : t[`${co}${n}`] = String(o));
2265
2360
  }
2266
2361
  return t;
2267
2362
  }
2268
- function no(e, ...t) {
2269
- return to(Object.assign({}, Qn[e], ...t.filter(Boolean)));
2363
+ function uo(e, ...t) {
2364
+ return ho(Object.assign({}, ao[e], ...t.filter(Boolean)));
2270
2365
  }
2271
- var oo = ["light", "dark"], ro = "--sxl-input-selection", io = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", so = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${ro},${io});}`, lo = [
2366
+ var fo = ["light", "dark"], po = "--sxl-input-selection", mo = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", go = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${po},${mo});}`, _o = [
2272
2367
  "sxl-defaults",
2273
2368
  "sxl-app",
2274
2369
  "sxl-overrides"
2275
- ], ao = `@layer ${lo.join(", ")};`;
2276
- function co(e) {
2370
+ ], vo = `@layer ${_o.join(", ")};`;
2371
+ function yo(e) {
2277
2372
  let t = "";
2278
2373
  for (const n in e) {
2279
2374
  const o = e[n];
@@ -2283,70 +2378,70 @@ function co(e) {
2283
2378
  }
2284
2379
  return t;
2285
2380
  }
2286
- function ho(e = {}) {
2287
- const { app: t = Qn, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2381
+ function bo(e = {}) {
2382
+ const { app: t = ao, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2288
2383
  app: {
2289
2384
  light: t.light,
2290
2385
  dark: t.dark
2291
2386
  },
2292
2387
  ...n
2293
2388
  }, h = l ? ":scope" : ":root", u = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2294
- a.push(`:where(${h}){color-scheme:light;${co(t.light)}}`);
2389
+ a.push(`:where(${h}){color-scheme:light;${yo(t.light)}}`);
2295
2390
  for (const [e, t] of Object.entries(c)) {
2296
2391
  const n = t?.light;
2297
- n && Object.keys(n).length && a.push(`${d(e)}{${co(n)}}`);
2392
+ n && Object.keys(n).length && a.push(`${d(e)}{${yo(n)}}`);
2298
2393
  }
2299
- for (const e of oo) {
2300
- a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${co(t[e])}}`);
2394
+ for (const e of fo) {
2395
+ a.push(`${u(`[${r}="${e}"]`)}{color-scheme:${e};${yo(t[e])}}`);
2301
2396
  for (const [t, n] of Object.entries(c)) {
2302
2397
  const o = n?.[e];
2303
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${co(o)}}`);
2398
+ o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${yo(o)}}`);
2304
2399
  }
2305
2400
  }
2306
- for (const e of oo) for (const [t, n] of Object.entries(c)) {
2401
+ for (const e of fo) for (const [t, n] of Object.entries(c)) {
2307
2402
  const o = n?.[e];
2308
- o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${co(o)}}`);
2403
+ o && Object.keys(o).length && a.push(`${u(`[${r}="${e}"][${i}="${t}"]`)}{${yo(o)}}`);
2309
2404
  }
2310
- o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${co(o)}}`), a.push(so);
2405
+ o && Object.keys(o).length && a.push(`${u(`[${r}="hc"]`)}{${yo(o)}}`), a.push(go);
2311
2406
  let p = a.join("\n");
2312
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${ao}\n@layer ${s}{\n${p}\n}`), p;
2407
+ return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${vo}\n@layer ${s}{\n${p}\n}`), p;
2313
2408
  }
2314
- var uo = "data-sxl-theme-mode", fo = "data-sxl-theme-surface", po = (e, t) => {
2315
- const n = { [fo]: e };
2316
- return t && (n[uo] = t), n;
2317
- }, mo = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2318
- function go(e) {
2319
- const { mode: t } = e || {}, [n, o] = D(() => {
2409
+ var wo = "data-sxl-theme-mode", xo = "data-sxl-theme-surface", So = (e, t) => {
2410
+ const n = { [xo]: e };
2411
+ return t && (n[wo] = t), n;
2412
+ }, Co = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
2413
+ function Mo(e) {
2414
+ const { mode: t } = e || {}, [n, o] = P(() => {
2320
2415
  if ("light" === t || "dark" === t) return {
2321
2416
  themeMode: t,
2322
2417
  source: "prop"
2323
2418
  };
2324
2419
  if ("undefined" != typeof document) {
2325
- const e = _o();
2420
+ const e = Eo();
2326
2421
  if (e) return {
2327
2422
  themeMode: e,
2328
2423
  source: "class"
2329
2424
  };
2330
2425
  }
2331
2426
  return {
2332
- themeMode: vo(),
2427
+ themeMode: To(),
2333
2428
  source: "media"
2334
2429
  };
2335
2430
  });
2336
- return S(() => {
2431
+ return C(() => {
2337
2432
  const e = () => {
2338
2433
  if (t) return void (t === n.themeMode && "prop" === n.source || o((e) => ({
2339
2434
  ...e,
2340
2435
  themeMode: t,
2341
2436
  source: "prop"
2342
2437
  })));
2343
- const e = _o();
2438
+ const e = Eo();
2344
2439
  if (e) o({
2345
2440
  themeMode: e,
2346
2441
  source: "class"
2347
2442
  });
2348
2443
  else {
2349
- const e = vo();
2444
+ const e = To();
2350
2445
  o({
2351
2446
  themeMode: e,
2352
2447
  source: "media"
@@ -2363,16 +2458,16 @@ function go(e) {
2363
2458
  };
2364
2459
  }, [t]), n;
2365
2460
  }
2366
- function _o() {
2461
+ function Eo() {
2367
2462
  if ("undefined" == typeof document) return null;
2368
2463
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2369
2464
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2370
2465
  }
2371
- function vo() {
2466
+ function To() {
2372
2467
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2373
2468
  }
2374
- var yo = g(null), bo = () => x(yo), wo = (e) => {
2375
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = bo(), u = k(() => ({
2469
+ var ko = g(null), Lo = () => S(ko), Do = (e) => {
2470
+ const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, h = Lo(), u = k(() => ({
2376
2471
  ...o?.light ?? {},
2377
2472
  ...h?.light ?? {},
2378
2473
  ...t ?? {}
@@ -2388,7 +2483,7 @@ var yo = g(null), bo = () => x(yo), wo = (e) => {
2388
2483
  o?.dark,
2389
2484
  h?.dark,
2390
2485
  n
2391
- ]), p = mo("token", C()), { themeMode: m } = go("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = k(() => ho({
2486
+ ]), p = Co("token", M()), { themeMode: m } = Mo("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = k(() => bo({
2392
2487
  app: {
2393
2488
  light: u,
2394
2489
  dark: d
@@ -2414,38 +2509,38 @@ var yo = g(null), bo = () => x(yo), wo = (e) => {
2414
2509
  _,
2415
2510
  u,
2416
2511
  d
2417
- ]), b = z("style", { children: v }), w = {};
2418
- g && (w[uo] = g), s && (w[fo] = s);
2512
+ ]), b = R("style", { children: v }), w = {};
2513
+ g && (w[wo] = g), s && (w[xo] = s);
2419
2514
  let x = c;
2420
2515
  if (l || Object.keys(w).length > 0) {
2421
2516
  const e = f.Children.only(c);
2422
2517
  l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2423
2518
  }
2424
- return R(yo.Provider, {
2519
+ return $(ko.Provider, {
2425
2520
  value: y,
2426
2521
  children: [b, x]
2427
2522
  });
2428
2523
  };
2429
- function xo(e, t) {
2524
+ function Po(e, t) {
2430
2525
  if (!e || "undefined" == typeof getComputedStyle) return;
2431
- const n = getComputedStyle(e).getPropertyValue(Co(t)).trim();
2526
+ const n = getComputedStyle(e).getPropertyValue(zo(t)).trim();
2432
2527
  return "" === n ? void 0 : n;
2433
2528
  }
2434
- function So(e, t) {
2529
+ function Ao(e, t) {
2435
2530
  const n = {};
2436
2531
  if (!e || "undefined" == typeof getComputedStyle) return n;
2437
2532
  const o = getComputedStyle(e);
2438
2533
  for (const e of t) {
2439
- const t = o.getPropertyValue(Co(e)).trim();
2534
+ const t = o.getPropertyValue(zo(e)).trim();
2440
2535
  "" !== t && (n[e] = t);
2441
2536
  }
2442
2537
  return n;
2443
2538
  }
2444
- function Co(e) {
2539
+ function zo(e) {
2445
2540
  return e.startsWith("--") ? e : `--sxl-${e}`;
2446
2541
  }
2447
- wo.displayName = "TokenThemeProvider";
2448
- var Mo = g(null), Eo = () => {
2542
+ Do.displayName = "TokenThemeProvider";
2543
+ var Ro = g(null), $o = () => {
2449
2544
  const e = (n, o) => {
2450
2545
  if (null === o) return;
2451
2546
  n.add(o);
@@ -2492,16 +2587,16 @@ var Mo = g(null), Eo = () => {
2492
2587
  }
2493
2588
  };
2494
2589
  return t;
2495
- }, ko = () => x(Mo), To = (e) => {
2590
+ }, Bo = () => S(Ro), Io = (e) => {
2496
2591
  const t = {};
2497
- return e ? (e.mode && (t[uo] = e.mode), e.surface && (t[fo] = e.surface), {
2592
+ return e ? (e.mode && (t[wo] = e.mode), e.surface && (t[xo] = e.surface), {
2498
2593
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2499
2594
  attrs: t
2500
2595
  }) : { attrs: t };
2501
- }, Lo = "_float-popper_csci8_1", Do = "_float-popper-grow_csci8_7", Ao = "_entered_csci8_15", Po = [0, 2], zo = b(v((t, n) => {
2502
- const { open: o, children: r, label: i, offsets: s = Po, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2596
+ }, Ho = "_float-popper_csci8_1", No = "_float-popper-grow_csci8_7", Oo = "_entered_csci8_15", Fo = [0, 2], Wo = w(v((t, n) => {
2597
+ const { open: o, children: r, label: i, offsets: s = Fo, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
2503
2598
  if (Array.isArray(r)) throw new Error("children can not be an array");
2504
- const b = qt(p ?? (() => {}), [p]), x = qt(m ?? (() => {}), [m]), C = qt(g ?? (() => {}), [g]), E = qt(_ ?? (() => {}), [_]), T = qt(v ?? (() => {}), [v]), [A, P] = D(!1), [R, $] = D(!1), [B, H] = D(!1), [I, O] = D(), [Y, X] = D(), q = L(null), Z = L(null), { getPortalContainer: G } = hn(), J = ko(), Q = bo(), ee = k(() => {
2599
+ const b = en(p ?? (() => {}), [p]), w = en(m ?? (() => {}), [m]), S = en(g ?? (() => {}), [g]), M = en(_ ?? (() => {}), [_]), T = en(v ?? (() => {}), [v]), [L, A] = P(!1), [z, $] = P(!1), [B, I] = P(!1), [H, N] = P(), [F, X] = P(), q = D(null), Z = D(null), { getPortalContainer: G } = mn(), J = Bo(), Q = Lo(), ee = k(() => {
2505
2600
  const e = J?.themeScope;
2506
2601
  return Q?.scopeClass || Q?.mode ? {
2507
2602
  classes: Q?.scopeClass ? [...e?.classes ?? [], Q.scopeClass] : e?.classes,
@@ -2513,15 +2608,15 @@ var Mo = g(null), Eo = () => {
2513
2608
  Q?.scopeClass,
2514
2609
  Q?.mode
2515
2610
  ]), te = k(() => {
2516
- const e = [V({
2611
+ const e = [j({
2517
2612
  mainAxis: s[1] ?? 0,
2518
2613
  crossAxis: s[0] ?? 0
2519
- }), K({ rootBoundary: "document" })];
2520
- return h && e.push(j({
2614
+ }), V({ rootBoundary: "document" })];
2615
+ return h && e.push(Y({
2521
2616
  rootBoundary: "document",
2522
2617
  apply({ availableHeight: e, availableWidth: t }) {
2523
2618
  const n = Math.max(0, Math.round(e - 10));
2524
- O((e) => e === n ? e : n);
2619
+ N((e) => e === n ? e : n);
2525
2620
  const o = Math.max(0, Math.round(t - 10));
2526
2621
  X((e) => e === o ? e : o);
2527
2622
  }
@@ -2537,104 +2632,117 @@ var Mo = g(null), Eo = () => {
2537
2632
  get contextElement() {
2538
2633
  if (a) return;
2539
2634
  const t = e();
2540
- return t && 1 === t.nodeType ? t : void 0;
2635
+ if (!t) return;
2636
+ if (1 === t.nodeType) return t;
2637
+ const n = t.contextElement;
2638
+ return n && 1 === n.nodeType ? n : void 0;
2541
2639
  }
2542
2640
  };
2543
2641
  }, [a, l]), { refs: oe, floatingStyles: re, isPositioned: ie, placement: se, update: le } = U({
2544
2642
  placement: c,
2545
2643
  middleware: te,
2546
- whileElementsMounted: k(() => u ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [u]),
2644
+ whileElementsMounted: k(() => u ? (e, t, n) => K(e, t, n, { animationFrame: !0 }) : K, [u]),
2547
2645
  elements: { reference: ne }
2548
- }), ae = w((e) => {
2646
+ }), ae = x((e) => {
2549
2647
  q.current = e, oe.setFloating(e);
2550
2648
  }, [oe]);
2551
- M(n, () => ({
2649
+ E(n, () => ({
2552
2650
  instance: () => q.current ? { update: le } : null,
2553
2651
  element: () => q.current
2554
- }), [le]), S(() => {
2555
- o && P(!0);
2556
- }, [o]), S(() => {
2557
- A && ie && !R && ($(!0), b?.(q.current, { update: le }));
2652
+ }), [le]), C(() => {
2653
+ o && A(!0);
2654
+ }, [o]), C(() => {
2655
+ L && ie && !z && ($(!0), b?.(q.current, { update: le }));
2558
2656
  }, [
2559
- A,
2657
+ L,
2560
2658
  ie,
2561
- R
2562
- ]), S(() => {
2563
- o && R ? x?.() : !o && A && E?.();
2564
- }, [o, R]), S(() => {
2565
- if (A && R && o) {
2566
- const e = requestAnimationFrame(() => H(!0));
2659
+ z
2660
+ ]), C(() => {
2661
+ o && z ? w?.() : !o && L && M?.();
2662
+ }, [o, z]), C(() => {
2663
+ if (L && z && o) {
2664
+ const e = requestAnimationFrame(() => I(!0));
2567
2665
  return () => cancelAnimationFrame(e);
2568
2666
  }
2569
2667
  }, [
2570
- A,
2571
- R,
2668
+ L,
2669
+ z,
2572
2670
  o
2573
- ]), S(() => {
2574
- !o && A && (H(!1), P(!1), $(!1), T?.());
2575
- }, [o, A]);
2576
- const ce = qt((e) => {
2577
- e.target === e.currentTarget && o && B && C?.();
2671
+ ]), C(() => {
2672
+ !o && L && (I(!1), A(!1), $(!1), T?.());
2673
+ }, [o, L]);
2674
+ const ce = en((e) => {
2675
+ e.target === e.currentTarget && o && B && S?.();
2578
2676
  }, [o, B]);
2579
- if (!A) return null;
2580
- const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = To(ee);
2677
+ if (!L) return null;
2678
+ const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = Io(ee);
2581
2679
  if (!ue && !de["data-sxl-theme-mode"] && !de["data-sxl-theme-surface"]) {
2582
- const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${uo}]`)?.getAttribute(uo), o = t?.closest(`[${fo}]`)?.getAttribute(fo);
2583
- n && (de[uo] = n), o && (de[fo] = o);
2680
+ const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${wo}]`)?.getAttribute(wo), o = t?.closest(`[${xo}]`)?.getAttribute(xo);
2681
+ n && (de[wo] = n), o && (de[xo] = o);
2584
2682
  }
2585
- return N(z("div", {
2683
+ return O(R("div", {
2586
2684
  ref: ae,
2587
- className: F(Lo, f, ue),
2685
+ className: W(Ho, f, ue),
2588
2686
  role: void 0,
2589
2687
  ...de,
2590
2688
  style: {
2591
2689
  ...re,
2592
- maxHeight: h ? I : void 0,
2593
- maxWidth: h ? Y : void 0,
2690
+ maxHeight: h ? H : void 0,
2691
+ maxWidth: h ? F : void 0,
2594
2692
  zIndex: o ? 1300 : 1299,
2595
- pointerEvents: A && o ? void 0 : "none",
2693
+ pointerEvents: L && o ? void 0 : "none",
2596
2694
  ...d
2597
2695
  },
2598
2696
  ...y,
2599
- children: z("div", {
2600
- className: F(Do, { [Ao]: B }),
2697
+ children: R("div", {
2698
+ className: W(No, { [Oo]: B }),
2601
2699
  style: { transformOrigin: he },
2602
2700
  onTransitionEnd: ce,
2603
2701
  children: r || e.EmptyArray
2604
2702
  })
2605
2703
  }), G());
2606
2704
  }));
2607
- zo.displayName = "FloatPopper";
2608
- var Ro = "_float-popup_juap7_1", $o = (e) => {
2705
+ Wo.displayName = "FloatPopper";
2706
+ var Ko = "_float-popup_juap7_1", Vo = (e) => {
2609
2707
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2610
- return z("div", {
2611
- className: F("menu", Ro, s),
2708
+ return R("div", {
2709
+ className: W("menu", Ko, s),
2612
2710
  ...l,
2613
2711
  children: i
2614
2712
  });
2615
- }, Bo = "_float-panel_1f1r8_1", Ho = b(v((e, t) => {
2616
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = $o, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = qt(h ?? (() => {}), [h]), v = qt(u ?? (() => {}), [u]), y = qt(d ?? (() => {}), [d]), b = qt(f ?? (() => {}), [f]), [w, x] = D(), S = L(null), C = qt((e, t) => {
2713
+ }, jo = "_float-panel_1f1r8_1", Yo = w(v((e, t) => {
2714
+ const { floatReference: n, popupContainer: o, createPopupPanel: r = Vo, children: i, className: s, ...l } = e, a = {
2715
+ popupContainer: o,
2716
+ floatReference: n,
2717
+ children: i,
2718
+ ...l
2719
+ };
2720
+ return R("div", {
2721
+ ref: t,
2722
+ className: W(jo, s),
2723
+ tabIndex: 0,
2724
+ children: r(a)
2725
+ });
2726
+ }));
2727
+ Yo.displayName = "FloatPanelSurface";
2728
+ var Uo = w(v((e, t) => {
2729
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, createPopupPanel: l = Vo, propsPopper: a, onMount: c, onClosing: h, onClose: u, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = en(h ?? (() => {}), [h]), v = en(u ?? (() => {}), [u]), y = en(d ?? (() => {}), [d]), b = en(f ?? (() => {}), [f]), [w, x] = P(), S = D(null), C = en((e, t) => {
2617
2730
  x(e), c?.(S.current, t);
2618
- }, [c]), M = k(() => {
2619
- const e = {
2620
- popupContainer: w,
2621
- floatReference: s,
2622
- children: p,
2623
- ...g
2624
- };
2625
- return z("div", {
2626
- ref: S,
2627
- className: F(Bo, m),
2628
- tabIndex: 0,
2629
- children: l(e)
2630
- });
2631
- }, [
2731
+ }, [c]), M = k(() => R(Yo, {
2732
+ ref: S,
2733
+ className: m,
2734
+ floatReference: s,
2735
+ popupContainer: w,
2736
+ createPopupPanel: l,
2737
+ ...g,
2738
+ children: p
2739
+ }), [
2632
2740
  l,
2633
2741
  p,
2634
2742
  w,
2635
2743
  s
2636
2744
  ]);
2637
- return z(zo, {
2745
+ return R(Wo, {
2638
2746
  ref: t,
2639
2747
  anchorEl: o,
2640
2748
  anchorPosition: r,
@@ -2649,27 +2757,27 @@ var Ro = "_float-popup_juap7_1", $o = (e) => {
2649
2757
  children: M
2650
2758
  });
2651
2759
  }));
2652
- Ho.displayName = "FloatPanel";
2653
- var Io = "_float-tooltip_1l6qz_1", No = b(v((e, t) => {
2760
+ Uo.displayName = "FloatPanel";
2761
+ var Xo = "_float-tooltip_1l6qz_1", qo = w(v((e, t) => {
2654
2762
  const { open: n, title: o, placement: r = "top", anchorEl: i, anchorPosition: s, offsets: l = [0, 8], className: a, ...c } = e;
2655
- return null == o || "" === o ? null : z(zo, {
2763
+ return null == o || "" === o ? null : R(Wo, {
2656
2764
  open: n,
2657
2765
  anchorEl: i,
2658
2766
  anchorPosition: s,
2659
2767
  placement: r,
2660
2768
  offsets: l,
2661
2769
  resizeOnOverflow: !1,
2662
- children: z("div", {
2770
+ children: R("div", {
2663
2771
  ref: t,
2664
- className: F(Io, a),
2772
+ className: W(Xo, a),
2665
2773
  ...c,
2666
2774
  children: o
2667
2775
  })
2668
2776
  });
2669
2777
  }));
2670
- No.displayName = "FloatTooltip";
2671
- var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2672
- const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = x(Mo), u = k(() => {
2778
+ qo.displayName = "FloatTooltip";
2779
+ var Zo = (e) => R(Uo, { ...e }), Go = (e) => {
2780
+ const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = S(Ro), u = k(() => {
2673
2781
  const e = h?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, u = l?.length || a || c ? {
2674
2782
  classes: l,
2675
2783
  surface: a,
@@ -2689,104 +2797,106 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2689
2797
  i,
2690
2798
  s,
2691
2799
  h
2692
- ]), d = Mt();
2693
- let f = z(Mo.Provider, {
2800
+ ]), d = Tt();
2801
+ let f = R(Ro.Provider, {
2694
2802
  value: u,
2695
2803
  children: c
2696
2804
  });
2697
- const p = l || !d, m = L(null);
2698
- p && null === m.current && (m.current = Eo());
2805
+ const p = l || !d, m = D(null);
2806
+ p && null === m.current && (m.current = $o());
2699
2807
  const g = p ? m.current : null;
2700
- g && (f = z(Ct, {
2808
+ g && (f = R(Et, {
2701
2809
  value: g,
2702
2810
  children: f
2703
2811
  }));
2704
2812
  const _ = (g ?? d).getRoot();
2705
- return S(() => {
2813
+ return C(() => {
2706
2814
  if (a) return "function" == typeof a ? (a(_), () => {
2707
2815
  a(null);
2708
2816
  }) : (a.current = _, () => {
2709
2817
  a.current = null;
2710
2818
  });
2711
2819
  }, [a, _]), f;
2712
- }, Wo = (e) => {
2713
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = qt(s ?? (() => {}), [s]), d = qt(l ?? (() => {}), [l]), f = ko(), p = h ?? f?.renderFloatPanel ?? Oo, m = void 0 === c ? f?.createPopupPanel ?? $o : c, g = Mt(), [_, v] = D(null), [y, b] = D(!1), [x, C] = D(!1), M = k(() => i ?? g ?? Eo(), []), E = k(() => M.getRoot(), []), A = k(() => ({ label: r }), []), P = L(null), R = L(t);
2714
- S(() => {
2715
- R.current = t;
2820
+ }, Jo = (e) => {
2821
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = en(s ?? (() => {}), [s]), d = en(l ?? (() => {}), [l]), f = Bo(), p = h ?? f?.renderFloatPanel ?? Zo, m = void 0 === c ? f?.createPopupPanel ?? Vo : c, g = Tt(), [_, v] = P(null), [y, b] = P(!1), [w, S] = P(!1), M = k(() => i ?? g ?? $o(), []), E = k(() => M.getRoot(), []), T = k(() => ({ label: r }), []), A = D(null), z = D(t);
2822
+ C(() => {
2823
+ z.current = t;
2716
2824
  }, [t]);
2717
2825
  const $ = (e) => {
2718
2826
  const t = E.floatByParents.get(e);
2719
2827
  let n = null;
2720
2828
  return t && (n = E.statesByMovables.get(t)?.close(0) ?? null), n;
2721
- }, B = () => $(Z.key), [H, I] = D(), N = () => {
2722
- if (!_) return K(), null;
2723
- const e = new Promise((e, t) => {
2724
- I((n) => ({
2725
- resolve: e,
2726
- reject: t
2727
- }));
2829
+ }, B = () => $(G.key), [I, H] = P(null), N = () => {
2830
+ if (!_) return V(), null;
2831
+ const e = new Promise((e) => {
2832
+ H((t) => [...t ?? [], { resolve: e }]);
2728
2833
  });
2729
2834
  return B(), E.floatByParents.delete(M.key), v(!1), e;
2730
2835
  };
2731
- S(() => {
2732
- H && (H.resolve(), I(null));
2836
+ C(() => {
2837
+ if (I) {
2838
+ for (const e of I) e.resolve();
2839
+ H(null);
2840
+ }
2733
2841
  }, [
2734
2842
  y,
2735
- x,
2736
- H
2843
+ w,
2844
+ I
2737
2845
  ]);
2738
- const O = w(() => {
2846
+ const O = x(() => {
2739
2847
  let e = M;
2740
2848
  for (; e.parent;) e = e.parent;
2741
2849
  return $(e.key);
2742
- }, []), F = () => {
2743
- if (_) return void K();
2850
+ }, []), F = D(null), W = () => {
2851
+ if (_) return void V();
2744
2852
  M && E.statesByMovables.get(M.key)?.open(0);
2745
2853
  const e = E.floatByParents.get(M.key);
2746
- e && e !== A && E.statesByMovables.get(e)?.close(0), requestAnimationFrame(() => {
2747
- E.floatByParents.set(M.key, Z.key), v(!0);
2854
+ e && e !== T && E.statesByMovables.get(e)?.close(0);
2855
+ const t = document.activeElement;
2856
+ t && t !== document.body && "function" == typeof t.focus && (F.current = t), requestAnimationFrame(() => {
2857
+ E.floatByParents.set(M.key, G.key), v(!0);
2748
2858
  });
2749
- }, [W, K] = T((e) => e + 1, 0), V = w((e) => null === m ? null : m({
2750
- closeFloat: Y,
2751
- closeFloatAll: q,
2859
+ }, [K, V] = L((e) => e + 1, 0), j = x((e) => null === m ? null : m({
2860
+ closeFloat: X,
2861
+ closeFloatAll: Z,
2752
2862
  ...e
2753
- }), [m]), j = null === m, U = qt((e = 120) => E.debounce(e, F, /* @__PURE__ */ new Set([Z]), !1)(), [F]), Y = qt((e = 60) => E.debounce(e, N, E.descendants(Z), !0)(), [N]), X = qt((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(Z)), !0)(), [B]), q = qt(O, [O]), Z = k(() => ({
2754
- key: A,
2863
+ }), [m]), Y = null === m, U = en((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = en((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = en((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = en(O, [O]), G = k(() => ({
2864
+ key: T,
2755
2865
  isRoot: !1,
2756
2866
  label: r,
2757
2867
  parent: M,
2758
2868
  onChildVisible: () => {
2759
- C(!0);
2869
+ S(!0);
2760
2870
  },
2761
2871
  onChildHidden: () => {
2762
- C(!1);
2872
+ S(!1);
2763
2873
  },
2764
2874
  open: U,
2765
- close: Y,
2766
- closeChild: X,
2767
- closeAll: q,
2875
+ close: X,
2876
+ closeChild: q,
2877
+ closeAll: Z,
2768
2878
  getRoot: () => E,
2769
- floatElement: () => P.current,
2770
- anchorElement: () => R.current
2879
+ floatElement: () => A.current,
2880
+ anchorElement: () => z.current
2771
2881
  }), []);
2772
- S(() => {
2773
- E.statesByMovables.set(A, Z);
2774
- }, [Z]), S(() => () => {
2775
- E.statesByMovables.delete(A), Y(0);
2776
- }, []), S(() => {
2777
- _ && !j && (b(!0), M.onChildVisible());
2778
- }, [_, j]);
2779
- const G = w((e) => {
2780
- e.which === J.Escape && (e.preventDefault(), e.stopPropagation(), Y(0));
2781
- }, []), Q = L(null), ee = w(() => {
2782
- const e = Q.current, t = P.current;
2882
+ C(() => {
2883
+ E.statesByMovables.set(T, G);
2884
+ }, [G]), C(() => () => {
2885
+ E.statesByMovables.delete(T), X(0);
2886
+ }, []), C(() => {
2887
+ _ && !Y && (b(!0), M.onChildVisible());
2888
+ }, [_, Y]);
2889
+ const J = x((e) => {
2890
+ e.which === Q.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
2891
+ }, []), ee = x(() => {
2892
+ const e = F.current, t = A.current;
2783
2893
  e && t && (requestAnimationFrame(() => {
2784
2894
  (t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
2785
- }), Q.current = null), d?.();
2786
- }, []), te = w((e) => {
2787
- P.current = e;
2788
- if (e.addEventListener("focus", (e) => {
2789
- Q.current = e.relatedTarget;
2895
+ }), F.current = null), d?.();
2896
+ }, []), te = x((e) => {
2897
+ A.current = e;
2898
+ if (e.addEventListener("focusin", (e) => {
2899
+ F.current || (F.current = e.relatedTarget);
2790
2900
  }, {
2791
2901
  once: !0,
2792
2902
  passive: !0
@@ -2795,13 +2905,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2795
2905
  requestAnimationFrame(() => {
2796
2906
  t === document.activeElement && e.focus();
2797
2907
  });
2798
- }, [n]), [ne, oe] = D();
2799
- S(() => {
2800
- j && (_ ? u?.() : !1 === _ && d?.()), oe(y ? z(Ct, {
2801
- value: Z,
2908
+ }, [n]), [ne, oe] = P();
2909
+ C(() => {
2910
+ Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? R(Et, {
2911
+ value: G,
2802
2912
  children: p({
2803
2913
  ...f?.propsFloatPanel,
2804
- floatReference: Z,
2914
+ floatReference: G,
2805
2915
  open: !0 === _,
2806
2916
  label: r,
2807
2917
  anchorEl: t,
@@ -2814,35 +2924,36 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2814
2924
  },
2815
2925
  onMount: te,
2816
2926
  propsPopper: {
2817
- onKeyDown: G,
2927
+ onKeyDown: J,
2818
2928
  onMouseEnter: (e) => {
2819
- _ && E.lastDebounced?.isClose && E.lastDebounced.setReferences.has(Z) && (E.lastDebounced.fn.clear(), E.lastDebounced = null, Z.closeChild());
2929
+ _ && E.lastDebounced?.isClose && E.lastDebounced.setReferences.has(G) && (E.lastDebounced.fn.clear(), E.lastDebounced = null, G.closeChild());
2820
2930
  },
2821
2931
  ...a
2822
2932
  },
2823
- createPopupPanel: V
2933
+ createPopupPanel: j
2824
2934
  })
2825
2935
  }) : null);
2826
2936
  }, [
2827
2937
  y,
2828
2938
  _,
2829
2939
  r,
2830
- j,
2940
+ Y,
2831
2941
  a,
2832
- V,
2942
+ j,
2833
2943
  p,
2834
2944
  f?.propsFloatPanel,
2835
- W
2945
+ K
2836
2946
  ]);
2837
- const re = qt((e) => {
2947
+ const re = en((e) => {
2838
2948
  if (0 === E.floatByParents.size) return;
2839
2949
  let t = !1;
2840
- E.floatByParents.forEach((n) => {
2841
- const o = E.statesByMovables.get(n);
2842
- t || o && (o.floatElement()?.contains?.(e.target) && (t = !0), o.anchorElement()?.contains?.(e.target) && (t = !0));
2950
+ const n = e.composedPath?.() ?? [], r = (t) => !!t && (n.length > 0 ? n.includes(t) : !!t.contains?.(e.target));
2951
+ E.floatByParents.forEach((e) => {
2952
+ const n = E.statesByMovables.get(e);
2953
+ t || n && (r(n.floatElement()) && (t = !0), r(n.anchorElement()) && (t = !0));
2843
2954
  }), t || "function" == typeof o && o(e.target) || O();
2844
2955
  }, [O, o]);
2845
- return S(() => {
2956
+ return C(() => {
2846
2957
  if (!_ || !M.isRoot || !0 === o) return;
2847
2958
  const e = (e) => {
2848
2959
  re(e);
@@ -2856,19 +2967,19 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2856
2967
  o
2857
2968
  ]), {
2858
2969
  component: ne,
2859
- reference: Z,
2970
+ reference: G,
2860
2971
  isOpen: !0 === _
2861
2972
  };
2862
- }, Ko = {}, Vo = (e) => {
2863
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Ko, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2864
- return z("div", {
2973
+ }, Qo = {}, er = (e) => {
2974
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Qo, ...c } = e, h = "row" === o, { style: u, className: d, ...f } = a;
2975
+ return R("div", {
2865
2976
  style: {
2866
2977
  ...n,
2867
2978
  position: "relative"
2868
2979
  },
2869
2980
  ...c,
2870
- children: z("div", {
2871
- className: F("hit-box", d),
2981
+ children: R("div", {
2982
+ className: W("hit-box", d),
2872
2983
  style: {
2873
2984
  left: (h ? -r : 0) + "px",
2874
2985
  width: `calc(100% + ${h ? r + i : 0}px)`,
@@ -2881,7 +2992,7 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2881
2992
  ...f
2882
2993
  })
2883
2994
  }, l);
2884
- }, jo = {}, Uo = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Yo = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Xo = (e, t) => {
2995
+ }, tr = {}, nr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, or = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, rr = (e, t) => {
2885
2996
  if (null == e) return null;
2886
2997
  const n = {
2887
2998
  percent: null,
@@ -2889,8 +3000,8 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2889
3000
  };
2890
3001
  let o = t;
2891
3002
  return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
2892
- }, qo = b(v((e, t) => {
2893
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = jo, propsPane: w = jo, propsPaneBefore: x = jo, propsPaneAfter: C = jo, renderResizer: M = Vo } = e;
3003
+ }, ir = w(v((e, t) => {
3004
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = tr, propsPane: w = tr, propsPaneBefore: x = tr, propsPaneAfter: S = tr, renderResizer: M = er } = e;
2894
3005
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
2895
3006
  const E = k(() => y(o) && y(n), [o, n]), T = k(() => {
2896
3007
  let e = null;
@@ -2899,21 +3010,21 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2899
3010
  return {
2900
3011
  fixedPaneOffset: e,
2901
3012
  isPercent: t,
2902
- minBefore: Xo(a, t),
2903
- maxBefore: Xo(c, t),
2904
- minAfter: Xo(h, t),
2905
- maxAfter: Xo(u, t)
3013
+ minBefore: rr(a, t),
3014
+ maxBefore: rr(c, t),
3015
+ minAfter: rr(h, t),
3016
+ maxAfter: rr(u, t)
2906
3017
  };
2907
3018
  }, [
2908
3019
  a,
2909
3020
  c,
2910
3021
  h,
2911
3022
  u
2912
- ]), A = qt(l ?? (() => {}), [l]), [P, $] = D(() => Xo(s, null === i));
2913
- S(() => {
2914
- $(Xo(s, null === i));
3023
+ ]), L = en(l ?? (() => {}), [l]), [A, z] = P(() => rr(s, null === i));
3024
+ C(() => {
3025
+ z(rr(s, null === i));
2915
3026
  }, [s, i]);
2916
- const [I, { width: N, height: O }] = B(), [W, { width: K, height: V }] = B(), j = "row" === r ? K : V, U = "row" === r ? N : O, Y = k(() => ((e, t, n, o) => {
3027
+ const [B, { width: N, height: O }] = I(), [F, { width: K, height: V }] = I(), j = "row" === r ? K : V, Y = "row" === r ? N : O, U = k(() => ((e, t, n, o) => {
2917
3028
  const r = [null, null], i = [null, null];
2918
3029
  if (e || (e = {
2919
3030
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -2921,13 +3032,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2921
3032
  }), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
2922
3033
  percents: i,
2923
3034
  pixels: r,
2924
- minBefore: Yo(o.minBefore, !0),
2925
- maxBefore: Yo(o.maxBefore, !0),
2926
- minAfter: Yo(o.minAfter),
2927
- maxAfter: Yo(o.maxAfter)
3035
+ minBefore: or(o.minBefore, !0),
3036
+ maxBefore: or(o.maxBefore, !0),
3037
+ minAfter: or(o.minAfter),
3038
+ maxAfter: or(o.maxAfter)
2928
3039
  };
2929
- let s = Uo(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Uo(o.minBefore, l, !0) ?? 0, c = Uo(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
2930
- h = (Uo(o.maxAfter, t, !1) ?? n) - n, u = Uo(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, Uo(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, Uo(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3040
+ let s = nr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = nr(o.minBefore, l, !0) ?? 0, c = nr(o.maxBefore, l, !0) ?? l, h = 0, u = 0, d = 0, f = l;
3041
+ h = (nr(o.maxAfter, t, !1) ?? n) - n, u = nr(o.minAfter, t, !1) ?? t, d = Math.max(a, h), f = Math.min(c, u), s = Math.max(d, Math.min(s, f)), u = Math.min(l - s, nr(o.maxAfter, l - s, !0) ?? l), h = Math.min(l - s, nr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
2931
3042
  const p = Math.max(0, Math.min(100, s / l * 100));
2932
3043
  return i[0] = p, i[1] = 100 - p, {
2933
3044
  percents: i,
@@ -2937,13 +3048,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2937
3048
  maxBefore: `${r[0]}px`,
2938
3049
  maxAfter: `${r[1]}px`
2939
3050
  };
2940
- })(P, U, j, T), [
3051
+ })(A, Y, j, T), [
2941
3052
  T,
2942
- P,
2943
- U,
3053
+ A,
3054
+ Y,
2944
3055
  j,
2945
3056
  r
2946
- ]), [X, q] = D(!1), Z = qt(g ?? (() => {}), [g]), G = qt(_ ?? (() => {}), [_]), J = qt(v ?? (() => {}), [v]), Q = L(null), ee = L(null), te = L(null), { style: ne, className: oe, ...re } = w, ie = {
3057
+ ]), [X, q] = P(!1), Z = en(g ?? (() => {}), [g]), G = en(_ ?? (() => {}), [_]), J = en(v ?? (() => {}), [v]), Q = D(null), ee = D(null), te = D(null), { style: ne, className: oe, ...re } = w, ie = {
2947
3058
  minWidth: 0,
2948
3059
  minHeight: 0,
2949
3060
  maxWidth: "100%",
@@ -2954,20 +3065,20 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2954
3065
  overflow: "hidden",
2955
3066
  position: "relative",
2956
3067
  ...ne
2957
- }, { className: se, style: le, ...ae } = x, { className: ce, style: he, ...ue } = C, de = {
3068
+ }, { className: se, style: le, ...ae } = x, { className: ce, style: he, ...ue } = S, de = {
2958
3069
  flex: "1 1 100%",
2959
3070
  width: "100%",
2960
3071
  ...p,
2961
3072
  flexDirection: r,
2962
3073
  display: "flex"
2963
- }, { className: fe, style: pe, onPointerDown: me, ...ge } = b, _e = qt((e) => {
2964
- const t = Xo(e, null === i);
2965
- $(t);
2966
- }, [i]), ve = qt((e) => {
3074
+ }, { className: fe, style: pe, onPointerDown: me, ...ge } = b, _e = en((e) => {
3075
+ const t = rr(e, null === i);
3076
+ z(t);
3077
+ }, [i]), ve = en((e) => {
2967
3078
  if (m || !X) return;
2968
3079
  const t = we.current?.getBoundingClientRect();
2969
3080
  let n = 0;
2970
- n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(U, n)), 1 === T.fixedPaneOffset && (n = U - n), s && P?.pixels === n || $({
3081
+ n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(Y, n)), 1 === T.fixedPaneOffset && (n = Y - n), s && A?.pixels === n || z({
2971
3082
  pixels: n,
2972
3083
  percent: null
2973
3084
  }), G?.(n), e.stopPropagation(), e.preventDefault();
@@ -2976,34 +3087,34 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
2976
3087
  r,
2977
3088
  m,
2978
3089
  X,
2979
- P,
2980
- U
2981
- ]), ye = qt((e) => {
2982
- if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), P)) {
2983
- if (J(P.pixels ?? 0), !Xo(s, null === i) || P.pixels !== s) {
2984
- const e = P.pixels ?? 0, t = {
3090
+ A,
3091
+ Y
3092
+ ]), ye = en((e) => {
3093
+ if (document.removeEventListener("pointermove", ve), document.removeEventListener("touchmove", ve), document.removeEventListener("pointerup", ye), X && (q(!1), A)) {
3094
+ if (J(A.pixels ?? 0), !rr(s, null === i) || A.pixels !== s) {
3095
+ const e = A.pixels ?? 0, t = {
2985
3096
  pixels: e,
2986
- percent: P.percent ?? e / U * 100
3097
+ percent: A.percent ?? e / Y * 100
2987
3098
  };
2988
- A(t);
3099
+ L(t);
2989
3100
  }
2990
3101
  e.stopPropagation(), e.preventDefault();
2991
3102
  }
2992
3103
  }, [
2993
- P,
3104
+ A,
2994
3105
  X,
2995
3106
  s,
2996
3107
  i,
2997
- U
2998
- ]), be = qt((e) => {
3108
+ Y
3109
+ ]), be = en((e) => {
2999
3110
  me?.(e), e.defaultPrevented || m || X || (q(!0), Z(), document.addEventListener("pointermove", ve, { passive: !1 }), document.addEventListener("touchmove", ve, { passive: !1 }), document.addEventListener("pointerup", ye, { passive: !1 }));
3000
- }, [me]), we = Yn(t, () => ({
3111
+ }, [me]), we = no(t, () => ({
3001
3112
  setPosition: _e,
3002
3113
  isSplitPane: () => !0
3003
3114
  }), []), xe = k(() => E ? M?.({
3004
3115
  key: "resizer",
3005
- ref: H([W, ee]),
3006
- className: F("resizer", fe),
3116
+ ref: H([F, ee]),
3117
+ className: W("resizer", fe),
3007
3118
  onPointerDownCapture: be,
3008
3119
  style: {
3009
3120
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3029,13 +3140,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3029
3140
  const e = {
3030
3141
  ...ie,
3031
3142
  ...le,
3032
- flex: 0 === T.fixedPaneOffset && null !== Y?.pixels[0] ? `0 0 ${Math.round(Y?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[0] ?? 100)}%`,
3033
- [`min${Se}`]: Y?.minBefore,
3034
- [`max${Se}`]: o ? Y?.maxBefore : "100%"
3143
+ flex: 0 === T.fixedPaneOffset && null !== U?.pixels[0] ? `0 0 ${Math.round(U?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(U?.percents[0] ?? 100)}%`,
3144
+ [`min${Se}`]: U?.minBefore,
3145
+ [`max${Se}`]: o ? U?.maxBefore : "100%"
3035
3146
  };
3036
- return z("div", {
3147
+ return R("div", {
3037
3148
  ref: Q,
3038
- className: F("before", oe, se),
3149
+ className: W("before", oe, se),
3039
3150
  style: e,
3040
3151
  ...re,
3041
3152
  ...ae,
@@ -3046,19 +3157,19 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3046
3157
  w,
3047
3158
  x,
3048
3159
  T,
3049
- Y
3160
+ U
3050
3161
  ]), Me = k(() => {
3051
3162
  if (!o) return null;
3052
3163
  const e = {
3053
3164
  ...ie,
3054
3165
  ...he,
3055
- flex: 1 === T.fixedPaneOffset && null !== Y?.pixels[1] ? `0 0 ${Math.round(Y?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[1] ?? 100)}%`,
3056
- [`min${Se}`]: Y?.minAfter,
3057
- [`max${Se}`]: n ? Y?.maxAfter : "100%"
3166
+ flex: 1 === T.fixedPaneOffset && null !== U?.pixels[1] ? `0 0 ${Math.round(U?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(U?.percents[1] ?? 100)}%`,
3167
+ [`min${Se}`]: U?.minAfter,
3168
+ [`max${Se}`]: n ? U?.maxAfter : "100%"
3058
3169
  };
3059
- return z("div", {
3170
+ return R("div", {
3060
3171
  ref: te,
3061
- className: F("after", oe, ce),
3172
+ className: W("after", oe, ce),
3062
3173
  style: e,
3063
3174
  ...re,
3064
3175
  ...ue,
@@ -3067,13 +3178,13 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3067
3178
  }, [
3068
3179
  o,
3069
3180
  w,
3070
- C,
3181
+ S,
3071
3182
  T,
3072
- Y
3183
+ U
3073
3184
  ]);
3074
- return R("div", {
3075
- ref: H([I, we]),
3076
- className: F("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3185
+ return $("div", {
3186
+ ref: H([B, we]),
3187
+ className: W("splitPane", "row" === r ? "vertical" : "horizontal", { dragging: X }, f),
3077
3188
  style: de,
3078
3189
  children: [
3079
3190
  Ce,
@@ -3082,7 +3193,7 @@ var Oo = (e) => z(Ho, { ...e }), Fo = (e) => {
3082
3193
  ]
3083
3194
  });
3084
3195
  }));
3085
- function Zo(e) {
3196
+ function sr(e) {
3086
3197
  if ("function" == typeof e) return e;
3087
3198
  if ("string" == typeof e) {
3088
3199
  const t = e.trim();
@@ -3115,12 +3226,12 @@ function Zo(e) {
3115
3226
  return null;
3116
3227
  }
3117
3228
  }(t);
3118
- if (e) return Qo(e);
3229
+ if (e) return cr(e);
3119
3230
  }
3120
3231
  if (t.startsWith("<")) {
3121
- if (/^<\s*svg\b/i.test(t)) return Qo(t);
3232
+ if (/^<\s*svg\b/i.test(t)) return cr(t);
3122
3233
  if (/^<\s*path\b/i.test(t)) {
3123
- const e = Go(t);
3234
+ const e = lr(t);
3124
3235
  if (e) return { paths: [{ d: e }] };
3125
3236
  }
3126
3237
  return { paths: [{ d: t }] };
@@ -3132,7 +3243,7 @@ function Zo(e) {
3132
3243
  for (const n of e) if ("string" == typeof n) {
3133
3244
  const e = String(n).trim();
3134
3245
  if (e.startsWith("<path")) {
3135
- const n = Go(e);
3246
+ const n = lr(e);
3136
3247
  n && t.push({ d: n });
3137
3248
  } else t.push({ d: e });
3138
3249
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3140,14 +3251,14 @@ function Zo(e) {
3140
3251
  }
3141
3252
  return e;
3142
3253
  }
3143
- function Go(e) {
3254
+ function lr(e) {
3144
3255
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3145
3256
  return t ? t[1] ?? t[2] ?? null : null;
3146
3257
  }
3147
- function Jo(e) {
3258
+ function ar(e) {
3148
3259
  if ("svg" in e) return {
3149
3260
  ...e,
3150
- svg: Zo(e.svg)
3261
+ svg: sr(e.svg)
3151
3262
  };
3152
3263
  if ("url" in e) {
3153
3264
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3165,7 +3276,7 @@ function Jo(e) {
3165
3276
  }
3166
3277
  return e;
3167
3278
  }
3168
- function Qo(e) {
3279
+ function cr(e) {
3169
3280
  try {
3170
3281
  if ("undefined" != typeof DOMParser) {
3171
3282
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3198,9 +3309,9 @@ function Qo(e) {
3198
3309
  paths: o
3199
3310
  };
3200
3311
  }
3201
- function er(e) {
3312
+ function hr(e) {
3202
3313
  const t = {};
3203
- for (const [n, o] of Object.entries(e.icons)) t[n] = Jo(o);
3314
+ for (const [n, o] of Object.entries(e.icons)) t[n] = ar(o);
3204
3315
  const n = {
3205
3316
  label: e.meta?.label ?? "Unnamed",
3206
3317
  version: e.meta?.version ?? "1.0.0",
@@ -3217,14 +3328,14 @@ function er(e) {
3217
3328
  const e = {};
3218
3329
  for (const [t, n] of Object.entries(r)) {
3219
3330
  const o = {};
3220
- for (const [e, t] of Object.entries(n)) o[e] = Jo(t);
3331
+ for (const [e, t] of Object.entries(n)) o[e] = ar(t);
3221
3332
  e[t] = o;
3222
3333
  }
3223
3334
  o.__overrides = e;
3224
3335
  }
3225
3336
  return o;
3226
3337
  }
3227
- function tr() {
3338
+ function ur() {
3228
3339
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3229
3340
  let n = "base", o = /* @__PURE__ */ new Map();
3230
3341
  async function r(t) {
@@ -3235,7 +3346,7 @@ function tr() {
3235
3346
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3236
3347
  o.loading = o.loader().then((e) => {
3237
3348
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3238
- o.pack = er(t);
3349
+ o.pack = hr(t);
3239
3350
  }).catch((e) => {
3240
3351
  throw o.loading = void 0, e;
3241
3352
  });
@@ -3290,7 +3401,7 @@ function tr() {
3290
3401
  return {
3291
3402
  register: function(t, o) {
3292
3403
  const r = e.get(t) ?? {};
3293
- "function" == typeof o ? r.loader = o : r.pack = er(o), e.set(t, r), n || (n = t);
3404
+ "function" == typeof o ? r.loader = o : r.pack = hr(o), e.set(t, r), n || (n = t);
3294
3405
  },
3295
3406
  prefetch: async function(e = n) {
3296
3407
  const t = Array.isArray(e) ? e : [e];
@@ -3353,25 +3464,25 @@ function tr() {
3353
3464
  }
3354
3465
  };
3355
3466
  }
3356
- qo.displayName = "SplitPane";
3357
- var nr = tr();
3358
- nr.register("base", () => import("./DE0Lw6aGWWnFHy-j.mjs")), nr.register("cf", () => import("./CAC_eUuPPsAz7M27.mjs"));
3359
- var or = (e) => z("svg", {
3467
+ ir.displayName = "SplitPane";
3468
+ var dr = ur();
3469
+ dr.register("base", () => import("./ErznqJafEjYJ3e0H.mjs")), dr.register("cf", () => import("./ab6S2ZLIze6opqOt.mjs"));
3470
+ var fr = (e) => R("svg", {
3360
3471
  ...e,
3361
- children: z("path", {})
3362
- }), rr = {
3472
+ children: R("path", {})
3473
+ }), pr = {
3363
3474
  Icon: "_Icon_16f7r_10",
3364
3475
  "sxl-walk": "_sxl-walk_16f7r_1"
3365
- }, ir = b((t) => {
3366
- const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = D(null);
3367
- S(() => {
3476
+ }, mr = w((t) => {
3477
+ const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: h, children: u, ...d } = t, [f, p] = P(null);
3478
+ C(() => {
3368
3479
  let t = !0, r = o, i = n;
3369
3480
  if (!i) {
3370
- const t = nr.getPack(r);
3481
+ const t = dr.getPack(r);
3371
3482
  p({
3372
3483
  glyph: t ? { svg: e.EmptyArray } : void 0,
3373
3484
  pack: t ?? void 0,
3374
- packKey: r ?? nr.getActive()
3485
+ packKey: r ?? dr.getActive()
3375
3486
  });
3376
3487
  return;
3377
3488
  }
@@ -3379,24 +3490,24 @@ var or = (e) => z("svg", {
3379
3490
  const [e, t] = i.split(":");
3380
3491
  r = e, i = t;
3381
3492
  }
3382
- return nr.resolve(i, { packKey: r }).then((e) => {
3493
+ return dr.resolve(i, { packKey: r }).then((e) => {
3383
3494
  t && p(e);
3384
- }), () => {
3495
+ }).catch(() => {}), () => {
3385
3496
  t = !1;
3386
3497
  };
3387
3498
  }, [n, o]);
3388
3499
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3389
3500
  let v = g ? g.svg : void 0;
3390
3501
  const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = k(() => [
3391
- rr.Icon,
3502
+ pr.Icon,
3392
3503
  "icon",
3393
3504
  r
3394
- ].filter(Boolean).join(" "), [r]), C = k(() => {
3505
+ ].filter(Boolean).join(" "), [r]), S = k(() => {
3395
3506
  const e = { ...i };
3396
3507
  return e["--icon-size"] = w, e;
3397
- }, [i, w]), M = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => z("span", {
3508
+ }, [i, w]), M = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), T = (e) => R("span", {
3398
3509
  className: x,
3399
- style: C,
3510
+ style: S,
3400
3511
  role: M,
3401
3512
  "aria-hidden": E,
3402
3513
  title: l,
@@ -3406,16 +3517,16 @@ var or = (e) => z("svg", {
3406
3517
  children: e
3407
3518
  });
3408
3519
  if (u) return T(u);
3409
- if (b) return T(z("span", { children: "string" == typeof b ? b : b.text }));
3410
- if (y) return T(z("img", {
3520
+ if (b) return T(R("span", { children: "string" == typeof b ? b : b.text }));
3521
+ if (y) return T(R("img", {
3411
3522
  src: y.src,
3412
3523
  alt: l ?? ""
3413
3524
  }));
3414
3525
  if (g && "react" in g) {
3415
3526
  const e = g.react;
3416
- return T(z(e, {
3527
+ return T(R(e, {
3417
3528
  className: x,
3418
- style: C,
3529
+ style: S,
3419
3530
  role: M,
3420
3531
  "aria-hidden": E,
3421
3532
  title: l,
@@ -3424,12 +3535,12 @@ var or = (e) => z("svg", {
3424
3535
  }));
3425
3536
  }
3426
3537
  const L = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3427
- if ("function" == typeof v) return T(v(L) ?? z(or, { ...L }));
3428
- if (!v) return T(z(or, { ...L }));
3429
- const A = v.paths;
3430
- return T(z("svg", {
3538
+ if ("function" == typeof v) return T(v(L) ?? R(fr, { ...L }));
3539
+ if (!v) return T(R(fr, { ...L }));
3540
+ const D = v.paths;
3541
+ return T(R("svg", {
3431
3542
  ...L,
3432
- children: A ? A.map((e, t) => z("path", {
3543
+ children: D ? D.map((e, t) => R("path", {
3433
3544
  d: e.d,
3434
3545
  className: e.className,
3435
3546
  fill: e.fill,
@@ -3440,7 +3551,7 @@ var or = (e) => z("svg", {
3440
3551
  }, t)) : null
3441
3552
  }));
3442
3553
  });
3443
- function sr(e) {
3554
+ function gr(e) {
3444
3555
  const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...h } = e, u = k(() => {
3445
3556
  if (!t) return;
3446
3557
  const e = {
@@ -3456,7 +3567,7 @@ function sr(e) {
3456
3567
  i,
3457
3568
  n
3458
3569
  ]);
3459
- return z(ir, {
3570
+ return R(mr, {
3460
3571
  iconKey: s,
3461
3572
  packKey: l,
3462
3573
  className: k(() => t ? c + " walking" : c, [t, c]),
@@ -3467,7 +3578,7 @@ function sr(e) {
3467
3578
  ...h
3468
3579
  });
3469
3580
  }
3470
- var lr = class {
3581
+ var _r = class {
3471
3582
  constructor() {
3472
3583
  this.store = /* @__PURE__ */ new Map();
3473
3584
  }
@@ -3480,34 +3591,34 @@ var lr = class {
3480
3591
  removeItem(e) {
3481
3592
  this.store.delete(e);
3482
3593
  }
3483
- }, ar = g(null), cr = {
3594
+ }, vr = g(null), yr = {
3484
3595
  parse: (e) => e ? JSON.parse(e) : null,
3485
3596
  stringify: JSON.stringify
3486
- }, hr = /* @__PURE__ */ new Map(), ur = {
3487
- store: new lr(),
3597
+ }, br = /* @__PURE__ */ new Map(), wr = {
3598
+ store: new _r(),
3488
3599
  namespace: "",
3489
- serializer: cr,
3600
+ serializer: yr,
3490
3601
  onReady: (e) => {
3491
3602
  e();
3492
3603
  },
3493
3604
  debounceMs: 0,
3494
3605
  notify: (e, t) => {
3495
- const n = hr.get(e);
3606
+ const n = br.get(e);
3496
3607
  n && n.forEach((e) => e(t));
3497
3608
  },
3498
3609
  subscribeKey: (e, t) => {
3499
- const n = hr.get(e) ?? /* @__PURE__ */ new Set();
3500
- return n.add(t), hr.set(e, n), () => {
3501
- const n = hr.get(e);
3502
- n && (n.delete(t), 0 === n.size && hr.delete(e));
3610
+ const n = br.get(e) ?? /* @__PURE__ */ new Set();
3611
+ return n.add(t), br.set(e, n), () => {
3612
+ const n = br.get(e);
3613
+ n && (n.delete(t), 0 === n.size && br.delete(e));
3503
3614
  };
3504
3615
  }
3505
3616
  };
3506
- function dr(e, t, n = fr) {
3507
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = x(ar) || ur, c = n.serializer ?? i ?? cr, h = L(null), u = k(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3617
+ function xr(e, t, n = Sr) {
3618
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = S(vr) || wr, c = n.serializer ?? i ?? yr, h = D(null), u = k(() => null == e ? null : `${r}:${e}`, [r, e]), d = u ? `${u}::v` : null, f = () => {
3508
3619
  const e = t;
3509
3620
  return "function" == typeof e ? e() : e;
3510
- }, [p, m] = D(() => {
3621
+ }, [p, m] = P(() => {
3511
3622
  if (null == u) return f();
3512
3623
  let e, t = o.getItem(u);
3513
3624
  if (null == t) return f();
@@ -3517,14 +3628,17 @@ function dr(e, t, n = fr) {
3517
3628
  e = f();
3518
3629
  }
3519
3630
  return e;
3520
- }), g = L(p);
3521
- g.current = p, S(() => {
3631
+ }), g = D(p);
3632
+ g.current = p;
3633
+ const _ = D(!1);
3634
+ C(() => {
3522
3635
  null == u && m(f());
3523
- }, [u]), S(() => {
3636
+ }, [u]), C(() => {
3524
3637
  if (null == u) return;
3525
3638
  let e = !0;
3526
- return (async () => {
3639
+ return _.current = !1, (async () => {
3527
3640
  const [r, i] = await Promise.all([o.getItem(u), d ? o.getItem(d) : Promise.resolve(null)]);
3641
+ if (!e || _.current) return;
3528
3642
  let s;
3529
3643
  try {
3530
3644
  s = null == r ? void 0 : c.parse(r);
@@ -3542,7 +3656,7 @@ function dr(e, t, n = fr) {
3542
3656
  n.migrate,
3543
3657
  n.lazy,
3544
3658
  c
3545
- ]), S(() => {
3659
+ ]), C(() => {
3546
3660
  if (null != u && null != e) return l(e, (e) => {
3547
3661
  const t = void 0 !== e ? e : o.getItem(u);
3548
3662
  if (null != t) try {
@@ -3556,29 +3670,29 @@ function dr(e, t, n = fr) {
3556
3670
  e,
3557
3671
  c
3558
3672
  ]);
3559
- const _ = (e) => {
3673
+ const v = (e) => {
3560
3674
  null != u && (o.setItem(u, c.stringify(e)), null != n.version && d && o.setItem(d, String(n.version)));
3561
3675
  };
3562
- return S(() => () => {
3676
+ return C(() => () => {
3563
3677
  h.current && clearTimeout(h.current);
3564
3678
  }, []), [
3565
3679
  p,
3566
3680
  (t) => {
3567
3681
  const n = "function" == typeof t ? t(g.current) : t;
3568
- g.current = n, m(n), h.current && clearTimeout(h.current), s > 0 ? h.current = setTimeout(() => {
3569
- _(n);
3570
- }, s) : _(n), null != e && a(e, c.stringify(n));
3682
+ _.current = !0, g.current = n, m(n), h.current && clearTimeout(h.current), s > 0 ? h.current = setTimeout(() => {
3683
+ v(n);
3684
+ }, s) : v(n), null != e && a(e, c.stringify(n));
3571
3685
  },
3572
3686
  () => {
3573
- h.current && clearTimeout(h.current), null != u && (o.removeItem(u), null != d && o.removeItem(d));
3687
+ _.current = !0, h.current && clearTimeout(h.current), null != u && (o.removeItem(u), null != d && o.removeItem(d));
3574
3688
  const e = void 0 !== t ? f() : void 0;
3575
3689
  m(e);
3576
3690
  }
3577
3691
  ];
3578
3692
  }
3579
- var fr = {};
3580
- function pr(e) {
3581
- const { store: t, namespace: n = "", serializer: o = mr, debounceMs: r = 150, children: i } = e, s = k(() => "undefined" == typeof window ? new lr() : t ?? new lr(), [t]), l = L(/* @__PURE__ */ new Map()), a = k(() => ({
3693
+ var Sr = {};
3694
+ function Cr(e) {
3695
+ const { store: t, namespace: n = "", serializer: o = Mr, debounceMs: r = 150, children: i } = e, s = k(() => "undefined" == typeof window ? new _r() : t ?? new _r(), [t]), l = D(/* @__PURE__ */ new Map()), a = k(() => ({
3582
3696
  store: s,
3583
3697
  namespace: n,
3584
3698
  serializer: o,
@@ -3603,21 +3717,21 @@ function pr(e) {
3603
3717
  o,
3604
3718
  r
3605
3719
  ]);
3606
- return S(() => {
3720
+ return C(() => {
3607
3721
  if (a.store.subscribe) return a.store.subscribe((e) => {
3608
3722
  if (!e.startsWith(a.namespace + ":")) return;
3609
3723
  const t = e.slice(a.namespace.length + 1);
3610
3724
  a.notify(t);
3611
3725
  });
3612
- }, [a]), z(ar.Provider, {
3726
+ }, [a]), R(vr.Provider, {
3613
3727
  value: a,
3614
3728
  children: i
3615
3729
  });
3616
3730
  }
3617
- var mr = {
3731
+ var Mr = {
3618
3732
  parse: (e) => null == e ? null : JSON.parse(e),
3619
3733
  stringify: JSON.stringify
3620
- }, gr = class {
3734
+ }, Er = class {
3621
3735
  constructor(e = window.localStorage) {
3622
3736
  this.storage = e;
3623
3737
  }
@@ -3644,41 +3758,41 @@ var mr = {
3644
3758
  };
3645
3759
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
3646
3760
  }
3647
- }, _r = {
3761
+ }, Tr = {
3648
3762
  Horizontal: "horizontal",
3649
3763
  Vertical: "vertical"
3650
- }, vr = "_scrollbar_14aps_24", yr = "_track_14aps_35", br = "_thumb_14aps_47", wr = "_scrollbar-button_14aps_96", xr = "_touch-thumb_14aps_131", Sr = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Cr = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Mr = { transform: "rotate(180deg)" }, Er = (e) => {
3651
- const { style: t, orientation: n = _r.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === _r.Vertical ? Sr : Cr;
3652
- return z("button", {
3764
+ }, kr = "_scrollbar_14aps_24", Lr = "_track_14aps_35", Dr = "_thumb_14aps_47", Pr = "_scrollbar-button_14aps_96", Ar = "_touch-thumb_14aps_131", zr = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Rr = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", $r = { transform: "rotate(180deg)" }, Br = (e) => {
3765
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3766
+ return R("button", {
3653
3767
  style: t,
3654
- className: F(wr, n, "scroll-button"),
3768
+ className: W(Pr, n, "scroll-button"),
3655
3769
  disabled: r,
3656
3770
  ...i,
3657
- children: z("svg", {
3771
+ children: R("svg", {
3658
3772
  width: "9",
3659
3773
  height: "9",
3660
3774
  viewBox: "0 0 9 9",
3661
- children: z("path", { d: s })
3775
+ children: R("path", { d: s })
3662
3776
  })
3663
3777
  });
3664
- }, kr = (e) => {
3665
- const { style: t, orientation: n = _r.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === _r.Vertical ? Sr : Cr;
3666
- return z("button", {
3778
+ }, Ir = (e) => {
3779
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === Tr.Vertical ? zr : Rr;
3780
+ return R("button", {
3667
3781
  style: t,
3668
- className: F(wr, n, "scroll-button"),
3782
+ className: W(Pr, n, "scroll-button"),
3669
3783
  disabled: r,
3670
3784
  ...i,
3671
- children: z("svg", {
3785
+ children: R("svg", {
3672
3786
  width: "9",
3673
3787
  height: "9",
3674
3788
  viewBox: "0 0 9 9",
3675
- style: Mr,
3676
- children: z("path", { d: s })
3789
+ style: $r,
3790
+ children: R("path", { d: s })
3677
3791
  })
3678
3792
  });
3679
- }, Tr = (e) => {
3680
- const { style: t, orientation: n = _r.Vertical, isBefore: o, ...r } = e, i = n === _r.Vertical;
3681
- return z("div", {
3793
+ }, Hr = (e) => {
3794
+ const { style: t, orientation: n = Tr.Vertical, isBefore: o, ...r } = e, i = n === Tr.Vertical;
3795
+ return R("div", {
3682
3796
  style: {
3683
3797
  display: "flex",
3684
3798
  justifyContent: "center",
@@ -3691,7 +3805,7 @@ var mr = {
3691
3805
  },
3692
3806
  className: `scrollbar-button ${i ? "vertical" : "horizontal"} edge`,
3693
3807
  ...r,
3694
- children: z(ir, {
3808
+ children: R(mr, {
3695
3809
  style: {
3696
3810
  transition: "opacity 240ms ease 0s",
3697
3811
  opacity: e.disabled ? 0 : 1,
@@ -3701,7 +3815,7 @@ var mr = {
3701
3815
  iconKey: "MoreHorizontal"
3702
3816
  })
3703
3817
  });
3704
- }, Lr = 60, Dr = 260, Ar = 120, Pr = (e) => {
3818
+ }, Nr = 60, Or = 260, Fr = 120, Wr = (e) => {
3705
3819
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
3706
3820
  let c = null, h = null, u = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
3707
3821
  const v = () => {
@@ -3751,10 +3865,10 @@ var mr = {
3751
3865
  },
3752
3866
  dispose: () => v()
3753
3867
  };
3754
- }, zr = (e) => {
3755
- const [t, n] = D(null), o = L(e);
3868
+ }, Kr = (e) => {
3869
+ const [t, n] = P(null), o = D(e);
3756
3870
  o.current = e;
3757
- const r = k(() => Pr({
3871
+ const r = k(() => Wr({
3758
3872
  vertical: o.current.vertical,
3759
3873
  getTrackRect: () => o.current.getTrackRect(),
3760
3874
  getThumb: () => o.current.getThumb(),
@@ -3764,26 +3878,26 @@ var mr = {
3764
3878
  pageInitialDelayMs: o.current.pageInitialDelayMs,
3765
3879
  pageRepeatDelayMs: o.current.pageRepeatDelayMs
3766
3880
  }), [e.vertical]);
3767
- return S(() => () => r.dispose(), [r]), {
3881
+ return C(() => () => r.dispose(), [r]), {
3768
3882
  onPointerDown: r.onPointerDown,
3769
3883
  onPointerMove: r.onPointerMove,
3770
3884
  onPointerUp: r.onPointerUp,
3771
3885
  dragMode: t
3772
3886
  };
3773
- }, Rr = 22, $r = 1.8, Br = 8, Hr = 4, Ir = 8, Nr = -2, Or = (e = 22) => e / 2 + 8, Fr = (e = 22) => e + 16, Wr = g(null), Kr = (e) => {
3887
+ }, Vr = 22, jr = 1.8, Yr = 8, Ur = 4, Xr = 8, qr = -2, Zr = (e = 22) => e / 2 + 8, Gr = (e = 22) => e + 16, Jr = g(null), Qr = (e) => {
3774
3888
  const { value: t, children: n } = e;
3775
- return z(Wr.Provider, {
3889
+ return R(Jr.Provider, {
3776
3890
  value: t,
3777
3891
  children: n
3778
3892
  });
3779
- }, Vr = () => x(Wr), jr = Ne().supportsTouchEvents, Ur = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Yr = b(v((e, t) => {
3780
- const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = _r.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3781
- if (!jr) return null;
3782
- const _ = c === _r.Vertical, v = Vr(), y = qt(u ?? (() => {}), [u]), b = qt(d ?? (() => {}), [d]), w = qt(f ?? (() => {}), [f]), x = L(null), C = k(() => H([x, t]), [t]), M = qt((e) => ({
3893
+ }, ei = () => S(Jr), ti = Fe().supportsTouchEvents, ni = (e) => e < 0 ? 0 : e > 1 ? 1 : e, oi = w(v((e, t) => {
3894
+ const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = Tr.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
3895
+ if (!ti) return null;
3896
+ const _ = c === Tr.Vertical, v = ei(), y = en(u ?? (() => {}), [u]), b = en(d ?? (() => {}), [d]), w = en(f ?? (() => {}), [f]), x = D(null), S = k(() => H([x, t]), [t]), M = en((e) => ({
3783
3897
  dragging: e,
3784
3898
  element: x.current,
3785
3899
  source: "touch"
3786
- }), []), [E, T] = D(!1), A = L({
3900
+ }), []), [E, T] = P(!1), L = D({
3787
3901
  isVertical: _,
3788
3902
  travel: 0,
3789
3903
  startAlong: 0,
@@ -3797,12 +3911,12 @@ var mr = {
3797
3911
  count: 0,
3798
3912
  timer: null
3799
3913
  });
3800
- A.current.isVertical = _, A.current.fraction = Ur(h), A.current.hasEdgeHold = !!d;
3801
- const P = qt(() => {
3802
- const e = A.current;
3914
+ L.current.isVertical = _, L.current.fraction = ni(h), L.current.hasEdgeHold = !!d;
3915
+ const A = en(() => {
3916
+ const e = L.current;
3803
3917
  e.timer && clearTimeout(e.timer), e.timer = null;
3804
- }, []), R = qt(() => {
3805
- const e = A.current;
3918
+ }, []), z = en(() => {
3919
+ const e = L.current;
3806
3920
  if (e.timer = null, !e.edge || !e.dragging) return;
3807
3921
  e.count++;
3808
3922
  const t = Math.max(0, e.edge > 0 ? e.rawFraction - 1 : -e.rawFraction) * e.travel;
@@ -3810,44 +3924,44 @@ var mr = {
3810
3924
  count: e.count,
3811
3925
  heldMs: Date.now() - e.engagedAt,
3812
3926
  overshootPx: t
3813
- }) && (e.timer = setTimeout(R, 60));
3814
- }, []), $ = qt(() => {
3815
- const e = A.current;
3927
+ }) && (e.timer = setTimeout(z, 60));
3928
+ }, []), $ = en(() => {
3929
+ const e = L.current;
3816
3930
  if (!e.hasEdgeHold) return;
3817
3931
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
3818
- t !== e.edge && (e.edge = t, P(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(R, 60)));
3819
- }, []), B = un(k(() => ({
3932
+ t !== e.edge && (e.edge = t, A(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(z, 60)));
3933
+ }, []), B = bn(k(() => ({
3820
3934
  processTouch: !0,
3821
3935
  consumeTouch: !0,
3822
3936
  onPointerDown: (e, t) => {
3823
- const n = A.current;
3937
+ const n = L.current;
3824
3938
  n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, T(!0), w?.(M(!0)), e.preventDefault(), e.stopPropagation();
3825
3939
  },
3826
3940
  onPointerMoveOrWait: (e) => {
3827
- const t = A.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3828
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Ur(t.rawFraction)), $();
3941
+ const t = L.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
3942
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ni(t.rawFraction)), $();
3829
3943
  },
3830
3944
  onPointerUp: (e) => {
3831
- const t = A.current;
3832
- t.edge = 0, t.dragging = !1, P(), T(!1), w?.(M(!1)), e.preventDefault(), e.stopPropagation();
3945
+ const t = L.current;
3946
+ t.edge = 0, t.dragging = !1, A(), T(!1), w?.(M(!1)), e.preventDefault(), e.stopPropagation();
3833
3947
  }
3834
3948
  }), []));
3835
- if (S(() => () => {
3836
- const e = A.current;
3949
+ if (C(() => () => {
3950
+ const e = L.current;
3837
3951
  e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(M(!1)));
3838
3952
  }, []), !v?.portalTarget) return null;
3839
- const I = 1.8 * s, O = _ ? s : I, W = _ ? I : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), U = _ ? v.reserveVertical : v.reserveHorizontal, Y = U > 0 ? -2 : 4, X = Math.max(0, K - U - I - 4 - Y);
3840
- A.current.travel = X;
3841
- const q = j + 4 + I / 2 + Ur(h) * X;
3953
+ const I = 1.8 * s, N = _ ? s : I, F = _ ? I : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, U = Y > 0 ? -2 : 4, X = Math.max(0, K - Y - I - 4 - U);
3954
+ L.current.travel = X;
3955
+ const q = j + 4 + I / 2 + ni(h) * X;
3842
3956
  let Z, G;
3843
- return _ ? (Z = v.width - v.crossInset - O / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, Z = q - O / 2), N(z("div", {
3844
- className: F("touch-thumb", xr, a, { dragging: E }),
3845
- ref: C,
3957
+ return _ ? (Z = v.width - v.crossInset - N / 2, G = q - F / 2) : (G = v.height - v.crossInset - F / 2, Z = q - N / 2), O(R("div", {
3958
+ className: W("touch-thumb", Ar, a, { dragging: E }),
3959
+ ref: S,
3846
3960
  style: {
3847
3961
  left: Z,
3848
3962
  top: G,
3849
- width: O,
3850
- height: W,
3963
+ width: N,
3964
+ height: F,
3851
3965
  zIndex: 20,
3852
3966
  borderWidth: `${i}px`,
3853
3967
  boxShadow: E ? `${o} 0px 0px 0px 1.5px` : void 0,
@@ -3866,22 +3980,22 @@ var mr = {
3866
3980
  ...g
3867
3981
  }), v.portalTarget, m);
3868
3982
  }));
3869
- Yr.displayName = "TouchThumbHandle";
3870
- var Xr = 24, qr = b(v((e, t) => {
3871
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = _r.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = Xr, maxThumbSize: m, renderScrollButtonStart: g = Er, renderScrollButtonEnd: _ = kr, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: C, ...M } = e, E = "touch" === Ne().primaryInput, T = h ?? !E;
3872
- qt(c ?? (() => {}), [c]);
3873
- const [A, $] = D({
3983
+ oi.displayName = "TouchThumbHandle";
3984
+ var ri = 24, ii = w(v((e, t) => {
3985
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = Tr.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ri, maxThumbSize: m, renderScrollButtonStart: g = Br, renderScrollButtonEnd: _ = Ir, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...M } = e, E = "touch" === Fe().primaryInput, T = h ?? !E;
3986
+ en(c ?? (() => {}), [c]);
3987
+ const [L, A] = P({
3874
3988
  offset: 0,
3875
3989
  length: 0,
3876
3990
  disabled: !1
3877
- }), I = L(-1), N = l === _r.Vertical, [O, { width: W, height: K }] = B(), V = N ? K : W, j = L(null), U = k(() => H([O, j]), [O]), Y = qt((e, t, n) => {
3991
+ }), B = D(-1), N = l === Tr.Vertical, [O, { width: F, height: K }] = I(), V = N ? K : F, j = D(null), Y = k(() => H([O, j]), [O]), U = en((e, t, n) => {
3878
3992
  if (0 === t || 0 === n) {
3879
3993
  const e = {
3880
3994
  offset: 0,
3881
3995
  length: p,
3882
3996
  disabled: !0
3883
3997
  };
3884
- return $(e), e;
3998
+ return A(e), e;
3885
3999
  }
3886
4000
  if (t >= n) return {
3887
4001
  offset: 0,
@@ -3898,54 +4012,54 @@ var Xr = 24, qr = b(v((e, t) => {
3898
4012
  V,
3899
4013
  p,
3900
4014
  m
3901
- ]), X = qt((e) => {
4015
+ ]), X = en((e) => {
3902
4016
  const t = o / V, n = Math.round(e * t);
3903
- $(Y(n, r, o)), a?.(n, r, o), I.current = e;
4017
+ A(U(n, r, o)), a?.(n, r, o), B.current = e;
3904
4018
  }, [
3905
4019
  a,
3906
4020
  r,
3907
4021
  o,
3908
4022
  V,
3909
- A
3910
- ]), q = qt((e) => {
3911
- $(Y(e, r, o)), a?.(e, r, o), I.current = e;
4023
+ L
4024
+ ]), q = en((e) => {
4025
+ A(U(e, r, o)), a?.(e, r, o), B.current = e;
3912
4026
  }, [
3913
4027
  a,
3914
4028
  r,
3915
4029
  o
3916
4030
  ]);
3917
- S(() => {
3918
- I.current !== n && 0 !== V && (I.current = -1, $(Y(n, r, o)));
3919
- }, [n]), S(() => {
3920
- 0 !== V && $(Y(n, r, o));
4031
+ C(() => {
4032
+ B.current !== n && 0 !== V && (B.current = -1, A(U(n, r, o)));
4033
+ }, [n]), C(() => {
4034
+ 0 !== V && A(U(n, r, o));
3921
4035
  }, [
3922
4036
  r,
3923
4037
  o,
3924
4038
  N,
3925
4039
  V
3926
4040
  ]);
3927
- const Z = Math.max(0, o - r), G = Yn(t, () => ({ isScrollbar: () => !0 }), []), J = qt((e) => {
4041
+ const Z = Math.max(0, o - r), G = no(t, () => ({ isScrollbar: () => !0 }), []), J = en((e) => {
3928
4042
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(Z, n + t) : Math.max(0, n - t);
3929
4043
  q(o);
3930
4044
  }, [
3931
4045
  r,
3932
4046
  n,
3933
4047
  Z
3934
- ]), Q = zr({
4048
+ ]), Q = Kr({
3935
4049
  vertical: N,
3936
4050
  getTrackRect: () => j.current?.getBoundingClientRect() ?? null,
3937
- getThumb: () => A.disabled ? null : {
3938
- offset: A.offset,
3939
- length: A.length
4051
+ getThumb: () => L.disabled ? null : {
4052
+ offset: L.offset,
4053
+ length: L.length
3940
4054
  },
3941
- onStart: qt((e) => A.disabled ? null : "thumb" === e ? (x?.({
4055
+ onStart: en((e) => L.disabled ? null : "thumb" === e ? (w?.({
3942
4056
  dragging: !0,
3943
4057
  element: ne.current,
3944
4058
  source: "thumb"
3945
4059
  }), {
3946
4060
  apply: (e) => X(e),
3947
4061
  edgeHold: b,
3948
- end: () => x?.({
4062
+ end: () => w?.({
3949
4063
  dragging: !1,
3950
4064
  element: ne.current,
3951
4065
  source: "thumb"
@@ -3955,11 +4069,11 @@ var Xr = 24, qr = b(v((e, t) => {
3955
4069
  page: J,
3956
4070
  dragMode: "page"
3957
4071
  }, [
3958
- A,
4072
+ L,
3959
4073
  b,
3960
- x
4074
+ w
3961
4075
  ])
3962
- }), ee = "thumb" === Q.dragMode, te = qt((e) => {
4076
+ }), ee = "thumb" === Q.dragMode, te = en((e) => {
3963
4077
  const t = Math.max(1, Math.floor(.9 * r));
3964
4078
  N ? ("ArrowDown" === e.key && X(Math.min(Z, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z)) : ("ArrowRight" === e.key && X(Math.min(Z, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z));
3965
4079
  }, [
@@ -3968,12 +4082,12 @@ var Xr = 24, qr = b(v((e, t) => {
3968
4082
  o,
3969
4083
  n,
3970
4084
  Z
3971
- ]), ne = L(null), oe = k(() => {
3972
- const e = A.disabled;
4085
+ ]), ne = D(null), oe = k(() => {
4086
+ const e = L.disabled;
3973
4087
  if (e) return null;
3974
- const t = z("div", {
4088
+ const t = R("div", {
3975
4089
  ...y,
3976
- className: F(br, { disabled: e }),
4090
+ className: W(Dr, { disabled: e }),
3977
4091
  ref: ne,
3978
4092
  role: "slider",
3979
4093
  "aria-label": N ? "Rows" : "Columns",
@@ -3985,37 +4099,37 @@ var Xr = 24, qr = b(v((e, t) => {
3985
4099
  style: {
3986
4100
  ...y?.style,
3987
4101
  position: "relative",
3988
- [N ? "height" : "width"]: `${A.length}px`,
4102
+ [N ? "height" : "width"]: `${L.length}px`,
3989
4103
  [N ? "width" : "height"]: "100%",
3990
- transform: N ? `translateY(${A.offset}px)` : `translateX(${A.offset}px)`,
4104
+ transform: N ? `translateY(${L.offset}px)` : `translateX(${L.offset}px)`,
3991
4105
  [N ? "minHeight" : "minWidth"]: `${p}px`
3992
4106
  },
3993
- onMouseDown: C
4107
+ onMouseDown: S
3994
4108
  });
3995
4109
  if (!E || e) return t;
3996
- const o = Math.max(0, V - A.length);
3997
- return R(P, { children: [t, z(Yr, {
4110
+ const o = Math.max(0, V - L.length);
4111
+ return $(z, { children: [t, R(oi, {
3998
4112
  ...v,
3999
- orientation: N ? _r.Vertical : _r.Horizontal,
4000
- fraction: o > 0 ? A.offset / o : 0,
4113
+ orientation: N ? Tr.Vertical : Tr.Horizontal,
4114
+ fraction: o > 0 ? L.offset / o : 0,
4001
4115
  onScrollToFraction: (e) => X(e * o),
4002
4116
  onEdgeHold: b,
4003
- onDraggingChange: x
4117
+ onDraggingChange: w
4004
4118
  })] });
4005
4119
  }, [
4006
- A,
4120
+ L,
4007
4121
  p,
4008
4122
  Z,
4009
4123
  n,
4010
4124
  N,
4011
4125
  E,
4012
- C,
4126
+ S,
4013
4127
  v,
4014
4128
  y,
4015
4129
  V,
4016
4130
  b,
4017
- x
4018
- ]), [re, ie] = D(null), se = qt(() => {
4131
+ w
4132
+ ]), [re, ie] = P(null), se = en(() => {
4019
4133
  let e;
4020
4134
  e = "function" == typeof u ? u(n, r, o) : n - u;
4021
4135
  const t = Math.max(0, e);
@@ -4025,7 +4139,7 @@ var Xr = 24, qr = b(v((e, t) => {
4025
4139
  n,
4026
4140
  r,
4027
4141
  o
4028
- ]), le = qt(() => {
4142
+ ]), le = en(() => {
4029
4143
  let e;
4030
4144
  e = "function" == typeof u ? u(n, r, o) : n + u;
4031
4145
  const t = Math.min(Z, e);
@@ -4036,9 +4150,9 @@ var Xr = 24, qr = b(v((e, t) => {
4036
4150
  Z,
4037
4151
  r,
4038
4152
  o
4039
- ]), ae = L(null), ce = L(null), he = w(() => {
4153
+ ]), ae = D(null), ce = D(null), he = x(() => {
4040
4154
  ae.current && (clearTimeout(ae.current), ae.current = null, ce.current = null);
4041
- }, []), ue = w((e, t, n, o = d) => {
4155
+ }, []), ue = x((e, t, n, o = d) => {
4042
4156
  ce.current = e, ae.current = setTimeout(() => {
4043
4157
  const e = n ? se() : le();
4044
4158
  e !== ce.current ? ue(e, !1, n, f) : he();
@@ -4048,7 +4162,7 @@ var Xr = 24, qr = b(v((e, t) => {
4048
4162
  le,
4049
4163
  he
4050
4164
  ]);
4051
- S(() => () => he(), [he]);
4165
+ C(() => () => he(), [he]);
4052
4166
  const de = k(() => T ? g?.({
4053
4167
  orientation: l,
4054
4168
  disabled: n <= 0,
@@ -4073,9 +4187,9 @@ var Xr = 24, qr = b(v((e, t) => {
4073
4187
  Z,
4074
4188
  re
4075
4189
  ]), pe = N ? "vertical" : "horizontal";
4076
- return R("div", {
4190
+ return $("div", {
4077
4191
  ref: H([G, t]),
4078
- className: F(s, vr, pe, {
4192
+ className: W(s, kr, pe, {
4079
4193
  dragging: ee,
4080
4194
  "has-touch-thumb": E
4081
4195
  }),
@@ -4083,16 +4197,16 @@ var Xr = 24, qr = b(v((e, t) => {
4083
4197
  ...M,
4084
4198
  children: [
4085
4199
  de,
4086
- z("div", {
4087
- ref: U,
4200
+ R("div", {
4201
+ ref: Y,
4088
4202
  role: "scrollbar",
4089
4203
  "aria-orientation": pe,
4090
4204
  "aria-valuemin": 0,
4091
4205
  "aria-valuemax": Z,
4092
4206
  "aria-valuenow": n,
4093
4207
  tabIndex: 0,
4094
- className: F(yr, "track", pe),
4095
- onMouseDown: C,
4208
+ className: W(Lr, "track", pe),
4209
+ onMouseDown: S,
4096
4210
  onPointerDown: Q.onPointerDown,
4097
4211
  onPointerMove: Q.onPointerMove,
4098
4212
  onPointerUp: Q.onPointerUp,
@@ -4102,24 +4216,24 @@ var Xr = 24, qr = b(v((e, t) => {
4102
4216
  fe
4103
4217
  ]
4104
4218
  });
4105
- })), Zr = Date.now, Gr = 1e3, Jr = {}, Qr = 1, ei = (e) => {
4106
- let t = null !== Jr[e];
4107
- return t && (Jr[e] = null), t;
4108
- }, ti = (e, t, n, o = 0, r) => {
4109
- let i = Zr(), s = i, l = 0, a = 0, c = 0, h = Qr++;
4219
+ })), si = Date.now, li = 1e3, ai = {}, ci = 1, hi = (e) => {
4220
+ let t = null !== ai[e];
4221
+ return t && (ai[e] = null), t;
4222
+ }, ui = (e, t, n, o = 0, r) => {
4223
+ let i = si(), s = i, l = 0, a = 0, c = 0, h = ci++;
4110
4224
  if (h % 20 == 0) {
4111
4225
  const e = {};
4112
- for (let t in Jr) e[t] = !0;
4113
- Jr = e;
4226
+ for (let t in ai) e[t] = !0;
4227
+ ai = e;
4114
4228
  }
4115
4229
  const u = function(d) {
4116
- let f = !0 !== d, p = Zr(), m = !0;
4230
+ let f = !0 !== d, p = si(), m = !0;
4117
4231
  try {
4118
4232
  m = (!t || t(h)) ?? !0;
4119
4233
  } catch (e) {
4120
4234
  m = !1;
4121
4235
  }
4122
- if (!Jr[h] || !m) return Jr[h] = null, void n?.(60 - a / ((p - i) / Gr), h, !1);
4236
+ if (!ai[h] || !m) return ai[h] = null, void n?.(60 - a / ((p - i) / li), h, !1);
4123
4237
  if (f) {
4124
4238
  c = Math.round((p - s) / 16.666666666666668) - 1;
4125
4239
  for (let e = 0; e < Math.min(c, 4); e++) u(!0), a++;
@@ -4131,14 +4245,14 @@ var Xr = 24, qr = b(v((e, t) => {
4131
4245
  } catch (e) {
4132
4246
  _ = !1;
4133
4247
  }
4134
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (Jr[h] = null, n?.(60 - a / ((p - i) / Gr), h, 1 === l || null == o));
4248
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (ai[h] = null, n?.(60 - a / ((p - i) / li), h, 1 === l || null == o));
4135
4249
  };
4136
- return Jr[h] = !0, requestAnimationFrame(u), h;
4137
- }, ni = function(e) {
4250
+ return ai[h] = !0, requestAnimationFrame(u), h;
4251
+ }, di = function(e) {
4138
4252
  return Math.pow(e - 1, 3) + 1;
4139
- }, oi = function(e) {
4253
+ }, fi = function(e) {
4140
4254
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4141
- }, ri = class {
4255
+ }, pi = class {
4142
4256
  constructor(e, t) {
4143
4257
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
4144
4258
  scrollingX: !0,
@@ -4192,7 +4306,7 @@ var Xr = 24, qr = b(v((e, t) => {
4192
4306
  }
4193
4307
  zoomTo(e, t = !1, n, o, r) {
4194
4308
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4195
- r && (this.__zoomComplete = r), this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0);
4309
+ r && (this.__zoomComplete = r), this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0);
4196
4310
  const i = this.__zoomLevel;
4197
4311
  void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
4198
4312
  const s = e / i;
@@ -4203,7 +4317,7 @@ var Xr = 24, qr = b(v((e, t) => {
4203
4317
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4204
4318
  }
4205
4319
  scrollTo(e, t, n = !1, o = 1) {
4206
- if (this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4320
+ if (this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4207
4321
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4208
4322
  e *= o, t *= o, this.__computeScrollMax(o);
4209
4323
  } else o = this.__zoomLevel;
@@ -4221,7 +4335,7 @@ var Xr = 24, qr = b(v((e, t) => {
4221
4335
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4222
4336
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4223
4337
  let n, o;
4224
- this.__interruptedAnimation = !0, this.__isDecelerating && (ei(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (ei(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4338
+ this.__interruptedAnimation = !0, this.__isDecelerating && (hi(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (hi(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4225
4339
  let r = 1 === e.length;
4226
4340
  r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
4227
4341
  }
@@ -4276,14 +4390,14 @@ var Xr = 24, qr = b(v((e, t) => {
4276
4390
  }
4277
4391
  __publish(e, t, n, o = !1) {
4278
4392
  const r = this.__isAnimating;
4279
- if (r && (ei(r), this.__isAnimating = 0), o && this.options.animating) {
4393
+ if (r && (hi(r), this.__isAnimating = 0), o && this.options.animating) {
4280
4394
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4281
4395
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, h = (e, t, n = !1) => {
4282
4396
  n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
4283
4397
  }, u = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4284
4398
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4285
4399
  };
4286
- this.__isAnimating = ti(h, u, d, this.options.animationDuration, r ? ni : oi);
4400
+ this.__isAnimating = ui(h, u, d, this.options.animationDuration, r ? di : fi);
4287
4401
  } else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4288
4402
  }
4289
4403
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4295,7 +4409,7 @@ var Xr = 24, qr = b(v((e, t) => {
4295
4409
  this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
4296
4410
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4297
4411
  const t = this.options.snapping ? 4 : .1;
4298
- this.__isDecelerating = ti((e, t, n = !1) => {
4412
+ this.__isDecelerating = ui((e, t, n = !1) => {
4299
4413
  this.__stepThroughDeceleration(n);
4300
4414
  }, () => {
4301
4415
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4321,10 +4435,10 @@ var Xr = 24, qr = b(v((e, t) => {
4321
4435
  t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
4322
4436
  }
4323
4437
  }
4324
- }, ii = Z({
4325
- defaultRenderScrollbar: () => li,
4326
- getScrollTo: () => si
4327
- }), si = (e, t, n, o, r = 0) => {
4438
+ }, mi = G({
4439
+ defaultRenderScrollbar: () => _i,
4440
+ getScrollTo: () => gi
4441
+ }), gi = (e, t, n, o, r = 0) => {
4328
4442
  for (let r = 0; r < n.length; r++) {
4329
4443
  const i = n[r].getBoundingClientRect();
4330
4444
  let s = i.left - t, l = s + i.width;
@@ -4333,14 +4447,14 @@ var Xr = 24, qr = b(v((e, t) => {
4333
4447
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4334
4448
  }
4335
4449
  return r;
4336
- }, li = (e) => z(qr, { ...e }), ai = "_scrollpane_zdrii_2", ci = "_scrollpane-content_zdrii_20", hi = "_scrollpane-content-cell_zdrii_33", ui = "_vertical-container_zdrii_42", di = "_horizontal-container_zdrii_50", fi = "_corner-container_zdrii_59", pi = "_touch-thumb-overlay_zdrii_68", mi = b(v((e, t) => {
4337
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = gi, renderScrollbarHorizontal: c = li, renderScrollbarVertical: h = li, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = en(o, (e) => e.getMetrics()), v = w((e, t) => {
4450
+ }, _i = (e) => R(ii, { ...e }), vi = "_scrollpane_zdrii_2", yi = "_scrollpane-content_zdrii_20", bi = "_scrollpane-content-cell_zdrii_33", wi = "_vertical-container_zdrii_42", xi = "_horizontal-container_zdrii_50", Si = "_corner-container_zdrii_59", Ci = "_touch-thumb-overlay_zdrii_68", Mi = w(v((e, t) => {
4451
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = Ei, renderScrollbarHorizontal: c = _i, renderScrollbarVertical: h = _i, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = sn(o, (e) => e.getMetrics()), v = x((e, t) => {
4338
4452
  if (!o) return;
4339
4453
  const n = o.getTarget();
4340
4454
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4341
- }, [o]), y = Yn(t, () => ({ isScrollPane: () => !0 }), []);
4342
- S(() => {}, []), ((e, t) => {
4343
- const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = qt(o, [o]), s = qt(r ?? (() => {}), [r]), l = L(null), a = qt((e) => {
4455
+ }, [o]), y = no(t, () => ({ isScrollPane: () => !0 }), []);
4456
+ C(() => {}, []), ((e, t) => {
4457
+ const { enabled: n = !0, onScrollBy: o, onWheelScroll: r } = t, i = en(o, [o]), s = en(r ?? (() => {}), [r]), l = D(null), a = en((e) => {
4344
4458
  const t = e.shiftKey;
4345
4459
  e.preventDefault();
4346
4460
  const { deltaX: n, deltaY: o, deltaMode: r } = e;
@@ -4352,7 +4466,7 @@ var Xr = 24, qr = b(v((e, t) => {
4352
4466
  l.current = null, i(h ? { left: a } : { top: c });
4353
4467
  });
4354
4468
  }, []);
4355
- S(() => {
4469
+ C(() => {
4356
4470
  if (!n) return;
4357
4471
  const t = e.current;
4358
4472
  return t ? (t.addEventListener("wheel", a, { passive: !1 }), () => {
@@ -4375,42 +4489,42 @@ var Xr = 24, qr = b(v((e, t) => {
4375
4489
  },
4376
4490
  onWheelScroll: i
4377
4491
  });
4378
- const b = L(null), x = L(!1);
4379
- S(() => {
4492
+ const b = D(null), w = D(!1);
4493
+ C(() => {
4380
4494
  if (b.current && _ && (b.current.__scrollTop !== _?.top || b.current.__scrollLeft !== _?.left)) if (b.current.__isDecelerating || b.current.__isTracking) b.current.__isTracking, b.current.__isDecelerating;
4381
4495
  else {
4382
- b.current.__scrollLeft, b.current.__scrollTop, _.left, _.top, x.current = !0;
4496
+ b.current.__scrollLeft, b.current.__scrollTop, _.left, _.top, w.current = !0;
4383
4497
  try {
4384
4498
  b.current?.scrollTo(_.left, _.top, !1);
4385
4499
  } finally {
4386
- x.current = !1;
4500
+ w.current = !1;
4387
4501
  }
4388
4502
  }
4389
4503
  }, [_?.left, _?.top]);
4390
- const C = w((e, t) => {
4391
- if (x.current) return;
4504
+ const S = x((e, t) => {
4505
+ if (w.current) return;
4392
4506
  const n = b.current;
4393
4507
  (!n || n.__isTracking || n.__isDecelerating) && v?.({
4394
4508
  left: e,
4395
4509
  top: t
4396
4510
  });
4397
- }, []), M = w((e) => {
4511
+ }, []), M = x((e) => {
4398
4512
  e.touches.length, b.current?.doTouchStart(e.touches, e.timeStamp);
4399
- }, []), E = w((e) => {
4513
+ }, []), E = x((e) => {
4400
4514
  e.preventDefault(), e.touches.length, b.current, b.current, b.current, b.current?.doTouchMove(e.touches, e.timeStamp);
4401
- }, []), T = w((e) => {
4515
+ }, []), T = x((e) => {
4402
4516
  b.current?.doTouchEnd(e.timeStamp);
4403
- }, []), A = w(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4517
+ }, []), L = x(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4404
4518
  b.current && b.current.setDimensions(e, t, n, o);
4405
4519
  }, []);
4406
- S(() => {
4520
+ C(() => {
4407
4521
  const e = y.current;
4408
- return !f && Ne().supportsTouchEvents && e && _ && (b.current || (b.current = new ri(C, {
4522
+ return !f && Fe().supportsTouchEvents && e && _ && (b.current || (b.current = new pi(S, {
4409
4523
  scrollingX: !0,
4410
4524
  scrollingY: !0,
4411
4525
  decelerationRate: .95,
4412
4526
  penetrationAcceleration: .08
4413
- })), Ne().supportsTouchEvents && (e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), A({
4527
+ })), Fe().supportsTouchEvents && (e.addEventListener("touchstart", M, { passive: !1 }), e.addEventListener("touchend", T), e.addEventListener("touchmove", E, { passive: !1 })), L({
4414
4528
  containerWidth: _?.width,
4415
4529
  containerHeight: _?.height,
4416
4530
  totalWidth: _?.totalWidth,
@@ -4425,23 +4539,23 @@ var Xr = 24, qr = b(v((e, t) => {
4425
4539
  _?.totalHeight,
4426
4540
  f
4427
4541
  ]);
4428
- const P = Ne().supportsTouchEvents, [$, H] = D(null), [I, { width: N, height: O }] = B(), W = w((e) => {
4429
- H(e), I(e);
4430
- }, [I]), K = k(() => {
4431
- if (!$) return null;
4432
- const e = Fr(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4542
+ const A = Fe().supportsTouchEvents, [z, B] = P(null), [H, { width: N, height: O }] = I(), F = x((e) => {
4543
+ B(e), H(e);
4544
+ }, [H]), K = k(() => {
4545
+ if (!z) return null;
4546
+ const e = Gr(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
4433
4547
  return {
4434
- portalTarget: $,
4548
+ portalTarget: z,
4435
4549
  width: N,
4436
4550
  height: O,
4437
4551
  viewportWidth: t,
4438
4552
  viewportHeight: n,
4439
4553
  reserveVertical: m ? e : 0,
4440
4554
  reserveHorizontal: g ? e : 0,
4441
- crossInset: Or()
4555
+ crossInset: Zr()
4442
4556
  };
4443
4557
  }, [
4444
- $,
4558
+ z,
4445
4559
  N,
4446
4560
  O,
4447
4561
  _?.width,
@@ -4451,7 +4565,7 @@ var Xr = 24, qr = b(v((e, t) => {
4451
4565
  ]), V = k(() => {
4452
4566
  if (!g) return null;
4453
4567
  const e = h({
4454
- orientation: _r.Vertical,
4568
+ orientation: Tr.Vertical,
4455
4569
  offset: _?.top ?? 0,
4456
4570
  viewportSize: _?.height ?? 0,
4457
4571
  totalSize: _?.totalHeight ?? 0,
@@ -4459,8 +4573,8 @@ var Xr = 24, qr = b(v((e, t) => {
4459
4573
  v?.({ top: e });
4460
4574
  }
4461
4575
  });
4462
- return z("div", {
4463
- className: F("vertical-container", ui),
4576
+ return R("div", {
4577
+ className: W("vertical-container", wi),
4464
4578
  children: e
4465
4579
  });
4466
4580
  }, [
@@ -4471,7 +4585,7 @@ var Xr = 24, qr = b(v((e, t) => {
4471
4585
  ]), j = k(() => {
4472
4586
  if (!m) return null;
4473
4587
  const e = c({
4474
- orientation: _r.Horizontal,
4588
+ orientation: Tr.Horizontal,
4475
4589
  offset: _?.left ?? 0,
4476
4590
  viewportSize: _?.width ?? 0,
4477
4591
  totalSize: _?.totalWidth ?? 0,
@@ -4479,8 +4593,8 @@ var Xr = 24, qr = b(v((e, t) => {
4479
4593
  v?.({ left: e });
4480
4594
  }
4481
4595
  });
4482
- return z("div", {
4483
- className: F("horizontal-container", di),
4596
+ return R("div", {
4597
+ className: W("horizontal-container", xi),
4484
4598
  children: e
4485
4599
  });
4486
4600
  }, [
@@ -4488,44 +4602,44 @@ var Xr = 24, qr = b(v((e, t) => {
4488
4602
  _?.left,
4489
4603
  _?.width,
4490
4604
  _?.totalWidth
4491
- ]), U = k(() => g && m ? z("div", {
4492
- className: F("corner-container", fi),
4605
+ ]), Y = k(() => g && m ? R("div", {
4606
+ className: W("corner-container", Si),
4493
4607
  children: a({})
4494
4608
  }) : null, [
4495
4609
  g,
4496
4610
  m,
4497
4611
  a
4498
4612
  ]);
4499
- return z("div", {
4500
- className: F(d, "scrollpane", ai),
4613
+ return R("div", {
4614
+ className: W(d, "scrollpane", vi),
4501
4615
  style: u,
4502
4616
  ...p,
4503
4617
  ref: y,
4504
- children: z(Kr, {
4618
+ children: R(Qr, {
4505
4619
  value: K,
4506
- children: R("div", {
4507
- className: F("scrollpane-content", ci),
4620
+ children: $("div", {
4621
+ className: W("scrollpane-content", yi),
4508
4622
  children: [
4509
- z("div", {
4510
- className: F("scrollpane-content-cell", hi),
4623
+ R("div", {
4624
+ className: W("scrollpane-content-cell", bi),
4511
4625
  children: n
4512
4626
  }),
4513
4627
  g ? V : null,
4514
4628
  m ? j : null,
4515
- U,
4516
- P ? z("div", {
4517
- ref: W,
4518
- className: F("touch-thumb-overlay", pi)
4629
+ Y,
4630
+ A ? R("div", {
4631
+ ref: F,
4632
+ className: W("touch-thumb-overlay", Ci)
4519
4633
  }) : null
4520
4634
  ]
4521
4635
  })
4522
4636
  })
4523
4637
  });
4524
4638
  }));
4525
- mi.displayName = "ScrollPane";
4526
- var gi = (e) => {
4639
+ Mi.displayName = "ScrollPane";
4640
+ var Ei = (e) => {
4527
4641
  const { size: t, style: n, ...o } = e;
4528
- return z("div", {
4642
+ return R("div", {
4529
4643
  className: "corner",
4530
4644
  style: {
4531
4645
  width: "100%",
@@ -4534,7 +4648,7 @@ var gi = (e) => {
4534
4648
  },
4535
4649
  ...o
4536
4650
  });
4537
- }, _i = class {
4651
+ }, Ti = class {
4538
4652
  constructor(e) {
4539
4653
  this._bounds = {
4540
4654
  minLeft: 0,
@@ -4644,7 +4758,7 @@ var gi = (e) => {
4644
4758
  }
4645
4759
  _applyBounds(e) {
4646
4760
  this._bounds = e;
4647
- const t = Mi(this._target.left, e.minLeft, e.maxLeft), n = Mi(this._target.top, e.minTop, e.maxTop);
4761
+ const t = $i(this._target.left, e.minLeft, e.maxLeft), n = $i(this._target.top, e.minTop, e.maxTop);
4648
4762
  t === this._target.left && n === this._target.top || (this._target = {
4649
4763
  left: t,
4650
4764
  top: n
@@ -4666,12 +4780,12 @@ var gi = (e) => {
4666
4780
  return this._observe(e, "both");
4667
4781
  }
4668
4782
  _observe(e, t) {
4669
- if (!e) return Ci;
4783
+ if (!e) return Ri;
4670
4784
  const n = (e, n) => {
4671
4785
  const o = this._measuredClient;
4672
4786
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
4673
4787
  };
4674
- if (!Si()) return n(0, 0), Ci;
4788
+ if (!zi()) return n(0, 0), Ri;
4675
4789
  const o = new ResizeObserver((e) => {
4676
4790
  const t = e[0]?.contentRect;
4677
4791
  t && n(t.width, t.height);
@@ -4718,17 +4832,17 @@ var gi = (e) => {
4718
4832
  }
4719
4833
  setTarget(e, t, n) {
4720
4834
  const o = this._bounds;
4721
- return e = Mi(e, o.minLeft, o.maxLeft), t = Mi(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4835
+ return e = $i(e, o.minLeft, o.maxLeft), t = $i(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
4722
4836
  left: e,
4723
4837
  top: t
4724
4838
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
4725
4839
  }
4726
4840
  _startAnimation() {
4727
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * bi : Infinity, r = n.height > 0 ? n.height * bi : Infinity, i = Mi(e.left, t.left - o, t.left + o), s = Mi(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * yi);
4728
- this._anim = a <= wi ? null : {
4841
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Di : Infinity, r = n.height > 0 ? n.height * Di : Infinity, i = $i(e.left, t.left - o, t.left + o), s = $i(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * Li);
4842
+ this._anim = a <= Pi ? null : {
4729
4843
  fromLeft: i,
4730
4844
  fromTop: s,
4731
- start: xi(),
4845
+ start: Ai(),
4732
4846
  duration: a
4733
4847
  };
4734
4848
  }
@@ -4760,7 +4874,7 @@ var gi = (e) => {
4760
4874
  const e = this._current, t = this._target, n = this._anim;
4761
4875
  let o, r, i = !1;
4762
4876
  if (n) {
4763
- const e = (xi() - n.start) / n.duration;
4877
+ const e = (Ai() - n.start) / n.duration;
4764
4878
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
4765
4879
  else {
4766
4880
  const s = 1 - Math.pow(1 - e, 3);
@@ -4772,7 +4886,7 @@ var gi = (e) => {
4772
4886
  top: r
4773
4887
  }, this._viewport = null, this._emit()), i;
4774
4888
  }
4775
- }, vi = 200, yi = 2.5, bi = 1.5, wi = 17, xi = () => "undefined" != typeof performance ? performance.now() : Date.now(), Si = () => "undefined" != typeof ResizeObserver, Ci = () => {}, Mi = (e, t, n) => Math.min(n, Math.max(t, e)), Ei = class {
4889
+ }, ki = 200, Li = 2.5, Di = 1.5, Pi = 17, Ai = () => "undefined" != typeof performance ? performance.now() : Date.now(), zi = () => "undefined" != typeof ResizeObserver, Ri = () => {}, $i = (e, t, n) => Math.min(n, Math.max(t, e)), Bi = class {
4776
4890
  constructor(e, t, n, o, r) {
4777
4891
  this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
4778
4892
  }
@@ -4879,12 +4993,12 @@ var gi = (e) => {
4879
4993
  setContent(e, t, n = 0, o = 0) {
4880
4994
  this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
4881
4995
  }
4882
- }, ki = 300, Ti = 100, Li = 1e6, Di = 100, Ai = 50, Pi = b(v((e, t) => {
4883
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = ki, endScrollIncrement: l = Ti, style: a = $e, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Li, scaleFactor: p = Di, precisionFactor: m = Ai, renderScrollbar: g = li, ..._ } = e;
4996
+ }, Ii = 300, Hi = 100, Ni = 1e6, Oi = 100, Fi = 50, Wi = w(v((e, t) => {
4997
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Ii, endScrollIncrement: l = Hi, style: a = Ie, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = Ni, scaleFactor: p = Oi, precisionFactor: m = Fi, renderScrollbar: g = _i, ..._ } = e;
4884
4998
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
4885
- const v = qt(c ?? (() => {}), [c]), [y, b] = D(!1), x = L(0), S = k(() => {
4999
+ const v = en(c ?? (() => {}), [c]), [y, b] = P(!1), w = D(0), S = k(() => {
4886
5000
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
4887
- y && (e = Math.max(e, x.current)), x.current = e;
5001
+ y && (e = Math.max(e, w.current)), w.current = e;
4888
5002
  const t = 0 !== f && e > f ? p : 1, l = t / m, a = Math.ceil(e / t);
4889
5003
  return {
4890
5004
  offset: Math.ceil(n / t),
@@ -4904,38 +5018,38 @@ var gi = (e) => {
4904
5018
  i,
4905
5019
  s,
4906
5020
  l
4907
- ]), C = qt((e, t, n) => {
5021
+ ]), C = en((e, t, n) => {
4908
5022
  const o = S.offset;
4909
5023
  Math.abs(e - o) < S.precision && (e = o), u?.(e * S.factor, o, S.viewportSize);
4910
- }, [u, S]), M = qt((e, t) => {
5024
+ }, [u, S]), M = en((e, t) => {
4911
5025
  const n = 1 + Math.min(3, t.heldMs / 1e3), o = Math.max(0, S.scaledTotalSize - S.scaledViewportSize), r = Math.min(o, Math.max(0, S.scaledOffset + e * l * n));
4912
5026
  return r !== S.scaledOffset && (u?.(r, S.scaledViewportSize, S.scaledTotalSize), !0);
4913
5027
  }, [
4914
5028
  S,
4915
5029
  l,
4916
5030
  u
4917
- ]), E = qt((e) => {
5031
+ ]), E = en((e) => {
4918
5032
  b(e.dragging), h?.(e);
4919
- }, [h]), T = w((e) => {}, []), A = w((e) => {
4920
- document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", A), b(!1);
4921
- }, []), P = w((e) => {
4922
- b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", A, { passive: !0 });
4923
- }, [T, A]);
5033
+ }, [h]), T = x((e) => {}, []), L = x((e) => {
5034
+ document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", L), b(!1);
5035
+ }, []), A = x((e) => {
5036
+ b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", L, { passive: !0 });
5037
+ }, [T, L]);
4924
5038
  return g({
4925
5039
  style: a,
4926
5040
  ..._,
4927
5041
  offset: S.offset,
4928
5042
  totalSize: S.totalSize,
4929
5043
  viewportSize: S.viewportSize,
4930
- onMouseDown: P,
5044
+ onMouseDown: A,
4931
5045
  onScrollOffset: C,
4932
5046
  onThumbEdgeHold: M,
4933
5047
  onThumbDrag: E,
4934
5048
  ref: t
4935
5049
  });
4936
5050
  }));
4937
- Pi.displayName = "VirtualScrollbar";
4938
- var zi = "_scrollbar-themed_nj3vu_7", Ri = (e) => ({
5051
+ Wi.displayName = "VirtualScrollbar";
5052
+ var Ki = "_scrollbar-themed_nj3vu_7", Vi = (e) => ({
4939
5053
  "--scrollbar-track-color": e.track,
4940
5054
  "--scrollbar-thumb-color": e.thumb,
4941
5055
  "--scrollbar-button-color": e.button || e.thumb,
@@ -4948,44 +5062,44 @@ var zi = "_scrollbar-themed_nj3vu_7", Ri = (e) => ({
4948
5062
  "--scrollbar-border-width": "2px",
4949
5063
  "--scrollbar-min-thumb-size": "24px"
4950
5064
  });
4951
- var $i = {
4952
- axis: X.oneOf([
5065
+ var ji = {
5066
+ axis: q.oneOf([
4953
5067
  "both",
4954
5068
  "x",
4955
5069
  "y",
4956
5070
  "none"
4957
5071
  ]),
4958
- className: X.string,
4959
- children: X.element.isRequired,
4960
- draggableOpts: X.shape({
4961
- allowAnyClick: X.bool,
4962
- cancel: X.string,
4963
- children: X.node,
4964
- disabled: X.bool,
4965
- enableUserSelectHack: X.bool,
4966
- offsetParent: "undefined" != typeof Element ? X.instanceOf(Element) : X.any,
4967
- grid: X.arrayOf(X.number),
4968
- handle: X.string,
4969
- nodeRef: X.object,
4970
- onStart: X.func,
4971
- onDrag: X.func,
4972
- onStop: X.func,
4973
- onMouseDown: X.func,
4974
- scale: X.number
5072
+ className: q.string,
5073
+ children: q.element.isRequired,
5074
+ draggableOpts: q.shape({
5075
+ allowAnyClick: q.bool,
5076
+ cancel: q.string,
5077
+ children: q.node,
5078
+ disabled: q.bool,
5079
+ enableUserSelectHack: q.bool,
5080
+ offsetParent: "undefined" != typeof Element ? q.instanceOf(Element) : q.any,
5081
+ grid: q.arrayOf(q.number),
5082
+ handle: q.string,
5083
+ nodeRef: q.object,
5084
+ onStart: q.func,
5085
+ onDrag: q.func,
5086
+ onStop: q.func,
5087
+ onMouseDown: q.func,
5088
+ scale: q.number
4975
5089
  }),
4976
5090
  height: (...e) => {
4977
5091
  const [t] = e;
4978
- return "both" === t.axis || "y" === t.axis ? X.number.isRequired(...e) : X.number(...e);
5092
+ return "both" === t.axis || "y" === t.axis ? q.number.isRequired(...e) : q.number(...e);
4979
5093
  },
4980
- handle: X.oneOfType([X.node, X.func]),
4981
- handleSize: X.arrayOf(X.number),
4982
- lockAspectRatio: X.bool,
4983
- maxConstraints: X.arrayOf(X.number),
4984
- minConstraints: X.arrayOf(X.number),
4985
- onResizeStop: X.func,
4986
- onResizeStart: X.func,
4987
- onResize: X.func,
4988
- resizeHandles: X.arrayOf(X.oneOf([
5094
+ handle: q.oneOfType([q.node, q.func]),
5095
+ handleSize: q.arrayOf(q.number),
5096
+ lockAspectRatio: q.bool,
5097
+ maxConstraints: q.arrayOf(q.number),
5098
+ minConstraints: q.arrayOf(q.number),
5099
+ onResizeStop: q.func,
5100
+ onResizeStart: q.func,
5101
+ onResize: q.func,
5102
+ resizeHandles: q.arrayOf(q.oneOf([
4989
5103
  "s",
4990
5104
  "w",
4991
5105
  "e",
@@ -4995,17 +5109,17 @@ var $i = {
4995
5109
  "se",
4996
5110
  "ne"
4997
5111
  ])),
4998
- transformScale: X.number,
5112
+ transformScale: q.number,
4999
5113
  width: (...e) => {
5000
5114
  const [t] = e;
5001
- return "both" === t.axis || "x" === t.axis ? X.number.isRequired(...e) : X.number(...e);
5115
+ return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5002
5116
  }
5003
- }, Bi = class extends d.Component {
5117
+ }, Yi = class extends d.Component {
5004
5118
  constructor(...e) {
5005
5119
  super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
5006
5120
  }
5007
5121
  static {
5008
- this.propTypes = $i;
5122
+ this.propTypes = ji;
5009
5123
  }
5010
5124
  static {
5011
5125
  this.defaultProps = {
@@ -5066,7 +5180,7 @@ var $i = {
5066
5180
  }
5067
5181
  renderResizeHandle(e, t) {
5068
5182
  const { handle: n } = this.props;
5069
- if (!n) return z("span", {
5183
+ if (!n) return R("span", {
5070
5184
  className: `react-resizable-handle react-resizable-handle-${e}`,
5071
5185
  ref: t
5072
5186
  });
@@ -5084,7 +5198,7 @@ var $i = {
5084
5198
  className: (t ? `${t} ` : "") + "react-resizable",
5085
5199
  children: [...d.Children.toArray(e.props.children), ...g.map((e) => {
5086
5200
  const t = this.handleRefs[e] ?? (this.handleRefs[e] = d.createRef());
5087
- return _(Y, {
5201
+ return _(X, {
5088
5202
  ...n,
5089
5203
  nodeRef: t,
5090
5204
  key: `resizableHandle-${e}`,
@@ -5099,7 +5213,7 @@ var $i = {
5099
5213
  }), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
5100
5214
  var b, w;
5101
5215
  }
5102
- }, Hi = class extends d.Component {
5216
+ }, Ui = class extends d.Component {
5103
5217
  constructor(...e) {
5104
5218
  super(...e), this.state = {
5105
5219
  width: this.props.width,
@@ -5113,8 +5227,8 @@ var $i = {
5113
5227
  }
5114
5228
  static {
5115
5229
  this.propTypes = {
5116
- ...$i,
5117
- children: X.element
5230
+ ...ji,
5231
+ children: q.element
5118
5232
  };
5119
5233
  }
5120
5234
  static getDerivedStateFromProps(e, t) {
@@ -5127,7 +5241,7 @@ var $i = {
5127
5241
  }
5128
5242
  render() {
5129
5243
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: h, height: u, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5130
- return z(Bi, {
5244
+ return R(Yi, {
5131
5245
  axis: c,
5132
5246
  draggableOpts: i,
5133
5247
  handle: e,
@@ -5142,7 +5256,7 @@ var $i = {
5142
5256
  resizeHandles: d,
5143
5257
  transformScale: p,
5144
5258
  width: this.state.width,
5145
- children: z("div", {
5259
+ children: R("div", {
5146
5260
  ...m,
5147
5261
  style: {
5148
5262
  ...f,
@@ -5153,4 +5267,4 @@ var $i = {
5153
5267
  });
5154
5268
  }
5155
5269
  };
5156
- export { te as ACCUMULATE, Pt as AnimationModeProvider, Ei as AxisViewport, Tt as Command, pt as CommandAnchorProvider, de as CommandButtonEntryLabel, ae as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, ee as CommandButtonType, ot as CommandChainContext, gt as CommandFallbackContext, yt as CommandFallbackProvider, wt as CommandFocusProvider, it as CommandOrderContext, oe as CommandRegistry, Me as CommandRegistryContext, nt as CommandResolver, dt as CommandResolverContext, ke as CommandScope, lt as CommandScopeContext, ht as CommandScopeProvider, De as ConstantActivation, le as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, re as DefaultCommandRegistry, nr as DefaultIconService, jt as DefaultReactNotifier, ir as DynamicIcon, Lr as EDGE_HOLD_INTERVAL_MS, Ho as FloatPanel, zo as FloatPopper, Fo as FloatProvider, Ct as FloatStackProvider, No as FloatTooltip, Ae as FocusActivation, Nt as FocusKeyNavigation, io as INPUT_SELECTION_TINT, ro as INPUT_SELECTION_VAR, lr as InMemoryStore, Ge as KeyBindingDispatcher, J as KeyCodes, G as KeyModifiers, Dn as LanguageStateKey, Pe as LayerActivation, gr as LocalStorageStore, Le as ManualActivation, Q as MouseButtonCodes, Wt as NotifierType, Dr as PAGE_INITIAL_DELAY_MS, Ar as PAGE_REPEAT_DELAY_MS, pr as PersistenceStateProvider, qn as ReactErrorBoundary, Yt as ReactNotifierProvider, ze as ReactUtils, Bi as Resizable, Hi as ResizableBox, Ft as RoundedTab, vi as SCROLL_ANIMATION_MS, Jn as SERIES_COUNT, lo as SXL_THEME_LAYERS, ao as SXL_THEME_LAYER_ORDER, mi as ScrollPane, ii as ScrollUtils, qr as Scrollbar, _r as ScrollbarOrientation, qo as SplitPane, Vo as SplitPaneResizer, uo as THEME_MODE_ATTR, fo as THEME_SURFACE_ATTR, $r as TOUCH_THUMB_ASPECT, Br as TOUCH_THUMB_MARGIN, Ir as TOUCH_THUMB_MARGIN_CROSS, Nr as TOUCH_THUMB_MARGIN_END, Hr as TOUCH_THUMB_MARGIN_START, Rr as TOUCH_THUMB_SIZE, yo as TokenThemeContext, wo as TokenThemeProvider, It as ToolTipPlacement, Kr as TouchThumbFrameProvider, Yr as TouchThumbHandle, Gn as UncaughtErrorBoundary, _i as Viewport, Pi as VirtualScrollbar, sr as WalkingIcon, ye as asCommandCatalog, ct as attachWhenReady, ho as buildThemeCSS, we as chromeToPartial, Rn as composeCaretRect, Kt as createBusyHandle, Se as createCommandCatalogService, tr as createDynamicIconService, Vt as createNoopBusyHandle, pe as createResolvedCommand, mo as createThemeScopeClass, Pr as createTrackDrag, $o as defaultCreateFloatPopupPanel, Tr as defaultCreateScrollEdgeButton, kr as defaultCreateScrollEndButton, Er as defaultCreateScrollStartButton, Oo as defaultRenderFloatPanel, gi as defaultRenderScrollCorner, Qn as defaultTheme, be as fetchCatalog, To as floatThemeScopeProps, nn as getDevicePixelRatio, Ri as getScrollbarCssVariables, Bn as getTextareaCaretRect, Ze as isCaretKey, Qe as keyEventCanonicals, Je as keyStrokeToCanonical, xe as mergeChrome, _e as parseShortcutString, ne as reduceDefinitions, Te as resolveAnchorSource, xo as resolveToken, So as resolveTokens, zi as scrollbarThemedClassName, ve as serializeShortcut, Tn as setEditMode, po as themeSurfaceProps, no as themeVars, to as toVars, Fr as touchThumbCornerReserve, Or as touchThumbCrossInset, Ht as useAnimatedMeasure, At as useAnimationMode, Jt as useBoundSyncExternalStore, qt as useCallbackRef, ue as useCommandButtonEntry, ce as useCommandButtonRegistry, rt as useCommandChain, ut as useCommandElement, mt as useCommandExecute, _t as useCommandFallback, xt as useCommandFocusRestore, st as useCommandOrder, Ee as useCommandRegistry, ft as useCommandResolver, at as useCommandScope, Et as useCommands, kt as useContributeCommands, tn as useDevicePixelRatio, Ln as useEditMode, Mt as useFloat, Wo as useFloatStack, ko as useFloatSurface, rn as useFullscreen, hn as useFullscreenPortal, In as useGlobalClipboard, jn as useId, Yn as useImperativeElement, An as useLanguage, dn as useMouseDownAndHoldListener, Xt as useNotifier, on as useOnClickOrFocusAway, en as useOptionalBoundSyncExternalStore, Gt as useOptionalSyncExternalStore, dr as usePersistenceState, go as useResolvedThemeMode, un as useSynchronizedPointerHandler, Hn as useTextareaCaretRect, bo as useTokenThemeContext, Vr as useTouchThumbFrame, Nn as useTraceUpdate, zr as useTrackDrag, Pn as useTranslator };
5270
+ export { ne as ACCUMULATE, Rt as AnimationModeProvider, Bi as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Te as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, Le as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, Ae as ConstantActivation, ae as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, ie as DefaultCommandRegistry, dr as DefaultIconService, Zt as DefaultReactNotifier, mr as DynamicIcon, Nr as EDGE_HOLD_INTERVAL_MS, Uo as FloatPanel, Yo as FloatPanelSurface, Wo as FloatPopper, Go as FloatProvider, Et as FloatStackProvider, qo as FloatTooltip, ze as FocusActivation, Ft as FocusKeyNavigation, mo as INPUT_SELECTION_TINT, po as INPUT_SELECTION_VAR, _r as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, Nn as LanguageStateKey, Re as LayerActivation, Er as LocalStorageStore, Pe as ManualActivation, ee as MouseButtonCodes, Ut as NotifierType, Or as PAGE_INITIAL_DELAY_MS, Fr as PAGE_REPEAT_DELAY_MS, Cr as PersistenceStateProvider, pe as QUICK_ACTION_TAG, ro as ReactErrorBoundary, Jt as ReactNotifierProvider, $e as ReactUtils, Yi as Resizable, Ui as ResizableBox, Kt as RoundedTab, ki as SCROLL_ANIMATION_MS, lo as SERIES_COUNT, _o as SXL_THEME_LAYERS, vo as SXL_THEME_LAYER_ORDER, Mi as ScrollPane, mi as ScrollUtils, ii as Scrollbar, Tr as ScrollbarOrientation, ir as SplitPane, er as SplitPaneResizer, wo as THEME_MODE_ATTR, xo as THEME_SURFACE_ATTR, jr as TOUCH_THUMB_ASPECT, Yr as TOUCH_THUMB_MARGIN, Xr as TOUCH_THUMB_MARGIN_CROSS, qr as TOUCH_THUMB_MARGIN_END, Ur as TOUCH_THUMB_MARGIN_START, Vr as TOUCH_THUMB_SIZE, ko as TokenThemeContext, Do as TokenThemeProvider, Ot as ToolTipPlacement, Qr as TouchThumbFrameProvider, oi as TouchThumbHandle, so as UncaughtErrorBoundary, Ti as Viewport, Wi as VirtualScrollbar, gr as WalkingIcon, we as asCommandCatalog, ut as attachWhenReady, bo as buildThemeCSS, Se as chromeToPartial, Kn as composeCaretRect, Xt as createBusyHandle, Me as createCommandCatalogService, ur as createDynamicIconService, qt as createNoopBusyHandle, ge as createResolvedCommand, Co as createThemeScopeClass, Wr as createTrackDrag, Vo as defaultCreateFloatPopupPanel, Hr as defaultCreateScrollEdgeButton, Ir as defaultCreateScrollEndButton, Br as defaultCreateScrollStartButton, Zo as defaultRenderFloatPanel, Ei as defaultRenderScrollCorner, ao as defaultTheme, xe as fetchCatalog, Io as floatThemeScopeProps, an as getDevicePixelRatio, Vi as getScrollbarCssVariables, jn as getTextareaCaretRect, Je as isCaretKey, tt as keyEventCanonicals, et as keyStrokeToCanonical, Yt as lazyComponent, Ce as mergeChrome, ye as parseShortcutString, oe as reduceDefinitions, De as resolveAnchorSource, Po as resolveToken, Ao as resolveTokens, Ki as scrollbarThemedClassName, be as serializeShortcut, In as setEditMode, So as themeSurfaceProps, uo as themeVars, ho as toVars, Gr as touchThumbCornerReserve, Zr as touchThumbCrossInset, Nt as useAnimatedMeasure, zt as useAnimationMode, on as useBoundSyncExternalStore, en as useCallbackRef, de as useCommandButtonEntry, he as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Ct as useCommandFocusRestore, at as useCommandOrder, ke as useCommandRegistry, mt as useCommandResolver, ht as useCommandScope, kt as useCommands, Lt as useContributeCommands, ln as useDevicePixelRatio, Hn as useEditMode, Tt as useFloat, Jo as useFloatStack, Bo as useFloatSurface, hn as useFullscreen, mn as useFullscreenPortal, Un as useGlobalClipboard, eo as useId, no as useImperativeElement, On as useLanguage, jt as useLazyRetry, wn as useMouseDownAndHoldListener, Qt as useNotifier, cn as useOnClickOrFocusAway, sn as useOptionalBoundSyncExternalStore, nn as useOptionalSyncExternalStore, xr as usePersistenceState, Mo as useResolvedThemeMode, bn as useSynchronizedPointerHandler, yn as useTextSelectionDrag, Yn as useTextareaCaretRect, Lo as useTokenThemeContext, ei as useTouchThumbFrame, Xn as useTraceUpdate, Kr as useTrackDrag, Fn as useTranslator };