zudoku 0.37.0 → 0.38.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.
Files changed (137) hide show
  1. package/dist/app/main.js +2 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +287 -18
  4. package/dist/config/validators/common.js +2 -0
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +107 -7
  7. package/dist/lib/authentication/authentication.d.ts +1 -0
  8. package/dist/lib/authentication/providers/clerk.js +19 -0
  9. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  10. package/dist/lib/authentication/providers/openid.d.ts +1 -0
  11. package/dist/lib/authentication/providers/openid.js +5 -0
  12. package/dist/lib/authentication/providers/openid.js.map +1 -1
  13. package/dist/lib/authentication/providers/supabase.js +5 -0
  14. package/dist/lib/authentication/providers/supabase.js.map +1 -1
  15. package/dist/lib/authentication/state.d.ts +0 -26
  16. package/dist/lib/authentication/state.js +1 -16
  17. package/dist/lib/authentication/state.js.map +1 -1
  18. package/dist/lib/components/Layout.js +5 -3
  19. package/dist/lib/components/Layout.js.map +1 -1
  20. package/dist/lib/components/Zudoku.js +3 -2
  21. package/dist/lib/components/Zudoku.js.map +1 -1
  22. package/dist/lib/core/ZudokuContext.d.ts +7 -0
  23. package/dist/lib/core/ZudokuContext.js +8 -3
  24. package/dist/lib/core/ZudokuContext.js.map +1 -1
  25. package/dist/lib/core/plugins.d.ts +8 -6
  26. package/dist/lib/plugins/markdown/MdxPage.js +2 -8
  27. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  28. package/dist/lib/plugins/openapi/Endpoint.js +1 -1
  29. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  30. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  31. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  32. package/dist/lib/plugins/openapi/Sidecar.js +29 -5
  33. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  34. package/dist/lib/plugins/openapi/interfaces.d.ts +26 -0
  35. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  36. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  37. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
  38. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  39. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  40. package/dist/lib/plugins/openapi/state.js +18 -0
  41. package/dist/lib/plugins/openapi/state.js.map +1 -0
  42. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +13 -4
  43. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
  44. package/dist/lib/plugins/search-pagefind/ResultList.js +19 -12
  45. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
  46. package/dist/lib/plugins/search-pagefind/get-results.d.ts +8 -1
  47. package/dist/lib/plugins/search-pagefind/get-results.js +9 -4
  48. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -1
  49. package/dist/lib/util/traverse.d.ts +2 -8
  50. package/dist/lib/util/traverse.js.map +1 -1
  51. package/dist/lib/util/types.d.ts +7 -0
  52. package/dist/lib/util/types.js +2 -0
  53. package/dist/lib/util/types.js.map +1 -0
  54. package/dist/lib/util/useScrollToAnchor.js +18 -12
  55. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  56. package/dist/vite/api/schema-codegen.d.ts +1 -1
  57. package/dist/vite/api/schema-codegen.js +8 -4
  58. package/dist/vite/api/schema-codegen.js.map +1 -1
  59. package/dist/vite/plugin-api.js +5 -2
  60. package/dist/vite/plugin-api.js.map +1 -1
  61. package/lib/{AuthenticationPlugin-Cij2tPWa.js → AuthenticationPlugin-Duy_R1TU.js} +3 -3
  62. package/lib/{AuthenticationPlugin-Cij2tPWa.js.map → AuthenticationPlugin-Duy_R1TU.js.map} +1 -1
  63. package/lib/{Markdown-DT5Rrq8_.js → Markdown-DIZ8nBVC.js} +742 -738
  64. package/lib/{Markdown-DT5Rrq8_.js.map → Markdown-DIZ8nBVC.js.map} +1 -1
  65. package/lib/{MdxPage-D2rD1vC4.js → MdxPage-JEdbfW-f.js} +42 -47
  66. package/lib/MdxPage-JEdbfW-f.js.map +1 -0
  67. package/lib/{OasProvider-DdEBf2qS.js → OasProvider-D1A10JeA.js} +4 -4
  68. package/lib/{OasProvider-DdEBf2qS.js.map → OasProvider-D1A10JeA.js.map} +1 -1
  69. package/lib/{OperationList-DT4-gm_S.js → OperationList-yOmYzMIp.js} +1128 -1112
  70. package/lib/OperationList-yOmYzMIp.js.map +1 -0
  71. package/lib/{Select-z1Lwl0-J.js → Select-fAYcJ0OU.js} +8 -8
  72. package/lib/{Select-z1Lwl0-J.js.map → Select-fAYcJ0OU.js.map} +1 -1
  73. package/lib/{SlotletProvider-D8OBnr77.js → SlotletProvider-BEwNY8q0.js} +4 -4
  74. package/lib/{SlotletProvider-D8OBnr77.js.map → SlotletProvider-BEwNY8q0.js.map} +1 -1
  75. package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js → chunk-HA7DTUK3-C4gP41vD.js} +5 -5
  76. package/lib/{chunk-HA7DTUK3-ZGg2W6yV.js.map → chunk-HA7DTUK3-C4gP41vD.js.map} +1 -1
  77. package/lib/hook-Cge6LiTK.js +1483 -0
  78. package/lib/hook-Cge6LiTK.js.map +1 -0
  79. package/lib/{index-DdQSV2RF.js → index-B0y3fTg-.js} +261 -243
  80. package/lib/index-B0y3fTg-.js.map +1 -0
  81. package/lib/{mutation-_Z5C2wFZ.js → mutation-EChriCeF.js} +2 -2
  82. package/lib/{mutation-_Z5C2wFZ.js.map → mutation-EChriCeF.js.map} +1 -1
  83. package/lib/post-processors/traverse.js.map +1 -1
  84. package/lib/{useExposedProps-BslIn-FE.js → useExposedProps-B9qXJedG.js} +2 -2
  85. package/lib/{useExposedProps-BslIn-FE.js.map → useExposedProps-B9qXJedG.js.map} +1 -1
  86. package/lib/zudoku.auth-auth0.js +1 -1
  87. package/lib/zudoku.auth-clerk.js +59 -41
  88. package/lib/zudoku.auth-clerk.js.map +1 -1
  89. package/lib/zudoku.auth-openid.js +76 -73
  90. package/lib/zudoku.auth-openid.js.map +1 -1
  91. package/lib/zudoku.components.js +370 -354
  92. package/lib/zudoku.components.js.map +1 -1
  93. package/lib/zudoku.hooks.js +1 -1
  94. package/lib/zudoku.plugin-api-catalog.js +23 -24
  95. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  96. package/lib/zudoku.plugin-api-keys.js +15 -16
  97. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  98. package/lib/zudoku.plugin-custom-pages.js +2 -2
  99. package/lib/zudoku.plugin-markdown.js +1 -1
  100. package/lib/zudoku.plugin-openapi.js +5 -6
  101. package/lib/zudoku.plugin-openapi.js.map +1 -1
  102. package/lib/zudoku.plugin-redirect.js +1 -1
  103. package/lib/zudoku.plugin-search-pagefind.js +133 -98
  104. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  105. package/lib/zudoku.plugins.js.map +1 -1
  106. package/package.json +2 -2
  107. package/src/app/main.tsx +2 -0
  108. package/src/lib/authentication/authentication.ts +2 -0
  109. package/src/lib/authentication/providers/clerk.tsx +20 -0
  110. package/src/lib/authentication/providers/openid.tsx +6 -0
  111. package/src/lib/authentication/providers/supabase.tsx +6 -0
  112. package/src/lib/authentication/state.ts +1 -35
  113. package/src/lib/components/Layout.tsx +14 -2
  114. package/src/lib/components/Zudoku.tsx +5 -2
  115. package/src/lib/core/ZudokuContext.ts +13 -6
  116. package/src/lib/core/plugins.ts +9 -9
  117. package/src/lib/plugins/markdown/MdxPage.tsx +1 -8
  118. package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
  119. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  120. package/src/lib/plugins/openapi/Sidecar.tsx +36 -7
  121. package/src/lib/plugins/openapi/interfaces.ts +29 -0
  122. package/src/lib/plugins/openapi/playground/Playground.tsx +1 -1
  123. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +2 -1
  124. package/src/lib/plugins/openapi/state.ts +36 -0
  125. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +26 -4
  126. package/src/lib/plugins/search-pagefind/ResultList.tsx +59 -47
  127. package/src/lib/plugins/search-pagefind/get-results.tsx +31 -10
  128. package/src/lib/util/traverse.ts +2 -6
  129. package/src/lib/util/types.ts +7 -0
  130. package/src/lib/util/useScrollToAnchor.ts +20 -12
  131. package/lib/MdxPage-D2rD1vC4.js.map +0 -1
  132. package/lib/OperationList-DT4-gm_S.js.map +0 -1
  133. package/lib/hook-DzQC8PzJ.js +0 -355
  134. package/lib/hook-DzQC8PzJ.js.map +0 -1
  135. package/lib/index-DdQSV2RF.js.map +0 -1
  136. package/lib/joinUrl-BjDooT-T.js +0 -1154
  137. package/lib/joinUrl-BjDooT-T.js.map +0 -1
@@ -3,9 +3,9 @@ var ye = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var dt = (t, e, s) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var w = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
7
- var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), P = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
8
- var W = (t, e, s, n) => ({
6
+ var j = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
7
+ var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), w = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
8
+ var J = (t, e, s, n) => ({
9
9
  set _(a) {
10
10
  v(t, e, a, s);
11
11
  },
@@ -13,51 +13,50 @@ var W = (t, e, s, n) => ({
13
13
  return l(t, e, n);
14
14
  }
15
15
  });
16
- import { a as Fe, H as oe, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
16
+ import { a as Fe, H as le, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
17
17
  import { z as ze, J as mt } from "./index-DwT-v3zK.js";
18
- import { a as gt, u as le, m as pt, O as ce, R as xt, S as yt, g as ue, h as vt, L as de } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
19
- import { e as K, a as O, f as Be, t as bt, j as jt, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-DzQC8PzJ.js";
18
+ import { a as gt, u as _, m as pt, O as ce, R as xt, S as yt, f as ue, g as vt, L as de } from "./chunk-HA7DTUK3-C4gP41vD.js";
19
+ import { S as He, p as Be, Q as bt, n as P, q as be, r as je, t as A, v as jt, w as wt, x as Pt, y as Ct, z as we, A as Pe, B as Nt, h as Ce, C as Ne, D as Dt, g as Le, l as U, a as O, m as kt, E as Ke, F as $e, G as St, d as H, u as Et, j as Ot, b as Mt, Z as qt, H as At, I as Tt } from "./hook-Cge6LiTK.js";
20
20
  import { j as r } from "./jsx-runtime-CYK1ROHF.js";
21
- import { S as He, i as Le, l as Dt, n as C, m as be, o as je, p as A, q as kt, r as St, t as Et, v as Ot, w as we, x as Pe, y as Mt, h as Ce, z as Ne, e as At, u as Ke, d as Tt, A as $e, j as V } from "./joinUrl-BjDooT-T.js";
22
- import { D as qt, a as It, c as Qt, b as Rt, d as Ft } from "./Dialog-sbgekbjb.js";
23
- import { Z as zt } from "./invariant-Caa8-XvF.js";
24
- import { u as Bt, o as Ht } from "./objectEntries-BS7aAgOm.js";
25
- import { E as Ue, S as D, a as Lt, R as Kt } from "./SlotletProvider-D8OBnr77.js";
26
- import { Button as $t } from "./ui/Button.js";
27
- import { Callout as Ut } from "./ui/Callout.js";
28
- import { M as Zt } from "./mutation-_Z5C2wFZ.js";
29
- import * as q from "react";
30
- import Yt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as U, useState as $, useCallback as Xt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as se, useContext as _t } from "react";
31
- import * as Gt from "react-dom";
21
+ import { D as It, a as Qt, c as Rt, b as Ft, d as zt } from "./Dialog-sbgekbjb.js";
22
+ import { Z as Ht } from "./invariant-Caa8-XvF.js";
23
+ import { u as Bt, o as Lt } from "./objectEntries-BS7aAgOm.js";
24
+ import { E as Ue, S as D, a as Kt, R as $t } from "./SlotletProvider-BEwNY8q0.js";
25
+ import { Button as Ut } from "./ui/Button.js";
26
+ import { Callout as Zt } from "./ui/Callout.js";
27
+ import { M as Yt } from "./mutation-EChriCeF.js";
28
+ import * as I from "react";
29
+ import Xt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as Y, useState as Z, useCallback as Gt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as re, useContext as _t } from "react";
30
+ import * as Wt from "react-dom";
32
31
  import { C as ge } from "./ClientOnly-E7hGysn1.js";
33
- import { s as Wt, S as ke, a as Jt, H as es, P as ts, b as ss, V as rs, M as ns } from "./Markdown-DT5Rrq8_.js";
34
- import { B as ae } from "./Button-Fp19CMUr.js";
32
+ import { s as Jt, S as ke, a as es, H as ts, P as ss, b as rs, V as ns, M as as } from "./Markdown-DIZ8nBVC.js";
33
+ import { B as ie } from "./Button-Fp19CMUr.js";
35
34
  import { c as E } from "./cn-qaFjX9_3.js";
36
- import { isSearchPlugin as as, isProfileMenuPlugin as is, isNavigationPlugin as os, isEventConsumerPlugin as ls, needsInitialization as cs, isApiIdentityPlugin as us, isMdxProviderPlugin as ds, hasHead as hs } from "./zudoku.plugins.js";
37
- import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as re, DropdownMenuSub as xs, DropdownMenuSubTrigger as ys, DropdownMenuPortal as vs, DropdownMenuSubContent as bs, DropdownMenuItem as js } from "./ui/DropdownMenu.js";
38
- import { CircleXIcon as ws, SearchIcon as Ps, SunIcon as Cs, MoonIcon as Ns, MenuIcon as Ds, PanelLeftIcon as ks } from "lucide-react";
35
+ import { isSearchPlugin as is, isProfileMenuPlugin as os, isNavigationPlugin as ls, isEventConsumerPlugin as cs, needsInitialization as us, isApiIdentityPlugin as ds, isMdxProviderPlugin as hs, hasHead as fs } from "./zudoku.plugins.js";
36
+ import { DropdownMenu as ms, DropdownMenuTrigger as gs, DropdownMenuContent as ps, DropdownMenuLabel as xs, DropdownMenuSeparator as ne, DropdownMenuSub as ys, DropdownMenuSubTrigger as vs, DropdownMenuPortal as bs, DropdownMenuSubContent as js, DropdownMenuItem as ws } from "./ui/DropdownMenu.js";
37
+ import { CircleXIcon as Ps, SearchIcon as Cs, SunIcon as Ns, MoonIcon as Ds, MenuIcon as ks, PanelLeftIcon as Ss } from "lucide-react";
39
38
  import { VisuallyHidden as Xe } from "@radix-ui/react-visually-hidden";
40
- import { D as Ss, a as Es, b as Ve, c as _e, d as M } from "./Drawer-kDAfOq_2.js";
41
- import { a as Os } from "./index-CPNSgwSb.js";
42
- import { S as Ge } from "./Spinner-CE68iCm0.js";
43
- import { C as Ms } from "./CategoryHeading-DpB47wvk.js";
39
+ import { D as Es, a as Os, b as Ge, c as Ve, d as M } from "./Drawer-kDAfOq_2.js";
40
+ import { a as Ms } from "./index-CPNSgwSb.js";
41
+ import { S as _e } from "./Spinner-CE68iCm0.js";
42
+ import { C as qs } from "./CategoryHeading-DpB47wvk.js";
44
43
  var S, Ie, As = (Ie = class extends He {
45
44
  constructor(e = {}) {
46
45
  super();
47
- P(this, S);
46
+ w(this, S);
48
47
  this.config = e, v(this, S, /* @__PURE__ */ new Map());
49
48
  }
50
49
  build(e, s, n) {
51
- const a = s.queryKey, i = s.queryHash ?? Le(a, s);
52
- let o = this.get(i);
53
- return o || (o = new Dt({
50
+ const a = s.queryKey, o = s.queryHash ?? Be(a, s);
51
+ let i = this.get(o);
52
+ return i || (i = new bt({
54
53
  client: e,
55
54
  queryKey: a,
56
- queryHash: i,
55
+ queryHash: o,
57
56
  options: e.defaultQueryOptions(s),
58
57
  state: n,
59
58
  defaultOptions: e.getQueryDefaults(a)
60
- }), this.add(o)), o;
59
+ }), this.add(i)), i;
61
60
  }
62
61
  add(e) {
63
62
  l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
@@ -70,7 +69,7 @@ var S, Ie, As = (Ie = class extends He {
70
69
  s && (e.destroy(), s === e && l(this, S).delete(e.queryHash), this.notify({ type: "removed", query: e }));
71
70
  }
72
71
  clear() {
73
- C.batch(() => {
72
+ P.batch(() => {
74
73
  this.getAll().forEach((e) => {
75
74
  this.remove(e);
76
75
  });
@@ -93,38 +92,38 @@ var S, Ie, As = (Ie = class extends He {
93
92
  return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
94
93
  }
95
94
  notify(e) {
96
- C.batch(() => {
95
+ P.batch(() => {
97
96
  this.listeners.forEach((s) => {
98
97
  s(e);
99
98
  });
100
99
  });
101
100
  }
102
101
  onFocus() {
103
- C.batch(() => {
102
+ P.batch(() => {
104
103
  this.getAll().forEach((e) => {
105
104
  e.onFocus();
106
105
  });
107
106
  });
108
107
  }
109
108
  onOnline() {
110
- C.batch(() => {
109
+ P.batch(() => {
111
110
  this.getAll().forEach((e) => {
112
111
  e.onOnline();
113
112
  });
114
113
  });
115
114
  }
116
- }, S = new WeakMap(), Ie), T, N, _, Qe, Ts = (Qe = class extends He {
115
+ }, S = new WeakMap(), Ie), T, N, V, Qe, Ts = (Qe = class extends He {
117
116
  constructor(e = {}) {
118
117
  super();
119
- P(this, T);
120
- P(this, N);
121
- P(this, _);
122
- this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, _, 0);
118
+ w(this, T);
119
+ w(this, N);
120
+ w(this, V);
121
+ this.config = e, v(this, T, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, V, 0);
123
122
  }
124
123
  build(e, s, n) {
125
- const a = new Zt({
124
+ const a = new Yt({
126
125
  mutationCache: this,
127
- mutationId: ++W(this, _)._,
126
+ mutationId: ++J(this, V)._,
128
127
  options: e.defaultMutationOptions(s),
129
128
  state: n
130
129
  });
@@ -132,7 +131,7 @@ var S, Ie, As = (Ie = class extends He {
132
131
  }
133
132
  add(e) {
134
133
  l(this, T).add(e);
135
- const s = J(e);
134
+ const s = ee(e);
136
135
  if (typeof s == "string") {
137
136
  const n = l(this, N).get(s);
138
137
  n ? n.push(e) : l(this, N).set(s, [e]);
@@ -141,7 +140,7 @@ var S, Ie, As = (Ie = class extends He {
141
140
  }
142
141
  remove(e) {
143
142
  if (l(this, T).delete(e)) {
144
- const s = J(e);
143
+ const s = ee(e);
145
144
  if (typeof s == "string") {
146
145
  const n = l(this, N).get(s);
147
146
  if (n)
@@ -154,10 +153,10 @@ var S, Ie, As = (Ie = class extends He {
154
153
  this.notify({ type: "removed", mutation: e });
155
154
  }
156
155
  canRun(e) {
157
- const s = J(e);
156
+ const s = ee(e);
158
157
  if (typeof s == "string") {
159
158
  const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
160
- (i) => i.state.status === "pending"
159
+ (o) => o.state.status === "pending"
161
160
  );
162
161
  return !a || a === e;
163
162
  } else
@@ -165,15 +164,15 @@ var S, Ie, As = (Ie = class extends He {
165
164
  }
166
165
  runNext(e) {
167
166
  var n;
168
- const s = J(e);
167
+ const s = ee(e);
169
168
  if (typeof s == "string") {
170
- const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
169
+ const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
171
170
  return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
172
171
  } else
173
172
  return Promise.resolve();
174
173
  }
175
174
  clear() {
176
- C.batch(() => {
175
+ P.batch(() => {
177
176
  l(this, T).forEach((e) => {
178
177
  this.notify({ type: "removed", mutation: e });
179
178
  }), l(this, T).clear(), l(this, N).clear();
@@ -192,7 +191,7 @@ var S, Ie, As = (Ie = class extends He {
192
191
  return this.getAll().filter((s) => je(e, s));
193
192
  }
194
193
  notify(e) {
195
- C.batch(() => {
194
+ P.batch(() => {
196
195
  this.listeners.forEach((s) => {
197
196
  s(e);
198
197
  });
@@ -200,73 +199,73 @@ var S, Ie, As = (Ie = class extends He {
200
199
  }
201
200
  resumePausedMutations() {
202
201
  const e = this.getAll().filter((s) => s.state.isPaused);
203
- return C.batch(
202
+ return P.batch(
204
203
  () => Promise.all(
205
204
  e.map((s) => s.continue().catch(A))
206
205
  )
207
206
  );
208
207
  }
209
- }, T = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Qe);
210
- function J(t) {
208
+ }, T = new WeakMap(), N = new WeakMap(), V = new WeakMap(), Qe);
209
+ function ee(t) {
211
210
  var e;
212
211
  return (e = t.options.scope) == null ? void 0 : e.id;
213
212
  }
214
213
  function Se(t) {
215
214
  return {
216
215
  onFetch: (e, s) => {
217
- var x, f, h, p, y;
218
- const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, i = ((p = e.state.data) == null ? void 0 : p.pages) || [], o = ((y = e.state.data) == null ? void 0 : y.pageParams) || [];
216
+ var x, f, h, p, C;
217
+ const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((p = e.state.data) == null ? void 0 : p.pages) || [], i = ((C = e.state.data) == null ? void 0 : C.pageParams) || [];
219
218
  let u = { pages: [], pageParams: [] }, d = 0;
220
219
  const c = async () => {
221
220
  let m = !1;
222
- const b = (j) => {
223
- Object.defineProperty(j, "signal", {
221
+ const y = (b) => {
222
+ Object.defineProperty(b, "signal", {
224
223
  enumerable: !0,
225
224
  get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
226
225
  m = !0;
227
226
  }), e.signal)
228
227
  });
229
- }, F = kt(e.options, e.fetchOptions), Z = async (j, k, Y) => {
228
+ }, q = jt(e.options, e.fetchOptions), z = async (b, k, X) => {
230
229
  if (m)
231
230
  return Promise.reject();
232
- if (k == null && j.pages.length)
233
- return Promise.resolve(j);
234
- const G = {
231
+ if (k == null && b.pages.length)
232
+ return Promise.resolve(b);
233
+ const W = {
235
234
  client: e.client,
236
235
  queryKey: e.queryKey,
237
236
  pageParam: k,
238
- direction: Y ? "backward" : "forward",
237
+ direction: X ? "backward" : "forward",
239
238
  meta: e.options.meta
240
239
  };
241
- b(G);
242
- const ct = await F(
243
- G
244
- ), { maxPages: pe } = e.options, xe = Y ? St : Et;
240
+ y(W);
241
+ const ct = await q(
242
+ W
243
+ ), { maxPages: pe } = e.options, xe = X ? wt : Pt;
245
244
  return {
246
- pages: xe(j.pages, ct, pe),
247
- pageParams: xe(j.pageParams, k, pe)
245
+ pages: xe(b.pages, ct, pe),
246
+ pageParams: xe(b.pageParams, k, pe)
248
247
  };
249
248
  };
250
- if (a && i.length) {
251
- const j = a === "backward", k = j ? qs : Ee, Y = {
252
- pages: i,
253
- pageParams: o
254
- }, G = k(n, Y);
255
- u = await Z(Y, G, j);
249
+ if (a && o.length) {
250
+ const b = a === "backward", k = b ? Is : Ee, X = {
251
+ pages: o,
252
+ pageParams: i
253
+ }, W = k(n, X);
254
+ u = await z(X, W, b);
256
255
  } else {
257
- const j = t ?? i.length;
256
+ const b = t ?? o.length;
258
257
  do {
259
- const k = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
258
+ const k = d === 0 ? i[0] ?? n.initialPageParam : Ee(n, u);
260
259
  if (d > 0 && k == null)
261
260
  break;
262
- u = await Z(u, k), d++;
263
- } while (d < j);
261
+ u = await z(u, k), d++;
262
+ } while (d < b);
264
263
  }
265
264
  return u;
266
265
  };
267
266
  e.options.persister ? e.fetchFn = () => {
268
- var m, b;
269
- return (b = (m = e.options).persister) == null ? void 0 : b.call(
267
+ var m, y;
268
+ return (y = (m = e.options).persister) == null ? void 0 : y.call(
270
269
  m,
271
270
  c,
272
271
  {
@@ -290,38 +289,38 @@ function Ee(t, { pages: e, pageParams: s }) {
290
289
  s
291
290
  ) : void 0;
292
291
  }
293
- function qs(t, { pages: e, pageParams: s }) {
292
+ function Is(t, { pages: e, pageParams: s }) {
294
293
  var n;
295
294
  return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
296
295
  }
297
- var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
296
+ var g, Q, R, B, L, F, K, $, Re, Qs = (Re = class {
298
297
  constructor(t = {}) {
299
- P(this, g);
300
- P(this, I);
301
- P(this, Q);
302
- P(this, z);
303
- P(this, B);
304
- P(this, R);
305
- P(this, H);
306
- P(this, L);
307
- v(this, g, t.queryCache || new As()), v(this, I, t.mutationCache || new Ts()), v(this, Q, t.defaultOptions || {}), v(this, z, /* @__PURE__ */ new Map()), v(this, B, /* @__PURE__ */ new Map()), v(this, R, 0);
298
+ w(this, g);
299
+ w(this, Q);
300
+ w(this, R);
301
+ w(this, B);
302
+ w(this, L);
303
+ w(this, F);
304
+ w(this, K);
305
+ w(this, $);
306
+ v(this, g, t.queryCache || new As()), v(this, Q, t.mutationCache || new Ts()), v(this, R, t.defaultOptions || {}), v(this, B, /* @__PURE__ */ new Map()), v(this, L, /* @__PURE__ */ new Map()), v(this, F, 0);
308
307
  }
309
308
  mount() {
310
- W(this, R)._++, l(this, R) === 1 && (v(this, H, Ot.subscribe(async (t) => {
309
+ J(this, F)._++, l(this, F) === 1 && (v(this, K, Ct.subscribe(async (t) => {
311
310
  t && (await this.resumePausedMutations(), l(this, g).onFocus());
312
- })), v(this, L, we.subscribe(async (t) => {
311
+ })), v(this, $, we.subscribe(async (t) => {
313
312
  t && (await this.resumePausedMutations(), l(this, g).onOnline());
314
313
  })));
315
314
  }
316
315
  unmount() {
317
316
  var t, e;
318
- W(this, R)._--, l(this, R) === 0 && ((t = l(this, H)) == null || t.call(this), v(this, H, void 0), (e = l(this, L)) == null || e.call(this), v(this, L, void 0));
317
+ J(this, F)._--, l(this, F) === 0 && ((t = l(this, K)) == null || t.call(this), v(this, K, void 0), (e = l(this, $)) == null || e.call(this), v(this, $, void 0));
319
318
  }
320
319
  isFetching(t) {
321
320
  return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
322
321
  }
323
322
  isMutating(t) {
324
- return l(this, I).findAll({ ...t, status: "pending" }).length;
323
+ return l(this, Q).findAll({ ...t, status: "pending" }).length;
325
324
  }
326
325
  getQueryData(t) {
327
326
  var s;
@@ -341,12 +340,12 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
341
340
  setQueryData(t, e, s) {
342
341
  const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
343
342
  n.queryHash
344
- ), i = a == null ? void 0 : a.state.data, o = Mt(e, i);
345
- if (o !== void 0)
346
- return l(this, g).build(this, n).setData(o, { ...s, manual: !0 });
343
+ ), o = a == null ? void 0 : a.state.data, i = Nt(e, o);
344
+ if (i !== void 0)
345
+ return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
347
346
  }
348
347
  setQueriesData(t, e, s) {
349
- return C.batch(
348
+ return P.batch(
350
349
  () => l(this, g).findAll(t).map(({ queryKey: n }) => [
351
350
  n,
352
351
  this.setQueryData(n, e, s)
@@ -362,7 +361,7 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
362
361
  }
363
362
  removeQueries(t) {
364
363
  const e = l(this, g);
365
- C.batch(() => {
364
+ P.batch(() => {
366
365
  e.findAll(t).forEach((s) => {
367
366
  e.remove(s);
368
367
  });
@@ -373,18 +372,18 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
373
372
  type: "active",
374
373
  ...t
375
374
  };
376
- return C.batch(() => (s.findAll(t).forEach((a) => {
375
+ return P.batch(() => (s.findAll(t).forEach((a) => {
377
376
  a.reset();
378
377
  }), this.refetchQueries(n, e)));
379
378
  }
380
379
  cancelQueries(t, e = {}) {
381
- const s = { revert: !0, ...e }, n = C.batch(
380
+ const s = { revert: !0, ...e }, n = P.batch(
382
381
  () => l(this, g).findAll(t).map((a) => a.cancel(s))
383
382
  );
384
383
  return Promise.all(n).then(A).catch(A);
385
384
  }
386
385
  invalidateQueries(t, e = {}) {
387
- return C.batch(() => {
386
+ return P.batch(() => {
388
387
  if (l(this, g).findAll(t).forEach((n) => {
389
388
  n.invalidate();
390
389
  }), (t == null ? void 0 : t.refetchType) === "none")
@@ -400,10 +399,10 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
400
399
  const s = {
401
400
  ...e,
402
401
  cancelRefetch: e.cancelRefetch ?? !0
403
- }, n = C.batch(
402
+ }, n = P.batch(
404
403
  () => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
405
- let i = a.fetch(void 0, s);
406
- return s.throwOnError || (i = i.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
404
+ let o = a.fetch(void 0, s);
405
+ return s.throwOnError || (o = o.catch(A)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
407
406
  })
408
407
  );
409
408
  return Promise.all(n).then(A);
@@ -429,40 +428,40 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
429
428
  return t.behavior = Se(t.pages), this.ensureQueryData(t);
430
429
  }
431
430
  resumePausedMutations() {
432
- return we.isOnline() ? l(this, I).resumePausedMutations() : Promise.resolve();
431
+ return we.isOnline() ? l(this, Q).resumePausedMutations() : Promise.resolve();
433
432
  }
434
433
  getQueryCache() {
435
434
  return l(this, g);
436
435
  }
437
436
  getMutationCache() {
438
- return l(this, I);
437
+ return l(this, Q);
439
438
  }
440
439
  getDefaultOptions() {
441
- return l(this, Q);
440
+ return l(this, R);
442
441
  }
443
442
  setDefaultOptions(t) {
444
- v(this, Q, t);
443
+ v(this, R, t);
445
444
  }
446
445
  setQueryDefaults(t, e) {
447
- l(this, z).set(Ce(t), {
446
+ l(this, B).set(Ce(t), {
448
447
  queryKey: t,
449
448
  defaultOptions: e
450
449
  });
451
450
  }
452
451
  getQueryDefaults(t) {
453
- const e = [...l(this, z).values()], s = {};
452
+ const e = [...l(this, B).values()], s = {};
454
453
  return e.forEach((n) => {
455
454
  Ne(t, n.queryKey) && Object.assign(s, n.defaultOptions);
456
455
  }), s;
457
456
  }
458
457
  setMutationDefaults(t, e) {
459
- l(this, B).set(Ce(t), {
458
+ l(this, L).set(Ce(t), {
460
459
  mutationKey: t,
461
460
  defaultOptions: e
462
461
  });
463
462
  }
464
463
  getMutationDefaults(t) {
465
- const e = [...l(this, B).values()];
464
+ const e = [...l(this, L).values()];
466
465
  let s = {};
467
466
  return e.forEach((n) => {
468
467
  Ne(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
@@ -472,37 +471,37 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
472
471
  if (t._defaulted)
473
472
  return t;
474
473
  const e = {
475
- ...l(this, Q).queries,
474
+ ...l(this, R).queries,
476
475
  ...this.getQueryDefaults(t.queryKey),
477
476
  ...t,
478
477
  _defaulted: !0
479
478
  };
480
- return e.queryHash || (e.queryHash = Le(
479
+ return e.queryHash || (e.queryHash = Be(
481
480
  e.queryKey,
482
481
  e
483
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === At && (e.enabled = !1), e;
482
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Dt && (e.enabled = !1), e;
484
483
  }
485
484
  defaultMutationOptions(t) {
486
485
  return t != null && t._defaulted ? t : {
487
- ...l(this, Q).mutations,
486
+ ...l(this, R).mutations,
488
487
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
489
488
  ...t,
490
489
  _defaulted: !0
491
490
  };
492
491
  }
493
492
  clear() {
494
- l(this, g).clear(), l(this, I).clear();
493
+ l(this, g).clear(), l(this, Q).clear();
495
494
  }
496
- }, g = new WeakMap(), I = new WeakMap(), Q = new WeakMap(), z = new WeakMap(), B = new WeakMap(), R = new WeakMap(), H = new WeakMap(), L = new WeakMap(), Re);
497
- function Qs(t) {
495
+ }, g = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), B = new WeakMap(), L = new WeakMap(), F = new WeakMap(), K = new WeakMap(), $ = new WeakMap(), Re);
496
+ function Rs(t) {
498
497
  return t;
499
498
  }
500
499
  function Oe(t, e, s) {
501
500
  var d, c;
502
501
  if (typeof e != "object" || e === null)
503
502
  return;
504
- const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Qs, o = e.mutations || [], u = e.queries || [];
505
- o.forEach(({ state: x, ...f }) => {
503
+ const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Rs, i = e.mutations || [], u = e.queries || [];
504
+ i.forEach(({ state: x, ...f }) => {
506
505
  var h, p;
507
506
  n.build(
508
507
  t,
@@ -513,24 +512,24 @@ function Oe(t, e, s) {
513
512
  },
514
513
  x
515
514
  );
516
- }), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: y }) => {
517
- var F, Z;
515
+ }), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: C }) => {
516
+ var q, z;
518
517
  let m = a.get(h);
519
- const b = f.data === void 0 ? f.data : i(f.data);
518
+ const y = f.data === void 0 ? f.data : o(f.data);
520
519
  if (m) {
521
520
  if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
522
- const { fetchStatus: j, ...k } = f;
521
+ const { fetchStatus: b, ...k } = f;
523
522
  m.setState({
524
523
  ...k,
525
- data: b
524
+ data: y
526
525
  });
527
526
  }
528
527
  } else
529
528
  m = a.build(
530
529
  t,
531
530
  {
532
- ...(F = t.getDefaultOptions().hydrate) == null ? void 0 : F.queries,
533
- ...(Z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : Z.queries,
531
+ ...(q = t.getDefaultOptions().hydrate) == null ? void 0 : q.queries,
532
+ ...(z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : z.queries,
534
533
  queryKey: x,
535
534
  queryHash: h,
536
535
  meta: p
@@ -539,24 +538,24 @@ function Oe(t, e, s) {
539
538
  // query being stuck in fetching state upon hydration
540
539
  {
541
540
  ...f,
542
- data: b,
541
+ data: y,
543
542
  fetchStatus: "idle"
544
543
  }
545
544
  );
546
- if (y) {
547
- const j = Promise.resolve(y).then(i);
548
- m.fetch(void 0, { initialPromise: j });
545
+ if (C) {
546
+ const b = Promise.resolve(C).then(o);
547
+ m.fetch(void 0, { initialPromise: b });
549
548
  }
550
549
  });
551
550
  }
552
- var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
551
+ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Fs = ({
553
552
  children: t,
554
553
  options: e = {},
555
554
  state: s,
556
555
  queryClient: n
557
556
  }) => {
558
- const a = Ke(n), [i, o] = q.useState(), u = q.useRef(e);
559
- return u.current = e, q.useMemo(() => {
557
+ const a = Le(n), [o, i] = I.useState(), u = I.useRef(e);
558
+ return u.current = e, I.useMemo(() => {
560
559
  if (s) {
561
560
  if (typeof s != "object")
562
561
  return;
@@ -566,26 +565,26 @@ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
566
565
  if (!p)
567
566
  x.push(h);
568
567
  else {
569
- const y = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
570
- Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = i == null ? void 0 : i.find(
571
- (b) => b.queryHash === h.queryHash
568
+ const C = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
569
+ Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = o == null ? void 0 : o.find(
570
+ (y) => y.queryHash === h.queryHash
572
571
  );
573
- y && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
572
+ C && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
574
573
  }
575
574
  }
576
- x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && o(
575
+ x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && i(
577
576
  (h) => h ? [...h, ...f] : f
578
577
  );
579
578
  }
580
- }, [a, i, s]), q.useEffect(() => {
581
- i && (Oe(a, { queries: i }, u.current), o(void 0));
582
- }, [a, i]), t;
579
+ }, [a, o, s]), I.useEffect(() => {
580
+ o && (Oe(a, { queries: o }, u.current), i(void 0));
581
+ }, [a, o]), t;
583
582
  };
584
- const Fs = () => {
585
- const t = K(), e = O(), s = gt(), n = le(), a = Bt(n.pathname), { protectedRoutes: i = [] } = e.options, o = i.some(
583
+ const zs = () => {
584
+ const t = U(), e = O(), s = gt(), n = _(), a = Bt(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
586
585
  (u) => pt({ path: u, end: !0 }, n.pathname)
587
586
  );
588
- if (Tt({
587
+ if (kt({
589
588
  queryKey: ["login-redirect"],
590
589
  queryFn: async () => {
591
590
  var u;
@@ -593,29 +592,29 @@ const Fs = () => {
593
592
  redirectTo: a.current
594
593
  })), !0;
595
594
  },
596
- enabled: typeof window < "u" && o && !t.isPending && !t.isAuthenticated
597
- }), o && !t.isAuthenticated)
595
+ enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
596
+ }), i && !t.isAuthenticated)
598
597
  return /* @__PURE__ */ r.jsx(
599
- qt,
598
+ It,
600
599
  {
601
600
  open: !0,
602
601
  onOpenChange: (u) => {
603
602
  u || s(-1);
604
603
  },
605
- children: /* @__PURE__ */ r.jsxs(It, { children: [
606
- /* @__PURE__ */ r.jsx(Qt, { children: /* @__PURE__ */ r.jsx(Rt, { children: "Logging you in..." }) }),
607
- /* @__PURE__ */ r.jsx(Ft, { children: "Please wait while we log you in." })
604
+ children: /* @__PURE__ */ r.jsxs(Qt, { children: [
605
+ /* @__PURE__ */ r.jsx(Rt, { children: /* @__PURE__ */ r.jsx(Ft, { children: "Logging you in..." }) }),
606
+ /* @__PURE__ */ r.jsx(zt, { children: "Please wait while we log you in." })
608
607
  ] })
609
608
  }
610
609
  );
611
- if (o && !t.isAuthEnabled)
612
- throw new zt("Authentication is not enabled", {
610
+ if (i && !t.isAuthEnabled)
611
+ throw new Ht("Authentication is not enabled", {
613
612
  title: "Authentication is not enabled",
614
613
  developerHint: "To use protectedRoutes you need authentication to be enabled"
615
614
  });
616
615
  return /* @__PURE__ */ r.jsx(ce, {});
617
616
  };
618
- function zs({ error: t }) {
617
+ function Hs({ error: t }) {
619
618
  return /* @__PURE__ */ r.jsx(Ue, { error: t });
620
619
  }
621
620
  /**
@@ -629,71 +628,71 @@ function zs({ error: t }) {
629
628
  * @license MIT
630
629
  */
631
630
  function Bs(t) {
632
- return /* @__PURE__ */ q.createElement(xt, { flushSync: Gt.flushSync, ...t });
631
+ return /* @__PURE__ */ I.createElement(xt, { flushSync: Wt.flushSync, ...t });
633
632
  }
634
- const ie = he({ stagger: !1 }), Hs = new Is({
633
+ const oe = he({ stagger: !1 }), Ls = new Qs({
635
634
  defaultOptions: {
636
635
  queries: {
637
636
  staleTime: 1e3 * 60 * 5
638
637
  }
639
638
  }
640
- }), Ls = ({
639
+ }), Ks = ({
641
640
  router: t,
642
641
  hydrate: e = !1
643
- }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: Hs, children: /* @__PURE__ */ r.jsx(Rs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(ie.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Bs, { router: t }) }) }) }) }) }), Ks = ({
642
+ }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: Ls, children: /* @__PURE__ */ r.jsx(Fs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Bs, { router: t }) }) }) }) }) }), $s = ({
644
643
  router: t,
645
644
  context: e,
646
645
  queryClient: s,
647
646
  helmetContext: n
648
- }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(yt, { router: t, context: e }) }) }) });
649
- var X = { exports: {} }, $s = X.exports, Ae;
650
- function Us() {
651
- return Ae || (Ae = 1, function(t, e) {
647
+ }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(yt, { router: t, context: e }) }) }) });
648
+ var G = { exports: {} }, Us = G.exports, qe;
649
+ function Zs() {
650
+ return qe || (qe = 1, function(t, e) {
652
651
  (function(s, n) {
653
- n(e, Yt);
654
- })($s, function(s, n) {
652
+ n(e, Xt);
653
+ })(Us, function(s, n) {
655
654
  const a = {
656
655
  delay: 500,
657
656
  minDuration: 200,
658
657
  ssr: !0
659
658
  };
660
- function i() {
659
+ function o() {
661
660
  const [u, d] = n.useState(!0);
662
661
  return n.useEffect(() => {
663
662
  d(!1);
664
663
  }, []), u;
665
664
  }
666
- function o(u, d) {
665
+ function i(u, d) {
667
666
  d = Object.assign({}, a, d);
668
- const c = i() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
667
+ const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
669
668
  return n.useEffect(() => {
670
669
  if (u && (f === "IDLE" || c)) {
671
670
  clearTimeout(p.current);
672
- const y = c ? 0 : d.delay;
671
+ const C = c ? 0 : d.delay;
673
672
  p.current = setTimeout(() => {
674
673
  if (!u)
675
674
  return h("IDLE");
676
675
  p.current = setTimeout(() => {
677
676
  h("EXPIRE");
678
677
  }, d.minDuration), h("DISPLAY");
679
- }, y), c || h("DELAY");
678
+ }, C), c || h("DELAY");
680
679
  }
681
680
  !u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
682
681
  }, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(p.current), []), f === "DISPLAY" || f === "EXPIRE";
683
682
  }
684
- s.defaultOptions = a, s.useSpinDelay = o;
683
+ s.defaultOptions = a, s.useSpinDelay = i;
685
684
  });
686
- }(X, X.exports)), X.exports;
685
+ }(G, G.exports)), G.exports;
687
686
  }
688
- var Zs = Us();
689
- const Ys = () => {
690
- const t = le(), e = fe(t.pathname);
691
- U(() => {
687
+ var Ys = Zs();
688
+ const Xs = () => {
689
+ const t = _(), e = fe(t.pathname);
690
+ Y(() => {
692
691
  const s = e.current !== t.pathname, n = t.hash !== "";
693
692
  s && !n && window.scrollTo(0, 0), e.current = t.pathname;
694
693
  }, [t.pathname, t.hash]);
695
694
  };
696
- function Xs({
695
+ function Gs({
697
696
  className: t,
698
697
  ...e
699
698
  }) {
@@ -705,17 +704,17 @@ function Xs({
705
704
  }
706
705
  );
707
706
  }
708
- const Te = {
707
+ const Ae = {
709
708
  info: "bg-blue-500",
710
709
  note: "bg-gray-500",
711
710
  tip: "bg-green-600",
712
711
  caution: "bg-orange-500",
713
712
  danger: "bg-rose-500"
714
713
  }, Vs = () => {
715
- const { page: t } = O(), [e, s] = $(!0);
714
+ const { page: t } = O(), [e, s] = Z(!0);
716
715
  if (!(t != null && t.banner) || !e)
717
716
  return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
718
- const n = t.banner.color && t.banner.color in Te ? Te[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
717
+ const n = t.banner.color && t.banner.color in Ae ? Ae[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
719
718
  return /* @__PURE__ */ r.jsxs(
720
719
  "div",
721
720
  {
@@ -733,26 +732,26 @@ const Te = {
733
732
  type: "button",
734
733
  className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
735
734
  onClick: () => s(!1),
736
- children: /* @__PURE__ */ r.jsx(ws, { size: 16 })
735
+ children: /* @__PURE__ */ r.jsx(Ps, { size: 16 })
737
736
  }
738
737
  )
739
738
  ]
740
739
  }
741
740
  );
742
741
  }, We = ({ className: t }) => {
743
- const e = O(), [s, n] = $(!1), a = Xt(() => n(!1), []);
744
- U(() => {
742
+ const e = O(), [s, n] = Z(!1), a = Gt(() => n(!1), []);
743
+ Y(() => {
745
744
  if (s)
746
745
  return;
747
- function o(u) {
746
+ function i(u) {
748
747
  u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
749
748
  }
750
- return window.addEventListener("keydown", o), () => {
751
- window.removeEventListener("keydown", o);
749
+ return window.addEventListener("keydown", i), () => {
750
+ window.removeEventListener("keydown", i);
752
751
  };
753
752
  }, [s, n]);
754
- const i = e.plugins.find(as);
755
- return i ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
753
+ const o = e.plugins.find(is);
754
+ return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
756
755
  /* @__PURE__ */ r.jsxs(
757
756
  "button",
758
757
  {
@@ -761,21 +760,21 @@ const Te = {
761
760
  className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
762
761
  children: [
763
762
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
764
- /* @__PURE__ */ r.jsx(Ps, { size: 14 }),
763
+ /* @__PURE__ */ r.jsx(Cs, { size: 14 }),
765
764
  "Search"
766
765
  ] }),
767
766
  /* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
768
767
  ]
769
768
  }
770
769
  ),
771
- /* @__PURE__ */ r.jsx(me, { fallback: null, children: i.renderSearch({
770
+ /* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
772
771
  isOpen: s,
773
772
  onClose: a
774
773
  }) })
775
774
  ] }) : null;
776
775
  }, Je = () => {
777
776
  const { resolvedTheme: t, setTheme: e } = ze();
778
- return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
777
+ return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
779
778
  "button",
780
779
  {
781
780
  type: "button",
@@ -791,7 +790,7 @@ const Te = {
791
790
  t === "light" && "border-border bg-muted",
792
791
  t === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
793
792
  ),
794
- children: /* @__PURE__ */ r.jsx(Cs, { size: 16 })
793
+ children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
795
794
  }
796
795
  ),
797
796
  /* @__PURE__ */ r.jsx(
@@ -802,14 +801,14 @@ const Te = {
802
801
  t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
803
802
  t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
804
803
  ),
805
- children: /* @__PURE__ */ r.jsx(Ns, { size: 16 })
804
+ children: /* @__PURE__ */ r.jsx(Ds, { size: 16 })
806
805
  }
807
806
  )
808
807
  ]
809
808
  }
810
809
  ) });
811
810
  }, et = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", _s = () => {
812
- const { topNavigation: t } = O(), { isAuthenticated: e } = K(), s = t.filter(et(e));
811
+ const { topNavigation: t } = O(), { isAuthenticated: e } = U(), s = t.filter(et(e));
813
812
  return s.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
814
813
  /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: s.map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, { ...n }) }, n.id)) }) }),
815
814
  /* @__PURE__ */ r.jsx(D, { name: "top-navigation-side" })
@@ -820,16 +819,16 @@ const Te = {
820
819
  default: s
821
820
  }) => {
822
821
  var c;
823
- const { sidebars: n } = O(), a = n[t], i = Be(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = s ?? (a ? bt(a, (x) => {
824
- if (x.type === "doc") return V(x.id);
825
- }) : V(t)) ?? V(t);
822
+ const { sidebars: n } = O(), a = n[t], o = $e(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? St(a, (x) => {
823
+ if (x.type === "doc") return H(x.id);
824
+ }) : H(t)) ?? H(t);
826
825
  return (
827
826
  // We don't use isActive here because it has to be inside the sidebar,
828
827
  // the top nav id doesn't necessarily start with the sidebar id
829
828
  /* @__PURE__ */ r.jsx(
830
829
  vt,
831
830
  {
832
- className: ({ isPending: x }) => Os(
831
+ className: ({ isPending: x }) => Ms(
833
832
  "block lg:py-3.5 font-medium -mb-px",
834
833
  u || x ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
835
834
  ),
@@ -838,23 +837,23 @@ const Te = {
838
837
  }
839
838
  )
840
839
  );
841
- }, Gs = () => {
842
- const { topNavigation: t } = O(), { isAuthenticated: e } = K(), [s, n] = $(!1);
840
+ }, Ws = () => {
841
+ const { topNavigation: t } = O(), { isAuthenticated: e } = U(), [s, n] = Z(!1);
843
842
  return /* @__PURE__ */ r.jsxs(
844
- Ss,
843
+ Es,
845
844
  {
846
845
  direction: "right",
847
846
  open: s,
848
847
  onOpenChange: (a) => n(a),
849
848
  children: [
850
- /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Es, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(Ds, { size: 22 }) }) }),
849
+ /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Os, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(ks, { size: 22 }) }) }),
851
850
  /* @__PURE__ */ r.jsx(
852
- Ve,
851
+ Ge,
853
852
  {
854
853
  className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
855
854
  "aria-describedby": void 0,
856
855
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
857
- /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Navigation" }) }),
856
+ /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ve, { children: "Navigation" }) }),
858
857
  /* @__PURE__ */ r.jsx(We, { className: "flex p-4" }),
859
858
  /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
860
859
  /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(Je, {}) }),
@@ -866,31 +865,31 @@ const Te = {
866
865
  ]
867
866
  }
868
867
  );
869
- }, te = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(xs, { children: [
870
- /* @__PURE__ */ r.jsx(ys, { children: t.label }),
871
- /* @__PURE__ */ r.jsx(vs, { children: /* @__PURE__ */ r.jsx(bs, { children: t.children.map((e, s) => (
868
+ }, se = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(ys, { children: [
869
+ /* @__PURE__ */ r.jsx(vs, { children: t.label }),
870
+ /* @__PURE__ */ r.jsx(bs, { children: /* @__PURE__ */ r.jsx(js, { children: t.children.map((e, s) => (
872
871
  // eslint-disable-next-line react/no-array-index-key
873
- /* @__PURE__ */ r.jsx(te, { item: e }, s)
872
+ /* @__PURE__ */ r.jsx(se, { item: e }, s)
874
873
  )) }) })
875
- ] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(js, { className: "flex gap-2", children: [
874
+ ] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(ws, { className: "flex gap-2", children: [
876
875
  t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
877
876
  t.label
878
877
  ] }, t.label) }), st = Ye(function() {
879
- const e = K(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = K(), i = O(), { page: o, plugins: u } = i, d = u.filter((c) => is(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
878
+ const e = U(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = U(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => os(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
880
879
  return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
881
880
  /* @__PURE__ */ r.jsx(Vs, {}),
882
881
  /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height]", children: [
883
882
  /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(de, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
884
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
883
+ (i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
885
884
  /* @__PURE__ */ r.jsx(
886
885
  "img",
887
886
  {
888
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : V(
887
+ src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : H(
889
888
  "/",
890
- o.logo.src.light
889
+ i.logo.src.light
891
890
  ),
892
- alt: o.logo.alt ?? o.pageTitle,
893
- style: { width: o.logo.width },
891
+ alt: i.logo.alt ?? i.pageTitle,
892
+ style: { width: i.logo.width },
894
893
  className: "h-10 dark:hidden",
895
894
  loading: "lazy"
896
895
  }
@@ -898,47 +897,47 @@ const Te = {
898
897
  /* @__PURE__ */ r.jsx(
899
898
  "img",
900
899
  {
901
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : V(
900
+ src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : H(
902
901
  "/",
903
- o.logo.src.dark
902
+ i.logo.src.dark
904
903
  ),
905
- alt: o.logo.alt ?? o.pageTitle,
906
- style: { width: o.logo.width },
904
+ alt: i.logo.alt ?? i.pageTitle,
905
+ style: { width: i.logo.width },
907
906
  className: "h-10 hidden dark:block",
908
907
  loading: "lazy"
909
908
  }
910
909
  )
911
910
  ] }),
912
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
911
+ /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
913
912
  ] }) }) }),
914
913
  /* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(We, { className: "pointer-events-auto" }) }),
915
914
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
916
- /* @__PURE__ */ r.jsx(Gs, {}),
915
+ /* @__PURE__ */ r.jsx(Ws, {}),
917
916
  /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
918
917
  /* @__PURE__ */ r.jsx(D, { name: "head-navigation-start" }),
919
918
  a && /* @__PURE__ */ r.jsx(
920
919
  ge,
921
920
  {
922
- fallback: /* @__PURE__ */ r.jsx(Xs, { className: "rounded h-5 w-24 mr-4" }),
923
- children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(fs, { modal: !1, children: [
924
- /* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(ae, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
925
- /* @__PURE__ */ r.jsxs(gs, { className: "w-56", children: [
926
- /* @__PURE__ */ r.jsxs(ps, { children: [
921
+ fallback: /* @__PURE__ */ r.jsx(Gs, { className: "rounded h-5 w-24 mr-4" }),
922
+ children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(ms, { modal: !1, children: [
923
+ /* @__PURE__ */ r.jsx(gs, { asChild: !0, children: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
924
+ /* @__PURE__ */ r.jsxs(ps, { className: "w-56", children: [
925
+ /* @__PURE__ */ r.jsxs(xs, { children: [
927
926
  n != null && n.name ? `${n.name}` : "My Account",
928
927
  (n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
929
928
  ] }),
930
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
931
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
929
+ d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
930
+ d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label)),
932
931
  d.filter(
933
932
  (c) => !c.category || c.category === "middle"
934
- ).length > 0 && /* @__PURE__ */ r.jsx(re, {}),
933
+ ).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
935
934
  d.filter(
936
935
  (c) => !c.category || c.category === "middle"
937
- ).map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
938
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
939
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label))
936
+ ).map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label)),
937
+ d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
938
+ d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(se, { item: c }, c.label))
940
939
  ] })
941
- ] }) : /* @__PURE__ */ r.jsx(ae, { variant: "ghost", onClick: () => e.login(), children: "Login" })
940
+ ] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
942
941
  }
943
942
  ),
944
943
  /* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" }),
@@ -963,7 +962,7 @@ const Te = {
963
962
  }
964
963
  );
965
964
  rt.displayName = "Drawer";
966
- const Ws = M.Trigger, Js = M.Portal, nt = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
965
+ const Js = M.Trigger, er = M.Portal, nt = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
967
966
  M.Overlay,
968
967
  {
969
968
  ref: s,
@@ -972,8 +971,8 @@ const Ws = M.Trigger, Js = M.Portal, nt = q.forwardRef(({ className: t, ...e },
972
971
  }
973
972
  ));
974
973
  nt.displayName = M.Overlay.displayName;
975
- const er = q.forwardRef(
976
- ({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(Js, { children: [
974
+ const tr = I.forwardRef(
975
+ ({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(er, { children: [
977
976
  /* @__PURE__ */ r.jsx(nt, {}),
978
977
  /* @__PURE__ */ r.jsxs(
979
978
  M.Content,
@@ -992,8 +991,8 @@ const er = q.forwardRef(
992
991
  )
993
992
  ] })
994
993
  );
995
- er.displayName = "DrawerContent";
996
- const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
994
+ tr.displayName = "DrawerContent";
995
+ const sr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
997
996
  M.Title,
998
997
  {
999
998
  ref: s,
@@ -1004,8 +1003,8 @@ const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1004
1003
  ...e
1005
1004
  }
1006
1005
  ));
1007
- tr.displayName = M.Title.displayName;
1008
- const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1006
+ sr.displayName = M.Title.displayName;
1007
+ const rr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1009
1008
  M.Description,
1010
1009
  {
1011
1010
  ref: s,
@@ -1013,7 +1012,7 @@ const sr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
1013
1012
  ...e
1014
1013
  }
1015
1014
  ));
1016
- sr.displayName = M.Description.displayName;
1015
+ rr.displayName = M.Description.displayName;
1017
1016
  const at = ({
1018
1017
  children: t,
1019
1018
  className: e,
@@ -1032,15 +1031,15 @@ const at = ({
1032
1031
  }
1033
1032
  );
1034
1033
  at.displayName = "SidebarWrapper";
1035
- const rr = ({
1034
+ const nr = ({
1036
1035
  onRequestClose: t,
1037
1036
  sidebar: e
1038
1037
  }) => {
1039
1038
  const s = fe(null);
1040
- return U(() => {
1039
+ return Y(() => {
1041
1040
  var a;
1042
1041
  const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
1043
- Wt(n ?? null);
1042
+ Jt(n ?? null);
1044
1043
  }, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1045
1044
  /* @__PURE__ */ r.jsxs(at, { ref: s, children: [
1046
1045
  /* @__PURE__ */ r.jsx(D, { name: "zudoku-before-navigation" }),
@@ -1048,12 +1047,12 @@ const rr = ({
1048
1047
  /* @__PURE__ */ r.jsx(D, { name: "zudoku-after-navigation" })
1049
1048
  ] }),
1050
1049
  /* @__PURE__ */ r.jsx(
1051
- Ve,
1050
+ Ge,
1052
1051
  {
1053
1052
  className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1054
1053
  "aria-describedby": void 0,
1055
1054
  children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1056
- /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(_e, { children: "Sidebar" }) }),
1055
+ /* @__PURE__ */ r.jsx(Xe, { children: /* @__PURE__ */ r.jsx(Ve, { children: "Sidebar" }) }),
1057
1056
  e.map((n) => /* @__PURE__ */ r.jsx(
1058
1057
  ke,
1059
1058
  {
@@ -1066,24 +1065,24 @@ const rr = ({
1066
1065
  }
1067
1066
  )
1068
1067
  ] });
1069
- }, nr = ({ children: t }) => {
1070
- const [e, s] = $(!1), { sidebar: n } = Be(), a = n.length > 0;
1068
+ }, ar = ({ children: t }) => {
1069
+ const [e, s] = Z(!1), { sidebar: n } = $e(), a = n.length > 0;
1071
1070
  return /* @__PURE__ */ r.jsxs(
1072
1071
  rt,
1073
1072
  {
1074
1073
  direction: "left",
1075
1074
  open: e,
1076
- onOpenChange: (i) => s(i),
1075
+ onOpenChange: (o) => s(o),
1077
1076
  children: [
1078
1077
  a && /* @__PURE__ */ r.jsx(
1079
- rr,
1078
+ nr,
1080
1079
  {
1081
1080
  onRequestClose: () => s(!1),
1082
1081
  sidebar: n
1083
1082
  }
1084
1083
  ),
1085
- a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(Ws, { className: "flex items-center gap-2", children: [
1086
- /* @__PURE__ */ r.jsx(ks, { size: 16, strokeWidth: 1.5 }),
1084
+ a && /* @__PURE__ */ r.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b", children: /* @__PURE__ */ r.jsxs(Js, { className: "flex items-center gap-2", children: [
1085
+ /* @__PURE__ */ r.jsx(Ss, { size: 16, strokeWidth: 1.5 }),
1087
1086
  /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
1088
1087
  ] }) }),
1089
1088
  /* @__PURE__ */ r.jsxs(
@@ -1104,36 +1103,47 @@ const rr = ({
1104
1103
  ]
1105
1104
  }
1106
1105
  );
1107
- }, qe = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Ge, {}) }), ar = ({ children: t }) => {
1108
- const { meta: e, authentication: s } = O();
1109
- Jt(), Ys(), U(() => {
1110
- var i;
1111
- (i = s == null ? void 0 : s.onPageLoad) == null || i.call(s);
1106
+ }, Te = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(_e, {}) }), ir = ({ children: t }) => {
1107
+ const { meta: e, authentication: s, options: n } = O(), a = _();
1108
+ es(), Xs(), Y(() => {
1109
+ var u;
1110
+ (u = s == null ? void 0 : s.onPageLoad) == null || u.call(s);
1112
1111
  }, [s]);
1113
- const n = !!ue().location, a = Zs.useSpinDelay(n, {
1112
+ const o = !!ue().location, i = Ys.useSpinDelay(o, {
1114
1113
  delay: 300,
1115
1114
  minDuration: 500
1116
1115
  });
1117
1116
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1118
1117
  !1,
1119
- /* @__PURE__ */ r.jsxs(oe, { titleTemplate: e == null ? void 0 : e.title, children: [
1118
+ /* @__PURE__ */ r.jsxs(le, { titleTemplate: e == null ? void 0 : e.title, children: [
1119
+ n.canonicalUrlOrigin && /* @__PURE__ */ r.jsx(
1120
+ "link",
1121
+ {
1122
+ rel: "canonical",
1123
+ href: H(
1124
+ n.canonicalUrlOrigin,
1125
+ n.basePath,
1126
+ a.pathname
1127
+ )
1128
+ }
1129
+ ),
1120
1130
  (e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
1121
1131
  (e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
1122
1132
  ] }),
1123
1133
  /* @__PURE__ */ r.jsx(D, { name: "layout-before-head" }),
1124
1134
  /* @__PURE__ */ r.jsx(st, {}),
1125
1135
  /* @__PURE__ */ r.jsx(D, { name: "layout-after-head" }),
1126
- /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children: a ? /* @__PURE__ */ r.jsx(qe, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(qe, {}), children: /* @__PURE__ */ r.jsx(nr, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
1136
+ /* @__PURE__ */ r.jsx("div", { className: "grid grid-cols-1 grid-rows-[min-content_1fr] lg:grid-cols-[var(--side-nav-width)_1fr] max-w-screen-2xl w-full lg:mx-auto px-4 lg:px-8 2xl:border-x", children: i ? /* @__PURE__ */ r.jsx(Te, {}) : /* @__PURE__ */ r.jsx(me, { fallback: /* @__PURE__ */ r.jsx(Te, {}), children: /* @__PURE__ */ r.jsx(ar, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) })
1127
1137
  ] });
1128
- }, ir = ({
1138
+ }, or = ({
1129
1139
  title: t = "An error occurred",
1130
1140
  message: e,
1131
1141
  category: s
1132
- }) => /* @__PURE__ */ r.jsxs("div", { className: ts + " h-full pt-[--padding-content-top]", children: [
1133
- s && /* @__PURE__ */ r.jsx(Ms, { children: s }),
1134
- t && /* @__PURE__ */ r.jsx(es, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1142
+ }) => /* @__PURE__ */ r.jsxs("div", { className: ss + " h-full pt-[--padding-content-top]", children: [
1143
+ s && /* @__PURE__ */ r.jsx(qs, { children: s }),
1144
+ t && /* @__PURE__ */ r.jsx(ts, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1135
1145
  /* @__PURE__ */ r.jsx("p", { children: e })
1136
- ] }), or = (t) => {
1146
+ ] }), lr = (t) => {
1137
1147
  switch (t) {
1138
1148
  case 400:
1139
1149
  return {
@@ -1196,23 +1206,23 @@ const rr = ({
1196
1206
  message: "Something went wrong while processing your request."
1197
1207
  };
1198
1208
  }
1199
- }, lr = ({ statusCode: t, message: e }) => {
1200
- const s = or(t);
1209
+ }, cr = ({ statusCode: t, message: e }) => {
1210
+ const s = lr(t);
1201
1211
  return /* @__PURE__ */ r.jsx(
1202
- ir,
1212
+ or,
1203
1213
  {
1204
1214
  title: s.title,
1205
1215
  message: e ?? s.message,
1206
1216
  category: t
1207
1217
  }
1208
1218
  );
1209
- }, cr = he(null), ne = {
1219
+ }, ur = he(null), ae = {
1210
1220
  didCatch: !1,
1211
1221
  error: null
1212
1222
  };
1213
- class ur extends Vt {
1223
+ class dr extends Vt {
1214
1224
  constructor(e) {
1215
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1225
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
1216
1226
  }
1217
1227
  static getDerivedStateFromError(e) {
1218
1228
  return {
@@ -1225,12 +1235,12 @@ class ur extends Vt {
1225
1235
  error: e
1226
1236
  } = this.state;
1227
1237
  if (e !== null) {
1228
- for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1229
- i[o] = arguments[o];
1238
+ for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
1239
+ o[i] = arguments[i];
1230
1240
  (s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
1231
- args: i,
1241
+ args: o,
1232
1242
  reason: "imperative-api"
1233
- }), this.setState(ne);
1243
+ }), this.setState(ae);
1234
1244
  }
1235
1245
  }
1236
1246
  componentDidCatch(e, s) {
@@ -1243,13 +1253,13 @@ class ur extends Vt {
1243
1253
  } = this.state, {
1244
1254
  resetKeys: a
1245
1255
  } = this.props;
1246
- if (n && s.error !== null && dr(e.resetKeys, a)) {
1247
- var i, o;
1248
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1256
+ if (n && s.error !== null && hr(e.resetKeys, a)) {
1257
+ var o, i;
1258
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
1249
1259
  next: a,
1250
1260
  prev: e.resetKeys,
1251
1261
  reason: "keys"
1252
- }), this.setState(ne);
1262
+ }), this.setState(ae);
1253
1263
  }
1254
1264
  }
1255
1265
  render() {
@@ -1259,13 +1269,13 @@ class ur extends Vt {
1259
1269
  FallbackComponent: n,
1260
1270
  fallback: a
1261
1271
  } = this.props, {
1262
- didCatch: i,
1263
- error: o
1272
+ didCatch: o,
1273
+ error: i
1264
1274
  } = this.state;
1265
1275
  let u = e;
1266
- if (i) {
1276
+ if (o) {
1267
1277
  const d = {
1268
- error: o,
1278
+ error: i,
1269
1279
  resetErrorBoundary: this.resetErrorBoundary
1270
1280
  };
1271
1281
  if (typeof s == "function")
@@ -1275,22 +1285,22 @@ class ur extends Vt {
1275
1285
  else if (a !== void 0)
1276
1286
  u = a;
1277
1287
  else
1278
- throw o;
1288
+ throw i;
1279
1289
  }
1280
- return De(cr.Provider, {
1290
+ return De(ur.Provider, {
1281
1291
  value: {
1282
- didCatch: i,
1283
- error: o,
1292
+ didCatch: o,
1293
+ error: i,
1284
1294
  resetErrorBoundary: this.resetErrorBoundary
1285
1295
  }
1286
1296
  }, u);
1287
1297
  }
1288
1298
  }
1289
- function dr() {
1299
+ function hr() {
1290
1300
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1291
1301
  return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
1292
1302
  }
1293
- let hr = () => ({
1303
+ let fr = () => ({
1294
1304
  emit(t, ...e) {
1295
1305
  for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
1296
1306
  s[n](...e);
@@ -1304,45 +1314,49 @@ let hr = () => ({
1304
1314
  };
1305
1315
  }
1306
1316
  });
1307
- class fr {
1317
+ class mr {
1308
1318
  constructor(e, s) {
1309
- w(this, "plugins");
1310
- w(this, "sidebars");
1311
- w(this, "topNavigation");
1312
- w(this, "meta");
1313
- w(this, "page");
1314
- w(this, "authentication");
1315
- w(this, "navigationPlugins");
1316
- w(this, "emitter", hr());
1317
- w(this, "initialize", async () => {
1319
+ j(this, "plugins");
1320
+ j(this, "sidebars");
1321
+ j(this, "topNavigation");
1322
+ j(this, "meta");
1323
+ j(this, "page");
1324
+ j(this, "authentication");
1325
+ j(this, "navigationPlugins");
1326
+ j(this, "emitter", fr());
1327
+ j(this, "initialize", async () => {
1318
1328
  await Promise.all(
1319
- this.plugins.filter(cs).map((e) => {
1329
+ this.plugins.filter(us).map((e) => {
1320
1330
  var s;
1321
1331
  return (s = e.initialize) == null ? void 0 : s.call(e, this);
1322
1332
  })
1323
1333
  );
1324
1334
  });
1325
- w(this, "getApiIdentities", async () => (await Promise.all(
1326
- this.plugins.filter(us).map((s) => s.getIdentities(this))
1335
+ j(this, "getApiIdentities", async () => (await Promise.all(
1336
+ this.plugins.filter(ds).map((s) => s.getIdentities(this))
1327
1337
  )).flat());
1328
- w(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
1329
- w(this, "getPluginSidebar", async (e) => (await Promise.all(
1338
+ j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
1339
+ j(this, "getPluginSidebar", async (e) => (await Promise.all(
1330
1340
  this.navigationPlugins.map(
1331
1341
  (n) => {
1332
1342
  var a;
1333
- return (a = n.getSidebar) == null ? void 0 : a.call(n, jt(e), this);
1343
+ return (a = n.getSidebar) == null ? void 0 : a.call(n, Ot(e), this);
1334
1344
  }
1335
1345
  )
1336
1346
  )).flatMap((n) => n ?? []));
1337
- w(this, "signRequest", async (e) => {
1347
+ j(this, "signRequest", async (e) => {
1338
1348
  if (!this.authentication)
1339
1349
  throw new Error("No authentication provider configured");
1340
- const s = await this.authentication.getAccessToken();
1341
- return e.headers.set("Authorization", `Bearer ${s}`), e;
1350
+ return await this.authentication.signRequest(e);
1342
1351
  });
1343
- this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(os), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
1344
- ls(n) && Ht(n.events).forEach(([a, i]) => {
1345
- this.emitter.on(a, i);
1352
+ this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(ls), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
1353
+ cs(n) && Lt(n.events).forEach(([a, o]) => {
1354
+ this.emitter.on(a, o);
1355
+ });
1356
+ }), Et.subscribe((n, a) => {
1357
+ this.emitEvent("auth", {
1358
+ prev: a,
1359
+ next: n
1346
1360
  });
1347
1361
  });
1348
1362
  }
@@ -1350,74 +1364,76 @@ class fr {
1350
1364
  return this.emitter.on(e, s);
1351
1365
  }
1352
1366
  }
1353
- function mr({ error: t, resetErrorBoundary: e }) {
1367
+ function gr({ error: t, resetErrorBoundary: e }) {
1354
1368
  return /* @__PURE__ */ r.jsx(Ue, { error: t });
1355
1369
  }
1356
- const ee = globalThis;
1357
- (!ee.requestIdleCallback || !ee.cancelIdleCallback) && (ee.requestIdleCallback = (t) => setTimeout(t, 1), ee.cancelIdleCallback = clearTimeout);
1370
+ const te = globalThis;
1371
+ (!te.requestIdleCallback || !te.cancelIdleCallback) && (te.requestIdleCallback = (t) => setTimeout(t, 1), te.cancelIdleCallback = clearTimeout);
1358
1372
  const it = {
1359
1373
  Header: st
1360
- }, gr = he(it), pr = gr.Provider, xr = () => {
1361
- const t = le(), e = O(), s = fe(void 0);
1362
- return U(() => {
1374
+ }, pr = he(it), xr = pr.Provider, yr = () => {
1375
+ const t = _(), e = O(), s = fe(void 0);
1376
+ return Y(() => {
1363
1377
  e.emitEvent("location", {
1364
1378
  from: s.current,
1365
1379
  to: t
1366
1380
  }), s.current = t;
1367
1381
  }, [e, t]), null;
1368
- }, yr = ({
1382
+ }, vr = ({
1369
1383
  children: t,
1370
1384
  context: e
1371
- }) => (wt({
1385
+ }) => (Mt({
1372
1386
  queryFn: async () => (await e.initialize(), !0),
1373
1387
  queryKey: ["zudoku-initialize"]
1374
- }), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), ot = Ye(
1388
+ }), /* @__PURE__ */ r.jsx(qt.Provider, { value: e, children: t })), ot = Ye(
1375
1389
  ({ children: t, ...e }) => {
1376
- var h, p;
1377
- const s = se(
1390
+ var p, C;
1391
+ const s = re(
1378
1392
  () => ({ ...it, ...e.overrides }),
1379
1393
  [e.overrides]
1380
- ), n = se(() => {
1381
- var m;
1394
+ ), n = _(), a = re(() => {
1395
+ var y;
1382
1396
  return {
1383
- ...(e.plugins ?? []).filter(ds).flatMap(
1384
- (b) => b.getMdxComponents ? [b.getMdxComponents()] : []
1397
+ ...(e.plugins ?? []).filter(hs).flatMap(
1398
+ (q) => q.getMdxComponents ? [q.getMdxComponents()] : []
1385
1399
  ).reduce(
1386
- (b, F) => ({ ...b, ...F }),
1400
+ (q, z) => ({ ...q, ...z }),
1387
1401
  {}
1388
1402
  ),
1389
- ...ss,
1390
- ...(m = e.mdx) == null ? void 0 : m.components
1403
+ ...rs,
1404
+ ...(y = e.mdx) == null ? void 0 : y.components
1391
1405
  };
1392
- }, [(h = e.mdx) == null ? void 0 : h.components, e.plugins]), { stagger: a } = _t(ie), [i, o] = $(!1), u = se(
1393
- () => i ? { stagger: !0 } : { stagger: a },
1394
- [a, i]
1395
- ), d = ue(), c = Ke();
1396
- U(() => {
1397
- i || o(!0);
1398
- }, [i, d.location]);
1399
- const [x] = $(
1400
- () => new fr(e, c)
1401
- ), f = (p = e.plugins) == null ? void 0 : p.flatMap((y) => {
1402
- var m;
1403
- return hs(y) ? ((m = y.getHead) == null ? void 0 : m.call(y)) ?? [] : [];
1404
- }).map((y, m) => /* @__PURE__ */ r.jsx(oe, { children: y }, m));
1406
+ }, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] = Z(!1), d = re(
1407
+ () => i ? { stagger: !0 } : { stagger: o },
1408
+ [o, i]
1409
+ ), c = ue(), x = Le();
1410
+ Y(() => {
1411
+ i || u(!0);
1412
+ }, [i, c.location]);
1413
+ const [f] = Z(
1414
+ () => new mr(e, x)
1415
+ ), h = (C = e.plugins) == null ? void 0 : C.flatMap(
1416
+ (m) => {
1417
+ var y;
1418
+ return fs(m) ? ((y = m.getHead) == null ? void 0 : y.call(m, { location: n })) ?? [] : [];
1419
+ }
1420
+ ).map((m, y) => /* @__PURE__ */ r.jsx(le, { children: m }, y));
1405
1421
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1406
- f,
1407
- /* @__PURE__ */ r.jsx(ie.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(yr, { context: x, children: [
1408
- /* @__PURE__ */ r.jsx(xr, {}),
1409
- /* @__PURE__ */ r.jsx(ht, { components: n, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(pr, { value: s, children: /* @__PURE__ */ r.jsx(Lt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(rs, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
1422
+ h,
1423
+ /* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsxs(vr, { context: f, children: [
1424
+ /* @__PURE__ */ r.jsx(yr, {}),
1425
+ /* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(xr, { value: s, children: /* @__PURE__ */ r.jsx(Kt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(ns, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
1410
1426
  ] }) })
1411
1427
  ] });
1412
1428
  }
1413
1429
  );
1414
1430
  ot.displayName = "ZudokoInner";
1415
- const lt = (t) => /* @__PURE__ */ r.jsx(ur, { FallbackComponent: mr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
1431
+ const lt = (t) => /* @__PURE__ */ r.jsx(dr, { FallbackComponent: gr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
1416
1432
  lt.displayName = "Zudoku";
1417
- const Zr = ft, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr = oe, en = O, tn = K, sn = Ct, rn = Nt, nn = lt, an = lr, on = Ut, ln = ns, cn = Ge, un = ge, dn = $t, hn = de, fn = ze;
1433
+ const Zr = ft, Yr = ir, Xr = $t, Gr = Hs, Vr = Ks, _r = $s, Wr = zs, Jr = le, en = O, tn = U, sn = At, rn = Tt, nn = lt, an = cr, on = Zt, ln = as, cn = _e, un = ge, dn = Ut, hn = de, fn = ze;
1418
1434
  export {
1419
- _r as Bootstrap,
1420
- Gr as BootstrapStatic,
1435
+ Vr as Bootstrap,
1436
+ _r as BootstrapStatic,
1421
1437
  dn as Button,
1422
1438
  rn as CACHE_KEYS,
1423
1439
  on as Callout,
@@ -1428,7 +1444,7 @@ export {
1428
1444
  ln as Markdown,
1429
1445
  Wr as RouteGuard,
1430
1446
  Xr as RouterError,
1431
- Vr as ServerError,
1447
+ Gr as ServerError,
1432
1448
  cn as Spinner,
1433
1449
  an as StatusPage,
1434
1450
  nn as Zudoku,