@sheetxl/utils-react 0.8.0-beta.22 → 0.8.0-beta.23

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,34 +1,34 @@
1
1
  /**
2
- * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.22
2
+ * @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: MIT
6
6
  */
7
7
  import { CommonUtils as e, DefaultLanguagePackService as t, ExpectedError as n, InternalClipboard as o, Notifier as r, TimerUtils as i, fetchLocaleResourceAll as s, formatMessage as l, loadPackageLocales as a, mergeMessageFiles as c, onResourceRootsChange as u, resolveLocaleChain as h } 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, lazy as b, memo as w, useCallback as x, useContext as S, useEffect as M, useId as E, useImperativeHandle as C, useLayoutEffect as L, useMemo as T, useReducer as k, useRef as z, useState as A, useSyncExternalStore as D } from "react";
10
- import { Fragment as P, jsx as R, jsxs as $ } from "react/jsx-runtime";
11
- import * as B from "detect-it";
12
- import { createRoot as O } from "react-dom/client";
13
- import { createPortal as H, unstable_batchedUpdates as I } from "react-dom";
14
- import { useMergeRefs as N } from "react-merge-refs";
15
- import F from "clsx";
16
- import { autoUpdate as W, flip as K, offset as V, shift as j, size as Y, useFloating as X } from "@floating-ui/react-dom";
17
- import { DraggableCore as Z } from "react-draggable";
18
- import q from "prop-types";
19
- var U = Object.defineProperty, G = (e, t) => {
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 M, useImperativeHandle as E, useLayoutEffect as C, useMemo as L, useReducer as T, useRef as k, useState as z, useSyncExternalStore as A } from "react";
10
+ import { Fragment as D, jsx as P, jsxs as R } from "react/jsx-runtime";
11
+ import * as $ from "detect-it";
12
+ import { createRoot as B } from "react-dom/client";
13
+ import { createPortal as H, unstable_batchedUpdates as O } from "react-dom";
14
+ import { useMergeRefs as I } from "react-merge-refs";
15
+ import N from "clsx";
16
+ import { autoUpdate as F, flip as W, offset as K, shift as V, size as j, useFloating as Y } from "@floating-ui/react-dom";
17
+ import { DraggableCore as X } from "react-draggable";
18
+ import Z from "prop-types";
19
+ var q = Object.defineProperty, U = (e, t) => {
20
20
  let n = {};
21
- for (var o in e) U(n, o, {
21
+ for (var o in e) q(n, o, {
22
22
  get: e[o],
23
23
  enumerable: !0
24
24
  });
25
- return t || U(n, Symbol.toStringTag, { value: "Module" }), n;
26
- }, J = {
25
+ return t || q(n, Symbol.toStringTag, { value: "Module" }), n;
26
+ }, G = {
27
27
  Shift: "shift",
28
28
  Alt: "alt",
29
29
  Ctrl: "ctrl",
30
30
  Meta: "meta"
31
- }, Q = {
31
+ }, J = {
32
32
  BackSpace: 8,
33
33
  Tab: 9,
34
34
  Clear: 12,
@@ -73,15 +73,15 @@ var U = Object.defineProperty, G = (e, t) => {
73
73
  BracketRight: 221,
74
74
  BracketLeft: 219,
75
75
  Composition: 229
76
- }, ee = {
76
+ }, Q = {
77
77
  Left: 1,
78
78
  Middle: 2,
79
79
  Right: 3
80
- }, te = {
80
+ }, ee = {
81
81
  Toolbar: "toolbar",
82
82
  Menuitem: "menuitem"
83
- }, ne = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
84
- function oe(e, t) {
83
+ }, te = /* @__PURE__ */ new Set(["disabledReasons", "tags"]);
84
+ function ne(e, t) {
85
85
  const n = {}, o = {}, r = t.length;
86
86
  for (let i = 0; i < r; i++) {
87
87
  const r = t[i];
@@ -90,7 +90,7 @@ function oe(e, t) {
90
90
  if ("key" === e) continue;
91
91
  const t = r[e];
92
92
  if (void 0 !== t) {
93
- if (ne.has(e) && Array.isArray(t)) {
93
+ if (te.has(e) && Array.isArray(t)) {
94
94
  const o = n[e];
95
95
  n[e] = [...t, ...o ?? []];
96
96
  } else n[e] = t;
@@ -104,7 +104,7 @@ function oe(e, t) {
104
104
  contributedBy: o
105
105
  };
106
106
  }
107
- var re = class {
107
+ var oe = class {
108
108
  constructor() {
109
109
  this._byName = /* @__PURE__ */ new Map(), this._dynamicByName = /* @__PURE__ */ new Map(), this._listeners = /* @__PURE__ */ new Set(), this._batchDepth = 0, this._batchDirty = !1, this._version = 0;
110
110
  }
@@ -176,7 +176,7 @@ var re = class {
176
176
  const n = this._byName.get(e)?.get(t);
177
177
  if (n && 0 !== n.length) return {
178
178
  key: t,
179
- ...oe(t, n.map((e) => ({
179
+ ...ne(t, n.map((e) => ({
180
180
  key: t,
181
181
  ...e.def
182
182
  }))).props
@@ -223,12 +223,12 @@ var re = class {
223
223
  _notify() {
224
224
  this._version++, this._batchDepth > 0 ? this._batchDirty = !0 : this._listeners.forEach((e) => e.onChange?.());
225
225
  }
226
- }, ie = new re(), se = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, le = (e, t) => {
226
+ }, re = new oe(), ie = (e) => e && "-" !== e ? "string" == typeof e ? e.toLowerCase() : e.key?.toLowerCase() ?? null : null, se = (e, t) => {
227
227
  if (e) {
228
228
  for (const n in e) if (n.toLowerCase() === t) return e[n];
229
229
  }
230
230
  };
231
- var ae = new class {
231
+ var le = new class {
232
232
  constructor() {
233
233
  this._items = /* @__PURE__ */ new Map(), this._version = 0, this._listeners = /* @__PURE__ */ new Set();
234
234
  }
@@ -249,13 +249,13 @@ var ae = new class {
249
249
  const r = function(e) {
250
250
  const { getLabel: n, getDescription: o, getIcon: r } = e, i = e.key, s = { ...e };
251
251
  return s.getLabel = (e) => {
252
- const o = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
252
+ const o = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (o ? r?.groupLabels?.[o] : void 0) ?? r?.label;
253
253
  return "string" == typeof s ? r?.params ? l(s, r.params, t.getActive()) : s : (o ? t.lookup(`cmd.${i}.label@${o}`) : void 0) ?? t.lookup(`cmd.${i}.label`) ?? n?.(e);
254
254
  }, s.getDescription = (e) => {
255
- const n = e && e !== i ? e : void 0, r = ie.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
255
+ const n = e && e !== i ? e : void 0, r = re.findByKey(i)?.def, s = (n ? r?.groupDescriptions?.[n] : void 0) ?? r?.description;
256
256
  return "string" == typeof s ? r?.params ? l(s, r.params, t.getActive()) : s : (n ? t.lookup(`cmd.${i}.desc@${n}`) : void 0) ?? t.lookup(`cmd.${i}.desc`) ?? o?.(e);
257
257
  }, s.getIcon = (e) => {
258
- const t = e && e !== i ? e : void 0, n = ie.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
258
+ const t = e && e !== i ? e : void 0, n = re.findByKey(i)?.def, o = (t ? n?.groupIcons?.[t] : void 0) ?? n?.icon;
259
259
  return "string" == typeof o ? o : r ? r(e) : void 0;
260
260
  }, s;
261
261
  }(e);
@@ -275,7 +275,7 @@ var ae = new class {
275
275
  if (!n || !Array.isArray(n.members)) return null;
276
276
  const o = n.members, r = /* @__PURE__ */ new Set();
277
277
  for (const e of o) {
278
- const t = se(e);
278
+ const t = ie(e);
279
279
  t && r.add(t);
280
280
  }
281
281
  const i = [];
@@ -284,7 +284,7 @@ var ae = new class {
284
284
  const n = e.key;
285
285
  if (!n || n.toLowerCase() === t) continue;
286
286
  if (r.has(n.toLowerCase())) continue;
287
- const o = le(e.contributions, t);
287
+ const o = se(e.contributions, t);
288
288
  o && i.push({
289
289
  key: n,
290
290
  placement: o,
@@ -302,7 +302,7 @@ var ae = new class {
302
302
  const t = e.placement.order ?? 0;
303
303
  let n;
304
304
  if (e.placement.anchor) {
305
- const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => se(e) === r);
305
+ const r = e.placement.anchor.toLowerCase(), i = o.findIndex((e) => ie(e) === r);
306
306
  n = i >= 0 ? i : t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
307
307
  } else n = t < 0 ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
308
308
  l.push({
@@ -318,34 +318,34 @@ var ae = new class {
318
318
  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("-");
319
319
  return a;
320
320
  }
321
- }(), ce = g(null);
322
- function ue() {
323
- return D((e) => {
324
- const n = t.addChangeListener(e), o = ie.addListener({ onChange: e }), r = ae.addListener({ onChange: e });
321
+ }(), ae = g(null);
322
+ function ce() {
323
+ return A((e) => {
324
+ const n = t.addChangeListener(e), o = re.addListener({ onChange: e }), r = le.addListener({ onChange: e });
325
325
  return () => {
326
326
  n(), o(), r();
327
327
  };
328
- }, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`, () => `${t.getActive()}:${ie.getVersion()}:${ae.getVersion()}`), S(ce) ?? ae;
328
+ }, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`, () => `${t.getActive()}:${re.getVersion()}:${le.getVersion()}`), S(ae) ?? le;
329
329
  }
330
- function he({ registry: e = ae, children: t }) {
331
- return R(ce.Provider, {
330
+ function ue({ registry: e = le, children: t }) {
331
+ return P(ae.Provider, {
332
332
  value: e,
333
333
  children: t
334
334
  });
335
335
  }
336
- function de(e) {
337
- return ue().get(e);
336
+ function he(e) {
337
+ return ce().get(e);
338
338
  }
339
- var fe = w((e) => {
340
- const { entryKey: t, groupKey: n, fallback: o } = e, r = de(t);
341
- return R(P, { children: r?.getLabel?.(n) ?? o ?? t });
339
+ var de = w((e) => {
340
+ const { entryKey: t, groupKey: n, fallback: o } = e, r = he(t);
341
+ return P(D, { children: r?.getLabel?.(n) ?? o ?? t });
342
342
  });
343
- fe.displayName = "CommandButtonEntryLabel";
344
- var pe = "quickAction";
345
- function me(e, t) {
343
+ de.displayName = "CommandButtonEntryLabel";
344
+ var fe = "quickAction";
345
+ function pe(e, t) {
346
346
  return "function" == typeof e ? e("function" == typeof t ? t() : t) : e;
347
347
  }
348
- function ge(e, n) {
348
+ function me(e, n) {
349
349
  const { key: o, props: r, contributedBy: i } = e, s = r.callback, a = () => r.disabledReasons ?? [], c = () => a().length > 0 || !s, u = {
350
350
  contributedBy: i,
351
351
  getKey: () => o,
@@ -353,16 +353,16 @@ function ge(e, n) {
353
353
  getTarget: () => "function" == typeof r.target ? r.target() : r.target,
354
354
  getState: () => r.state,
355
355
  getLabel: (e) => {
356
- const n = me((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
356
+ const n = pe((void 0 !== e ? r.groupLabels?.[e] : void 0) ?? r.label, r.context);
357
357
  return r.params && void 0 !== n ? l(n, r.params, t.getActive()) : n;
358
358
  },
359
359
  getDescription: (e) => {
360
- const n = me((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
360
+ const n = pe((void 0 !== e ? r.groupDescriptions?.[e] : void 0) ?? r.description, r.context);
361
361
  return r.params && void 0 !== n ? l(n, r.params, t.getActive()) : n;
362
362
  },
363
- getTags: () => me(r.tags, r.context),
364
- getIcon: (e) => me((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
365
- getShortcut: () => me(r.shortcut, r.context),
363
+ getTags: () => pe(r.tags, r.context),
364
+ getIcon: (e) => pe((void 0 !== e ? r.groupIcons?.[e] : void 0) ?? r.icon, r.context),
365
+ getShortcut: () => pe(r.shortcut, r.context),
366
366
  disabledReasons: a,
367
367
  disabled: c,
368
368
  execute: async (e) => {
@@ -383,39 +383,39 @@ function ge(e, n) {
383
383
  };
384
384
  return u;
385
385
  }
386
- var _e = [
386
+ var ge = [
387
387
  "ctrl",
388
388
  "shift",
389
389
  "alt",
390
390
  "meta"
391
- ], ve = new Set(_e);
392
- function ye(e) {
391
+ ], _e = new Set(ge);
392
+ function ve(e) {
393
393
  const t = e.split("+"), n = t[t.length - 1], o = [];
394
394
  for (let e = 0; e < t.length - 1; e++) {
395
395
  const n = t[e].toLowerCase();
396
- ve.has(n) && o.push(n);
396
+ _e.has(n) && o.push(n);
397
397
  }
398
398
  return o.length ? {
399
399
  key: n,
400
400
  modifiers: o
401
401
  } : { key: n };
402
402
  }
403
- function be(e) {
404
- return [...(e.modifiers ?? []).slice().sort((e, t) => _e.indexOf(e) - _e.indexOf(t)), e.key].join("+");
403
+ function ye(e) {
404
+ return [...(e.modifiers ?? []).slice().sort((e, t) => ge.indexOf(e) - ge.indexOf(t)), e.key].join("+");
405
405
  }
406
- function we(e) {
406
+ function be(e) {
407
407
  return e;
408
408
  }
409
- async function xe(e) {
409
+ async function we(e) {
410
410
  const t = await fetch(e);
411
411
  if (!t.ok) throw new Error(`Failed to fetch command catalog '${String(e)}': ${t.status} ${t.statusText}`);
412
412
  return await t.json();
413
413
  }
414
- function Se(e) {
414
+ function xe(e) {
415
415
  const t = {};
416
- 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;
416
+ 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(ve) : ve(e.shortcut)), void 0 !== e.tags && (t.tags = e.tags), void 0 !== e.params && (t.params = e.params), t;
417
417
  }
418
- function Me(e, t) {
418
+ function Se(e, t) {
419
419
  return t ? e ? {
420
420
  ...e,
421
421
  ...t,
@@ -433,7 +433,7 @@ function Me(e, t) {
433
433
  } : void 0
434
434
  } : t : e ?? {};
435
435
  }
436
- function Ee(e = ie) {
436
+ function Me(e = re) {
437
437
  const n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
438
438
  let d = t.getActive();
439
439
  function f(e) {
@@ -476,7 +476,7 @@ function Ee(e = ie) {
476
476
  let o = t.contributors.get(n);
477
477
  o || (o = (e) => {
478
478
  const o = g(t);
479
- if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, Se(i));
479
+ if (o) for (const [r, i] of Object.entries(o.commands)) (n === t.scope || i.borrow?.includes(n)) && e.updateCommand(r, xe(i));
480
480
  }, t.contributors.set(n, o)), e.registerStatic(n, o);
481
481
  }
482
482
  });
@@ -520,7 +520,7 @@ function Ee(e = ie) {
520
520
  for (const o of i) {
521
521
  const i = h(o, r), l = /* @__PURE__ */ new Map();
522
522
  for (const e of [...i].reverse()) for (const t of r[e]?.catalogs ?? []) l.set(`${t.scope}\0${t.sourceId}`, t);
523
- for (const t of l.values()) y(t.scope, o, async () => f((await Promise.all([...i].reverse().map((o) => s(e, `${o}/${t.file}`, n)))).flat().map(we).reverse()), { sourceId: t.sourceId });
523
+ for (const t of l.values()) y(t.scope, o, async () => f((await Promise.all([...i].reverse().map((o) => s(e, `${o}/${t.file}`, n)))).flat().map(be).reverse()), { sourceId: t.sourceId });
524
524
  r[o].messages?.length && t.registerMessages(e, o, async () => {
525
525
  const t = await Promise.all([...i].reverse().map((t) => c(e, t, r[t]?.messages ?? [], n)));
526
526
  return Object.assign({}, ...t);
@@ -561,11 +561,11 @@ function Ee(e = ie) {
561
561
  dispose: () => S()
562
562
  };
563
563
  }
564
- var Ce = Ee(), Le = g(null);
565
- function Te() {
566
- return S(Le);
564
+ var Ee = Me(), Ce = g(null);
565
+ function Le() {
566
+ return S(Ce);
567
567
  }
568
- var ke = class e {
568
+ var Te = class e {
569
569
  constructor(e, t = null, n) {
570
570
  this._children = /* @__PURE__ */ new Map(), this._defs = /* @__PURE__ */ new Map(), this._layers = /* @__PURE__ */ new Map(), this._layerSeq = 0, this._middleware = [], this._version = 0, this._resolveCache = /* @__PURE__ */ new WeakMap(), this._resolveCacheVersion = -1, this._listeners = /* @__PURE__ */ new Set(), this._notifyPending = !1, this._notifyDirty = !1, 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() }));
571
571
  }
@@ -623,7 +623,7 @@ var ke = class e {
623
623
  let n = e;
624
624
  for (; n;) {
625
625
  const e = t.get(n);
626
- if (e) return ze(e) ?? void 0;
626
+ if (e) return ke(e) ?? void 0;
627
627
  n = n.parentElement;
628
628
  }
629
629
  }
@@ -780,7 +780,7 @@ var ke = class e {
780
780
  }
781
781
  let _;
782
782
  if (m.length > 0) {
783
- const t = oe(e, m), n = t.contributedBy.callback;
783
+ const t = ne(e, m), n = t.contributedBy.callback;
784
784
  if (t.props.callback && void 0 !== n) {
785
785
  const e = g[n]?.getMiddleware();
786
786
  if (e && e.length > 0) {
@@ -789,7 +789,7 @@ var ke = class e {
789
789
  t.props.callback = n;
790
790
  }
791
791
  }
792
- _ = ge(t, () => i._executeListeners.get(e));
792
+ _ = me(t, () => i._executeListeners.get(e));
793
793
  }
794
794
  return l || f || c.set(e, _), _;
795
795
  }
@@ -801,14 +801,14 @@ var ke = class e {
801
801
  if (n._resolveStaticCache.has(r)) return n._resolveStaticCache.get(r);
802
802
  const i = o.findByKey(e, t);
803
803
  let s;
804
- if (i) s = ge(oe(e, [i.def]), () => n._executeListeners.get(e));
804
+ if (i) s = me(ne(e, [i.def]), () => n._executeListeners.get(e));
805
805
  return n._resolveStaticCache.set(r, s), s;
806
806
  }
807
807
  };
808
- function ze(e) {
809
- return e ? e instanceof ke ? e : "function" == typeof e ? e() : e.getAnchor() : null;
808
+ function ke(e) {
809
+ return e ? e instanceof Te ? e : "function" == typeof e ? e() : e.getAnchor() : null;
810
810
  }
811
- var Ae = class {
811
+ var ze = class {
812
812
  constructor(e = null) {
813
813
  this._listeners = /* @__PURE__ */ new Set(), this._current = e;
814
814
  }
@@ -823,7 +823,7 @@ var Ae = class {
823
823
  this._listeners.delete(e);
824
824
  };
825
825
  }
826
- }, De = class {
826
+ }, Ae = class {
827
827
  constructor(e) {
828
828
  this._scope = e;
829
829
  }
@@ -833,7 +833,7 @@ var Ae = class {
833
833
  subscribe() {
834
834
  return () => {};
835
835
  }
836
- }, Pe = class {
836
+ }, De = class {
837
837
  constructor(e, t) {
838
838
  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) => {
839
839
  null != e && this._seed(e);
@@ -857,7 +857,7 @@ var Ae = class {
857
857
  }
858
858
  }
859
859
  getAnchor() {
860
- return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), ze(this._current);
860
+ return this._currentElement && !this._currentElement.isConnected && (this._current = null, this._currentElement = null, this._recall && !this._recallPending && (this._recallPending = !0, Promise.resolve().then(() => this._invokeRecall()))), ke(this._current);
861
861
  }
862
862
  getElement() {
863
863
  return this._rootElement;
@@ -893,7 +893,7 @@ var Ae = class {
893
893
  }
894
894
  }
895
895
  findScope(e) {
896
- return ze(this.findSource(e) ?? null) ?? void 0;
896
+ return ke(this.findSource(e) ?? null) ?? void 0;
897
897
  }
898
898
  attach(e) {
899
899
  this._rootElement = e;
@@ -911,7 +911,7 @@ var Ae = class {
911
911
  _notify() {
912
912
  this._listeners.forEach((e) => e());
913
913
  }
914
- }, Re = class {
914
+ }, Pe = class {
915
915
  constructor(e) {
916
916
  this._layers = [], this._listeners = /* @__PURE__ */ new Set(), this._base = e, this._top = e;
917
917
  }
@@ -942,25 +942,25 @@ var Ae = class {
942
942
  this._listeners.delete(e);
943
943
  };
944
944
  }
945
- }, $e = G({
946
- EmptyCssProperties: () => Oe,
947
- createSyntheticEvent: () => qe,
948
- detectIt: () => Fe,
949
- edgeCenter: () => Xe,
950
- edgeTrailingShift: () => Ye,
951
- focusableNodeNames: () => Be,
952
- getDevicePixelRatio: () => We,
953
- isEditable: () => Ie,
954
- replaceRangeText: () => Ne,
955
- snapDeviceEdge: () => Ve,
956
- snapDeviceWidth: () => Ke,
957
- snapLineCenter: () => je,
958
- toPrettyKeyCode: () => Ze
959
- }), Be = /* @__PURE__ */ new Set([
945
+ }, Re = U({
946
+ EmptyCssProperties: () => Be,
947
+ createSyntheticEvent: () => Ze,
948
+ detectIt: () => Ne,
949
+ edgeCenter: () => Ye,
950
+ edgeTrailingShift: () => je,
951
+ focusableNodeNames: () => $e,
952
+ getDevicePixelRatio: () => Fe,
953
+ isEditable: () => Oe,
954
+ replaceRangeText: () => Ie,
955
+ snapDeviceEdge: () => Ke,
956
+ snapDeviceWidth: () => We,
957
+ snapLineCenter: () => Ve,
958
+ toPrettyKeyCode: () => Xe
959
+ }), $e = /* @__PURE__ */ new Set([
960
960
  "INPUT",
961
961
  "TEXTAREA",
962
962
  "SELECT"
963
- ]), Oe = {}, He = /* @__PURE__ */ new Set([
963
+ ]), Be = {}, He = /* @__PURE__ */ new Set([
964
964
  "button",
965
965
  "checkbox",
966
966
  "radio",
@@ -972,41 +972,41 @@ var Ae = class {
972
972
  "image",
973
973
  "hidden"
974
974
  ]);
975
- function Ie(e) {
975
+ function Oe(e) {
976
976
  if (!e) return !1;
977
977
  const t = e.tagName;
978
978
  return "TEXTAREA" === t || ("INPUT" === t ? !He.has(e.type) : !0 === e.isContentEditable);
979
979
  }
980
- function Ne(e, t, n, o) {
980
+ function Ie(e, t, n, o) {
981
981
  e.setSelectionRange(t, n);
982
982
  try {
983
983
  if ("undefined" != typeof document && document.activeElement === e && "function" == typeof document.execCommand && document.execCommand("insertText", !1, o)) return !0;
984
984
  } catch {}
985
985
  return e.setRangeText(o, t, n, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
986
986
  }
987
- function Fe() {
988
- return B;
987
+ function Ne() {
988
+ return $;
989
989
  }
990
- function We() {
990
+ function Fe() {
991
991
  return "undefined" != typeof window && window.devicePixelRatio || 1;
992
992
  }
993
- function Ke(e, t = We()) {
993
+ function We(e, t = Fe()) {
994
994
  return Math.max(1, Math.round(e * t)) / t;
995
995
  }
996
- function Ve(e, t = We()) {
996
+ function Ke(e, t = Fe()) {
997
997
  return Math.round(e * t) / t;
998
998
  }
999
- function je(e, t = 1, n = We()) {
999
+ function Ve(e, t = 1, n = Fe()) {
1000
1000
  const o = Math.max(1, Math.round(t * n)) % 2 * .5;
1001
1001
  return (Math.round(e * n - o) + o) / n;
1002
1002
  }
1003
- function Ye(e, t, n = We()) {
1003
+ function je(e, t, n = Fe()) {
1004
1004
  return Math.round(t) % 2 == 0 && "trailing" === e ? 1 / n : 0;
1005
1005
  }
1006
- function Xe(e, t, n, o = We()) {
1007
- return je(e + Ye(t, n, o), n / o, o);
1006
+ function Ye(e, t, n, o = Fe()) {
1007
+ return Ve(e + je(t, n, o), n / o, o);
1008
1008
  }
1009
- var Ze = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), qe = (e, t) => {
1009
+ var Xe = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camelToPrettyCase(t), Ze = (e, t) => {
1010
1010
  let n = !1, o = !1;
1011
1011
  const r = {
1012
1012
  nativeEvent: e,
@@ -1032,7 +1032,7 @@ var Ze = (t) => "BracketLeft" === t ? "[" : "BracketRight" === t ? "]" : e.camel
1032
1032
  for (const t in e) t in r || "function" == typeof e[t] || (r[t] = e[t]);
1033
1033
  return r;
1034
1034
  };
1035
- function Ue(e, t, n) {
1035
+ function qe(e, t, n) {
1036
1036
  if (!globalThis.__sxlKeyDebug) return;
1037
1037
  const o = e.target, r = [
1038
1038
  e.ctrlKey && "ctrl",
@@ -1046,11 +1046,11 @@ function Ue(e, t, n) {
1046
1046
  const t = e.type ? `[type=${e.type}]` : "", n = e.getAttribute?.("class")?.split(" ").slice(0, 2).join(".") ?? "";
1047
1047
  return `${e.tagName.toLowerCase()}${t}${n ? "." + n : ""}`;
1048
1048
  })(o),
1049
- editable: Ie(o),
1049
+ editable: Oe(o),
1050
1050
  delivery: e.nativeEvent ? "synthetic" : "native"
1051
1051
  });
1052
1052
  }
1053
- var Ge = /* @__PURE__ */ new Set([
1053
+ var Ue = /* @__PURE__ */ new Set([
1054
1054
  "Backspace",
1055
1055
  "Delete",
1056
1056
  "Insert",
@@ -1063,10 +1063,10 @@ var Ge = /* @__PURE__ */ new Set([
1063
1063
  "ArrowUp",
1064
1064
  "ArrowDown"
1065
1065
  ]);
1066
- function Je(e) {
1067
- return Ge.has(e.key);
1066
+ function Ge(e) {
1067
+ return Ue.has(e.key);
1068
1068
  }
1069
- var Qe = class {
1069
+ var Je = class {
1070
1070
  constructor(e) {
1071
1071
  this._lastEvent = null, this._resolver = e;
1072
1072
  }
@@ -1084,12 +1084,12 @@ var Qe = class {
1084
1084
  return t && "number" == typeof t.nodeType ? t : null;
1085
1085
  }
1086
1086
  dispatch(e) {
1087
- if (this._lastEvent === e) return Ue(e, null, "de-duped (reached dispatch again)"), !1;
1087
+ if (this._lastEvent === e) return qe(e, null, "de-duped (reached dispatch again)"), !1;
1088
1088
  this._lastEvent = e;
1089
1089
  const t = this.findKey(e);
1090
- if (!t) return Ue(e, null, "unmatched"), !1;
1090
+ if (!t) return qe(e, null, "unmatched"), !1;
1091
1091
  const n = this._resolver.resolve(t, this._eventOrigin(e));
1092
- return n ? n.disabled() ? (Ue(e, t, "disabled"), !1) : (Ue(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (Ue(e, t, "unresolved at this origin"), !1);
1092
+ return n ? n.disabled() ? (qe(e, t, "disabled"), !1) : (qe(e, t, "EXECUTED"), e.preventDefault(), e.stopPropagation(), n.execute(), !0) : (qe(e, t, "unresolved at this origin"), !1);
1093
1093
  }
1094
1094
  attach(e) {
1095
1095
  const t = (e) => {
@@ -1108,29 +1108,29 @@ var Qe = class {
1108
1108
  return e;
1109
1109
  }
1110
1110
  _eventCandidates(e) {
1111
- return tt(e);
1111
+ return et(e);
1112
1112
  }
1113
1113
  _shortcutString(e) {
1114
- return et(e);
1114
+ return Qe(e);
1115
1115
  }
1116
1116
  };
1117
- function et(e) {
1117
+ function Qe(e) {
1118
1118
  const t = e.modifiers ?? [];
1119
- return nt(t.includes(J.Ctrl) || t.includes(J.Meta), t.includes(J.Alt), t.includes(J.Shift)) + ot(e.key);
1119
+ return tt(t.includes(G.Ctrl) || t.includes(G.Meta), t.includes(G.Alt), t.includes(G.Shift)) + nt(e.key);
1120
1120
  }
1121
- function tt(e) {
1122
- const t = nt(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1123
- return /* @__PURE__ */ new Set([t + ot(e.code), t + ot(e.key)]);
1121
+ function et(e) {
1122
+ const t = tt(e.ctrlKey || e.metaKey, e.altKey, e.shiftKey);
1123
+ return /* @__PURE__ */ new Set([t + nt(e.code), t + nt(e.key)]);
1124
1124
  }
1125
- function nt(e, t, n) {
1125
+ function tt(e, t, n) {
1126
1126
  return (e ? "mod+" : "") + (t ? "alt+" : "") + (n ? "shift+" : "");
1127
1127
  }
1128
- function ot(e) {
1128
+ function nt(e) {
1129
1129
  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 : "";
1130
1130
  }
1131
- var rt = class {
1131
+ var ot = class {
1132
1132
  constructor(e, t, n) {
1133
- 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);
1133
+ 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 Je(this);
1134
1134
  }
1135
1135
  connect() {
1136
1136
  this._connected || (this._connected = !0, this._unsubs = [this.scope.addListener({ onChange: () => this._emit() }), this._tracker.subscribe(() => {
@@ -1201,19 +1201,19 @@ var rt = class {
1201
1201
  _notify() {
1202
1202
  this._version++, this._listeners.forEach((e) => e());
1203
1203
  }
1204
- }, it = g(null);
1205
- function st() {
1206
- return S(it);
1204
+ }, rt = g(null);
1205
+ function it() {
1206
+ return S(rt);
1207
1207
  }
1208
- var lt = g(0);
1209
- function at() {
1210
- return S(lt);
1208
+ var st = g(0);
1209
+ function lt() {
1210
+ return S(st);
1211
1211
  }
1212
- var ct = g(null);
1213
- function ut() {
1214
- return S(ct);
1212
+ var at = g(null);
1213
+ function ct() {
1214
+ return S(at);
1215
1215
  }
1216
- function ht(e, t) {
1216
+ function ut(e, t) {
1217
1217
  let n, o = !1;
1218
1218
  const r = () => {
1219
1219
  if (o) return;
@@ -1224,8 +1224,8 @@ function ht(e, t) {
1224
1224
  o = !0, n?.();
1225
1225
  };
1226
1226
  }
1227
- function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1228
- const a = ut(), c = st(), u = at(), h = o ?? u, d = e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null, f = T(() => e && a ? a.createChild(e.scopeName) : null, [a, d]), p = f ?? t ?? null;
1227
+ function ht({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, scopeRef: s, children: l }) {
1228
+ const a = ct(), c = it(), u = lt(), h = o ?? u, d = e ? "string" == typeof e.scopeName ? e.scopeName : e.scopeName.key : null, f = L(() => e && a ? a.createChild(e.scopeName) : null, [a, d]), p = f ?? t ?? null;
1229
1229
  M(() => {
1230
1230
  if (!f) return;
1231
1231
  const e = c ? c.register(f, h) : void 0;
@@ -1259,38 +1259,38 @@ function dt({ spec: e, scope: t, use: n, order: o, elementRef: r, region: i, sco
1259
1259
  s.current = null;
1260
1260
  };
1261
1261
  }, [s, p]);
1262
- const _ = z(null), v = r ?? _;
1263
- ft(r || "function" == typeof l ? p : null, v, i);
1264
- const y = T(() => f ? f.getRegistry()?.getDynamic(f.name) ?? [] : [], [f]);
1265
- return R(ct.Provider, {
1262
+ const _ = k(null), v = r ?? _;
1263
+ dt(r || "function" == typeof l ? p : null, v, i);
1264
+ const y = L(() => f ? f.getRegistry()?.getDynamic(f.name) ?? [] : [], [f]);
1265
+ return P(at.Provider, {
1266
1266
  value: p,
1267
- children: $(it.Provider, {
1267
+ children: R(rt.Provider, {
1268
1268
  value: f ? null : c,
1269
- children: [f && y.map((e, t) => R(e, {
1269
+ children: [f && y.map((e, t) => P(e, {
1270
1270
  scope: f,
1271
1271
  data: g
1272
1272
  }, t)), "function" == typeof l ? l(v) : l]
1273
1273
  })
1274
1274
  });
1275
1275
  }
1276
- function ft(e, t, n) {
1276
+ function dt(e, t, n) {
1277
1277
  M(() => {
1278
1278
  if (!e) return;
1279
- if (!n) return ht(t, (t) => e.attachBounds(t));
1279
+ if (!n) return ut(t, (t) => e.attachBounds(t));
1280
1280
  const o = !0 === n ? void 0 : n;
1281
- return ht(t, (t) => e.attachElement(t, o));
1281
+ return ut(t, (t) => e.attachElement(t, o));
1282
1282
  }, [
1283
1283
  e,
1284
1284
  t,
1285
1285
  n
1286
1286
  ]);
1287
1287
  }
1288
- var pt = g(null);
1289
- function mt() {
1290
- return S(pt);
1288
+ var ft = g(null);
1289
+ function pt() {
1290
+ return S(ft);
1291
1291
  }
1292
- function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1293
- const s = ut(), l = "synthetic" === n, a = T(() => s ? new rt(s, e, {
1292
+ function mt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, children: i }) {
1293
+ const s = ct(), l = "synthetic" === n, a = L(() => s ? new ot(s, e, {
1294
1294
  debounce: t,
1295
1295
  keyBindings: !l && n,
1296
1296
  root: o
@@ -1302,12 +1302,12 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1302
1302
  o
1303
1303
  ]);
1304
1304
  M(() => (a?.connect(), () => a?.dispose()), [a]);
1305
- const c = z(null), u = r ?? (l ? c : null);
1305
+ const c = k(null), u = r ?? (l ? c : null);
1306
1306
  return M(() => {
1307
- if (u && e.attach) return ht(u, (t) => e.attach(t));
1308
- }, [u, e]), R(pt.Provider, l ? {
1307
+ if (u && e.attach) return ut(u, (t) => e.attach(t));
1308
+ }, [u, e]), P(ft.Provider, l ? {
1309
1309
  value: a,
1310
- children: R("div", {
1310
+ children: P("div", {
1311
1311
  className: "sxl-command-key-seam",
1312
1312
  style: { display: "contents" },
1313
1313
  ref: c,
@@ -1321,35 +1321,35 @@ function gt({ tracker: e, debounce: t, keyBindings: n, root: o, elementRef: r, c
1321
1321
  children: i
1322
1322
  });
1323
1323
  }
1324
- function _t() {
1325
- const e = mt();
1324
+ function gt() {
1325
+ const e = pt();
1326
1326
  return x((t, n) => e ? e.execute(t, n) : Promise.resolve(!1), [e]);
1327
1327
  }
1328
- var vt = g(null);
1329
- function yt() {
1330
- return S(vt);
1328
+ var _t = g(null);
1329
+ function vt() {
1330
+ return S(_t);
1331
1331
  }
1332
- var bt = [];
1333
- function wt({ prefer: e, children: t }) {
1334
- return R(vt.Provider, {
1335
- value: e ?? bt,
1332
+ var yt = [];
1333
+ function bt({ prefer: e, children: t }) {
1334
+ return P(_t.Provider, {
1335
+ value: e ?? yt,
1336
1336
  children: t
1337
1337
  });
1338
1338
  }
1339
- var xt = g(null), St = xt.Provider;
1340
- function Mt() {
1341
- return S(xt);
1339
+ var wt = g(null), xt = wt.Provider;
1340
+ function St() {
1341
+ return S(wt);
1342
1342
  }
1343
- var Et = g(null), Ct = Et.Provider, Lt = () => S(Et), Tt = () => () => {}, kt = () => {
1344
- const e = Lt(), t = e?.getRoot();
1345
- return D(t?.subscribeOpenPopups ?? Tt, () => t?.isPopupOpenOutside(e) ?? !1, () => !1);
1343
+ var Mt = g(null), Et = Mt.Provider, Ct = () => S(Mt), Lt = () => () => {}, Tt = () => {
1344
+ const e = Ct(), t = e?.getRoot();
1345
+ return A(t?.subscribeOpenPopups ?? Lt, () => t?.isPopupOpenOutside(e) ?? !1, () => !1);
1346
1346
  };
1347
- function zt(e, t) {
1348
- const n = mt(), o = yt(), r = Array.isArray(e) ? e.join("\0") : String(e), i = T(() => Array.isArray(e) ? [...e] : [e], [r]), s = z(t);
1347
+ function kt(e, t) {
1348
+ const n = pt(), o = vt(), r = Array.isArray(e) ? e.join("\0") : String(e), i = L(() => Array.isArray(e) ? [...e] : [e], [r]), s = k(t);
1349
1349
  s.current = t;
1350
- const l = Lt(), a = z(l);
1350
+ const l = Ct(), a = k(l);
1351
1351
  a.current = l;
1352
- const c = Mt(), u = z(c);
1352
+ const c = St(), u = k(c);
1353
1353
  u.current = c;
1354
1354
  const h = x((e) => {
1355
1355
  if (!n) return () => {};
@@ -1369,8 +1369,8 @@ function zt(e, t) {
1369
1369
  return () => {
1370
1370
  for (const e of t) e();
1371
1371
  };
1372
- }, [n, i]), d = D(h, () => n ? n.getVersion() : 0, () => 0);
1373
- return T(() => n ? i.map((e) => {
1372
+ }, [n, i]), d = A(h, () => n ? n.getVersion() : 0, () => 0);
1373
+ return L(() => n ? i.map((e) => {
1374
1374
  return n.resolve(e) || (o ? n.scope.resolveStatic(e, o) : void 0);
1375
1375
  }) : i.map(() => {}), [
1376
1376
  n,
@@ -1379,8 +1379,8 @@ function zt(e, t) {
1379
1379
  o
1380
1380
  ]);
1381
1381
  }
1382
- function At(e) {
1383
- const t = ut();
1382
+ function zt(e) {
1383
+ const t = ct();
1384
1384
  M(() => {
1385
1385
  if (!t) return;
1386
1386
  const n = [];
@@ -1393,73 +1393,73 @@ function At(e) {
1393
1393
  };
1394
1394
  }, [t, e]);
1395
1395
  }
1396
- var Dt = G({
1397
- ACCUMULATE: () => ne,
1398
- CommandAnchorProvider: () => gt,
1399
- CommandButtonEntryLabel: () => fe,
1400
- CommandButtonRegistryContext: () => ce,
1401
- CommandButtonRegistryProvider: () => he,
1402
- CommandButtonType: () => te,
1403
- CommandChainContext: () => it,
1404
- CommandFallbackContext: () => vt,
1405
- CommandFallbackProvider: () => wt,
1406
- CommandFocusProvider: () => St,
1407
- CommandOrderContext: () => lt,
1408
- CommandRegistry: () => re,
1409
- CommandRegistryContext: () => Le,
1410
- CommandResolver: () => rt,
1411
- CommandResolverContext: () => pt,
1412
- CommandScope: () => ke,
1413
- CommandScopeContext: () => ct,
1414
- CommandScopeProvider: () => dt,
1415
- ConstantActivation: () => De,
1416
- DefaultCommandButtonRegistry: () => ae,
1417
- DefaultCommandCatalogService: () => Ce,
1418
- DefaultCommandRegistry: () => ie,
1419
- FocusActivation: () => Pe,
1420
- KeyBindingDispatcher: () => Qe,
1421
- LayerActivation: () => Re,
1422
- ManualActivation: () => Ae,
1423
- QUICK_ACTION_TAG: () => pe,
1424
- asCommandCatalog: () => we,
1425
- attachWhenReady: () => ht,
1426
- chromeToPartial: () => Se,
1427
- createCommandCatalogService: () => Ee,
1428
- createResolvedCommand: () => ge,
1429
- fetchCatalog: () => xe,
1430
- isCaretKey: () => Je,
1431
- keyEventCanonicals: () => tt,
1432
- keyStrokeToCanonical: () => et,
1433
- mergeChrome: () => Me,
1434
- parseShortcutString: () => ye,
1435
- reduceDefinitions: () => oe,
1436
- resolveAnchorSource: () => ze,
1437
- serializeShortcut: () => be,
1438
- useCommandButtonEntry: () => de,
1439
- useCommandButtonRegistry: () => ue,
1440
- useCommandChain: () => st,
1441
- useCommandElement: () => ft,
1442
- useCommandExecute: () => _t,
1443
- useCommandFallback: () => yt,
1444
- useCommandFocusRestore: () => Mt,
1445
- useCommandOrder: () => at,
1446
- useCommandRegistry: () => Te,
1447
- useCommandResolver: () => mt,
1448
- useCommandScope: () => ut,
1449
- useCommands: () => zt,
1450
- useContributeCommands: () => At
1451
- }), Pt = "idle", Rt = g({
1396
+ var At = U({
1397
+ ACCUMULATE: () => te,
1398
+ CommandAnchorProvider: () => mt,
1399
+ CommandButtonEntryLabel: () => de,
1400
+ CommandButtonRegistryContext: () => ae,
1401
+ CommandButtonRegistryProvider: () => ue,
1402
+ CommandButtonType: () => ee,
1403
+ CommandChainContext: () => rt,
1404
+ CommandFallbackContext: () => _t,
1405
+ CommandFallbackProvider: () => bt,
1406
+ CommandFocusProvider: () => xt,
1407
+ CommandOrderContext: () => st,
1408
+ CommandRegistry: () => oe,
1409
+ CommandRegistryContext: () => Ce,
1410
+ CommandResolver: () => ot,
1411
+ CommandResolverContext: () => ft,
1412
+ CommandScope: () => Te,
1413
+ CommandScopeContext: () => at,
1414
+ CommandScopeProvider: () => ht,
1415
+ ConstantActivation: () => Ae,
1416
+ DefaultCommandButtonRegistry: () => le,
1417
+ DefaultCommandCatalogService: () => Ee,
1418
+ DefaultCommandRegistry: () => re,
1419
+ FocusActivation: () => De,
1420
+ KeyBindingDispatcher: () => Je,
1421
+ LayerActivation: () => Pe,
1422
+ ManualActivation: () => ze,
1423
+ QUICK_ACTION_TAG: () => fe,
1424
+ asCommandCatalog: () => be,
1425
+ attachWhenReady: () => ut,
1426
+ chromeToPartial: () => xe,
1427
+ createCommandCatalogService: () => Me,
1428
+ createResolvedCommand: () => me,
1429
+ fetchCatalog: () => we,
1430
+ isCaretKey: () => Ge,
1431
+ keyEventCanonicals: () => et,
1432
+ keyStrokeToCanonical: () => Qe,
1433
+ mergeChrome: () => Se,
1434
+ parseShortcutString: () => ve,
1435
+ reduceDefinitions: () => ne,
1436
+ resolveAnchorSource: () => ke,
1437
+ serializeShortcut: () => ye,
1438
+ useCommandButtonEntry: () => he,
1439
+ useCommandButtonRegistry: () => ce,
1440
+ useCommandChain: () => it,
1441
+ useCommandElement: () => dt,
1442
+ useCommandExecute: () => gt,
1443
+ useCommandFallback: () => vt,
1444
+ useCommandFocusRestore: () => St,
1445
+ useCommandOrder: () => lt,
1446
+ useCommandRegistry: () => Le,
1447
+ useCommandResolver: () => pt,
1448
+ useCommandScope: () => ct,
1449
+ useCommands: () => kt,
1450
+ useContributeCommands: () => zt
1451
+ }), Dt = "idle", Pt = g({
1452
1452
  mode: "idle",
1453
1453
  interrupt: () => {}
1454
1454
  });
1455
- function $t() {
1456
- return S(Rt);
1455
+ function Rt() {
1456
+ return S(Pt);
1457
1457
  }
1458
- function Bt({ children: e }) {
1459
- const t = $t(), [n, o] = A(Pt), r = z(null), i = x(() => {
1460
- o(Pt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Pt), 400);
1458
+ function $t({ children: e }) {
1459
+ const t = Rt(), [n, o] = z(Dt), r = k(null), i = x(() => {
1460
+ o(Dt), null !== r.current && clearTimeout(r.current), r.current = setTimeout(() => o(Dt), 400);
1461
1461
  }, []), s = "interrupted" === n || "interrupted" === t?.mode ? "interrupted" : "idle";
1462
- return R(Rt.Provider, {
1462
+ return P(Pt.Provider, {
1463
1463
  value: {
1464
1464
  mode: s,
1465
1465
  interrupt: i
@@ -1467,7 +1467,7 @@ function Bt({ children: e }) {
1467
1467
  children: e
1468
1468
  });
1469
1469
  }
1470
- var Ot = {
1470
+ var Bt = {
1471
1471
  Default: "default",
1472
1472
  Error: "error",
1473
1473
  Success: "success",
@@ -1478,10 +1478,10 @@ function Ht(e = () => {}, t = () => {}, n = () => {}) {
1478
1478
  const o = () => e();
1479
1479
  return o.setProgress = t, o.setMessage = n, o;
1480
1480
  }
1481
- function It() {
1481
+ function Ot() {
1482
1482
  return Ht();
1483
1483
  }
1484
- var Nt = [
1484
+ var It = [
1485
1485
  "debug",
1486
1486
  "log",
1487
1487
  "warn",
@@ -1492,9 +1492,9 @@ var Nt = [
1492
1492
  "showWindow",
1493
1493
  "showOptions",
1494
1494
  "showInput"
1495
- ], Ft = (...e) => {
1495
+ ], Nt = (...e) => {
1496
1496
  const t = {};
1497
- for (const n of Nt) for (const o of e) {
1497
+ for (const n of It) for (const o of e) {
1498
1498
  const e = o?.[n];
1499
1499
  if ("function" == typeof e) {
1500
1500
  t[n] = e.bind(o);
@@ -1502,47 +1502,47 @@ var Nt = [
1502
1502
  }
1503
1503
  }
1504
1504
  return t;
1505
- }, Wt = {
1505
+ }, Ft = {
1506
1506
  debug: (e, t) => r.debug(e, t),
1507
1507
  log: (e, t) => r.log(e, t),
1508
1508
  warn: (e, t) => r.warn(e, t),
1509
1509
  error: (e, t) => r.error(e, t),
1510
1510
  showMessage: () => {},
1511
1511
  showError: (e) => r.error(e),
1512
- showBusy: () => Promise.resolve(It()),
1512
+ showBusy: () => Promise.resolve(Ot()),
1513
1513
  showWindow: () => Promise.resolve(document.createElement("div")),
1514
1514
  showOptions: () => Promise.resolve(""),
1515
1515
  showInput: () => Promise.resolve({
1516
1516
  input: "",
1517
1517
  option: ""
1518
1518
  })
1519
- }, Kt = g(e.EmptyObject), Vt = ({ children: e, notifier: t }) => {
1520
- const n = S(Kt), o = T(() => Ft(n, t), [n, t]);
1521
- return _(Kt.Provider, { value: o }, e);
1522
- }, jt = () => {
1523
- const e = S(Kt);
1524
- return T(() => Ft(e, Wt), [e]);
1525
- }, Yt = (e, t) => {
1526
- const n = x((...t) => e?.(...t), t), o = z(null);
1519
+ }, Wt = g(e.EmptyObject), Kt = ({ children: e, notifier: t }) => {
1520
+ const n = S(Wt), o = L(() => Nt(n, t), [n, t]);
1521
+ return _(Wt.Provider, { value: o }, e);
1522
+ }, Vt = () => {
1523
+ const e = S(Wt);
1524
+ return L(() => Nt(e, Ft), [e]);
1525
+ }, jt = (e, t) => {
1526
+ const n = x((...t) => e?.(...t), t), o = k(null);
1527
1527
  o.current = n;
1528
1528
  const r = x((...e) => o.current?.(...e), []);
1529
1529
  if (o.current) return r;
1530
- }, Xt = () => {};
1531
- function Zt(e, t) {
1532
- const n = x((t) => e ? e(t) : Xt, [e]), o = x(() => t ? t() : null, [t]);
1533
- return D(n, o, o);
1530
+ }, Yt = () => {};
1531
+ function Xt(e, t) {
1532
+ const n = x((t) => e ? e(t) : Yt, [e]), o = x(() => t ? t() : null, [t]);
1533
+ return A(n, o, o);
1534
1534
  }
1535
- function qt(e, t) {
1535
+ function Zt(e, t) {
1536
1536
  const n = x((t) => e.subscribe(t), [e]), o = x(() => t(e), [e, t]);
1537
- return D(n, o, o);
1537
+ return A(n, o, o);
1538
1538
  }
1539
- var Ut = () => {};
1540
- function Gt(e, t) {
1541
- const n = x((t) => e ? e.subscribe(t) : Ut, [e]), o = x(() => e ? t(e) : null, [e, t]);
1542
- return D(n, o, o);
1539
+ var qt = () => {};
1540
+ function Ut(e, t) {
1541
+ const n = x((t) => e ? e.subscribe(t) : qt, [e]), o = x(() => e ? t(e) : null, [e, t]);
1542
+ return A(n, o, o);
1543
1543
  }
1544
- function Jt(e) {
1545
- const [t, n] = A("undefined" != typeof window ? window.devicePixelRatio : 1), o = z(null);
1544
+ function Gt(e) {
1545
+ const [t, n] = z("undefined" != typeof window ? window.devicePixelRatio : 1), o = k(null);
1546
1546
  return M(() => {
1547
1547
  if ("undefined" == typeof window || !("matchMedia" in window)) return;
1548
1548
  const e = () => {
@@ -1560,13 +1560,13 @@ function Jt(e) {
1560
1560
  };
1561
1561
  }, [e]), t;
1562
1562
  }
1563
- function Qt(e) {
1563
+ function Jt(e) {
1564
1564
  if ("undefined" == typeof window) return 1;
1565
1565
  const { defaultDpr: t = 1, maxDpr: n = 3, round: o = !0 } = e || {}, r = "undefined" != typeof window && "number" == typeof window.devicePixelRatio ? window.devicePixelRatio : t;
1566
1566
  return Math.min(Math.max(1, o ? Math.floor(r) : r), n);
1567
1567
  }
1568
- function en(e, t, n) {
1569
- const o = Yt(t, [t]);
1568
+ function Qt(e, t, n) {
1569
+ const o = jt(t, [t]);
1570
1570
  M(() => {
1571
1571
  const t = (t) => {
1572
1572
  e.current && !e.current.contains(t.target) && o(t);
@@ -1576,8 +1576,8 @@ function en(e, t, n) {
1576
1576
  };
1577
1577
  }, [e]);
1578
1578
  }
1579
- function tn(e = {}) {
1580
- const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = A(!1), [l, a] = A(null), [c, u] = A(!1);
1579
+ function en(e = {}) {
1580
+ const { target: t, onChange: n, onError: o, requestFullScreenOptions: r } = e, [i, s] = z(!1), [l, a] = z(null), [c, u] = z(!1);
1581
1581
  M(() => {
1582
1582
  s(function() {
1583
1583
  if ("undefined" == typeof document) return !1;
@@ -1612,21 +1612,21 @@ function tn(e = {}) {
1612
1612
  toggleFullscreen: f
1613
1613
  };
1614
1614
  }
1615
- var nn = "_portal-root_105xh_14", on = "_fullscreen_105xh_31", rn = 0, sn = "sxl-portal-root", ln = () => {
1615
+ var tn = "_portal-root_105xh_14", nn = "_fullscreen_105xh_31", on = 0, rn = "sxl-portal-root", sn = () => {
1616
1616
  const e = document.fullscreenElement, t = e ?? document.body;
1617
- let n = document.querySelector("." + sn);
1618
- n || (n = document.createElement("div"), n.className = `${sn} ${nn}`), n.parentElement !== t && t.appendChild(n);
1617
+ let n = document.querySelector("." + rn);
1618
+ n || (n = document.createElement("div"), n.className = `${rn} ${tn}`), n.parentElement !== t && t.appendChild(n);
1619
1619
  const o = !!e;
1620
- return n.classList.toggle("sxl-fullscreen", o), n.classList.toggle(on, o), n;
1620
+ return n.classList.toggle("sxl-fullscreen", o), n.classList.toggle(nn, o), n;
1621
1621
  };
1622
- function an() {
1623
- const [e, t] = A(!!document.fullscreenElement), n = x(() => ln(), []);
1622
+ function ln() {
1623
+ const [e, t] = z(!!document.fullscreenElement), n = x(() => sn(), []);
1624
1624
  return M(() => {
1625
1625
  const e = () => {
1626
- t(!!document.fullscreenElement), ln();
1626
+ t(!!document.fullscreenElement), sn();
1627
1627
  };
1628
- return rn++, ln(), document.addEventListener("fullscreenchange", e), () => {
1629
- document.removeEventListener("fullscreenchange", e), --rn <= 0 && (rn = 0, document.querySelectorAll("." + sn).forEach((e) => {
1628
+ return on++, sn(), document.addEventListener("fullscreenchange", e), () => {
1629
+ document.removeEventListener("fullscreenchange", e), --on <= 0 && (on = 0, document.querySelectorAll("." + rn).forEach((e) => {
1630
1630
  e.parentNode?.removeChild(e);
1631
1631
  }));
1632
1632
  };
@@ -1635,35 +1635,35 @@ function an() {
1635
1635
  isFullscreen: e
1636
1636
  };
1637
1637
  }
1638
- var cn, un = "_dragging_at5p4_10", hn = /* @__PURE__ */ new Set([
1638
+ var an, cn = "_dragging_at5p4_10", un = /* @__PURE__ */ new Set([
1639
1639
  "text",
1640
1640
  "search",
1641
1641
  "url",
1642
1642
  "tel",
1643
1643
  "password",
1644
1644
  ""
1645
- ]), dn = (e, t, n) => {
1645
+ ]), hn = (e, t, n) => {
1646
1646
  const o = e.getBoundingClientRect();
1647
1647
  if (!o.width || !o.height) return null;
1648
1648
  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);
1649
1649
  if (l) return l.offset;
1650
1650
  const a = s.caretRangeFromPoint?.(r, i);
1651
1651
  return a ? a.startOffset : null;
1652
- }, fn = () => {
1653
- const e = z(null);
1652
+ }, dn = () => {
1653
+ const e = k(null);
1654
1654
  return M(() => () => {
1655
1655
  e.current?.();
1656
- }, []), T(() => ({
1656
+ }, []), L(() => ({
1657
1657
  onPointerDown: (t) => {
1658
1658
  if (void 0 !== t?.button && 0 !== t.button) return;
1659
1659
  if (e.current) return;
1660
- const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && hn.has(o.type) ? o : null);
1660
+ const n = t?.shiftKey ? null : (o = t?.target, o instanceof HTMLTextAreaElement ? o.disabled ? null : o : o instanceof HTMLInputElement && !o.disabled && un.has(o.type) ? o : null);
1661
1661
  var o;
1662
- const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? dn(n, t.clientX, t.clientY) : null;
1662
+ const r = n && void 0 !== t?.clientX && void 0 !== t?.clientY ? hn(n, t.clientX, t.clientY) : null;
1663
1663
  let i = null !== n && null !== r, s = t?.clientX ?? 0, l = t?.clientY ?? 0;
1664
1664
  const a = (e, t) => {
1665
1665
  if (!i || !n || null === r) return;
1666
- const o = dn(n, e, t);
1666
+ const o = hn(n, e, t);
1667
1667
  null !== o && n.setSelectionRange(Math.min(r, o), Math.max(r, o), o < r ? "backward" : "forward");
1668
1668
  }, c = (e) => {
1669
1669
  s = e.clientX, l = e.clientY, a(s, l);
@@ -1680,9 +1680,9 @@ var cn, un = "_dragging_at5p4_10", hn = /* @__PURE__ */ new Set([
1680
1680
  const r = (e) => Math.max(-24, Math.min(24, e));
1681
1681
  n.scrollLeft += r(t), n.scrollTop += r(o), a(s, l);
1682
1682
  }, 50) : 0, f = () => {
1683
- e.current = null, h.classList.remove(un), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1683
+ e.current = null, h.classList.remove(cn), d && window.clearInterval(d), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", c, !0), window.removeEventListener("pointerup", f, !0), window.removeEventListener("pointercancel", f, !0);
1684
1684
  };
1685
- e.current = f, h.classList.add(un), i && window.addEventListener("mousedown", u, {
1685
+ e.current = f, h.classList.add(cn), i && window.addEventListener("mousedown", u, {
1686
1686
  capture: !0,
1687
1687
  once: !0
1688
1688
  }), window.addEventListener("pointermove", c, !0), window.addEventListener("pointerup", f, !0), window.addEventListener("pointercancel", f, !0);
@@ -1692,15 +1692,15 @@ var cn, un = "_dragging_at5p4_10", hn = /* @__PURE__ */ new Set([
1692
1692
  }
1693
1693
  }), []);
1694
1694
  };
1695
- function pn(e, t) {
1695
+ function fn(e, t) {
1696
1696
  const n = (() => {
1697
- if (void 0 !== cn) return cn;
1697
+ if (void 0 !== an) return an;
1698
1698
  try {
1699
- cn = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1699
+ an = "undefined" == typeof document ? null : document.createElement("canvas").getContext("2d") ?? null;
1700
1700
  } catch {
1701
- cn = null;
1701
+ an = null;
1702
1702
  }
1703
- return cn;
1703
+ return an;
1704
1704
  })();
1705
1705
  return n ? (n.font = `${t.style ?? "normal"} ${t.weight ?? "normal"} ${t.size}px ${o = t.family || "sans-serif", o.split(",").map((e) => {
1706
1706
  const t = e.trim();
@@ -1708,9 +1708,9 @@ function pn(e, t) {
1708
1708
  }).join(", ")}`, n.measureText(e).width) : e.length * t.size * .6;
1709
1709
  var o;
1710
1710
  }
1711
- function mn(e) {
1711
+ function pn(e) {
1712
1712
  if (!e) throw new Error("must have a PointerHandlerOptions");
1713
- const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1 } = e, i = Yt(t, [t]), s = Yt(n, [n]), l = Yt(o, [o]), a = z(!1), c = e?.timerInitial ?? 230, u = e?.timerContinuous ?? c / 2, h = z(null), d = z(null), f = z(null), p = z(null), m = x(() => {
1713
+ const { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: o, processTouch: r = !1 } = e, i = jt(t, [t]), s = jt(n, [n]), l = jt(o, [o]), a = k(!1), c = e?.timerInitial ?? 230, u = e?.timerContinuous ?? c / 2, h = k(null), d = k(null), f = k(null), p = k(null), m = x(() => {
1714
1714
  p.current && (clearTimeout(p.current), p.current = null);
1715
1715
  }, []), g = x((e) => {
1716
1716
  p.current = setTimeout(() => {
@@ -1718,41 +1718,41 @@ function mn(e) {
1718
1718
  if (!1 === a.current) return;
1719
1719
  const e = d.current, t = h.current;
1720
1720
  if (!e || !t) return;
1721
- const n = qe(e, t.currentTarget);
1721
+ const n = Ze(e, t.currentTarget);
1722
1722
  l?.(n, f.current, t);
1723
1723
  }), g(u);
1724
1724
  }, e ?? c);
1725
1725
  }, []);
1726
1726
  M(() => () => m(), []);
1727
- const _ = r ? "pointer" : "mouse", v = Yt((e) => {
1727
+ const _ = r ? "pointer" : "mouse", v = jt((e) => {
1728
1728
  document.removeEventListener(`${_}move`, w), document.removeEventListener(`${_}up`, v), document.removeEventListener("pointercancel", v), document.removeEventListener("keydown", S), document.removeEventListener("keyup", E), window.removeEventListener("blur", y), m(), window.requestAnimationFrame(() => {
1729
1729
  if (!1 === a.current) return;
1730
1730
  a.current = !1;
1731
1731
  const t = e, n = h.current;
1732
1732
  if (!n) return;
1733
- const o = qe(t, n.currentTarget);
1733
+ const o = Ze(t, n.currentTarget);
1734
1734
  s?.(o, f.current, n), f.current = null;
1735
1735
  });
1736
1736
  }, []), y = x(() => {
1737
1737
  !1 !== a.current && d.current && v(d.current);
1738
- }, []), b = Yt(() => {
1738
+ }, []), b = jt(() => {
1739
1739
  m(), g(u), window.requestAnimationFrame(() => {
1740
1740
  if (!1 === a.current) return;
1741
1741
  const e = d.current, t = h.current;
1742
1742
  if (!e || !t) return;
1743
- const n = qe(e, t.currentTarget);
1743
+ const n = Ze(e, t.currentTarget);
1744
1744
  l?.(n, f.current, t);
1745
1745
  });
1746
- }, [u]), w = Yt((e) => {
1746
+ }, [u]), w = jt((e) => {
1747
1747
  d.current = e, b();
1748
- }, []), S = Yt((e) => {
1748
+ }, []), S = jt((e) => {
1749
1749
  f.current = {
1750
1750
  ctrlKey: e.ctrlKey,
1751
1751
  shiftKey: e.shiftKey,
1752
1752
  altKey: e.altKey,
1753
1753
  metaKey: e.metaKey
1754
1754
  }, b();
1755
- }, []), E = Yt((e) => {
1755
+ }, []), E = jt((e) => {
1756
1756
  f.current = {
1757
1757
  ctrlKey: e.ctrlKey,
1758
1758
  shiftKey: e.shiftKey,
@@ -1760,7 +1760,7 @@ function mn(e) {
1760
1760
  metaKey: e.metaKey
1761
1761
  }, b();
1762
1762
  }, [u]);
1763
- return Yt((e) => {
1763
+ return jt((e) => {
1764
1764
  e.isDefaultPrevented() || (f.current = {
1765
1765
  ctrlKey: e.ctrlKey,
1766
1766
  shiftKey: e.shiftKey,
@@ -1769,8 +1769,8 @@ function mn(e) {
1769
1769
  }, !1 !== i(e, f.current) && (h.current = e, d.current = e.nativeEvent, document.addEventListener(`${_}up`, v, { passive: !1 }), document.addEventListener(`${_}move`, w, { passive: !1 }), document.addEventListener("pointercancel", v, { passive: !1 }), document.addEventListener("keydown", S, { passive: !1 }), document.addEventListener("keyup", E, { passive: !1 }), window.addEventListener("blur", y, { passive: !0 }), a.current = !0, g(c)));
1770
1770
  }, [c, r]);
1771
1771
  }
1772
- function gn(e, t) {
1773
- return mn({
1772
+ function mn(e, t) {
1773
+ return pn({
1774
1774
  onPointerDown: e,
1775
1775
  onPointerMoveOrWait: (t, n, o) => {
1776
1776
  e?.(o);
@@ -1778,63 +1778,63 @@ function gn(e, t) {
1778
1778
  ...t
1779
1779
  });
1780
1780
  }
1781
- var _n = null, vn = /* @__PURE__ */ new Set(), yn = !1, bn = () => "touch" == ("touch" === Fe().primaryInput ? "touch" : "mouse") ? "touch" : _n ?? "mouse", wn = (e) => {
1781
+ var gn = null, _n = /* @__PURE__ */ new Set(), vn = !1, yn = () => "touch" == ("touch" === Ne().primaryInput ? "touch" : "mouse") ? "touch" : gn ?? "mouse", bn = (e) => {
1782
1782
  const t = "touch" === e.pointerType ? "touch" : "mouse";
1783
- if (t === _n) return;
1784
- const n = bn();
1785
- _n = t, bn() !== n && vn.forEach((e) => e());
1786
- }, xn = (e) => (vn.add(e), yn || "undefined" == typeof document || (document.addEventListener("pointerdown", wn, {
1783
+ if (t === gn) return;
1784
+ const n = yn();
1785
+ gn = t, yn() !== n && _n.forEach((e) => e());
1786
+ }, wn = (e) => (_n.add(e), vn || "undefined" == typeof document || (document.addEventListener("pointerdown", bn, {
1787
1787
  capture: !0,
1788
1788
  passive: !0
1789
- }), yn = !0), () => {
1790
- vn.delete(e), 0 === vn.size && yn && (document.removeEventListener("pointerdown", wn, { capture: !0 }), yn = !1);
1791
- }), Sn = () => "mouse", Mn = () => D(xn, bn, Sn), En = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1792
- const o = z(e);
1789
+ }), vn = !0), () => {
1790
+ _n.delete(e), 0 === _n.size && vn && (document.removeEventListener("pointerdown", bn, { capture: !0 }), vn = !1);
1791
+ }), xn = () => "mouse", Sn = () => A(wn, yn, xn), Mn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
1792
+ const o = k(e);
1793
1793
  if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
1794
1794
  const r = t();
1795
- return L(() => {
1795
+ return C(() => {
1796
1796
  o.current !== r && (o.current = r, n(r));
1797
1797
  }, [n, r]), null;
1798
- }, Cn = (e) => {
1798
+ }, En = (e) => {
1799
1799
  console && console.warn && console.warn(e);
1800
- }, Ln = globalThis, Tn = 1, kn = !1, zn = !1, An = [], Dn = [], Pn = () => {
1801
- Dn.forEach((e) => e());
1802
- }, Rn = ({ automaticContainerInternalUseOnly: e }) => {
1803
- const [t, n] = A([]), o = z([]);
1804
- return o.current = t, e || !1 !== kn || (zn = !0), M(() => {
1800
+ }, Cn = globalThis, Ln = 1, Tn = !1, kn = !1, zn = [], An = [], Dn = () => {
1801
+ An.forEach((e) => e());
1802
+ }, Pn = ({ automaticContainerInternalUseOnly: e }) => {
1803
+ const [t, n] = z([]), o = k([]);
1804
+ return o.current = t, e || !1 !== Tn || (kn = !0), M(() => {
1805
1805
  let t = !0;
1806
1806
  function r() {
1807
- if (t) return Dn[0] !== r ? (e || !0 !== kn || Cn("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([...An]);
1807
+ if (t) return An[0] !== r ? (e || !0 !== Tn || En("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([...zn]);
1808
1808
  }
1809
- return Dn.push(r), Pn(), () => {
1810
- t = !1, o.current?.length > 0 && Cn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Dn.splice(Dn.indexOf(r), 1), Pn();
1809
+ return An.push(r), Dn(), () => {
1810
+ t = !1, o.current?.length > 0 && En("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), An.splice(An.indexOf(r), 1), Dn();
1811
1811
  };
1812
- }, [e]), R(P, { children: t.map(({ hook: e, key: t }) => _(En, {
1812
+ }, [e]), P(D, { children: t.map(({ hook: e, key: t }) => _(Mn, {
1813
1813
  ...e,
1814
1814
  key: t
1815
1815
  })) });
1816
- }, $n = (e) => {
1817
- const t = Tn++;
1818
- return An.push({
1816
+ }, Rn = (e) => {
1817
+ const t = Ln++;
1818
+ return zn.push({
1819
1819
  hook: e,
1820
1820
  key: t
1821
- }), 0 === Dn.length && !1 === zn && (kn = !0, ((e) => {
1822
- if (Ln.document && Ln.document.createElement) {
1823
- const t = Ln.document.createElement("div");
1824
- O(t).render(R(e, { automaticContainerInternalUseOnly: !0 }));
1825
- } else Cn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
- })(Rn)), Pn(), () => {
1827
- An.splice(An.findIndex((e) => e.key === t), 1), Pn();
1821
+ }), 0 === An.length && !1 === kn && (Tn = !0, ((e) => {
1822
+ if (Cn.document && Cn.document.createElement) {
1823
+ const t = Cn.document.createElement("div");
1824
+ B(t).render(P(e, { automaticContainerInternalUseOnly: !0 }));
1825
+ } else En("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
1826
+ })(Pn)), Dn(), () => {
1827
+ zn.splice(zn.findIndex((e) => e.key === t), 1), Dn();
1828
1828
  };
1829
- }, Bn = null;
1830
- Bn || (Bn = (e, t, n = {}) => {
1829
+ }, $n = null;
1830
+ $n || ($n = (e, t, n = {}) => {
1831
1831
  let o, r, i = !1, s = !1, l = [], { unmountIfNoConsumers: a = !1 } = n;
1832
1832
  const c = (e) => {
1833
- r = e, I(() => l.forEach((t) => t(e)));
1833
+ r = e, O(() => l.forEach((t) => t(e)));
1834
1834
  }, u = () => (s || (r = "function" == typeof e ? e() : e, s = !0), r);
1835
1835
  return () => {
1836
- const [n, s] = A(u);
1837
- return M(() => (i || (i = !0, o = $n({
1836
+ const [n, s] = z(u);
1837
+ return M(() => (i || (i = !0, o = Rn({
1838
1838
  initValue: e,
1839
1839
  useHookBody: t,
1840
1840
  applyStateChange: c
@@ -1843,32 +1843,30 @@ Bn || (Bn = (e, t, n = {}) => {
1843
1843
  }), []), n;
1844
1844
  };
1845
1845
  });
1846
- var On = Bn, Hn = () => {
1847
- console.warn("You must call useEditMode before setting its state.");
1848
- }, In = On(null, () => {
1849
- const [e, t] = A(null);
1846
+ var Bn = $n, Hn = () => {}, On = Bn(null, () => {
1847
+ const [e, t] = z(null);
1850
1848
  return Hn = t, e;
1851
- }), Nn = (e) => {
1849
+ }), In = (e) => {
1852
1850
  Hn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
1853
- }, Fn = /* @__PURE__ */ new Set(), Wn = (e, t) => {
1854
- Fn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1855
- }, Kn = (e) => (Fn.add(e), () => {
1856
- Fn.delete(e);
1857
- }), Vn = () => {
1858
- const e = In();
1859
- return T(() => ({
1860
- setMode: Nn,
1851
+ }, Nn = /* @__PURE__ */ new Set(), Fn = (e, t) => {
1852
+ Nn.forEach((n) => n(e, t)), "done" === t ? e.done?.() : e.cancel?.();
1853
+ }, Wn = (e) => (Nn.add(e), () => {
1854
+ Nn.delete(e);
1855
+ }), Kn = () => {
1856
+ const e = On();
1857
+ return L(() => ({
1858
+ setMode: In,
1861
1859
  getMode: () => e
1862
1860
  }), [e]);
1863
- }, jn = { Active: "language" };
1864
- function Yn() {
1865
- return D((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1861
+ }, Vn = { Active: "language" };
1862
+ function jn() {
1863
+ return A((e) => t.addChangeListener(e), () => t.getActive(), () => t.getActive());
1866
1864
  }
1867
- function Xn() {
1868
- const e = D((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision());
1869
- return T(() => (e, n) => t.lookup(e, n) ?? e, [e]);
1865
+ function Yn() {
1866
+ const e = A((e) => t.addChangeListener(e), () => t.getRevision(), () => t.getRevision());
1867
+ return L(() => (e, n) => t.lookup(e, n) ?? e, [e]);
1870
1868
  }
1871
- var Zn = (e, t, n, o) => ({
1869
+ var Xn = (e, t, n, o) => ({
1872
1870
  x: e,
1873
1871
  y: t,
1874
1872
  width: n,
@@ -1887,9 +1885,9 @@ var Zn = (e, t, n, o) => ({
1887
1885
  right: e + n,
1888
1886
  bottom: t + o
1889
1887
  })
1890
- }), qn = (e) => {
1891
- 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);
1892
- }, Un = [
1888
+ }), Zn = (e) => {
1889
+ return Xn(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);
1890
+ }, qn = [
1893
1891
  "paddingTop",
1894
1892
  "paddingRight",
1895
1893
  "paddingBottom",
@@ -1919,18 +1917,18 @@ var Zn = (e, t, n, o) => ({
1919
1917
  "wordBreak",
1920
1918
  "overflowWrap",
1921
1919
  "tabSize"
1922
- ], Gn = (e, t, n, o = 0) => {
1923
- if (!e || "undefined" == typeof document) return Zn(0, 0, 0, 0);
1920
+ ], Un = (e, t, n, o = 0) => {
1921
+ if (!e || "undefined" == typeof document) return Xn(0, 0, 0, 0);
1924
1922
  const r = e.value, i = Math.max(0, Math.min(t ?? e.selectionStart ?? r.length, r.length)), s = !n, l = n ?? document.createElement("div");
1925
1923
  l.setAttribute("aria-hidden", "true"), ((e, t) => {
1926
1924
  const n = getComputedStyle(t), o = e.style;
1927
- for (const e of Un) o[e] = n[e];
1925
+ for (const e of qn) o[e] = n[e];
1928
1926
  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`;
1929
1927
  })(l, e), l.textContent = r.slice(0, i);
1930
1928
  const a = document.createElement("span");
1931
1929
  a.textContent = r.slice(i) || "​", l.appendChild(a), s && document.body.appendChild(l);
1932
1930
  try {
1933
- const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = qn({
1931
+ const t = getComputedStyle(e), n = a.getBoundingClientRect(), r = l.getBoundingClientRect(), i = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, s = Zn({
1934
1932
  textareaRect: e.getBoundingClientRect(),
1935
1933
  mirrorRect: r,
1936
1934
  markerRect: {
@@ -1941,12 +1939,12 @@ var Zn = (e, t, n, o) => ({
1941
1939
  scrollLeft: e.scrollLeft,
1942
1940
  scrollTop: e.scrollTop
1943
1941
  });
1944
- return o ? Zn(s.left - o, s.top, 0, s.height) : s;
1942
+ return o ? Xn(s.left - o, s.top, 0, s.height) : s;
1945
1943
  } finally {
1946
1944
  s ? l.remove() : l.textContent = "";
1947
1945
  }
1948
- }, Jn = (e) => {
1949
- const t = z(null);
1946
+ }, Gn = (e) => {
1947
+ const t = k(null);
1950
1948
  M(() => {
1951
1949
  if ("undefined" == typeof document) return;
1952
1950
  const e = document.createElement("div");
@@ -1954,12 +1952,12 @@ var Zn = (e, t, n, o) => ({
1954
1952
  e.remove(), t.current = null;
1955
1953
  };
1956
1954
  }, []);
1957
- const n = x((n, o) => Gn(e.current, n, t.current ?? void 0, o), [e]);
1955
+ const n = x((n, o) => Un(e.current, n, t.current ?? void 0, o), [e]);
1958
1956
  return {
1959
1957
  getCaretRect: n,
1960
1958
  caretAnchor: x((e, t) => ({ getBoundingClientRect: () => n("function" == typeof e ? e() : e, "function" == typeof t ? t() : t) }), [n])
1961
1959
  };
1962
- }, Qn = On({
1960
+ }, Jn = Bn({
1963
1961
  setClipboard: (e) => {
1964
1962
  throw new Error("This is only available via the useClipboard.");
1965
1963
  },
@@ -1967,16 +1965,16 @@ var Zn = (e, t, n, o) => ({
1967
1965
  refNativeCopy: { current: null },
1968
1966
  refNativeLastKey: { current: null }
1969
1967
  }, () => {
1970
- const [e, t] = A(o.Global);
1968
+ const [e, t] = z(o.Global);
1971
1969
  return {
1972
1970
  setClipboard: (e) => t(e),
1973
1971
  getClipboard: () => e,
1974
- refNativeCopy: z(null),
1975
- refNativeLastKey: z(null)
1972
+ refNativeCopy: k(null),
1973
+ refNativeLastKey: k(null)
1976
1974
  };
1977
1975
  });
1978
- function eo(e, t = !0) {
1979
- const n = z(e);
1976
+ function Qn(e, t = !0) {
1977
+ const n = k(e);
1980
1978
  M(() => {
1981
1979
  if (t) {
1982
1980
  const t = Object.entries(e).reduce((e, [t, o]) => (n.current[t] !== o && (e[t] = [n.current[t], o]), e), {});
@@ -1985,18 +1983,18 @@ function eo(e, t = !0) {
1985
1983
  n.current = e;
1986
1984
  });
1987
1985
  }
1988
- var to = !1, no = 0, oo = "undefined" != typeof document ? L : M, ro = () => "sheetxl-ui-" + no++;
1989
- var io = f["useId".toString()], so = null != io ? io : function() {
1990
- const [e, t] = A(() => to ? ro() : void 0);
1991
- return oo(() => {
1992
- null == e && t(ro());
1986
+ var eo = !1, to = 0, no = "undefined" != typeof document ? C : M, oo = () => "sheetxl-ui-" + to++;
1987
+ var ro = f["useId".toString()], io = null != ro ? ro : function() {
1988
+ const [e, t] = z(() => eo ? oo() : void 0);
1989
+ return no(() => {
1990
+ null == e && t(oo());
1993
1991
  }, []), M(() => {
1994
- to || (to = !0);
1992
+ eo || (eo = !0);
1995
1993
  }, []), e;
1996
- }, lo = [];
1997
- function ao(e, t, n = lo, o) {
1998
- const r = z(null), i = z(null);
1999
- return C(e ?? i, () => {
1994
+ }, so = [];
1995
+ function lo(e, t, n = so, o) {
1996
+ const r = k(null), i = k(null);
1997
+ return E(e ?? i, () => {
2000
1998
  const e = void 0 === o ? r.current : o;
2001
1999
  if (!e) return;
2002
2000
  const n = t?.();
@@ -2014,20 +2012,20 @@ function ao(e, t, n = lo, o) {
2014
2012
  return e;
2015
2013
  }, void 0 === o ? n : [...n, o]), r;
2016
2014
  }
2017
- var co = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, uo = null, ho = () => "undefined" != typeof window ? window.visualViewport ?? null : null, fo = () => {
2018
- const e = ho();
2019
- return e ? uo && uo.width === e.width && uo.height === e.height && uo.offsetTop === e.offsetTop && uo.offsetLeft === e.offsetLeft ? uo : uo = {
2015
+ var ao = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboard ?? null, co = null, uo = () => "undefined" != typeof window ? window.visualViewport ?? null : null, ho = () => {
2016
+ const e = uo();
2017
+ return e ? co && co.width === e.width && co.height === e.height && co.offsetTop === e.offsetTop && co.offsetLeft === e.offsetLeft ? co : co = {
2020
2018
  width: e.width,
2021
2019
  height: e.height,
2022
2020
  offsetTop: e.offsetTop,
2023
2021
  offsetLeft: e.offsetLeft
2024
2022
  } : null;
2025
- }, po = (e) => {
2026
- const t = ho(), n = co();
2023
+ }, fo = (e) => {
2024
+ const t = uo(), n = ao();
2027
2025
  return t || n ? (t?.addEventListener("resize", e), t?.addEventListener("scroll", e), n?.addEventListener("geometrychange", e), () => {
2028
2026
  t?.removeEventListener("resize", e), t?.removeEventListener("scroll", e), n?.removeEventListener("geometrychange", e);
2029
2027
  }) : () => {};
2030
- }, mo = () => () => {}, go = () => null, _o = (e = !0) => D(e ? po : mo, e ? fo : go, go), vo = "undefined" != typeof window ? L : M, yo = Object.freeze({
2028
+ }, po = () => () => {}, mo = () => null, go = (e = !0) => A(e ? fo : po, e ? ho : mo, mo), _o = "undefined" != typeof window ? C : M, vo = Object.freeze({
2031
2029
  x: 0,
2032
2030
  y: 0,
2033
2031
  width: 0,
@@ -2037,9 +2035,9 @@ var co = () => "undefined" == typeof navigator ? null : navigator.virtualKeyboar
2037
2035
  bottom: 0,
2038
2036
  right: 0
2039
2037
  });
2040
- function bo() {
2041
- const [e, t] = A(null), [n, o] = A(yo), r = z(n), i = x((e) => t(e), []);
2042
- return vo(() => {
2038
+ function yo() {
2039
+ const [e, t] = z(null), [n, o] = z(vo), r = k(n), i = x((e) => t(e), []);
2040
+ return _o(() => {
2043
2041
  if (!e || "undefined" == typeof ResizeObserver) return;
2044
2042
  const t = (e) => {
2045
2043
  var t, n;
@@ -2079,24 +2077,24 @@ function bo() {
2079
2077
  return i.observe(e), () => i.disconnect();
2080
2078
  }, [e]), [i, n];
2081
2079
  }
2082
- var wo = "sxl-history-change", xo = !1, So = () => {
2083
- if (xo) return;
2084
- xo = !0;
2080
+ var bo = "sxl-history-change", wo = !1, xo = () => {
2081
+ if (wo) return;
2082
+ wo = !0;
2085
2083
  const e = window.history;
2086
2084
  for (const t of ["pushState", "replaceState"]) {
2087
2085
  const n = e[t];
2088
2086
  e[t] = function(...e) {
2089
2087
  const t = n.apply(this, e);
2090
- return window.dispatchEvent(new Event(wo)), t;
2088
+ return window.dispatchEvent(new Event(bo)), t;
2091
2089
  };
2092
2090
  }
2093
- }, Mo = (e) => (So(), window.addEventListener("popstate", e), window.addEventListener(wo, e), () => {
2094
- window.removeEventListener("popstate", e), window.removeEventListener(wo, e);
2095
- }), Eo = () => window.location.search, Co = () => "";
2096
- function Lo() {
2097
- return D(Mo, Eo, Co);
2091
+ }, So = (e) => (xo(), window.addEventListener("popstate", e), window.addEventListener(bo, e), () => {
2092
+ window.removeEventListener("popstate", e), window.removeEventListener(bo, e);
2093
+ }), Mo = () => window.location.search, Eo = () => "";
2094
+ function Co() {
2095
+ return A(So, Mo, Eo);
2098
2096
  }
2099
- var To = 3, ko = .5, zo = 50, Ao = (e) => ({
2097
+ var Lo = 3, To = .5, ko = 50, zo = (e) => ({
2100
2098
  x: e.x,
2101
2099
  y: e.y,
2102
2100
  width: e.width,
@@ -2106,8 +2104,8 @@ var To = 3, ko = .5, zo = 50, Ao = (e) => ({
2106
2104
  right: e.right,
2107
2105
  bottom: e.bottom
2108
2106
  });
2109
- function Do(e = {}) {
2110
- const { threshold: t = ko, stillnessThreshold: n = To, maxHierarchyDepth: o = zo } = e, [r, i] = bo(), s = z(null), [l, a] = k((e) => e + 1, 0), c = z(void 0), u = z({
2107
+ function Ao(e = {}) {
2108
+ const { threshold: t = To, stillnessThreshold: n = Lo, maxHierarchyDepth: o = ko } = e, [r, i] = yo(), s = k(null), [l, a] = T((e) => e + 1, 0), c = k(void 0), u = k({
2111
2109
  x: 0,
2112
2110
  y: 0,
2113
2111
  width: 0,
@@ -2118,7 +2116,7 @@ function Do(e = {}) {
2118
2116
  bottom: 0
2119
2117
  }), h = x((e) => {
2120
2118
  s.current = e, r(e);
2121
- }, [r]), [d, f] = A(i);
2119
+ }, [r]), [d, f] = z(i);
2122
2120
  return M(() => {
2123
2121
  i && !d && f(i);
2124
2122
  }, [i, d]), M(() => {
@@ -2128,7 +2126,7 @@ function Do(e = {}) {
2128
2126
  const l = () => {
2129
2127
  if (!e) return;
2130
2128
  const o = e.getBoundingClientRect(), s = u.current;
2131
- 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(Ao(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(Ao(o)), a()), u.current = Ao(o), c.current = requestAnimationFrame(l);
2129
+ 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(zo(o)), a()), i = 0) : i++, r && i >= n && (r = !1, f(zo(o)), a()), u.current = zo(o), c.current = requestAnimationFrame(l);
2132
2130
  };
2133
2131
  c.current = requestAnimationFrame(l);
2134
2132
  const h = (e) => {
@@ -2152,8 +2150,8 @@ function Do(e = {}) {
2152
2150
  o
2153
2151
  ]), [h, d];
2154
2152
  }
2155
- var Po = w(v((e, t) => {
2156
- const { refFocusStart: n, ...o } = e, r = z(null), i = x(() => {
2153
+ var Do = w(v((e, t) => {
2154
+ const { refFocusStart: n, ...o } = e, r = k(null), i = x(() => {
2157
2155
  if (n) return void n?.current?.focus();
2158
2156
  const e = r.current?.parentElement;
2159
2157
  if (!e) return;
@@ -2170,18 +2168,18 @@ var Po = w(v((e, t) => {
2170
2168
  0 !== o.length && (o.sort(function(e, t) {
2171
2169
  return e.tabindex - t.tabindex;
2172
2170
  }), o[0].child.focus());
2173
- }, [n]), s = N([r, t]);
2174
- return R("div", {
2171
+ }, [n]), s = I([r, t]);
2172
+ return P("div", {
2175
2173
  tabIndex: 0,
2176
2174
  ref: s,
2177
2175
  onFocus: i,
2178
2176
  ...o
2179
2177
  });
2180
- })), Ro = (e) => {
2178
+ })), Po = (e) => {
2181
2179
  const { render: t, props: n } = e;
2182
2180
  return t ? t(n) : null;
2183
2181
  };
2184
- function $o(e, t, n = !1) {
2182
+ function Ro(e, t, n = !1) {
2185
2183
  if (0 === t) return e;
2186
2184
  function o(e, t, n) {
2187
2185
  let o = t.x - e.x, i = t.y - e.y, s = Math.sqrt(o * o + i * i);
@@ -2241,10 +2239,10 @@ function $o(e, t, n = !1) {
2241
2239
  return e + t.join(" ") + " ";
2242
2240
  }, "");
2243
2241
  }
2244
- var Bo = w(v((e, t) => {
2245
- const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = bo(), p = z(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = T(() => {
2242
+ var $o = w(v((e, t) => {
2243
+ const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...u } = e, [h, { width: d, height: f }] = yo(), p = k(null), g = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, b = c?.left ?? 0, w = L(() => {
2246
2244
  const e = d - _, t = f - v;
2247
- return $o(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2245
+ return Ro(`M ${b} ${g} L ${e} ${g} L ${e} ${t} L ${b} ${t} Z`, i);
2248
2246
  }, [
2249
2247
  d,
2250
2248
  f,
@@ -2253,9 +2251,9 @@ var Bo = w(v((e, t) => {
2253
2251
  _,
2254
2252
  v,
2255
2253
  b
2256
- ]), x = T(() => "rounded" === a ? w : ((e, t = 0) => {
2254
+ ]), x = L(() => "rounded" === a ? w : ((e, t = 0) => {
2257
2255
  const n = e / 2, o = f - n + t;
2258
- return $o(`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);
2256
+ return Ro(`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);
2259
2257
  })(s), [
2260
2258
  a,
2261
2259
  w,
@@ -2263,11 +2261,11 @@ var Bo = w(v((e, t) => {
2263
2261
  f,
2264
2262
  i,
2265
2263
  s
2266
- ]), S = T(() => {
2264
+ ]), S = L(() => {
2267
2265
  if (0 === i) return;
2268
2266
  if ("rounded" === a) return w;
2269
2267
  const e = f - s / 2;
2270
- return $o(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2268
+ return Ro(`M 0 0 L ${i} 0 L ${i} ${e} L ${d - i} ${e} L ${d - i} 0 L ${d} 0`, i);
2271
2269
  }, [
2272
2270
  d,
2273
2271
  f,
@@ -2275,15 +2273,15 @@ var Bo = w(v((e, t) => {
2275
2273
  s,
2276
2274
  a,
2277
2275
  w
2278
- ]), M = T(() => ({ style: {
2276
+ ]), M = L(() => ({ style: {
2279
2277
  ...y(r) ? r.props?.style : void 0,
2280
2278
  clipPath: `path('${S}')`
2281
- } }), [S, r]), E = N([
2279
+ } }), [S, r]), E = I([
2282
2280
  p,
2283
2281
  h,
2284
2282
  t
2285
2283
  ]);
2286
- return $("div", {
2284
+ return R("div", {
2287
2285
  className: n,
2288
2286
  style: {
2289
2287
  display: "flex",
@@ -2292,7 +2290,7 @@ var Bo = w(v((e, t) => {
2292
2290
  },
2293
2291
  ...u,
2294
2292
  ref: E,
2295
- children: [y(r) ? m(r, M) : R(P, {}), R("svg", {
2293
+ children: [y(r) ? m(r, M) : P(D, {}), P("svg", {
2296
2294
  style: {
2297
2295
  position: "absolute",
2298
2296
  top: 0,
@@ -2302,7 +2300,7 @@ var Bo = w(v((e, t) => {
2302
2300
  width: d,
2303
2301
  height: f,
2304
2302
  viewBox: `0 0 ${d} ${f}`,
2305
- children: R("path", {
2303
+ children: P("path", {
2306
2304
  d: x,
2307
2305
  stroke: l,
2308
2306
  fill: "none",
@@ -2311,11 +2309,11 @@ var Bo = w(v((e, t) => {
2311
2309
  })
2312
2310
  })]
2313
2311
  });
2314
- })), Oo = g(null);
2312
+ })), Bo = g(null);
2315
2313
  function Ho() {
2316
- return S(Oo);
2314
+ return S(Bo);
2317
2315
  }
2318
- function Io(e, t) {
2316
+ function Oo(e, t) {
2319
2317
  const n = t?.renderError;
2320
2318
  let o = null;
2321
2319
  const r = () => {
@@ -2340,16 +2338,16 @@ function Io(e, t) {
2340
2338
  return t;
2341
2339
  }, i = () => ((!o || o.failed && o.shown) && (o = r()), o.component);
2342
2340
  return (e) => {
2343
- const [t, n] = A(i), s = x(() => {
2341
+ const [t, n] = z(i), s = x(() => {
2344
2342
  n(() => (o && !o.failed || (o = r()), o.component));
2345
2343
  }, []);
2346
- return R(Oo.Provider, {
2344
+ return P(Bo.Provider, {
2347
2345
  value: s,
2348
- children: R(t, { ...e })
2346
+ children: P(t, { ...e })
2349
2347
  });
2350
2348
  };
2351
2349
  }
2352
- var No = class extends p {
2350
+ var Io = class extends p {
2353
2351
  constructor(...e) {
2354
2352
  super(...e), this.state = { error: null }, this._reportedMessage = null;
2355
2353
  }
@@ -2365,27 +2363,27 @@ var No = class extends p {
2365
2363
  render() {
2366
2364
  return this.state.error ? this.props.fallback ?? null : this.props.children;
2367
2365
  }
2368
- }, Fo = ({ children: e, fallback: t }) => {
2369
- const n = jt(), o = x((e) => {
2366
+ }, No = ({ children: e, fallback: t }) => {
2367
+ const n = Vt(), o = x((e) => {
2370
2368
  n.showError(e);
2371
2369
  }, [n]);
2372
- return R(No, {
2370
+ return P(Io, {
2373
2371
  fallback: t,
2374
2372
  onError: o,
2375
2373
  children: e
2376
2374
  });
2377
- }, Wo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Ko = /\breact_devtools_backend/;
2378
- function Vo(e, t) {
2375
+ }, Fo = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, Wo = /\breact_devtools_backend/;
2376
+ function Ko(e, t) {
2379
2377
  const n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
2380
- return Wo.test(n) || Ko.test(n);
2378
+ return Fo.test(n) || Wo.test(n);
2381
2379
  }
2382
- var jo = class {
2380
+ var Vo = class {
2383
2381
  constructor(e) {
2384
2382
  this.notifier = e, this.handleUnhandledRejection = (e) => {
2385
2383
  const t = e.reason;
2386
- t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Vo(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2384
+ t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && "AbortError" === t.name || Ko(void 0, t) || (this.notifier.showError(t), t instanceof n && e.preventDefault());
2387
2385
  }, this.handleGlobalError = (e) => {
2388
- "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Vo(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2386
+ "string" == typeof e.message && e.message.includes("ResizeObserver loop") || Ko(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
2389
2387
  }, this.setupGlobalHandlers();
2390
2388
  }
2391
2389
  setupGlobalHandlers() {
@@ -2394,19 +2392,19 @@ var jo = class {
2394
2392
  cleanup() {
2395
2393
  window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
2396
2394
  }
2397
- }, Yo = ({ children: e }) => {
2398
- const t = jt();
2395
+ }, jo = ({ children: e }) => {
2396
+ const t = Vt();
2399
2397
  return M(() => {
2400
- const e = new jo(t);
2398
+ const e = new Vo(t);
2401
2399
  return () => {
2402
2400
  e.cleanup();
2403
2401
  };
2404
- }, [t]), R(P, { children: e });
2405
- }, Xo = {
2402
+ }, [t]), P(D, { children: e });
2403
+ }, Yo = {
2406
2404
  grid: 1250,
2407
2405
  popup: 1300,
2408
2406
  tooltip: 1500
2409
- }, Zo = (e, t = 0) => qo(`var(--sxl-z-${e}, ${Xo[e]})`, t), qo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, Uo = 7, Go = {
2407
+ }, Xo = (e, t = 0) => Zo(`var(--sxl-z-${e}, ${Yo[e]})`, t), Zo = (e, t) => t ? "number" == typeof e ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, qo = 7, Uo = 3, Go = {
2410
2408
  light: {
2411
2409
  "color-base-100": "#ffffff",
2412
2410
  "color-base-200": "#f5f5f5",
@@ -2445,6 +2443,11 @@ var jo = class {
2445
2443
  "#12a4af",
2446
2444
  "#d01884"
2447
2445
  ],
2446
+ "color-bracket": [
2447
+ "#0431fa",
2448
+ "#319331",
2449
+ "#7b3814"
2450
+ ],
2448
2451
  "font-family": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
2449
2452
  "font-family-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
2450
2453
  "font-size": "13px",
@@ -2453,9 +2456,9 @@ var jo = class {
2453
2456
  "radius-field": "4px",
2454
2457
  "radius-box": "6px",
2455
2458
  border: "1px",
2456
- "z-grid": String(Xo.grid),
2457
- "z-popup": String(Xo.popup),
2458
- "z-tooltip": String(Xo.tooltip),
2459
+ "z-grid": String(Yo.grid),
2460
+ "z-popup": String(Yo.popup),
2461
+ "z-tooltip": String(Yo.tooltip),
2459
2462
  "image-background": "none"
2460
2463
  },
2461
2464
  dark: {
@@ -2471,7 +2474,7 @@ var jo = class {
2471
2474
  "color-base-emphasis-content": "var(--sxl-color-primary-content, rgba(0, 0, 0, 0.87))",
2472
2475
  "color-input": "#121212",
2473
2476
  "color-input-border": "rgba(255, 255, 255, 0.2)",
2474
- "color-elevated": "#121212",
2477
+ "color-elevated": "#262626",
2475
2478
  "color-elevated-border": "transparent",
2476
2479
  "color-accent": "rgb(56, 161, 105)",
2477
2480
  "color-accent-content": "#0a0a0a",
@@ -2486,7 +2489,7 @@ var jo = class {
2486
2489
  "color-error": "#f44336",
2487
2490
  "color-error-content": "#0a0a0a",
2488
2491
  "color-neutral": "#9e9e9e",
2489
- "color-shadow": "rgba(255, 255, 255, 0.12)",
2492
+ "color-shadow": "rgba(0, 0, 0, 0.5)",
2490
2493
  "color-series": [
2491
2494
  "#8ab4f8",
2492
2495
  "#f28b82",
@@ -2496,6 +2499,11 @@ var jo = class {
2496
2499
  "#78d9ec",
2497
2500
  "#ff8bcb"
2498
2501
  ],
2502
+ "color-bracket": [
2503
+ "#ffd700",
2504
+ "#da70d6",
2505
+ "#179fff"
2506
+ ],
2499
2507
  "font-family": "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Arial, sans-serif",
2500
2508
  "font-family-mono": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
2501
2509
  "font-size": "13px",
@@ -2504,9 +2512,9 @@ var jo = class {
2504
2512
  "radius-field": "4px",
2505
2513
  "radius-box": "6px",
2506
2514
  border: "1px",
2507
- "z-grid": String(Xo.grid),
2508
- "z-popup": String(Xo.popup),
2509
- "z-tooltip": String(Xo.tooltip),
2515
+ "z-grid": String(Yo.grid),
2516
+ "z-popup": String(Yo.popup),
2517
+ "z-tooltip": String(Yo.tooltip),
2510
2518
  "image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
2511
2519
  }
2512
2520
  }, Jo = "--sxl-";
@@ -2523,12 +2531,24 @@ function Qo(e) {
2523
2531
  function er(e, ...t) {
2524
2532
  return Qo(Object.assign({}, Go[e], ...t.filter(Boolean)));
2525
2533
  }
2526
- var tr = ["light", "dark"], nr = "--sxl-input-selection", or = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", rr = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${nr},${or});}`, ir = [
2534
+ var tr = {
2535
+ "color-series": 7,
2536
+ "color-bracket": 3
2537
+ };
2538
+ function nr(e, t) {
2539
+ if ("color-series" === e || "color-bracket" === e) {
2540
+ const n = tr[e], o = ((t ?? 0) % n + n) % n, r = `--sxl-${e}-${o + 1}`, i = Go.light[e]?.[o];
2541
+ return null == i ? `var(${r})` : `var(${r}, ${i})`;
2542
+ }
2543
+ const n = Go.light[e];
2544
+ return null == n ? `var(--sxl-${e})` : `var(--sxl-${e}, ${n})`;
2545
+ }
2546
+ var or = ["light", "dark"], rr = "--sxl-input-selection", ir = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", sr = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${rr},${ir});}`, lr = [
2527
2547
  "sxl-defaults",
2528
2548
  "sxl-app",
2529
2549
  "sxl-overrides"
2530
- ], sr = `@layer ${ir.join(", ")};`;
2531
- function lr(e) {
2550
+ ], ar = `@layer ${lr.join(", ")};`;
2551
+ function cr(e) {
2532
2552
  let t = "";
2533
2553
  for (const n in e) {
2534
2554
  const o = e[n];
@@ -2538,184 +2558,130 @@ function lr(e) {
2538
2558
  }
2539
2559
  return t;
2540
2560
  }
2541
- function ar(e = {}) {
2542
- const { app: t = Go, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l } = e, a = [], c = {
2561
+ function ur(e = {}) {
2562
+ const { app: t = Go, surfaces: n = {}, hc: o, modeAttr: r = "data-sxl-theme-mode", surfaceAttr: i = "data-sxl-theme-surface", layer: s, scope: l, baseline: a = !0 } = e, c = [], u = {
2543
2563
  app: {
2544
2564
  light: t.light,
2545
2565
  dark: t.dark
2546
2566
  },
2547
2567
  ...n
2548
- }, u = l ? ":scope" : ":root", h = (e) => l ? `:scope${e},${e}` : e, d = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, f = (e, t) => `${e} ${t}`;
2549
- a.push(`:where(${u}){color-scheme:light;${lr(t.light)}}`);
2550
- for (const [e, t] of Object.entries(c)) {
2551
- const n = t?.light;
2552
- n && Object.keys(n).length && a.push(`${d(e)}{${lr(n)}}`);
2553
- }
2554
- for (const e of tr) {
2555
- a.push(`${h(`[${r}="${e}"]`)}{color-scheme:${e};${lr(t[e])}}`);
2556
- for (const [t, n] of Object.entries(c)) {
2568
+ }, h = l ? ":scope" : ":root", d = (e) => l ? `:scope${e},${e}` : e, f = (e) => l ? `:where(:scope[${i}="${e}"],[${i}="${e}"])` : `:where([${i}="${e}"])`, p = (e, t) => `${e} ${t}`;
2569
+ if (a) {
2570
+ c.push(`:where(${h}){color-scheme:light;${cr(t.light)}}`);
2571
+ for (const [e, t] of Object.entries(u)) {
2572
+ const n = t?.light;
2573
+ n && Object.keys(n).length && c.push(`${f(e)}{${cr(n)}}`);
2574
+ }
2575
+ }
2576
+ for (const e of or) {
2577
+ c.push(`${d(`[${r}="${e}"]`)}{color-scheme:${e};${cr(t[e])}}`);
2578
+ for (const [t, n] of Object.entries(u)) {
2557
2579
  const o = n?.[e];
2558
- o && Object.keys(o).length && a.push(`${f(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${lr(o)}}`);
2580
+ o && Object.keys(o).length && c.push(`${p(`[${r}="${e}"]`, `[${i}="${t}"]`)}{${cr(o)}}`);
2559
2581
  }
2560
2582
  }
2561
- for (const e of tr) for (const [t, n] of Object.entries(c)) {
2583
+ for (const e of or) for (const [t, n] of Object.entries(u)) {
2562
2584
  const o = n?.[e];
2563
- o && Object.keys(o).length && a.push(`${h(`[${r}="${e}"][${i}="${t}"]`)}{${lr(o)}}`);
2585
+ o && Object.keys(o).length && c.push(`${d(`[${r}="${e}"][${i}="${t}"]`)}{${cr(o)}}`);
2564
2586
  }
2565
- o && Object.keys(o).length && a.push(`${h(`[${r}="hc"]`)}{${lr(o)}}`), a.push(rr);
2566
- let p = a.join("\n");
2567
- return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${sr}\n@layer ${s}{\n${p}\n}`), p;
2587
+ o && Object.keys(o).length && c.push(`${d(`[${r}="hc"]`)}{${cr(o)}}`), a && c.push(sr);
2588
+ let m = c.join("\n");
2589
+ return l && (m = `@scope (${l}){\n${m}\n}`), s && (m = `${ar}\n@layer ${s}{\n${m}\n}`), m;
2568
2590
  }
2569
- var cr = "data-sxl-theme-mode", ur = "data-sxl-theme-surface", hr = (e, t) => ({
2570
- [ur]: e,
2571
- [cr]: t
2572
- }), dr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, fr = "sxl-theme-layer-order", pr = (e = document) => {
2591
+ var hr = "data-sxl-theme-mode", dr = "data-sxl-theme-surface", fr = (e, t) => ({
2592
+ [dr]: e,
2593
+ [hr]: t
2594
+ }), pr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, mr = "sxl-theme-layer-order", gr = (e = document) => {
2573
2595
  if ("undefined" == typeof document) return;
2574
- if (e.getElementById(fr)) return;
2596
+ if (e.getElementById(mr)) return;
2575
2597
  const t = document.createElement("style");
2576
- t.id = fr, t.textContent = sr, (e instanceof Document ? e.head : e).prepend(t);
2577
- }, mr = w(({ css: e }) => {
2578
- const t = z(null);
2579
- return L(() => {
2598
+ t.id = mr, t.textContent = ar, (e instanceof Document ? e.head : e).prepend(t);
2599
+ }, _r = w(({ css: e }) => {
2600
+ const t = k(null);
2601
+ return C(() => {
2580
2602
  const e = t.current?.getRootNode();
2581
- (e instanceof Document || e instanceof ShadowRoot) && pr(e);
2582
- }, []), R("style", {
2603
+ (e instanceof Document || e instanceof ShadowRoot) && gr(e);
2604
+ }, []), P("style", {
2583
2605
  ref: t,
2584
2606
  children: e
2585
2607
  });
2586
2608
  });
2587
- mr.displayName = "ThemeStyle";
2588
- var gr = g("light");
2589
- function _r(e) {
2590
- const { mode: t, fallback: n } = e || {}, o = S(gr), r = n ?? o, [i, s] = A(() => {
2591
- if ("light" === t || "dark" === t) return {
2592
- themeMode: t,
2609
+ _r.displayName = "ThemeStyle";
2610
+ var vr = g("light");
2611
+ function yr(e) {
2612
+ const { mode: t, fallback: n } = e || {}, o = S(vr), r = "auto" === t, i = r ? void 0 : t, s = r ? "system" : n ?? o, [l, a] = z(() => {
2613
+ if ("light" === i || "dark" === i) return {
2614
+ themeMode: i,
2593
2615
  source: "prop"
2594
2616
  };
2595
2617
  if ("undefined" != typeof document) {
2596
- const e = yr();
2618
+ const e = wr();
2597
2619
  if (e) return {
2598
2620
  themeMode: e,
2599
2621
  source: "class"
2600
2622
  };
2601
2623
  }
2602
- return vr(r);
2624
+ return br(s);
2603
2625
  });
2604
2626
  return M(() => {
2605
2627
  const e = () => {
2606
- if (t) return void (t === i.themeMode && "prop" === i.source || s((e) => ({
2628
+ if (i) return void (i === l.themeMode && "prop" === l.source || a((e) => ({
2607
2629
  ...e,
2608
- themeMode: t,
2630
+ themeMode: i,
2609
2631
  source: "prop"
2610
2632
  })));
2611
- const e = yr();
2612
- s(e ? {
2633
+ const e = wr();
2634
+ a(e ? {
2613
2635
  themeMode: e,
2614
2636
  source: "class"
2615
- } : vr(r));
2616
- }, n = new MutationObserver(e), o = [document.documentElement, document.body].filter(Boolean);
2617
- for (const e of o) n.observe(e, {
2637
+ } : br(s));
2638
+ }, t = new MutationObserver(e), n = [document.documentElement, document.body].filter(Boolean);
2639
+ for (const e of n) t.observe(e, {
2618
2640
  attributes: !0,
2619
2641
  attributeFilter: ["class"]
2620
2642
  });
2621
- const l = "system" === r ? window.matchMedia("(prefers-color-scheme: dark)") : null;
2622
- return l?.addEventListener("change", e), e(), () => {
2623
- n.disconnect(), l?.removeEventListener("change", e);
2643
+ const o = "system" === s ? window.matchMedia("(prefers-color-scheme: dark)") : null;
2644
+ return o?.addEventListener("change", e), e(), () => {
2645
+ t.disconnect(), o?.removeEventListener("change", e);
2624
2646
  };
2625
- }, [t, r]), i;
2647
+ }, [i, s]), l;
2626
2648
  }
2627
- function vr(e) {
2649
+ function br(e) {
2628
2650
  return "system" === e ? {
2629
- themeMode: br(),
2651
+ themeMode: xr(),
2630
2652
  source: "media"
2631
2653
  } : {
2632
2654
  themeMode: e,
2633
2655
  source: "fallback"
2634
2656
  };
2635
2657
  }
2636
- function yr() {
2658
+ function wr() {
2637
2659
  if ("undefined" == typeof document) return null;
2638
2660
  const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
2639
2661
  return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
2640
2662
  }
2641
- function br() {
2663
+ function xr() {
2642
2664
  return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
2643
2665
  }
2644
- var wr = g(null), xr = () => S(wr), Sr = (e) => {
2645
- const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = xr(), h = T(() => ({
2646
- ...o?.light ?? {},
2647
- ...u?.light ?? {},
2648
- ...t ?? {}
2649
- }), [
2650
- o?.light,
2651
- u?.light,
2652
- t
2653
- ]), d = T(() => ({
2654
- ...o?.dark ?? {},
2655
- ...u?.dark ?? {},
2656
- ...n ?? {}
2657
- }), [
2658
- o?.dark,
2659
- u?.dark,
2660
- n
2661
- ]), p = dr("token", E()), { themeMode: m } = _r("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => ar({
2662
- app: {
2663
- light: h,
2664
- dark: d
2665
- },
2666
- surfaces: r,
2667
- layer: a,
2668
- scope: l ? `.${p}` : void 0
2669
- }), [
2670
- h,
2671
- d,
2672
- r,
2673
- a,
2674
- l,
2675
- p
2676
- ]), y = T(() => ({
2677
- scopeClass: l ? p : void 0,
2678
- mode: _,
2679
- light: h,
2680
- dark: d
2681
- }), [
2682
- l,
2683
- p,
2684
- _,
2685
- h,
2686
- d
2687
- ]), b = R(mr, { css: v }), w = {};
2688
- g && (w[cr] = g), s && (w[ur] = s);
2689
- let x = c;
2690
- if (l || Object.keys(w).length > 0) {
2691
- const e = f.Children.only(c);
2692
- l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
2693
- }
2694
- return $(wr.Provider, {
2695
- value: y,
2696
- children: [b, x]
2697
- });
2698
- };
2699
- function Mr(e, t) {
2666
+ function Sr(e, t) {
2700
2667
  if (!e || "undefined" == typeof getComputedStyle) return;
2701
- const n = getComputedStyle(e).getPropertyValue(Cr(t)).trim();
2668
+ const n = getComputedStyle(e).getPropertyValue(Er(t)).trim();
2702
2669
  return "" === n ? void 0 : n;
2703
2670
  }
2704
- function Er(e, t) {
2671
+ function Mr(e, t) {
2705
2672
  const n = {};
2706
2673
  if (!e || "undefined" == typeof getComputedStyle) return n;
2707
2674
  const o = getComputedStyle(e);
2708
2675
  for (const e of t) {
2709
- const t = o.getPropertyValue(Cr(e)).trim();
2676
+ const t = o.getPropertyValue(Er(e)).trim();
2710
2677
  "" !== t && (n[e] = t);
2711
2678
  }
2712
2679
  return n;
2713
2680
  }
2714
- function Cr(e) {
2681
+ function Er(e) {
2715
2682
  return e.startsWith("--") ? e : `--sxl-${e}`;
2716
2683
  }
2717
- Sr.displayName = "TokenThemeProvider";
2718
- var Lr = g(null), Tr = () => {
2684
+ var Cr = g(null), Lr = () => {
2719
2685
  const e = (t, n) => {
2720
2686
  if (null === n) return;
2721
2687
  t.add(n);
@@ -2778,47 +2744,33 @@ var Lr = g(null), Tr = () => {
2778
2744
  })
2779
2745
  };
2780
2746
  return r;
2781
- }, kr = () => S(Lr), zr = (e) => {
2747
+ }, Tr = () => S(Cr), kr = (e) => {
2782
2748
  const t = {};
2783
- return e ? (e.mode && (t[cr] = e.mode), e.surface && (t[ur] = e.surface), {
2749
+ return e ? (e.mode && (t[hr] = e.mode), e.surface && (t[dr] = e.surface), {
2784
2750
  className: e.classes?.length ? e.classes.join(" ") : void 0,
2785
2751
  attrs: t
2786
2752
  }) : { attrs: t };
2787
- }, Ar = (e) => {
2753
+ }, zr = (e) => {
2788
2754
  const t = e?.ownerDocument, n = x((e) => {
2789
2755
  if (!t || "undefined" == typeof MutationObserver) return () => {};
2790
2756
  const n = new MutationObserver(e);
2791
2757
  return n.observe(t.documentElement, {
2792
2758
  attributes: !0,
2793
2759
  subtree: !0,
2794
- attributeFilter: [cr, ur]
2760
+ attributeFilter: [hr, dr]
2795
2761
  }), () => n.disconnect();
2796
- }, [t]), o = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [r, i] = D(n, o, o).split("\n"), s = {};
2797
- return r && (s[cr] = r), i && (s[ur] = i), s;
2798
- }, Dr = () => {
2799
- const e = S(Lr), t = xr();
2800
- return T(() => {
2801
- const n = e?.themeScope;
2802
- return t?.scopeClass || t?.mode ? {
2803
- classes: t?.scopeClass ? [...n?.classes ?? [], t.scopeClass] : n?.classes,
2804
- surface: n?.surface,
2805
- mode: n?.mode ?? t?.mode
2806
- } : n;
2807
- }, [
2808
- e?.themeScope,
2809
- t?.scopeClass,
2810
- t?.mode
2811
- ]);
2812
- }, Pr = "_float-popper_1z06c_1", Rr = "_float-popper-grow_1z06c_14", $r = "_entered_1z06c_22", Br = [0, 2], Or = (e) => {
2762
+ }, [t]), o = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [r, i] = A(n, o, o).split("\n"), s = {};
2763
+ return r && (s[hr] = r), i && (s[dr] = i), s;
2764
+ }, Ar = () => S(Cr)?.themeScope, Dr = "_float-popper_1z06c_1", Pr = "_float-popper-grow_1z06c_14", Rr = "_entered_1z06c_22", $r = [0, 2], Br = (e) => {
2813
2765
  const t = "function" == typeof e ? e() : e;
2814
2766
  if (!t) return null;
2815
2767
  if (1 === t.nodeType) return t;
2816
2768
  const n = t.contextElement;
2817
2769
  return n && 1 === n.nodeType ? n : null;
2818
2770
  }, Hr = w(v((t, n) => {
2819
- const { open: o, children: r, label: i, offsets: s = Br, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
2771
+ const { open: o, children: r, label: i, offsets: s = $r, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: C, onClosing: T, onClose: A, ...D } = t;
2820
2772
  if (Array.isArray(r)) throw new Error("children can not be an array");
2821
- const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = an(), se = Dr(), le = Ar(a ? null : Or(l)), ae = z(h);
2773
+ const R = jt(w ?? (() => {}), [w]), $ = jt(S ?? (() => {}), [S]), B = jt(C ?? (() => {}), [C]), O = jt(T ?? (() => {}), [T]), I = jt(A ?? (() => {}), [A]), [X, Z] = z(!1), [q, U] = z(!1), [G, J] = z(!1), [Q, ee] = z(), [te, ne] = z(), oe = k(null), re = k(null), { getPortalContainer: ie } = ln(), se = Ar(), le = zr(a ? null : Br(l)), ae = k(h);
2822
2774
  ae.current = h;
2823
2775
  const ce = !!h, ue = d ? "object" == typeof d ? d.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: de, alignmentAxis: fe } = Array.isArray(s) ? {
2824
2776
  mainAxis: s[1] ?? 0,
@@ -2828,13 +2780,13 @@ var Lr = g(null), Tr = () => {
2828
2780
  mainAxis: s.mainAxis ?? 0,
2829
2781
  crossAxis: s.crossAxis ?? 0,
2830
2782
  alignmentAxis: s.alignmentAxis
2831
- }, pe = T(() => {
2832
- const e = () => ae.current?.(), t = [V({
2783
+ }, pe = L(() => {
2784
+ const e = () => ae.current?.(), t = [K({
2833
2785
  mainAxis: he,
2834
2786
  crossAxis: de,
2835
2787
  alignmentAxis: fe
2836
- }), K(ce ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
2837
- if (null !== ue && t.push(j(() => ({
2788
+ }), W(ce ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
2789
+ if (null !== ue && t.push(V(() => ({
2838
2790
  boundary: e(),
2839
2791
  padding: ue
2840
2792
  }))), u) {
@@ -2844,7 +2796,7 @@ var Lr = g(null), Tr = () => {
2844
2796
  const o = Math.max(0, Math.round(t - 10));
2845
2797
  ne((e) => e === o ? e : o);
2846
2798
  };
2847
- t.push(Y(ce ? () => ({
2799
+ t.push(j(ce ? () => ({
2848
2800
  boundary: e(),
2849
2801
  apply: n
2850
2802
  }) : {
@@ -2860,16 +2812,16 @@ var Lr = g(null), Tr = () => {
2860
2812
  fe,
2861
2813
  ce,
2862
2814
  ue
2863
- ]), me = T(() => ({
2815
+ ]), me = L(() => ({
2864
2816
  getBoundingClientRect: () => {
2865
2817
  if (a) return new DOMRect(a.left || 0, a.top || 0, 0, 0);
2866
2818
  const e = (("function" == typeof l ? l() : l) ?? null)?.getBoundingClientRect?.();
2867
2819
  return e && (e.width || e.height || e.x || e.y) ? (re.current = e, e) : re.current ?? new DOMRect(0, 0, 0, 0);
2868
2820
  },
2869
2821
  get contextElement() {
2870
- if (!a) return Or(l) ?? void 0;
2822
+ if (!a) return Br(l) ?? void 0;
2871
2823
  }
2872
- }), [a, l]), ge = T(() => v ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [v]), { refs: _e, floatingStyles: ve, isPositioned: ye, placement: be, update: we } = X({
2824
+ }), [a, l]), ge = L(() => v ? (e, t, n) => F(e, t, n, { animationFrame: !0 }) : F, [v]), { refs: _e, floatingStyles: ve, isPositioned: ye, placement: be, update: we } = Y({
2873
2825
  placement: c,
2874
2826
  strategy: g,
2875
2827
  middleware: pe,
@@ -2878,47 +2830,47 @@ var Lr = g(null), Tr = () => {
2878
2830
  }), xe = x((e) => {
2879
2831
  oe.current = e, _e.setFloating(e);
2880
2832
  }, [_e]);
2881
- C(n, () => ({
2833
+ E(n, () => ({
2882
2834
  instance: () => oe.current ? { update: we } : null,
2883
2835
  element: () => oe.current
2884
2836
  }), [we]), M(() => {
2885
2837
  o && Z(!0);
2886
2838
  }, [o]), M(() => {
2887
- N && ye && !q && (U(!0), P?.(oe.current, { update: we }));
2839
+ X && ye && !q && (U(!0), R?.(oe.current, { update: we }));
2888
2840
  }, [
2889
- N,
2841
+ X,
2890
2842
  ye,
2891
2843
  q
2892
2844
  ]), M(() => {
2893
- o && q ? $?.() : !o && N && O?.();
2845
+ o && q ? $?.() : !o && X && O?.();
2894
2846
  }, [o, q]), M(() => {
2895
- if (N && q && o) {
2847
+ if (X && q && o) {
2896
2848
  if (!f) return J(!0), void B?.();
2897
2849
  const e = requestAnimationFrame(() => J(!0));
2898
2850
  return () => cancelAnimationFrame(e);
2899
2851
  }
2900
2852
  }, [
2901
- N,
2853
+ X,
2902
2854
  q,
2903
2855
  o,
2904
2856
  f
2905
2857
  ]), M(() => {
2906
- !o && N && (J(!1), Z(!1), U(!1), I?.());
2907
- }, [o, N]);
2908
- const Se = Yt((e) => {
2858
+ !o && X && (J(!1), Z(!1), U(!1), I?.());
2859
+ }, [o, X]);
2860
+ const Se = jt((e) => {
2909
2861
  e.target === e.currentTarget && o && G && B?.();
2910
2862
  }, [o, G]);
2911
- if (!N) return null;
2912
- const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = zr(se);
2863
+ if (!X) return null;
2864
+ const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = kr(se);
2913
2865
  let Le;
2914
2866
  Le = "anchor" === _ ? {
2915
2867
  ...Ce,
2916
2868
  ...le
2917
2869
  } : Ee || Ce["data-sxl-theme-mode"] || Ce["data-sxl-theme-surface"] ? Ce : le;
2918
- const Te = m ?? Zo("popup"), ke = r || e.EmptyArray;
2919
- return H(R("div", {
2870
+ const Te = m ?? Xo("popup"), ke = r || e.EmptyArray;
2871
+ return H(P("div", {
2920
2872
  ref: xe,
2921
- className: F(Pr, b, Ee),
2873
+ className: N(Dr, b, Ee),
2922
2874
  role: void 0,
2923
2875
  "data-placement": be ?? c,
2924
2876
  ...Le,
@@ -2926,13 +2878,13 @@ var Lr = g(null), Tr = () => {
2926
2878
  ...ve,
2927
2879
  maxHeight: u ? Q : void 0,
2928
2880
  maxWidth: u ? te : void 0,
2929
- zIndex: o ? Te : qo(Te, -1),
2930
- pointerEvents: N && o ? void 0 : "none",
2881
+ zIndex: o ? Te : Zo(Te, -1),
2882
+ pointerEvents: X && o ? void 0 : "none",
2931
2883
  ...y
2932
2884
  },
2933
2885
  ...D,
2934
- children: f ? R("div", {
2935
- className: F(Rr, { [$r]: G }),
2886
+ children: f ? P("div", {
2887
+ className: N(Pr, { [Rr]: G }),
2936
2888
  style: { transformOrigin: Me },
2937
2889
  onTransitionEnd: Se,
2938
2890
  children: ke
@@ -2940,35 +2892,35 @@ var Lr = g(null), Tr = () => {
2940
2892
  }), p ?? ie());
2941
2893
  }));
2942
2894
  Hr.displayName = "FloatPopper";
2943
- var Ir = "_float-popup_juap7_1", Nr = (e) => {
2895
+ var Or = "_float-popup_juap7_1", Ir = (e) => {
2944
2896
  const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
2945
- return R("div", {
2946
- className: F("sxl-menu", Ir, s),
2897
+ return P("div", {
2898
+ className: N("sxl-menu", Or, s),
2947
2899
  ...l,
2948
2900
  children: i
2949
2901
  });
2950
- }, Fr = "_float-panel_qj0za_1", Wr = w(v((e, t) => {
2951
- const { floatReference: n, popupContainer: o, renderPopupPanel: r = Nr, children: i, className: s, ...l } = e, a = {
2902
+ }, Nr = "_float-panel_qj0za_1", Fr = w(v((e, t) => {
2903
+ const { floatReference: n, popupContainer: o, renderPopupPanel: r = Ir, children: i, className: s, ...l } = e, a = {
2952
2904
  popupContainer: o,
2953
2905
  floatReference: n,
2954
2906
  children: i,
2955
2907
  ...l
2956
2908
  };
2957
- return R("div", {
2909
+ return P("div", {
2958
2910
  ref: t,
2959
- className: F(Fr, s),
2911
+ className: N(Nr, s),
2960
2912
  tabIndex: 0,
2961
- children: R(Ro, {
2913
+ children: P(Po, {
2962
2914
  render: r,
2963
2915
  props: a
2964
2916
  })
2965
2917
  });
2966
2918
  }));
2967
- Wr.displayName = "FloatPanelSurface";
2968
- var Kr = w(v((e, t) => {
2969
- const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Nr, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
2919
+ Fr.displayName = "FloatPanelSurface";
2920
+ var Wr = w(v((e, t) => {
2921
+ const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Ir, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = jt(u ?? (() => {}), [u]), v = jt(h ?? (() => {}), [h]), y = jt(d ?? (() => {}), [d]), b = jt(f ?? (() => {}), [f]), [w, x] = z(), S = k(null), M = jt((e, t) => {
2970
2922
  x(e), c?.(S.current, t);
2971
- }, [c]), E = T(() => R(Wr, {
2923
+ }, [c]), E = L(() => P(Fr, {
2972
2924
  ref: S,
2973
2925
  className: m,
2974
2926
  floatReference: s,
@@ -2982,7 +2934,7 @@ var Kr = w(v((e, t) => {
2982
2934
  w,
2983
2935
  s
2984
2936
  ]);
2985
- return R(Hr, {
2937
+ return P(Hr, {
2986
2938
  ref: t,
2987
2939
  anchorEl: o,
2988
2940
  anchorPosition: r,
@@ -2997,9 +2949,9 @@ var Kr = w(v((e, t) => {
2997
2949
  children: E
2998
2950
  });
2999
2951
  }));
3000
- Kr.displayName = "FloatPanel";
3001
- var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3002
- const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Lr), h = T(() => {
2952
+ Wr.displayName = "FloatPanel";
2953
+ var Kr = (e) => P(Wr, { ...e }), Vr = (e) => {
2954
+ const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Cr), h = L(() => {
3003
2955
  const e = u?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, h = l?.length || a || c ? {
3004
2956
  classes: l,
3005
2957
  surface: a,
@@ -3019,15 +2971,15 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3019
2971
  i,
3020
2972
  s,
3021
2973
  u
3022
- ]), d = Lt();
3023
- let f = R(Lr.Provider, {
2974
+ ]), d = Ct();
2975
+ let f = P(Cr.Provider, {
3024
2976
  value: h,
3025
2977
  children: c
3026
2978
  });
3027
- const p = l || !d, m = z(null);
3028
- p && null === m.current && (m.current = Tr());
2979
+ const p = l || !d, m = k(null);
2980
+ p && null === m.current && (m.current = Lr());
3029
2981
  const g = p ? m.current : null;
3030
- g && (f = R(Ct, {
2982
+ g && (f = P(Et, {
3031
2983
  value: g,
3032
2984
  children: f
3033
2985
  }));
@@ -3039,51 +2991,51 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3039
2991
  a.current = null;
3040
2992
  });
3041
2993
  }, [a, _]), f;
3042
- }, Yr = (e) => {
3043
- const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = kr(), p = u ?? f?.renderFloatPanel ?? Vr, m = void 0 === c ? f?.renderPopupPanel ?? Nr : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Tr(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
2994
+ }, jr = (e) => {
2995
+ const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = jt(s ?? (() => {}), [s]), d = jt(l ?? (() => {}), [l]), f = Tr(), p = u ?? f?.renderFloatPanel ?? Kr, m = void 0 === c ? f?.renderPopupPanel ?? Ir : c, g = Ct(), [_, v] = z(null), [y, b] = z(!1), [w, S] = z(!1), E = L(() => i ?? g ?? Lr(), []), C = L(() => E.getRoot(), []), A = L(() => ({ label: r }), []), D = k(null), R = k(t);
3044
2996
  M(() => {
3045
- P.current = t;
2997
+ R.current = t;
3046
2998
  }, [t]);
3047
2999
  const $ = (e) => {
3048
3000
  const t = C.floatByParents.get(e);
3049
3001
  let n = null;
3050
3002
  return t && (n = C.statesByMovables.get(t)?.close(0) ?? null), n;
3051
- }, B = () => $(G.key), [O, H] = A(null), I = () => {
3003
+ }, B = () => $(G.key), [H, O] = z(null), I = () => {
3052
3004
  if (!_) return V(), null;
3053
3005
  const e = new Promise((e) => {
3054
- H((t) => [...t ?? [], { resolve: e }]);
3006
+ O((t) => [...t ?? [], { resolve: e }]);
3055
3007
  });
3056
3008
  return B(), C.floatByParents.delete(E.key), v(!1), e;
3057
3009
  };
3058
3010
  M(() => {
3059
- if (O) {
3060
- for (const e of O) e.resolve();
3061
- H(null);
3011
+ if (H) {
3012
+ for (const e of H) e.resolve();
3013
+ O(null);
3062
3014
  }
3063
3015
  }, [
3064
3016
  y,
3065
3017
  w,
3066
- O
3018
+ H
3067
3019
  ]);
3068
3020
  const N = x(() => {
3069
3021
  let e = E;
3070
3022
  for (; e.parent;) e = e.parent;
3071
3023
  return $(e.key);
3072
- }, []), F = z(null), W = () => {
3024
+ }, []), F = k(null), W = () => {
3073
3025
  if (_) return void V();
3074
3026
  E && C.statesByMovables.get(E.key)?.open(0);
3075
3027
  const e = C.floatByParents.get(E.key);
3076
- e && e !== L && C.statesByMovables.get(e)?.close(0);
3028
+ e && e !== A && C.statesByMovables.get(e)?.close(0);
3077
3029
  const t = document.activeElement;
3078
3030
  t && t !== document.body && "function" == typeof t.focus && (F.current = t), requestAnimationFrame(() => {
3079
3031
  C.floatByParents.set(E.key, G.key), v(!0);
3080
3032
  });
3081
- }, [K, V] = k((e) => e + 1, 0), j = x((e) => null === m ? null : m({
3033
+ }, [K, V] = T((e) => e + 1, 0), j = x((e) => null === m ? null : m({
3082
3034
  closeFloat: Z,
3083
3035
  closeFloatAll: U,
3084
3036
  ...e
3085
- }), [m]), Y = null === m, X = Yt((e = 120) => C.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), Z = Yt((e = 60) => C.debounce(e, I, C.descendants(G), !0)(), [I]), q = Yt((e = 360) => C.debounce(e, B, C.descendants(C.getChildRef(G)), !0)(), [B]), U = Yt(N, [N]), G = T(() => ({
3086
- key: L,
3037
+ }), [m]), Y = null === m, X = jt((e = 120) => C.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), Z = jt((e = 60) => C.debounce(e, I, C.descendants(G), !0)(), [I]), q = jt((e = 360) => C.debounce(e, B, C.descendants(C.getChildRef(G)), !0)(), [B]), U = jt(N, [N]), G = L(() => ({
3038
+ key: A,
3087
3039
  isRoot: !1,
3088
3040
  label: r,
3089
3041
  parent: E,
@@ -3099,19 +3051,19 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3099
3051
  closeAll: U,
3100
3052
  getRoot: () => C,
3101
3053
  floatElement: () => D.current,
3102
- anchorElement: () => P.current
3054
+ anchorElement: () => R.current
3103
3055
  }), []);
3104
3056
  M(() => {
3105
- C.statesByMovables.set(L, G);
3057
+ C.statesByMovables.set(A, G);
3106
3058
  }, [G]), M(() => () => {
3107
- C.statesByMovables.delete(L), Z(0);
3059
+ C.statesByMovables.delete(A), Z(0);
3108
3060
  }, []), M(() => {
3109
3061
  _ && !Y && (b(!0), E.onChildVisible());
3110
3062
  }, [_, Y]), M(() => {
3111
3063
  if (_ && !Y) return C.addOpenPopup(G);
3112
3064
  }, [_, Y]);
3113
- const J = x((e) => {
3114
- e.which === Q.Escape && (e.preventDefault(), e.stopPropagation(), Z(0));
3065
+ const Q = x((e) => {
3066
+ e.which === J.Escape && (e.preventDefault(), e.stopPropagation(), Z(0));
3115
3067
  }, []), ee = x(() => {
3116
3068
  const e = F.current, t = D.current;
3117
3069
  e && t && (requestAnimationFrame(() => {
@@ -3129,11 +3081,11 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3129
3081
  requestAnimationFrame(() => {
3130
3082
  e.contains(document.activeElement) || t === document.activeElement && e.focus();
3131
3083
  });
3132
- }, [n]), [ne, oe] = A();
3084
+ }, [n]), [ne, oe] = z();
3133
3085
  M(() => {
3134
- Y && (_ ? h?.() : !1 === _ && d?.()), oe(y ? R(Ct, {
3086
+ Y && (_ ? h?.() : !1 === _ && d?.()), oe(y ? P(Et, {
3135
3087
  value: G,
3136
- children: R(Ro, {
3088
+ children: P(Po, {
3137
3089
  render: p,
3138
3090
  props: {
3139
3091
  ...f?.propsFloatPanel,
@@ -3150,7 +3102,7 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3150
3102
  },
3151
3103
  onMount: te,
3152
3104
  propsPopper: {
3153
- onKeyDown: J,
3105
+ onKeyDown: Q,
3154
3106
  onMouseEnter: (e) => {
3155
3107
  _ && C.lastDebounced?.isClose && C.lastDebounced.setReferences.has(G) && (C.lastDebounced.fn.clear(), C.lastDebounced = null, G.closeChild());
3156
3108
  },
@@ -3171,7 +3123,7 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3171
3123
  f?.propsFloatPanel,
3172
3124
  K
3173
3125
  ]);
3174
- const re = Yt((e) => {
3126
+ const re = jt((e) => {
3175
3127
  if (0 === C.floatByParents.size) return;
3176
3128
  let t = !1;
3177
3129
  const n = e.composedPath?.() ?? [], r = (t) => !!t && (n.length > 0 ? n.includes(t) : !!t.contains?.(e.target));
@@ -3197,16 +3149,16 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3197
3149
  reference: G,
3198
3150
  isOpen: !0 === _
3199
3151
  };
3200
- }, Xr = {}, Zr = (e) => {
3201
- const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Xr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3202
- return R("div", {
3152
+ }, Yr = {}, Xr = (e) => {
3153
+ const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Yr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
3154
+ return P("div", {
3203
3155
  style: {
3204
3156
  ...n,
3205
3157
  position: "relative"
3206
3158
  },
3207
3159
  ...c,
3208
- children: R("div", {
3209
- className: F("sxl-hit-box", d),
3160
+ children: P("div", {
3161
+ className: N("sxl-hit-box", d),
3210
3162
  style: {
3211
3163
  left: (u ? -r : 0) + "px",
3212
3164
  width: `calc(100% + ${u ? r + i : 0}px)`,
@@ -3219,7 +3171,7 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3219
3171
  ...f
3220
3172
  })
3221
3173
  }, l);
3222
- }, qr = {}, Ur = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Gr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Jr = (e, t) => {
3174
+ }, Zr = {}, qr = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Ur = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Gr = (e, t) => {
3223
3175
  if (null == e) return null;
3224
3176
  const n = {
3225
3177
  percent: null,
@@ -3227,31 +3179,31 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3227
3179
  };
3228
3180
  let o = t;
3229
3181
  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);
3230
- }, Qr = w(v((e, t) => {
3231
- const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = qr, propsPane: w = qr, propsPaneBefore: x = qr, propsPaneAfter: S = qr, renderResizer: E = Zr } = e;
3182
+ }, Jr = w(v((e, t) => {
3183
+ const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = Zr, propsPane: w = Zr, propsPaneBefore: x = Zr, propsPaneAfter: S = Zr, renderResizer: E = Xr } = e;
3232
3184
  if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
3233
- const C = T(() => y(o) && y(n), [o, n]), L = T(() => {
3185
+ const C = L(() => y(o) && y(n), [o, n]), T = L(() => {
3234
3186
  let e = null;
3235
3187
  i && ("before" === i ? e = 0 : "after" === i && (e = 1));
3236
3188
  const t = null === e;
3237
3189
  return {
3238
3190
  fixedPaneOffset: e,
3239
3191
  isPercent: t,
3240
- minBefore: Jr(a, t),
3241
- maxBefore: Jr(c, t),
3242
- minAfter: Jr(u, t),
3243
- maxAfter: Jr(h, t)
3192
+ minBefore: Gr(a, t),
3193
+ maxBefore: Gr(c, t),
3194
+ minAfter: Gr(u, t),
3195
+ maxAfter: Gr(h, t)
3244
3196
  };
3245
3197
  }, [
3246
3198
  a,
3247
3199
  c,
3248
3200
  u,
3249
3201
  h
3250
- ]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => Jr(s, null === i));
3202
+ ]), A = jt(l ?? (() => {}), [l]), [D, $] = z(() => Gr(s, null === i));
3251
3203
  M(() => {
3252
- P(Jr(s, null === i));
3204
+ $(Gr(s, null === i));
3253
3205
  }, [s, i]);
3254
- const [B, { width: O, height: H }] = bo(), [I, { width: W, height: K }] = bo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
3206
+ const [B, { width: H, height: O }] = yo(), [F, { width: W, height: K }] = yo(), V = "row" === r ? W : K, j = "row" === r ? H : O, Y = L(() => ((e, t, n, o) => {
3255
3207
  const r = [null, null], i = [null, null];
3256
3208
  if (e || (e = {
3257
3209
  percent: null === o.fixedPaneOffset ? 50 : null,
@@ -3259,13 +3211,13 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3259
3211
  }), 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)), {
3260
3212
  percents: i,
3261
3213
  pixels: r,
3262
- minBefore: Gr(o.minBefore, !0),
3263
- maxBefore: Gr(o.maxBefore, !0),
3264
- minAfter: Gr(o.minAfter),
3265
- maxAfter: Gr(o.maxAfter)
3214
+ minBefore: Ur(o.minBefore, !0),
3215
+ maxBefore: Ur(o.maxBefore, !0),
3216
+ minAfter: Ur(o.minAfter),
3217
+ maxAfter: Ur(o.maxAfter)
3266
3218
  };
3267
- let s = Ur(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Ur(o.minBefore, l, !0) ?? 0, c = Ur(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3268
- u = (Ur(o.maxAfter, t, !1) ?? n) - n, h = Ur(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Ur(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Ur(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3219
+ let s = qr(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = qr(o.minBefore, l, !0) ?? 0, c = qr(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
3220
+ u = (qr(o.maxAfter, t, !1) ?? n) - n, h = qr(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, qr(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, qr(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
3269
3221
  const p = Math.max(0, Math.min(100, s / l * 100));
3270
3222
  return i[0] = p, i[1] = 100 - p, {
3271
3223
  percents: i,
@@ -3275,13 +3227,13 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3275
3227
  maxBefore: `${r[0]}px`,
3276
3228
  maxAfter: `${r[1]}px`
3277
3229
  };
3278
- })(D, j, V, L), [
3279
- L,
3230
+ })(D, j, V, T), [
3231
+ T,
3280
3232
  D,
3281
3233
  j,
3282
3234
  V,
3283
3235
  r
3284
- ]), [X, Z] = A(!1), q = Yt(g ?? (() => {}), [g]), U = Yt(_ ?? (() => {}), [_]), G = Yt(v ?? (() => {}), [v]), J = z(null), Q = z(null), ee = z(null), { style: te, className: ne, ...oe } = w, re = {
3236
+ ]), [X, Z] = z(!1), q = jt(g ?? (() => {}), [g]), U = jt(_ ?? (() => {}), [_]), G = jt(v ?? (() => {}), [v]), J = k(null), Q = k(null), ee = k(null), { style: te, className: ne, ...oe } = w, re = {
3285
3237
  minWidth: 0,
3286
3238
  minHeight: 0,
3287
3239
  maxWidth: "100%",
@@ -3298,32 +3250,32 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3298
3250
  ...p,
3299
3251
  flexDirection: r,
3300
3252
  display: "flex"
3301
- }, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = Yt((e) => {
3302
- const t = Jr(e, null === i);
3303
- P(t);
3304
- }, [i]), _e = Yt((e) => {
3253
+ }, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = jt((e) => {
3254
+ const t = Gr(e, null === i);
3255
+ $(t);
3256
+ }, [i]), _e = jt((e) => {
3305
3257
  if (m || !X) return;
3306
3258
  const t = be.current?.getBoundingClientRect();
3307
3259
  let n = 0;
3308
- 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(j, n)), 1 === L.fixedPaneOffset && (n = j - n), s && D?.pixels === n || P({
3260
+ 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(j, n)), 1 === T.fixedPaneOffset && (n = j - n), s && D?.pixels === n || $({
3309
3261
  pixels: n,
3310
3262
  percent: null
3311
3263
  }), U?.(n), e.stopPropagation(), e.preventDefault();
3312
3264
  }, [
3313
- L,
3265
+ T,
3314
3266
  r,
3315
3267
  m,
3316
3268
  X,
3317
3269
  D,
3318
3270
  j
3319
- ]), ve = Yt((e) => {
3271
+ ]), ve = jt((e) => {
3320
3272
  if (document.removeEventListener("pointermove", _e), document.removeEventListener("touchmove", _e), document.removeEventListener("pointerup", ve), X && (Z(!1), D)) {
3321
- if (G(D.pixels ?? 0), !Jr(s, null === i) || D.pixels !== s) {
3273
+ if (G(D.pixels ?? 0), !Gr(s, null === i) || D.pixels !== s) {
3322
3274
  const e = D.pixels ?? 0, t = {
3323
3275
  pixels: e,
3324
3276
  percent: D.percent ?? e / j * 100
3325
3277
  };
3326
- k(t);
3278
+ A(t);
3327
3279
  }
3328
3280
  e.stopPropagation(), e.preventDefault();
3329
3281
  }
@@ -3333,16 +3285,16 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3333
3285
  s,
3334
3286
  i,
3335
3287
  j
3336
- ]), ye = Yt((e) => {
3288
+ ]), ye = jt((e) => {
3337
3289
  pe?.(e), e.defaultPrevented || m || X || (Z(!0), q(), document.addEventListener("pointermove", _e, { passive: !1 }), document.addEventListener("touchmove", _e, { passive: !1 }), document.addEventListener("pointerup", ve, { passive: !1 }));
3338
- }, [pe]), be = ao(t, () => ({
3290
+ }, [pe]), be = lo(t, () => ({
3339
3291
  setPosition: ge,
3340
3292
  isSplitPane: () => !0
3341
- }), []), we = N([I, Q]), xe = T(() => C ? R(Ro, {
3293
+ }), []), we = I([F, Q]), xe = L(() => C ? P(Po, {
3342
3294
  render: E,
3343
3295
  props: {
3344
3296
  ref: we,
3345
- className: F("sxl-resizer", de),
3297
+ className: N("sxl-resizer", de),
3346
3298
  onPointerDownCapture: ye,
3347
3299
  style: {
3348
3300
  cursor: m ? void 0 : "row" === r ? "ew-resize" : "ns-resize",
@@ -3365,18 +3317,18 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3365
3317
  r,
3366
3318
  fe,
3367
3319
  m
3368
- ]), Se = "row" === r ? "Width" : "Height", Me = T(() => {
3320
+ ]), Se = "row" === r ? "Width" : "Height", Me = L(() => {
3369
3321
  if (!n) return null;
3370
3322
  const e = {
3371
3323
  ...re,
3372
3324
  ...se,
3373
- flex: 0 === L.fixedPaneOffset && null !== Y?.pixels[0] ? `0 0 ${Math.round(Y?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[0] ?? 100)}%`,
3325
+ 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)}%`,
3374
3326
  [`min${Se}`]: Y?.minBefore,
3375
3327
  [`max${Se}`]: o ? Y?.maxBefore : "100%"
3376
3328
  };
3377
- return R("div", {
3329
+ return P("div", {
3378
3330
  ref: J,
3379
- className: F("sxl-before", ne, ie),
3331
+ className: N("sxl-before", ne, ie),
3380
3332
  style: e,
3381
3333
  ...oe,
3382
3334
  ...le,
@@ -3386,20 +3338,20 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3386
3338
  n,
3387
3339
  w,
3388
3340
  x,
3389
- L,
3341
+ T,
3390
3342
  Y
3391
- ]), Ee = T(() => {
3343
+ ]), Ee = L(() => {
3392
3344
  if (!o) return null;
3393
3345
  const e = {
3394
3346
  ...re,
3395
3347
  ...ce,
3396
- flex: 1 === L.fixedPaneOffset && null !== Y?.pixels[1] ? `0 0 ${Math.round(Y?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(Y?.percents[1] ?? 100)}%`,
3348
+ 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)}%`,
3397
3349
  [`min${Se}`]: Y?.minAfter,
3398
3350
  [`max${Se}`]: n ? Y?.maxAfter : "100%"
3399
3351
  };
3400
- return R("div", {
3352
+ return P("div", {
3401
3353
  ref: ee,
3402
- className: F("sxl-after", ne, ae),
3354
+ className: N("sxl-after", ne, ae),
3403
3355
  style: e,
3404
3356
  ...oe,
3405
3357
  ...ue,
@@ -3409,12 +3361,12 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3409
3361
  o,
3410
3362
  w,
3411
3363
  S,
3412
- L,
3364
+ T,
3413
3365
  Y
3414
- ]), Ce = N([B, be]);
3415
- return $("div", {
3366
+ ]), Ce = I([B, be]);
3367
+ return R("div", {
3416
3368
  ref: Ce,
3417
- className: F("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": X }, f),
3369
+ className: N("sxl-splitPane", "row" === r ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": X }, f),
3418
3370
  style: he,
3419
3371
  children: [
3420
3372
  Me,
@@ -3423,7 +3375,7 @@ var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
3423
3375
  ]
3424
3376
  });
3425
3377
  }));
3426
- function ei(e) {
3378
+ function Qr(e) {
3427
3379
  if ("function" == typeof e) return e;
3428
3380
  if ("string" == typeof e) {
3429
3381
  const t = e.trim();
@@ -3456,12 +3408,12 @@ function ei(e) {
3456
3408
  return null;
3457
3409
  }
3458
3410
  }(t);
3459
- if (e) return oi(e);
3411
+ if (e) return ni(e);
3460
3412
  }
3461
3413
  if (t.startsWith("<")) {
3462
- if (/^<\s*svg\b/i.test(t)) return oi(t);
3414
+ if (/^<\s*svg\b/i.test(t)) return ni(t);
3463
3415
  if (/^<\s*path\b/i.test(t)) {
3464
- const e = ti(t);
3416
+ const e = ei(t);
3465
3417
  if (e) return { paths: [{ d: e }] };
3466
3418
  }
3467
3419
  return { paths: [{ d: t }] };
@@ -3473,7 +3425,7 @@ function ei(e) {
3473
3425
  for (const n of e) if ("string" == typeof n) {
3474
3426
  const e = String(n).trim();
3475
3427
  if (e.startsWith("<path")) {
3476
- const n = ti(e);
3428
+ const n = ei(e);
3477
3429
  n && t.push({ d: n });
3478
3430
  } else t.push({ d: e });
3479
3431
  } else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
@@ -3481,14 +3433,14 @@ function ei(e) {
3481
3433
  }
3482
3434
  return e;
3483
3435
  }
3484
- function ti(e) {
3436
+ function ei(e) {
3485
3437
  const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
3486
3438
  return t ? t[1] ?? t[2] ?? null : null;
3487
3439
  }
3488
- function ni(e) {
3440
+ function ti(e) {
3489
3441
  if ("svg" in e) return {
3490
3442
  ...e,
3491
- svg: ei(e.svg)
3443
+ svg: Qr(e.svg)
3492
3444
  };
3493
3445
  if ("url" in e) {
3494
3446
  const t = "string" == typeof e.url ? { src: e.url } : e.url;
@@ -3506,7 +3458,7 @@ function ni(e) {
3506
3458
  }
3507
3459
  return e;
3508
3460
  }
3509
- function oi(e) {
3461
+ function ni(e) {
3510
3462
  try {
3511
3463
  if ("undefined" != typeof DOMParser) {
3512
3464
  const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
@@ -3539,9 +3491,9 @@ function oi(e) {
3539
3491
  paths: o
3540
3492
  };
3541
3493
  }
3542
- function ri(e) {
3494
+ function oi(e) {
3543
3495
  const t = {};
3544
- for (const [n, o] of Object.entries(e.icons)) t[n] = ni(o);
3496
+ for (const [n, o] of Object.entries(e.icons)) t[n] = ti(o);
3545
3497
  const n = {
3546
3498
  label: e.meta?.label ?? "Unnamed",
3547
3499
  version: e.meta?.version ?? "1.0.0",
@@ -3558,14 +3510,14 @@ function ri(e) {
3558
3510
  const e = {};
3559
3511
  for (const [t, n] of Object.entries(r)) {
3560
3512
  const o = {};
3561
- for (const [e, t] of Object.entries(n)) o[e] = ni(t);
3513
+ for (const [e, t] of Object.entries(n)) o[e] = ti(t);
3562
3514
  e[t] = o;
3563
3515
  }
3564
3516
  o.__overrides = e;
3565
3517
  }
3566
3518
  return o;
3567
3519
  }
3568
- function ii() {
3520
+ function ri() {
3569
3521
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
3570
3522
  let n = "base", o = /* @__PURE__ */ new Map();
3571
3523
  async function r(t) {
@@ -3576,7 +3528,7 @@ function ii() {
3576
3528
  if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
3577
3529
  o.loading = o.loader().then((e) => {
3578
3530
  const t = e && "object" == typeof e && "default" in e ? e.default : e;
3579
- o.pack = ri(t);
3531
+ o.pack = oi(t);
3580
3532
  }).catch((e) => {
3581
3533
  throw o.loading = void 0, e;
3582
3534
  });
@@ -3631,7 +3583,7 @@ function ii() {
3631
3583
  return {
3632
3584
  register: function(t, o) {
3633
3585
  const r = e.get(t) ?? {};
3634
- "function" == typeof o ? r.loader = o : r.pack = ri(o), e.set(t, r), n || (n = t);
3586
+ "function" == typeof o ? r.loader = o : r.pack = oi(o), e.set(t, r), n || (n = t);
3635
3587
  },
3636
3588
  prefetch: async function(e = n) {
3637
3589
  const t = Array.isArray(e) ? e : [e];
@@ -3694,25 +3646,25 @@ function ii() {
3694
3646
  }
3695
3647
  };
3696
3648
  }
3697
- Qr.displayName = "SplitPane";
3698
- var si = ii();
3699
- si.register("base", () => import("./BQslMd4UYY47M7dX.mjs")), si.register("cf", () => import("./BuKRRQ8FGiZxTYQ1.mjs"));
3700
- var li = (e) => R("svg", {
3649
+ Jr.displayName = "SplitPane";
3650
+ var ii = ri();
3651
+ ii.register("base", () => import("./B5pWqSf3jcgyK-cu.mjs")), ii.register("cf", () => import("./VSEK8OvCIKoam06_.mjs"));
3652
+ var si = (e) => P("svg", {
3701
3653
  ...e,
3702
- children: R("path", {})
3703
- }), ai = {
3704
- Icon: "_Icon_16f7r_10",
3705
- "sxl-walk": "_sxl-walk_16f7r_1"
3706
- }, ci = w((t) => {
3707
- const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: u, children: h, ...d } = t, [f, p] = A(null);
3654
+ children: P("path", {})
3655
+ }), li = {
3656
+ Icon: "_Icon_1cewm_10",
3657
+ "sxl-walk": "_sxl-walk_1cewm_1"
3658
+ }, ai = w((t) => {
3659
+ const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: u, children: h, ...d } = t, [f, p] = z(null);
3708
3660
  M(() => {
3709
3661
  let t = !0, r = o, i = n;
3710
3662
  if (!i) {
3711
- const t = si.getPack(r);
3663
+ const t = ii.getPack(r);
3712
3664
  p({
3713
3665
  glyph: t ? { svg: e.EmptyArray } : void 0,
3714
3666
  pack: t ?? void 0,
3715
- packKey: r ?? si.getActive()
3667
+ packKey: r ?? ii.getActive()
3716
3668
  });
3717
3669
  return;
3718
3670
  }
@@ -3720,7 +3672,7 @@ var li = (e) => R("svg", {
3720
3672
  const [e, t] = i.split(":");
3721
3673
  r = e, i = t;
3722
3674
  }
3723
- return si.resolve(i, { packKey: r }).then((e) => {
3675
+ return ii.resolve(i, { packKey: r }).then((e) => {
3724
3676
  t && p(e);
3725
3677
  }).catch(() => {}), () => {
3726
3678
  t = !1;
@@ -3728,14 +3680,14 @@ var li = (e) => R("svg", {
3728
3680
  }, [n, o]);
3729
3681
  const m = f?.pack, g = f?.glyph, _ = f?.packKey;
3730
3682
  let v = g ? g.svg : void 0;
3731
- 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 = T(() => [
3732
- ai.Icon,
3683
+ 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 = L(() => [
3684
+ li.Icon,
3733
3685
  "icon",
3734
3686
  r
3735
- ].filter(Boolean).join(" "), [r]), S = T(() => {
3687
+ ].filter(Boolean).join(" "), [r]), S = L(() => {
3736
3688
  const e = { ...i };
3737
3689
  return e["--icon-size"] = w, e;
3738
- }, [i, w]), E = s ?? (l ? "img" : "presentation"), C = c ?? (!l || void 0), L = (e) => R("span", {
3690
+ }, [i, w]), E = s ?? (l ? "img" : "presentation"), C = c ?? (!l || void 0), T = (e) => P("span", {
3739
3691
  className: x,
3740
3692
  style: S,
3741
3693
  role: E,
@@ -3746,9 +3698,9 @@ var li = (e) => R("svg", {
3746
3698
  ...d,
3747
3699
  children: e
3748
3700
  });
3749
- if (h) return L(h);
3750
- if (b) return L(R("span", { children: "string" == typeof b ? b : b.text }));
3751
- if (y) return L(R("img", {
3701
+ if (h) return T(h);
3702
+ if (b) return T(P("span", { children: "string" == typeof b ? b : b.text }));
3703
+ if (y) return T(P("img", {
3752
3704
  src: y.src,
3753
3705
  alt: l ?? ""
3754
3706
  }));
@@ -3762,15 +3714,15 @@ var li = (e) => R("svg", {
3762
3714
  ...d,
3763
3715
  ...u
3764
3716
  };
3765
- return L(R(e, { ...t }));
3717
+ return T(P(e, { ...t }));
3766
3718
  }
3767
3719
  const k = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
3768
- if ("function" == typeof v) return L(v(k) ?? R(li, { ...k }));
3769
- if (!v) return L(R(li, { ...k }));
3770
- const z = v.paths;
3771
- return L(R("svg", {
3720
+ if ("function" == typeof v) return T(v(k) ?? P(si, { ...k }));
3721
+ if (!v) return T(P(si, { ...k }));
3722
+ const A = v.paths;
3723
+ return T(P("svg", {
3772
3724
  ...k,
3773
- children: z ? z.map((e, t) => R("path", {
3725
+ children: A ? A.map((e, t) => P("path", {
3774
3726
  d: e.d,
3775
3727
  className: e.className,
3776
3728
  fill: e.fill,
@@ -3781,8 +3733,8 @@ var li = (e) => R("svg", {
3781
3733
  }, t)) : null
3782
3734
  }));
3783
3735
  });
3784
- function ui(e) {
3785
- const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...u } = e, h = T(() => {
3736
+ function ci(e) {
3737
+ const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...u } = e, h = L(() => {
3786
3738
  if (!t) return;
3787
3739
  const e = {
3788
3740
  "--walk-duration": `${o * (r + i)}ms`,
@@ -3796,8 +3748,8 @@ function ui(e) {
3796
3748
  r,
3797
3749
  i,
3798
3750
  n
3799
- ]), d = T(() => t ? c + " walking" : c, [t, c]);
3800
- return R(ci, {
3751
+ ]), d = L(() => t ? c + " walking" : c, [t, c]);
3752
+ return P(ai, {
3801
3753
  iconKey: s,
3802
3754
  packKey: l,
3803
3755
  className: d,
@@ -3808,7 +3760,7 @@ function ui(e) {
3808
3760
  ...u
3809
3761
  });
3810
3762
  }
3811
- var hi = class {
3763
+ var ui = class {
3812
3764
  constructor() {
3813
3765
  this.store = /* @__PURE__ */ new Map();
3814
3766
  }
@@ -3821,36 +3773,36 @@ var hi = class {
3821
3773
  removeItem(e) {
3822
3774
  this.store.delete(e);
3823
3775
  }
3824
- }, di = g(null), fi = Object.freeze({}), pi = {
3776
+ }, hi = g(null), di = Object.freeze({}), fi = {
3825
3777
  parse: (e) => e ? JSON.parse(e) : null,
3826
3778
  stringify: JSON.stringify
3827
- }, mi = /* @__PURE__ */ new Map(), gi = {
3828
- store: new hi(),
3779
+ }, pi = /* @__PURE__ */ new Map(), mi = {
3780
+ store: new ui(),
3829
3781
  namespace: "",
3830
- serializer: pi,
3782
+ serializer: fi,
3831
3783
  onReady: (e) => {
3832
3784
  e();
3833
3785
  },
3834
3786
  debounceMs: 0,
3835
- defaultValues: fi,
3787
+ defaultValues: di,
3836
3788
  notify: (e, t) => {
3837
- const n = mi.get(e);
3789
+ const n = pi.get(e);
3838
3790
  n && n.forEach((e) => e(t));
3839
3791
  },
3840
3792
  subscribeKey: (e, t) => {
3841
- const n = mi.get(e) ?? /* @__PURE__ */ new Set();
3842
- return n.add(t), mi.set(e, n), () => {
3843
- const n = mi.get(e);
3844
- n && (n.delete(t), 0 === n.size && mi.delete(e));
3793
+ const n = pi.get(e) ?? /* @__PURE__ */ new Set();
3794
+ return n.add(t), pi.set(e, n), () => {
3795
+ const n = pi.get(e);
3796
+ n && (n.delete(t), 0 === n.size && pi.delete(e));
3845
3797
  };
3846
3798
  }
3847
3799
  };
3848
- function _i(e, t, n = vi) {
3849
- const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(di) || gi, u = n.serializer ?? i ?? pi, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3800
+ function gi(e, t, n = _i) {
3801
+ const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(hi) || mi, u = n.serializer ?? i ?? fi, h = k(null), d = L(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
3850
3802
  if (null != e && Object.prototype.hasOwnProperty.call(c, e)) return c[e];
3851
3803
  const n = t;
3852
3804
  return "function" == typeof n ? n() : n;
3853
- }, [m, g] = A(() => {
3805
+ }, [m, g] = z(() => {
3854
3806
  if (null == d) return p();
3855
3807
  let e, t = o.getItem(d);
3856
3808
  if (null == t) return p();
@@ -3860,9 +3812,9 @@ function _i(e, t, n = vi) {
3860
3812
  e = p();
3861
3813
  }
3862
3814
  return e;
3863
- }), _ = z(m);
3815
+ }), _ = k(m);
3864
3816
  _.current = m;
3865
- const v = z(!1);
3817
+ const v = k(!1);
3866
3818
  M(() => {
3867
3819
  null == d && g(p());
3868
3820
  }, [d]), M(() => {
@@ -3917,20 +3869,20 @@ function _i(e, t, n = vi) {
3917
3869
  M(() => () => {
3918
3870
  h.current && clearTimeout(h.current);
3919
3871
  }, []);
3920
- const E = z(b);
3872
+ const E = k(b);
3921
3873
  E.current = b;
3922
- const C = z(w);
3874
+ const C = k(w);
3923
3875
  return C.current = w, [
3924
3876
  m,
3925
3877
  x((e) => E.current(e), []),
3926
3878
  x(() => C.current(), [])
3927
3879
  ];
3928
3880
  }
3929
- var vi = {};
3930
- function yi(e) {
3931
- const { store: t, namespace: n = "", serializer: o = xi, debounceMs: r = 150, defaultValues: i = fi, children: s } = e, l = z(i);
3932
- Si(l.current, i) || (l.current = i);
3933
- const a = l.current, c = T(() => "undefined" == typeof window ? new hi() : t ?? new hi(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
3881
+ var _i = {};
3882
+ function vi(e) {
3883
+ const { store: t, namespace: n = "", serializer: o = wi, debounceMs: r = 150, defaultValues: i = di, children: s } = e, l = k(i);
3884
+ xi(l.current, i) || (l.current = i);
3885
+ const a = l.current, c = L(() => "undefined" == typeof window ? new ui() : t ?? new ui(), [t]), u = k(/* @__PURE__ */ new Map()), h = L(() => ({
3934
3886
  store: c,
3935
3887
  namespace: n,
3936
3888
  serializer: o,
@@ -3963,19 +3915,19 @@ function yi(e) {
3963
3915
  const t = e.slice(h.namespace.length + 1);
3964
3916
  h.notify(t);
3965
3917
  });
3966
- }, [h]), R(di.Provider, {
3918
+ }, [h]), P(hi.Provider, {
3967
3919
  value: h,
3968
3920
  children: s
3969
3921
  });
3970
3922
  }
3971
- var bi, wi, xi = {
3923
+ var yi, bi, wi = {
3972
3924
  parse: (e) => null == e ? null : JSON.parse(e),
3973
3925
  stringify: JSON.stringify
3974
- }, Si = (e, t) => {
3926
+ }, xi = (e, t) => {
3975
3927
  if (e === t) return !0;
3976
3928
  const n = Object.keys(e);
3977
3929
  return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
3978
- }, Mi = class {
3930
+ }, Si = class {
3979
3931
  constructor(e = window.localStorage) {
3980
3932
  this.storage = e;
3981
3933
  }
@@ -4002,10 +3954,10 @@ var bi, wi, xi = {
4002
3954
  };
4003
3955
  return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
4004
3956
  }
4005
- }, Ei = /* @__PURE__ */ new WeakMap();
4006
- (wi = bi || (bi = {})).begin = function(e) {
4007
- let t = Ei.get(e);
4008
- t || (t = /* @__PURE__ */ new Set(), Ei.set(e, t));
3957
+ }, Mi = /* @__PURE__ */ new WeakMap();
3958
+ (bi = yi || (yi = {})).begin = function(e) {
3959
+ let t = Mi.get(e);
3960
+ t || (t = /* @__PURE__ */ new Set(), Mi.set(e, t));
4009
3961
  let n = () => {};
4010
3962
  const o = new Promise((e) => {
4011
3963
  n = e;
@@ -4016,52 +3968,52 @@ var bi, wi, xi = {
4016
3968
  return () => {
4017
3969
  r || (r = !0, i.delete(o), n());
4018
3970
  };
4019
- }, wi.isPending = function(e) {
4020
- return (Ei.get(e)?.size ?? 0) > 0;
3971
+ }, bi.isPending = function(e) {
3972
+ return (Mi.get(e)?.size ?? 0) > 0;
4021
3973
  };
4022
- var Ci = async (e) => {
4023
- const t = Ei.get(e);
3974
+ var Ei = async (e) => {
3975
+ const t = Mi.get(e);
4024
3976
  for (; t && t.size > 0;) await Promise.allSettled([...t]);
4025
- }, Li = g(null), Ti = (e) => f.createElement(Li.Provider, { value: e.scope }, e.children), ki = (e, t) => {
4026
- const n = S(Li), o = void 0 === t ? n : t;
3977
+ }, Ci = g(null), Li = (e) => f.createElement(Ci.Provider, { value: e.scope }, e.children), Ti = (e, t) => {
3978
+ const n = S(Ci), o = void 0 === t ? n : t;
4027
3979
  M(() => {
4028
- if (o && e) return bi.begin(o);
3980
+ if (o && e) return yi.begin(o);
4029
3981
  }, [o, e]);
4030
- }, zi = {
3982
+ }, ki = {
4031
3983
  Horizontal: "horizontal",
4032
3984
  Vertical: "vertical"
4033
- }, Ai = "_scrollbar_1kbpg_24", Di = "_track_1kbpg_35", Pi = "_thumb_1kbpg_47", Ri = "_scrollbar-button_1kbpg_96", $i = "_touch-thumb_1kbpg_131", Bi = "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", Oi = "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", Hi = { transform: "rotate(180deg)" }, Ii = (e) => {
4034
- const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
4035
- return R("button", {
3985
+ }, zi = "_scrollbar_z7hk1_1", Ai = "_track_z7hk1_29", Di = "_thumb_z7hk1_41", Pi = "_scrollbar-button_z7hk1_90", Ri = "_touch-thumb_z7hk1_125", $i = "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", Bi = "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", Hi = { transform: "rotate(180deg)" }, Oi = (e) => {
3986
+ const { style: t, orientation: n = ki.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === ki.Vertical ? $i : Bi;
3987
+ return P("button", {
4036
3988
  style: t,
4037
- className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
3989
+ className: N(Pi, `sxl-${n}`, "sxl-scroll-button"),
4038
3990
  disabled: r,
4039
3991
  ...i,
4040
- children: R("svg", {
3992
+ children: P("svg", {
4041
3993
  width: "9",
4042
3994
  height: "9",
4043
3995
  viewBox: "0 0 9 9",
4044
- children: R("path", { d: s })
3996
+ children: P("path", { d: s })
4045
3997
  })
4046
3998
  });
4047
- }, Ni = (e) => {
4048
- const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
4049
- return R("button", {
3999
+ }, Ii = (e) => {
4000
+ const { style: t, orientation: n = ki.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === ki.Vertical ? $i : Bi;
4001
+ return P("button", {
4050
4002
  style: t,
4051
- className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
4003
+ className: N(Pi, `sxl-${n}`, "sxl-scroll-button"),
4052
4004
  disabled: r,
4053
4005
  ...i,
4054
- children: R("svg", {
4006
+ children: P("svg", {
4055
4007
  width: "9",
4056
4008
  height: "9",
4057
4009
  viewBox: "0 0 9 9",
4058
4010
  style: Hi,
4059
- children: R("path", { d: s })
4011
+ children: P("path", { d: s })
4060
4012
  })
4061
4013
  });
4062
- }, Fi = (e) => {
4063
- const { style: t, orientation: n = zi.Vertical, isBefore: o, ...r } = e, i = n === zi.Vertical;
4064
- return R("div", {
4014
+ }, Ni = (e) => {
4015
+ const { style: t, orientation: n = ki.Vertical, isBefore: o, ...r } = e, i = n === ki.Vertical;
4016
+ return P("div", {
4065
4017
  style: {
4066
4018
  display: "flex",
4067
4019
  justifyContent: "center",
@@ -4074,7 +4026,7 @@ var Ci = async (e) => {
4074
4026
  },
4075
4027
  className: `sxl-scrollbar-button ${i ? "sxl-vertical" : "sxl-horizontal"} sxl-edge`,
4076
4028
  ...r,
4077
- children: R(ci, {
4029
+ children: P(ai, {
4078
4030
  style: {
4079
4031
  transition: "opacity 240ms ease 0s",
4080
4032
  opacity: e.disabled ? 0 : 1,
@@ -4084,7 +4036,7 @@ var Ci = async (e) => {
4084
4036
  iconKey: "MoreHorizontal"
4085
4037
  })
4086
4038
  });
4087
- }, Wi = 60, Ki = 260, Vi = 120, ji = (e) => {
4039
+ }, Fi = 60, Wi = 260, Ki = 120, Vi = (e) => {
4088
4040
  const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
4089
4041
  let c = null, u = null, h = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
4090
4042
  const v = () => {
@@ -4134,10 +4086,10 @@ var Ci = async (e) => {
4134
4086
  },
4135
4087
  dispose: () => v()
4136
4088
  };
4137
- }, Yi = (e) => {
4138
- const [t, n] = A(null), o = z(e);
4089
+ }, ji = (e) => {
4090
+ const [t, n] = z(null), o = k(e);
4139
4091
  o.current = e;
4140
- const r = T(() => ji({
4092
+ const r = L(() => Vi({
4141
4093
  vertical: o.current.vertical,
4142
4094
  getTrackRect: () => o.current.getTrackRect(),
4143
4095
  getThumb: () => o.current.getThumb(),
@@ -4153,20 +4105,20 @@ var Ci = async (e) => {
4153
4105
  onPointerUp: r.onPointerUp,
4154
4106
  dragMode: t
4155
4107
  };
4156
- }, Xi = 22, Zi = 1.8, qi = 8, Ui = 4, Gi = 8, Ji = -2, Qi = (e = 22) => e / 2 + 8, es = (e = 22) => e + 16, ts = g(null), ns = (e) => {
4108
+ }, Yi = 22, Xi = 1.8, Zi = 8, qi = 4, Ui = 8, Gi = -2, Ji = (e = 22) => e / 2 + 8, Qi = (e = 22) => e + 16, es = g(null), ts = (e) => {
4157
4109
  const { value: t, children: n } = e;
4158
- return R(ts.Provider, {
4110
+ return P(es.Provider, {
4159
4111
  value: t,
4160
4112
  children: n
4161
4113
  });
4162
- }, os = () => S(ts), rs = Fe().supportsTouchEvents, is = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ss = w(v((e, t) => {
4163
- 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 = zi.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4164
- if (!rs) return null;
4165
- const _ = c === zi.Vertical, v = os(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
4114
+ }, ns = () => S(es), os = Ne().supportsTouchEvents, rs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, is = w(v((e, t) => {
4115
+ 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 = ki.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
4116
+ if (!os) return null;
4117
+ const _ = c === ki.Vertical, v = ns(), y = jt(h ?? (() => {}), [h]), b = jt(d ?? (() => {}), [d]), w = jt(f ?? (() => {}), [f]), x = k(null), S = I([x, t]), E = jt((e) => ({
4166
4118
  dragging: e,
4167
4119
  element: x.current,
4168
4120
  source: "touch"
4169
- }), []), [C, L] = A(!1), k = z({
4121
+ }), []), [C, T] = z(!1), A = k({
4170
4122
  isVertical: _,
4171
4123
  travel: 0,
4172
4124
  startAlong: 0,
@@ -4180,12 +4132,12 @@ var Ci = async (e) => {
4180
4132
  count: 0,
4181
4133
  timer: null
4182
4134
  });
4183
- k.current.isVertical = _, k.current.fraction = is(u), k.current.hasEdgeHold = !!d;
4184
- const D = Yt(() => {
4185
- const e = k.current;
4135
+ A.current.isVertical = _, A.current.fraction = rs(u), A.current.hasEdgeHold = !!d;
4136
+ const D = jt(() => {
4137
+ const e = A.current;
4186
4138
  e.timer && clearTimeout(e.timer), e.timer = null;
4187
- }, []), P = Yt(() => {
4188
- const e = k.current;
4139
+ }, []), R = jt(() => {
4140
+ const e = A.current;
4189
4141
  if (e.timer = null, !e.edge || !e.dragging) return;
4190
4142
  e.count++;
4191
4143
  const t = Math.max(0, e.edge > 0 ? e.rawFraction - 1 : -e.rawFraction) * e.travel;
@@ -4193,42 +4145,42 @@ var Ci = async (e) => {
4193
4145
  count: e.count,
4194
4146
  heldMs: Date.now() - e.engagedAt,
4195
4147
  overshootPx: t
4196
- }) && (e.timer = setTimeout(P, 60));
4197
- }, []), $ = Yt(() => {
4198
- const e = k.current;
4148
+ }) && (e.timer = setTimeout(R, 60));
4149
+ }, []), $ = jt(() => {
4150
+ const e = A.current;
4199
4151
  if (!e.hasEdgeHold) return;
4200
4152
  const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
4201
- t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(P, 60)));
4202
- }, []), B = mn(T(() => ({
4153
+ t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(R, 60)));
4154
+ }, []), B = pn(L(() => ({
4203
4155
  processTouch: !0,
4204
4156
  onPointerDown: (e, t) => {
4205
- const n = k.current;
4206
- n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, L(!0), w?.(E(!0)), e.preventDefault(), e.stopPropagation();
4157
+ const n = A.current;
4158
+ 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?.(E(!0)), e.preventDefault(), e.stopPropagation();
4207
4159
  },
4208
4160
  onPointerMoveOrWait: (e) => {
4209
- const t = k.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4210
- t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(is(t.rawFraction)), $();
4161
+ const t = A.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
4162
+ t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(rs(t.rawFraction)), $();
4211
4163
  },
4212
4164
  onPointerUp: (e) => {
4213
- const t = k.current;
4214
- t.edge = 0, t.dragging = !1, D(), L(!1), w?.(E(!1)), e.preventDefault(), e.stopPropagation();
4165
+ const t = A.current;
4166
+ t.edge = 0, t.dragging = !1, D(), T(!1), w?.(E(!1)), e.preventDefault(), e.stopPropagation();
4215
4167
  }
4216
4168
  }), []));
4217
4169
  if (M(() => () => {
4218
- const e = k.current;
4170
+ const e = A.current;
4219
4171
  e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(E(!1)));
4220
4172
  }, []), !v?.portalTarget) return null;
4221
- const O = 1.8 * s, I = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
4222
- k.current.travel = Z;
4223
- const q = j + 4 + O / 2 + is(u) * Z;
4173
+ const O = 1.8 * s, F = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
4174
+ A.current.travel = Z;
4175
+ const q = j + 4 + O / 2 + rs(u) * Z;
4224
4176
  let U, G;
4225
- return _ ? (U = v.width - v.crossInset - I / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - I / 2), H(R("div", {
4226
- className: F("sxl-touch-thumb", $i, a, { "sxl-dragging": C }),
4177
+ return _ ? (U = v.width - v.crossInset - F / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - F / 2), H(P("div", {
4178
+ className: N("sxl-touch-thumb", Ri, a, { "sxl-dragging": C }),
4227
4179
  ref: S,
4228
4180
  style: {
4229
4181
  left: U,
4230
4182
  top: G,
4231
- width: I,
4183
+ width: F,
4232
4184
  height: W,
4233
4185
  zIndex: 20,
4234
4186
  borderWidth: `${i}px`,
@@ -4248,22 +4200,22 @@ var Ci = async (e) => {
4248
4200
  ...g
4249
4201
  }), v.portalTarget, m);
4250
4202
  }));
4251
- ss.displayName = "TouchThumbHandle";
4252
- var ls = 24, as = w(v((e, t) => {
4253
- const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = zi.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ls, maxThumbSize: m, renderScrollButtonStart: g = Ii, renderScrollButtonEnd: _ = Ni, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Mn(), L = u ?? !C;
4254
- Yt(c ?? (() => {}), [c]);
4255
- const [k, D] = A({
4203
+ is.displayName = "TouchThumbHandle";
4204
+ var ss = "_scrollbar-themed_5hlx8_9", ls = "_scrollbar-colors_5hlx8_5", as = 24, cs = w(v((e, t) => {
4205
+ const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = ki.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = as, maxThumbSize: m, renderScrollButtonStart: g = Oi, renderScrollButtonEnd: _ = Ii, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Sn(), T = u ?? !C;
4206
+ jt(c ?? (() => {}), [c]);
4207
+ const [A, $] = z({
4256
4208
  offset: 0,
4257
4209
  length: 0,
4258
4210
  disabled: !1
4259
- }), B = z(-1), O = l === zi.Vertical, [H, { width: I, height: W }] = bo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
4211
+ }), B = k(-1), H = l === ki.Vertical, [O, { width: F, height: W }] = yo(), K = H ? W : F, V = k(null), j = I([O, V]), Y = jt((e, t, n) => {
4260
4212
  if (0 === t || 0 === n) {
4261
4213
  const e = {
4262
4214
  offset: 0,
4263
4215
  length: p,
4264
4216
  disabled: !0
4265
4217
  };
4266
- return D(e), e;
4218
+ return $(e), e;
4267
4219
  }
4268
4220
  if (t >= n) return {
4269
4221
  offset: 0,
@@ -4280,47 +4232,47 @@ var ls = 24, as = w(v((e, t) => {
4280
4232
  K,
4281
4233
  p,
4282
4234
  m
4283
- ]), X = Yt((e) => {
4235
+ ]), X = jt((e) => {
4284
4236
  const t = o / K, n = Math.round(e * t);
4285
- D(Y(n, r, o)), a?.(n, r, o), B.current = e;
4237
+ $(Y(n, r, o)), a?.(n, r, o), B.current = e;
4286
4238
  }, [
4287
4239
  a,
4288
4240
  r,
4289
4241
  o,
4290
4242
  K,
4291
- k
4292
- ]), Z = Yt((e) => {
4293
- D(Y(e, r, o)), a?.(e, r, o), B.current = e;
4243
+ A
4244
+ ]), Z = jt((e) => {
4245
+ $(Y(e, r, o)), a?.(e, r, o), B.current = e;
4294
4246
  }, [
4295
4247
  a,
4296
4248
  r,
4297
4249
  o
4298
4250
  ]);
4299
4251
  M(() => {
4300
- B.current !== n && 0 !== K && (B.current = -1, D(Y(n, r, o)));
4252
+ B.current !== n && 0 !== K && (B.current = -1, $(Y(n, r, o)));
4301
4253
  }, [n]), M(() => {
4302
- 0 !== K && D(Y(n, r, o));
4254
+ 0 !== K && $(Y(n, r, o));
4303
4255
  }, [
4304
4256
  r,
4305
4257
  o,
4306
- O,
4258
+ H,
4307
4259
  K
4308
4260
  ]);
4309
- const q = Math.max(0, o - r), U = ao(t, () => ({ isScrollbar: () => !0 }), []), G = Yt((e) => {
4261
+ const q = Math.max(0, o - r), U = lo(t, () => ({ isScrollbar: () => !0 }), []), G = jt((e) => {
4310
4262
  const t = Math.max(1, Math.floor(.9 * r)), o = e > 0 ? Math.min(q, n + t) : Math.max(0, n - t);
4311
4263
  Z(o);
4312
4264
  }, [
4313
4265
  r,
4314
4266
  n,
4315
4267
  q
4316
- ]), Q = Yi({
4317
- vertical: O,
4268
+ ]), Q = ji({
4269
+ vertical: H,
4318
4270
  getTrackRect: () => V.current?.getBoundingClientRect() ?? null,
4319
- getThumb: () => k.disabled ? null : {
4320
- offset: k.offset,
4321
- length: k.length
4271
+ getThumb: () => A.disabled ? null : {
4272
+ offset: A.offset,
4273
+ length: A.length
4322
4274
  },
4323
- onStart: Yt((e) => k.disabled ? null : "thumb" === e ? (w?.({
4275
+ onStart: jt((e) => A.disabled ? null : "thumb" === e ? (w?.({
4324
4276
  dragging: !0,
4325
4277
  element: ne.current,
4326
4278
  source: "thumb"
@@ -4337,29 +4289,29 @@ var ls = 24, as = w(v((e, t) => {
4337
4289
  page: G,
4338
4290
  dragMode: "page"
4339
4291
  }, [
4340
- k,
4292
+ A,
4341
4293
  b,
4342
4294
  w
4343
4295
  ])
4344
- }), ee = "thumb" === Q.dragMode, te = Yt((e) => {
4296
+ }), ee = "thumb" === Q.dragMode, te = jt((e) => {
4345
4297
  const t = Math.max(1, Math.floor(.9 * r));
4346
- O ? ("ArrowDown" === e.key && X(Math.min(q, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q)) : ("ArrowRight" === e.key && X(Math.min(q, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q));
4298
+ H ? ("ArrowDown" === e.key && X(Math.min(q, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q)) : ("ArrowRight" === e.key && X(Math.min(q, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(q, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(q));
4347
4299
  }, [
4348
- O,
4300
+ H,
4349
4301
  r,
4350
4302
  o,
4351
4303
  n,
4352
4304
  q
4353
- ]), ne = z(null), oe = T(() => {
4354
- const e = k.disabled;
4305
+ ]), ne = k(null), oe = L(() => {
4306
+ const e = A.disabled;
4355
4307
  if (e) return null;
4356
- const t = R("div", {
4308
+ const t = P("div", {
4357
4309
  ...y,
4358
- className: F(Pi, { "sxl-disabled": e }),
4310
+ className: N(Di, { "sxl-disabled": e }),
4359
4311
  ref: ne,
4360
4312
  role: "slider",
4361
- "aria-label": O ? "Rows" : "Columns",
4362
- "aria-orientation": O ? "vertical" : "horizontal",
4313
+ "aria-label": H ? "Rows" : "Columns",
4314
+ "aria-orientation": H ? "vertical" : "horizontal",
4363
4315
  "aria-valuemin": 0,
4364
4316
  "aria-valuemax": q,
4365
4317
  "aria-valuenow": n,
@@ -4367,29 +4319,29 @@ var ls = 24, as = w(v((e, t) => {
4367
4319
  style: {
4368
4320
  ...y?.style,
4369
4321
  position: "relative",
4370
- [O ? "height" : "width"]: `${k.length}px`,
4371
- [O ? "width" : "height"]: "100%",
4372
- transform: O ? `translateY(${k.offset}px)` : `translateX(${k.offset}px)`,
4373
- [O ? "minHeight" : "minWidth"]: `${p}px`
4322
+ [H ? "height" : "width"]: `${A.length}px`,
4323
+ [H ? "width" : "height"]: "100%",
4324
+ transform: H ? `translateY(${A.offset}px)` : `translateX(${A.offset}px)`,
4325
+ [H ? "minHeight" : "minWidth"]: `${p}px`
4374
4326
  },
4375
4327
  onMouseDown: S
4376
4328
  });
4377
4329
  if (!C || e) return t;
4378
- const o = Math.max(0, K - k.length);
4379
- return $(P, { children: [t, R(ss, {
4330
+ const o = Math.max(0, K - A.length);
4331
+ return R(D, { children: [t, P(is, {
4380
4332
  ...v,
4381
- orientation: O ? zi.Vertical : zi.Horizontal,
4382
- fraction: o > 0 ? k.offset / o : 0,
4333
+ orientation: H ? ki.Vertical : ki.Horizontal,
4334
+ fraction: o > 0 ? A.offset / o : 0,
4383
4335
  onScrollToFraction: (e) => X(e * o),
4384
4336
  onEdgeHold: b,
4385
4337
  onDraggingChange: w
4386
4338
  })] });
4387
4339
  }, [
4388
- k,
4340
+ A,
4389
4341
  p,
4390
4342
  q,
4391
4343
  n,
4392
- O,
4344
+ H,
4393
4345
  C,
4394
4346
  S,
4395
4347
  v,
@@ -4397,7 +4349,7 @@ var ls = 24, as = w(v((e, t) => {
4397
4349
  K,
4398
4350
  b,
4399
4351
  w
4400
- ]), [re, ie] = A(null), se = Yt(() => {
4352
+ ]), [re, ie] = z(null), se = jt(() => {
4401
4353
  let e;
4402
4354
  e = "function" == typeof h ? h(n, r, o) : n - h;
4403
4355
  const t = Math.max(0, e);
@@ -4407,7 +4359,7 @@ var ls = 24, as = w(v((e, t) => {
4407
4359
  n,
4408
4360
  r,
4409
4361
  o
4410
- ]), le = Yt(() => {
4362
+ ]), le = jt(() => {
4411
4363
  let e;
4412
4364
  e = "function" == typeof h ? h(n, r, o) : n + h;
4413
4365
  const t = Math.min(q, e);
@@ -4418,7 +4370,7 @@ var ls = 24, as = w(v((e, t) => {
4418
4370
  q,
4419
4371
  r,
4420
4372
  o
4421
- ]), ae = z(null), ce = z(null), ue = x(() => {
4373
+ ]), ae = k(null), ce = k(null), ue = x(() => {
4422
4374
  ae.current && (clearTimeout(ae.current), ae.current = null, ce.current = null);
4423
4375
  }, []), he = x((e, t, n, o = d) => {
4424
4376
  ce.current = e, ae.current = setTimeout(() => {
@@ -4431,7 +4383,7 @@ var ls = 24, as = w(v((e, t) => {
4431
4383
  ue
4432
4384
  ]);
4433
4385
  M(() => () => ue(), [ue]);
4434
- const de = T(() => L ? R(Ro, {
4386
+ const de = L(() => T ? P(Po, {
4435
4387
  render: g,
4436
4388
  props: {
4437
4389
  orientation: l,
@@ -4441,11 +4393,11 @@ var ls = 24, as = w(v((e, t) => {
4441
4393
  onMouseDown: () => he(n, !0, !0)
4442
4394
  }
4443
4395
  }) : null, [
4444
- L,
4396
+ T,
4445
4397
  l,
4446
4398
  n,
4447
4399
  re
4448
- ]), fe = T(() => L ? R(Ro, {
4400
+ ]), fe = L(() => T ? P(Po, {
4449
4401
  render: _,
4450
4402
  props: {
4451
4403
  orientation: l,
@@ -4455,15 +4407,15 @@ var ls = 24, as = w(v((e, t) => {
4455
4407
  onMouseDown: () => he(n, !0, !1)
4456
4408
  }
4457
4409
  }) : null, [
4458
- L,
4410
+ T,
4459
4411
  l,
4460
4412
  n,
4461
4413
  q,
4462
4414
  re
4463
- ]), pe = O ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = N([U, t]);
4464
- return $("div", {
4415
+ ]), pe = H ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = I([U, t]);
4416
+ return R("div", {
4465
4417
  ref: ge,
4466
- className: F(s, Ai, me, {
4418
+ className: N(s, zi, ls, me, {
4467
4419
  "sxl-dragging": ee,
4468
4420
  "sxl-has-touch-thumb": C
4469
4421
  }),
@@ -4471,7 +4423,7 @@ var ls = 24, as = w(v((e, t) => {
4471
4423
  ...E,
4472
4424
  children: [
4473
4425
  de,
4474
- R("div", {
4426
+ P("div", {
4475
4427
  ref: j,
4476
4428
  role: "scrollbar",
4477
4429
  "aria-orientation": pe,
@@ -4479,7 +4431,7 @@ var ls = 24, as = w(v((e, t) => {
4479
4431
  "aria-valuemax": q,
4480
4432
  "aria-valuenow": n,
4481
4433
  tabIndex: 0,
4482
- className: F(Di, "sxl-track", me),
4434
+ className: N(Ai, "sxl-track", me),
4483
4435
  onMouseDown: S,
4484
4436
  onPointerDown: Q.onPointerDown,
4485
4437
  onPointerMove: Q.onPointerMove,
@@ -4490,24 +4442,24 @@ var ls = 24, as = w(v((e, t) => {
4490
4442
  fe
4491
4443
  ]
4492
4444
  });
4493
- })), cs = Date.now, us = 1e3, hs = {}, ds = 1, fs = (e) => {
4494
- let t = null !== hs[e];
4495
- return t && (hs[e] = null), t;
4496
- }, ps = (e, t, n, o = 0, r) => {
4497
- let i = cs(), s = i, l = 0, a = 0, c = 0, u = ds++;
4445
+ })), us = Date.now, hs = 1e3, ds = {}, fs = 1, ps = (e) => {
4446
+ let t = null !== ds[e];
4447
+ return t && (ds[e] = null), t;
4448
+ }, ms = (e, t, n, o = 0, r) => {
4449
+ let i = us(), s = i, l = 0, a = 0, c = 0, u = fs++;
4498
4450
  if (u % 20 == 0) {
4499
4451
  const e = {};
4500
- for (let t in hs) e[t] = !0;
4501
- hs = e;
4452
+ for (let t in ds) e[t] = !0;
4453
+ ds = e;
4502
4454
  }
4503
4455
  const h = function(d) {
4504
- let f = !0 !== d, p = cs(), m = !0;
4456
+ let f = !0 !== d, p = us(), m = !0;
4505
4457
  try {
4506
4458
  m = (!t || t(u)) ?? !0;
4507
4459
  } catch (e) {
4508
4460
  m = !1;
4509
4461
  }
4510
- if (!hs[u] || !m) return hs[u] = null, void n?.(60 - a / ((p - i) / us), u, !1);
4462
+ if (!ds[u] || !m) return ds[u] = null, void n?.(60 - a / ((p - i) / hs), u, !1);
4511
4463
  if (f) {
4512
4464
  c = Math.round((p - s) / 16.666666666666668) - 1;
4513
4465
  for (let e = 0; e < Math.min(c, 4); e++) h(!0), a++;
@@ -4519,17 +4471,17 @@ var ls = 24, as = w(v((e, t) => {
4519
4471
  } catch (e) {
4520
4472
  _ = !1;
4521
4473
  }
4522
- !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (hs[u] = null, n?.(60 - a / ((p - i) / us), u, 1 === l || null == o));
4474
+ !1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (ds[u] = null, n?.(60 - a / ((p - i) / hs), u, 1 === l || null == o));
4523
4475
  };
4524
- return hs[u] = !0, requestAnimationFrame(h), u;
4525
- }, ms = function(e) {
4526
- return Math.pow(e - 1, 3) + 1;
4476
+ return ds[u] = !0, requestAnimationFrame(h), u;
4527
4477
  }, gs = function(e) {
4478
+ return Math.pow(e - 1, 3) + 1;
4479
+ }, _s = function(e) {
4528
4480
  return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
4529
- }, _s = Math.log(1.15) / 100, vs = (e) => {
4481
+ }, vs = Math.log(1.15) / 100, ys = (e) => {
4530
4482
  const t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
4531
4483
  return Math.sqrt(t * t + n * n);
4532
- }, ys = class {
4484
+ }, bs = class {
4533
4485
  constructor(e, t) {
4534
4486
  this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, 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 = {
4535
4487
  scrollingX: !0,
@@ -4583,7 +4535,7 @@ var ls = 24, as = w(v((e, t) => {
4583
4535
  }
4584
4536
  zoomTo(e, t = !1, n, o, r) {
4585
4537
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4586
- r && (this.__zoomComplete = r), this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0);
4538
+ r && (this.__zoomComplete = r), this.__isDecelerating && (ps(this.__isDecelerating), this.__isDecelerating = 0);
4587
4539
  const i = this.__zoomLevel;
4588
4540
  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);
4589
4541
  const s = e / i;
@@ -4602,7 +4554,7 @@ var ls = 24, as = w(v((e, t) => {
4602
4554
  this.zoomTo(this.__zoomLevel * e, t, n, o, r);
4603
4555
  }
4604
4556
  scrollTo(e, t, n = !1, o) {
4605
- if (this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4557
+ if (this.__isDecelerating && (ps(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
4606
4558
  if (!this.options.zooming) throw new Error("Zooming is not enabled!");
4607
4559
  e *= o, t *= o, this.__computeScrollMax(o);
4608
4560
  } else o = this.__zoomLevel;
@@ -4613,16 +4565,16 @@ var ls = 24, as = w(v((e, t) => {
4613
4565
  this.scrollTo(o + (e || 0), r + (t || 0), n);
4614
4566
  }
4615
4567
  doMouseZoom(e, t, n, o) {
4616
- const r = Math.exp(-e * _s);
4568
+ const r = Math.exp(-e * vs);
4617
4569
  return this.zoomTo(this.__zoomLevel * r, !1, n - this.__clientLeft, o - this.__clientTop);
4618
4570
  }
4619
4571
  doTouchStart(e, t) {
4620
4572
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
4621
4573
  if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
4622
4574
  let n, o;
4623
- this.__interruptedAnimation = !0, this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (fs(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4575
+ this.__interruptedAnimation = !0, this.__isDecelerating && (ps(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (ps(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
4624
4576
  let r = 1 === e.length;
4625
- 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.__pinchStartDistance = r ? 0 : vs(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, 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;
4577
+ 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.__pinchStartDistance = r ? 0 : ys(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, 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;
4626
4578
  }
4627
4579
  doTouchMove(e, t) {
4628
4580
  if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
@@ -4631,7 +4583,7 @@ var ls = 24, as = w(v((e, t) => {
4631
4583
  let n, o;
4632
4584
  2 === e.length ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, o = e[0].pageY);
4633
4585
  let r = this.__positions;
4634
- const i = 2 === e.length && this.__pinchStartDistance > 0 ? vs(e) / this.__pinchStartDistance : 1;
4586
+ const i = 2 === e.length && this.__pinchStartDistance > 0 ? ys(e) / this.__pinchStartDistance : 1;
4635
4587
  if (this.__isDragging) {
4636
4588
  let e = n - this.__lastTouchLeft, s = o - this.__lastTouchTop;
4637
4589
  this.__gestureMoveX = e, this.__gestureMoveY = s;
@@ -4678,14 +4630,14 @@ var ls = 24, as = w(v((e, t) => {
4678
4630
  }
4679
4631
  __publish(e, t, n, o = !1) {
4680
4632
  const r = this.__isAnimating;
4681
- if (r && (fs(r), this.__isAnimating = 0), o && this.options.animating) {
4633
+ if (r && (ps(r), this.__isAnimating = 0), o && this.options.animating) {
4682
4634
  this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
4683
4635
  const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, u = (e, t, n = !1) => {
4684
4636
  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));
4685
4637
  }, h = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
4686
4638
  t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
4687
4639
  };
4688
- this.__isAnimating = ps(u, h, d, this.options.animationDuration, r ? ms : gs);
4640
+ this.__isAnimating = ms(u, h, d, this.options.animationDuration, r ? gs : _s);
4689
4641
  } 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));
4690
4642
  }
4691
4643
  __computeScrollMax(e = this.__zoomLevel) {
@@ -4697,7 +4649,7 @@ var ls = 24, as = w(v((e, t) => {
4697
4649
  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;
4698
4650
  } else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
4699
4651
  const t = this.options.snapping ? 4 : .1;
4700
- this.__isDecelerating = ps((e, t, n = !1) => {
4652
+ this.__isDecelerating = ms((e, t, n = !1) => {
4701
4653
  this.__stepThroughDeceleration(n);
4702
4654
  }, () => {
4703
4655
  const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
@@ -4723,11 +4675,11 @@ var ls = 24, as = w(v((e, t) => {
4723
4675
  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);
4724
4676
  }
4725
4677
  }
4726
- }, bs = /* @__PURE__ */ new Set([
4678
+ }, ws = /* @__PURE__ */ new Set([
4727
4679
  "auto",
4728
4680
  "scroll",
4729
4681
  "overlay"
4730
- ]), ws = /* @__PURE__ */ new Set(["contain", "none"]), xs = (e, t) => {
4682
+ ]), xs = /* @__PURE__ */ new Set(["contain", "none"]), Ss = (e, t) => {
4731
4683
  const { deltaX: n, deltaY: o, shiftKey: r } = e, i = r || Math.abs(n) > Math.abs(o), s = r ? o : i ? n : o;
4732
4684
  if (0 === s) return null;
4733
4685
  let l = e.target instanceof Element ? e.target : null;
@@ -4736,21 +4688,21 @@ var ls = 24, as = w(v((e, t) => {
4736
4688
  const e = i ? l.scrollWidth - l.clientWidth : l.scrollHeight - l.clientHeight;
4737
4689
  if (e > 0) {
4738
4690
  const t = getComputedStyle(l);
4739
- if (bs.has(i ? t.overflowX : t.overflowY)) {
4691
+ if (ws.has(i ? t.overflowX : t.overflowY)) {
4740
4692
  const n = i ? l.scrollLeft : l.scrollTop;
4741
4693
  if (s < 0 ? n > 0 : n < e - 1) return "native";
4742
- if (ws.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4694
+ if (xs.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
4743
4695
  }
4744
4696
  }
4745
4697
  l = l.parentElement;
4746
4698
  }
4747
4699
  return null;
4748
- }, Ss = 100 / 3, Ms = G({
4700
+ }, Ms = 100 / 3, Es = U({
4749
4701
  PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
4750
- defaultRenderScrollbar: () => Cs,
4751
- getScrollTo: () => Es,
4752
- getWheelOwner: () => xs
4753
- }), Es = (e, t, n, o, r = 0) => {
4702
+ defaultRenderScrollbar: () => Ls,
4703
+ getScrollTo: () => Cs,
4704
+ getWheelOwner: () => Ss
4705
+ }), Cs = (e, t, n, o, r = 0) => {
4754
4706
  for (let r = 0; r < n.length; r++) {
4755
4707
  const i = n[r].getBoundingClientRect();
4756
4708
  let s = i.left - t, l = s + i.width;
@@ -4759,22 +4711,22 @@ var ls = 24, as = w(v((e, t) => {
4759
4711
  } else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
4760
4712
  }
4761
4713
  return r;
4762
- }, Cs = (e) => R(as, { ...e }), Ls = (e) => {
4714
+ }, Ls = (e) => P(cs, { ...e }), Ts = (e) => {
4763
4715
  const t = e.ownerDocument?.defaultView;
4764
4716
  return t ? t.getComputedStyle(e).touchAction : "";
4765
- }, Ts = (e) => {
4717
+ }, ks = (e) => {
4766
4718
  const t = e.trim();
4767
4719
  return "" === t || "auto" === t || "manipulation" === t || t.split(/\s+/).some((e) => e.startsWith("pan-"));
4768
- }, ks = "_scrollpane_zdrii_2", zs = "_scrollpane-content_zdrii_20", As = "_scrollpane-content-cell_zdrii_33", Ds = "_vertical-container_zdrii_42", Ps = "_horizontal-container_zdrii_50", Rs = "_corner-container_zdrii_59", $s = "_touch-thumb-overlay_zdrii_68", Bs = w(v((e, t) => {
4769
- const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Os, renderScrollbarHorizontal: u = Cs, renderScrollbarVertical: h = Cs, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
4720
+ }, zs = "_scrollpane_zdrii_2", As = "_scrollpane-content_zdrii_20", Ds = "_scrollpane-content-cell_zdrii_33", Ps = "_vertical-container_zdrii_42", Rs = "_horizontal-container_zdrii_50", $s = "_corner-container_zdrii_59", Bs = "_touch-thumb-overlay_zdrii_68", Hs = w(v((e, t) => {
4721
+ const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Os, renderScrollbarHorizontal: u = Ls, renderScrollbarVertical: h = Ls, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Ut(o, (e) => e.getMetrics()), y = x((e, t) => {
4770
4722
  if (!o) return;
4771
4723
  const n = o.getTarget();
4772
4724
  o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
4773
- }, [o]), b = ao(t, () => ({ isScrollPane: () => !0 }), []);
4725
+ }, [o]), b = lo(t, () => ({ isScrollPane: () => !0 }), []);
4774
4726
  M(() => {}, []);
4775
- const w = z(null), S = Yt((e) => {
4727
+ const w = k(null), S = jt((e) => {
4776
4728
  o?.requestZoom(e);
4777
- }, [o]), E = z({
4729
+ }, [o]), E = k({
4778
4730
  active: !1,
4779
4731
  lastZoom: 1,
4780
4732
  focal: {
@@ -4791,7 +4743,7 @@ var ls = 24, as = w(v((e, t) => {
4791
4743
  panY: 0,
4792
4744
  phase: "end"
4793
4745
  }), o && w.current?.setZoomLevel(o.getZoom()));
4794
- }, [o]), L = Yt((e, t, n) => {
4746
+ }, [o]), T = jt((e, t, n) => {
4795
4747
  const o = w.current;
4796
4748
  if (!o) return;
4797
4749
  const r = E.current;
@@ -4806,21 +4758,21 @@ var ls = 24, as = w(v((e, t) => {
4806
4758
  const e = E.current;
4807
4759
  e.endTimer && (clearTimeout(e.endTimer), e.endTimer = null);
4808
4760
  }, []), ((e, t) => {
4809
- const { enabled: n = !0, onScrollBy: o, onWheelScroll: r, onZoomBy: i } = t, s = Yt(o, [o]), l = Yt(r ?? (() => {}), [r]), a = Yt(i ?? (() => {}), [i]), c = z(!!i);
4761
+ const { enabled: n = !0, onScrollBy: o, onWheelScroll: r, onZoomBy: i } = t, s = jt(o, [o]), l = jt(r ?? (() => {}), [r]), a = jt(i ?? (() => {}), [i]), c = k(!!i);
4810
4762
  c.current = !!i;
4811
- const u = z(null), h = z(null), d = z({
4763
+ const u = k(null), h = k(null), d = k({
4812
4764
  deltaY: 0,
4813
4765
  clientX: 0,
4814
4766
  clientY: 0
4815
- }), f = Yt((t) => {
4767
+ }), f = jt((t) => {
4816
4768
  const n = t.shiftKey, { deltaX: o, deltaY: r, deltaMode: i } = t, f = c.current && !n && (t.ctrlKey || t.metaKey);
4817
4769
  if (!f && e.current) {
4818
- const n = xs(t, e.current);
4770
+ const n = Ss(t, e.current);
4819
4771
  if ("native" === n) return;
4820
4772
  if ("contained" === n) return void t.preventDefault();
4821
4773
  }
4822
4774
  if (t.preventDefault(), f) {
4823
- const e = 1 === i ? Ss : 2 === i ? 800 : 1, n = d.current;
4775
+ const e = 1 === i ? Ms : 2 === i ? 800 : 1, n = d.current;
4824
4776
  if (n.deltaY += r * e, n.clientX = t.clientX, n.clientY = t.clientY, h.current) return;
4825
4777
  h.current = window.requestAnimationFrame(() => {
4826
4778
  h.current = null;
@@ -4859,24 +4811,24 @@ var ls = 24, as = w(v((e, t) => {
4859
4811
  }, !0);
4860
4812
  },
4861
4813
  onWheelScroll: i,
4862
- onZoomBy: s ? L : void 0
4814
+ onZoomBy: s ? T : void 0
4863
4815
  });
4864
- const k = z(!1), D = Gt(o, (e) => e.getZoom());
4816
+ const A = k(!1), D = Ut(o, (e) => e.getZoom());
4865
4817
  M(() => {
4866
4818
  w.current && null != D && (E.current.active || (w.current.setZoomLevel(D), E.current.lastZoom = w.current.__zoomLevel));
4867
4819
  }, [D]), M(() => {
4868
4820
  if (w.current && v && (w.current.__scrollTop !== v?.top || w.current.__scrollLeft !== v?.left)) if (w.current.__isDecelerating || w.current.__isTracking) w.current.__isTracking, w.current.__isDecelerating;
4869
4821
  else {
4870
- w.current.__scrollLeft, w.current.__scrollTop, v.left, v.top, k.current = !0;
4822
+ w.current.__scrollLeft, w.current.__scrollTop, v.left, v.top, A.current = !0;
4871
4823
  try {
4872
4824
  w.current?.scrollTo(v.left, v.top, !1);
4873
4825
  } finally {
4874
- k.current = !1;
4826
+ A.current = !1;
4875
4827
  }
4876
4828
  }
4877
4829
  }, [v?.left, v?.top]);
4878
- const P = x((e, t, n) => {
4879
- if (k.current) return;
4830
+ const $ = x((e, t, n) => {
4831
+ if (A.current) return;
4880
4832
  const o = w.current;
4881
4833
  if (o && !o.__isTracking && !o.__isDecelerating && !o.__isZooming) return;
4882
4834
  const r = E.current;
@@ -4899,29 +4851,29 @@ var ls = 24, as = w(v((e, t) => {
4899
4851
  left: e,
4900
4852
  top: t
4901
4853
  });
4902
- }, []), B = z(!1), O = x((e) => {
4903
- 1 === e.touches.length && (B.current = ((e, t, n = Ls) => {
4854
+ }, []), B = k(!1), H = x((e) => {
4855
+ 1 === e.touches.length && (B.current = ((e, t, n = Ts) => {
4904
4856
  let o = e instanceof Element ? e : null;
4905
4857
  for (; o && o !== t;) {
4906
- if (!Ts(n(o))) return !0;
4858
+ if (!ks(n(o))) return !0;
4907
4859
  o = o.parentElement;
4908
4860
  }
4909
4861
  return !1;
4910
4862
  })(e.target, b.current)), e.touches.length, B.current, B.current || w.current?.doTouchStart(e.touches, e.timeStamp);
4911
- }, []), H = x((e) => {
4863
+ }, []), O = x((e) => {
4912
4864
  B.current || (e.preventDefault(), 2 === e.touches.length && (E.current.focal = {
4913
4865
  clientX: (e.touches[0].clientX + e.touches[1].clientX) / 2,
4914
4866
  clientY: (e.touches[0].clientY + e.touches[1].clientY) / 2
4915
4867
  }), e.touches.length, w.current, w.current, w.current, w.current?.doTouchMove(e.touches, e.timeStamp));
4916
4868
  }, []), I = x((e) => {
4917
4869
  B.current ? 0 === e.touches.length && (B.current = !1) : (w.current?.doTouchEnd(e.timeStamp), C());
4918
- }, [C]), N = x(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4870
+ }, [C]), F = x(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
4919
4871
  w.current && w.current.setDimensions(e, t, n, o);
4920
4872
  }, []);
4921
4873
  M(() => {
4922
- const e = b.current, t = !p && Fe().supportsTouchEvents;
4874
+ const e = b.current, t = !p && Ne().supportsTouchEvents;
4923
4875
  if ((t || s) && e && v) {
4924
- w.current || (w.current = new ys(P, {
4876
+ w.current || (w.current = new bs($, {
4925
4877
  scrollingX: !0,
4926
4878
  scrollingY: !0,
4927
4879
  decelerationRate: .95,
@@ -4929,9 +4881,9 @@ var ls = 24, as = w(v((e, t) => {
4929
4881
  zooming: !0,
4930
4882
  minZoom: .1,
4931
4883
  maxZoom: 4
4932
- }), w.current.setZoomLevel(o?.getZoom() ?? 1), E.current.lastZoom = w.current.__zoomLevel), t && (e.addEventListener("touchstart", O, { passive: !1 }), e.addEventListener("touchend", I), e.addEventListener("touchmove", H, { passive: !1 }));
4884
+ }), w.current.setZoomLevel(o?.getZoom() ?? 1), E.current.lastZoom = w.current.__zoomLevel), t && (e.addEventListener("touchstart", H, { passive: !1 }), e.addEventListener("touchend", I), e.addEventListener("touchmove", O, { passive: !1 }));
4933
4885
  const n = o?.getZoom() || 1;
4934
- N({
4886
+ F({
4935
4887
  containerWidth: v?.width,
4936
4888
  containerHeight: v?.height,
4937
4889
  totalWidth: v?.totalWidth / n,
@@ -4939,7 +4891,7 @@ var ls = 24, as = w(v((e, t) => {
4939
4891
  });
4940
4892
  }
4941
4893
  return () => {
4942
- e?.removeEventListener("touchstart", O), e?.removeEventListener("touchend", I), e?.removeEventListener("touchmove", H);
4894
+ e?.removeEventListener("touchstart", H), e?.removeEventListener("touchend", I), e?.removeEventListener("touchmove", O);
4943
4895
  };
4944
4896
  }, [
4945
4897
  v?.width,
@@ -4950,11 +4902,11 @@ var ls = 24, as = w(v((e, t) => {
4950
4902
  p,
4951
4903
  s
4952
4904
  ]);
4953
- const W = Fe().supportsTouchEvents, [K, V] = A(null), [j, { width: Y, height: X }] = bo(), Z = x((e) => {
4905
+ const W = Ne().supportsTouchEvents, [K, V] = z(null), [j, { width: Y, height: X }] = yo(), Z = x((e) => {
4954
4906
  V(e), j(e);
4955
- }, [j]), q = T(() => {
4907
+ }, [j]), q = L(() => {
4956
4908
  if (!K) return null;
4957
- const e = es(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4909
+ const e = Qi(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
4958
4910
  return {
4959
4911
  portalTarget: K,
4960
4912
  width: Y,
@@ -4963,7 +4915,7 @@ var ls = 24, as = w(v((e, t) => {
4963
4915
  viewportHeight: n,
4964
4916
  reserveVertical: g ? e : 0,
4965
4917
  reserveHorizontal: _ ? e : 0,
4966
- crossInset: Qi()
4918
+ crossInset: Ji()
4967
4919
  };
4968
4920
  }, [
4969
4921
  K,
@@ -4973,12 +4925,12 @@ var ls = 24, as = w(v((e, t) => {
4973
4925
  v?.height,
4974
4926
  g,
4975
4927
  _
4976
- ]), U = T(() => {
4928
+ ]), U = L(() => {
4977
4929
  if (!_) return null;
4978
- const e = R(Ro, {
4930
+ const e = P(Po, {
4979
4931
  render: h,
4980
4932
  props: {
4981
- orientation: zi.Vertical,
4933
+ orientation: ki.Vertical,
4982
4934
  offset: v?.top ?? 0,
4983
4935
  viewportSize: v?.height ?? 0,
4984
4936
  totalSize: v?.totalHeight ?? 0,
@@ -4987,8 +4939,8 @@ var ls = 24, as = w(v((e, t) => {
4987
4939
  }
4988
4940
  }
4989
4941
  });
4990
- return R("div", {
4991
- className: F("sxl-vertical-container", Ds),
4942
+ return P("div", {
4943
+ className: N("sxl-vertical-container", Ps),
4992
4944
  children: e
4993
4945
  });
4994
4946
  }, [
@@ -4996,12 +4948,12 @@ var ls = 24, as = w(v((e, t) => {
4996
4948
  v?.top,
4997
4949
  v?.height,
4998
4950
  v?.totalHeight
4999
- ]), G = T(() => {
4951
+ ]), G = L(() => {
5000
4952
  if (!g) return null;
5001
- const e = R(Ro, {
4953
+ const e = P(Po, {
5002
4954
  render: u,
5003
4955
  props: {
5004
- orientation: zi.Horizontal,
4956
+ orientation: ki.Horizontal,
5005
4957
  offset: v?.left ?? 0,
5006
4958
  viewportSize: v?.width ?? 0,
5007
4959
  totalSize: v?.totalWidth ?? 0,
@@ -5010,8 +4962,8 @@ var ls = 24, as = w(v((e, t) => {
5010
4962
  }
5011
4963
  }
5012
4964
  });
5013
- return R("div", {
5014
- className: F("sxl-horizontal-container", Ps),
4965
+ return P("div", {
4966
+ className: N("sxl-horizontal-container", Rs),
5015
4967
  children: e
5016
4968
  });
5017
4969
  }, [
@@ -5019,9 +4971,9 @@ var ls = 24, as = w(v((e, t) => {
5019
4971
  v?.left,
5020
4972
  v?.width,
5021
4973
  v?.totalWidth
5022
- ]), J = T(() => _ && g ? R("div", {
5023
- className: F("sxl-corner-container", Rs),
5024
- children: R(Ro, {
4974
+ ]), J = L(() => _ && g ? P("div", {
4975
+ className: N("sxl-corner-container", $s),
4976
+ children: P(Po, {
5025
4977
  render: c,
5026
4978
  props: {}
5027
4979
  })
@@ -5030,36 +4982,36 @@ var ls = 24, as = w(v((e, t) => {
5030
4982
  g,
5031
4983
  c
5032
4984
  ]);
5033
- return R("div", {
5034
- className: F(f, "sxl-scrollpane", ks),
4985
+ return P("div", {
4986
+ className: N(f, "sxl-scrollpane", zs),
5035
4987
  style: d,
5036
4988
  ...m,
5037
4989
  ref: b,
5038
- children: R(ns, {
4990
+ children: P(ts, {
5039
4991
  value: q,
5040
- children: $("div", {
5041
- className: F("sxl-scrollpane-content", zs),
4992
+ children: R("div", {
4993
+ className: N("sxl-scrollpane-content", As),
5042
4994
  children: [
5043
- R("div", {
5044
- className: F("sxl-scrollpane-content-cell", As),
4995
+ P("div", {
4996
+ className: N("sxl-scrollpane-content-cell", Ds),
5045
4997
  children: n
5046
4998
  }),
5047
4999
  _ ? U : null,
5048
5000
  g ? G : null,
5049
5001
  J,
5050
- W ? R("div", {
5002
+ W ? P("div", {
5051
5003
  ref: Z,
5052
- className: F("sxl-touch-thumb-overlay", $s)
5004
+ className: N("sxl-touch-thumb-overlay", Bs)
5053
5005
  }) : null
5054
5006
  ]
5055
5007
  })
5056
5008
  })
5057
5009
  });
5058
5010
  }));
5059
- Bs.displayName = "ScrollPane";
5011
+ Hs.displayName = "ScrollPane";
5060
5012
  var Os = (e) => {
5061
5013
  const { size: t, style: n, ...o } = e;
5062
- return R("div", {
5014
+ return P("div", {
5063
5015
  className: "sxl-corner",
5064
5016
  style: {
5065
5017
  width: "100%",
@@ -5068,7 +5020,7 @@ var Os = (e) => {
5068
5020
  },
5069
5021
  ...o
5070
5022
  });
5071
- }, Hs = class {
5023
+ }, Is = class {
5072
5024
  constructor(e) {
5073
5025
  this._bounds = {
5074
5026
  minLeft: 0,
@@ -5187,7 +5139,7 @@ var Os = (e) => {
5187
5139
  }
5188
5140
  _applyBounds(e) {
5189
5141
  this._bounds = e;
5190
- const t = Ys(this._target.left, e.minLeft, e.maxLeft), n = Ys(this._target.top, e.minTop, e.maxTop);
5142
+ const t = Xs(this._target.left, e.minLeft, e.maxLeft), n = Xs(this._target.top, e.minTop, e.maxTop);
5191
5143
  t === this._target.left && n === this._target.top || (this._target = {
5192
5144
  left: t,
5193
5145
  top: n
@@ -5209,12 +5161,12 @@ var Os = (e) => {
5209
5161
  return this._observe(e, "both");
5210
5162
  }
5211
5163
  _observe(e, t) {
5212
- if (!e) return js;
5164
+ if (!e) return Ys;
5213
5165
  const n = (e, n) => {
5214
5166
  const o = this._measuredClient;
5215
5167
  this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
5216
5168
  };
5217
- if (!Vs()) return n(0, 0), js;
5169
+ if (!js()) return n(0, 0), Ys;
5218
5170
  const o = new ResizeObserver((e) => {
5219
5171
  const t = e[0]?.contentRect;
5220
5172
  t && n(t.width, t.height);
@@ -5261,17 +5213,17 @@ var Os = (e) => {
5261
5213
  }
5262
5214
  setTarget(e, t, n) {
5263
5215
  const o = this._bounds;
5264
- return e = Ys(e, o.minLeft, o.maxLeft), t = Ys(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 = {
5216
+ return e = Xs(e, o.minLeft, o.maxLeft), t = Xs(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 = {
5265
5217
  left: e,
5266
5218
  top: t
5267
5219
  }, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
5268
5220
  }
5269
5221
  _startAnimation() {
5270
- const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Fs : 1 / 0, r = n.height > 0 ? n.height * Fs : 1 / 0, i = Ys(e.left, t.left - o, t.left + o), s = Ys(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 * Ns);
5271
- this._anim = a <= Ws ? null : {
5222
+ const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Ws : 1 / 0, r = n.height > 0 ? n.height * Ws : 1 / 0, i = Xs(e.left, t.left - o, t.left + o), s = Xs(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 * Fs);
5223
+ this._anim = a <= Ks ? null : {
5272
5224
  fromLeft: i,
5273
5225
  fromTop: s,
5274
- start: Ks(),
5226
+ start: Vs(),
5275
5227
  duration: a
5276
5228
  };
5277
5229
  }
@@ -5310,7 +5262,7 @@ var Os = (e) => {
5310
5262
  const e = this._current, t = this._target, n = this._anim;
5311
5263
  let o, r, i = !1;
5312
5264
  if (n) {
5313
- const e = (Ks() - n.start) / n.duration;
5265
+ const e = (Vs() - n.start) / n.duration;
5314
5266
  if (e >= 1) o = t.left, r = t.top, this._anim = null;
5315
5267
  else {
5316
5268
  const s = 1 - Math.pow(1 - e, 3);
@@ -5322,7 +5274,7 @@ var Os = (e) => {
5322
5274
  top: r
5323
5275
  }, this._viewport = null, this._emit()), i;
5324
5276
  }
5325
- }, Is = 200, Ns = 2.5, Fs = 1.5, Ws = 17, Ks = () => "undefined" != typeof performance ? performance.now() : Date.now(), Vs = () => "undefined" != typeof ResizeObserver, js = () => {}, Ys = (e, t, n) => Math.min(n, Math.max(t, e)), Xs = class {
5277
+ }, Ns = 200, Fs = 2.5, Ws = 1.5, Ks = 17, Vs = () => "undefined" != typeof performance ? performance.now() : Date.now(), js = () => "undefined" != typeof ResizeObserver, Ys = () => {}, Xs = (e, t, n) => Math.min(n, Math.max(t, e)), Zs = class {
5326
5278
  constructor(e, t, n, o, r) {
5327
5279
  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;
5328
5280
  }
@@ -5435,10 +5387,10 @@ var Os = (e) => {
5435
5387
  setContent(e, t, n = 0, o = 0) {
5436
5388
  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));
5437
5389
  }
5438
- }, Zs = 300, qs = 100, Us = 1e6, Gs = 100, Js = 50, Qs = w(v((e, t) => {
5439
- const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Zs, endScrollIncrement: l = qs, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Us, scaleFactor: p = Gs, precisionFactor: m = Js, renderScrollbar: g = Cs, ..._ } = e;
5390
+ }, qs = 300, Us = 100, Gs = 1e6, Js = 100, Qs = 50, el = w(v((e, t) => {
5391
+ const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = qs, endScrollIncrement: l = Us, style: a = Be, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Gs, scaleFactor: p = Js, precisionFactor: m = Qs, renderScrollbar: g = Ls, ..._ } = e;
5440
5392
  d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
5441
- const v = Yt(c ?? (() => {}), [c]), [y, b] = A(!1), w = z(0), S = T(() => {
5393
+ const v = jt(c ?? (() => {}), [c]), [y, b] = z(!1), w = k(0), S = L(() => {
5442
5394
  let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
5443
5395
  y && (e = Math.max(e, w.current)), w.current = e;
5444
5396
  const t = 0 !== f && e > f ? p : 1, l = t / m, a = Math.ceil(e / t);
@@ -5460,24 +5412,24 @@ var Os = (e) => {
5460
5412
  i,
5461
5413
  s,
5462
5414
  l
5463
- ]), M = Yt((e, t, n) => {
5415
+ ]), M = jt((e, t, n) => {
5464
5416
  const o = S.offset;
5465
5417
  Math.abs(e - o) < S.precision && (e = o), h?.(e * S.factor, o, S.viewportSize);
5466
- }, [h, S]), E = Yt((e, t) => {
5418
+ }, [h, S]), E = jt((e, t) => {
5467
5419
  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));
5468
5420
  return r !== S.scaledOffset && (h?.(r, S.scaledViewportSize, S.scaledTotalSize), !0);
5469
5421
  }, [
5470
5422
  S,
5471
5423
  l,
5472
5424
  h
5473
- ]), C = Yt((e) => {
5425
+ ]), C = jt((e) => {
5474
5426
  b(e.dragging), u?.(e);
5475
- }, [u]), L = x((e) => {}, []), k = x((e) => {
5476
- document.removeEventListener("mousemove", L), document.removeEventListener("mouseup", k), b(!1);
5427
+ }, [u]), T = x((e) => {}, []), A = x((e) => {
5428
+ document.removeEventListener("mousemove", T), document.removeEventListener("mouseup", A), b(!1);
5477
5429
  }, []), D = x((e) => {
5478
- b(!0), v?.(e), document.addEventListener("mousemove", L, { passive: !0 }), document.addEventListener("mouseup", k, { passive: !0 });
5479
- }, [L, k]);
5480
- return R(Ro, {
5430
+ b(!0), v?.(e), document.addEventListener("mousemove", T, { passive: !0 }), document.addEventListener("mouseup", A, { passive: !0 });
5431
+ }, [T, A]);
5432
+ return P(Po, {
5481
5433
  render: g,
5482
5434
  props: {
5483
5435
  style: a,
@@ -5493,27 +5445,15 @@ var Os = (e) => {
5493
5445
  }
5494
5446
  });
5495
5447
  }));
5496
- Qs.displayName = "VirtualScrollbar";
5497
- var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5498
- "--scrollbar-track-color": e.track,
5499
- "--scrollbar-thumb-color": e.thumb,
5500
- "--scrollbar-button-color": e.button || e.thumb,
5501
- "--scrollbar-active-color": e.active,
5502
- "--scrollbar-corner-color": e.corner || e.thumb,
5503
- "--scrollbar-border-color": e.border ?? e.track,
5504
- "--scrollbar-width": "13px",
5505
- "--scrollbar-height": "13px",
5506
- "--scrollbar-border-radius": "9999px",
5507
- "--scrollbar-border-width": "2px",
5508
- "--scrollbar-min-thumb-size": "24px"
5509
- }), nl = (e) => {
5448
+ el.displayName = "VirtualScrollbar";
5449
+ var tl = ss, nl = (e) => {
5510
5450
  if ("undefined" == typeof window) return !1;
5511
- const t = co();
5451
+ const t = ao();
5512
5452
  if (t?.overlaysContent) return t.boundingRect.height > 150;
5513
5453
  const n = window.visualViewport;
5514
5454
  return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
5515
5455
  }, ol = (e) => {
5516
- const t = Object.freeze({ ...e }), n = !(t.disabled ?? "mouseOnly" === Fe().deviceType);
5456
+ const t = Object.freeze({ ...e }), n = !(t.disabled ?? "mouseOnly" === Ne().deviceType);
5517
5457
  let o = {
5518
5458
  active: !1,
5519
5459
  inputMode: "text"
@@ -5546,7 +5486,7 @@ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5546
5486
  })
5547
5487
  };
5548
5488
  }, rl = null, il = g(null), sl = (e) => {
5549
- const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? ol({
5489
+ const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = L(() => t ?? ol({
5550
5490
  disabled: n,
5551
5491
  disableScrollIntoView: o,
5552
5492
  keepOnTap: r
@@ -5559,17 +5499,17 @@ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5559
5499
  return _(il.Provider, { value: s }, i);
5560
5500
  }, ll = () => S(il) ?? (rl || (rl = ol()), rl), al = () => {
5561
5501
  const e = ll();
5562
- return D(e.subscribe, e.getState, e.getState), e;
5502
+ return A(e.subscribe, e.getState, e.getState), e;
5563
5503
  }, cl = null, ul = null, hl = /* @__PURE__ */ new Set(), dl = (e, t) => {
5564
5504
  null === t && ul !== e || cl === t && ul === e || (cl = t, ul = null === t ? null : e, hl.forEach((e) => e()));
5565
5505
  }, fl = () => cl, pl = (e) => (hl.add(e), () => {
5566
5506
  hl.delete(e);
5567
5507
  }), ml = v((e, t) => {
5568
- const { floating: n, anchor: o = null, onShownChange: r, onKeyboardClose: i, className: s, style: l, children: a } = e, [c, u] = A(null), h = x((e) => {
5508
+ const { floating: n, anchor: o = null, onShownChange: r, onKeyboardClose: i, className: s, style: l, children: a } = e, [c, u] = z(null), h = x((e) => {
5569
5509
  u(e), "function" == typeof t ? t(e) : t && (t.current = e);
5570
- }, [t]), d = z(n);
5510
+ }, [t]), d = k(n);
5571
5511
  d.current = n;
5572
- const f = z({
5512
+ const f = k({
5573
5513
  onShownChange: r,
5574
5514
  onKeyboardClose: i
5575
5515
  });
@@ -5577,12 +5517,12 @@ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5577
5517
  onShownChange: r,
5578
5518
  onKeyboardClose: i
5579
5519
  };
5580
- const p = z(null);
5581
- vo(() => {
5520
+ const p = k(null);
5521
+ _o(() => {
5582
5522
  if (!c || "undefined" == typeof window) return;
5583
5523
  const e = {};
5584
5524
  let t = 0, n = 0, o = !1, r = !1, i = window.innerHeight, s = !1;
5585
- const l = co();
5525
+ const l = ao();
5586
5526
  let a = !1;
5587
5527
  const u = (e) => {
5588
5528
  l && e !== a && (a = e, l.overlaysContent = e);
@@ -5632,12 +5572,12 @@ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5632
5572
  }, [c]), M(() => {
5633
5573
  p.current?.();
5634
5574
  }, [n]);
5635
- const m = Dr(), g = Ar(o), { className: _, attrs: v } = zr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = an(), [, w] = A(0);
5575
+ const m = Ar(), g = zr(o), { className: _, attrs: v } = kr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = ln(), [, w] = z(0);
5636
5576
  return M(() => {
5637
5577
  c && !c.isConnected && w((e) => e + 1);
5638
- }), "undefined" == typeof document ? null : H(R("div", {
5578
+ }), "undefined" == typeof document ? null : H(P("div", {
5639
5579
  ref: h,
5640
- className: F("sxl-keyboard-accessory", _, s),
5580
+ className: N("sxl-keyboard-accessory", _, s),
5641
5581
  ...y,
5642
5582
  style: {
5643
5583
  position: "fixed",
@@ -5645,7 +5585,7 @@ var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
5645
5585
  left: 0,
5646
5586
  boxSizing: "border-box",
5647
5587
  transformOrigin: "top left",
5648
- zIndex: Zo("grid"),
5588
+ zIndex: Xo("grid"),
5649
5589
  opacity: 0,
5650
5590
  pointerEvents: "none",
5651
5591
  ...l
@@ -5658,7 +5598,7 @@ var gl = {
5658
5598
  inset: 0,
5659
5599
  offsetTop: 0
5660
5600
  }, _l = (e) => {
5661
- const t = _o(e), n = !!t && nl(), o = t?.height, r = z(!1);
5601
+ const t = go(e), n = !!t && nl(), o = t?.height, r = k(!1);
5662
5602
  return M(() => {
5663
5603
  if (void 0 === o) return;
5664
5604
  const e = r.current;
@@ -5669,43 +5609,43 @@ var gl = {
5669
5609
  } : gl;
5670
5610
  };
5671
5611
  var vl = {
5672
- axis: q.oneOf([
5612
+ axis: Z.oneOf([
5673
5613
  "both",
5674
5614
  "x",
5675
5615
  "y",
5676
5616
  "none"
5677
5617
  ]),
5678
- className: q.string,
5679
- children: q.element.isRequired,
5680
- draggableOpts: q.shape({
5681
- allowAnyClick: q.bool,
5682
- cancel: q.string,
5683
- children: q.node,
5684
- disabled: q.bool,
5685
- enableUserSelectHack: q.bool,
5686
- offsetParent: "undefined" != typeof Element ? q.instanceOf(Element) : q.any,
5687
- grid: q.arrayOf(q.number),
5688
- handle: q.string,
5689
- nodeRef: q.object,
5690
- onStart: q.func,
5691
- onDrag: q.func,
5692
- onStop: q.func,
5693
- onMouseDown: q.func,
5694
- scale: q.number
5618
+ className: Z.string,
5619
+ children: Z.element.isRequired,
5620
+ draggableOpts: Z.shape({
5621
+ allowAnyClick: Z.bool,
5622
+ cancel: Z.string,
5623
+ children: Z.node,
5624
+ disabled: Z.bool,
5625
+ enableUserSelectHack: Z.bool,
5626
+ offsetParent: "undefined" != typeof Element ? Z.instanceOf(Element) : Z.any,
5627
+ grid: Z.arrayOf(Z.number),
5628
+ handle: Z.string,
5629
+ nodeRef: Z.object,
5630
+ onStart: Z.func,
5631
+ onDrag: Z.func,
5632
+ onStop: Z.func,
5633
+ onMouseDown: Z.func,
5634
+ scale: Z.number
5695
5635
  }),
5696
5636
  height: (...e) => {
5697
5637
  const [t] = e;
5698
- return "both" === t.axis || "y" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5638
+ return "both" === t.axis || "y" === t.axis ? Z.number.isRequired(...e) : Z.number(...e);
5699
5639
  },
5700
- handle: q.oneOfType([q.node, q.func]),
5701
- handleSize: q.arrayOf(q.number),
5702
- lockAspectRatio: q.bool,
5703
- maxConstraints: q.arrayOf(q.number),
5704
- minConstraints: q.arrayOf(q.number),
5705
- onResizeStop: q.func,
5706
- onResizeStart: q.func,
5707
- onResize: q.func,
5708
- resizeHandles: q.arrayOf(q.oneOf([
5640
+ handle: Z.oneOfType([Z.node, Z.func]),
5641
+ handleSize: Z.arrayOf(Z.number),
5642
+ lockAspectRatio: Z.bool,
5643
+ maxConstraints: Z.arrayOf(Z.number),
5644
+ minConstraints: Z.arrayOf(Z.number),
5645
+ onResizeStop: Z.func,
5646
+ onResizeStart: Z.func,
5647
+ onResize: Z.func,
5648
+ resizeHandles: Z.arrayOf(Z.oneOf([
5709
5649
  "s",
5710
5650
  "w",
5711
5651
  "e",
@@ -5715,10 +5655,10 @@ var vl = {
5715
5655
  "se",
5716
5656
  "ne"
5717
5657
  ])),
5718
- transformScale: q.number,
5658
+ transformScale: Z.number,
5719
5659
  width: (...e) => {
5720
5660
  const [t] = e;
5721
- return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
5661
+ return "both" === t.axis || "x" === t.axis ? Z.number.isRequired(...e) : Z.number(...e);
5722
5662
  }
5723
5663
  }, yl = class extends d.Component {
5724
5664
  constructor(...e) {
@@ -5786,7 +5726,7 @@ var vl = {
5786
5726
  }
5787
5727
  renderResizeHandle(e, t) {
5788
5728
  const { handle: n } = this.props;
5789
- if (!n) return R("span", {
5729
+ if (!n) return P("span", {
5790
5730
  className: `react-resizable-handle react-resizable-handle-${e}`,
5791
5731
  ref: t
5792
5732
  });
@@ -5804,7 +5744,7 @@ var vl = {
5804
5744
  className: (t ? `${t} ` : "") + "react-resizable",
5805
5745
  children: [...d.Children.toArray(e.props.children), ...g.map((e) => {
5806
5746
  const t = this.handleRefs[e] ?? (this.handleRefs[e] = d.createRef());
5807
- return _(Z, {
5747
+ return _(X, {
5808
5748
  ...n,
5809
5749
  nodeRef: t,
5810
5750
  key: `resizableHandle-${e}`,
@@ -5834,7 +5774,7 @@ var vl = {
5834
5774
  static {
5835
5775
  this.propTypes = {
5836
5776
  ...vl,
5837
- children: q.element
5777
+ children: Z.element
5838
5778
  };
5839
5779
  }
5840
5780
  static getDerivedStateFromProps(e, t) {
@@ -5847,7 +5787,7 @@ var vl = {
5847
5787
  }
5848
5788
  render() {
5849
5789
  const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: u, height: h, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
5850
- return R(yl, {
5790
+ return P(yl, {
5851
5791
  axis: c,
5852
5792
  draggableOpts: i,
5853
5793
  handle: e,
@@ -5862,7 +5802,7 @@ var vl = {
5862
5802
  resizeHandles: d,
5863
5803
  transformScale: p,
5864
5804
  width: this.state.width,
5865
- children: R("div", {
5805
+ children: P("div", {
5866
5806
  ...m,
5867
5807
  style: {
5868
5808
  ...f,
@@ -5873,4 +5813,4 @@ var vl = {
5873
5813
  });
5874
5814
  }
5875
5815
  };
5876
- export { ne as ACCUMULATE, Bt as AnimationModeProvider, Xs as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, si as DefaultIconService, ci as DynamicIcon, Wi as EDGE_HOLD_INTERVAL_MS, Kr as FloatPanel, Wr as FloatPanelSurface, Hr as FloatPopper, jr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Po as FocusKeyNavigation, or as INPUT_SELECTION_TINT, nr as INPUT_SELECTION_VAR, hi as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, ml as KeyboardAccessory, jn as LanguageStateKey, Re as LayerActivation, Mi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ki as PAGE_INITIAL_DELAY_MS, Vi as PAGE_REPEAT_DELAY_MS, bi as PendingRender, Ti as PendingRenderScope, yi as PersistentStateProvider, pe as QUICK_ACTION_TAG, Fo as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Ro as RenderSlot, yl as Resizable, bl as ResizableBox, Bo as RoundedTab, Is as SCROLL_ANIMATION_MS, Uo as SERIES_COUNT, ir as SXL_THEME_LAYERS, sr as SXL_THEME_LAYER_ORDER, Bs as ScrollPane, Ms as ScrollUtils, as as Scrollbar, zi as ScrollbarOrientation, Qr as SplitPane, Zr as SplitPaneResizer, cr as THEME_MODE_ATTR, ur as THEME_SURFACE_ATTR, Zi as TOUCH_THUMB_ASPECT, qi as TOUCH_THUMB_MARGIN, Gi as TOUCH_THUMB_MARGIN_CROSS, Ji as TOUCH_THUMB_MARGIN_END, Ui as TOUCH_THUMB_MARGIN_START, Xi as TOUCH_THUMB_SIZE, gr as ThemeModeFallbackContext, mr as ThemeStyle, wr as TokenThemeContext, Sr as TokenThemeProvider, ns as TouchThumbFrameProvider, ss as TouchThumbHandle, Yo as UncaughtErrorBoundary, Hs as Viewport, sl as VirtualKeyboardProvider, Qs as VirtualScrollbar, ui as WalkingIcon, Xo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, ar as buildThemeCSS, Se as chromeToPartial, qn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ii as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, dr as createThemeScopeClass, ji as createTrackDrag, ol as createVirtualKeyboardStore, Vr as defaultRenderFloatPanel, Nr as defaultRenderFloatPopupPanel, Fi as defaultRenderScrollButtonEdge, Ni as defaultRenderScrollButtonEnd, Ii as defaultRenderScrollButtonStart, Os as defaultRenderScrollCorner, Go as defaultTheme, pr as ensureThemeLayerOrder, Wn as exitEditMode, xe as fetchCatalog, zr as floatThemeScopeProps, Qt as getDevicePixelRatio, bn as getInputModality, fl as getKeyboardAccessoryTop, tl as getScrollbarCssVariables, Gn as getTextareaCaretRect, fo as getVisualViewportRect, Je as isCaretKey, nl as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Io as lazyComponent, pn as measureUIText, Me as mergeChrome, qo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, Mr as resolveToken, Er as resolveTokens, el as scrollbarThemedClassName, be as serializeShortcut, Nn as setEditMode, Kn as subscribeEditModeExit, xn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, po as subscribeVisualViewport, hr as themeSurfaceProps, er as themeVars, Qo as toVars, es as touchThumbCornerReserve, Qi as touchThumbCrossInset, Do as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Vn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Yr as useFloatStack, kr as useFloatSurface, tn as useFullscreen, an as useFullscreenPortal, Qn as useGlobalClipboard, so as useId, ao as useImperativeElement, Mn as useInputModality, vo as useIsomorphicLayoutEffect, _l as useKeyboardResize, Yn as useLanguage, Ho as useLazyRetry, Lo as useLocationSearch, bo as useMeasure, gn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, ki as usePendingRender, _i as usePersistentState, _r as useResolvedThemeMode, mn as useSynchronizedPointerHandler, fn as useTextSelectionDrag, Jn as useTextareaCaretRect, xr as useTokenThemeContext, os as useTouchThumbFrame, eo as useTraceUpdate, Yi as useTrackDrag, Xn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, _o as useVisualViewportRect, Ci as whenRenderSettled, Zo as zIndexVar };
5816
+ export { te as ACCUMULATE, $t as AnimationModeProvider, Zs as AxisViewport, Uo as BRACKET_COUNT, At as Command, mt as CommandAnchorProvider, de as CommandButtonEntryLabel, ae as CommandButtonRegistryContext, ue as CommandButtonRegistryProvider, ee as CommandButtonType, rt as CommandChainContext, _t as CommandFallbackContext, bt as CommandFallbackProvider, xt as CommandFocusProvider, st as CommandOrderContext, oe as CommandRegistry, Ce as CommandRegistryContext, ot as CommandResolver, ft as CommandResolverContext, Te as CommandScope, at as CommandScopeContext, ht as CommandScopeProvider, Ae as ConstantActivation, le as DefaultCommandButtonRegistry, Ee as DefaultCommandCatalogService, re as DefaultCommandRegistry, ii as DefaultIconService, ai as DynamicIcon, Fi as EDGE_HOLD_INTERVAL_MS, Wr as FloatPanel, Fr as FloatPanelSurface, Hr as FloatPopper, Vr as FloatProvider, Et as FloatStackProvider, De as FocusActivation, Do as FocusKeyNavigation, ir as INPUT_SELECTION_TINT, rr as INPUT_SELECTION_VAR, ui as InMemoryStore, Je as KeyBindingDispatcher, J as KeyCodes, G as KeyModifiers, ml as KeyboardAccessory, Vn as LanguageStateKey, Pe as LayerActivation, Si as LocalStorageStore, ze as ManualActivation, Q as MouseButtonCodes, Bt as NotifierType, Wi as PAGE_INITIAL_DELAY_MS, Ki as PAGE_REPEAT_DELAY_MS, yi as PendingRender, Li as PendingRenderScope, vi as PersistentStateProvider, fe as QUICK_ACTION_TAG, No as ReactErrorBoundary, Kt as ReactNotifierProvider, Re as ReactUtils, Po as RenderSlot, yl as Resizable, bl as ResizableBox, $o as RoundedTab, Ns as SCROLL_ANIMATION_MS, qo as SERIES_COUNT, lr as SXL_THEME_LAYERS, ar as SXL_THEME_LAYER_ORDER, Hs as ScrollPane, Es as ScrollUtils, cs as Scrollbar, ki as ScrollbarOrientation, Jr as SplitPane, Xr as SplitPaneResizer, hr as THEME_MODE_ATTR, dr as THEME_SURFACE_ATTR, Xi as TOUCH_THUMB_ASPECT, Zi as TOUCH_THUMB_MARGIN, Ui as TOUCH_THUMB_MARGIN_CROSS, Gi as TOUCH_THUMB_MARGIN_END, qi as TOUCH_THUMB_MARGIN_START, Yi as TOUCH_THUMB_SIZE, vr as ThemeModeFallbackContext, _r as ThemeStyle, ts as TouchThumbFrameProvider, is as TouchThumbHandle, jo as UncaughtErrorBoundary, Is as Viewport, sl as VirtualKeyboardProvider, el as VirtualScrollbar, ci as WalkingIcon, Yo as Z_INDEX, be as asCommandCatalog, ut as attachWhenReady, ur as buildThemeCSS, xe as chromeToPartial, Zn as composeCaretRect, Ht as createBusyHandle, Me as createCommandCatalogService, ri as createDynamicIconService, Ot as createNoopBusyHandle, me as createResolvedCommand, pr as createThemeScopeClass, Vi as createTrackDrag, ol as createVirtualKeyboardStore, Kr as defaultRenderFloatPanel, Ir as defaultRenderFloatPopupPanel, Ni as defaultRenderScrollButtonEdge, Ii as defaultRenderScrollButtonEnd, Oi as defaultRenderScrollButtonStart, Os as defaultRenderScrollCorner, Go as defaultTheme, gr as ensureThemeLayerOrder, Fn as exitEditMode, we as fetchCatalog, kr as floatThemeScopeProps, Jt as getDevicePixelRatio, yn as getInputModality, fl as getKeyboardAccessoryTop, Un as getTextareaCaretRect, ho as getVisualViewportRect, Ge as isCaretKey, nl as isVirtualKeyboardUp, et as keyEventCanonicals, Qe as keyStrokeToCanonical, Oo as lazyComponent, fn as measureUIText, Se as mergeChrome, Zo as offsetZIndex, ve as parseShortcutString, ne as reduceDefinitions, ke as resolveAnchorSource, Sr as resolveToken, Mr as resolveTokens, tl as scrollbarThemedClassName, ye as serializeShortcut, In as setEditMode, Wn as subscribeEditModeExit, wn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, fo as subscribeVisualViewport, fr as themeSurfaceProps, er as themeVars, Qo as toVars, nr as tokenVar, Qi as touchThumbCornerReserve, Ji as touchThumbCrossInset, Ao as useAnimatedMeasure, Rt as useAnimationMode, Zt as useBoundSyncExternalStore, jt as useCallbackRef, he as useCommandButtonEntry, ce as useCommandButtonRegistry, it as useCommandChain, dt as useCommandElement, gt as useCommandExecute, vt as useCommandFallback, St as useCommandFocusRestore, lt as useCommandOrder, Le as useCommandRegistry, pt as useCommandResolver, ct as useCommandScope, kt as useCommands, zt as useContributeCommands, Gt as useDevicePixelRatio, Kn as useEditMode, Ct as useFloat, Tt as useFloatPopupOpen, jr as useFloatStack, Tr as useFloatSurface, en as useFullscreen, ln as useFullscreenPortal, Jn as useGlobalClipboard, io as useId, lo as useImperativeElement, Sn as useInputModality, _o as useIsomorphicLayoutEffect, _l as useKeyboardResize, jn as useLanguage, Ho as useLazyRetry, Co as useLocationSearch, yo as useMeasure, mn as useMouseDownAndHoldListener, Vt as useNotifier, Qt as useOnClickOrFocusAway, Ut as useOptionalBoundSyncExternalStore, Xt as useOptionalSyncExternalStore, Ti as usePendingRender, gi as usePersistentState, yr as useResolvedThemeMode, pn as useSynchronizedPointerHandler, dn as useTextSelectionDrag, Gn as useTextareaCaretRect, ns as useTouchThumbFrame, Qn as useTraceUpdate, ji as useTrackDrag, Yn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, go as useVisualViewportRect, Ei as whenRenderSettled, Xo as zIndexVar };