zudoku 0.18.0 → 0.18.1

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.
@@ -15,15 +15,15 @@ var J = (e, t, r, s) => ({
15
15
  });
16
16
  import { a as Be, A as bt, H as he, M as jt, u as wt } from "./AnchorLink-CDlhr8gL.js";
17
17
  import { d as St, R as Nt, N as re, u as Et, L as fe } from "./index-Yn8c3UWE.js";
18
- import { u as Pt } from "./state-tsXBLONe.js";
19
- import { E as ze, S as D, a as Ct, R as kt } from "./SlotletProvider-DyomlzGx.js";
18
+ import { u as Ct } from "./state-tsXBLONe.js";
19
+ import { E as ze, S as D, a as Pt, R as kt } from "./SlotletProvider-DyomlzGx.js";
20
20
  import { j as a } from "./jsx-runtime-B6kdoens.js";
21
21
  import { Button as At } from "./ui/Button.js";
22
22
  import { Callout as Dt } from "./ui/Callout.js";
23
- import { S as He, l as Ue, Q as Ot, n as w, m as Pe, o as Ce, p as O, q as Mt, r as Rt, t as It, v as Tt, w as ke, x as Ae, y as _t, h as De, z as Oe, A as Ft, d as Qt, B as $e, C as qt, j as q, u as Q, D as Ke, E as Lt, g as Bt, Z as zt } from "./utils-DcpDOncX.js";
23
+ import { S as He, l as Ue, Q as Ot, n as w, m as Ce, o as Pe, p as O, q as Mt, r as Rt, t as It, v as Tt, w as ke, x as Ae, y as _t, h as De, z as Oe, A as Ft, d as Qt, B as $e, C as qt, j as Q, u as F, D as Ke, E as Lt, g as Bt, Z as zt } from "./utils-DcpDOncX.js";
24
24
  import { M as Ht, u as ae } from "./hook-hEqe7fPB.js";
25
25
  import * as G from "react";
26
- import Ve, { useState as F, StrictMode as Ze, useEffect as L, useRef as me, useCallback as Ut, Suspense as ge, memo as Ye, forwardRef as $t, createContext as We, Component as Kt, createElement as Me, useMemo as se, useContext as Vt, Fragment as Zt } from "react";
26
+ import Ve, { StrictMode as Ze, useState as q, useEffect as L, useRef as me, useCallback as Ut, Suspense as ge, memo as Ye, forwardRef as $t, createContext as We, Component as Kt, createElement as Me, useMemo as se, useContext as Vt, Fragment as Zt } from "react";
27
27
  import { a as pe, c as Yt } from "./_commonjsHelpers-BkfeUUK-.js";
28
28
  import { B as Wt } from "./router-lfyopgBI.js";
29
29
  import { I as Xt, y as Jt, u as ve, j as xe, O as Xe } from "./index-Czzd9rjU.js";
@@ -44,7 +44,7 @@ import { S as Nr } from "./Spinner-3cQDBVGr.js";
44
44
  function Er({ error: e }) {
45
45
  return /* @__PURE__ */ a.jsx(ze, { error: e });
46
46
  }
47
- var k, Qe, Pr = (Qe = class extends He {
47
+ var k, Qe, Cr = (Qe = class extends He {
48
48
  constructor(t = {}) {
49
49
  super();
50
50
  N(this, k);
@@ -88,12 +88,12 @@ var k, Qe, Pr = (Qe = class extends He {
88
88
  find(t) {
89
89
  const r = { exact: !0, ...t };
90
90
  return this.getAll().find(
91
- (s) => Pe(r, s)
91
+ (s) => Ce(r, s)
92
92
  );
93
93
  }
94
94
  findAll(t = {}) {
95
95
  const r = this.getAll();
96
- return Object.keys(t).length > 0 ? r.filter((s) => Pe(t, s)) : r;
96
+ return Object.keys(t).length > 0 ? r.filter((s) => Ce(t, s)) : r;
97
97
  }
98
98
  notify(t) {
99
99
  w.batch(() => {
@@ -116,7 +116,7 @@ var k, Qe, Pr = (Qe = class extends He {
116
116
  });
117
117
  });
118
118
  }
119
- }, k = new WeakMap(), Qe), j, Z, qe, Cr = (qe = class extends He {
119
+ }, k = new WeakMap(), Qe), j, Z, qe, Pr = (qe = class extends He {
120
120
  constructor(t = {}) {
121
121
  super();
122
122
  N(this, j);
@@ -168,11 +168,11 @@ var k, Qe, Pr = (Qe = class extends He {
168
168
  find(t) {
169
169
  const r = { exact: !0, ...t };
170
170
  return this.getAll().find(
171
- (s) => Ce(r, s)
171
+ (s) => Pe(r, s)
172
172
  );
173
173
  }
174
174
  findAll(t = {}) {
175
- return this.getAll().filter((r) => Ce(t, r));
175
+ return this.getAll().filter((r) => Pe(t, r));
176
176
  }
177
177
  notify(t) {
178
178
  w.batch(() => {
@@ -209,14 +209,14 @@ function Re(e) {
209
209
  m = !0;
210
210
  }), t.signal)
211
211
  });
212
- }, W = Mt(t.options, t.fetchOptions), $ = async (b, P, K) => {
212
+ }, W = Mt(t.options, t.fetchOptions), $ = async (b, C, K) => {
213
213
  if (m)
214
214
  return Promise.reject();
215
- if (P == null && b.pages.length)
215
+ if (C == null && b.pages.length)
216
216
  return Promise.resolve(b);
217
217
  const X = {
218
218
  queryKey: t.queryKey,
219
- pageParam: P,
219
+ pageParam: C,
220
220
  direction: K ? "backward" : "forward",
221
221
  meta: t.options.meta
222
222
  };
@@ -226,22 +226,22 @@ function Re(e) {
226
226
  ), { maxPages: we } = t.options, Se = K ? Rt : It;
227
227
  return {
228
228
  pages: Se(b.pages, vt, we),
229
- pageParams: Se(b.pageParams, P, we)
229
+ pageParams: Se(b.pageParams, C, we)
230
230
  };
231
231
  };
232
232
  if (n && o.length) {
233
- const b = n === "backward", P = b ? kr : Ie, K = {
233
+ const b = n === "backward", C = b ? kr : Ie, K = {
234
234
  pages: o,
235
235
  pageParams: i
236
- }, X = P(s, K);
236
+ }, X = C(s, K);
237
237
  c = await $(K, X, b);
238
238
  } else {
239
239
  const b = e ?? o.length;
240
240
  do {
241
- const P = u === 0 ? i[0] ?? s.initialPageParam : Ie(s, c);
242
- if (u > 0 && P == null)
241
+ const C = u === 0 ? i[0] ?? s.initialPageParam : Ie(s, c);
242
+ if (u > 0 && C == null)
243
243
  break;
244
- c = await $(c, P), u++;
244
+ c = await $(c, C), u++;
245
245
  } while (u < b);
246
246
  }
247
247
  return c;
@@ -285,7 +285,7 @@ var x, I, T, B, z, _, H, U, Le, Ar = (Le = class {
285
285
  N(this, _);
286
286
  N(this, H);
287
287
  N(this, U);
288
- y(this, x, e.queryCache || new Pr()), y(this, I, e.mutationCache || new Cr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, z, /* @__PURE__ */ new Map()), y(this, _, 0);
288
+ y(this, x, e.queryCache || new Cr()), y(this, I, e.mutationCache || new Pr()), y(this, T, e.defaultOptions || {}), y(this, B, /* @__PURE__ */ new Map()), y(this, z, /* @__PURE__ */ new Map()), y(this, _, 0);
289
289
  }
290
290
  mount() {
291
291
  J(this, _)._++, l(this, _) === 1 && (y(this, H, Tt.subscribe(async (e) => {
@@ -504,9 +504,9 @@ function Te(e, t, r) {
504
504
  const E = f.data === void 0 ? f.data : o(f.data);
505
505
  if (m) {
506
506
  if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
507
- const { fetchStatus: b, ...P } = f;
507
+ const { fetchStatus: b, ...C } = f;
508
508
  m.setState({
509
- ...P,
509
+ ...C,
510
510
  data: E
511
511
  });
512
512
  }
@@ -583,7 +583,7 @@ function _r(e) {
583
583
  }
584
584
  }), t.default = e, Object.freeze(t);
585
585
  }
586
- var C = /* @__PURE__ */ _r(Tr);
586
+ var P = /* @__PURE__ */ _r(Tr);
587
587
  function Fr({
588
588
  basename: e,
589
589
  children: t,
@@ -598,7 +598,7 @@ function Fr({
598
598
  state: r.state != null ? r.state : null,
599
599
  key: r.key || "default"
600
600
  }, i = at();
601
- return /* @__PURE__ */ C.createElement(M.Router, {
601
+ return /* @__PURE__ */ P.createElement(M.Router, {
602
602
  basename: e,
603
603
  children: t,
604
604
  location: o,
@@ -633,17 +633,17 @@ function Qr({
633
633
  let {
634
634
  state: c
635
635
  } = n.router;
636
- return /* @__PURE__ */ C.createElement(C.Fragment, null, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterContext.Provider, {
636
+ return /* @__PURE__ */ P.createElement(P.Fragment, null, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterContext.Provider, {
637
637
  value: n
638
- }, /* @__PURE__ */ C.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
638
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_DataRouterStateContext.Provider, {
639
639
  value: c
640
- }, /* @__PURE__ */ C.createElement(M.UNSAFE_FetchersContext.Provider, {
640
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_FetchersContext.Provider, {
641
641
  value: o
642
- }, /* @__PURE__ */ C.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
642
+ }, /* @__PURE__ */ P.createElement(M.UNSAFE_ViewTransitionContext.Provider, {
643
643
  value: {
644
644
  isTransitioning: !1
645
645
  }
646
- }, /* @__PURE__ */ C.createElement(M.Router, {
646
+ }, /* @__PURE__ */ P.createElement(M.Router, {
647
647
  basename: n.basename,
648
648
  location: c.location,
649
649
  navigationType: c.historyAction,
@@ -652,11 +652,11 @@ function Qr({
652
652
  future: {
653
653
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
654
654
  }
655
- }, /* @__PURE__ */ C.createElement(qr, {
655
+ }, /* @__PURE__ */ P.createElement(qr, {
656
656
  routes: t.routes,
657
657
  future: t.future,
658
658
  state: c
659
- })))))), i ? /* @__PURE__ */ C.createElement("script", {
659
+ })))))), i ? /* @__PURE__ */ P.createElement("script", {
660
660
  suppressHydrationWarning: !0,
661
661
  nonce: s,
662
662
  dangerouslySetInnerHTML: {
@@ -833,27 +833,22 @@ Y.StaticRouter = Fr;
833
833
  var Vr = Y.StaticRouterProvider = Qr;
834
834
  Y.createStaticHandler = Br;
835
835
  Y.createStaticRouter = zr;
836
- const Zr = ({
836
+ const Zr = new Ar({
837
+ defaultOptions: {
838
+ queries: {
839
+ staleTime: 1e3 * 60 * 5
840
+ }
841
+ }
842
+ }), Yr = ({
837
843
  router: e,
838
844
  hydrate: t = !1
839
- }) => {
840
- const [r] = F(
841
- () => new Ar({
842
- defaultOptions: {
843
- queries: {
844
- staleTime: 3e5
845
- }
846
- }
847
- })
848
- );
849
- return /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: r, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
850
- Nt,
851
- {
852
- router: e,
853
- future: { v7_startTransition: !0 }
854
- }
855
- ) }) }) }) }) });
856
- }, Yr = ({
845
+ }) => /* @__PURE__ */ a.jsx(Ze, { children: /* @__PURE__ */ a.jsx($e, { client: Zr, children: /* @__PURE__ */ a.jsx(Or, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(Be, { children: /* @__PURE__ */ a.jsx(le.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(
846
+ Nt,
847
+ {
848
+ router: e,
849
+ future: { v7_startTransition: !0 }
850
+ }
851
+ ) }) }) }) }) }), Wr = ({
857
852
  router: e,
858
853
  context: t,
859
854
  queryClient: r,
@@ -896,13 +891,13 @@ var ue = { exports: {} };
896
891
  r.defaultOptions = n, r.useSpinDelay = i;
897
892
  });
898
893
  })(ue, ue.exports);
899
- var Wr = ue.exports;
900
- const Xr = ({
894
+ var Xr = ue.exports;
895
+ const Jr = ({
901
896
  category: e,
902
897
  level: t
903
898
  }) => {
904
899
  var h, g;
905
- const r = qt(e), [s, n] = F(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = F(c), p = Jt(((h = e.link) == null ? void 0 : h.id) ?? "");
900
+ const r = qt(e), [s, n] = q(!1), o = e.collapsible ?? !0, i = e.collapsed ?? !0, c = !!(!o || !i || r), [u, d] = q(c), p = Jt(((h = e.link) == null ? void 0 : h.id) ?? "");
906
901
  L(() => {
907
902
  r && d(!0);
908
903
  }, [r]);
@@ -959,7 +954,7 @@ const Xr = ({
959
954
  ((g = e.link) == null ? void 0 : g.type) === "doc" ? /* @__PURE__ */ a.jsx(
960
955
  re,
961
956
  {
962
- to: q(e.link.id),
957
+ to: Q(e.link.id),
963
958
  className: "flex-1",
964
959
  onClick: () => {
965
960
  p && !u && d(!0);
@@ -1034,13 +1029,13 @@ const Xr = ({
1034
1029
  const { activeAnchor: r } = be(), [s] = Et();
1035
1030
  switch (e.type) {
1036
1031
  case "category":
1037
- return /* @__PURE__ */ a.jsx(Xr, { category: e, level: t });
1032
+ return /* @__PURE__ */ a.jsx(Jr, { category: e, level: t });
1038
1033
  case "doc":
1039
1034
  return /* @__PURE__ */ a.jsxs(
1040
1035
  re,
1041
1036
  {
1042
1037
  className: ({ isActive: i }) => V({ isActive: i, isTopLevel: t === 0 }),
1043
- to: q(e.id),
1038
+ to: Q(e.id),
1044
1039
  children: [
1045
1040
  e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
1046
1041
  e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
@@ -1092,17 +1087,17 @@ const Xr = ({
1092
1087
  }
1093
1088
  );
1094
1089
  }
1095
- }, Jr = (e, t = { block: "center" }) => {
1090
+ }, Gr = (e, t = { block: "center" }) => {
1096
1091
  if (!e) return;
1097
1092
  const r = e.getBoundingClientRect();
1098
1093
  r.top >= 0 && r.left >= 0 && r.bottom <= (window.innerHeight || document.documentElement.clientHeight) && r.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
1099
- }, Gr = () => {
1094
+ }, ea = () => {
1100
1095
  const e = ve(), { setActiveAnchor: t } = be();
1101
1096
  L(() => {
1102
1097
  if (!e.hash) return;
1103
1098
  const r = decodeURIComponent(e.hash.split("/")[0].slice(1)), s = () => {
1104
1099
  const n = document.getElementById(r), o = document.querySelector(`[${it}="${r}"]`);
1105
- return n ? (n.scrollIntoView(), Jr(o), requestIdleCallback(() => t(r)), !0) : !1;
1100
+ return n ? (n.scrollIntoView(), Gr(o), requestIdleCallback(() => t(r)), !0) : !1;
1106
1101
  };
1107
1102
  if (!s()) {
1108
1103
  const n = new MutationObserver((o, i) => {
@@ -1111,13 +1106,13 @@ const Xr = ({
1111
1106
  return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1112
1107
  }
1113
1108
  }, [e.hash, t]);
1114
- }, ea = () => {
1109
+ }, ta = () => {
1115
1110
  const e = ve(), t = me(e.pathname);
1116
1111
  L(() => {
1117
1112
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
1118
1113
  }, [e.pathname]);
1119
1114
  };
1120
- function ta({
1115
+ function ra({
1121
1116
  className: e,
1122
1117
  ...t
1123
1118
  }) {
@@ -1129,14 +1124,14 @@ function ta({
1129
1124
  }
1130
1125
  );
1131
1126
  }
1132
- const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", aa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", sa = (e) => "renderSearch" in e && typeof e.renderSearch == "function", na = (e) => "initialize" in e && typeof e.initialize == "function", ia = (e) => "getHead" in e && typeof e.getHead == "function", oa = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", la = (e) => "getIdentities" in e && typeof e.getIdentities == "function", _e = {
1127
+ const aa = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", sa = (e) => "getRoutes" in e && typeof e.getRoutes == "function", na = (e) => "renderSearch" in e && typeof e.renderSearch == "function", ia = (e) => "initialize" in e && typeof e.initialize == "function", oa = (e) => "getHead" in e && typeof e.getHead == "function", la = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", ca = (e) => "getIdentities" in e && typeof e.getIdentities == "function", _e = {
1133
1128
  info: "bg-blue-500",
1134
1129
  note: "bg-gray-500",
1135
1130
  tip: "bg-green-600",
1136
1131
  caution: "bg-orange-500",
1137
1132
  danger: "bg-rose-500"
1138
- }, ca = () => {
1139
- const { page: e } = Q(), [t, r] = F(!0);
1133
+ }, ua = () => {
1134
+ const { page: e } = F(), [t, r] = q(!0);
1140
1135
  if (!(e != null && e.banner) || !t)
1141
1136
  return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1142
1137
  const s = e.banner.color && e.banner.color in _e ? _e[e.banner.color] : e.banner.color ? void 0 : "bg-primary", n = s ? {} : { backgroundColor: e.banner.color };
@@ -1163,7 +1158,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1163
1158
  }
1164
1159
  );
1165
1160
  }, ot = () => {
1166
- const e = Q(), [t, r] = F(!1), s = Ut(() => r(!1), []);
1161
+ const e = F(), [t, r] = q(!1), s = Ut(() => r(!1), []);
1167
1162
  L(() => {
1168
1163
  if (t)
1169
1164
  return;
@@ -1174,7 +1169,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1174
1169
  window.removeEventListener("keydown", o);
1175
1170
  };
1176
1171
  }, [t, r]);
1177
- const n = e.plugins.find(sa);
1172
+ const n = e.plugins.find(na);
1178
1173
  return n ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1179
1174
  /* @__PURE__ */ a.jsxs(
1180
1175
  "button",
@@ -1208,8 +1203,8 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1208
1203
  children: /* @__PURE__ */ a.jsx(r, { size: 18 })
1209
1204
  }
1210
1205
  ) });
1211
- }, ct = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", ua = () => {
1212
- const { topNavigation: e } = Q(), { isAuthenticated: t } = ae();
1206
+ }, ct = (e) => (t) => t.display === "auth" && e || t.display === "anon" && !e || !t.display || t.display === "always", da = () => {
1207
+ const { topNavigation: e } = F(), { isAuthenticated: t } = ae();
1213
1208
  return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.filter(ct(t)).map((r) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ut, { ...r }) }, r.id)) }) }) });
1214
1209
  }, ut = ({
1215
1210
  id: e,
@@ -1217,9 +1212,9 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1217
1212
  default: r
1218
1213
  }) => {
1219
1214
  var d;
1220
- const { sidebars: s } = Q(), n = s[e], o = Ke(), i = !!xe().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Lt(n, (p) => {
1221
- if (p.type === "doc") return q(p.id);
1222
- }) : q(e));
1215
+ const { sidebars: s } = F(), n = s[e], o = Ke(), i = !!xe().location, c = ((d = o.topNavItem) == null ? void 0 : d.id) === e && !i, u = r ?? (n ? Lt(n, (p) => {
1216
+ if (p.type === "doc") return Q(p.id);
1217
+ }) : Q(e));
1223
1218
  if (!u)
1224
1219
  throw new Sr("Page not found.", {
1225
1220
  developerHint: `No links found in top navigation for '${e}'. Check that the sidebar isn't empty or that a default link is set.`
@@ -1239,8 +1234,8 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1239
1234
  }
1240
1235
  )
1241
1236
  );
1242
- }, da = () => {
1243
- const { topNavigation: e } = Q(), { isAuthenticated: t } = ae(), [r, s] = F(!1);
1237
+ }, ha = () => {
1238
+ const { topNavigation: e } = F(), { isAuthenticated: t } = ae(), [r, s] = q(!1);
1244
1239
  return /* @__PURE__ */ a.jsxs(
1245
1240
  Je,
1246
1241
  {
@@ -1274,9 +1269,9 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1274
1269
  /* @__PURE__ */ a.jsx(dt, { item: t }, r)
1275
1270
  )) }) })
1276
1271
  ] }, e.label) : /* @__PURE__ */ a.jsx(fe, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(br, { children: e.label }, e.label) }), ht = Ye(function() {
1277
- const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = Q(), { page: i, plugins: c } = o, u = c.filter((d) => ra(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(dt, { item: d }, d.label));
1272
+ const t = ae(), { isAuthenticated: r, profile: s, isAuthEnabled: n } = ae(), o = F(), { page: i, plugins: c } = o, u = c.filter((d) => aa(d)).flatMap((d) => d.getProfileMenuItems(o)).map((d) => /* @__PURE__ */ a.jsx(dt, { item: d }, d.label));
1278
1273
  return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
1279
- /* @__PURE__ */ a.jsx(ca, {}),
1274
+ /* @__PURE__ */ a.jsx(ua, {}),
1280
1275
  /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1281
1276
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
1282
1277
  /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(fe, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -1284,7 +1279,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1284
1279
  /* @__PURE__ */ a.jsx(
1285
1280
  "img",
1286
1281
  {
1287
- src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : q(
1282
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : Q(
1288
1283
  "/",
1289
1284
  i.logo.src.light
1290
1285
  ),
@@ -1298,7 +1293,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1298
1293
  "img",
1299
1294
  {
1300
1295
  "data-hide-on-theme": "light",
1301
- src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : q(
1296
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : Q(
1302
1297
  "/",
1303
1298
  i.logo.src.dark
1304
1299
  ),
@@ -1313,13 +1308,13 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1313
1308
  ] }) }) }),
1314
1309
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
1315
1310
  /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ot, {}) }),
1316
- /* @__PURE__ */ a.jsx(da, {}),
1311
+ /* @__PURE__ */ a.jsx(ha, {}),
1317
1312
  /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
1318
1313
  /* @__PURE__ */ a.jsx(D, { name: "head-navigation-start" }),
1319
1314
  n && /* @__PURE__ */ a.jsx(
1320
1315
  ye,
1321
1316
  {
1322
- fallback: /* @__PURE__ */ a.jsx(ta, { className: "rounded h-5 w-24 mr-4" }),
1317
+ fallback: /* @__PURE__ */ a.jsx(ra, { className: "rounded h-5 w-24 mr-4" }),
1323
1318
  children: r ? u.length > 0 && /* @__PURE__ */ a.jsxs(dr, { modal: !1, children: [
1324
1319
  /* @__PURE__ */ a.jsx(hr, { asChild: !0, children: /* @__PURE__ */ a.jsx(ce, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
1325
1320
  /* @__PURE__ */ a.jsxs(fr, { className: "w-56", children: [
@@ -1336,7 +1331,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1336
1331
  ] })
1337
1332
  ] }),
1338
1333
  /* @__PURE__ */ a.jsx(D, { name: "top-navigation-before" }),
1339
- /* @__PURE__ */ a.jsx(ua, {}),
1334
+ /* @__PURE__ */ a.jsx(da, {}),
1340
1335
  /* @__PURE__ */ a.jsx(D, { name: "top-navigation-after" })
1341
1336
  ] })
1342
1337
  ] });
@@ -1355,7 +1350,7 @@ const ra = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems ==
1355
1350
  }
1356
1351
  ));
1357
1352
  ft.displayName = "SidebarWrapper";
1358
- const ha = () => {
1353
+ const fa = () => {
1359
1354
  const e = me(null), t = Ke();
1360
1355
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1361
1356
  /* @__PURE__ */ a.jsxs(
@@ -1382,9 +1377,9 @@ const ha = () => {
1382
1377
  }
1383
1378
  )
1384
1379
  ] });
1385
- }, Fe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), fa = ({ children: e }) => {
1386
- const t = ve(), { setActiveAnchor: r } = be(), { meta: s, authentication: n } = Q();
1387
- Gr(), ea();
1380
+ }, Fe = () => /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(Nr, {}) }), ma = ({ children: e }) => {
1381
+ const t = ve(), { setActiveAnchor: r } = be(), { meta: s, authentication: n } = F();
1382
+ ea(), ta();
1388
1383
  const o = me(t.pathname);
1389
1384
  L(() => {
1390
1385
  var u;
@@ -1392,7 +1387,7 @@ const ha = () => {
1392
1387
  }, [n]), L(() => {
1393
1388
  t.pathname !== o.current && r(""), o.current = t.pathname;
1394
1389
  }, [t.pathname, r]);
1395
- const i = !!xe().location, c = Wr.useSpinDelay(i, {
1390
+ const i = !!xe().location, c = Xr.useSpinDelay(i, {
1396
1391
  delay: 300,
1397
1392
  minDuration: 500
1398
1393
  });
@@ -1406,7 +1401,7 @@ const ha = () => {
1406
1401
  /* @__PURE__ */ a.jsx(ht, {}),
1407
1402
  /* @__PURE__ */ a.jsx(D, { name: "layout-after-head" }),
1408
1403
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: c ? /* @__PURE__ */ a.jsx(Fe, {}) : /* @__PURE__ */ a.jsx(ge, { fallback: /* @__PURE__ */ a.jsx(Fe, {}), children: /* @__PURE__ */ a.jsxs(Je, { direction: "left", children: [
1409
- /* @__PURE__ */ a.jsx(ha, {}),
1404
+ /* @__PURE__ */ a.jsx(fa, {}),
1410
1405
  /* @__PURE__ */ a.jsx(
1411
1406
  "div",
1412
1407
  {
@@ -1439,11 +1434,11 @@ const ha = () => {
1439
1434
  )
1440
1435
  ] }) }) })
1441
1436
  ] });
1442
- }, ma = We(null), oe = {
1437
+ }, ga = We(null), oe = {
1443
1438
  didCatch: !1,
1444
1439
  error: null
1445
1440
  };
1446
- class ga extends Kt {
1441
+ class pa extends Kt {
1447
1442
  constructor(t) {
1448
1443
  super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = oe;
1449
1444
  }
@@ -1476,7 +1471,7 @@ class ga extends Kt {
1476
1471
  } = this.state, {
1477
1472
  resetKeys: n
1478
1473
  } = this.props;
1479
- if (s && r.error !== null && pa(t.resetKeys, n)) {
1474
+ if (s && r.error !== null && va(t.resetKeys, n)) {
1480
1475
  var o, i;
1481
1476
  (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1482
1477
  next: n,
@@ -1510,7 +1505,7 @@ class ga extends Kt {
1510
1505
  else
1511
1506
  throw i;
1512
1507
  }
1513
- return Me(ma.Provider, {
1508
+ return Me(ga.Provider, {
1514
1509
  value: {
1515
1510
  didCatch: o,
1516
1511
  error: i,
@@ -1519,11 +1514,11 @@ class ga extends Kt {
1519
1514
  }, c);
1520
1515
  }
1521
1516
  }
1522
- function pa() {
1517
+ function va() {
1523
1518
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1524
1519
  return e.length !== t.length || e.some((r, s) => !Object.is(r, t[s]));
1525
1520
  }
1526
- class va {
1521
+ class xa {
1527
1522
  constructor(t) {
1528
1523
  S(this, "plugins");
1529
1524
  S(this, "sidebars");
@@ -1534,20 +1529,20 @@ class va {
1534
1529
  S(this, "navigationPlugins");
1535
1530
  S(this, "initialize", async () => {
1536
1531
  await Promise.all(
1537
- this.plugins.filter(na).map((t) => {
1532
+ this.plugins.filter(ia).map((t) => {
1538
1533
  var r;
1539
1534
  return (r = t.initialize) == null ? void 0 : r.call(t, this);
1540
1535
  })
1541
1536
  );
1542
1537
  });
1543
1538
  S(this, "getApiIdentities", async () => (await Promise.all(
1544
- this.plugins.filter(la).map((r) => r.getIdentities(this))
1539
+ this.plugins.filter(ca).map((r) => r.getIdentities(this))
1545
1540
  )).flat());
1546
1541
  S(this, "getPluginSidebar", async (t) => (await Promise.all(
1547
1542
  this.navigationPlugins.map(
1548
1543
  (s) => {
1549
1544
  var n;
1550
- return (n = s.getSidebar) == null ? void 0 : n.call(s, q(t));
1545
+ return (n = s.getSidebar) == null ? void 0 : n.call(s, Q(t));
1551
1546
  }
1552
1547
  )
1553
1548
  )).flatMap((s) => s ?? []));
@@ -1557,17 +1552,17 @@ class va {
1557
1552
  const r = await this.authentication.getAccessToken();
1558
1553
  return t.headers.set("Authorization", `Bearer ${r}`), t;
1559
1554
  });
1560
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(aa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1555
+ this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(sa), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
1561
1556
  }
1562
1557
  }
1563
- function xa({ error: e, resetErrorBoundary: t }) {
1558
+ function ya({ error: e, resetErrorBoundary: t }) {
1564
1559
  return /* @__PURE__ */ a.jsx(ze, { error: e });
1565
1560
  }
1566
1561
  const te = globalThis;
1567
1562
  (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (e) => setTimeout(e, 1), te.cancelIdleCallback = clearTimeout);
1568
1563
  const mt = {
1569
1564
  Header: ht
1570
- }, ya = We(mt), ba = ya.Provider, ja = ({
1565
+ }, ba = We(mt), ja = ba.Provider, wa = ({
1571
1566
  children: e,
1572
1567
  context: t
1573
1568
  }) => (Bt({
@@ -1582,7 +1577,7 @@ const mt = {
1582
1577
  ), s = se(() => {
1583
1578
  var v;
1584
1579
  return {
1585
- ...(t.plugins ?? []).filter(oa).flatMap(
1580
+ ...(t.plugins ?? []).filter(la).flatMap(
1586
1581
  (m) => m.getMdxComponents ? [m.getMdxComponents()] : []
1587
1582
  ).reduce(
1588
1583
  (m, E) => ({ ...m, ...E }),
@@ -1591,41 +1586,41 @@ const mt = {
1591
1586
  ...or,
1592
1587
  ...(v = t.mdx) == null ? void 0 : v.components
1593
1588
  };
1594
- }, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Vt(le), [o, i] = F(!1), c = se(
1589
+ }, [(f = t.mdx) == null ? void 0 : f.components, t.plugins]), { stagger: n } = Vt(le), [o, i] = q(!1), c = se(
1595
1590
  () => o ? { stagger: !0 } : { stagger: n },
1596
1591
  [n, o]
1597
1592
  ), u = xe();
1598
1593
  L(() => {
1599
1594
  o || i(!0);
1600
1595
  }, [o, u.location]);
1601
- const [d] = F(() => new va(t)), p = (h = t.plugins) == null ? void 0 : h.filter(ia).map((g, v) => {
1596
+ const [d] = q(() => new xa(t)), p = (h = t.plugins) == null ? void 0 : h.filter(oa).map((g, v) => {
1602
1597
  var m;
1603
1598
  return /* @__PURE__ */ a.jsx(Zt, { children: (m = g.getHead) == null ? void 0 : m.call(g) }, v);
1604
1599
  });
1605
1600
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1606
1601
  /* @__PURE__ */ a.jsx(he, { children: p }),
1607
- /* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(ja, { context: d, children: /* @__PURE__ */ a.jsx(jt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ba, { value: r, children: /* @__PURE__ */ a.jsx(Ct, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(lr, { children: e ?? /* @__PURE__ */ a.jsx(Xe, {}) }) }) }) }) }) }) })
1602
+ /* @__PURE__ */ a.jsx(le.Provider, { value: c, children: /* @__PURE__ */ a.jsx(wa, { context: d, children: /* @__PURE__ */ a.jsx(jt, { components: s, children: /* @__PURE__ */ a.jsx(wr, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ a.jsx(ja, { value: r, children: /* @__PURE__ */ a.jsx(Pt, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(lr, { children: e ?? /* @__PURE__ */ a.jsx(Xe, {}) }) }) }) }) }) }) })
1608
1603
  ] });
1609
1604
  }
1610
1605
  );
1611
1606
  gt.displayName = "ZudokoInner";
1612
- const pt = (e) => /* @__PURE__ */ a.jsx(ga, { FallbackComponent: xa, children: /* @__PURE__ */ a.jsx(gt, { ...e }) });
1607
+ const pt = (e) => /* @__PURE__ */ a.jsx(pa, { FallbackComponent: ya, children: /* @__PURE__ */ a.jsx(gt, { ...e }) });
1613
1608
  pt.displayName = "Zudoku";
1614
- const Ya = wt, Wa = fa, Xa = kt, Ja = Er, Ga = Zr, es = Yr, ts = he, rs = Q, as = Pt, ss = pt, ns = Dt, is = ye, os = At, ls = fe;
1609
+ const Wa = wt, Xa = ma, Ja = kt, Ga = Er, es = Yr, ts = Wr, rs = he, as = F, ss = Ct, ns = pt, is = Dt, os = ye, ls = At, cs = fe;
1615
1610
  export {
1616
- Ga as Bootstrap,
1617
- es as BootstrapStatic,
1618
- os as Button,
1619
- ns as Callout,
1620
- is as ClientOnly,
1621
- ts as Head,
1622
- Wa as Layout,
1623
- ls as Link,
1624
- Xa as RouterError,
1625
- Ja as ServerError,
1626
- ss as Zudoku,
1627
- as as useAuth,
1628
- Ya as useMDXComponents,
1629
- rs as useZudoku
1611
+ es as Bootstrap,
1612
+ ts as BootstrapStatic,
1613
+ ls as Button,
1614
+ is as Callout,
1615
+ os as ClientOnly,
1616
+ rs as Head,
1617
+ Xa as Layout,
1618
+ cs as Link,
1619
+ Ja as RouterError,
1620
+ Ga as ServerError,
1621
+ ns as Zudoku,
1622
+ ss as useAuth,
1623
+ Wa as useMDXComponents,
1624
+ as as useZudoku
1630
1625
  };
1631
1626
  //# sourceMappingURL=zudoku.components.js.map