zudoku 0.3.0-dev.37 → 0.3.0-dev.39

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 (115) hide show
  1. package/dist/app/entry.client.d.ts +0 -1
  2. package/dist/app/entry.client.js +5 -8
  3. package/dist/app/entry.client.js.map +1 -1
  4. package/dist/{vite/ssr → app}/entry.server.d.ts +1 -1
  5. package/dist/{vite/ssr → app}/entry.server.js +5 -7
  6. package/dist/app/entry.server.js.map +1 -0
  7. package/dist/app/main.d.ts +6 -0
  8. package/dist/{lib → app}/main.js +5 -6
  9. package/dist/app/main.js.map +1 -0
  10. package/dist/{vite/ssr → app}/zudoku-manifest.js +1 -1
  11. package/dist/app/zudoku-manifest.js.map +1 -0
  12. package/dist/internal.d.ts +0 -1
  13. package/dist/internal.js +0 -1
  14. package/dist/internal.js.map +1 -1
  15. package/dist/lib/components/Bootstrap.d.ts +12 -0
  16. package/dist/lib/components/Bootstrap.js +9 -0
  17. package/dist/lib/components/Bootstrap.js.map +1 -0
  18. package/dist/lib/components/DevPortal.js +1 -1
  19. package/dist/lib/components/DevPortal.js.map +1 -1
  20. package/dist/lib/components/Layout.js +1 -1
  21. package/dist/lib/components/Layout.js.map +1 -1
  22. package/dist/lib/components/index.d.ts +10 -0
  23. package/dist/lib/components/index.js +5 -0
  24. package/dist/lib/components/index.js.map +1 -1
  25. package/dist/lib/plugins/markdown/MdxPage.js +1 -1
  26. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  27. package/dist/lib/plugins/openapi/client/createWorkerClient.js +5 -1
  28. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +1 -1
  29. package/dist/lib/plugins/openapi/client/interfaces.d.ts +3 -1
  30. package/dist/lib/plugins/openapi/index.d.ts +5 -1
  31. package/dist/lib/plugins/openapi/index.js +2 -2
  32. package/dist/lib/plugins/openapi/index.js.map +1 -1
  33. package/dist/vite/build.js +12 -15
  34. package/dist/vite/build.js.map +1 -1
  35. package/dist/vite/config.js +9 -11
  36. package/dist/vite/config.js.map +1 -1
  37. package/dist/vite/dev-server.js +1 -0
  38. package/dist/vite/dev-server.js.map +1 -1
  39. package/dist/vite/plugin-api.js +5 -12
  40. package/dist/vite/plugin-api.js.map +1 -1
  41. package/dist/vite/plugin.js +0 -2
  42. package/dist/vite/plugin.js.map +1 -1
  43. package/lib/{AnchorLink-Sx89bfCW.js → AnchorLink-DCdBbdqo.js} +4 -3
  44. package/lib/AnchorLink-DCdBbdqo.js.map +1 -0
  45. package/lib/{DevPortalProvider-Demv4Ngx.js → DevPortalProvider-C-O1s7mm.js} +20 -20
  46. package/lib/{DevPortalProvider-Demv4Ngx.js.map → DevPortalProvider-C-O1s7mm.js.map} +1 -1
  47. package/lib/{Markdown-DMEnjeMH.js → Markdown-CGZJUYcj.js} +3192 -2663
  48. package/lib/Markdown-CGZJUYcj.js.map +1 -0
  49. package/lib/MdxPage-BZLuBOqR.js +190 -0
  50. package/lib/MdxPage-BZLuBOqR.js.map +1 -0
  51. package/lib/{OperationList-9NIdTqS0.js → OperationList-BEpN70_E.js} +192 -192
  52. package/lib/{OperationList-9NIdTqS0.js.map → OperationList-BEpN70_E.js.map} +1 -1
  53. package/lib/{Route-BqfQoDR2.js → Route-WiMUalLG.js} +3 -3
  54. package/lib/{Route-BqfQoDR2.js.map → Route-WiMUalLG.js.map} +1 -1
  55. package/lib/{Select-CJamK_wp.js → Select-BQ9-3iTJ.js} +5 -5
  56. package/lib/{Select-CJamK_wp.js.map → Select-BQ9-3iTJ.js.map} +1 -1
  57. package/lib/{Spinner-3YT-WUu5.js → Spinner-C1L_TK5f.js} +10 -10
  58. package/lib/{Spinner-3YT-WUu5.js.map → Spinner-C1L_TK5f.js.map} +1 -1
  59. package/lib/createWorkerClient-TWecYOlx.js +16698 -0
  60. package/lib/createWorkerClient-TWecYOlx.js.map +1 -0
  61. package/lib/{hook-Cq3Jb1lX.js → hook-SM2dMVmI.js} +9 -9
  62. package/lib/{hook-Cq3Jb1lX.js.map → hook-SM2dMVmI.js.map} +1 -1
  63. package/lib/{index-BB2EBBgh.js → index-CtLNbq0d.js} +15 -15
  64. package/lib/{index-BB2EBBgh.js.map → index-CtLNbq0d.js.map} +1 -1
  65. package/lib/{index-DhKGMJM2.js → index-PvQa9XLl.js} +16 -17
  66. package/lib/{index-DhKGMJM2.js.map → index-PvQa9XLl.js.map} +1 -1
  67. package/lib/index-pI9JkN46.js +4765 -0
  68. package/lib/index-pI9JkN46.js.map +1 -0
  69. package/lib/jsx-runtime-DLtUZ5Ve.js +1526 -0
  70. package/lib/{jsx-runtime-Bt86M5tA.js.map → jsx-runtime-DLtUZ5Ve.js.map} +1 -1
  71. package/lib/router-BkOLuJlq.js +2973 -0
  72. package/lib/{router-CcYTwKjf.js.map → router-BkOLuJlq.js.map} +1 -1
  73. package/lib/slugify-DbLhpSPt.js +28 -0
  74. package/lib/slugify-DbLhpSPt.js.map +1 -0
  75. package/lib/{util-CYBrkBUo.js → util-Cgie7wjb.js} +2 -2
  76. package/lib/{util-CYBrkBUo.js.map → util-Cgie7wjb.js.map} +1 -1
  77. package/lib/zudoku.auth-openid.js +1 -1
  78. package/lib/zudoku.components.js +692 -408
  79. package/lib/zudoku.components.js.map +1 -1
  80. package/lib/zudoku.openapi-worker.js +2 -225
  81. package/lib/zudoku.openapi-worker.js.map +1 -1
  82. package/lib/zudoku.plugin-api-keys.js +5 -5
  83. package/lib/zudoku.plugin-markdown.js +4 -4
  84. package/lib/zudoku.plugin-openapi.js +6 -7
  85. package/lib/zudoku.plugin-openapi.js.map +1 -1
  86. package/lib/zudoku.plugin-redirect.js +4 -4
  87. package/package.json +3 -7
  88. package/src/app/entry.client.tsx +4 -20
  89. package/src/app/entry.server.tsx +156 -0
  90. package/src/{lib → app}/main.tsx +9 -8
  91. package/src/app/zudoku-manifest.ts +22 -0
  92. package/src/lib/components/Bootstrap.tsx +37 -0
  93. package/src/lib/components/DevPortal.tsx +1 -1
  94. package/src/lib/components/Layout.tsx +1 -1
  95. package/src/lib/components/index.ts +8 -0
  96. package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
  97. package/src/lib/plugins/openapi/client/createWorkerClient.ts +9 -1
  98. package/src/lib/plugins/openapi/client/interfaces.ts +3 -1
  99. package/src/lib/plugins/openapi/index.tsx +7 -3
  100. package/dist/lib/main.d.ts +0 -26
  101. package/dist/lib/main.js.map +0 -1
  102. package/dist/vite/plugin-openapi-worker.d.ts +0 -4
  103. package/dist/vite/plugin-openapi-worker.js +0 -39
  104. package/dist/vite/plugin-openapi-worker.js.map +0 -1
  105. package/dist/vite/ssr/entry.server.js.map +0 -1
  106. package/dist/vite/ssr/zudoku-manifest.js.map +0 -1
  107. package/lib/AnchorLink-Sx89bfCW.js.map +0 -1
  108. package/lib/Markdown-DMEnjeMH.js.map +0 -1
  109. package/lib/MdxPage-s9RlKFtt.js +0 -213
  110. package/lib/MdxPage-s9RlKFtt.js.map +0 -1
  111. package/lib/jsx-runtime-Bt86M5tA.js +0 -866
  112. package/lib/router-CcYTwKjf.js +0 -183
  113. package/lib/urql-DMlBWUKL.js +0 -1592
  114. package/lib/urql-DMlBWUKL.js.map +0 -1
  115. /package/dist/{vite/ssr → app}/zudoku-manifest.d.ts +0 -0
@@ -1,35 +1,37 @@
1
- var Se = Object.defineProperty;
2
- var ae = (t) => {
1
+ var $e = Object.defineProperty;
2
+ var ce = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var qe = (t, e, s) => e in t ? Se(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var v = (t, e, s) => qe(t, typeof e != "symbol" ? e + "" : e, s), ne = (t, e, s) => e.has(t) || ae("Cannot " + s);
7
- var i = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), y = (t, e, s) => e.has(t) ? ae("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, a) => (ne(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var F = (t, e, s, a) => ({
9
- set _(n) {
10
- d(t, e, n, s);
5
+ var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var v = (t, e, r) => Ve(t, typeof e != "symbol" ? e + "" : e, r), ue = (t, e, r) => e.has(t) || ce("Cannot " + r);
7
+ var l = (t, e, r) => (ue(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => e.has(t) ? ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), d = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
+ var L = (t, e, r, a) => ({
9
+ set _(s) {
10
+ d(t, e, s, r);
11
11
  },
12
12
  get _() {
13
- return i(t, e, a);
13
+ return l(t, e, a);
14
14
  }
15
15
  });
16
- import { c as L, N as U, a as Ie, u as Fe, M as Re, T as He, V as Le, b as X, d as T, e as Be, C as Ke, L as ze } from "./Markdown-DMEnjeMH.js";
17
- import { E as Ve, u as Ue, R as We } from "./hook-Cq3Jb1lX.js";
18
- import { j as r, u as D, O as Xe } from "./jsx-runtime-Bt86M5tA.js";
19
- import { S as ge, h as ve, Q as _e, n as m, m as re, a as ie, b as j, e as $e, c as Ge, d as Je, f as Ye, o as oe, r as le, g as Ze, i as ce, p as ue, s as et, u as _, j as tt, D as st, k as at, l as nt } from "./DevPortalProvider-Demv4Ngx.js";
20
- import { createContext as ye, Component as rt, createElement as he, isValidElement as it, memo as xe, useMemo as z, useEffect as q, Fragment as ot, useRef as B, useState as lt, forwardRef as ct, Suspense as ut } from "react";
21
- import { H as be, M as ht, A as dt, u as ft } from "./AnchorLink-Sx89bfCW.js";
22
- import { c as pt } from "./state-Ds_OxRHP.js";
23
- import { M as mt } from "./index-BB2EBBgh.js";
24
- import { R as je, T as Pe, C as we, S as gt } from "./Spinner-3YT-WUu5.js";
25
- import { c as $, i as W, j as Ce, a as vt } from "./util-CYBrkBUo.js";
16
+ import { c as U, d as Ye, R as Je, N as J, b as Xe, e as We, M as Ge, T as Ze, V as et, u as W, a as F, f as tt, g as rt, L as at } from "./Markdown-CGZJUYcj.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-SM2dMVmI.js";
18
+ import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-DLtUZ5Ve.js";
19
+ import { a as Pe, H as je, M as lt, A as ct, u as ut } from "./AnchorLink-DCdBbdqo.js";
20
+ import ht, { StrictMode as Se, createContext as Ne, Component as dt, createElement as he, isValidElement as ft, memo as Ce, useMemo as V, useEffect as I, Fragment as pt, useRef as K, useState as mt, forwardRef as gt, Suspense as vt } from "react";
21
+ import { a as G } from "./_commonjsHelpers-BkfeUUK-.js";
22
+ import { u as yt } from "./router-BkOLuJlq.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as g, m as de, e as fe, f as P, g as xt, i as wt, j as Et, k as Pt, o as pe, r as me, l as jt, p as ge, q as ve, s as St, a as Z, t as Nt, D as Ct, u as Ot, v as At } from "./DevPortalProvider-C-O1s7mm.js";
24
+ import { c as Rt } from "./state-Ds_OxRHP.js";
25
+ import { M as kt } from "./index-CtLNbq0d.js";
26
+ import { R as Re, T as ke, C as Me, S as Mt } from "./Spinner-C1L_TK5f.js";
27
+ import { c as ee, i as X, j as De, a as Dt } from "./util-Cgie7wjb.js";
26
28
  /**
27
29
  * @license lucide-react v0.378.0 - ISC
28
30
  *
29
31
  * This source code is licensed under the ISC license.
30
32
  * See the LICENSE file in the root directory of this source tree.
31
33
  */
32
- const Ne = L("ChevronRight", [
34
+ const _e = U("ChevronRight", [
33
35
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
34
36
  ]);
35
37
  /**
@@ -38,7 +40,7 @@ const Ne = L("ChevronRight", [
38
40
  * This source code is licensed under the ISC license.
39
41
  * See the LICENSE file in the root directory of this source tree.
40
42
  */
41
- const yt = L("ExternalLink", [
43
+ const _t = U("ExternalLink", [
42
44
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
43
45
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
44
46
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -49,7 +51,7 @@ const yt = L("ExternalLink", [
49
51
  * This source code is licensed under the ISC license.
50
52
  * See the LICENSE file in the root directory of this source tree.
51
53
  */
52
- const xt = L("MoonStar", [
54
+ const Tt = U("MoonStar", [
53
55
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
54
56
  ["path", { d: "M20 3v4", key: "1olli1" }],
55
57
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -60,7 +62,7 @@ const xt = L("MoonStar", [
60
62
  * This source code is licensed under the ISC license.
61
63
  * See the LICENSE file in the root directory of this source tree.
62
64
  */
63
- const bt = L("Sun", [
65
+ const Ft = U("Sun", [
64
66
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
65
67
  ["path", { d: "M12 2v2", key: "tus03m" }],
66
68
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -71,453 +73,732 @@ const bt = L("Sun", [
71
73
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
72
74
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
73
75
  ]);
74
- var b, fe, jt = (fe = class extends ge {
76
+ function Qt({ error: t }) {
77
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
78
+ }
79
+ var q = {};
80
+ const It = /* @__PURE__ */ G(yt), qt = /* @__PURE__ */ G(it), Ht = /* @__PURE__ */ G(Ye);
81
+ Object.defineProperty(q, "__esModule", { value: !0 });
82
+ var Lt = ht, E = It, te = qt, j = Ht;
83
+ function Bt(t) {
84
+ if (t && t.__esModule) return t;
85
+ var e = /* @__PURE__ */ Object.create(null);
86
+ return t && Object.keys(t).forEach(function(r) {
87
+ if (r !== "default") {
88
+ var a = Object.getOwnPropertyDescriptor(t, r);
89
+ Object.defineProperty(e, r, a.get ? a : {
90
+ enumerable: !0,
91
+ get: function() {
92
+ return t[r];
93
+ }
94
+ });
95
+ }
96
+ }), e.default = t, Object.freeze(e);
97
+ }
98
+ var x = /* @__PURE__ */ Bt(Lt);
99
+ function zt({
100
+ basename: t,
101
+ children: e,
102
+ location: r = "/",
103
+ future: a
104
+ }) {
105
+ typeof r == "string" && (r = j.parsePath(r));
106
+ let s = E.Action.Pop, o = {
107
+ pathname: r.pathname || "/",
108
+ search: r.search || "",
109
+ hash: r.hash || "",
110
+ state: r.state != null ? r.state : null,
111
+ key: r.key || "default"
112
+ }, i = Te();
113
+ return /* @__PURE__ */ x.createElement(j.Router, {
114
+ basename: t,
115
+ children: e,
116
+ location: o,
117
+ navigationType: s,
118
+ navigator: i,
119
+ future: a,
120
+ static: !0
121
+ });
122
+ }
123
+ function Ut({
124
+ context: t,
125
+ router: e,
126
+ hydrate: r = !0,
127
+ nonce: a
128
+ }) {
129
+ e && t || (process.env.NODE_ENV !== "production" ? E.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : E.UNSAFE_invariant(!1));
130
+ let s = {
131
+ router: e,
132
+ navigator: Te(),
133
+ static: !0,
134
+ staticContext: t,
135
+ basename: t.basename || "/"
136
+ }, o = /* @__PURE__ */ new Map(), i = "";
137
+ if (r !== !1) {
138
+ let u = {
139
+ loaderData: t.loaderData,
140
+ actionData: t.actionData,
141
+ errors: $t(t.errors)
142
+ };
143
+ i = `window.__staticRouterHydrationData = JSON.parse(${Gt(JSON.stringify(JSON.stringify(u)))});`;
144
+ }
145
+ let {
146
+ state: c
147
+ } = s.router;
148
+ return /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterContext.Provider, {
149
+ value: s
150
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_DataRouterStateContext.Provider, {
151
+ value: c
152
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_FetchersContext.Provider, {
153
+ value: o
154
+ }, /* @__PURE__ */ x.createElement(j.UNSAFE_ViewTransitionContext.Provider, {
155
+ value: {
156
+ isTransitioning: !1
157
+ }
158
+ }, /* @__PURE__ */ x.createElement(j.Router, {
159
+ basename: s.basename,
160
+ location: c.location,
161
+ navigationType: c.historyAction,
162
+ navigator: s.navigator,
163
+ static: s.static,
164
+ future: {
165
+ v7_relativeSplatPath: e.future.v7_relativeSplatPath
166
+ }
167
+ }, /* @__PURE__ */ x.createElement(Kt, {
168
+ routes: e.routes,
169
+ future: e.future,
170
+ state: c
171
+ })))))), i ? /* @__PURE__ */ x.createElement("script", {
172
+ suppressHydrationWarning: !0,
173
+ nonce: a,
174
+ dangerouslySetInnerHTML: {
175
+ __html: i
176
+ }
177
+ }) : null);
178
+ }
179
+ function Kt({
180
+ routes: t,
181
+ future: e,
182
+ state: r
183
+ }) {
184
+ return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
185
+ }
186
+ function $t(t) {
187
+ if (!t) return null;
188
+ let e = Object.entries(t), r = {};
189
+ for (let [a, s] of e)
190
+ E.isRouteErrorResponse(s) ? r[a] = {
191
+ ...s,
192
+ __type: "RouteErrorResponse"
193
+ } : s instanceof Error ? r[a] = {
194
+ message: s.message,
195
+ __type: "Error",
196
+ // If this is a subclass (i.e., ReferenceError), send up the type so we
197
+ // can re-create the same type during hydration.
198
+ ...s.name !== "Error" ? {
199
+ __subType: s.name
200
+ } : {}
201
+ } : r[a] = s;
202
+ return r;
203
+ }
204
+ function Te() {
205
+ return {
206
+ createHref: Fe,
207
+ encodeLocation: Qe,
208
+ push(t) {
209
+ throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)})\` somewhere in your app.`);
210
+ },
211
+ replace(t) {
212
+ throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(t)}, { replace: true })\` somewhere in your app.`);
213
+ },
214
+ go(t) {
215
+ throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${t})\` somewhere in your app.`);
216
+ },
217
+ back() {
218
+ throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
219
+ },
220
+ forward() {
221
+ throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
222
+ }
223
+ };
224
+ }
225
+ function Vt(t, e) {
226
+ return E.createStaticHandler(t, {
227
+ ...e,
228
+ mapRouteProperties: te.UNSAFE_mapRouteProperties
229
+ });
230
+ }
231
+ function Yt(t, e, r = {}) {
232
+ let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
233
+ let u = a[c.route.id] || c.route;
234
+ return {
235
+ ...c,
236
+ route: u
237
+ };
238
+ }), i = (c) => `You cannot use router.${c}() on the server because it is a stateless environment`;
239
+ return {
240
+ get basename() {
241
+ return e.basename;
242
+ },
243
+ get future() {
244
+ var c, u;
245
+ return {
246
+ v7_fetcherPersist: !1,
247
+ v7_normalizeFormMethod: !1,
248
+ v7_partialHydration: ((c = r.future) == null ? void 0 : c.v7_partialHydration) === !0,
249
+ v7_prependBasename: !1,
250
+ v7_relativeSplatPath: ((u = r.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
251
+ unstable_skipActionErrorRevalidation: !1
252
+ };
253
+ },
254
+ get state() {
255
+ return {
256
+ historyAction: E.Action.Pop,
257
+ location: e.location,
258
+ matches: o,
259
+ loaderData: e.loaderData,
260
+ actionData: e.actionData,
261
+ errors: e.errors,
262
+ initialized: !0,
263
+ navigation: E.IDLE_NAVIGATION,
264
+ restoreScrollPosition: null,
265
+ preventScrollReset: !1,
266
+ revalidation: "idle",
267
+ fetchers: /* @__PURE__ */ new Map(),
268
+ blockers: /* @__PURE__ */ new Map()
269
+ };
270
+ },
271
+ get routes() {
272
+ return s;
273
+ },
274
+ get window() {
275
+ },
276
+ initialize() {
277
+ throw i("initialize");
278
+ },
279
+ subscribe() {
280
+ throw i("subscribe");
281
+ },
282
+ enableScrollRestoration() {
283
+ throw i("enableScrollRestoration");
284
+ },
285
+ navigate() {
286
+ throw i("navigate");
287
+ },
288
+ fetch() {
289
+ throw i("fetch");
290
+ },
291
+ revalidate() {
292
+ throw i("revalidate");
293
+ },
294
+ createHref: Fe,
295
+ encodeLocation: Qe,
296
+ getFetcher() {
297
+ return E.IDLE_FETCHER;
298
+ },
299
+ deleteFetcher() {
300
+ throw i("deleteFetcher");
301
+ },
302
+ dispose() {
303
+ throw i("dispose");
304
+ },
305
+ getBlocker() {
306
+ return E.IDLE_BLOCKER;
307
+ },
308
+ deleteBlocker() {
309
+ throw i("deleteBlocker");
310
+ },
311
+ patchRoutes() {
312
+ throw i("patchRoutes");
313
+ },
314
+ _internalFetchControllers: /* @__PURE__ */ new Map(),
315
+ _internalActiveDeferreds: /* @__PURE__ */ new Map(),
316
+ _internalSetRoutes() {
317
+ throw i("_internalSetRoutes");
318
+ }
319
+ };
320
+ }
321
+ function Fe(t) {
322
+ return typeof t == "string" ? t : j.createPath(t);
323
+ }
324
+ function Qe(t) {
325
+ let e = typeof t == "string" ? t : j.createPath(t);
326
+ e = e.replace(/ $/, "%20");
327
+ let r = Jt.test(e) ? new URL(e) : new URL(e, "http://localhost");
328
+ return {
329
+ pathname: r.pathname,
330
+ search: r.search,
331
+ hash: r.hash
332
+ };
333
+ }
334
+ const Jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xt = {
335
+ "&": "\\u0026",
336
+ ">": "\\u003e",
337
+ "<": "\\u003c",
338
+ "\u2028": "\\u2028",
339
+ "\u2029": "\\u2029"
340
+ }, Wt = /[&><\u2028\u2029]/g;
341
+ function Gt(t) {
342
+ return t.replace(Wt, (e) => Xt[e]);
343
+ }
344
+ q.StaticRouter = zt;
345
+ var Zt = q.StaticRouterProvider = Ut;
346
+ q.createStaticHandler = Vt;
347
+ q.createStaticRouter = Yt;
348
+ const er = ({
349
+ router: t
350
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), tr = ({
351
+ router: t,
352
+ context: e,
353
+ helmetContext: r
354
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Zt, { router: t, context: e }) }) });
355
+ var w, be, rr = (be = class extends Oe {
75
356
  constructor(e = {}) {
76
357
  super();
77
- y(this, b);
78
- this.config = e, d(this, b, /* @__PURE__ */ new Map());
358
+ y(this, w);
359
+ this.config = e, d(this, w, /* @__PURE__ */ new Map());
79
360
  }
80
- build(e, s, a) {
81
- const n = s.queryKey, o = s.queryHash ?? ve(n, s);
82
- let l = this.get(o);
83
- return l || (l = new _e({
361
+ build(e, r, a) {
362
+ const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
363
+ let i = this.get(o);
364
+ return i || (i = new bt({
84
365
  cache: this,
85
- queryKey: n,
366
+ queryKey: s,
86
367
  queryHash: o,
87
- options: e.defaultQueryOptions(s),
368
+ options: e.defaultQueryOptions(r),
88
369
  state: a,
89
- defaultOptions: e.getQueryDefaults(n)
90
- }), this.add(l)), l;
370
+ defaultOptions: e.getQueryDefaults(s)
371
+ }), this.add(i)), i;
91
372
  }
92
373
  add(e) {
93
- i(this, b).has(e.queryHash) || (i(this, b).set(e.queryHash, e), this.notify({
374
+ l(this, w).has(e.queryHash) || (l(this, w).set(e.queryHash, e), this.notify({
94
375
  type: "added",
95
376
  query: e
96
377
  }));
97
378
  }
98
379
  remove(e) {
99
- const s = i(this, b).get(e.queryHash);
100
- s && (e.destroy(), s === e && i(this, b).delete(e.queryHash), this.notify({ type: "removed", query: e }));
380
+ const r = l(this, w).get(e.queryHash);
381
+ r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
101
382
  }
102
383
  clear() {
103
- m.batch(() => {
384
+ g.batch(() => {
104
385
  this.getAll().forEach((e) => {
105
386
  this.remove(e);
106
387
  });
107
388
  });
108
389
  }
109
390
  get(e) {
110
- return i(this, b).get(e);
391
+ return l(this, w).get(e);
111
392
  }
112
393
  getAll() {
113
- return [...i(this, b).values()];
394
+ return [...l(this, w).values()];
114
395
  }
115
396
  find(e) {
116
- const s = { exact: !0, ...e };
397
+ const r = { exact: !0, ...e };
117
398
  return this.getAll().find(
118
- (a) => re(s, a)
399
+ (a) => de(r, a)
119
400
  );
120
401
  }
121
402
  findAll(e = {}) {
122
- const s = this.getAll();
123
- return Object.keys(e).length > 0 ? s.filter((a) => re(e, a)) : s;
403
+ const r = this.getAll();
404
+ return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
124
405
  }
125
406
  notify(e) {
126
- m.batch(() => {
127
- this.listeners.forEach((s) => {
128
- s(e);
407
+ g.batch(() => {
408
+ this.listeners.forEach((r) => {
409
+ r(e);
129
410
  });
130
411
  });
131
412
  }
132
413
  onFocus() {
133
- m.batch(() => {
414
+ g.batch(() => {
134
415
  this.getAll().forEach((e) => {
135
416
  e.onFocus();
136
417
  });
137
418
  });
138
419
  }
139
420
  onOnline() {
140
- m.batch(() => {
421
+ g.batch(() => {
141
422
  this.getAll().forEach((e) => {
142
423
  e.onOnline();
143
424
  });
144
425
  });
145
426
  }
146
- }, b = new WeakMap(), fe), p, S, pe, Pt = (pe = class extends ge {
427
+ }, w = new WeakMap(), be), m, Q, xe, ar = (xe = class extends Oe {
147
428
  constructor(e = {}) {
148
429
  super();
149
- y(this, p);
150
- y(this, S);
151
- this.config = e, d(this, p, /* @__PURE__ */ new Map()), d(this, S, Date.now());
430
+ y(this, m);
431
+ y(this, Q);
432
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
152
433
  }
153
- build(e, s, a) {
154
- const n = new mt({
434
+ build(e, r, a) {
435
+ const s = new kt({
155
436
  mutationCache: this,
156
- mutationId: ++F(this, S)._,
157
- options: e.defaultMutationOptions(s),
437
+ mutationId: ++L(this, Q)._,
438
+ options: e.defaultMutationOptions(r),
158
439
  state: a
159
440
  });
160
- return this.add(n), n;
441
+ return this.add(s), s;
161
442
  }
162
443
  add(e) {
163
- const s = R(e), a = i(this, p).get(s) ?? [];
164
- a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
444
+ const r = B(e), a = l(this, m).get(r) ?? [];
445
+ a.push(e), l(this, m).set(r, a), this.notify({ type: "added", mutation: e });
165
446
  }
166
447
  remove(e) {
167
448
  var a;
168
- const s = R(e);
169
- if (i(this, p).has(s)) {
170
- const n = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
171
- n && (n.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, n));
449
+ const r = B(e);
450
+ if (l(this, m).has(r)) {
451
+ const s = (a = l(this, m).get(r)) == null ? void 0 : a.filter((o) => o !== e);
452
+ s && (s.length === 0 ? l(this, m).delete(r) : l(this, m).set(r, s));
172
453
  }
173
454
  this.notify({ type: "removed", mutation: e });
174
455
  }
175
456
  canRun(e) {
176
457
  var a;
177
- const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((n) => n.state.status === "pending");
178
- return !s || s === e;
458
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
459
+ return !r || r === e;
179
460
  }
180
461
  runNext(e) {
181
462
  var a;
182
- const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((n) => n !== e && n.state.isPaused);
183
- return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
463
+ const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
464
+ return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
184
465
  }
185
466
  clear() {
186
- m.batch(() => {
467
+ g.batch(() => {
187
468
  this.getAll().forEach((e) => {
188
469
  this.remove(e);
189
470
  });
190
471
  });
191
472
  }
192
473
  getAll() {
193
- return [...i(this, p).values()].flat();
474
+ return [...l(this, m).values()].flat();
194
475
  }
195
476
  find(e) {
196
- const s = { exact: !0, ...e };
477
+ const r = { exact: !0, ...e };
197
478
  return this.getAll().find(
198
- (a) => ie(s, a)
479
+ (a) => fe(r, a)
199
480
  );
200
481
  }
201
482
  findAll(e = {}) {
202
- return this.getAll().filter((s) => ie(e, s));
483
+ return this.getAll().filter((r) => fe(e, r));
203
484
  }
204
485
  notify(e) {
205
- m.batch(() => {
206
- this.listeners.forEach((s) => {
207
- s(e);
486
+ g.batch(() => {
487
+ this.listeners.forEach((r) => {
488
+ r(e);
208
489
  });
209
490
  });
210
491
  }
211
492
  resumePausedMutations() {
212
- const e = this.getAll().filter((s) => s.state.isPaused);
213
- return m.batch(
493
+ const e = this.getAll().filter((r) => r.state.isPaused);
494
+ return g.batch(
214
495
  () => Promise.all(
215
- e.map((s) => s.continue().catch(j))
496
+ e.map((r) => r.continue().catch(P))
216
497
  )
217
498
  );
218
499
  }
219
- }, p = new WeakMap(), S = new WeakMap(), pe);
220
- function R(t) {
500
+ }, m = new WeakMap(), Q = new WeakMap(), xe);
501
+ function B(t) {
221
502
  var e;
222
503
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
223
504
  }
224
- function wt(t) {
505
+ function sr(t) {
225
506
  return {
226
- onFetch: (e, s) => {
507
+ onFetch: (e, r) => {
227
508
  const a = async () => {
228
- var G, J, Y, Z, ee;
229
- const n = e.options, o = (Y = (J = (G = e.fetchOptions) == null ? void 0 : G.meta) == null ? void 0 : J.fetchMore) == null ? void 0 : Y.direction, l = ((Z = e.state.data) == null ? void 0 : Z.pages) || [], c = ((ee = e.state.data) == null ? void 0 : ee.pageParams) || [], h = { pages: [], pageParams: [] };
230
- let g = !1;
231
- const f = (x) => {
232
- Object.defineProperty(x, "signal", {
509
+ var re, ae, se, ne, ie;
510
+ const s = e.options, o = (se = (ae = (re = e.fetchOptions) == null ? void 0 : re.meta) == null ? void 0 : ae.fetchMore) == null ? void 0 : se.direction, i = ((ne = e.state.data) == null ? void 0 : ne.pages) || [], c = ((ie = e.state.data) == null ? void 0 : ie.pageParams) || [], u = { pages: [], pageParams: [] };
511
+ let f = !1;
512
+ const p = (b) => {
513
+ Object.defineProperty(b, "signal", {
233
514
  enumerable: !0,
234
- get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
235
- g = !0;
515
+ get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
516
+ f = !0;
236
517
  }), e.signal)
237
518
  });
238
- }, De = $e(e.options, e.fetchOptions), K = async (x, P, k) => {
239
- if (g)
519
+ }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
520
+ if (f)
240
521
  return Promise.reject();
241
- if (P == null && x.pages.length)
242
- return Promise.resolve(x);
243
- const I = {
522
+ if (S == null && b.pages.length)
523
+ return Promise.resolve(b);
524
+ const H = {
244
525
  queryKey: e.queryKey,
245
- pageParam: P,
246
- direction: k ? "backward" : "forward",
526
+ pageParam: S,
527
+ direction: A ? "backward" : "forward",
247
528
  meta: e.options.meta
248
529
  };
249
- f(I);
250
- const Te = await De(
251
- I
252
- ), { maxPages: te } = e.options, se = k ? Ge : Je;
530
+ p(H);
531
+ const Ke = await Ue(
532
+ H
533
+ ), { maxPages: oe } = e.options, le = A ? wt : Et;
253
534
  return {
254
- pages: se(x.pages, Te, te),
255
- pageParams: se(x.pageParams, P, te)
535
+ pages: le(b.pages, Ke, oe),
536
+ pageParams: le(b.pageParams, S, oe)
256
537
  };
257
538
  };
258
- let O;
259
- if (o && l.length) {
260
- const x = o === "backward", P = x ? Ct : de, k = {
261
- pages: l,
539
+ let R;
540
+ if (o && i.length) {
541
+ const b = o === "backward", S = b ? nr : ye, A = {
542
+ pages: i,
262
543
  pageParams: c
263
- }, I = P(n, k);
264
- O = await K(k, I, x);
544
+ }, H = S(s, A);
545
+ R = await $(A, H, b);
265
546
  } else {
266
- O = await K(
267
- h,
268
- c[0] ?? n.initialPageParam
547
+ R = await $(
548
+ u,
549
+ c[0] ?? s.initialPageParam
269
550
  );
270
- const x = t ?? l.length;
271
- for (let P = 1; P < x; P++) {
272
- const k = de(n, O);
273
- O = await K(O, k);
551
+ const b = t ?? i.length;
552
+ for (let S = 1; S < b; S++) {
553
+ const A = ye(s, R);
554
+ R = await $(R, A);
274
555
  }
275
556
  }
276
- return O;
557
+ return R;
277
558
  };
278
559
  e.options.persister ? e.fetchFn = () => {
279
- var n, o;
280
- return (o = (n = e.options).persister) == null ? void 0 : o.call(
281
- n,
560
+ var s, o;
561
+ return (o = (s = e.options).persister) == null ? void 0 : o.call(
562
+ s,
282
563
  a,
283
564
  {
284
565
  queryKey: e.queryKey,
285
566
  meta: e.options.meta,
286
567
  signal: e.signal
287
568
  },
288
- s
569
+ r
289
570
  );
290
571
  } : e.fetchFn = a;
291
572
  }
292
573
  };
293
574
  }
294
- function de(t, { pages: e, pageParams: s }) {
575
+ function ye(t, { pages: e, pageParams: r }) {
295
576
  const a = e.length - 1;
296
577
  return t.getNextPageParam(
297
578
  e[a],
298
579
  e,
299
- s[a],
300
- s
580
+ r[a],
581
+ r
301
582
  );
302
583
  }
303
- function Ct(t, { pages: e, pageParams: s }) {
584
+ function nr(t, { pages: e, pageParams: r }) {
304
585
  var a;
305
586
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
306
587
  t,
307
588
  e[0],
308
589
  e,
309
- s[0],
310
- s
590
+ r[0],
591
+ r
311
592
  );
312
593
  }
313
- var u, w, C, M, A, N, E, Q, me, Nt = (me = class {
594
+ var h, N, C, k, M, O, D, _, we, ir = (we = class {
314
595
  constructor(t = {}) {
315
- y(this, u);
316
- y(this, w);
596
+ y(this, h);
597
+ y(this, N);
317
598
  y(this, C);
599
+ y(this, k);
318
600
  y(this, M);
319
- y(this, A);
320
- y(this, N);
321
- y(this, E);
322
- y(this, Q);
323
- d(this, u, t.queryCache || new jt()), d(this, w, t.mutationCache || new Pt()), d(this, C, t.defaultOptions || {}), d(this, M, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
601
+ y(this, O);
602
+ y(this, D);
603
+ y(this, _);
604
+ d(this, h, t.queryCache || new rr()), d(this, N, t.mutationCache || new ar()), d(this, C, t.defaultOptions || {}), d(this, k, /* @__PURE__ */ new Map()), d(this, M, /* @__PURE__ */ new Map()), d(this, O, 0);
324
605
  }
325
606
  mount() {
326
- F(this, N)._++, i(this, N) === 1 && (d(this, E, Ye.subscribe(async (t) => {
327
- t && (await this.resumePausedMutations(), i(this, u).onFocus());
328
- })), d(this, Q, oe.subscribe(async (t) => {
329
- t && (await this.resumePausedMutations(), i(this, u).onOnline());
607
+ L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
608
+ t && (await this.resumePausedMutations(), l(this, h).onFocus());
609
+ })), d(this, _, pe.subscribe(async (t) => {
610
+ t && (await this.resumePausedMutations(), l(this, h).onOnline());
330
611
  })));
331
612
  }
332
613
  unmount() {
333
614
  var t, e;
334
- F(this, N)._--, i(this, N) === 0 && ((t = i(this, E)) == null || t.call(this), d(this, E, void 0), (e = i(this, Q)) == null || e.call(this), d(this, Q, void 0));
615
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), d(this, D, void 0), (e = l(this, _)) == null || e.call(this), d(this, _, void 0));
335
616
  }
336
617
  isFetching(t) {
337
- return i(this, u).findAll({ ...t, fetchStatus: "fetching" }).length;
618
+ return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
338
619
  }
339
620
  isMutating(t) {
340
- return i(this, w).findAll({ ...t, status: "pending" }).length;
621
+ return l(this, N).findAll({ ...t, status: "pending" }).length;
341
622
  }
342
623
  getQueryData(t) {
343
- var s;
624
+ var r;
344
625
  const e = this.defaultQueryOptions({ queryKey: t });
345
- return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state.data;
626
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state.data;
346
627
  }
347
628
  ensureQueryData(t) {
348
629
  const e = this.getQueryData(t.queryKey);
349
630
  if (e === void 0)
350
631
  return this.fetchQuery(t);
351
632
  {
352
- const s = this.defaultQueryOptions(t), a = i(this, u).build(this, s);
353
- return t.revalidateIfStale && a.isStaleByTime(le(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
633
+ const r = this.defaultQueryOptions(t), a = l(this, h).build(this, r);
634
+ return t.revalidateIfStale && a.isStaleByTime(me(r.staleTime, a)) && this.prefetchQuery(r), Promise.resolve(e);
354
635
  }
355
636
  }
356
637
  getQueriesData(t) {
357
- return i(this, u).findAll(t).map(({ queryKey: e, state: s }) => {
358
- const a = s.data;
638
+ return l(this, h).findAll(t).map(({ queryKey: e, state: r }) => {
639
+ const a = r.data;
359
640
  return [e, a];
360
641
  });
361
642
  }
362
- setQueryData(t, e, s) {
363
- const a = this.defaultQueryOptions({ queryKey: t }), n = i(this, u).get(
643
+ setQueryData(t, e, r) {
644
+ const a = this.defaultQueryOptions({ queryKey: t }), s = l(this, h).get(
364
645
  a.queryHash
365
- ), o = n == null ? void 0 : n.state.data, l = Ze(e, o);
366
- if (l !== void 0)
367
- return i(this, u).build(this, a).setData(l, { ...s, manual: !0 });
646
+ ), o = s == null ? void 0 : s.state.data, i = jt(e, o);
647
+ if (i !== void 0)
648
+ return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
368
649
  }
369
- setQueriesData(t, e, s) {
370
- return m.batch(
371
- () => i(this, u).findAll(t).map(({ queryKey: a }) => [
650
+ setQueriesData(t, e, r) {
651
+ return g.batch(
652
+ () => l(this, h).findAll(t).map(({ queryKey: a }) => [
372
653
  a,
373
- this.setQueryData(a, e, s)
654
+ this.setQueryData(a, e, r)
374
655
  ])
375
656
  );
376
657
  }
377
658
  getQueryState(t) {
378
- var s;
659
+ var r;
379
660
  const e = this.defaultQueryOptions({ queryKey: t });
380
- return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state;
661
+ return (r = l(this, h).get(e.queryHash)) == null ? void 0 : r.state;
381
662
  }
382
663
  removeQueries(t) {
383
- const e = i(this, u);
384
- m.batch(() => {
385
- e.findAll(t).forEach((s) => {
386
- e.remove(s);
664
+ const e = l(this, h);
665
+ g.batch(() => {
666
+ e.findAll(t).forEach((r) => {
667
+ e.remove(r);
387
668
  });
388
669
  });
389
670
  }
390
671
  resetQueries(t, e) {
391
- const s = i(this, u), a = {
672
+ const r = l(this, h), a = {
392
673
  type: "active",
393
674
  ...t
394
675
  };
395
- return m.batch(() => (s.findAll(t).forEach((n) => {
396
- n.reset();
676
+ return g.batch(() => (r.findAll(t).forEach((s) => {
677
+ s.reset();
397
678
  }), this.refetchQueries(a, e)));
398
679
  }
399
680
  cancelQueries(t = {}, e = {}) {
400
- const s = { revert: !0, ...e }, a = m.batch(
401
- () => i(this, u).findAll(t).map((n) => n.cancel(s))
681
+ const r = { revert: !0, ...e }, a = g.batch(
682
+ () => l(this, h).findAll(t).map((s) => s.cancel(r))
402
683
  );
403
- return Promise.all(a).then(j).catch(j);
684
+ return Promise.all(a).then(P).catch(P);
404
685
  }
405
686
  invalidateQueries(t = {}, e = {}) {
406
- return m.batch(() => {
407
- if (i(this, u).findAll(t).forEach((a) => {
687
+ return g.batch(() => {
688
+ if (l(this, h).findAll(t).forEach((a) => {
408
689
  a.invalidate();
409
690
  }), t.refetchType === "none")
410
691
  return Promise.resolve();
411
- const s = {
692
+ const r = {
412
693
  ...t,
413
694
  type: t.refetchType ?? t.type ?? "active"
414
695
  };
415
- return this.refetchQueries(s, e);
696
+ return this.refetchQueries(r, e);
416
697
  });
417
698
  }
418
699
  refetchQueries(t = {}, e) {
419
- const s = {
700
+ const r = {
420
701
  ...e,
421
702
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
422
- }, a = m.batch(
423
- () => i(this, u).findAll(t).filter((n) => !n.isDisabled()).map((n) => {
424
- let o = n.fetch(void 0, s);
425
- return s.throwOnError || (o = o.catch(j)), n.state.fetchStatus === "paused" ? Promise.resolve() : o;
703
+ }, a = g.batch(
704
+ () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
705
+ let o = s.fetch(void 0, r);
706
+ return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
426
707
  })
427
708
  );
428
- return Promise.all(a).then(j);
709
+ return Promise.all(a).then(P);
429
710
  }
430
711
  fetchQuery(t) {
431
712
  const e = this.defaultQueryOptions(t);
432
713
  e.retry === void 0 && (e.retry = !1);
433
- const s = i(this, u).build(this, e);
434
- return s.isStaleByTime(
435
- le(e.staleTime, s)
436
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
714
+ const r = l(this, h).build(this, e);
715
+ return r.isStaleByTime(
716
+ me(e.staleTime, r)
717
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
437
718
  }
438
719
  prefetchQuery(t) {
439
- return this.fetchQuery(t).then(j).catch(j);
720
+ return this.fetchQuery(t).then(P).catch(P);
440
721
  }
441
722
  fetchInfiniteQuery(t) {
442
- return t.behavior = wt(t.pages), this.fetchQuery(t);
723
+ return t.behavior = sr(t.pages), this.fetchQuery(t);
443
724
  }
444
725
  prefetchInfiniteQuery(t) {
445
- return this.fetchInfiniteQuery(t).then(j).catch(j);
726
+ return this.fetchInfiniteQuery(t).then(P).catch(P);
446
727
  }
447
728
  resumePausedMutations() {
448
- return oe.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
729
+ return pe.isOnline() ? l(this, N).resumePausedMutations() : Promise.resolve();
449
730
  }
450
731
  getQueryCache() {
451
- return i(this, u);
732
+ return l(this, h);
452
733
  }
453
734
  getMutationCache() {
454
- return i(this, w);
735
+ return l(this, N);
455
736
  }
456
737
  getDefaultOptions() {
457
- return i(this, C);
738
+ return l(this, C);
458
739
  }
459
740
  setDefaultOptions(t) {
460
741
  d(this, C, t);
461
742
  }
462
743
  setQueryDefaults(t, e) {
463
- i(this, M).set(ce(t), {
744
+ l(this, k).set(ge(t), {
464
745
  queryKey: t,
465
746
  defaultOptions: e
466
747
  });
467
748
  }
468
749
  getQueryDefaults(t) {
469
- const e = [...i(this, M).values()];
470
- let s = {};
750
+ const e = [...l(this, k).values()];
751
+ let r = {};
471
752
  return e.forEach((a) => {
472
- ue(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
473
- }), s;
753
+ ve(t, a.queryKey) && (r = { ...r, ...a.defaultOptions });
754
+ }), r;
474
755
  }
475
756
  setMutationDefaults(t, e) {
476
- i(this, A).set(ce(t), {
757
+ l(this, M).set(ge(t), {
477
758
  mutationKey: t,
478
759
  defaultOptions: e
479
760
  });
480
761
  }
481
762
  getMutationDefaults(t) {
482
- const e = [...i(this, A).values()];
483
- let s = {};
763
+ const e = [...l(this, M).values()];
764
+ let r = {};
484
765
  return e.forEach((a) => {
485
- ue(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
486
- }), s;
766
+ ve(t, a.mutationKey) && (r = { ...r, ...a.defaultOptions });
767
+ }), r;
487
768
  }
488
769
  defaultQueryOptions(t) {
489
770
  if (t._defaulted)
490
771
  return t;
491
772
  const e = {
492
- ...i(this, C).queries,
773
+ ...l(this, C).queries,
493
774
  ...this.getQueryDefaults(t.queryKey),
494
775
  ...t,
495
776
  _defaulted: !0
496
777
  };
497
- return e.queryHash || (e.queryHash = ve(
778
+ return e.queryHash || (e.queryHash = Ae(
498
779
  e.queryKey,
499
780
  e
500
- )), 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.enabled !== !0 && e.queryFn === et && (e.enabled = !1), e;
781
+ )), 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.enabled !== !0 && e.queryFn === St && (e.enabled = !1), e;
501
782
  }
502
783
  defaultMutationOptions(t) {
503
784
  return t != null && t._defaulted ? t : {
504
- ...i(this, C).mutations,
785
+ ...l(this, C).mutations,
505
786
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
506
787
  ...t,
507
788
  _defaulted: !0
508
789
  };
509
790
  }
510
791
  clear() {
511
- i(this, u).clear(), i(this, w).clear();
792
+ l(this, h).clear(), l(this, N).clear();
512
793
  }
513
- }, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), M = new WeakMap(), A = new WeakMap(), N = new WeakMap(), E = new WeakMap(), Q = new WeakMap(), me);
514
- const kt = ye(null), V = {
794
+ }, h = new WeakMap(), N = new WeakMap(), C = new WeakMap(), k = new WeakMap(), M = new WeakMap(), O = new WeakMap(), D = new WeakMap(), _ = new WeakMap(), we);
795
+ const or = Ne(null), Y = {
515
796
  didCatch: !1,
516
797
  error: null
517
798
  };
518
- class Ot extends rt {
799
+ class lr extends dt {
519
800
  constructor(e) {
520
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = V;
801
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
521
802
  }
522
803
  static getDerivedStateFromError(e) {
523
804
  return {
@@ -530,73 +811,73 @@ class Ot extends rt {
530
811
  error: e
531
812
  } = this.state;
532
813
  if (e !== null) {
533
- for (var s, a, n = arguments.length, o = new Array(n), l = 0; l < n; l++)
534
- o[l] = arguments[l];
535
- (s = (a = this.props).onReset) === null || s === void 0 || s.call(a, {
814
+ for (var r, a, s = arguments.length, o = new Array(s), i = 0; i < s; i++)
815
+ o[i] = arguments[i];
816
+ (r = (a = this.props).onReset) === null || r === void 0 || r.call(a, {
536
817
  args: o,
537
818
  reason: "imperative-api"
538
- }), this.setState(V);
819
+ }), this.setState(Y);
539
820
  }
540
821
  }
541
- componentDidCatch(e, s) {
542
- var a, n;
543
- (a = (n = this.props).onError) === null || a === void 0 || a.call(n, e, s);
822
+ componentDidCatch(e, r) {
823
+ var a, s;
824
+ (a = (s = this.props).onError) === null || a === void 0 || a.call(s, e, r);
544
825
  }
545
- componentDidUpdate(e, s) {
826
+ componentDidUpdate(e, r) {
546
827
  const {
547
828
  didCatch: a
548
829
  } = this.state, {
549
- resetKeys: n
830
+ resetKeys: s
550
831
  } = this.props;
551
- if (a && s.error !== null && Mt(e.resetKeys, n)) {
552
- var o, l;
553
- (o = (l = this.props).onReset) === null || o === void 0 || o.call(l, {
554
- next: n,
832
+ if (a && r.error !== null && cr(e.resetKeys, s)) {
833
+ var o, i;
834
+ (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
835
+ next: s,
555
836
  prev: e.resetKeys,
556
837
  reason: "keys"
557
- }), this.setState(V);
838
+ }), this.setState(Y);
558
839
  }
559
840
  }
560
841
  render() {
561
842
  const {
562
843
  children: e,
563
- fallbackRender: s,
844
+ fallbackRender: r,
564
845
  FallbackComponent: a,
565
- fallback: n
846
+ fallback: s
566
847
  } = this.props, {
567
848
  didCatch: o,
568
- error: l
849
+ error: i
569
850
  } = this.state;
570
851
  let c = e;
571
852
  if (o) {
572
- const h = {
573
- error: l,
853
+ const u = {
854
+ error: i,
574
855
  resetErrorBoundary: this.resetErrorBoundary
575
856
  };
576
- if (typeof s == "function")
577
- c = s(h);
857
+ if (typeof r == "function")
858
+ c = r(u);
578
859
  else if (a)
579
- c = he(a, h);
580
- else if (n === null || it(n))
581
- c = n;
860
+ c = he(a, u);
861
+ else if (s === null || ft(s))
862
+ c = s;
582
863
  else
583
- throw l;
864
+ throw i;
584
865
  }
585
- return he(kt.Provider, {
866
+ return he(or.Provider, {
586
867
  value: {
587
868
  didCatch: o,
588
- error: l,
869
+ error: i,
589
870
  resetErrorBoundary: this.resetErrorBoundary
590
871
  }
591
872
  }, c);
592
873
  }
593
874
  }
594
- function Mt() {
875
+ function cr() {
595
876
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
596
- return t.length !== e.length || t.some((s, a) => !Object.is(s, e[a]));
877
+ return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
597
878
  }
598
- const At = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Et = (t) => "initialize" in t && typeof t.initialize == "function", Qt = (t) => "getHead" in t && typeof t.getHead == "function", Dt = (t) => "getIdentities" in t && typeof t.getIdentities == "function", ke = new Nt(), Tt = pt(() => ({}));
599
- class St {
879
+ const ur = (t) => "getRoutes" in t && typeof t.getRoutes == "function", hr = (t) => "initialize" in t && typeof t.initialize == "function", dr = (t) => "getHead" in t && typeof t.getHead == "function", fr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new ir(), pr = Rt(() => ({}));
880
+ class mr {
600
881
  constructor(e) {
601
882
  v(this, "plugins", []);
602
883
  v(this, "navigationPlugins");
@@ -607,152 +888,152 @@ class St {
607
888
  v(this, "state");
608
889
  v(this, "initialize", async () => {
609
890
  await Promise.all([
610
- this.plugins.filter(Et).map((e) => {
611
- var s;
612
- return (s = e.initialize) == null ? void 0 : s.call(e, this);
891
+ this.plugins.filter(hr).map((e) => {
892
+ var r;
893
+ return (r = e.initialize) == null ? void 0 : r.call(e, this);
613
894
  })
614
895
  ]);
615
896
  });
616
897
  v(this, "invalidateCache", async (e) => {
617
- await ke.invalidateQueries({ queryKey: e });
898
+ await Ie.invalidateQueries({ queryKey: e });
618
899
  });
619
900
  v(this, "getApiIdentities", async () => (await Promise.all(
620
- this.plugins.filter(Dt).map((s) => s.getIdentities(this))
901
+ this.plugins.filter(fr).map((r) => r.getIdentities(this))
621
902
  )).flat());
622
903
  v(this, "getNavigation", async (e) => (await Promise.all(
623
904
  this.navigationPlugins.map(
624
905
  async (a) => {
625
- var n;
626
- return (n = a.getNavigation) == null ? void 0 : n.call(a, e);
906
+ var s;
907
+ return (s = a.getNavigation) == null ? void 0 : s.call(a, e);
627
908
  }
628
909
  )
629
910
  )).flatMap((a) => a ?? []));
630
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(At), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Tt;
911
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(ur), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = pr;
631
912
  }
632
913
  async signRequest(e) {
633
914
  if (!this.authentication)
634
915
  throw new Error("No authentication provider configured");
635
- const s = await this.authentication.getAccessToken();
636
- return e.headers.set("Authorization", `Bearer ${s}`), e;
916
+ const r = await this.authentication.getAccessToken();
917
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
637
918
  }
638
919
  }
639
- function qt({ error: t, resetErrorBoundary: e }) {
640
- return /* @__PURE__ */ r.jsx(Ve, { error: t });
920
+ function gr({ error: t, resetErrorBoundary: e }) {
921
+ return /* @__PURE__ */ n.jsx(Ee, { error: t });
641
922
  }
642
- const It = () => {
643
- const { navigation: t } = _();
644
- return t.length <= 1 ? null : /* @__PURE__ */ r.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
645
- U,
923
+ const vr = () => {
924
+ const { navigation: t } = Z();
925
+ return t.length <= 1 ? null : /* @__PURE__ */ n.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ n.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
926
+ J,
646
927
  {
647
- className: ({ isActive: s }) => Ie(
928
+ className: ({ isActive: r }) => Xe(
648
929
  "block py-3.5 font-medium -mb-px border-b-2",
649
- s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
930
+ r ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
650
931
  ),
651
932
  to: e.path,
652
933
  children: e.label
653
934
  }
654
935
  ) }, e.label)) }) });
655
- }, Oe = xe(function() {
656
- const [e, s] = Fe(), { isAuthenticated: a, profile: n, isAuthEnabled: o, login: l, logout: c } = Ue(), { page: h } = _(), g = e ? xt : bt;
657
- return /* @__PURE__ */ r.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
658
- /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
659
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
660
- (h == null ? void 0 : h.logo) && /* @__PURE__ */ r.jsx("img", { src: h.logo, alt: h.pageTitle, className: "h-10" }),
661
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
936
+ }, qe = Ce(function() {
937
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), f = e ? Tt : Ft;
938
+ return /* @__PURE__ */ n.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ n.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
939
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b border-border px-12 h-[--top-header-height]", children: [
940
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
941
+ (u == null ? void 0 : u.logo) && /* @__PURE__ */ n.jsx("img", { src: u.logo, alt: u.pageTitle, className: "h-10" }),
942
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
662
943
  ] }),
663
- /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
664
- /* @__PURE__ */ r.jsx("div", { className: "w-full max-w-prose" }),
665
- /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
666
- o && /* @__PURE__ */ r.jsx(r.Fragment, { children: a ? /* @__PURE__ */ r.jsxs(
944
+ /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
945
+ /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
946
+ /* @__PURE__ */ n.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex", children: [
947
+ o && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsxs(
667
948
  "button",
668
949
  {
669
950
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
670
951
  onClick: c,
671
952
  children: [
672
953
  "Logout ",
673
- n != null && n.email ? `(${n.email})` : null
954
+ s != null && s.email ? `(${s.email})` : null
674
955
  ]
675
956
  }
676
- ) : /* @__PURE__ */ r.jsx(
957
+ ) : /* @__PURE__ */ n.jsx(
677
958
  "button",
678
959
  {
679
960
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded",
680
- onClick: l,
961
+ onClick: i,
681
962
  children: "Login"
682
963
  }
683
964
  ) }),
684
- /* @__PURE__ */ r.jsx(
965
+ /* @__PURE__ */ n.jsx(
685
966
  "button",
686
967
  {
687
968
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
688
- onClick: s,
689
- children: /* @__PURE__ */ r.jsx(g, { size: 18 })
969
+ onClick: r,
970
+ children: /* @__PURE__ */ n.jsx(f, { size: 18 })
690
971
  }
691
972
  )
692
973
  ] })
693
974
  ] })
694
975
  ] }),
695
- /* @__PURE__ */ r.jsx(It, {})
976
+ /* @__PURE__ */ n.jsx(vr, {})
696
977
  ] }) });
697
- }), Me = {
698
- Header: Oe
699
- }, Ft = ye(Me), Rt = Ft.Provider, Ht = ({
978
+ }), He = {
979
+ Header: qe
980
+ }, yr = Ne(He), br = yr.Provider, xr = ({
700
981
  children: t,
701
982
  ...e
702
983
  }) => {
703
- var l;
704
- const s = z(
705
- () => ({ ...Me, ...e.overrides }),
984
+ var i;
985
+ const r = V(
986
+ () => ({ ...He, ...e.overrides }),
706
987
  [e.overrides]
707
- ), a = z(
708
- () => ({ ...Re, ...e.mdxComponents }),
988
+ ), a = V(
989
+ () => ({ ...Ge, ...e.mdxComponents }),
709
990
  [e.mdxComponents]
710
- ), n = z(() => new St(e), [e]);
711
- q(() => {
712
- n.initialize();
713
- }, [n]);
714
- const o = (l = e.plugins) == null ? void 0 : l.filter(Qt).map((c, h) => {
715
- var g;
716
- return /* @__PURE__ */ r.jsx(ot, { children: (g = c.getHead) == null ? void 0 : g.call(c) }, h);
991
+ ), s = V(() => new mr(e), [e]);
992
+ I(() => {
993
+ s.initialize();
994
+ }, [s]);
995
+ const o = (i = e.plugins) == null ? void 0 : i.filter(dr).map((c, u) => {
996
+ var f;
997
+ return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
717
998
  });
718
- return /* @__PURE__ */ r.jsxs(tt, { client: ke, children: [
719
- /* @__PURE__ */ r.jsx(be, { children: o }),
720
- /* @__PURE__ */ r.jsx(st, { value: n, children: /* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(Rt, { value: s, children: /* @__PURE__ */ r.jsx(Le, { children: t }) }) }) }) })
999
+ return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1000
+ /* @__PURE__ */ n.jsx(je, { children: o }),
1001
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(br, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
721
1002
  ] });
722
- }, Lt = xe(Ht), Ae = (t) => /* @__PURE__ */ r.jsx(Ot, { FallbackComponent: qt, children: /* @__PURE__ */ r.jsx(Lt, { ...t }) });
723
- Ae.displayName = "DevPortal";
724
- const Bt = () => {
725
- const t = D(), { setActiveAnchor: e } = X();
726
- q(() => {
1003
+ }, wr = Ce(xr), Le = (t) => /* @__PURE__ */ n.jsx(lr, { FallbackComponent: gr, children: /* @__PURE__ */ n.jsx(wr, { ...t }) });
1004
+ Le.displayName = "DevPortal";
1005
+ const Er = () => {
1006
+ const t = T(), { setActiveAnchor: e } = W();
1007
+ I(() => {
727
1008
  if (!t.hash) return;
728
- const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
1009
+ const r = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(r));
729
1010
  if (a) {
730
1011
  requestAnimationFrame(() => {
731
- a.scrollIntoView(), requestIdleCallback(() => e(s));
1012
+ a.scrollIntoView(), requestIdleCallback(() => e(r));
732
1013
  });
733
1014
  return;
734
1015
  }
735
- const n = new MutationObserver((o, l) => {
736
- const c = document.getElementById(decodeURIComponent(s));
737
- c && (c.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
1016
+ const s = new MutationObserver((o, i) => {
1017
+ const c = document.getElementById(decodeURIComponent(r));
1018
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(r)), i.disconnect());
738
1019
  });
739
- return n.observe(document.body, { childList: !0, subtree: !0 }), () => n.disconnect();
1020
+ return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
740
1021
  }, [t.hash, e]);
741
- }, Kt = () => {
742
- const t = D(), e = B(t.pathname);
743
- q(() => {
1022
+ }, Pr = () => {
1023
+ const t = T(), e = K(t.pathname);
1024
+ I(() => {
744
1025
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
745
1026
  }, [t.pathname]);
746
- }, Ee = ({
1027
+ }, Be = ({
747
1028
  item: t,
748
1029
  defaultOpen: e,
749
- path: s
1030
+ path: r
750
1031
  }) => {
751
- const [a, n] = lt(e), o = D(), l = B(o.pathname);
752
- return q(() => {
753
- !a && l.current !== o.pathname && n($(t, o.pathname, s)), l.current = o.pathname;
754
- }, [a, t, s, o.pathname]), [a, n];
755
- }, H = Be(
1032
+ const [a, s] = mt(e), o = T(), i = K(o.pathname);
1033
+ return I(() => {
1034
+ !a && i.current !== o.pathname && s(ee(t, o.pathname, r)), i.current = o.pathname;
1035
+ }, [a, t, r, o.pathname]), [a, s];
1036
+ }, z = tt(
756
1037
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
757
1038
  {
758
1039
  variants: {
@@ -766,126 +1047,126 @@ const Bt = () => {
766
1047
  }
767
1048
  }
768
1049
  }
769
- ), zt = "data-anchor", Qe = ({
1050
+ ), jr = "data-anchor", ze = ({
770
1051
  category: t,
771
1052
  item: e,
772
- activeAnchor: s,
1053
+ activeAnchor: r,
773
1054
  currentTopNavItem: a,
774
- basePath: n = ""
1055
+ basePath: s = ""
775
1056
  }) => {
776
- const o = W(e) ? Ce(n, e.path) : "", l = D(), [c, h] = Ee({
1057
+ const o = X(e) ? De(s, e.path) : "", i = T(), [c, u] = Be({
777
1058
  item: e,
778
1059
  path: o,
779
- defaultOpen: () => $(e, l.pathname, o)
1060
+ defaultOpen: () => ee(e, i.pathname, o)
780
1061
  });
781
- if (vt(e)) {
782
- const f = T(
1062
+ if (Dt(e)) {
1063
+ const p = F(
783
1064
  "flex items-center gap-2",
784
- H({
785
- isActive: e.href === l.pathname
1065
+ z({
1066
+ isActive: e.href === i.pathname
786
1067
  })
787
1068
  );
788
- return e.href.startsWith("http") ? /* @__PURE__ */ r.jsxs(
1069
+ return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
789
1070
  "a",
790
1071
  {
791
- className: f,
1072
+ className: p,
792
1073
  href: e.href,
793
1074
  target: "_blank",
794
1075
  rel: "noopener noreferrer",
795
1076
  children: [
796
1077
  e.label,
797
- /* @__PURE__ */ r.jsx(yt, { size: 14 })
1078
+ /* @__PURE__ */ n.jsx(_t, { size: 14 })
798
1079
  ]
799
1080
  }
800
- ) : /* @__PURE__ */ r.jsx(U, { className: f, to: e.href, children: e.label });
1081
+ ) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
801
1082
  }
802
- const g = /* @__PURE__ */ r.jsxs("div", { className: "flex justify-between w-full", children: [
803
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1083
+ const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1084
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
804
1085
  e.icon,
805
- typeof e.label != "string" ? e.label : /* @__PURE__ */ r.jsx("span", { className: "truncate", children: e.label })
1086
+ typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
806
1087
  ] }),
807
- e.children && /* @__PURE__ */ r.jsx(
808
- Ne,
1088
+ e.children && /* @__PURE__ */ n.jsx(
1089
+ _e,
809
1090
  {
810
1091
  size: 16,
811
1092
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
812
1093
  }
813
1094
  )
814
1095
  ] });
815
- return /* @__PURE__ */ r.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ r.jsxs(
816
- je,
1096
+ return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
1097
+ Re,
817
1098
  {
818
1099
  open: c,
819
- onOpenChange: () => h((f) => !f),
1100
+ onOpenChange: () => u((p) => !p),
820
1101
  className: "flex flex-col",
821
1102
  children: [
822
- /* @__PURE__ */ r.jsx(
823
- Pe,
1103
+ /* @__PURE__ */ n.jsx(
1104
+ ke,
824
1105
  {
825
- className: T(
1106
+ className: F(
826
1107
  "group text-start",
827
- H({ isActive: !1 })
1108
+ z({ isActive: !1 })
828
1109
  ),
829
- children: g
1110
+ children: f
830
1111
  }
831
1112
  ),
832
- /* @__PURE__ */ r.jsx(we, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ r.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((f) => /* @__PURE__ */ r.jsx(
833
- Qe,
1113
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ n.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((p) => /* @__PURE__ */ n.jsx(
1114
+ ze,
834
1115
  {
835
1116
  category: t,
836
- item: f,
837
- activeAnchor: s,
1117
+ item: p,
1118
+ activeAnchor: r,
838
1119
  currentTopNavItem: a,
839
1120
  basePath: o
840
1121
  },
841
- W(f) ? f.path : f.href
1122
+ X(p) ? p.path : p.href
842
1123
  )) }) })
843
1124
  ]
844
1125
  }
845
- ) : e.path.startsWith("#") ? /* @__PURE__ */ r.jsx(
846
- dt,
1126
+ ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
1127
+ ct,
847
1128
  {
848
1129
  to: e.path,
849
- [zt]: e.path,
850
- className: H({
851
- isActive: e.path.slice(1) === s,
1130
+ [jr]: e.path,
1131
+ className: z({
1132
+ isActive: e.path.slice(1) === r,
852
1133
  isMuted: e.muted
853
1134
  }),
854
- children: g
1135
+ children: f
855
1136
  }
856
- ) : /* @__PURE__ */ r.jsx(
857
- U,
1137
+ ) : /* @__PURE__ */ n.jsx(
1138
+ J,
858
1139
  {
859
- className: ({ isActive: f }) => H({ isActive: f }),
1140
+ className: ({ isActive: p }) => z({ isActive: p }),
860
1141
  to: o,
861
- children: g
1142
+ children: f
862
1143
  }
863
1144
  ) });
864
- }, Vt = ({
1145
+ }, Sr = ({
865
1146
  category: t
866
1147
  }) => {
867
- const { activeAnchor: e } = X(), s = at(), a = D(), n = t.collapsible ?? !0, [o, l] = Ee({
1148
+ const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
868
1149
  item: t,
869
- path: (s == null ? void 0 : s.path) ?? "",
870
- defaultOpen: () => !n || t.expanded || $(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
1150
+ path: (r == null ? void 0 : r.path) ?? "",
1151
+ defaultOpen: () => !s || t.expanded || ee(t, a.pathname, (r == null ? void 0 : r.path) ?? "")
871
1152
  });
872
- return /* @__PURE__ */ r.jsxs(
873
- je,
1153
+ return /* @__PURE__ */ n.jsxs(
1154
+ Re,
874
1155
  {
875
1156
  open: o,
876
- onOpenChange: () => l((c) => !c),
1157
+ onOpenChange: () => i((c) => !c),
877
1158
  children: [
878
- t.label.length > 0 ? /* @__PURE__ */ r.jsx(Pe, { asChild: n, disabled: !n, children: /* @__PURE__ */ r.jsxs(
1159
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(ke, { asChild: s, disabled: !s, children: /* @__PURE__ */ n.jsxs(
879
1160
  "h5",
880
1161
  {
881
- className: T(
1162
+ className: F(
882
1163
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
883
- n ? "hover:bg-accent" : "cursor-auto"
1164
+ s ? "hover:bg-accent" : "cursor-auto"
884
1165
  ),
885
1166
  children: [
886
1167
  t.label,
887
- n && /* @__PURE__ */ r.jsx(
888
- Ne,
1168
+ s && /* @__PURE__ */ n.jsx(
1169
+ _e,
889
1170
  {
890
1171
  className: "group-data-[state=open]:rotate-90 transition",
891
1172
  size: 16
@@ -894,85 +1175,88 @@ const Bt = () => {
894
1175
  ]
895
1176
  }
896
1177
  ) }) : "Endpoints",
897
- /* @__PURE__ */ r.jsx(we, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ r.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ r.jsx(
898
- Qe,
1178
+ /* @__PURE__ */ n.jsx(Me, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ n.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((c) => /* @__PURE__ */ n.jsx(
1179
+ ze,
899
1180
  {
900
1181
  category: t,
901
1182
  item: c,
902
1183
  activeAnchor: e,
903
- currentTopNavItem: s,
904
- basePath: Ce(s == null ? void 0 : s.path, t.path)
1184
+ currentTopNavItem: r,
1185
+ basePath: De(r == null ? void 0 : r.path, t.path)
905
1186
  },
906
- W(c) ? c.path + c.label : c.href
1187
+ X(c) ? c.path + c.label : c.href
907
1188
  )) }) })
908
1189
  ]
909
1190
  },
910
1191
  t.label
911
1192
  );
912
- }, Ut = ct(function({ children: e, className: s, pushMainContent: a }, n) {
913
- return /* @__PURE__ */ r.jsx(
1193
+ }, Nr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
1194
+ return /* @__PURE__ */ n.jsx(
914
1195
  "nav",
915
1196
  {
916
1197
  "data-navigation": String(a),
917
- className: T(
1198
+ className: F(
918
1199
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
919
- s
1200
+ r
920
1201
  ),
921
- ref: n,
1202
+ ref: s,
922
1203
  children: e
923
1204
  }
924
1205
  );
925
- }), Wt = () => {
926
- const t = B(null), e = nt();
927
- return /* @__PURE__ */ r.jsx(
928
- Ut,
1206
+ }), Cr = () => {
1207
+ const t = K(null), e = At();
1208
+ return /* @__PURE__ */ n.jsx(
1209
+ Nr,
929
1210
  {
930
1211
  ref: t,
931
1212
  pushMainContent: e.data.items.length > 0,
932
- children: e.data.items.map((s) => /* @__PURE__ */ r.jsx(Vt, { category: s }, s.label))
1213
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Sr, { category: r }, r.label))
933
1214
  }
934
1215
  );
935
- }, Xt = ({ children: t }) => {
936
- const e = D(), { setActiveAnchor: s } = X(), { meta: a } = _();
937
- Bt(), Kt();
938
- const n = B(e.pathname);
939
- return q(() => {
940
- e.pathname !== n.current && s(""), n.current = e.pathname;
941
- }, [e.pathname, s]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
942
- /* @__PURE__ */ r.jsxs(be, { titleTemplate: a == null ? void 0 : a.title, children: [
943
- (a == null ? void 0 : a.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: a.description }),
944
- (a == null ? void 0 : a.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: a.favicon })
1216
+ }, Or = ({ children: t }) => {
1217
+ const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1218
+ Er(), Pr();
1219
+ const s = K(e.pathname);
1220
+ return I(() => {
1221
+ e.pathname !== s.current && r(""), s.current = e.pathname;
1222
+ }, [e.pathname, r]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1223
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
1224
+ (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
1225
+ (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
945
1226
  ] }),
946
- /* @__PURE__ */ r.jsx(Oe, {}),
947
- /* @__PURE__ */ r.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ r.jsxs(
948
- ut,
1227
+ /* @__PURE__ */ n.jsx(qe, {}),
1228
+ /* @__PURE__ */ n.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ n.jsxs(
1229
+ vt,
949
1230
  {
950
- fallback: /* @__PURE__ */ r.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ r.jsx(gt, {}) }),
1231
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
951
1232
  children: [
952
- /* @__PURE__ */ r.jsx(Wt, {}),
953
- /* @__PURE__ */ r.jsx(
1233
+ /* @__PURE__ */ n.jsx(Cr, {}),
1234
+ /* @__PURE__ */ n.jsx(
954
1235
  "main",
955
1236
  {
956
- className: T(
1237
+ className: F(
957
1238
  "dark:border-white/10 translate-x-0 h-full",
958
1239
  "lg:overflow-visible",
959
1240
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
960
1241
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12"
961
1242
  ),
962
- children: t ?? /* @__PURE__ */ r.jsx(Xe, {})
1243
+ children: t ?? /* @__PURE__ */ n.jsx(ot, {})
963
1244
  }
964
1245
  )
965
1246
  ]
966
1247
  }
967
1248
  ) })
968
1249
  ] });
969
- }, rs = ft, is = Ke, os = Ae, ls = Xt, cs = ze, us = We;
1250
+ }, Br = ut, zr = rt, Ur = Le, Kr = Or, $r = at, Vr = nt, Yr = Qt, Jr = er, Xr = tr;
970
1251
  export {
971
- is as Callout,
972
- os as DevPortal,
973
- ls as Layout,
974
- cs as Link,
975
- us as RouterError,
976
- rs as useMDXComponents
1252
+ Jr as Bootstrap,
1253
+ Xr as BootstrapStatic,
1254
+ zr as Callout,
1255
+ Ur as DevPortal,
1256
+ Kr as Layout,
1257
+ $r as Link,
1258
+ Vr as RouterError,
1259
+ Yr as ServerError,
1260
+ Br as useMDXComponents
977
1261
  };
978
1262
  //# sourceMappingURL=zudoku.components.js.map