@deot/docs-client 1.1.6 → 1.1.7

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.
package/README.md CHANGED
@@ -106,7 +106,7 @@ const { app, router, disconnect } = await bootstrap(window.$docs);
106
106
  | `base` | production 资源的基准 URL。可省略;未配置时由客户端在路由启动前根据当前地址推导。 |
107
107
  | `namespace` | IndexedDB 缓存隔离标识;未设置时使用规范化后的 `base`。 |
108
108
  | `repository` | 当前文档项目的远程仓库页面。Header 在语言与工具之间展示入口,并在新窗口打开;GitHub 地址还会用于生成默认 Footer 的 Issues、需求与 Releases 链接。 |
109
- | `modules` | 站点级裸模块名到 URL 的映射,对所有 Playground(含 Markdown)生效;远程 SFC 仍可通过实例 `builtinImportMap` 覆盖。`doc dev` 会把工作区源码编到 `/__docs/module/<包名>`;development 下可以把同名 key 指到该地址,直接打开 HTML 时不要使用它。 |
109
+ | `modules` | 站点级裸模块名到 URL 的映射,对所有 Playground(含 Markdown)生效;各预览可通过实例 `options.builtinImportMap.imports` 覆盖,优先级高于站点配置和管理页覆盖;远程 SFC 也可通过实例 `builtinImportMap` 覆盖。`doc dev` 会把工作区源码编到 `/__docs/module/<包名>`;development 下可以把同名 key 指到该地址,直接打开 HTML 时不要使用它。 |
110
110
  | `styles` | 站点级预览 CSS 默认地址;同名 key 覆盖内置样式表,也可追加。管理页 `/:lang/__docs/playground-resource` 与 `modules` 同一张表管理。 |
111
111
  | `prefetch` | 空闲预加载开关或 `{ batchSize, idleTimeout }` 配置,默认开启。 |
112
112
  | `theme` | 主题开关或 `{ default: 'system' \| 'light' \| 'dark' }`,默认跟随系统。 |
@@ -234,8 +234,9 @@ const query = new URLSearchParams({ raw: encode(JSON.stringify(config)) });
234
234
  const href = `/__docs/preview?${query}`;
235
235
  ```
236
236
 
237
- `modules` 是模块说明符到 ESM URL 的映射,在当前远程 SFC 的导入表中覆盖站点默认,
238
- 不修改全站配置。`playground` 复用现有组件参数,作用于 `.vue` 和 page.json 内的
237
+ `modules` 是模块说明符到 ESM URL 的映射,仅覆盖当前远程 SFC 的导入表。
238
+ `local: true` 与 `local: false` 均按「实例配置 > 管理页覆盖 > `$docs.modules` > 内置默认」合并,不修改全站配置。
239
+ `playground` 复用现有组件参数,作用于 `.vue` 和 page.json 内的
239
240
  `docs:sfc` 块;省略时沿用站点默认,`styleless` 默认 `true`。
240
241
  支持 `local`、`styleless`、`previewScroller`(布尔值)、`views`(`runtime` / `files` 数组)、
241
242
  `viewport`(`auto`、宽度或宽高数组)、`previewInset`(数值或垂直/水平数组)、
@@ -243,9 +244,24 @@ const href = `/__docs/preview?${query}`;
243
244
  这里只检查 `playground` 是对象,并提取上述展示参数;具体参数由 Playground 自身处理,
244
245
  `files`、`entry` 等源码数据不接受链接覆盖。
245
246
 
246
- `/__docs/preview-config-generate` 提供表单实时生成链接、一键复制和打开预览。
247
- 访问 `/__docs/preview-config-generate?raw=...` 自动解析并回填;也可粘贴现有
248
- `?raw=...` 或 `?url=...&styles=...` 预览链接进行解析。JSON 或字段无效时显示错误并停用复制。
247
+ `/__docs/raw-editor` 提供通用 JSON 编辑器和目标地址,实时生成带 `raw` 的链接,支持复制和打开。
248
+ JSON 可以是对象、数组或其他 JSON 值;目标页面负责验证自己的配置。默认目标为 preview,
249
+ 也可选择 markdown-editor 或输入 HTTP(S) / 相对地址,原有查询参数和 hash 会保留。
250
+ 访问 `?raw=...&target=...` 自动解码回填;粘贴已有 `?raw=...` 或 `?url=...&styles=...`
251
+ 链接也能导入。JSON 或目标地址无效时保留输入并停用链接操作。
252
+
253
+ `/__docs/markdown-editor` 使用本仓库的 `Markdown` 组件实时预览,支持 `?url=...` 和相同的
254
+ `?raw=...` 配置协议。`styles` 加载预览 CSS,`modules` 覆盖当前 Markdown Playground 的模块映射,
255
+ `playground` 提供块级配置可覆盖的默认展示参数。相对图片和链接以实际加载的 Markdown 地址为基准。
256
+ 编辑区保留行号与撤销,编辑和预览都使用 `Scroller`;支持打开本地 Markdown、复制原文、
257
+ 重置初始内容、按 Markdown 块双向同步滚动及主题切换。同步默认关闭并保存设置。
258
+ 两栏之间的分隔线可拖动调整宽度,也可聚焦后使用左右方向键;窄屏继续上下排列。
259
+ 显式链接优先于草稿;裸路由恢复最近草稿,否则使用示例。重置远程/本地文件时恢复其初始内容,
260
+ 裸路由恢复示例;只有编辑、打开本地文件及重置会写入草稿。
261
+
262
+ PDF 使用浏览器打印对话框,可另存为 PDF;正文、代码和表格保留文字,原始图片/SVG 保留其内容。
263
+ 最新 Markdown 和代码块挂载完成后可以导出,默认 A4 纵向、10mm 页边距及浅色打印排版。
264
+ Playground iframe 的运行态与正文挂载完成不同,具体动态内容输出受浏览器打印能力影响。
249
265
 
250
266
  相对资源地址沿用现有 Resolver;源码依赖相对于源文件解析。
251
267
  缺失参数、不支持的资源以及加载或解析失败会显示页面错误。
@@ -3,7 +3,7 @@ var e = globalThis.process || {
3
3
  nextTick: queueMicrotask
4
4
  };
5
5
  import { n as t, r as n } from "./rolldown-runtime-Ce3zPWPd.js";
6
- import { E as r, S as i, b as a, c as o, d as s, f as c, m as l, o as u, s as d } from "./css-DleINdoA-FdeEznDX.js";
6
+ import { E as r, S as i, b as a, c as o, d as s, f as c, m as l, o as u, s as d } from "./css-DleINdoA-Brc23sJ9.js";
7
7
  //#region node_modules/.pnpm/immutable@5.1.9/node_modules/immutable/dist/immutable.es.js
8
8
  var f = /* @__PURE__ */ t({
9
9
  Collection: () => b,
@@ -1,6 +1,6 @@
1
1
  globalThis.process;
2
2
  import { i as e, t } from "./rolldown-runtime-Ce3zPWPd.js";
3
- import { q as n } from "./vue.runtime.esm-bundler-zZTAiuf6.js";
3
+ import { J as n } from "./vue.runtime.esm-bundler-Bk0CnRBe.js";
4
4
  import { o as r } from "./compiler-sfc.esm-browser-5dA1IWMJ.js";
5
5
  //#region node_modules/.pnpm/sucrase@3.35.1/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js
6
6
  var i;
@@ -1,6 +1,6 @@
1
1
  globalThis.process;
2
2
  import { n as e } from "./rolldown-runtime-Ce3zPWPd.js";
3
- import { A as t, C as n, E as r, I as i, N as a, S as o, at as s, dt as c, f as l, k as u, ot as d, q as f, rt as p, st as m, w as ee, z as h } from "./vue.runtime.esm-bundler-zZTAiuf6.js";
3
+ import { A as t, B as n, C as r, D as i, J as a, L as o, P as s, T as c, ct as l, ft as u, it as d, j as f, ot as p, p as m, st as h, w as ee } from "./vue.runtime.esm-bundler-Bk0CnRBe.js";
4
4
  //#region node_modules/.pnpm/vue-router@5.4.0_@vue+compiler-sfc@3.5.43_esbuild@0.28.2_pinia@4.0.3_@vue+devtools-api@_b7a56666e9b50cf7fc57e11846542a2a/node_modules/vue-router/dist/useApi-CUWMwLLw.js
5
5
  var g = (e) => e.startsWith("/");
6
6
  function _(e) {
@@ -38,10 +38,10 @@ function w(e, t) {
38
38
  }
39
39
  var T = Symbol(""), E = Symbol(""), D = Symbol(""), O = Symbol(""), k = Symbol(""), ie = Symbol("");
40
40
  function A() {
41
- return r(D);
41
+ return i(D);
42
42
  }
43
43
  function ae(e) {
44
- return r(O);
44
+ return i(O);
45
45
  }
46
46
  //#endregion
47
47
  //#region node_modules/.pnpm/vue-router@5.4.0_@vue+compiler-sfc@3.5.43_esbuild@0.28.2_pinia@4.0.3_@vue+devtools-api@_b7a56666e9b50cf7fc57e11846542a2a/node_modules/vue-router/dist/devtools-CxgSYwGp.js
@@ -234,22 +234,22 @@ function Q() {
234
234
  reset: n
235
235
  };
236
236
  }
237
- function Fe(e, n, r) {
238
- let o = e.value;
239
- if (!o) return;
240
- let s = o, c = () => {
241
- s[n].delete(r);
237
+ function Fe(e, t, n) {
238
+ let r = e.value;
239
+ if (!r) return;
240
+ let i = r, a = () => {
241
+ i[t].delete(n);
242
242
  };
243
- i(c), a(c), t(() => {
244
- let t = e.value;
245
- t && (s = t), s[n].add(r);
246
- }), s[n].add(r);
243
+ o(a), s(a), f(() => {
244
+ let r = e.value;
245
+ r && (i = r), i[t].add(n);
246
+ }), i[t].add(n);
247
247
  }
248
248
  function Ie(e) {
249
- Fe(r(T, {}), "leaveGuards", e);
249
+ Fe(i(T, {}), "leaveGuards", e);
250
250
  }
251
251
  function Le(e) {
252
- Fe(r(T, {}), "updateGuards", e);
252
+ Fe(i(T, {}), "updateGuards", e);
253
253
  }
254
254
  function $(e, t, n, r, i, a = (e) => e()) {
255
255
  let o = r && (r.enterCallbacks[i] = r.enterCallbacks[i] || []);
@@ -823,36 +823,36 @@ function gt({ record: e }) {
823
823
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
824
824
  }
825
825
  function _t(e) {
826
- let t = r(D), n = r(O), i = l(() => {
827
- let n = c(e.to);
826
+ let t = i(D), n = i(O), r = m(() => {
827
+ let n = u(e.to);
828
828
  return t.resolve(n);
829
- }), a = l(() => {
830
- let { matched: e } = i.value, { length: t } = e, r = e[t - 1], a = n.matched;
831
- if (!r || !a.length) return -1;
832
- let o = a.findIndex(Y.bind(null, r));
829
+ }), a = m(() => {
830
+ let { matched: e } = r.value, { length: t } = e, i = e[t - 1], a = n.matched;
831
+ if (!i || !a.length) return -1;
832
+ let o = a.findIndex(Y.bind(null, i));
833
833
  if (o > -1) return o;
834
834
  let s = St(e[t - 2]);
835
- return t > 1 && St(r) === s && a[a.length - 1].path !== s ? a.findIndex(Y.bind(null, e[t - 2])) : o;
836
- }), o = l(() => a.value > -1 && xt(n.params, i.value.params)), s = l(() => a.value > -1 && a.value === n.matched.length - 1 && ge(n.params, i.value.params));
837
- function u(n = {}) {
835
+ return t > 1 && St(i) === s && a[a.length - 1].path !== s ? a.findIndex(Y.bind(null, e[t - 2])) : o;
836
+ }), o = m(() => a.value > -1 && xt(n.params, r.value.params)), s = m(() => a.value > -1 && a.value === n.matched.length - 1 && ge(n.params, r.value.params));
837
+ function c(n = {}) {
838
838
  if (bt(n)) {
839
- let n = t[c(e.replace) ? "replace" : "push"](c(e.to)).catch(x);
839
+ let n = t[u(e.replace) ? "replace" : "push"](u(e.to)).catch(x);
840
840
  return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => n), n;
841
841
  }
842
842
  return Promise.resolve();
843
843
  }
844
844
  return {
845
- route: i,
846
- href: l(() => i.value.href),
845
+ route: r,
846
+ href: m(() => r.value.href),
847
847
  isActive: o,
848
848
  isExactActive: s,
849
- navigate: u
849
+ navigate: c
850
850
  };
851
851
  }
852
852
  function vt(e) {
853
853
  return e.length === 1 ? e[0] : e;
854
854
  }
855
- var yt = /* @__PURE__ */ o({
855
+ var yt = /* @__PURE__ */ r({
856
856
  name: "RouterLink",
857
857
  compatConfig: { MODE: 3 },
858
858
  props: {
@@ -872,13 +872,13 @@ var yt = /* @__PURE__ */ o({
872
872
  },
873
873
  useLink: _t,
874
874
  setup(e, { slots: t }) {
875
- let n = p(_t(e)), { options: i } = r(D), a = l(() => ({
876
- [Ct(e.activeClass, i.linkActiveClass, "router-link-active")]: n.isActive,
877
- [Ct(e.exactActiveClass, i.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
875
+ let n = d(_t(e)), { options: r } = i(D), a = m(() => ({
876
+ [Ct(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
877
+ [Ct(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
878
878
  }));
879
879
  return () => {
880
880
  let r = t.default && vt(t.default(n));
881
- return e.custom ? r : ee("a", {
881
+ return e.custom ? r : c("a", {
882
882
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
883
883
  href: n.href,
884
884
  onClick: n.navigate,
@@ -908,7 +908,7 @@ function xt(e, t) {
908
908
  function St(e) {
909
909
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
910
910
  }
911
- var Ct = (e, t, n) => e ?? t ?? n, wt = /*#__PURE__*/ o({
911
+ var Ct = (e, t, n) => e ?? t ?? n, wt = /*#__PURE__*/ r({
912
912
  name: "RouterView",
913
913
  inheritAttrs: !1,
914
914
  props: {
@@ -919,45 +919,45 @@ var Ct = (e, t, n) => e ?? t ?? n, wt = /*#__PURE__*/ o({
919
919
  route: Object
920
920
  },
921
921
  compatConfig: { MODE: 3 },
922
- setup(e, { attrs: t, slots: i }) {
923
- let a = r(k), o = l(() => e.route || a.value), d = r(E, 0), p = l(() => {
924
- let e = c(d), { matched: t } = o.value, n;
922
+ setup(e, { attrs: r, slots: o }) {
923
+ let s = i(k), l = m(() => e.route || s.value), d = i(E, 0), f = m(() => {
924
+ let e = u(d), { matched: t } = l.value, n;
925
925
  for (; (n = t[e]) && !n.components;) e++;
926
926
  return e;
927
- }), m = l(() => o.value.matched[p.value]);
928
- h(E, l(() => p.value + 1)), h(T, m), h(k, o);
927
+ }), h = m(() => l.value.matched[f.value]);
928
+ n(E, m(() => f.value + 1)), n(T, h), n(k, l);
929
929
  let g = /* @__PURE__ */ new Set();
930
- h(ie, g);
931
- let _ = s(), v = X, { app: b } = n().appContext;
932
- return f(() => [
930
+ n(ie, g);
931
+ let _ = p(), v = X, { app: b } = ee().appContext;
932
+ return a(() => [
933
933
  _.value,
934
- m.value,
934
+ h.value,
935
935
  e.name
936
936
  ], ([e, t, n], [r, i, a]) => {
937
937
  t && (t.instances[n] = e, i && i !== t && e && e === r && (t.leaveGuards.size || (t.leaveGuards = i.leaveGuards), t.updateGuards.size || (t.updateGuards = i.updateGuards))), e && t && (!i || !Y(t, i) || !r) && (t.enterCallbacks[n] || []).forEach((t) => t(e));
938
938
  }, { flush: "post" }), () => {
939
- let n = o.value, r = e.name, a = m.value, s = a && a.components[r];
940
- if (!s) return Tt(i.default, {
939
+ let n = l.value, i = e.name, a = h.value, s = a && a.components[i];
940
+ if (!s) return Tt(o.default, {
941
941
  Component: s,
942
942
  route: n
943
943
  });
944
- let c = a.props[r], l = c ? c === !0 ? n.params : typeof c == "function" ? c(n) : c : null, d = (e) => {
945
- e.component.isUnmounted && (a.instances[r] = null);
946
- }, f = (e) => u(() => {
947
- if (v === n || o.value !== n || e.el.getRootNode() !== b._container.getRootNode()) return;
944
+ let u = a.props[i], d = u ? u === !0 ? n.params : typeof u == "function" ? u(n) : u : null, f = (e) => {
945
+ e.component.isUnmounted && (a.instances[i] = null);
946
+ }, p = (e) => t(() => {
947
+ if (v === n || l.value !== n || e.el.getRootNode() !== b._container.getRootNode()) return;
948
948
  let t = v;
949
949
  v = n;
950
950
  for (let e of g) e(n, t);
951
- }), p = ee(s, y({}, l, t, {
952
- onVnodeUnmounted: d,
953
- onVnodeMounted: f,
954
- onVnodeUpdated: f,
951
+ }), m = c(s, y({}, d, r, {
952
+ onVnodeUnmounted: f,
953
+ onVnodeMounted: p,
954
+ onVnodeUpdated: p,
955
955
  ref: _
956
956
  }));
957
- return Tt(i.default, {
958
- Component: p,
957
+ return Tt(o.default, {
958
+ Component: m,
959
959
  route: n
960
- }) || p;
960
+ }) || m;
961
961
  };
962
962
  }
963
963
  });
@@ -968,65 +968,65 @@ function Tt(e, t) {
968
968
  }
969
969
  var Et = wt;
970
970
  function Dt(e) {
971
- let t = e.matcher || ct(e.routes, e), n = e.parseQuery || Me, r = e.stringifyQuery || Ne, i = e.history, a = Q(), o = Q(), s = Q(), l = m(X), f = m(0), p = X;
971
+ let n = e.matcher || ct(e.routes, e), r = e.parseQuery || Me, i = e.stringifyQuery || Ne, a = e.history, o = Q(), s = Q(), c = Q(), d = l(X), f = l(0), p = X;
972
972
  j && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
973
- let ee = b.bind(null, (e) => "" + e), h = b.bind(null, fe), g = b.bind(null, G);
974
- function _(e, n) {
973
+ let m = b.bind(null, (e) => "" + e), ee = b.bind(null, fe), g = b.bind(null, G);
974
+ function _(e, t) {
975
975
  let r, i;
976
- je(e) ? (r = t.getRecordMatcher(e), i = n) : i = e;
977
- let a = t.addRoute(i, r);
976
+ je(e) ? (r = n.getRecordMatcher(e), i = t) : i = e;
977
+ let a = n.addRoute(i, r);
978
978
  return f.value++, () => {
979
979
  a(), f.value++;
980
980
  };
981
981
  }
982
982
  function v(e) {
983
- let n = t.getRecordMatcher(e);
984
- n && (t.removeRoute(n), f.value++);
983
+ let t = n.getRecordMatcher(e);
984
+ t && (n.removeRoute(t), f.value++);
985
985
  }
986
986
  function te() {
987
- t.clearRoutes(), f.value++;
987
+ n.clearRoutes(), f.value++;
988
988
  }
989
989
  function ne() {
990
- return t.getRoutes().map((e) => e.record);
990
+ return n.getRoutes().map((e) => e.record);
991
991
  }
992
992
  function re(e) {
993
- return !!t.getRecordMatcher(e);
993
+ return !!n.getRecordMatcher(e);
994
994
  }
995
- function T(e, a) {
995
+ function T(e, t) {
996
996
  if (f.value, typeof e == "string") {
997
- a ||= e.startsWith("/") ? X : l.value;
998
- let r = pe(n, e, a.path), o = t.resolve({ path: r.path }, a), s = i.createHref(r.fullPath);
999
- return y(r, o, {
997
+ t ||= e.startsWith("/") ? X : d.value;
998
+ let i = pe(r, e, t.path), o = n.resolve({ path: i.path }, t), s = a.createHref(i.fullPath);
999
+ return y(i, o, {
1000
1000
  params: g(o.params),
1001
1001
  redirectedFrom: void 0,
1002
1002
  href: s
1003
1003
  });
1004
1004
  }
1005
- a = y({}, a || (e.path != null && e.path.startsWith("/") && !("name" in e && e.name) ? X : l.value));
1005
+ t = y({}, t || (e.path != null && e.path.startsWith("/") && !("name" in e && e.name) ? X : d.value));
1006
1006
  let o;
1007
- if (e.path != null) o = y({}, e, { path: pe(n, e.path, a.path).path });
1007
+ if (e.path != null) o = y({}, e, { path: pe(r, e.path, t.path).path });
1008
1008
  else {
1009
- let t = y({}, e.params);
1010
- for (let e in t) t[e] ?? delete t[e];
1011
- o = y({}, e, { params: h(t) }), a.params = h(a.params);
1009
+ let n = y({}, e.params);
1010
+ for (let e in n) n[e] ?? delete n[e];
1011
+ o = y({}, e, { params: ee(n) }), t.params = ee(t.params);
1012
1012
  }
1013
- let s = t.resolve(o, a), c = e.hash || "";
1014
- s.params = ee(g(s.params));
1015
- let u = me(r, y({}, e, {
1013
+ let s = n.resolve(o, t), c = e.hash || "";
1014
+ s.params = m(g(s.params));
1015
+ let l = me(i, y({}, e, {
1016
1016
  hash: de(c),
1017
1017
  path: s.path
1018
- })), d = i.createHref(u);
1018
+ })), u = a.createHref(l);
1019
1019
  return y({
1020
- fullPath: u,
1020
+ fullPath: l,
1021
1021
  hash: c,
1022
- query: r === Ne ? Pe(e.query) : e.query || {}
1022
+ query: i === Ne ? Pe(e.query) : e.query || {}
1023
1023
  }, s, {
1024
1024
  redirectedFrom: void 0,
1025
- href: d
1025
+ href: u
1026
1026
  });
1027
1027
  }
1028
1028
  function E(e) {
1029
- return typeof e == "string" ? pe(n, e, l.value.path) : y({}, e);
1029
+ return typeof e == "string" ? pe(r, e, d.value.path) : y({}, e);
1030
1030
  }
1031
1031
  function ie(e, t) {
1032
1032
  if (p !== e) return C(8, {
@@ -1052,26 +1052,26 @@ function Dt(e) {
1052
1052
  }
1053
1053
  }
1054
1054
  function N(e, t) {
1055
- let n = p = T(e), i = l.value, a = e.state, o = e.force, s = e.replace === !0, c = M(n, i);
1055
+ let n = p = T(e), r = d.value, a = e.state, o = e.force, s = e.replace === !0, c = M(n, r);
1056
1056
  if (c) return N(y(E(c), {
1057
1057
  state: typeof c == "object" ? y({}, a, c.state) : a,
1058
1058
  force: o,
1059
1059
  replace: s
1060
1060
  }), t || n);
1061
- let u = n;
1062
- u.redirectedFrom = t;
1063
- let d;
1064
- return !o && he(r, i, n) && (d = C(16, {
1065
- to: u,
1066
- from: i
1067
- }), H(i, i, !0, !1)), (d ? Promise.resolve(d) : se(u, i)).catch((e) => w(e) ? w(e, 2) ? e : V(e) : B(e, u, i)).then((e) => {
1061
+ let l = n;
1062
+ l.redirectedFrom = t;
1063
+ let u;
1064
+ return !o && he(i, r, n) && (u = C(16, {
1065
+ to: l,
1066
+ from: r
1067
+ }), H(r, r, !0, !1)), (u ? Promise.resolve(u) : se(l, r)).catch((e) => w(e) ? w(e, 2) ? e : V(e) : B(e, l, r)).then((e) => {
1068
1068
  if (e) {
1069
1069
  if (w(e, 2)) return N(y({ replace: s }, E(e.to), {
1070
1070
  state: typeof e.to == "object" ? y({}, a, e.to.state) : a,
1071
1071
  force: o
1072
- }), t || u);
1073
- } else e = ce(u, i, !0, s, a);
1074
- return F(u, i, e), e;
1072
+ }), t || l);
1073
+ } else e = ce(l, r, !0, s, a);
1074
+ return F(l, r, e), e;
1075
1075
  });
1076
1076
  }
1077
1077
  function oe(e, t) {
@@ -1083,7 +1083,7 @@ function Dt(e) {
1083
1083
  return t && typeof t.runWithContext == "function" ? t.runWithContext(e) : e();
1084
1084
  }
1085
1085
  function se(e, t) {
1086
- let n, [r, i, s] = Be(e, t);
1086
+ let n, [r, i, a] = Be(e, t);
1087
1087
  n = Re(r.reverse(), "beforeRouteLeave", e, t);
1088
1088
  for (let i of r) i.leaveGuards.forEach((r) => {
1089
1089
  n.push($(r, e, t));
@@ -1091,7 +1091,7 @@ function Dt(e) {
1091
1091
  let c = oe.bind(null, e, t);
1092
1092
  return n.push(c), J(n).then(() => {
1093
1093
  n = [];
1094
- for (let r of a.list()) n.push($(r, e, t));
1094
+ for (let r of o.list()) n.push($(r, e, t));
1095
1095
  return n.push(c), J(n);
1096
1096
  }).then(() => {
1097
1097
  n = Re(i, "beforeRouteUpdate", e, t);
@@ -1101,44 +1101,44 @@ function Dt(e) {
1101
1101
  return n.push(c), J(n);
1102
1102
  }).then(() => {
1103
1103
  n = [];
1104
- for (let r of s) if (r.beforeEnter) {
1104
+ for (let r of a) if (r.beforeEnter) {
1105
1105
  if (S(r.beforeEnter)) for (let i of r.beforeEnter) n.push($(i, e, t));
1106
1106
  else n.push($(r.beforeEnter, e, t));
1107
1107
  }
1108
1108
  return n.push(c), J(n);
1109
- }).then(() => (e.matched.forEach((e) => e.enterCallbacks = {}), n = Re(s, "beforeRouteEnter", e, t, P), n.push(c), J(n))).then(() => {
1109
+ }).then(() => (e.matched.forEach((e) => e.enterCallbacks = {}), n = Re(a, "beforeRouteEnter", e, t, P), n.push(c), J(n))).then(() => {
1110
1110
  n = [];
1111
- for (let r of o.list()) n.push($(r, e, t));
1111
+ for (let r of s.list()) n.push($(r, e, t));
1112
1112
  return n.push(c), J(n);
1113
1113
  }).catch((e) => w(e, 8) ? e : Promise.reject(e));
1114
1114
  }
1115
1115
  function F(e, t, n) {
1116
- s.list().forEach((r) => P(() => r(e, t, n)));
1116
+ c.list().forEach((r) => P(() => r(e, t, n)));
1117
1117
  }
1118
- function ce(e, t, n, r, a) {
1118
+ function ce(e, t, n, r, i) {
1119
1119
  let o = ie(e, t);
1120
1120
  if (o) return o;
1121
1121
  let s = t === X, c = j ? history.state : {};
1122
- n && (r || s ? i.replace(e.fullPath, y({ scroll: s && c && c.scroll }, a)) : i.push(e.fullPath, a)), l.value = e, H(e, t, n, s), V();
1122
+ n && (r || s ? a.replace(e.fullPath, y({ scroll: s && c && c.scroll }, i)) : a.push(e.fullPath, i)), d.value = e, H(e, t, n, s), V();
1123
1123
  }
1124
1124
  let I;
1125
1125
  function le() {
1126
- I ||= i.listen((e, t, n) => {
1126
+ I ||= a.listen((e, t, n) => {
1127
1127
  if (!q.listening) return;
1128
- let r = T(e), a = M(r, q.currentRoute.value);
1129
- if (a) {
1130
- N(y(a, {
1128
+ let r = T(e), i = M(r, q.currentRoute.value);
1129
+ if (i) {
1130
+ N(y(i, {
1131
1131
  replace: !0,
1132
1132
  force: !0
1133
1133
  }), r).catch(x);
1134
1134
  return;
1135
1135
  }
1136
1136
  p = r;
1137
- let o = l.value;
1137
+ let o = d.value;
1138
1138
  j && n.delta && De(Ee(o.fullPath, n.delta)), se(r, o).catch((e) => w(e, 12) ? e : w(e, 2) ? (N(y(E(e.to), { force: !0 }), r).then((e) => {
1139
- w(e, 20) && !n.delta && n.type === "pop" && i.go(-1, !1);
1140
- }).catch(x), Promise.reject()) : (n.delta && i.go(-n.delta, !1), B(e, r, o))).then((e) => {
1141
- e ||= ce(r, o, !1), e && (n.delta && !w(e, 8) ? i.go(-n.delta, !1) : n.type === "pop" && w(e, 20) && i.go(-1, !1)), F(r, o, e);
1139
+ w(e, 20) && !n.delta && n.type === "pop" && a.go(-1, !1);
1140
+ }).catch(x), Promise.reject()) : (n.delta && a.go(-n.delta, !1), B(e, r, o))).then((e) => {
1141
+ e ||= ce(r, o, !1), e && (n.delta && !w(e, 8) ? a.go(-n.delta, !1) : n.type === "pop" && w(e, 20) && a.go(-1, !1)), F(r, o, e);
1142
1142
  }).catch(x);
1143
1143
  });
1144
1144
  }
@@ -1149,21 +1149,21 @@ function Dt(e) {
1149
1149
  return r.length ? r.forEach((r) => r(e, t, n)) : console.error(e), Promise.reject(e);
1150
1150
  }
1151
1151
  function ue() {
1152
- return z && l.value !== X ? Promise.resolve() : new Promise((e, t) => {
1152
+ return z && d.value !== X ? Promise.resolve() : new Promise((e, t) => {
1153
1153
  L.add([e, t]);
1154
1154
  });
1155
1155
  }
1156
1156
  function V(e) {
1157
1157
  return z || (z = !e, le(), L.list().forEach(([t, n]) => e ? n(e) : t()), L.reset()), e;
1158
1158
  }
1159
- function H(t, n, r, i) {
1160
- let { scrollBehavior: a } = e;
1161
- if (!j || !a) return Promise.resolve();
1162
- let o = !r && Oe(Ee(t.fullPath, 0)) || (i || !r) && history.state && history.state.scroll || null;
1163
- return u().then(() => a(t, n, o)).then((e) => t === l.value && e && Te(e)).catch((e) => t === l.value && B(e, t, n));
1159
+ function H(n, r, i, a) {
1160
+ let { scrollBehavior: o } = e;
1161
+ if (!j || !o) return Promise.resolve();
1162
+ let s = !i && Oe(Ee(n.fullPath, 0)) || (a || !i) && history.state && history.state.scroll || null;
1163
+ return t().then(() => o(n, r, s)).then((e) => n === d.value && e && Te(e)).catch((e) => n === d.value && B(e, n, r));
1164
1164
  }
1165
- let U = (e) => i.go(e), W, K = /* @__PURE__ */ new Set(), q = {
1166
- currentRoute: l,
1165
+ let U = (e) => a.go(e), W, K = /* @__PURE__ */ new Set(), q = {
1166
+ currentRoute: d,
1167
1167
  listening: !0,
1168
1168
  addRoute: _,
1169
1169
  removeRoute: v,
@@ -1177,25 +1177,25 @@ function Dt(e) {
1177
1177
  go: U,
1178
1178
  back: () => U(-1),
1179
1179
  forward: () => U(1),
1180
- beforeEach: a.add,
1181
- beforeResolve: o.add,
1182
- afterEach: s.add,
1180
+ beforeEach: o.add,
1181
+ beforeResolve: s.add,
1182
+ afterEach: c.add,
1183
1183
  onError: R.add,
1184
1184
  isReady: ue,
1185
1185
  install(e) {
1186
1186
  e.component("RouterLink", yt), e.component("RouterView", Et), e.config.globalProperties.$router = q, Object.defineProperty(e.config.globalProperties, "$route", {
1187
1187
  enumerable: !0,
1188
- get: () => c(l)
1189
- }), j && !W && l.value === X && (W = !0, A(i.location).catch((e) => {}));
1188
+ get: () => u(d)
1189
+ }), j && !W && d.value === X && (W = !0, A(a.location).catch((e) => {}));
1190
1190
  let t = {};
1191
1191
  for (let e in X) Object.defineProperty(t, e, {
1192
- get: () => l.value[e],
1192
+ get: () => d.value[e],
1193
1193
  enumerable: !0
1194
1194
  });
1195
- e.provide(D, q), e.provide(O, d(t)), e.provide(k, l);
1195
+ e.provide(D, q), e.provide(O, h(t)), e.provide(k, d);
1196
1196
  let n = e.unmount;
1197
1197
  K.add(e), e.unmount = function() {
1198
- K.delete(e), K.size < 1 && (p = X, I && I(), I = null, l.value = X, W = !1, z = !1), n();
1198
+ K.delete(e), K.size < 1 && (p = X, I && I(), I = null, d.value = X, W = !1, z = !1), n();
1199
1199
  };
1200
1200
  }
1201
1201
  };
@@ -4848,4 +4848,4 @@ var pu = !1, mu = () => {
4848
4848
  withScopeId: () => ur
4849
4849
  }), gu = () => {};
4850
4850
  //#endregion
4851
- export { en as $, Li as A, la as B, Q as C, ds as D, hr as E, Ki as F, ni as G, ra as H, Xi as I, yr as J, $s as K, Ji as L, Yi as M, Ri as N, Ts as O, ea as P, Fe as Q, is as R, $r as S, gr as T, aa as U, da as V, Da as W, fr as X, dr as Y, Pe as Z, ua as _, Rl as a, on as at, J as b, $l as c, F as ct, ys as d, dn as dt, L as et, Js as f, O as ft, ls as g, ie as gt, Ss as h, ke as ht, lu as i, Zt as it, Gi as j, Jn as k, G as l, bn as lt, us as m, fe as mt, vc as n, Ie as nt, Ic as o, Xt as ot, gs as p, _e as pt, Sr as q, Dl as r, Yt as rt, tu as s, sn as st, hu as t, rn as tt, Lr as u, _n as ut, xs as v, Ys as w, Mi as x, bs as y, mr as z };
4851
+ export { Fe as $, Jn as A, mr as B, $r as C, hr as D, gr as E, ea as F, Da as G, da as H, Ki as I, Sr as J, ni as K, Xi as L, Gi as M, Yi as N, ds as O, Ri as P, Pe as Q, Ji as R, Mi as S, Ys as T, ra as U, la as V, aa as W, dr as X, yr as Y, fr as Z, ls as _, ie as _t, zl as a, Zt as at, bs as b, tu as c, sn as ct, Lr as d, _n as dt, en as et, ys as f, dn as ft, Ss as g, ke as gt, us as h, fe as ht, lu as i, Yt as it, Li as j, Ts as k, $l as l, F as lt, gs as m, _e as mt, vc as n, rn as nt, Rl as o, on as ot, Js as p, O as pt, $s as q, Dl as r, Ie as rt, Ic as s, Xt as st, hu as t, L as tt, G as u, bn as ut, ua as v, Q as w, J as x, xs as y, is as z };