zudoku 0.3.0-dev.50 → 0.3.0-dev.52

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.
@@ -4,27 +4,26 @@ var ce = (t) => {
4
4
  };
5
5
  var Ve = (t, e, r) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
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);
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), f = (t, e, r, a) => (ue(t, e, "write to private field"), a ? a.call(t, r) : e.set(t, r), r);
8
8
  var L = (t, e, r, a) => ({
9
9
  set _(s) {
10
- d(t, e, s, r);
10
+ f(t, e, s, r);
11
11
  },
12
12
  get _() {
13
13
  return l(t, e, a);
14
14
  }
15
15
  });
16
16
  import { c as U, d as Ye, R as Je, N as J, a as Xe, u as We, M as Ge, T as Ze, V as et, b as W, e as F, f as tt, C as rt, L as at } from "./Markdown-Dbzrtopg.js";
17
- import { E as Ee, u as st, R as nt } from "./hook-DCYGmylw.js";
17
+ import { E as Ee, u as st, R as nt } from "./hook-CGFJQf_n.js";
18
18
  import { j as n, d as it, u as T, O as ot } from "./jsx-runtime-CJZJivg2.js";
19
19
  import { H as Pe, a as je, M as lt, A as ct, u as ut } from "./AnchorLink-CZUp-F0P.js";
20
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
21
  import { g as G } from "./_commonjsHelpers-BVfed4GL.js";
22
22
  import { r as yt } from "./router-CBw2vqJE.js";
23
- import { S as Oe, h as Ae, Q as bt, n as g, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
- import { c as Rt } from "./state-D36MLDHk.js";
25
- import { M as kt } from "./index-CXXn0D4E.js";
26
- import { R as Re, T as ke, C as Me, S as Mt } from "./Spinner-BSk0ImmP.js";
27
- import { c as ee, i as X, j as De, a as Dt } from "./util-_jwUlTBU.js";
23
+ import { S as Oe, h as Ae, Q as bt, n as m, m as de, a as fe, b as P, e as xt, c as wt, d as Et, f as Pt, o as pe, r as me, g as jt, i as ge, p as ve, s as St, u as Z, j as Nt, D as Ct, k as Ot, l as At } from "./DevPortalProvider-Do9oJqme.js";
24
+ import { M as Rt } from "./index-CXXn0D4E.js";
25
+ import { R as Re, T as ke, C as Me, S as kt } from "./Spinner-BSk0ImmP.js";
26
+ import { c as ee, i as X, j as De, a as Mt } from "./util-_jwUlTBU.js";
28
27
  /**
29
28
  * @license lucide-react v0.378.0 - ISC
30
29
  *
@@ -40,7 +39,7 @@ const _e = U("ChevronRight", [
40
39
  * This source code is licensed under the ISC license.
41
40
  * See the LICENSE file in the root directory of this source tree.
42
41
  */
43
- const _t = U("ExternalLink", [
42
+ const Dt = U("ExternalLink", [
44
43
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
45
44
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
46
45
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -51,7 +50,7 @@ const _t = U("ExternalLink", [
51
50
  * This source code is licensed under the ISC license.
52
51
  * See the LICENSE file in the root directory of this source tree.
53
52
  */
54
- const Tt = U("MoonStar", [
53
+ const _t = U("MoonStar", [
55
54
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
56
55
  ["path", { d: "M20 3v4", key: "1olli1" }],
57
56
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -62,7 +61,7 @@ const Tt = U("MoonStar", [
62
61
  * This source code is licensed under the ISC license.
63
62
  * See the LICENSE file in the root directory of this source tree.
64
63
  */
65
- const Ft = U("Sun", [
64
+ const Tt = U("Sun", [
66
65
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
67
66
  ["path", { d: "M12 2v2", key: "tus03m" }],
68
67
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -73,14 +72,14 @@ const Ft = U("Sun", [
73
72
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
74
73
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
75
74
  ]);
76
- function Qt({ error: t }) {
75
+ function Ft({ error: t }) {
77
76
  return /* @__PURE__ */ n.jsx(Ee, { error: t });
78
77
  }
79
78
  var q = {};
80
- const It = /* @__PURE__ */ G(yt), qt = /* @__PURE__ */ G(it), Ht = /* @__PURE__ */ G(Ye);
79
+ const Qt = /* @__PURE__ */ G(yt), It = /* @__PURE__ */ G(it), qt = /* @__PURE__ */ G(Ye);
81
80
  Object.defineProperty(q, "__esModule", { value: !0 });
82
- var Lt = ht, E = It, te = qt, j = Ht;
83
- function Bt(t) {
81
+ var Ht = ht, E = Qt, te = It, j = qt;
82
+ function Lt(t) {
84
83
  if (t && t.__esModule) return t;
85
84
  var e = /* @__PURE__ */ Object.create(null);
86
85
  return t && Object.keys(t).forEach(function(r) {
@@ -95,8 +94,8 @@ function Bt(t) {
95
94
  }
96
95
  }), e.default = t, Object.freeze(e);
97
96
  }
98
- var x = /* @__PURE__ */ Bt(Lt);
99
- function zt({
97
+ var x = /* @__PURE__ */ Lt(Ht);
98
+ function Bt({
100
99
  basename: t,
101
100
  children: e,
102
101
  location: r = "/",
@@ -120,7 +119,7 @@ function zt({
120
119
  static: !0
121
120
  });
122
121
  }
123
- function Ut({
122
+ function zt({
124
123
  context: t,
125
124
  router: e,
126
125
  hydrate: r = !0,
@@ -138,9 +137,9 @@ function Ut({
138
137
  let u = {
139
138
  loaderData: t.loaderData,
140
139
  actionData: t.actionData,
141
- errors: $t(t.errors)
140
+ errors: Kt(t.errors)
142
141
  };
143
- i = `window.__staticRouterHydrationData = JSON.parse(${Gt(JSON.stringify(JSON.stringify(u)))});`;
142
+ i = `window.__staticRouterHydrationData = JSON.parse(${Wt(JSON.stringify(JSON.stringify(u)))});`;
144
143
  }
145
144
  let {
146
145
  state: c
@@ -164,7 +163,7 @@ function Ut({
164
163
  future: {
165
164
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
166
165
  }
167
- }, /* @__PURE__ */ x.createElement(Kt, {
166
+ }, /* @__PURE__ */ x.createElement(Ut, {
168
167
  routes: e.routes,
169
168
  future: e.future,
170
169
  state: c
@@ -176,14 +175,14 @@ function Ut({
176
175
  }
177
176
  }) : null);
178
177
  }
179
- function Kt({
178
+ function Ut({
180
179
  routes: t,
181
180
  future: e,
182
181
  state: r
183
182
  }) {
184
183
  return te.UNSAFE_useRoutesImpl(t, void 0, r, e);
185
184
  }
186
- function $t(t) {
185
+ function Kt(t) {
187
186
  if (!t) return null;
188
187
  let e = Object.entries(t), r = {};
189
188
  for (let [a, s] of e)
@@ -222,13 +221,13 @@ function Te() {
222
221
  }
223
222
  };
224
223
  }
225
- function Vt(t, e) {
224
+ function $t(t, e) {
226
225
  return E.createStaticHandler(t, {
227
226
  ...e,
228
227
  mapRouteProperties: te.UNSAFE_mapRouteProperties
229
228
  });
230
229
  }
231
- function Yt(t, e, r = {}) {
230
+ function Vt(t, e, r = {}) {
232
231
  let a = {}, s = E.UNSAFE_convertRoutesToDataRoutes(t, te.UNSAFE_mapRouteProperties, void 0, a), o = e.matches.map((c) => {
233
232
  let u = a[c.route.id] || c.route;
234
233
  return {
@@ -324,39 +323,39 @@ function Fe(t) {
324
323
  function Qe(t) {
325
324
  let e = typeof t == "string" ? t : j.createPath(t);
326
325
  e = e.replace(/ $/, "%20");
327
- let r = Jt.test(e) ? new URL(e) : new URL(e, "http://localhost");
326
+ let r = Yt.test(e) ? new URL(e) : new URL(e, "http://localhost");
328
327
  return {
329
328
  pathname: r.pathname,
330
329
  search: r.search,
331
330
  hash: r.hash
332
331
  };
333
332
  }
334
- const Jt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Xt = {
333
+ const Yt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Jt = {
335
334
  "&": "\\u0026",
336
335
  ">": "\\u003e",
337
336
  "<": "\\u003c",
338
337
  "\u2028": "\\u2028",
339
338
  "\u2029": "\\u2029"
340
- }, Wt = /[&><\u2028\u2029]/g;
341
- function Gt(t) {
342
- return t.replace(Wt, (e) => Xt[e]);
339
+ }, Xt = /[&><\u2028\u2029]/g;
340
+ function Wt(t) {
341
+ return t.replace(Xt, (e) => Jt[e]);
343
342
  }
344
- q.StaticRouter = zt;
345
- var Zt = q.StaticRouterProvider = Ut;
346
- q.createStaticHandler = Vt;
347
- q.createStaticRouter = Yt;
348
- const er = ({
343
+ q.StaticRouter = Bt;
344
+ var Gt = q.StaticRouterProvider = zt;
345
+ q.createStaticHandler = $t;
346
+ q.createStaticRouter = Vt;
347
+ const Zt = ({
349
348
  router: t
350
- }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), tr = ({
349
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { children: /* @__PURE__ */ n.jsx(Je, { router: t }) }) }), er = ({
351
350
  router: t,
352
351
  context: e,
353
352
  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 {
353
+ }) => /* @__PURE__ */ n.jsx(Se, { children: /* @__PURE__ */ n.jsx(Pe, { context: r, children: /* @__PURE__ */ n.jsx(Gt, { router: t, context: e }) }) });
354
+ var w, be, tr = (be = class extends Oe {
356
355
  constructor(e = {}) {
357
356
  super();
358
357
  y(this, w);
359
- this.config = e, d(this, w, /* @__PURE__ */ new Map());
358
+ this.config = e, f(this, w, /* @__PURE__ */ new Map());
360
359
  }
361
360
  build(e, r, a) {
362
361
  const s = r.queryKey, o = r.queryHash ?? Ae(s, r);
@@ -381,7 +380,7 @@ var w, be, rr = (be = class extends Oe {
381
380
  r && (e.destroy(), r === e && l(this, w).delete(e.queryHash), this.notify({ type: "removed", query: e }));
382
381
  }
383
382
  clear() {
384
- g.batch(() => {
383
+ m.batch(() => {
385
384
  this.getAll().forEach((e) => {
386
385
  this.remove(e);
387
386
  });
@@ -404,35 +403,35 @@ var w, be, rr = (be = class extends Oe {
404
403
  return Object.keys(e).length > 0 ? r.filter((a) => de(e, a)) : r;
405
404
  }
406
405
  notify(e) {
407
- g.batch(() => {
406
+ m.batch(() => {
408
407
  this.listeners.forEach((r) => {
409
408
  r(e);
410
409
  });
411
410
  });
412
411
  }
413
412
  onFocus() {
414
- g.batch(() => {
413
+ m.batch(() => {
415
414
  this.getAll().forEach((e) => {
416
415
  e.onFocus();
417
416
  });
418
417
  });
419
418
  }
420
419
  onOnline() {
421
- g.batch(() => {
420
+ m.batch(() => {
422
421
  this.getAll().forEach((e) => {
423
422
  e.onOnline();
424
423
  });
425
424
  });
426
425
  }
427
- }, w = new WeakMap(), be), m, Q, xe, ar = (xe = class extends Oe {
426
+ }, w = new WeakMap(), be), p, Q, xe, rr = (xe = class extends Oe {
428
427
  constructor(e = {}) {
429
428
  super();
430
- y(this, m);
429
+ y(this, p);
431
430
  y(this, Q);
432
- this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, Q, Date.now());
431
+ this.config = e, f(this, p, /* @__PURE__ */ new Map()), f(this, Q, Date.now());
433
432
  }
434
433
  build(e, r, a) {
435
- const s = new kt({
434
+ const s = new Rt({
436
435
  mutationCache: this,
437
436
  mutationId: ++L(this, Q)._,
438
437
  options: e.defaultMutationOptions(r),
@@ -441,37 +440,37 @@ var w, be, rr = (be = class extends Oe {
441
440
  return this.add(s), s;
442
441
  }
443
442
  add(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 });
443
+ const r = B(e), a = l(this, p).get(r) ?? [];
444
+ a.push(e), l(this, p).set(r, a), this.notify({ type: "added", mutation: e });
446
445
  }
447
446
  remove(e) {
448
447
  var a;
449
448
  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));
449
+ if (l(this, p).has(r)) {
450
+ const s = (a = l(this, p).get(r)) == null ? void 0 : a.filter((o) => o !== e);
451
+ s && (s.length === 0 ? l(this, p).delete(r) : l(this, p).set(r, s));
453
452
  }
454
453
  this.notify({ type: "removed", mutation: e });
455
454
  }
456
455
  canRun(e) {
457
456
  var a;
458
- const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
457
+ const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s.state.status === "pending");
459
458
  return !r || r === e;
460
459
  }
461
460
  runNext(e) {
462
461
  var a;
463
- const r = (a = l(this, m).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
462
+ const r = (a = l(this, p).get(B(e))) == null ? void 0 : a.find((s) => s !== e && s.state.isPaused);
464
463
  return (r == null ? void 0 : r.continue()) ?? Promise.resolve();
465
464
  }
466
465
  clear() {
467
- g.batch(() => {
466
+ m.batch(() => {
468
467
  this.getAll().forEach((e) => {
469
468
  this.remove(e);
470
469
  });
471
470
  });
472
471
  }
473
472
  getAll() {
474
- return [...l(this, m).values()].flat();
473
+ return [...l(this, p).values()].flat();
475
474
  }
476
475
  find(e) {
477
476
  const r = { exact: !0, ...e };
@@ -483,7 +482,7 @@ var w, be, rr = (be = class extends Oe {
483
482
  return this.getAll().filter((r) => fe(e, r));
484
483
  }
485
484
  notify(e) {
486
- g.batch(() => {
485
+ m.batch(() => {
487
486
  this.listeners.forEach((r) => {
488
487
  r(e);
489
488
  });
@@ -491,33 +490,33 @@ var w, be, rr = (be = class extends Oe {
491
490
  }
492
491
  resumePausedMutations() {
493
492
  const e = this.getAll().filter((r) => r.state.isPaused);
494
- return g.batch(
493
+ return m.batch(
495
494
  () => Promise.all(
496
495
  e.map((r) => r.continue().catch(P))
497
496
  )
498
497
  );
499
498
  }
500
- }, m = new WeakMap(), Q = new WeakMap(), xe);
499
+ }, p = new WeakMap(), Q = new WeakMap(), xe);
501
500
  function B(t) {
502
501
  var e;
503
502
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
504
503
  }
505
- function sr(t) {
504
+ function ar(t) {
506
505
  return {
507
506
  onFetch: (e, r) => {
508
507
  const a = async () => {
509
508
  var re, ae, se, ne, ie;
510
509
  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) => {
510
+ let g = !1;
511
+ const d = (b) => {
513
512
  Object.defineProperty(b, "signal", {
514
513
  enumerable: !0,
515
- get: () => (e.signal.aborted ? f = !0 : e.signal.addEventListener("abort", () => {
516
- f = !0;
514
+ get: () => (e.signal.aborted ? g = !0 : e.signal.addEventListener("abort", () => {
515
+ g = !0;
517
516
  }), e.signal)
518
517
  });
519
518
  }, Ue = xt(e.options, e.fetchOptions), $ = async (b, S, A) => {
520
- if (f)
519
+ if (g)
521
520
  return Promise.reject();
522
521
  if (S == null && b.pages.length)
523
522
  return Promise.resolve(b);
@@ -527,7 +526,7 @@ function sr(t) {
527
526
  direction: A ? "backward" : "forward",
528
527
  meta: e.options.meta
529
528
  };
530
- p(H);
529
+ d(H);
531
530
  const Ke = await Ue(
532
531
  H
533
532
  ), { maxPages: oe } = e.options, le = A ? wt : Et;
@@ -538,7 +537,7 @@ function sr(t) {
538
537
  };
539
538
  let R;
540
539
  if (o && i.length) {
541
- const b = o === "backward", S = b ? nr : ye, A = {
540
+ const b = o === "backward", S = b ? sr : ye, A = {
542
541
  pages: i,
543
542
  pageParams: c
544
543
  }, H = S(s, A);
@@ -581,7 +580,7 @@ function ye(t, { pages: e, pageParams: r }) {
581
580
  r
582
581
  );
583
582
  }
584
- function nr(t, { pages: e, pageParams: r }) {
583
+ function sr(t, { pages: e, pageParams: r }) {
585
584
  var a;
586
585
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
587
586
  t,
@@ -591,7 +590,7 @@ function nr(t, { pages: e, pageParams: r }) {
591
590
  r
592
591
  );
593
592
  }
594
- var h, N, C, k, M, O, D, _, we, ir = (we = class {
593
+ var h, N, C, k, M, O, D, _, we, nr = (we = class {
595
594
  constructor(t = {}) {
596
595
  y(this, h);
597
596
  y(this, N);
@@ -601,18 +600,18 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
601
600
  y(this, O);
602
601
  y(this, D);
603
602
  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);
603
+ f(this, h, t.queryCache || new tr()), f(this, N, t.mutationCache || new rr()), f(this, C, t.defaultOptions || {}), f(this, k, /* @__PURE__ */ new Map()), f(this, M, /* @__PURE__ */ new Map()), f(this, O, 0);
605
604
  }
606
605
  mount() {
607
- L(this, O)._++, l(this, O) === 1 && (d(this, D, Pt.subscribe(async (t) => {
606
+ L(this, O)._++, l(this, O) === 1 && (f(this, D, Pt.subscribe(async (t) => {
608
607
  t && (await this.resumePausedMutations(), l(this, h).onFocus());
609
- })), d(this, _, pe.subscribe(async (t) => {
608
+ })), f(this, _, pe.subscribe(async (t) => {
610
609
  t && (await this.resumePausedMutations(), l(this, h).onOnline());
611
610
  })));
612
611
  }
613
612
  unmount() {
614
613
  var t, e;
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));
614
+ L(this, O)._--, l(this, O) === 0 && ((t = l(this, D)) == null || t.call(this), f(this, D, void 0), (e = l(this, _)) == null || e.call(this), f(this, _, void 0));
616
615
  }
617
616
  isFetching(t) {
618
617
  return l(this, h).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -648,7 +647,7 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
648
647
  return l(this, h).build(this, a).setData(i, { ...r, manual: !0 });
649
648
  }
650
649
  setQueriesData(t, e, r) {
651
- return g.batch(
650
+ return m.batch(
652
651
  () => l(this, h).findAll(t).map(({ queryKey: a }) => [
653
652
  a,
654
653
  this.setQueryData(a, e, r)
@@ -662,7 +661,7 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
662
661
  }
663
662
  removeQueries(t) {
664
663
  const e = l(this, h);
665
- g.batch(() => {
664
+ m.batch(() => {
666
665
  e.findAll(t).forEach((r) => {
667
666
  e.remove(r);
668
667
  });
@@ -673,18 +672,18 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
673
672
  type: "active",
674
673
  ...t
675
674
  };
676
- return g.batch(() => (r.findAll(t).forEach((s) => {
675
+ return m.batch(() => (r.findAll(t).forEach((s) => {
677
676
  s.reset();
678
677
  }), this.refetchQueries(a, e)));
679
678
  }
680
679
  cancelQueries(t = {}, e = {}) {
681
- const r = { revert: !0, ...e }, a = g.batch(
680
+ const r = { revert: !0, ...e }, a = m.batch(
682
681
  () => l(this, h).findAll(t).map((s) => s.cancel(r))
683
682
  );
684
683
  return Promise.all(a).then(P).catch(P);
685
684
  }
686
685
  invalidateQueries(t = {}, e = {}) {
687
- return g.batch(() => {
686
+ return m.batch(() => {
688
687
  if (l(this, h).findAll(t).forEach((a) => {
689
688
  a.invalidate();
690
689
  }), t.refetchType === "none")
@@ -700,7 +699,7 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
700
699
  const r = {
701
700
  ...e,
702
701
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
703
- }, a = g.batch(
702
+ }, a = m.batch(
704
703
  () => l(this, h).findAll(t).filter((s) => !s.isDisabled()).map((s) => {
705
704
  let o = s.fetch(void 0, r);
706
705
  return r.throwOnError || (o = o.catch(P)), s.state.fetchStatus === "paused" ? Promise.resolve() : o;
@@ -720,7 +719,7 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
720
719
  return this.fetchQuery(t).then(P).catch(P);
721
720
  }
722
721
  fetchInfiniteQuery(t) {
723
- return t.behavior = sr(t.pages), this.fetchQuery(t);
722
+ return t.behavior = ar(t.pages), this.fetchQuery(t);
724
723
  }
725
724
  prefetchInfiniteQuery(t) {
726
725
  return this.fetchInfiniteQuery(t).then(P).catch(P);
@@ -738,7 +737,7 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
738
737
  return l(this, C);
739
738
  }
740
739
  setDefaultOptions(t) {
741
- d(this, C, t);
740
+ f(this, C, t);
742
741
  }
743
742
  setQueryDefaults(t, e) {
744
743
  l(this, k).set(ge(t), {
@@ -792,11 +791,11 @@ var h, N, C, k, M, O, D, _, we, ir = (we = class {
792
791
  l(this, h).clear(), l(this, N).clear();
793
792
  }
794
793
  }, 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 = {
794
+ const ir = Ne(null), Y = {
796
795
  didCatch: !1,
797
796
  error: null
798
797
  };
799
- class lr extends dt {
798
+ class or extends dt {
800
799
  constructor(e) {
801
800
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Y;
802
801
  }
@@ -829,7 +828,7 @@ class lr extends dt {
829
828
  } = this.state, {
830
829
  resetKeys: s
831
830
  } = this.props;
832
- if (a && r.error !== null && cr(e.resetKeys, s)) {
831
+ if (a && r.error !== null && lr(e.resetKeys, s)) {
833
832
  var o, i;
834
833
  (o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
835
834
  next: s,
@@ -863,7 +862,7 @@ class lr extends dt {
863
862
  else
864
863
  throw i;
865
864
  }
866
- return he(or.Provider, {
865
+ return he(ir.Provider, {
867
866
  value: {
868
867
  didCatch: o,
869
868
  error: i,
@@ -872,23 +871,22 @@ class lr extends dt {
872
871
  }, c);
873
872
  }
874
873
  }
875
- function cr() {
874
+ function lr() {
876
875
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
877
876
  return t.length !== e.length || t.some((r, a) => !Object.is(r, e[a]));
878
877
  }
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 {
878
+ const cr = (t) => "getRoutes" in t && typeof t.getRoutes == "function", ur = (t) => "initialize" in t && typeof t.initialize == "function", hr = (t) => "getHead" in t && typeof t.getHead == "function", dr = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ie = new nr();
879
+ class fr {
881
880
  constructor(e) {
882
881
  v(this, "plugins", []);
883
882
  v(this, "navigation");
884
883
  v(this, "meta");
885
884
  v(this, "page");
886
885
  v(this, "authentication");
887
- v(this, "state");
888
886
  v(this, "navigationPlugins");
889
887
  v(this, "initialize", async () => {
890
888
  await Promise.all([
891
- this.plugins.filter(hr).map((e) => {
889
+ this.plugins.filter(ur).map((e) => {
892
890
  var r;
893
891
  return (r = e.initialize) == null ? void 0 : r.call(e, this);
894
892
  })
@@ -898,7 +896,7 @@ class mr {
898
896
  await Ie.invalidateQueries({ queryKey: e });
899
897
  });
900
898
  v(this, "getApiIdentities", async () => (await Promise.all(
901
- this.plugins.filter(fr).map((r) => r.getIdentities(this))
899
+ this.plugins.filter(dr).map((r) => r.getIdentities(this))
902
900
  )).flat());
903
901
  v(this, "getNavigation", async (e) => (await Promise.all(
904
902
  this.navigationPlugins.map(
@@ -908,19 +906,19 @@ class mr {
908
906
  }
909
907
  )
910
908
  )).flatMap((a) => a ?? []));
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;
912
- }
913
- async signRequest(e) {
914
- if (!this.authentication)
915
- throw new Error("No authentication provider configured");
916
- const r = await this.authentication.getAccessToken();
917
- return e.headers.set("Authorization", `Bearer ${r}`), e;
909
+ v(this, "signRequest", async (e) => {
910
+ if (!this.authentication)
911
+ throw new Error("No authentication provider configured");
912
+ const r = await this.authentication.getAccessToken();
913
+ return e.headers.set("Authorization", `Bearer ${r}`), e;
914
+ });
915
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(cr), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
918
916
  }
919
917
  }
920
- function gr({ error: t, resetErrorBoundary: e }) {
918
+ function pr({ error: t, resetErrorBoundary: e }) {
921
919
  return /* @__PURE__ */ n.jsx(Ee, { error: t });
922
920
  }
923
- const vr = () => {
921
+ const mr = () => {
924
922
  const { navigation: t } = Z();
925
923
  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
924
  J,
@@ -934,7 +932,7 @@ const vr = () => {
934
932
  }
935
933
  ) }, e.label)) }) });
936
934
  }, 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;
935
+ const [e, r] = We(), { isAuthenticated: a, profile: s, isAuthEnabled: o, login: i, logout: c } = st(), { page: u } = Z(), g = e ? _t : Tt;
938
936
  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
937
  /* @__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
938
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -971,42 +969,45 @@ const vr = () => {
971
969
  "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
972
970
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
973
971
  onClick: r,
974
- children: /* @__PURE__ */ n.jsx(f, { size: 18 })
972
+ children: /* @__PURE__ */ n.jsx(g, { size: 18 })
975
973
  }
976
974
  )
977
975
  ] })
978
976
  ] })
979
977
  ] }),
980
- /* @__PURE__ */ n.jsx(vr, {})
978
+ /* @__PURE__ */ n.jsx(mr, {})
981
979
  ] }) });
982
980
  }), He = {
983
981
  Header: qe
984
- }, yr = Ne(He), br = yr.Provider, xr = ({
982
+ }, gr = Ne(He), vr = gr.Provider, yr = ({
985
983
  children: t,
986
984
  ...e
987
985
  }) => {
988
- var i;
986
+ var i, c;
989
987
  const r = V(
990
988
  () => ({ ...He, ...e.overrides }),
991
989
  [e.overrides]
992
990
  ), a = V(
993
- () => ({ ...Ge, ...e.mdxComponents }),
994
- [e.mdxComponents]
995
- ), s = V(() => new mr(e), [e]);
991
+ () => {
992
+ var u;
993
+ return { ...Ge, ...(u = e.mdx) == null ? void 0 : u.components };
994
+ },
995
+ [(i = e.mdx) == null ? void 0 : i.components]
996
+ ), s = V(() => new fr(e), [e]);
996
997
  I(() => {
997
998
  s.initialize();
998
999
  }, [s]);
999
- const o = (i = e.plugins) == null ? void 0 : i.filter(dr).map((c, u) => {
1000
- var f;
1001
- return /* @__PURE__ */ n.jsx(pt, { children: (f = c.getHead) == null ? void 0 : f.call(c) }, u);
1000
+ const o = (c = e.plugins) == null ? void 0 : c.filter(hr).map((u, g) => {
1001
+ var d;
1002
+ return /* @__PURE__ */ n.jsx(pt, { children: (d = u.getHead) == null ? void 0 : d.call(u) }, g);
1002
1003
  });
1003
1004
  return /* @__PURE__ */ n.jsxs(Nt, { client: Ie, children: [
1004
1005
  /* @__PURE__ */ n.jsx(je, { children: o }),
1005
- /* @__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 }) }) }) }) })
1006
+ /* @__PURE__ */ n.jsx(Ct, { value: s, children: /* @__PURE__ */ n.jsx(lt, { components: a, children: /* @__PURE__ */ n.jsx(Ze, { children: /* @__PURE__ */ n.jsx(vr, { value: r, children: /* @__PURE__ */ n.jsx(et, { children: t }) }) }) }) })
1006
1007
  ] });
1007
- }, wr = Ce(xr), Le = (t) => /* @__PURE__ */ n.jsx(lr, { FallbackComponent: gr, children: /* @__PURE__ */ n.jsx(wr, { ...t }) });
1008
+ }, br = Ce(yr), Le = (t) => /* @__PURE__ */ n.jsx(or, { FallbackComponent: pr, children: /* @__PURE__ */ n.jsx(br, { ...t }) });
1008
1009
  Le.displayName = "DevPortal";
1009
- const Er = () => {
1010
+ const xr = () => {
1010
1011
  const t = T(), { setActiveAnchor: e } = W();
1011
1012
  I(() => {
1012
1013
  if (!t.hash) return;
@@ -1023,7 +1024,7 @@ const Er = () => {
1023
1024
  });
1024
1025
  return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
1025
1026
  }, [t.hash, e]);
1026
- }, Pr = () => {
1027
+ }, wr = () => {
1027
1028
  const t = T(), e = K(t.pathname);
1028
1029
  I(() => {
1029
1030
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
@@ -1051,7 +1052,7 @@ const Er = () => {
1051
1052
  }
1052
1053
  }
1053
1054
  }
1054
- ), jr = "data-anchor", ze = ({
1055
+ ), Er = "data-anchor", ze = ({
1055
1056
  category: t,
1056
1057
  item: e,
1057
1058
  activeAnchor: r,
@@ -1063,8 +1064,8 @@ const Er = () => {
1063
1064
  path: o,
1064
1065
  defaultOpen: () => ee(e, i.pathname, o)
1065
1066
  });
1066
- if (Dt(e)) {
1067
- const p = F(
1067
+ if (Mt(e)) {
1068
+ const d = F(
1068
1069
  "flex items-center gap-2",
1069
1070
  z({
1070
1071
  isActive: e.href === i.pathname
@@ -1073,18 +1074,18 @@ const Er = () => {
1073
1074
  return e.href.startsWith("http") ? /* @__PURE__ */ n.jsxs(
1074
1075
  "a",
1075
1076
  {
1076
- className: p,
1077
+ className: d,
1077
1078
  href: e.href,
1078
1079
  target: "_blank",
1079
1080
  rel: "noopener noreferrer",
1080
1081
  children: [
1081
1082
  e.label,
1082
- /* @__PURE__ */ n.jsx(_t, { size: 14 })
1083
+ /* @__PURE__ */ n.jsx(Dt, { size: 14 })
1083
1084
  ]
1084
1085
  }
1085
- ) : /* @__PURE__ */ n.jsx(J, { className: p, to: e.href, children: e.label });
1086
+ ) : /* @__PURE__ */ n.jsx(J, { className: d, to: e.href, children: e.label });
1086
1087
  }
1087
- const f = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1088
+ const g = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
1088
1089
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1089
1090
  e.icon,
1090
1091
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
@@ -1101,7 +1102,7 @@ const Er = () => {
1101
1102
  Re,
1102
1103
  {
1103
1104
  open: c,
1104
- onOpenChange: () => u((p) => !p),
1105
+ onOpenChange: () => u((d) => !d),
1105
1106
  className: "flex flex-col",
1106
1107
  children: [
1107
1108
  /* @__PURE__ */ n.jsx(
@@ -1111,19 +1112,19 @@ const Er = () => {
1111
1112
  "group text-start",
1112
1113
  z({ isActive: !1 })
1113
1114
  ),
1114
- children: f
1115
+ children: g
1115
1116
  }
1116
1117
  ),
1117
- /* @__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(
1118
+ /* @__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((d) => /* @__PURE__ */ n.jsx(
1118
1119
  ze,
1119
1120
  {
1120
1121
  category: t,
1121
- item: p,
1122
+ item: d,
1122
1123
  activeAnchor: r,
1123
1124
  currentTopNavItem: a,
1124
1125
  basePath: o
1125
1126
  },
1126
- X(p) ? p.path : p.href
1127
+ X(d) ? d.path : d.href
1127
1128
  )) }) })
1128
1129
  ]
1129
1130
  }
@@ -1131,22 +1132,22 @@ const Er = () => {
1131
1132
  ct,
1132
1133
  {
1133
1134
  to: e.path,
1134
- [jr]: e.path,
1135
+ [Er]: e.path,
1135
1136
  className: z({
1136
1137
  isActive: e.path.slice(1) === r,
1137
1138
  isMuted: e.muted
1138
1139
  }),
1139
- children: f
1140
+ children: g
1140
1141
  }
1141
1142
  ) : /* @__PURE__ */ n.jsx(
1142
1143
  J,
1143
1144
  {
1144
- className: ({ isActive: p }) => z({ isActive: p }),
1145
+ className: ({ isActive: d }) => z({ isActive: d }),
1145
1146
  to: o,
1146
- children: f
1147
+ children: g
1147
1148
  }
1148
1149
  ) });
1149
- }, Sr = ({
1150
+ }, Pr = ({
1150
1151
  category: t
1151
1152
  }) => {
1152
1153
  const { activeAnchor: e } = W(), r = Ot(), a = T(), s = t.collapsible ?? !0, [o, i] = Be({
@@ -1194,7 +1195,7 @@ const Er = () => {
1194
1195
  },
1195
1196
  t.label
1196
1197
  );
1197
- }, Nr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
1198
+ }, jr = gt(function({ children: e, className: r, pushMainContent: a }, s) {
1198
1199
  return /* @__PURE__ */ n.jsx(
1199
1200
  "nav",
1200
1201
  {
@@ -1207,19 +1208,19 @@ const Er = () => {
1207
1208
  children: e
1208
1209
  }
1209
1210
  );
1210
- }), Cr = () => {
1211
+ }), Sr = () => {
1211
1212
  const t = K(null), e = At();
1212
1213
  return /* @__PURE__ */ n.jsx(
1213
- Nr,
1214
+ jr,
1214
1215
  {
1215
1216
  ref: t,
1216
1217
  pushMainContent: e.data.items.length > 0,
1217
- children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Sr, { category: r }, r.label))
1218
+ children: e.data.items.map((r) => /* @__PURE__ */ n.jsx(Pr, { category: r }, r.label))
1218
1219
  }
1219
1220
  );
1220
- }, Or = ({ children: t }) => {
1221
+ }, Nr = ({ children: t }) => {
1221
1222
  const e = T(), { setActiveAnchor: r } = W(), { meta: a } = Z();
1222
- Er(), Pr();
1223
+ xr(), wr();
1223
1224
  const s = K(e.pathname);
1224
1225
  return I(() => {
1225
1226
  e.pathname !== s.current && r(""), s.current = e.pathname;
@@ -1232,9 +1233,9 @@ const Er = () => {
1232
1233
  /* @__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(
1233
1234
  vt,
1234
1235
  {
1235
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(Mt, {}) }),
1236
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(kt, {}) }),
1236
1237
  children: [
1237
- /* @__PURE__ */ n.jsx(Cr, {}),
1238
+ /* @__PURE__ */ n.jsx(Sr, {}),
1238
1239
  /* @__PURE__ */ n.jsx(
1239
1240
  "main",
1240
1241
  {
@@ -1251,16 +1252,16 @@ const Er = () => {
1251
1252
  }
1252
1253
  ) })
1253
1254
  ] });
1254
- }, Br = ut, zr = rt, Ur = Le, Kr = Or, $r = at, Vr = nt, Yr = Qt, Jr = er, Xr = tr;
1255
+ }, qr = ut, Hr = rt, Lr = Le, Br = Nr, zr = at, Ur = nt, Kr = Ft, $r = Zt, Vr = er;
1255
1256
  export {
1256
- Jr as Bootstrap,
1257
- Xr as BootstrapStatic,
1258
- zr as Callout,
1259
- Ur as DevPortal,
1260
- Kr as Layout,
1261
- $r as Link,
1262
- Vr as RouterError,
1263
- Yr as ServerError,
1264
- Br as useMDXComponents
1257
+ $r as Bootstrap,
1258
+ Vr as BootstrapStatic,
1259
+ Hr as Callout,
1260
+ Lr as DevPortal,
1261
+ Br as Layout,
1262
+ zr as Link,
1263
+ Ur as RouterError,
1264
+ Kr as ServerError,
1265
+ qr as useMDXComponents
1265
1266
  };
1266
1267
  //# sourceMappingURL=zudoku.components.js.map