@septkit/ui 0.0.82 → 0.0.84

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.
Files changed (99) hide show
  1. package/dist/dialecte/create-document-store.js +4 -4
  2. package/dist/external/.pnpm/{@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js → @dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js} +1 -1
  3. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +130 -0
  4. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +6 -0
  5. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js +1 -1
  6. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
  7. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js +1 -1
  8. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js +1 -1
  9. package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +79 -102
  10. package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js +2 -0
  11. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.js +8 -0
  12. package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +67 -125
  13. package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +167 -78
  14. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +126 -0
  15. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +170 -0
  16. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +33 -0
  17. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +73 -0
  18. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +64 -0
  19. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/utils.js +11 -0
  20. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContent.js +133 -0
  21. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
  22. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +137 -0
  23. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +130 -0
  24. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js +33 -0
  25. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js +54 -0
  26. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
  27. package/dist/index.d.ts +108 -1939
  28. package/dist/index.js +24 -27
  29. package/dist/status-bar/index.js +5 -0
  30. package/dist/status-bar/progress-bar.js +7 -0
  31. package/dist/status-bar/progress-bar.vue_vue_type_script_setup_true_lang.js +31 -0
  32. package/dist/status-bar/spinner.js +7 -0
  33. package/dist/status-bar/spinner.vue_vue_type_script_setup_true_lang.js +27 -0
  34. package/dist/status-bar/status-bar-item.js +8 -0
  35. package/dist/status-bar/status-bar-item.vue_vue_type_script_setup_true_lang.js +138 -0
  36. package/dist/status-bar/status-bar.js +7 -0
  37. package/dist/status-bar/status-bar.vue_vue_type_script_setup_true_lang.js +17 -0
  38. package/dist/ui.css +1 -1
  39. package/package.json +3 -3
  40. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -179
  41. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
  42. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +0 -6
  43. package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js +0 -2
  44. package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js +0 -45065
  45. package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
  46. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +0 -11
  47. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js +0 -26
  48. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +0 -27
  49. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +0 -67
  50. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +0 -136
  51. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +0 -28
  52. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +0 -97
  53. package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +0 -31
  54. package/dist/merge/check-files/components/merge-preflight.js +0 -5
  55. package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -53
  56. package/dist/merge/check-files/flags.js +0 -17
  57. package/dist/merge/check-files/identity-warning.js +0 -19
  58. package/dist/merge/confirm/components/merge-summary.js +0 -5
  59. package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -207
  60. package/dist/merge/confirm/landings.js +0 -34
  61. package/dist/merge/confirm/outcome.js +0 -179
  62. package/dist/merge/confirm/summary.js +0 -57
  63. package/dist/merge/done/applied-counts.js +0 -16
  64. package/dist/merge/done/applied-focus.js +0 -15
  65. package/dist/merge/help.js +0 -76
  66. package/dist/merge/index.js +0 -8
  67. package/dist/merge/match/components/merge-map.js +0 -5
  68. package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +0 -230
  69. package/dist/merge/match/match.js +0 -210
  70. package/dist/merge/review/affix.js +0 -14
  71. package/dist/merge/review/change-badge.js +0 -10
  72. package/dist/merge/review/components/decision-toggle.js +0 -5
  73. package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -80
  74. package/dist/merge/review/components/element-detail.js +0 -5
  75. package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +0 -210
  76. package/dist/merge/review/components/merge-tree.js +0 -5
  77. package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -192
  78. package/dist/merge/review/components/type-name-authority.js +0 -5
  79. package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js +0 -47
  80. package/dist/merge/review/decision.js +0 -12
  81. package/dist/merge/review/detail.js +0 -63
  82. package/dist/merge/review/highlight.js +0 -44
  83. package/dist/merge/review/marks.js +0 -17
  84. package/dist/merge/review/navigation.js +0 -82
  85. package/dist/merge/review/title.js +0 -7
  86. package/dist/merge/review/tree.js +0 -138
  87. package/dist/merge/session/components/merge-help.js +0 -7
  88. package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +0 -109
  89. package/dist/merge/session/components/merge-progress.js +0 -5
  90. package/dist/merge/session/components/merge-progress.vue_vue_type_script_setup_true_lang.js +0 -23
  91. package/dist/merge/session/components/merge-review.js +0 -5
  92. package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -895
  93. package/dist/merge/session/merge.service.js +0 -113
  94. package/dist/merge/session/shortcuts.js +0 -22
  95. package/dist/merge/session/staged-writes.js +0 -47
  96. package/dist/merge/session/steps.js +0 -21
  97. package/dist/merge/session/use-document-progress.js +0 -26
  98. package/dist/merge/session/use-merge-session.js +0 -372
  99. package/dist/merge/wording.js +0 -123
@@ -1,97 +1,97 @@
1
- import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h, tryOnMounted as g, tryOnScopeDispose as _, until as v, useDebounceFn as y, useTimeoutFn as b, watchImmediate as x } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
- import { computed as S, getCurrentInstance as C, nextTick as w, onMounted as T, ref as E, shallowReadonly as D, shallowRef as O, toRaw as k, toValue as A, unref as j, watch as M } from "vue";
1
+ import { bypassFilter as e, createEventHook as t, createFilterWrapper as n, createGlobalState as r, createSharedComposable as i, createSingletonPromise as a, debounceFilter as o, getLifeCycleTarget as s, isClient as c, isDef as l, isIOS as u, isObject as d, noop as f, pausableFilter as p, promiseTimeout as m, reactiveComputed as h, reactiveOmit as g, refAutoReset as _, syncRef as v, toArray as y, toReactive as b, toRef as x, tryOnBeforeUnmount as S, tryOnScopeDispose as C, until as w, useDebounceFn as T, useTimeoutFn as E, watchImmediate as D, watchPausable as O, watchWithFilter as k } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
+ import { computed as A, getCurrentInstance as j, nextTick as M, onMounted as N, ref as P, shallowReadonly as F, shallowRef as I, toRaw as L, toValue as R, unref as z, watch as B } from "vue";
3
3
  //#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js
4
- var N = s ? window : void 0;
5
- s && window.document;
6
- var P = s ? window.navigator : void 0;
7
- s && window.location;
8
- function F(e) {
9
- let t = A(e);
4
+ var V = c ? window : void 0;
5
+ c && window.document;
6
+ var H = c ? window.navigator : void 0;
7
+ c && window.location;
8
+ function U(e) {
9
+ let t = R(e);
10
10
  return t?.$el ?? t;
11
11
  }
12
- function I(...e) {
13
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = S(() => {
14
- let t = m(A(e[0])).filter((e) => e != null);
12
+ function W(...e) {
13
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = A(() => {
14
+ let t = y(R(e[0])).filter((e) => e != null);
15
15
  return t.every((e) => typeof e != "string") ? t : void 0;
16
16
  });
17
- return x(() => [
18
- n.value?.map((e) => F(e)) ?? [N].filter((e) => e != null),
19
- m(A(n.value ? e[1] : e[0])),
20
- m(j(n.value ? e[2] : e[1])),
21
- A(n.value ? e[3] : e[2])
17
+ return D(() => [
18
+ n.value?.map((e) => U(e)) ?? [V].filter((e) => e != null),
19
+ y(R(n.value ? e[1] : e[0])),
20
+ y(z(n.value ? e[2] : e[1])),
21
+ R(n.value ? e[3] : e[2])
22
22
  ], ([e, n, r, i], a, o) => {
23
23
  if (!e?.length || !n?.length || !r?.length) return;
24
- let s = u(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
24
+ let s = d(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
25
25
  o(() => {
26
26
  c.forEach((e) => e());
27
27
  });
28
28
  }, { flush: "post" });
29
29
  }
30
- function L() {
31
- let e = O(!1), t = C();
32
- return t && T(() => {
30
+ function G() {
31
+ let e = I(!1), t = j();
32
+ return t && N(() => {
33
33
  e.value = !0;
34
34
  }, t), e;
35
35
  }
36
36
  /* @__NO_SIDE_EFFECTS__ */
37
- function R(e) {
38
- let t = L();
39
- return S(() => (t.value, !!e()));
37
+ function K(e) {
38
+ let t = G();
39
+ return A(() => (t.value, !!e()));
40
40
  }
41
- function z(e) {
41
+ function q(e) {
42
42
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
43
43
  }
44
- function B(...e) {
44
+ function J(...e) {
45
45
  let t, n, r = {};
46
46
  e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
47
- let { target: i = N, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = z(t);
48
- return I(i, a, (e) => {
49
- e.repeat && A(s) || c(e) && n(e);
47
+ let { target: i = V, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = q(t);
48
+ return W(i, a, (e) => {
49
+ e.repeat && R(s) || c(e) && n(e);
50
50
  }, o);
51
51
  }
52
- function V(e, t, n) {
53
- let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? O(t) : E(t), p = O(!1), m = O(!1), h = O(void 0), g = 0;
52
+ function Y(e, t, n) {
53
+ let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? f, onSuccess: o = f, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? I(t) : P(t), d = I(!1), p = I(!1), h = I(void 0), g = 0;
54
54
  async function _(n = 0, ...r) {
55
55
  let i = g += 1;
56
- s && (u.value = A(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await f(n);
56
+ s && (u.value = R(t)), h.value = void 0, d.value = !1, p.value = !0, n > 0 && await m(n);
57
57
  let c = typeof e == "function" ? e(...r) : e;
58
58
  try {
59
59
  let e = await c;
60
- return i === g && (u.value = e, p.value = !0), o(e), e;
60
+ return i === g && (u.value = e, d.value = !0), o(e), e;
61
61
  } catch (e) {
62
62
  if (i === g && (h.value = e), a(e), l) throw e;
63
63
  } finally {
64
- i === g && (m.value = !1);
64
+ i === g && (p.value = !1);
65
65
  }
66
66
  }
67
67
  r && _(i);
68
- let y = {
68
+ let v = {
69
69
  state: u,
70
- isReady: p,
71
- isLoading: m,
70
+ isReady: d,
71
+ isLoading: p,
72
72
  error: h,
73
73
  execute: _,
74
74
  executeImmediate: (...e) => _(0, ...e)
75
75
  };
76
- function b() {
76
+ function y() {
77
77
  return new Promise((e, t) => {
78
- v(m).toBe(!1).then(() => e(y)).catch(t);
78
+ w(p).toBe(!1).then(() => e(v)).catch(t);
79
79
  });
80
80
  }
81
81
  return {
82
- ...y,
82
+ ...v,
83
83
  then(e, t) {
84
- return b().then(e, t);
84
+ return y().then(e, t);
85
85
  }
86
86
  };
87
87
  }
88
- function H(e, t = {}) {
89
- let { controls: n = !1, navigator: r = P } = t, a = /* @__PURE__ */ R(() => r && "permissions" in r), o = O(), s = typeof e == "string" ? { name: e } : e, c = O(), l = () => {
88
+ function X(e, t = {}) {
89
+ let { controls: n = !1, navigator: r = H } = t, i = /* @__PURE__ */ K(() => r && "permissions" in r), o = I(), s = typeof e == "string" ? { name: e } : e, c = I(), l = () => {
90
90
  c.value = o.value?.state ?? "prompt";
91
91
  };
92
- I(o, "change", l, { passive: !0 });
93
- let u = i(async () => {
94
- if (a.value) {
92
+ W(o, "change", l, { passive: !0 });
93
+ let u = a(async () => {
94
+ if (i.value) {
95
95
  if (!o.value) try {
96
96
  o.value = await r.permissions.query(s);
97
97
  } catch {
@@ -99,19 +99,19 @@ function H(e, t = {}) {
99
99
  } finally {
100
100
  l();
101
101
  }
102
- if (n) return k(o.value);
102
+ if (n) return L(o.value);
103
103
  }
104
104
  });
105
105
  return u(), n ? {
106
106
  state: c,
107
- isSupported: a,
107
+ isSupported: i,
108
108
  query: u
109
109
  } : c;
110
110
  }
111
- function U(e = {}) {
112
- let { navigator: t = P, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ R(() => t && "clipboard" in t), s = H("clipboard-read"), c = H("clipboard-write"), l = S(() => o.value || a), u = O(""), d = O(!1), f = O(!1), p = b(() => d.value = !1, i, { immediate: !1 }), m = 0;
111
+ function Z(e = {}) {
112
+ let { navigator: t = H, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ K(() => t && "clipboard" in t), s = X("clipboard-read"), c = X("clipboard-write"), l = A(() => o.value || a), u = I(""), d = I(!1), f = I(!1), p = E(() => d.value = !1, i, { immediate: !1 }), m = 0;
113
113
  async function h() {
114
- let e = !(o.value && x(s.value));
114
+ let e = !(o.value && b(s.value));
115
115
  if (!e) try {
116
116
  u.value = await t.clipboard.readText();
117
117
  } catch {
@@ -119,12 +119,12 @@ function U(e = {}) {
119
119
  }
120
120
  e && (u.value = y());
121
121
  }
122
- l.value && n && I(["copy", "cut"], h, { passive: !0 });
122
+ l.value && n && W(["copy", "cut"], h, { passive: !0 });
123
123
  async function g(e) {
124
- let n = e ?? A(r);
124
+ let n = e ?? R(r);
125
125
  if (l.value && n != null) {
126
126
  f.value = !0;
127
- let e = !(o.value && x(c.value));
127
+ let e = !(o.value && b(c.value));
128
128
  if (!e) try {
129
129
  let e = _(n);
130
130
  await t.clipboard.write([e]);
@@ -150,93 +150,35 @@ function U(e = {}) {
150
150
  var e, t;
151
151
  return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
152
152
  }
153
- function x(e) {
153
+ function b(e) {
154
154
  return e === "granted" || e === "prompt";
155
155
  }
156
156
  return {
157
- copyPending: D(f),
157
+ copyPending: F(f),
158
158
  isSupported: l,
159
- text: D(u),
160
- copied: D(d),
159
+ text: F(u),
160
+ copied: F(d),
161
161
  copy: g
162
162
  };
163
163
  }
164
- function W(e) {
164
+ function Q(e) {
165
165
  return JSON.parse(JSON.stringify(e));
166
166
  }
167
- function G(e, t, n = {}) {
168
- let { window: r = N, ...i } = n, a, o = /* @__PURE__ */ R(() => r && "ResizeObserver" in r), s = () => {
169
- a &&= (a.disconnect(), void 0);
170
- }, c = M(S(() => {
171
- let t = A(e);
172
- return Array.isArray(t) ? t.map((e) => F(e)) : [F(t)];
173
- }), (e) => {
174
- if (s(), o.value && r) {
175
- a = new ResizeObserver(t);
176
- for (let t of e) t && a.observe(t, i);
177
- }
178
- }, {
179
- immediate: !0,
180
- flush: "post"
181
- }), l = () => {
182
- s(), c();
183
- };
184
- return _(l), {
185
- isSupported: o,
186
- stop: l
187
- };
188
- }
189
- function K(e, t = {
190
- width: 0,
191
- height: 0
192
- }, n = {}) {
193
- let { window: r = N, box: i = "content-box" } = n, a = S(() => {
194
- var t;
195
- return (t = F(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
196
- }), o = O(t.width), s = O(t.height), { stop: c } = G(e, ([t]) => {
197
- let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
198
- if (r && a.value) {
199
- let t = F(e);
200
- if (t) {
201
- let e = t.getBoundingClientRect();
202
- o.value = e.width, s.value = e.height;
203
- }
204
- } else if (n) {
205
- let e = m(n);
206
- o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
207
- } else o.value = t.contentRect.width, s.value = t.contentRect.height;
208
- }, n);
209
- g(() => {
210
- let n = F(e);
211
- n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
212
- });
213
- let l = M(() => F(e), (e) => {
214
- o.value = e ? t.width : 0, s.value = e ? t.height : 0;
215
- });
216
- function u() {
217
- c(), l();
218
- }
219
- return {
220
- width: o,
221
- height: s,
222
- stop: u
223
- };
224
- }
225
- function q(e, t, n, r = {}) {
167
+ function $(e, t, n, r = {}) {
226
168
  var i, a;
227
- let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = C(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = l;
169
+ let { clone: o = !1, passive: s = !1, eventName: c, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = j(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = c;
228
170
  t ||= "modelValue", h ||= `update:${t.toString()}`;
229
- let g = (e) => o ? typeof o == "function" ? o(e) : W(e) : e, _ = () => c(e[t]) ? g(e[t]) : d, v = (e) => {
171
+ let g = (e) => o ? typeof o == "function" ? o(e) : Q(e) : e, _ = () => l(e[t]) ? g(e[t]) : d, v = (e) => {
230
172
  f ? f(e) && m(h, e) : m(h, e);
231
173
  };
232
174
  if (s) {
233
- let n = E(_()), r = !1;
234
- return M(() => e[t], (e) => {
235
- r || (r = !0, n.value = g(e), w(() => r = !1));
236
- }), M(n, (n) => {
175
+ let n = P(_()), r = !1;
176
+ return B(() => e[t], (e) => {
177
+ r || (r = !0, n.value = g(e), M(() => r = !1));
178
+ }), B(n, (n) => {
237
179
  !r && (n !== e[t] || u) && v(n);
238
180
  }, { deep: u }), n;
239
- } else return S({
181
+ } else return A({
240
182
  get() {
241
183
  return _();
242
184
  },
@@ -246,4 +188,4 @@ function q(e, t, n, r = {}) {
246
188
  });
247
189
  }
248
190
  //#endregion
249
- export { W as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as createSingletonPromise, a as debounceFilter, P as defaultNavigator, N as defaultWindow, o as getLifeCycleTarget, s as isClient, c as isDef, l as isIOS, u as isObject, d as noop, B as onKeyStroke, f as promiseTimeout, p as refAutoReset, m as toArray, h as tryOnBeforeUnmount, g as tryOnMounted, _ as tryOnScopeDispose, F as unrefElement, v as until, V as useAsyncState, U as useClipboard, y as useDebounceFn, K as useElementSize, I as useEventListener, L as useMounted, H as usePermission, G as useResizeObserver, R as useSupported, b as useTimeoutFn, q as useVModel, x as watchImmediate };
191
+ export { e as bypassFilter, Q as cloneFnJSON, t as createEventHook, n as createFilterWrapper, r as createGlobalState, i as createSharedComposable, a as createSingletonPromise, o as debounceFilter, H as defaultNavigator, V as defaultWindow, s as getLifeCycleTarget, c as isClient, l as isDef, u as isIOS, d as isObject, f as noop, J as onKeyStroke, p as pausableFilter, m as promiseTimeout, h as reactiveComputed, g as reactiveOmit, _ as refAutoReset, v as syncRef, y as toArray, b as toReactive, x as toRef, S as tryOnBeforeUnmount, C as tryOnScopeDispose, U as unrefElement, w as until, Y as useAsyncState, Z as useClipboard, T as useDebounceFn, W as useEventListener, G as useMounted, X as usePermission, K as useSupported, E as useTimeoutFn, $ as useVModel, D as watchImmediate, O as watchPausable, k as watchWithFilter };
@@ -1,9 +1,9 @@
1
- import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onMounted as s, onScopeDispose as c, shallowReadonly as l, shallowRef as u, toValue as d, watch as f } from "vue";
1
+ import { computed as e, customRef as t, effectScope as n, getCurrentInstance as r, getCurrentScope as i, isRef as a, nextTick as o, onBeforeUnmount as s, onScopeDispose as c, reactive as l, readonly as u, ref as d, shallowReadonly as f, shallowRef as p, toRef as m, toRefs as h, toValue as g, unref as _, watch as v } from "vue";
2
2
  //#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js
3
- function p(e, t) {
4
- return r() ? (c(e, t), !0) : !1;
3
+ function y(e, t) {
4
+ return i() ? (c(e, t), !0) : !1;
5
5
  }
6
- function m() {
6
+ function b() {
7
7
  let e = /* @__PURE__ */ new Set(), t = (t) => {
8
8
  e.delete(t);
9
9
  };
@@ -11,7 +11,7 @@ function m() {
11
11
  on: (n) => {
12
12
  e.add(n);
13
13
  let r = () => t(n);
14
- return p(r), { off: r };
14
+ return y(r), { off: r };
15
15
  },
16
16
  off: t,
17
17
  trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
@@ -20,18 +20,26 @@ function m() {
20
20
  }
21
21
  };
22
22
  }
23
- function h(e) {
24
- let n = !1, r, i = t(!0);
25
- return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
23
+ function x(e) {
24
+ let t = !1, r, i = n(!0);
25
+ return ((...n) => (t ||= (r = i.run(() => e(...n)), !0), r));
26
26
  }
27
- var g = typeof window < "u" && typeof document < "u";
27
+ var S = typeof window < "u" && typeof document < "u";
28
28
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
29
- var _ = (e) => e !== void 0, v = Object.prototype.toString, y = (e) => v.call(e) === "[object Object]", b = () => {}, x = /* @__PURE__ */ S();
30
- function S() {
29
+ var C = (e) => e !== void 0, w = Object.prototype.toString, T = (e) => w.call(e) === "[object Object]", E = () => {}, D = /* @__PURE__ */ O();
30
+ function O() {
31
31
  var e, t;
32
- return g && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
32
+ return S && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
33
33
  }
34
- function C(e, t) {
34
+ function k(...e) {
35
+ if (e.length !== 1) return m(...e);
36
+ let n = e[0];
37
+ return typeof n == "function" ? u(t(() => ({
38
+ get: n,
39
+ set: E
40
+ }))) : d(n);
41
+ }
42
+ function A(e, t) {
35
43
  function n(...n) {
36
44
  return new Promise((r, i) => {
37
45
  Promise.resolve(e(() => t.apply(this, n), {
@@ -43,12 +51,13 @@ function C(e, t) {
43
51
  }
44
52
  return n;
45
53
  }
46
- function w(e, t = {}) {
47
- let n, r, i = b, a = (e) => {
48
- clearTimeout(e), i(), i = b;
54
+ var j = (e) => e();
55
+ function M(e, t = {}) {
56
+ let n, r, i = E, a = (e) => {
57
+ clearTimeout(e), i(), i = E;
49
58
  }, o;
50
59
  return (s) => {
51
- let c = d(e), l = d(t.maxWait);
60
+ let c = g(e), l = g(t.maxWait);
52
61
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
53
62
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
54
63
  n && a(n), r = void 0, e(o());
@@ -58,12 +67,29 @@ function w(e, t = {}) {
58
67
  });
59
68
  };
60
69
  }
61
- function T(e, t = !1, n = "Timeout") {
70
+ function N(e = j, t = {}) {
71
+ let { initialState: n = "active" } = t, r = k(n === "active");
72
+ function i() {
73
+ r.value = !1;
74
+ }
75
+ function a() {
76
+ r.value = !0;
77
+ }
78
+ return {
79
+ isActive: f(r),
80
+ pause: i,
81
+ resume: a,
82
+ eventFilter: (...t) => {
83
+ r.value && e(...t);
84
+ }
85
+ };
86
+ }
87
+ function P(e, t = !1, n = "Timeout") {
62
88
  return new Promise((r, i) => {
63
89
  t ? setTimeout(i, e, n) : setTimeout(r, e);
64
90
  });
65
91
  }
66
- function E(e) {
92
+ function F(e) {
67
93
  let t;
68
94
  function n() {
69
95
  return t ||= e(), t;
@@ -73,29 +99,61 @@ function E(e) {
73
99
  t = void 0, e && await e;
74
100
  }, n;
75
101
  }
76
- function D(e) {
102
+ function I(e) {
77
103
  return Array.isArray(e) ? e : [e];
78
104
  }
79
- function O(e) {
80
- return e || n();
105
+ function L(e) {
106
+ return e || r();
81
107
  }
82
- function k(e) {
83
- if (!g) return e;
84
- let n = 0, r, i, a = () => {
85
- --n, i && n <= 0 && (i.stop(), r = void 0, i = void 0);
108
+ function R(e) {
109
+ if (!S) return e;
110
+ let t = 0, r, i, a = () => {
111
+ --t, i && t <= 0 && (i.stop(), r = void 0, i = void 0);
86
112
  };
87
- return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), p(a), r));
88
- }
89
- function A(t, n = 1e4) {
90
- return e((e, r) => {
91
- let i = d(t), a, o = () => setTimeout(() => {
92
- i = d(t), r();
93
- }, d(n));
94
- return p(() => {
113
+ return ((...o) => (t += 1, i || (i = n(!0), r = i.run(() => e(...o))), y(a), r));
114
+ }
115
+ function z(e) {
116
+ return a(e) ? l(new Proxy({}, {
117
+ get(t, n, r) {
118
+ return _(Reflect.get(e.value, n, r));
119
+ },
120
+ set(t, n, r) {
121
+ return a(e.value[n]) && !a(r) ? e.value[n].value = r : e.value[n] = r, !0;
122
+ },
123
+ deleteProperty(t, n) {
124
+ return Reflect.deleteProperty(e.value, n);
125
+ },
126
+ has(t, n) {
127
+ return Reflect.has(e.value, n);
128
+ },
129
+ ownKeys() {
130
+ return Object.keys(e.value);
131
+ },
132
+ getOwnPropertyDescriptor() {
133
+ return {
134
+ enumerable: !0,
135
+ configurable: !0
136
+ };
137
+ }
138
+ })) : l(e);
139
+ }
140
+ function B(t) {
141
+ return z(e(t));
142
+ }
143
+ function V(e, ...t) {
144
+ let n = t.flat(), r = n[0];
145
+ return B(() => Object.fromEntries(typeof r == "function" ? Object.entries(h(e)).filter(([e, t]) => !r(g(t), e)) : Object.entries(h(e)).filter((e) => !n.includes(e[0]))));
146
+ }
147
+ function H(e, n = 1e4) {
148
+ return t((t, r) => {
149
+ let i = g(e), a, o = () => setTimeout(() => {
150
+ i = g(e), r();
151
+ }, g(n));
152
+ return y(() => {
95
153
  clearTimeout(a);
96
154
  }), {
97
155
  get() {
98
- return e(), i;
156
+ return t(), i;
99
157
  },
100
158
  set(e) {
101
159
  i = e, r(), clearTimeout(a), a = o();
@@ -103,42 +161,73 @@ function A(t, n = 1e4) {
103
161
  };
104
162
  });
105
163
  }
106
- function j(e, t = 200, n = {}) {
107
- return C(w(t, n), e);
164
+ function U(e, t = 200, n = {}) {
165
+ return A(M(t, n), e);
108
166
  }
109
- function M(e, t) {
110
- O(t) && o(e, t);
167
+ function W(e, t, n = {}) {
168
+ let { eventFilter: r = j, ...i } = n;
169
+ return v(e, A(r, t), i);
111
170
  }
112
- function N(e, t = !0, n) {
113
- O(n) ? s(e, n) : t ? e() : a(e);
171
+ function G(e, t, n = {}) {
172
+ let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = N(r, { initialState: i });
173
+ return {
174
+ stop: W(e, t, {
175
+ ...a,
176
+ eventFilter: o
177
+ }),
178
+ pause: s,
179
+ resume: c,
180
+ isActive: l
181
+ };
182
+ }
183
+ function K(e, t, ...[n]) {
184
+ let { flush: r = "sync", deep: i = !1, immediate: a = !0, direction: o = "both", transform: s = {} } = n || {}, c = [], l = "ltr" in s && s.ltr || ((e) => e), u = "rtl" in s && s.rtl || ((e) => e);
185
+ return (o === "both" || o === "ltr") && c.push(G(e, (e) => {
186
+ c.forEach((e) => e.pause()), t.value = l(e), c.forEach((e) => e.resume());
187
+ }, {
188
+ flush: r,
189
+ deep: i,
190
+ immediate: a
191
+ })), (o === "both" || o === "rtl") && c.push(G(t, (t) => {
192
+ c.forEach((e) => e.pause()), e.value = u(t), c.forEach((e) => e.resume());
193
+ }, {
194
+ flush: r,
195
+ deep: i,
196
+ immediate: a
197
+ })), () => {
198
+ c.forEach((e) => e.stop());
199
+ };
200
+ }
201
+ function q(e, t) {
202
+ L(t) && s(e, t);
114
203
  }
115
- function P(e, t = !1) {
116
- function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
117
- let c = null, l = [new Promise((o) => {
118
- c = f(e, (e) => {
119
- n(e) !== t && (c ? c() : a(() => c?.()), o(e));
204
+ function J(e, t = !1) {
205
+ function n(n, { flush: r = "sync", deep: i = !1, timeout: a, throwOnTimeout: s } = {}) {
206
+ let c = null, l = [new Promise((a) => {
207
+ c = v(e, (e) => {
208
+ n(e) !== t && (c ? c() : o(() => c?.()), a(e));
120
209
  }, {
121
210
  flush: r,
122
211
  deep: i,
123
212
  immediate: !0
124
213
  });
125
214
  })];
126
- return o != null && l.push(T(o, s).then(() => d(e)).finally(() => c?.())), Promise.race(l);
215
+ return a != null && l.push(P(a, s).then(() => g(e)).finally(() => c?.())), Promise.race(l);
127
216
  }
128
- function r(r, o) {
129
- if (!i(r)) return n((e) => e === r, o);
130
- let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = o ?? {}, p = null, m = [new Promise((n) => {
131
- p = f([e, r], ([e, r]) => {
132
- t !== (e === r) && (p ? p() : a(() => p?.()), n(e));
217
+ function r(r, i) {
218
+ if (!a(r)) return n((e) => e === r, i);
219
+ let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = i ?? {}, d = null, f = [new Promise((n) => {
220
+ d = v([e, r], ([e, r]) => {
221
+ t !== (e === r) && (d ? d() : o(() => d?.()), n(e));
133
222
  }, {
134
223
  flush: s,
135
224
  deep: c,
136
225
  immediate: !0
137
226
  });
138
227
  })];
139
- return l != null && m.push(T(l, u).then(() => d(e)).finally(() => (p?.(), d(e)))), Promise.race(m);
228
+ return l != null && f.push(P(l, u).then(() => g(e)).finally(() => (d?.(), g(e)))), Promise.race(f);
140
229
  }
141
- function o(e) {
230
+ function i(e) {
142
231
  return n((e) => !!e, e);
143
232
  }
144
233
  function s(e) {
@@ -153,65 +242,65 @@ function P(e, t = !1) {
153
242
  function u(e, t) {
154
243
  return n((t) => {
155
244
  let n = Array.from(t);
156
- return n.includes(e) || n.includes(d(e));
245
+ return n.includes(e) || n.includes(g(e));
157
246
  }, t);
158
247
  }
159
- function p(e) {
160
- return m(1, e);
248
+ function d(e) {
249
+ return f(1, e);
161
250
  }
162
- function m(e = 1, t) {
251
+ function f(e = 1, t) {
163
252
  let r = -1;
164
253
  return n(() => (r += 1, r >= e), t);
165
254
  }
166
- return Array.isArray(d(e)) ? {
255
+ return Array.isArray(g(e)) ? {
167
256
  toMatch: n,
168
257
  toContains: u,
169
- changed: p,
170
- changedTimes: m,
258
+ changed: d,
259
+ changedTimes: f,
171
260
  get not() {
172
- return P(e, !t);
261
+ return J(e, !t);
173
262
  }
174
263
  } : {
175
264
  toMatch: n,
176
265
  toBe: r,
177
- toBeTruthy: o,
266
+ toBeTruthy: i,
178
267
  toBeNull: s,
179
268
  toBeNaN: l,
180
269
  toBeUndefined: c,
181
- changed: p,
182
- changedTimes: m,
270
+ changed: d,
271
+ changedTimes: f,
183
272
  get not() {
184
- return P(e, !t);
273
+ return J(e, !t);
185
274
  }
186
275
  };
187
276
  }
188
- function F(e) {
189
- return P(e);
277
+ function Y(e) {
278
+ return J(e);
190
279
  }
191
- function I(e, t, n = {}) {
192
- let { immediate: r = !0, immediateCallback: i = !1 } = n, a = u(!1), o;
280
+ function X(e, t, n = {}) {
281
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = p(!1), o;
193
282
  function s() {
194
283
  o &&= (clearTimeout(o), void 0);
195
284
  }
196
285
  function c() {
197
286
  a.value = !1, s();
198
287
  }
199
- function f(...n) {
288
+ function l(...n) {
200
289
  i && e(), s(), a.value = !0, o = setTimeout(() => {
201
290
  a.value = !1, o = void 0, e(...n);
202
- }, d(t));
291
+ }, g(t));
203
292
  }
204
- return r && (a.value = !0, g && f()), p(c), {
205
- isPending: l(a),
206
- start: f,
293
+ return r && (a.value = !0, S && l()), y(c), {
294
+ isPending: f(a),
295
+ start: l,
207
296
  stop: c
208
297
  };
209
298
  }
210
- function L(e, t, n) {
211
- return f(e, t, {
299
+ function Z(e, t, n) {
300
+ return v(e, t, {
212
301
  ...n,
213
302
  immediate: !0
214
303
  });
215
304
  }
216
305
  //#endregion
217
- export { m as createEventHook, C as createFilterWrapper, h as createGlobalState, k as createSharedComposable, E as createSingletonPromise, w as debounceFilter, O as getLifeCycleTarget, g as isClient, _ as isDef, x as isIOS, y as isObject, b as noop, T as promiseTimeout, A as refAutoReset, D as toArray, M as tryOnBeforeUnmount, N as tryOnMounted, p as tryOnScopeDispose, F as until, j as useDebounceFn, I as useTimeoutFn, L as watchImmediate };
306
+ export { j as bypassFilter, b as createEventHook, A as createFilterWrapper, x as createGlobalState, R as createSharedComposable, F as createSingletonPromise, M as debounceFilter, L as getLifeCycleTarget, S as isClient, C as isDef, D as isIOS, T as isObject, E as noop, N as pausableFilter, P as promiseTimeout, B as reactiveComputed, V as reactiveOmit, H as refAutoReset, K as syncRef, I as toArray, z as toReactive, k as toRef, q as tryOnBeforeUnmount, y as tryOnScopeDispose, Y as until, U as useDebounceFn, X as useTimeoutFn, Z as watchImmediate, G as watchPausable, W as watchWithFilter };