@aiquants/menu-bar 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,29 +1,29 @@
1
- import Ae, { forwardRef as ke, createElement as se, useCallback as _, useSyncExternalStore as Me, useMemo as le, useState as J, useRef as q, useEffect as V, useLayoutEffect as ye } from "react";
2
- import { useLocation as Re, Link as Ne } from "react-router-dom";
3
- var Z = { exports: {} }, Y = {};
1
+ import Pe, { forwardRef as we, createElement as se, useCallback as j, useSyncExternalStore as Me, useMemo as ce, useState as J, useRef as q, useEffect as W, useLayoutEffect as ke } from "react";
2
+ import { useLocation as Re, Link as ye } from "react-router-dom";
3
+ var B = { exports: {} }, Y = {};
4
4
  var ue;
5
- function Oe() {
5
+ function Ae() {
6
6
  if (ue) return Y;
7
7
  ue = 1;
8
8
  var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
9
- function a(s, c, o) {
9
+ function a(s, l, o) {
10
10
  var u = null;
11
- if (o !== void 0 && (u = "" + o), c.key !== void 0 && (u = "" + c.key), "key" in c) {
11
+ if (o !== void 0 && (u = "" + o), l.key !== void 0 && (u = "" + l.key), "key" in l) {
12
12
  o = {};
13
- for (var d in c)
14
- d !== "key" && (o[d] = c[d]);
15
- } else o = c;
16
- return c = o.ref, {
13
+ for (var d in l)
14
+ d !== "key" && (o[d] = l[d]);
15
+ } else o = l;
16
+ return l = o.ref, {
17
17
  $$typeof: t,
18
18
  type: s,
19
19
  key: u,
20
- ref: c !== void 0 ? c : null,
20
+ ref: l !== void 0 ? l : null,
21
21
  props: o
22
22
  };
23
23
  }
24
24
  return Y.Fragment = n, Y.jsx = a, Y.jsxs = a, Y;
25
25
  }
26
- var W = {};
26
+ var V = {};
27
27
  var de;
28
28
  function Ie() {
29
29
  return de || (de = 1, process.env.NODE_ENV !== "production" && (function() {
@@ -33,7 +33,7 @@ function Ie() {
33
33
  return e.$$typeof === F ? null : e.displayName || e.name || null;
34
34
  if (typeof e == "string") return e;
35
35
  switch (e) {
36
- case l:
36
+ case c:
37
37
  return "Fragment";
38
38
  case S:
39
39
  return "Profiler";
@@ -50,13 +50,13 @@ function Ie() {
50
50
  switch (typeof e.tag == "number" && console.error(
51
51
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
52
52
  ), e.$$typeof) {
53
- case R:
53
+ case A:
54
54
  return "Portal";
55
- case C:
55
+ case T:
56
56
  return e.displayName || "Context";
57
57
  case w:
58
58
  return (e._context.displayName || "Context") + ".Consumer";
59
- case O:
59
+ case I:
60
60
  var i = e.render;
61
61
  return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
62
  case X:
@@ -91,7 +91,7 @@ function Ie() {
91
91
  }
92
92
  }
93
93
  function s(e) {
94
- if (e === l) return "<>";
94
+ if (e === c) return "<>";
95
95
  if (typeof e == "object" && e !== null && e.$$typeof === D)
96
96
  return "<...>";
97
97
  try {
@@ -101,15 +101,15 @@ function Ie() {
101
101
  return "<...>";
102
102
  }
103
103
  }
104
- function c() {
105
- var e = I.A;
104
+ function l() {
105
+ var e = O.A;
106
106
  return e === null ? null : e.getOwner();
107
107
  }
108
108
  function o() {
109
109
  return Error("react-stack-top-frame");
110
110
  }
111
111
  function u(e) {
112
- if (A.call(e, "key")) {
112
+ if (M.call(e, "key")) {
113
113
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
114
114
  if (i && i.isReactWarning) return !1;
115
115
  }
@@ -133,10 +133,10 @@ function Ie() {
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), e = this.props.ref, e !== void 0 ? e : null;
135
135
  }
136
- function v(e, i, f, b, B, ee) {
136
+ function v(e, i, f, b, Z, ee) {
137
137
  var x = f.ref;
138
138
  return e = {
139
- $$typeof: T,
139
+ $$typeof: C,
140
140
  type: e,
141
141
  key: i,
142
142
  props: f,
@@ -158,7 +158,7 @@ function Ie() {
158
158
  configurable: !1,
159
159
  enumerable: !1,
160
160
  writable: !0,
161
- value: B
161
+ value: Z
162
162
  }), Object.defineProperty(e, "_debugTask", {
163
163
  configurable: !1,
164
164
  enumerable: !1,
@@ -166,7 +166,7 @@ function Ie() {
166
166
  value: ee
167
167
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
168
168
  }
169
- function y(e, i, f, b, B, ee) {
169
+ function y(e, i, f, b, Z, ee) {
170
170
  var x = i.children;
171
171
  if (x !== void 0)
172
172
  if (b)
@@ -179,10 +179,10 @@ function Ie() {
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
181
  else N(x);
182
- if (A.call(i, "key")) {
182
+ if (M.call(i, "key")) {
183
183
  x = t(e);
184
- var L = Object.keys(i).filter(function(Pe) {
185
- return Pe !== "key";
184
+ var L = Object.keys(i).filter(function(Ce) {
185
+ return Ce !== "key";
186
186
  });
187
187
  b = 0 < L.length ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}", h[x + b] || (L = 0 < L.length ? "{" + L.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
@@ -209,8 +209,8 @@ React keys must be passed directly to JSX without using spread:
209
209
  e,
210
210
  x,
211
211
  f,
212
- c(),
213
- B,
212
+ l(),
213
+ Z,
214
214
  ee
215
215
  );
216
216
  }
@@ -218,60 +218,60 @@ React keys must be passed directly to JSX without using spread:
218
218
  k(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === D && (e._payload.status === "fulfilled" ? k(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
219
219
  }
220
220
  function k(e) {
221
- return typeof e == "object" && e !== null && e.$$typeof === T;
221
+ return typeof e == "object" && e !== null && e.$$typeof === C;
222
222
  }
223
- var j = Ae, T = /* @__PURE__ */ Symbol.for("react.transitional.element"), R = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), p = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), w = /* @__PURE__ */ Symbol.for("react.consumer"), C = /* @__PURE__ */ Symbol.for("react.context"), O = /* @__PURE__ */ Symbol.for("react.forward_ref"), $ = /* @__PURE__ */ Symbol.for("react.suspense"), Q = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), I = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, K = Array.isArray, P = console.createTask ? console.createTask : function() {
223
+ var _ = Pe, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), A = /* @__PURE__ */ Symbol.for("react.portal"), c = /* @__PURE__ */ Symbol.for("react.fragment"), p = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), w = /* @__PURE__ */ Symbol.for("react.consumer"), T = /* @__PURE__ */ Symbol.for("react.context"), I = /* @__PURE__ */ Symbol.for("react.forward_ref"), $ = /* @__PURE__ */ Symbol.for("react.suspense"), Q = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), z = /* @__PURE__ */ Symbol.for("react.activity"), F = /* @__PURE__ */ Symbol.for("react.client.reference"), O = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, K = Array.isArray, P = console.createTask ? console.createTask : function() {
224
224
  return null;
225
225
  };
226
- j = {
226
+ _ = {
227
227
  react_stack_bottom_frame: function(e) {
228
228
  return e();
229
229
  }
230
230
  };
231
- var U, G = {}, M = j.react_stack_bottom_frame.bind(
232
- j,
231
+ var U, G = {}, R = _.react_stack_bottom_frame.bind(
232
+ _,
233
233
  o
234
234
  )(), H = P(s(o)), h = {};
235
- W.Fragment = l, W.jsx = function(e, i, f) {
236
- var b = 1e4 > I.recentlyCreatedOwnerStacks++;
235
+ V.Fragment = c, V.jsx = function(e, i, f) {
236
+ var b = 1e4 > O.recentlyCreatedOwnerStacks++;
237
237
  return y(
238
238
  e,
239
239
  i,
240
240
  f,
241
241
  !1,
242
- b ? Error("react-stack-top-frame") : M,
242
+ b ? Error("react-stack-top-frame") : R,
243
243
  b ? P(s(e)) : H
244
244
  );
245
- }, W.jsxs = function(e, i, f) {
246
- var b = 1e4 > I.recentlyCreatedOwnerStacks++;
245
+ }, V.jsxs = function(e, i, f) {
246
+ var b = 1e4 > O.recentlyCreatedOwnerStacks++;
247
247
  return y(
248
248
  e,
249
249
  i,
250
250
  f,
251
251
  !0,
252
- b ? Error("react-stack-top-frame") : M,
252
+ b ? Error("react-stack-top-frame") : R,
253
253
  b ? P(s(e)) : H
254
254
  );
255
255
  };
256
- })()), W;
256
+ })()), V;
257
257
  }
258
258
  var fe;
259
- function Le() {
260
- return fe || (fe = 1, process.env.NODE_ENV === "production" ? Z.exports = Oe() : Z.exports = Ie()), Z.exports;
259
+ function Oe() {
260
+ return fe || (fe = 1, process.env.NODE_ENV === "production" ? B.exports = Ae() : B.exports = Ie()), B.exports;
261
261
  }
262
- var r = Le();
263
- const qe = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), $e = (t) => t.replace(
262
+ var r = Oe();
263
+ const Le = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), qe = (t) => t.replace(
264
264
  /^([A-Z])|[\s-_]+(\w)/g,
265
265
  (n, a, s) => s ? s.toUpperCase() : a.toLowerCase()
266
266
  ), me = (t) => {
267
- const n = $e(t);
267
+ const n = qe(t);
268
268
  return n.charAt(0).toUpperCase() + n.slice(1);
269
- }, _e = (...t) => t.filter((n, a, s) => !!n && n.trim() !== "" && s.indexOf(n) === a).join(" ").trim(), De = (t) => {
269
+ }, Ne = (...t) => t.filter((n, a, s) => !!n && n.trim() !== "" && s.indexOf(n) === a).join(" ").trim(), $e = (t) => {
270
270
  for (const n in t)
271
271
  if (n.startsWith("aria-") || n === "role" || n === "title")
272
272
  return !0;
273
273
  };
274
- var ze = {
274
+ var De = {
275
275
  xmlns: "http://www.w3.org/2000/svg",
276
276
  width: 24,
277
277
  height: 24,
@@ -282,13 +282,13 @@ var ze = {
282
282
  strokeLinecap: "round",
283
283
  strokeLinejoin: "round"
284
284
  };
285
- const He = ke(
285
+ const ze = we(
286
286
  ({
287
287
  color: t = "currentColor",
288
288
  size: n = 24,
289
289
  strokeWidth: a = 2,
290
290
  absoluteStrokeWidth: s,
291
- className: c = "",
291
+ className: l = "",
292
292
  children: o,
293
293
  iconNode: u,
294
294
  ...d
@@ -296,13 +296,13 @@ const He = ke(
296
296
  "svg",
297
297
  {
298
298
  ref: m,
299
- ...ze,
299
+ ...De,
300
300
  width: n,
301
301
  height: n,
302
302
  stroke: t,
303
303
  strokeWidth: s ? Number(a) * 24 / Number(n) : a,
304
- className: _e("lucide", c),
305
- ...!o && !De(d) && { "aria-hidden": "true" },
304
+ className: Ne("lucide", l),
305
+ ...!o && !$e(d) && { "aria-hidden": "true" },
306
306
  ...d
307
307
  },
308
308
  [
@@ -312,30 +312,30 @@ const He = ke(
312
312
  )
313
313
  );
314
314
  const E = (t, n) => {
315
- const a = ke(
316
- ({ className: s, ...c }, o) => se(He, {
315
+ const a = we(
316
+ ({ className: s, ...l }, o) => se(ze, {
317
317
  ref: o,
318
318
  iconNode: n,
319
- className: _e(
320
- `lucide-${qe(me(t))}`,
319
+ className: Ne(
320
+ `lucide-${Le(me(t))}`,
321
321
  `lucide-${t}`,
322
322
  s
323
323
  ),
324
- ...c
324
+ ...l
325
325
  })
326
326
  );
327
327
  return a.displayName = me(t), a;
328
328
  };
329
- const Ye = [
329
+ const He = [
330
330
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
331
331
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
332
332
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
333
- ], We = E("external-link", Ye);
333
+ ], Ye = E("external-link", He);
334
334
  const Ve = [
335
335
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
336
336
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
337
- ], Fe = E("user", Ve), Ue = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2NiZDVlMSI+PHBhdGggZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OS00IDQgMS43OSA0IDQgNHptMCAyYy0yLjY3IDAtOCAxLjM0LTggNHYyaDE2di0yYzAtMi42Ni01LjMzLTQtOC00eiIvPjwvc3ZnPg==", Ge = ({ to: t, className: n, children: a }) => /* @__PURE__ */ r.jsx("a", { href: t, className: n, children: a }), he = "flex items-center justify-center gap-1 rounded-md border border-white/15 bg-white/10 px-1 py-1 font-medium text-[11px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80 pointer-coarse:min-h-11", Nt = (t) => {
338
- const { user: n, LinkComponent: a = Ge } = t;
337
+ ], We = E("user", Ve), Fe = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2NiZDVlMSI+PHBhdGggZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00cy0xLjc5LTQtNC00LTQgMS43OS00IDQgMS43OSA0IDQgNHptMCAyYy0yLjY3IDAtOCAxLjM0LTggNHYyaDE2di0yYzAtMi42Ni01LjMzLTQtOC00eiIvPjwvc3ZnPg==", Ue = ({ to: t, className: n, children: a }) => /* @__PURE__ */ r.jsx("a", { href: t, className: n, children: a }), he = "flex min-h-11 items-center justify-center gap-1 rounded-md border border-white/15 bg-white/10 px-1 py-1 font-medium text-[11px] text-white transition-all duration-150 hover:bg-white/25 active:scale-95 dark:border-slate-600/50 dark:bg-slate-700/50 dark:text-slate-200 dark:hover:bg-slate-600/80", yt = (t) => {
338
+ const { user: n, LinkComponent: a = Ue } = t;
339
339
  return /* @__PURE__ */ r.jsx("div", { className: "w-full", children: n ? /* @__PURE__ */ r.jsxs(
340
340
  "div",
341
341
  {
@@ -344,7 +344,7 @@ const Ve = [
344
344
  children: [
345
345
  /* @__PURE__ */ r.jsxs("div", { className: "flex min-w-0 items-center gap-2.5", children: [
346
346
  /* @__PURE__ */ r.jsxs("div", { className: "relative shrink-0", children: [
347
- /* @__PURE__ */ r.jsx("div", { className: "h-8 w-8 overflow-hidden rounded-full border border-white/40 shadow-xs dark:border-slate-500", children: /* @__PURE__ */ r.jsx("img", { className: "h-full w-full rounded-full object-cover", src: n.photo || Ue, alt: n.displayName || "user profile" }) }),
347
+ /* @__PURE__ */ r.jsx("div", { className: "h-8 w-8 overflow-hidden rounded-full border border-white/40 shadow-xs dark:border-slate-500", children: /* @__PURE__ */ r.jsx("img", { className: "h-full w-full rounded-full object-cover", src: n.photo || Fe, alt: n.displayName || "user profile" }) }),
348
348
  /* @__PURE__ */ r.jsx("span", { className: "absolute -right-0.5 -bottom-0.5 h-2.5 w-2.5 rounded-full border-2 border-slate-900 bg-emerald-400", title: "Online" })
349
349
  ] }),
350
350
  /* @__PURE__ */ r.jsxs("div", { className: "min-w-0 flex-1 leading-tight", children: [
@@ -354,11 +354,11 @@ const Ve = [
354
354
  ] }),
355
355
  /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-2 gap-1.5 border-white/15 border-t pt-1.5 dark:border-slate-700/50", children: [
356
356
  /* @__PURE__ */ r.jsxs(a, { className: he, to: "/", children: [
357
- /* @__PURE__ */ r.jsx(Fe, { size: 11, className: "shrink-0 opacity-80" }),
357
+ /* @__PURE__ */ r.jsx(We, { size: 11, className: "shrink-0 opacity-80" }),
358
358
  /* @__PURE__ */ r.jsx("span", { className: "truncate", children: "プロフィール" })
359
359
  ] }),
360
360
  /* @__PURE__ */ r.jsxs(a, { className: he, to: "https://myaccount.google.com/", children: [
361
- /* @__PURE__ */ r.jsx(We, { size: 11, className: "shrink-0 opacity-80" }),
361
+ /* @__PURE__ */ r.jsx(Ye, { size: 11, className: "shrink-0 opacity-80" }),
362
362
  /* @__PURE__ */ r.jsx("span", { className: "truncate", children: "Google" })
363
363
  ] })
364
364
  ] })
@@ -379,22 +379,22 @@ const je = (t = 240) => {
379
379
  return g.pinned === d && g.width === m && g.active === v || (g = { pinned: d, width: m, active: v }), g;
380
380
  }
381
381
  }
382
- const s = localStorage.getItem("aiquants-menu-pinned") === "true", c = s ? t : 0, o = g.active ?? s;
383
- return g.pinned === s && g.width === c && g.active === o || (g = { pinned: s, width: c, active: o }), g;
382
+ const s = localStorage.getItem("aiquants-menu-pinned") === "true", l = s ? t : 0, o = g.active ?? s;
383
+ return g.pinned === s && g.width === l && g.active === o || (g = { pinned: s, width: l, active: o }), g;
384
384
  } catch {
385
385
  return { pinned: !1, width: 0, active: !1 };
386
386
  }
387
387
  }, pe = (t, n, a) => {
388
388
  if (typeof window > "u") return;
389
- const s = a ?? t, c = { pinned: t, width: n, active: s };
390
- (g.pinned !== t || g.width !== n || g.active !== s) && (g = c);
389
+ const s = a ?? t, l = { pinned: t, width: n, active: s };
390
+ (g.pinned !== t || g.width !== n || g.active !== s) && (g = l);
391
391
  const o = new CustomEvent(oe, {
392
- detail: c,
392
+ detail: l,
393
393
  bubbles: !0,
394
394
  cancelable: !1
395
395
  });
396
396
  window.dispatchEvent(o);
397
- }, Be = (t, n) => {
397
+ }, Ge = (t, n) => {
398
398
  if (typeof window > "u")
399
399
  return () => {
400
400
  };
@@ -403,34 +403,34 @@ const je = (t = 240) => {
403
403
  const o = je(s);
404
404
  t(o);
405
405
  }
406
- const c = (o) => {
406
+ const l = (o) => {
407
407
  const u = o;
408
408
  u.detail && t(u.detail);
409
409
  };
410
- return window.addEventListener(oe, c, { passive: !0 }), () => {
411
- window.removeEventListener(oe, c);
410
+ return window.addEventListener(oe, l, { passive: !0 }), () => {
411
+ window.removeEventListener(oe, l);
412
412
  };
413
- }, _t = (t) => {
414
- const n = t?.defaultPinnedWidth ?? 240, a = t?.initialPinned ?? !1, s = _(
415
- (u) => Be(
413
+ }, Nt = (t) => {
414
+ const n = t?.defaultPinnedWidth ?? 240, a = t?.initialPinned ?? !1, s = j(
415
+ (u) => Ge(
416
416
  () => {
417
417
  u();
418
418
  },
419
419
  { immediate: !1, defaultPinnedWidth: n }
420
420
  ),
421
421
  [n]
422
- ), c = _(() => je(n), [n]), o = _(() => ({
422
+ ), l = j(() => je(n), [n]), o = j(() => ({
423
423
  pinned: a,
424
424
  width: a ? n : 0
425
425
  }), [a, n]);
426
- return Me(s, c, o);
426
+ return Me(s, l, o);
427
427
  };
428
428
  const Ze = [
429
429
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
430
430
  ["path", { d: "M21 12H9", key: "dn1m92" }],
431
431
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
432
- ], Je = E("log-out", Ze);
433
- const Qe = [
432
+ ], Be = E("log-out", Ze);
433
+ const Je = [
434
434
  ["path", { d: "M12 17v5", key: "bb1du9" }],
435
435
  [
436
436
  "path",
@@ -439,8 +439,8 @@ const Qe = [
439
439
  key: "1nkz8b"
440
440
  }
441
441
  ]
442
- ], Ee = E("pin", Qe);
443
- const Xe = [
442
+ ], _e = E("pin", Je);
443
+ const Qe = [
444
444
  ["path", { d: "M12 17v5", key: "bb1du9" }],
445
445
  ["path", { d: "M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89", key: "znwnzq" }],
446
446
  ["path", { d: "m2 2 20 20", key: "1ooewy" }],
@@ -451,18 +451,18 @@ const Xe = [
451
451
  key: "c9qhm2"
452
452
  }
453
453
  ]
454
- ], Se = E("pin-off", Xe);
455
- const Ke = [
454
+ ], Ee = E("pin-off", Qe);
455
+ const Xe = [
456
456
  ["path", { d: "M5 21v-6", key: "1hz6c0" }],
457
457
  ["path", { d: "M12 21V9", key: "uvy0l4" }],
458
458
  ["path", { d: "M19 21V3", key: "11j9sm" }]
459
- ], et = E("chart-no-axes-column-increasing", Ke);
460
- const tt = [
459
+ ], Ke = E("chart-no-axes-column-increasing", Xe);
460
+ const et = [
461
461
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
462
462
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
463
463
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
464
- ], nt = E("download", tt);
465
- const rt = [
464
+ ], tt = E("download", et);
465
+ const nt = [
466
466
  [
467
467
  "path",
468
468
  {
@@ -474,35 +474,35 @@ const rt = [
474
474
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
475
475
  ["path", { d: "M16 13H8", key: "t4e002" }],
476
476
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
477
- ], be = E("file-text", rt);
478
- const at = [
477
+ ], be = E("file-text", nt);
478
+ const rt = [
479
479
  ["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
480
480
  ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
481
- ], st = E("link", at);
482
- const ot = [
481
+ ], at = E("link", rt);
482
+ const st = [
483
483
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
484
484
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
485
- ], it = E("lock", ot);
486
- const ct = [
485
+ ], ot = E("lock", st);
486
+ const it = [
487
487
  ["path", { d: "M12 3v18", key: "108xh3" }],
488
488
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
489
489
  ["path", { d: "M3 9h18", key: "1pudct" }],
490
490
  ["path", { d: "M3 15h18", key: "5xshup" }]
491
- ], lt = E("table", ct), ie = "pointer-coarse:flex pointer-coarse:min-h-11 pointer-coarse:flex-1 pointer-coarse:items-center", xe = "py-1 pointer-coarse:py-0", ut = "pointer-coarse:min-h-11 pointer-coarse:min-w-11", dt = typeof window < "u" ? ye : V, ve = "aiquants-menu-scroll", Ce = new RegExp(/(^https?:\/\/)|(\.(html|htm)?$)/), ft = {
491
+ ], lt = E("table", it), ie = "flex min-h-11 flex-1 items-center", ct = "min-h-11 min-w-11", ut = typeof window < "u" ? ke : W, xe = "aiquants-menu-scroll", Se = new RegExp(/(^https?:\/\/)|(\.(html|htm)?$)/), dt = {
492
492
  report: be,
493
493
  slip: be,
494
494
  table: lt,
495
- chart: et,
496
- download: nt,
497
- lock: it,
498
- href: st
499
- }, mt = ({ mark: t, children: n }) => {
500
- const a = t ? ft[t] : void 0;
495
+ chart: Ke,
496
+ download: tt,
497
+ lock: ot,
498
+ href: at
499
+ }, ft = ({ mark: t, children: n }) => {
500
+ const a = t ? dt[t] : void 0;
501
501
  return a ? /* @__PURE__ */ r.jsxs("div", { className: "flex flex-nowrap items-center", children: [
502
502
  /* @__PURE__ */ r.jsx(a, { className: "h-3.5 w-3.5 shrink-0" }),
503
503
  /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-link mx-1 hover:underline", children: n })
504
504
  ] }) : /* @__PURE__ */ r.jsx("span", { className: "mx-1 text-sky-600 hover:underline dark:text-sky-400", children: n });
505
- }, ce = (t, n) => n ? {
505
+ }, le = (t, n) => n ? {
506
506
  menu: {
507
507
  id: t.id,
508
508
  title: t.title,
@@ -521,131 +521,125 @@ const ct = [
521
521
  title: t.title,
522
522
  href: t.href
523
523
  }
524
- }, ht = ({ item: t, parentMenu: n, isCurrent: a, onMenuSelected: s }) => {
524
+ }, mt = ({ item: t, parentMenu: n, isCurrent: a, onMenuSelected: s }) => {
525
525
  if (t.href === "separator")
526
526
  return /* @__PURE__ */ r.jsx("hr", { className: "aiquants-menu-separator mx-2 my-1 h-px" });
527
- const c = /* @__PURE__ */ r.jsx(mt, { mark: t.mark, children: t.title }), o = {
527
+ const l = /* @__PURE__ */ r.jsx(ft, { mark: t.mark, children: t.title }), o = {
528
528
  className: ie,
529
529
  "aria-current": a ? "page" : void 0,
530
530
  onClick: () => {
531
- s && s(ce(n, t));
531
+ s && s(le(n, t));
532
532
  }
533
533
  };
534
- return t.new ? /* @__PURE__ */ r.jsx("a", { href: t.href, rel: "noopener noreferrer", target: "_blank", ...o, children: c }) : Ce.test(t.href) ? /* @__PURE__ */ r.jsx("a", { href: t.href, ...o, children: c }) : /* @__PURE__ */ r.jsx(Ne, { to: t.href, ...o, children: c });
535
- }, Te = (t) => t ? t.split(/[?#]/)[0].replace(/(?!^\/)\/$/, "") : "", ge = (t, n, a) => {
534
+ return t.new ? /* @__PURE__ */ r.jsx("a", { href: t.href, rel: "noopener noreferrer", target: "_blank", ...o, children: l }) : Se.test(t.href) ? /* @__PURE__ */ r.jsx("a", { href: t.href, ...o, children: l }) : /* @__PURE__ */ r.jsx(ye, { to: t.href, ...o, children: l });
535
+ }, Te = (t) => t ? t.split(/[?#]/)[0].replace(/(?!^\/)\/$/, "") : "", ve = (t, n, a) => {
536
536
  const s = Te(t);
537
537
  return s === "" ? -1 : s === a || n === "prefix" && s !== "/" && a.startsWith(`${s}/`) ? s.length : -1;
538
- }, pt = (t, n) => {
538
+ }, ht = (t, n) => {
539
539
  const a = Te(n);
540
- let s = null, c = -1;
540
+ let s = null, l = -1;
541
541
  for (const o of t) {
542
- const u = ge(o.href, o.match, a);
543
- if (u > c && (s = { menuId: o.id, subid: null }, c = u), o.submenu)
542
+ const u = ve(o.href, o.match, a);
543
+ if (u > l && (s = { menuId: o.id, subid: null }, l = u), o.submenu)
544
544
  for (const d of o.submenu) {
545
- const m = ge(d.href, d.match, a);
546
- m > c && (s = { menuId: o.id, subid: d.subid }, c = m);
545
+ const m = ve(d.href, d.match, a);
546
+ m > l && (s = { menuId: o.id, subid: d.subid }, l = m);
547
547
  }
548
548
  }
549
549
  return s;
550
- }, ne = (t, n, a) => t !== null && t.menuId === n && t.subid === a, bt = (t) => {
551
- const { menuList: n, onMenuSelected: a, pinnedSubmenuIds: s = [], onToggleSubmenuPin: c } = t;
550
+ }, ne = (t, n, a) => t !== null && t.menuId === n && t.subid === a, pt = (t) => {
551
+ const { menuList: n, onMenuSelected: a, pinnedSubmenuIds: s = [], onToggleSubmenuPin: l } = t;
552
552
  let o = "";
553
553
  try {
554
554
  o = Re().pathname;
555
555
  } catch {
556
556
  typeof window < "u" && (o = window.location.pathname);
557
557
  }
558
- const u = le(() => pt(n, o), [n, o]), d = u === null ? null : u.menuId, [m, v] = J(d), y = q(o), N = q(d !== null);
559
- V(() => {
558
+ const u = ce(() => ht(n, o), [n, o]), d = u === null ? null : u.menuId, [m, v] = J(d), y = q(o), N = q(d !== null);
559
+ W(() => {
560
560
  y.current !== o && (y.current = o, N.current = !1), !N.current && d !== null && (v(d), N.current = !0);
561
561
  }, [o, d]);
562
- const k = _(
563
- (l) => {
564
- s.includes(l) || v((S) => S === l ? null : l);
562
+ const k = j(
563
+ (c) => {
564
+ s.includes(c) || v((S) => S === c ? null : c);
565
565
  },
566
566
  [s]
567
- ), j = q(null);
568
- dt(() => {
569
- const l = j.current;
570
- if (l)
567
+ ), _ = q(null);
568
+ ut(() => {
569
+ const c = _.current;
570
+ if (c)
571
571
  try {
572
- const p = sessionStorage.getItem(ve);
572
+ const p = sessionStorage.getItem(xe);
573
573
  if (p !== null) {
574
574
  const S = Number.parseFloat(p);
575
- Number.isNaN(S) || (l.scrollTop = S);
575
+ Number.isNaN(S) || (c.scrollTop = S);
576
576
  }
577
577
  } catch {
578
578
  }
579
579
  }, []);
580
- const T = _(() => {
581
- const l = j.current;
582
- if (l)
580
+ const C = j(() => {
581
+ const c = _.current;
582
+ if (c)
583
583
  try {
584
- sessionStorage.setItem(ve, String(l.scrollTop));
584
+ sessionStorage.setItem(xe, String(c.scrollTop));
585
585
  } catch {
586
586
  }
587
- }, []), R = le(() => /* @__PURE__ */ r.jsx(r.Fragment, { children: n.map((l) => /* @__PURE__ */ r.jsx("div", { children: l.href ? /* @__PURE__ */ r.jsx(
588
- "div",
587
+ }, []), A = ce(() => /* @__PURE__ */ r.jsx(r.Fragment, { children: n.map((c) => /* @__PURE__ */ r.jsx("div", { children: c.href ? /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-list-item relative mb-0.5 ml-1 flex items-center rounded-l-xl px-2.5 text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] sm:text-sm", children: Se.test(c.href) ? /* @__PURE__ */ r.jsx(
588
+ "a",
589
589
  {
590
- className: `aiquants-menu-list-item relative mb-0.5 ml-1 flex items-center rounded-l-xl px-2.5 ${xe} text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] sm:text-sm`,
591
- children: Ce.test(l.href) ? /* @__PURE__ */ r.jsx(
592
- "a",
593
- {
594
- href: l.href,
595
- className: ie,
596
- "aria-current": ne(u, l.id, null) ? "page" : void 0,
597
- onClick: () => {
598
- a && a(ce(l));
599
- },
600
- children: /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-link hover:underline", children: l.title })
601
- }
602
- ) : /* @__PURE__ */ r.jsx(
603
- Ne,
604
- {
605
- to: l.href,
606
- className: ie,
607
- "aria-current": ne(u, l.id, null) ? "page" : void 0,
608
- onClick: () => {
609
- a && a(ce(l));
610
- },
611
- children: /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-link hover:underline", children: l.title })
612
- }
613
- )
590
+ href: c.href,
591
+ className: ie,
592
+ "aria-current": ne(u, c.id, null) ? "page" : void 0,
593
+ onClick: () => {
594
+ a && a(le(c));
595
+ },
596
+ children: /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-link hover:underline", children: c.title })
614
597
  }
615
- ) : /* @__PURE__ */ r.jsxs("details", { className: "aiquants-menu-accordion-details", open: l.id === m || s.includes(l.id), children: [
598
+ ) : /* @__PURE__ */ r.jsx(
599
+ ye,
600
+ {
601
+ to: c.href,
602
+ className: ie,
603
+ "aria-current": ne(u, c.id, null) ? "page" : void 0,
604
+ onClick: () => {
605
+ a && a(le(c));
606
+ },
607
+ children: /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-link hover:underline", children: c.title })
608
+ }
609
+ ) }) : /* @__PURE__ */ r.jsxs("details", { className: "aiquants-menu-accordion-details", open: c.id === m || s.includes(c.id), children: [
616
610
  /* @__PURE__ */ r.jsxs(
617
611
  "summary",
618
612
  {
619
- className: `aiquants-menu-list-item aiquants-menu-accordion-summary relative mb-0.5 ml-1 list-none rounded-l-xl px-2.5 ${xe} pointer-coarse:min-h-11 text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] focus-visible:outline-2 focus-visible:outline-current focus-visible:-outline-offset-2 sm:text-sm`,
613
+ className: "aiquants-menu-list-item aiquants-menu-accordion-summary relative mb-0.5 ml-1 min-h-11 list-none rounded-l-xl px-2.5 text-xs before:mr-2 before:inline-block before:h-2 before:w-2 before:shrink-0 before:rounded-full before:content-[''] focus-visible:outline-2 focus-visible:outline-current focus-visible:-outline-offset-2 sm:text-sm",
620
614
  onClick: (p) => {
621
- p.preventDefault(), k(l.id);
615
+ p.preventDefault(), k(c.id);
622
616
  },
623
617
  onKeyDown: (p) => {
624
- (p.key === "Enter" || p.key === " ") && (p.preventDefault(), k(l.id));
618
+ (p.key === "Enter" || p.key === " ") && (p.preventDefault(), k(c.id));
625
619
  },
626
620
  children: [
627
- /* @__PURE__ */ r.jsx("span", { children: l.title }),
621
+ /* @__PURE__ */ r.jsx("span", { children: c.title }),
628
622
  /* @__PURE__ */ r.jsx(
629
623
  "button",
630
624
  {
631
625
  type: "button",
632
626
  "data-aqmb-submenu-pin-button": !0,
633
627
  onClick: (p) => {
634
- p.stopPropagation(), p.preventDefault(), c && c(l.id);
628
+ p.stopPropagation(), p.preventDefault(), l && l(c.id);
635
629
  },
636
- className: `aiquants-submenu-pin-button ${ut} ${s.includes(l.id) ? "pinned" : ""}`,
637
- title: s.includes(l.id) ? "ピン留め解除" : "ピン留め",
638
- children: s.includes(l.id) ? /* @__PURE__ */ r.jsx(Ee, { size: 13 }) : /* @__PURE__ */ r.jsx(Se, { size: 13 })
630
+ className: `aiquants-submenu-pin-button ${ct} ${s.includes(c.id) ? "pinned" : ""}`,
631
+ title: s.includes(c.id) ? "ピン留め解除" : "ピン留め",
632
+ children: s.includes(c.id) ? /* @__PURE__ */ r.jsx(_e, { size: 13 }) : /* @__PURE__ */ r.jsx(Ee, { size: 13 })
639
633
  }
640
634
  )
641
635
  ]
642
636
  }
643
637
  ),
644
- /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-submenu pointer-events-auto my-0.5 mr-1 ml-3.5 rounded-lg px-2 py-1 shadow-sm", children: l.submenu.map((p) => /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-accordion-container block w-full whitespace-nowrap pointer-coarse:py-0 py-0.5 text-xs", children: /* @__PURE__ */ r.jsx(ht, { item: p, parentMenu: l, isCurrent: ne(u, l.id, p.subid), onMenuSelected: a }) }, p.subid)) })
645
- ] }) }, l.id)) }), [n, a, m, k, s, u]);
646
- return /* @__PURE__ */ r.jsx("div", { ref: j, onScroll: T, "data-aqmb-menu-list": !0, className: "hidden-scrollbar h-0 grow overflow-y-scroll", children: R });
647
- }, re = "h-7 pointer-coarse:h-11", we = "pointer-coarse:min-w-11", xt = (t) => {
648
- const { menuList: n, menuHeader: a, open: s, onMenuSelected: c, onClickSignout: o, theme: u, toggleTheme: d, isPinned: m, onTogglePin: v, pinnedSubmenuIds: y, onToggleSubmenuPin: N, ref: k } = t;
638
+ /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-submenu pointer-events-auto my-0.5 mr-1 ml-3.5 rounded-lg px-2 py-1 shadow-sm", children: c.submenu.map((p) => /* @__PURE__ */ r.jsx("div", { className: "aiquants-menu-accordion-container block w-full whitespace-nowrap text-xs", children: /* @__PURE__ */ r.jsx(mt, { item: p, parentMenu: c, isCurrent: ne(u, c.id, p.subid), onMenuSelected: a }) }, p.subid)) })
639
+ ] }) }, c.id)) }), [n, a, m, k, s, u]);
640
+ return /* @__PURE__ */ r.jsx("div", { ref: _, onScroll: C, "data-aqmb-menu-list": !0, className: "hidden-scrollbar h-0 grow overflow-y-scroll", children: A });
641
+ }, re = "h-11", ge = "min-w-11", bt = (t) => {
642
+ const { menuList: n, menuHeader: a, open: s, onMenuSelected: l, onClickSignout: o, theme: u, toggleTheme: d, isPinned: m, onTogglePin: v, pinnedSubmenuIds: y, onToggleSubmenuPin: N, ref: k } = t;
649
643
  return /* @__PURE__ */ r.jsxs(
650
644
  "div",
651
645
  {
@@ -655,7 +649,7 @@ const ct = [
655
649
  className: `aiquants-menu-content fixed top-0 right-0 z-2147483642 flex min-h-dvh w-[240px] select-none flex-col motion-safe:transition-transform motion-safe:duration-500 ${s ? "aiquants-menu-translate-x-0" : "aiquants-menu-translate-x-250"}`,
656
650
  children: [
657
651
  /* @__PURE__ */ r.jsx("div", { className: "flex shrink-0 flex-col justify-center border-white/15 border-b px-2.5 py-2 dark:border-slate-700/60", children: a }),
658
- /* @__PURE__ */ r.jsx("div", { className: "flex grow flex-col overflow-y-auto", children: /* @__PURE__ */ r.jsx(bt, { menuList: n, onMenuSelected: c, pinnedSubmenuIds: y, onToggleSubmenuPin: N }) }),
652
+ /* @__PURE__ */ r.jsx("div", { className: "flex grow flex-col overflow-y-auto", children: /* @__PURE__ */ r.jsx(pt, { menuList: n, onMenuSelected: l, pinnedSubmenuIds: y, onToggleSubmenuPin: N }) }),
659
653
  /* @__PURE__ */ r.jsx("div", { className: "border-white/15 border-t px-2.5 py-1.5 dark:border-slate-700/60", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-1.5", children: [
660
654
  /* @__PURE__ */ r.jsx(
661
655
  "button",
@@ -663,10 +657,10 @@ const ct = [
663
657
  type: "button",
664
658
  onClick: v,
665
659
  "data-aqmb-pin-button": !0,
666
- className: `flex ${re} ${we} items-center justify-center rounded-md px-2 text-[11px] text-white shadow-2xs transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300/60 ${m ? "bg-amber-500 hover:bg-amber-600 dark:bg-amber-600 dark:hover:bg-amber-500" : "border border-white/20 bg-white/10 hover:bg-white/20 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600"}`,
660
+ className: `flex ${re} ${ge} items-center justify-center rounded-md px-2 text-[11px] text-white shadow-2xs transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-300/60 ${m ? "bg-amber-500 hover:bg-amber-600 dark:bg-amber-600 dark:hover:bg-amber-500" : "border border-white/20 bg-white/10 hover:bg-white/20 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600"}`,
667
661
  title: m ? "ピン留め解除" : "ピン留め",
668
662
  "aria-label": m ? "ピン留め解除" : "ピン留め",
669
- children: m ? /* @__PURE__ */ r.jsx(Ee, { size: 12 }) : /* @__PURE__ */ r.jsx(Se, { size: 12 })
663
+ children: m ? /* @__PURE__ */ r.jsx(_e, { size: 12 }) : /* @__PURE__ */ r.jsx(Ee, { size: 12 })
670
664
  }
671
665
  ),
672
666
  /* @__PURE__ */ r.jsx(
@@ -675,7 +669,7 @@ const ct = [
675
669
  type: "button",
676
670
  onClick: d,
677
671
  "data-aqmb-theme-button": !0,
678
- className: `group relative flex ${re} ${we} items-center justify-center rounded-md border border-white/20 bg-white/10 px-2 text-[11px] text-white shadow-2xs backdrop-blur-xs transition-all duration-200 hover:bg-white/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600`,
672
+ className: `group relative flex ${re} ${ge} items-center justify-center rounded-md border border-white/20 bg-white/10 px-2 text-[11px] text-white shadow-2xs backdrop-blur-xs transition-all duration-200 hover:bg-white/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 dark:border-slate-600/60 dark:bg-slate-700/60 dark:hover:bg-slate-600`,
679
673
  title: u === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
680
674
  "aria-label": u === "dark" ? "ライトモードに切り替え" : "ダークモードに切り替え",
681
675
  children: /* @__PURE__ */ r.jsx("span", { className: "text-xs transition-transform duration-200 group-hover:scale-110", children: u === "dark" ? "🌞" : "🌙" })
@@ -689,7 +683,7 @@ const ct = [
689
683
  className: `aiquants-signout-button flex ${re} flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md bg-red-500/90 px-2.5 font-medium text-[11px] text-white shadow-2xs transition-colors duration-200 hover:bg-red-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-300/60 dark:bg-red-600/90 dark:hover:bg-red-500`,
690
684
  onClick: o,
691
685
  children: [
692
- /* @__PURE__ */ r.jsx(Je, { size: 11, className: "shrink-0" }),
686
+ /* @__PURE__ */ r.jsx(Be, { size: 11, className: "shrink-0" }),
693
687
  /* @__PURE__ */ r.jsx("span", { children: "サインアウト" })
694
688
  ]
695
689
  }
@@ -698,9 +692,9 @@ const ct = [
698
692
  ]
699
693
  }
700
694
  );
701
- }, vt = (t) => {
695
+ }, xt = (t) => {
702
696
  t.preventDefault();
703
- }, gt = (t) => {
697
+ }, vt = (t) => {
704
698
  const { isOverlay: n, onOverlayClick: a } = t;
705
699
  return /* @__PURE__ */ r.jsx(
706
700
  "div",
@@ -709,11 +703,11 @@ const ct = [
709
703
  "data-aqmb-menu-overlay": !0,
710
704
  inert: !n,
711
705
  className: `fixed inset-0 z-2147483640 bg-black/50 motion-safe:transition-opacity motion-safe:duration-500 ${n ? "opacity-100" : "pointer-events-none opacity-0"}`,
712
- onMouseDown: vt,
706
+ onMouseDown: xt,
713
707
  onClick: a
714
708
  }
715
709
  );
716
- }, wt = ({ isMenuOpen: t, onMenuOpen: n, onMenuClose: a, ref: s }) => /* @__PURE__ */ r.jsxs("button", { ref: s, type: "button", "data-aqmb-menu-switch": "true", "aria-label": t ? "Close menu" : "Open menu", "aria-expanded": t, className: "aiquants-menu-switch", onClick: t ? a : n, children: [
710
+ }, gt = ({ isMenuOpen: t, onMenuOpen: n, onMenuClose: a, ref: s }) => /* @__PURE__ */ r.jsxs("button", { ref: s, type: "button", "data-aqmb-menu-switch": "true", "aria-label": t ? "Close menu" : "Open menu", "aria-expanded": t, className: "aiquants-menu-switch", onClick: t ? a : n, children: [
717
711
  /* @__PURE__ */ r.jsxs("span", { className: "aiquants-menu-switch-bars", children: [
718
712
  /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-switch-bar" }),
719
713
  /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-switch-bar" }),
@@ -721,12 +715,12 @@ const ct = [
721
715
  /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-switch-bar" })
722
716
  ] }),
723
717
  /* @__PURE__ */ r.jsx("span", { className: "aiquants-menu-switch-caption", "aria-hidden": "true", children: t ? "close" : "menu" })
724
- ] }), ae = typeof window < "u" ? ye : V, jt = (t) => {
718
+ ] }), ae = typeof window < "u" ? ke : W, jt = (t) => {
725
719
  const {
726
720
  menuList: n,
727
721
  menuHeader: a,
728
722
  onClickSignout: s,
729
- isMenuhide: c,
723
+ isMenuhide: l,
730
724
  isMenuHide: o,
731
725
  theme: u,
732
726
  toggleTheme: d,
@@ -735,22 +729,22 @@ const ct = [
735
729
  pinnedWidth: y = 240,
736
730
  onPinChange: N,
737
731
  pinnedSubmenuIds: k,
738
- initialPinnedSubmenuIds: j,
739
- onSubmenuPinChange: T,
740
- closeOnEscape: R = "auto"
741
- } = t, l = o ?? c ?? !1, [p, S] = J(() => {
732
+ initialPinnedSubmenuIds: _,
733
+ onSubmenuPinChange: C,
734
+ closeOnEscape: A = "auto"
735
+ } = t, c = o ?? l ?? !1, [p, S] = J(() => {
742
736
  try {
743
737
  return localStorage.getItem("aiquants-menu-pinned") === "true";
744
738
  } catch {
745
739
  return !1;
746
740
  }
747
- }), w = v !== void 0 ? v : p, [C, O] = J(w);
748
- V(() => {
749
- w && O(!0);
741
+ }), w = v !== void 0 ? v : p, [T, I] = J(w);
742
+ W(() => {
743
+ w && I(!0);
750
744
  }, [w]);
751
745
  const [$, Q] = J(() => {
752
- if (j)
753
- return j;
746
+ if (_)
747
+ return _;
754
748
  try {
755
749
  const h = localStorage.getItem("aiquants-submenu-pinned");
756
750
  if (h) {
@@ -761,7 +755,7 @@ const ct = [
761
755
  } catch {
762
756
  }
763
757
  return [];
764
- }), X = k !== void 0 ? k : $, D = _(
758
+ }), X = k !== void 0 ? k : $, D = j(
765
759
  (h) => {
766
760
  const e = k !== void 0 ? k : $, i = e.includes(h) ? e.filter((f) => f !== h) : [...e, h];
767
761
  if (k === void 0) {
@@ -771,24 +765,24 @@ const ct = [
771
765
  } catch {
772
766
  }
773
767
  }
774
- T && T(i);
768
+ C && C(i);
775
769
  },
776
- [k, $, T]
770
+ [k, $, C]
777
771
  ), z = q(N);
778
772
  ae(() => {
779
773
  z.current = N;
780
774
  }, [N]), ae(() => {
781
775
  const h = w ? y : 0, e = `${h}px`;
782
- document.documentElement.style.setProperty("--aiquants-menu-pinned-width", e), pe(w, h, C || w);
783
- }, [w, y, C]), ae(() => () => {
776
+ document.documentElement.style.setProperty("--aiquants-menu-pinned-width", e), pe(w, h, T || w);
777
+ }, [w, y, T]), ae(() => () => {
784
778
  document.documentElement.style.setProperty("--aiquants-menu-pinned-width", "0px"), pe(!1, 0);
785
779
  }, []);
786
- const F = q(null), I = q(null), A = _(() => {
787
- I.current?.contains(document.activeElement) && F.current?.focus();
788
- }, []), K = _(() => {
789
- O(!0);
790
- }, []), P = _(() => {
791
- if (A(), O(!1), v === void 0) {
780
+ const F = q(null), O = q(null), M = j(() => {
781
+ O.current?.contains(document.activeElement) && F.current?.focus();
782
+ }, []), K = j(() => {
783
+ I(!0);
784
+ }, []), P = j(() => {
785
+ if (M(), I(!1), v === void 0) {
792
786
  S(!1);
793
787
  try {
794
788
  localStorage.removeItem("aiquants-menu-pinned");
@@ -796,7 +790,7 @@ const ct = [
796
790
  }
797
791
  }
798
792
  z.current?.(!1, 0);
799
- }, [v, A]), U = _(() => {
793
+ }, [v, M]), U = j(() => {
800
794
  const h = !w, e = h ? y : 0;
801
795
  if (v === void 0) {
802
796
  S(h);
@@ -806,30 +800,30 @@ const ct = [
806
800
  }
807
801
  }
808
802
  z.current?.(h, e);
809
- }, [w, v, y]), G = _(
803
+ }, [w, v, y]), G = j(
810
804
  (h) => {
811
- m && m(h), w || (A(), O(!1));
805
+ m && m(h), w || (M(), I(!1));
812
806
  },
813
- [m, w, A]
814
- ), M = _(
807
+ [m, w, M]
808
+ ), R = j(
815
809
  (h) => {
816
810
  h.key === "Escape" && P();
817
811
  },
818
812
  [P]
819
- ), H = R === !0 || R === "auto" && !w;
820
- return V(() => (C && H ? window.addEventListener("keydown", M) : window.removeEventListener("keydown", M), () => {
821
- window.removeEventListener("keydown", M);
822
- }), [C, H, M]), l ? null : /* @__PURE__ */ r.jsxs("div", { className: `aiquants-menu-bar ${u}`, children: [
823
- /* @__PURE__ */ r.jsx(wt, { ref: F, isMenuOpen: C, onMenuOpen: K, onMenuClose: P }),
813
+ ), H = A === !0 || A === "auto" && !w;
814
+ return W(() => (T && H ? window.addEventListener("keydown", R) : window.removeEventListener("keydown", R), () => {
815
+ window.removeEventListener("keydown", R);
816
+ }), [T, H, R]), c ? null : /* @__PURE__ */ r.jsxs("div", { className: `aiquants-menu-bar ${u}`, children: [
817
+ /* @__PURE__ */ r.jsx(gt, { ref: F, isMenuOpen: T, onMenuOpen: K, onMenuClose: P }),
824
818
  /* @__PURE__ */ r.jsx(
825
- xt,
819
+ bt,
826
820
  {
827
- ref: I,
821
+ ref: O,
828
822
  menuList: n,
829
823
  menuHeader: a,
830
824
  onClickSignout: s,
831
825
  onMenuSelected: G,
832
- open: C,
826
+ open: T,
833
827
  theme: u,
834
828
  toggleTheme: d,
835
829
  isPinned: w,
@@ -838,16 +832,16 @@ const ct = [
838
832
  onToggleSubmenuPin: D
839
833
  }
840
834
  ),
841
- /* @__PURE__ */ r.jsx(gt, { isOverlay: C && !w, onOverlayClick: P })
835
+ /* @__PURE__ */ r.jsx(vt, { isOverlay: T && !w, onOverlayClick: P })
842
836
  ] });
843
837
  };
844
838
  export {
845
- Ge as DefaultLink,
839
+ Ue as DefaultLink,
846
840
  oe as MENU_PIN_CHANGE_EVENT,
847
841
  jt as MenuBar,
848
- Nt as SessionInfo,
842
+ yt as SessionInfo,
849
843
  pe as dispatchMenuPinChange,
850
844
  je as getInitialPinState,
851
- Be as subscribeMenuPinChange,
852
- _t as useMenuPinState
845
+ Ge as subscribeMenuPinChange,
846
+ Nt as useMenuPinState
853
847
  };