zudoku 0.0.0-df0b125 → 0.0.0-eff6f9b

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 (67) hide show
  1. package/dist/config/config.d.ts +0 -5
  2. package/dist/config/validators/validate.d.ts +151 -37
  3. package/dist/config/validators/validate.js +14 -11
  4. package/dist/config/validators/validate.js.map +1 -1
  5. package/dist/lib/oas/graphql/index.js +1 -1
  6. package/dist/lib/oas/graphql/index.js.map +1 -1
  7. package/dist/lib/plugins/markdown/generateRoutes.d.ts +1 -1
  8. package/dist/lib/plugins/markdown/generateRoutes.js +8 -6
  9. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  10. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  11. package/dist/lib/plugins/markdown/index.js +2 -2
  12. package/dist/lib/plugins/markdown/index.js.map +1 -1
  13. package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
  14. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  15. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +3 -3
  16. package/dist/lib/plugins/openapi/index.js +1 -2
  17. package/dist/lib/plugins/openapi/index.js.map +1 -1
  18. package/dist/lib/plugins/openapi/interfaces.d.ts +3 -0
  19. package/dist/vite/plugin-docs.js +7 -5
  20. package/dist/vite/plugin-docs.js.map +1 -1
  21. package/lib/{AuthenticationPlugin-Bx9FK124.js → AuthenticationPlugin-gtf8JS3V.js} +2 -2
  22. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-gtf8JS3V.js.map} +1 -1
  23. package/lib/{Input-BR5ia3Yq.js → Input-B1kkVL1R.js} +3 -3
  24. package/lib/{Input-BR5ia3Yq.js.map → Input-B1kkVL1R.js.map} +1 -1
  25. package/lib/{MdxPage-BZyQsH8Z.js → MdxPage-BcftTg5g.js} +2 -2
  26. package/lib/{MdxPage-BZyQsH8Z.js.map → MdxPage-BcftTg5g.js.map} +1 -1
  27. package/lib/{OperationList-BAOaUAni.js → OperationList-Da36LrGl.js} +5 -5
  28. package/lib/{OperationList-BAOaUAni.js.map → OperationList-Da36LrGl.js.map} +1 -1
  29. package/lib/{Route-KYwufmmO.js → Route-CWj1ECzh.js} +2 -2
  30. package/lib/{Route-KYwufmmO.js.map → Route-CWj1ECzh.js.map} +1 -1
  31. package/lib/{SidebarBadge-BaUICQiz.js → SidebarBadge-DdvT2qep.js} +2 -2
  32. package/lib/{SidebarBadge-BaUICQiz.js.map → SidebarBadge-DdvT2qep.js.map} +1 -1
  33. package/lib/{ZudokuContext-cr-pTRY1.js → ZudokuContext-em1gHkIY.js} +4 -4
  34. package/lib/{ZudokuContext-cr-pTRY1.js.map → ZudokuContext-em1gHkIY.js.map} +1 -1
  35. package/lib/assets/{worker-BvD7B6MG.js → worker-TYRbYl6N.js} +2 -2
  36. package/lib/assets/{worker-BvD7B6MG.js.map → worker-TYRbYl6N.js.map} +1 -1
  37. package/lib/{index-WPT1ueCM.js → index-B_9xr661.js} +3 -3
  38. package/lib/{index-WPT1ueCM.js.map → index-B_9xr661.js.map} +1 -1
  39. package/lib/{index-CTNlSS40.js → index-BoXX7LeD.js} +2 -2
  40. package/lib/{index-CTNlSS40.js.map → index-BoXX7LeD.js.map} +1 -1
  41. package/lib/{index-Czh7v7RH.js → index-DIkaYL-l.js} +415 -416
  42. package/lib/index-DIkaYL-l.js.map +1 -0
  43. package/lib/{utils-ByIc_KIM.js → utils-DtEHoAvg.js} +103 -100
  44. package/lib/utils-DtEHoAvg.js.map +1 -0
  45. package/lib/zudoku.auth-clerk.js +1 -1
  46. package/lib/zudoku.auth-openid.js +1 -1
  47. package/lib/zudoku.components.js +39 -40
  48. package/lib/zudoku.components.js.map +1 -1
  49. package/lib/zudoku.openapi-worker.js +246 -246
  50. package/lib/zudoku.openapi-worker.js.map +1 -1
  51. package/lib/zudoku.plugin-api-keys.js +3 -3
  52. package/lib/zudoku.plugin-markdown.js +18 -15
  53. package/lib/zudoku.plugin-markdown.js.map +1 -1
  54. package/lib/zudoku.plugin-openapi.js +4 -5
  55. package/lib/zudoku.plugin-openapi.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/lib/oas/graphql/index.ts +1 -1
  58. package/src/lib/plugins/markdown/generateRoutes.tsx +8 -5
  59. package/src/lib/plugins/markdown/index.tsx +3 -1
  60. package/src/lib/plugins/openapi/OperationListItem.tsx +1 -1
  61. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -3
  62. package/src/lib/plugins/openapi/index.tsx +1 -2
  63. package/src/lib/plugins/openapi/interfaces.ts +4 -1
  64. package/lib/index-Czh7v7RH.js.map +0 -1
  65. package/lib/joinPath-B7kNnUX4.js +0 -8
  66. package/lib/joinPath-B7kNnUX4.js.map +0 -1
  67. package/lib/utils-ByIc_KIM.js.map +0 -1
@@ -1,12 +1,11 @@
1
- var ce = Object.defineProperty;
2
- var le = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var T = (e, t, r) => le(e, typeof t != "symbol" ? t + "" : t, r);
1
+ var le = Object.defineProperty;
2
+ var ce = (e, t, r) => t in e ? le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var T = (e, t, r) => ce(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import h, { Component as U } from "react";
5
5
  import { g as q } from "./_commonjsHelpers-BkfeUUK-.js";
6
6
  import { j as ue } from "./jsx-runtime-B6kdoens.js";
7
- import { b as $, L as fe } from "./index-BG0g4WW0.js";
8
- import { j as S } from "./joinPath-B7kNnUX4.js";
9
- import { c as K, u as Q } from "./ZudokuContext-cr-pTRY1.js";
7
+ import { b as k, L as fe } from "./index-BG0g4WW0.js";
8
+ import { e as K, u as Q } from "./ZudokuContext-em1gHkIY.js";
10
9
  const _ = {}, N = h.createContext(_);
11
10
  function de(e) {
12
11
  const t = h.useContext(N);
@@ -17,7 +16,7 @@ function de(e) {
17
16
  [t, e]
18
17
  );
19
18
  }
20
- function We(e) {
19
+ function Ze(e) {
21
20
  let t;
22
21
  return e.disableParentContext ? t = typeof e.components == "function" ? e.components(_) : e.components || _ : t = de(e.components), h.createElement(
23
22
  N.Provider,
@@ -82,7 +81,7 @@ var Te = function(t, r) {
82
81
  }
83
82
  };
84
83
  const ge = /* @__PURE__ */ q(Te);
85
- var ve = function(e, t, r, n, s, o, l, i) {
84
+ var ve = function(e, t, r, n, s, o, c, i) {
86
85
  if (process.env.NODE_ENV !== "production" && t === void 0)
87
86
  throw new Error("invariant requires an error message argument");
88
87
  if (!e) {
@@ -92,10 +91,10 @@ var ve = function(e, t, r, n, s, o, l, i) {
92
91
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
93
92
  );
94
93
  else {
95
- var c = [r, n, s, o, l, i], u = 0;
94
+ var l = [r, n, s, o, c, i], u = 0;
96
95
  a = new Error(
97
96
  t.replace(/%s/g, function() {
98
- return c[u++];
97
+ return l[u++];
99
98
  })
100
99
  ), a.name = "Invariant Violation";
101
100
  }
@@ -111,11 +110,11 @@ var be = function(t, r, n, s) {
111
110
  return !0;
112
111
  if (typeof t != "object" || !t || typeof r != "object" || !r)
113
112
  return !1;
114
- var l = Object.keys(t), i = Object.keys(r);
115
- if (l.length !== i.length)
113
+ var c = Object.keys(t), i = Object.keys(r);
114
+ if (c.length !== i.length)
116
115
  return !1;
117
- for (var a = Object.prototype.hasOwnProperty.bind(r), c = 0; c < l.length; c++) {
118
- var u = l[c];
116
+ for (var a = Object.prototype.hasOwnProperty.bind(r), l = 0; l < c.length; l++) {
117
+ var u = c[l];
119
118
  if (!a(u))
120
119
  return !1;
121
120
  var f = t[u], m = r[u];
@@ -200,26 +199,26 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
200
199
  return r.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && xe(
201
200
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
202
201
  ), !1)).map((s) => s[e]).reverse().reduce((s, o) => {
203
- const l = {};
202
+ const c = {};
204
203
  o.filter((a) => {
205
- let c;
204
+ let l;
206
205
  const u = Object.keys(a);
207
206
  for (let m = 0; m < u.length; m += 1) {
208
207
  const d = u[m], g = d.toLowerCase();
209
- t.indexOf(g) !== -1 && !(c === "rel" && a[c].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (c = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (c = d);
208
+ t.indexOf(g) !== -1 && !(l === "rel" && a[l].toLowerCase() === "canonical") && !(g === "rel" && a[g].toLowerCase() === "stylesheet") && (l = g), t.indexOf(d) !== -1 && (d === "innerHTML" || d === "cssText" || d === "itemprop") && (l = d);
210
209
  }
211
- if (!c || !a[c])
210
+ if (!l || !a[l])
212
211
  return !1;
213
- const f = a[c].toLowerCase();
214
- return n[c] || (n[c] = {}), l[c] || (l[c] = {}), n[c][f] ? !1 : (l[c][f] = !0, !0);
212
+ const f = a[l].toLowerCase();
213
+ return n[l] || (n[l] = {}), c[l] || (c[l] = {}), n[l][f] ? !1 : (c[l][f] = !0, !0);
215
214
  }).reverse().forEach((a) => s.push(a));
216
- const i = Object.keys(l);
215
+ const i = Object.keys(c);
217
216
  for (let a = 0; a < i.length; a += 1) {
218
- const c = i[a], u = {
219
- ...n[c],
220
- ...l[c]
217
+ const l = i[a], u = {
218
+ ...n[l],
219
+ ...c[l]
221
220
  };
222
- n[c] = u;
221
+ n[l] = u;
223
222
  }
224
223
  return s;
225
224
  }, []).reverse();
@@ -230,7 +229,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
230
229
  return !0;
231
230
  }
232
231
  return !1;
233
- }, ke = (e) => ({
232
+ }, $e = (e) => ({
234
233
  baseTag: we([
235
234
  "href"
236
235
  /* HREF */
@@ -281,14 +280,14 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
281
280
  title: Oe(e),
282
281
  titleAttributes: M("titleAttributes", e),
283
282
  prioritizeSeoTags: Pe(e, b.PRIORITIZE_SEO_TAGS)
284
- }), te = (e) => Array.isArray(e) ? e.join("") : e, $e = (e, t) => {
283
+ }), te = (e) => Array.isArray(e) ? e.join("") : e, ke = (e, t) => {
285
284
  const r = Object.keys(e);
286
285
  for (let n = 0; n < r.length; n += 1)
287
286
  if (t[r[n]] && t[r[n]].includes(e[r[n]]))
288
287
  return !0;
289
288
  return !1;
290
289
  }, I = (e, t) => Array.isArray(e) ? e.reduce(
291
- (r, n) => ($e(n, t) ? r.priority.push(n) : r.default.push(n), r),
290
+ (r, n) => (ke(n, t) ? r.priority.push(n) : r.default.push(n), r),
292
291
  { priority: [], default: [] }
293
292
  ) : { default: e, priority: [] }, W = (e, t) => ({
294
293
  ...e,
@@ -298,26 +297,26 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
298
297
  "script",
299
298
  "style"
300
299
  /* STYLE */
301
- ], R = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
300
+ ], j = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), re = (e) => Object.keys(e).reduce((t, r) => {
302
301
  const n = typeof e[r] < "u" ? `${r}="${e[r]}"` : `${r}`;
303
302
  return t ? `${t} ${n}` : n;
304
303
  }, ""), Me = (e, t, r, n) => {
305
304
  const s = re(r), o = te(t);
306
- return s ? `<${e} ${y}="true" ${s}>${R(
305
+ return s ? `<${e} ${y}="true" ${s}>${j(
307
306
  o,
308
307
  n
309
- )}</${e}>` : `<${e} ${y}="true">${R(
308
+ )}</${e}>` : `<${e} ${y}="true">${j(
310
309
  o,
311
310
  n
312
311
  )}</${e}>`;
313
312
  }, Ie = (e, t, r = !0) => t.reduce((n, s) => {
314
- const o = s, l = Object.keys(o).filter(
315
- (c) => !(c === "innerHTML" || c === "cssText")
316
- ).reduce((c, u) => {
317
- const f = typeof o[u] > "u" ? u : `${u}="${R(o[u], r)}"`;
318
- return c ? `${c} ${f}` : f;
313
+ const o = s, c = Object.keys(o).filter(
314
+ (l) => !(l === "innerHTML" || l === "cssText")
315
+ ).reduce((l, u) => {
316
+ const f = typeof o[u] > "u" ? u : `${u}="${j(o[u], r)}"`;
317
+ return l ? `${l} ${f}` : f;
319
318
  }, ""), i = o.innerHTML || o.cssText || "", a = De.indexOf(e) === -1;
320
- return `${n}<${e} ${y}="true" ${l}${a ? "/>" : `>${i}</${e}>`}`;
319
+ return `${n}<${e} ${y}="true" ${c}${a ? "/>" : `>${i}</${e}>`}`;
321
320
  }, ""), ne = (e, t = {}) => Object.keys(e).reduce((r, n) => {
322
321
  const s = z[n];
323
322
  return r[s || n] = e[n], r;
@@ -327,7 +326,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
327
326
  [y]: !0
328
327
  }, s = ne(r, n);
329
328
  return [h.createElement("title", s, t)];
330
- }, k = (e, t) => t.map((r, n) => {
329
+ }, $ = (e, t) => t.map((r, n) => {
331
330
  const s = {
332
331
  key: n,
333
332
  [y]: !0
@@ -355,18 +354,18 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
355
354
  };
356
355
  default:
357
356
  return {
358
- toComponent: () => k(e, t),
357
+ toComponent: () => $(e, t),
359
358
  toString: () => Ie(e, t, r)
360
359
  };
361
360
  }
362
361
  }, _e = ({ metaTags: e, linkTags: t, scriptTags: r, encode: n }) => {
363
- const s = I(e, D.meta), o = I(t, D.link), l = I(r, D.script);
362
+ const s = I(e, D.meta), o = I(t, D.link), c = I(r, D.script);
364
363
  return {
365
364
  priorityMethods: {
366
365
  toComponent: () => [
367
- ...k("meta", s.priority),
368
- ...k("link", o.priority),
369
- ...k("script", l.priority)
366
+ ...$("meta", s.priority),
367
+ ...$("link", o.priority),
368
+ ...$("script", c.priority)
370
369
  ],
371
370
  toString: () => (
372
371
  // generate all the tags as strings and concatenate them
@@ -374,31 +373,31 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
374
373
  "link",
375
374
  o.priority,
376
375
  n
377
- )} ${p("script", l.priority, n)}`
376
+ )} ${p("script", c.priority, n)}`
378
377
  )
379
378
  },
380
379
  metaTags: s.default,
381
380
  linkTags: o.default,
382
- scriptTags: l.default
381
+ scriptTags: c.default
383
382
  };
384
- }, Re = (e) => {
383
+ }, je = (e) => {
385
384
  const {
386
385
  baseTag: t,
387
386
  bodyAttributes: r,
388
387
  encode: n = !0,
389
388
  htmlAttributes: s,
390
389
  noscriptTags: o,
391
- styleTags: l,
390
+ styleTags: c,
392
391
  title: i = "",
393
392
  titleAttributes: a,
394
- prioritizeSeoTags: c
393
+ prioritizeSeoTags: l
395
394
  } = e;
396
395
  let { linkTags: u, metaTags: f, scriptTags: m } = e, d = {
397
396
  toComponent: () => {
398
397
  },
399
398
  toString: () => ""
400
399
  };
401
- return c && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
400
+ return l && ({ priorityMethods: d, linkTags: u, metaTags: f, scriptTags: m } = _e(e)), {
402
401
  priority: d,
403
402
  base: p("base", t, n),
404
403
  bodyAttributes: p("bodyAttributes", r, n),
@@ -407,10 +406,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
407
406
  meta: p("meta", f, n),
408
407
  noscript: p("noscript", o, n),
409
408
  script: p("script", m, n),
410
- style: p("style", l, n),
409
+ style: p("style", c, n),
411
410
  title: p("title", { title: i, titleAttributes: a }, n)
412
411
  };
413
- }, j = Re, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
412
+ }, R = je, x = [], se = !!(typeof window < "u" && window.document && window.document.createElement), L = class {
414
413
  constructor(e, t) {
415
414
  T(this, "instances", []);
416
415
  T(this, "canUseDOM", se);
@@ -430,7 +429,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
430
429
  }
431
430
  }
432
431
  });
433
- this.context = e, this.canUseDOM = t || !1, t || (e.helmet = j({
432
+ this.context = e, this.canUseDOM = t || !1, t || (e.helmet = R({
434
433
  baseTag: [],
435
434
  bodyAttributes: {},
436
435
  encodeSpecialCharacters: !0,
@@ -444,7 +443,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
444
443
  titleAttributes: {}
445
444
  }));
446
445
  }
447
- }, je = {}, oe = h.createContext(je), v, Le = (v = class extends U {
446
+ }, Re = {}, oe = h.createContext(Re), v, Le = (v = class extends U {
448
447
  constructor(r) {
449
448
  super(r);
450
449
  T(this, "helmetData");
@@ -458,20 +457,20 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
458
457
  "head"
459
458
  /* HEAD */
460
459
  ), n = r.querySelectorAll(`${e}[${y}]`), s = [].slice.call(n), o = [];
461
- let l;
460
+ let c;
462
461
  return t && t.length && t.forEach((i) => {
463
462
  const a = document.createElement(e);
464
- for (const c in i)
465
- if (Object.prototype.hasOwnProperty.call(i, c))
466
- if (c === "innerHTML")
463
+ for (const l in i)
464
+ if (Object.prototype.hasOwnProperty.call(i, l))
465
+ if (l === "innerHTML")
467
466
  a.innerHTML = i.innerHTML;
468
- else if (c === "cssText")
467
+ else if (l === "cssText")
469
468
  a.styleSheet ? a.styleSheet.cssText = i.cssText : a.appendChild(document.createTextNode(i.cssText));
470
469
  else {
471
- const u = c, f = typeof i[u] > "u" ? "" : i[u];
472
- a.setAttribute(c, f);
470
+ const u = l, f = typeof i[u] > "u" ? "" : i[u];
471
+ a.setAttribute(l, f);
473
472
  }
474
- a.setAttribute(y, "true"), s.some((c, u) => (l = u, a.isEqualNode(c))) ? s.splice(l, 1) : o.push(a);
473
+ a.setAttribute(y, "true"), s.some((l, u) => (c = u, a.isEqualNode(l))) ? s.splice(c, 1) : o.push(a);
475
474
  }), s.forEach((i) => {
476
475
  var a;
477
476
  return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
@@ -483,16 +482,16 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
483
482
  const r = document.getElementsByTagName(e)[0];
484
483
  if (!r)
485
484
  return;
486
- const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], l = Object.keys(t);
487
- for (const i of l) {
485
+ const n = r.getAttribute(y), s = n ? n.split(",") : [], o = [...s], c = Object.keys(t);
486
+ for (const i of c) {
488
487
  const a = t[i] || "";
489
488
  r.getAttribute(i) !== a && r.setAttribute(i, a), s.indexOf(i) === -1 && s.push(i);
490
- const c = o.indexOf(i);
491
- c !== -1 && o.splice(c, 1);
489
+ const l = o.indexOf(i);
490
+ l !== -1 && o.splice(l, 1);
492
491
  }
493
492
  for (let i = o.length - 1; i >= 0; i -= 1)
494
493
  r.removeAttribute(o[i]);
495
- s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== l.join(",") && r.setAttribute(y, l.join(","));
494
+ s.length === o.length ? r.removeAttribute(y) : r.getAttribute(y) !== c.join(",") && r.setAttribute(y, c.join(","));
496
495
  }, Fe = (e, t) => {
497
496
  typeof e < "u" && document.title !== e && (document.title = te(e)), F("title", t);
498
497
  }, G = (e, t) => {
@@ -501,10 +500,10 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
501
500
  bodyAttributes: n,
502
501
  htmlAttributes: s,
503
502
  linkTags: o,
504
- metaTags: l,
503
+ metaTags: c,
505
504
  noscriptTags: i,
506
505
  onChangeClientState: a,
507
- scriptTags: c,
506
+ scriptTags: l,
508
507
  styleTags: u,
509
508
  title: f,
510
509
  titleAttributes: m
@@ -513,15 +512,15 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
513
512
  const d = {
514
513
  baseTag: A("base", r),
515
514
  linkTags: A("link", o),
516
- metaTags: A("meta", l),
515
+ metaTags: A("meta", c),
517
516
  noscriptTags: A("noscript", i),
518
- scriptTags: A("script", c),
517
+ scriptTags: A("script", l),
519
518
  styleTags: A("style", u)
520
- }, g = {}, Y = {};
519
+ }, g = {}, B = {};
521
520
  Object.keys(d).forEach((w) => {
522
- const { newTags: B, oldTags: ae } = d[w];
523
- B.length && (g[w] = B), ae.length && (Y[w] = d[w].oldTags);
524
- }), t && t(), a(e, g, Y);
521
+ const { newTags: Y, oldTags: ae } = d[w];
522
+ Y.length && (g[w] = Y), ae.length && (B[w] = d[w].oldTags);
523
+ }), t && t(), a(e, g, B);
525
524
  }, O = null, Ue = (e) => {
526
525
  O && cancelAnimationFrame(O), e.defer ? O = requestAnimationFrame(() => {
527
526
  G(e, () => {
@@ -546,13 +545,13 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
546
545
  emitChange() {
547
546
  const { helmetInstances: t, setHelmet: r } = this.props.context;
548
547
  let n = null;
549
- const s = ke(
548
+ const s = $e(
550
549
  t.get().map((o) => {
551
- const l = { ...o.props };
552
- return delete l.context, l;
550
+ const c = { ...o.props };
551
+ return delete c.context, c;
553
552
  })
554
553
  );
555
- Le.canUseDOM ? qe(s) : j && (n = j(s)), r(n);
554
+ Le.canUseDOM ? qe(s) : R && (n = R(s)), r(n);
556
555
  }
557
556
  // componentWillMount will be deprecated
558
557
  // for SSR, initialize on first render
@@ -567,7 +566,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
567
566
  render() {
568
567
  return this.init(), null;
569
568
  }
570
- }, H, Ge = (H = class extends U {
569
+ }, H, We = (H = class extends U {
571
570
  shouldComponentUpdate(e) {
572
571
  return !ge(W(this.props, "helmetData"), W(e, "helmetData"));
573
572
  }
@@ -652,7 +651,7 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
652
651
  return h.Children.forEach(e, (n) => {
653
652
  if (!n || !n.props)
654
653
  return;
655
- const { children: s, ...o } = n.props, l = Object.keys(o).reduce((a, c) => (a[Ee[c] || c] = o[c], a), {});
654
+ const { children: s, ...o } = n.props, c = Object.keys(o).reduce((a, l) => (a[Ee[l] || l] = o[l], a), {});
656
655
  let { type: i } = n;
657
656
  switch (typeof i == "symbol" ? i = i.toString() : this.warnOnInvalidChildren(n, s), i) {
658
657
  case "Symbol(react.fragment)":
@@ -666,12 +665,12 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
666
665
  r = this.flattenArrayTypeChildren(
667
666
  n,
668
667
  r,
669
- l,
668
+ c,
670
669
  s
671
670
  );
672
671
  break;
673
672
  default:
674
- t = this.mapObjectTypeChildren(n, t, l, s);
673
+ t = this.mapObjectTypeChildren(n, t, c, s);
675
674
  break;
676
675
  }
677
676
  }), this.mapArrayTypeChildrenToProps(r, t);
@@ -690,8 +689,11 @@ var ee = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
690
689
  encodeSpecialCharacters: !0,
691
690
  prioritizeSeoTags: !1
692
691
  }), H);
693
- const Je = (e) => {
694
- const t = $(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
692
+ const S = (...e) => {
693
+ const t = e.filter((r) => !!r).map((r) => r.replace(/(^\/+|\/+$)/g, "")).join("/").replace(/(^\/+|\/+$)/g, "");
694
+ return t ? `/${t}` : "/";
695
+ }, Ge = (e) => {
696
+ const t = k(), r = typeof e.to == "string" ? e.to : e.to.hash, n = (s) => {
695
697
  var o;
696
698
  !(r != null && r.startsWith("#")) || r !== t.hash || (s.preventDefault(), (o = document.getElementById(r.slice(1))) == null || o.scrollIntoView());
697
699
  };
@@ -712,38 +714,39 @@ const Je = (e) => {
712
714
  ]);
713
715
  if (o !== void 0) return o;
714
716
  }
715
- }, Qe = () => {
716
- const e = $(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
717
+ }, Je = () => {
718
+ const e = k(), t = K(), { sidebars: r } = Q(), n = t != null && t.id ? r[t.id] : [];
717
719
  return ie(n, (s) => {
718
720
  if (s.type === "doc" && S(t == null ? void 0 : t.id, s.id) === e.pathname)
719
721
  return s;
720
722
  });
721
- }, Ne = (e) => {
722
- const t = $(), r = K();
723
+ }, Qe = (e) => {
724
+ const t = k(), r = K();
723
725
  return V(e, (n) => {
724
726
  if (n.type === "category" && n.link && S(r == null ? void 0 : r.id, n.link.id) === t.pathname || n.type === "doc" && S(r == null ? void 0 : r.id, n.id) === t.pathname)
725
727
  return !0;
726
728
  });
727
- }, et = () => {
728
- const e = $().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
729
- let s, o, l = !1;
729
+ }, Ne = () => {
730
+ const e = k().pathname, { sidebars: t } = Q(), r = K(), n = r != null && r.id ? t[r.id] : [];
731
+ let s, o, c = !1;
730
732
  return ie(n, (i) => {
731
733
  const a = i.type === "doc" ? S(r == null ? void 0 : r.id, i.id) : i.type === "category" && i.link ? S(r == null ? void 0 : r.id, i.link.id) : void 0;
732
734
  if (a) {
733
- if (l)
735
+ if (c)
734
736
  return o = { label: i.label, id: a }, !0;
735
- e === a ? l = !0 : s = { label: i.label, id: a };
737
+ e === a ? c = !0 : s = { label: i.label, id: a };
736
738
  }
737
739
  }), { prev: s, next: o };
738
740
  };
739
741
  export {
740
- Je as A,
741
- Ge as H,
742
- We as M,
743
- et as a,
742
+ Ge as A,
743
+ We as H,
744
+ Ze as M,
745
+ Ne as a,
744
746
  de as b,
745
747
  Le as c,
746
- Ne as d,
747
- Qe as u
748
+ Qe as d,
749
+ S as j,
750
+ Je as u
748
751
  };
749
- //# sourceMappingURL=utils-ByIc_KIM.js.map
752
+ //# sourceMappingURL=utils-DtEHoAvg.js.map