@deot/docs-client 1.1.4 → 1.1.6
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 +86 -1
- package/dist/chunks/{compile-Bw7v7QE--Dd1-R95H.js → compile-CM_OyqYN-Bd7bk_OB.js} +1711 -2816
- package/dist/chunks/{compiler-sfc.esm-browser-B4_kBkG5.js → compiler-sfc.esm-browser-5dA1IWMJ.js} +185 -305
- package/dist/chunks/{script-xKUjE8pf-oF69rg-w.js → css-DleINdoA-FdeEznDX.js} +2669 -2480
- package/dist/chunks/{dist-DlmO7OlF.js → dist-B44jICwZ.js} +1 -1
- package/dist/chunks/{dist-COjpr4FU.js → dist-DHJhaOSs.js} +2 -2
- package/dist/chunks/{dist-C8z9l0mA.js → dist-DSypl37f.js} +1 -1
- package/dist/chunks/dist-DWn6r6un.js +76 -0
- package/dist/chunks/{dist-CuJyl-ef.js → dist-Wm6vE6kM.js} +8 -8
- package/dist/chunks/{echarts-Dk-pu7GM.js → echarts-BBzcOaek.js} +1075 -1290
- package/dist/chunks/{html2canvas-Deo0mM5K.js → html2canvas-DoKTvaOT.js} +3 -13
- package/dist/chunks/{index.es-UlJ0gfdF.js → index.es-wVPQxEPP.js} +32 -37
- package/dist/chunks/{jspdf.es.min-CJc40v7q.js → jspdf.es.min-Zm27YeAg.js} +1080 -1053
- package/dist/chunks/{jsx-CwMPlI4_-CAiik-V7.js → jsx-CwMPlI4_-CBhlIHLh.js} +8002 -8541
- package/dist/chunks/{jszip.min-BbVwZKYP.js → jszip.min-Da8UgalE.js} +5 -5
- package/dist/chunks/{lodash-Cxf6dD_I.js → lodash-CYyW02I7.js} +10 -14
- package/dist/chunks/{photoswipe.esm-B0V-xGTB.js → photoswipe.esm-D52MAtDT.js} +11 -38
- package/dist/chunks/{purify.es-BiqY1C6m.js → purify.es-DhHsvqCe.js} +1 -23
- package/dist/chunks/{vue-router-C0mj8Ot5.js → vue-router-DZ-KfC9f.js} +373 -361
- package/dist/chunks/{vue.runtime.esm-bundler-XxHGOLq2.js → vue.runtime.esm-bundler-zZTAiuf6.js} +10 -38
- package/dist/eval/chunks/browser-Cmwcvs-d.js +4 -0
- package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +4 -0
- package/dist/eval/chunks/compile-CM_OyqYN-Bd7bk_OB.js +7 -0
- package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +4 -0
- package/dist/eval/chunks/css-DleINdoA-FdeEznDX.js +8 -0
- package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +4 -0
- package/dist/eval/chunks/dist-0ySyXNpo.js +4 -0
- package/dist/eval/chunks/dist-B44jICwZ.js +5 -0
- package/dist/eval/chunks/dist-BUw25nXJ.js +6 -0
- package/dist/eval/chunks/dist-BeOE8qTX.js +4 -0
- package/dist/eval/chunks/dist-C3V7reR4.js +4 -0
- package/dist/eval/chunks/dist-CI9Lp9Cj.js +4 -0
- package/dist/eval/chunks/dist-CQir6D4y.js +5 -0
- package/dist/eval/chunks/dist-Cxf7_ocf.js +4 -0
- package/dist/eval/chunks/dist-DF4kisl2.js +5 -0
- package/dist/eval/chunks/dist-DHJhaOSs.js +5 -0
- package/dist/eval/chunks/dist-DLj8yJdm.js +4 -0
- package/dist/eval/chunks/dist-DSypl37f.js +5 -0
- package/dist/eval/chunks/dist-DWn6r6un.js +4 -0
- package/dist/eval/chunks/dist-DWqBe2Ah.js +6 -0
- package/dist/eval/chunks/dist-D_Uqh6m9.js +4 -0
- package/dist/eval/chunks/dist-DcIU51zW.js +4 -0
- package/dist/eval/chunks/dist-Wm6vE6kM.js +1 -0
- package/dist/eval/chunks/dist-kiZUqqzR.js +4 -0
- package/dist/eval/chunks/dist-oZ12SGqg.js +4 -0
- package/dist/eval/chunks/dist-va7FmnW4.js +4 -0
- package/dist/eval/chunks/echarts-BBzcOaek.js +4 -0
- package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +1 -0
- package/dist/eval/chunks/html2canvas-DoKTvaOT.js +4 -0
- package/dist/eval/chunks/index.es-wVPQxEPP.js +5 -0
- package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +78 -0
- package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +4 -0
- package/dist/eval/chunks/jszip.min-Da8UgalE.js +4 -0
- package/dist/eval/chunks/lodash-CYyW02I7.js +4 -0
- package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +4 -0
- package/dist/eval/chunks/purify.es-DhHsvqCe.js +4 -0
- package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +4 -0
- package/dist/eval/chunks/vue-router-DZ-KfC9f.js +5 -0
- package/dist/eval/chunks/vue.runtime.esm-bundler-zZTAiuf6.js +4 -0
- package/dist/eval/index.js +24 -0
- package/dist/eval/index.style.css +21 -0
- package/dist/index.cjs +986 -325
- package/dist/index.d.ts +1 -0
- package/dist/index.js +73526 -30926
- package/dist/index.style.css +3 -3
- package/package.json +12 -12
- package/dist/chunks/cdn-DEvdGJu2-bmlgKy4E.js +0 -38
- package/dist/chunks/dist-Bm7SK-km.js +0 -24517
- package/dist/chunks/dist-DN0sqx7H.js +0 -39
- package/dist/chunks/dist-uXnwGrO3.js +0 -76
- package/dist/chunks/files-C5UMzYxA-q9oJ4PrI.js +0 -110
- package/dist/chunks/linker-JHdz37DK-CWgUtxZ5.js +0 -118
- package/dist/chunks/local-sandbox-B8IJ5jWb-BgfU3iQ4.js +0 -300
- package/dist/chunks/modules-DlLJF_vd-DcNdL6sc.js +0 -153
- package/dist/chunks/pinia-pDJilYOg.js +0 -326
- package/dist/chunks/remote-DfXAsO9n-C_MtPVYr.js +0 -75
- package/dist/chunks/store-D8vwi-HV-RFStijWr.js +0 -16936
- package/dist/chunks/vc-components-C7ruefOT.js +0 -6
- package/dist/chunks/vc-components-m3l_xrd8.js +0 -6
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
globalThis.process;
|
|
2
|
-
import { i as e } from "./rolldown-runtime-Ce3zPWPd.js";
|
|
3
|
-
import { a as t } from "./cdn-DEvdGJu2-bmlgKy4E.js";
|
|
4
|
-
//#region packages/playground/dist/modules-DlLJF_vd.js
|
|
5
|
-
var n = {
|
|
6
|
-
vue: () => import("./vue.runtime.esm-bundler-XxHGOLq2.js").then((e) => e.t),
|
|
7
|
-
"vue-router": () => import("./vue-router-C0mj8Ot5.js").then((e) => e.o),
|
|
8
|
-
pinia: () => import("./pinia-pDJilYOg.js"),
|
|
9
|
-
"@deot/helper": () => import("./dist-CuJyl-ef.js"),
|
|
10
|
-
"@deot/helper-cache": () => import("./dist-CQir6D4y.js").then((e) => e.a),
|
|
11
|
-
"@deot/helper-device": () => import("./dist-kiZUqqzR.js"),
|
|
12
|
-
"@deot/helper-dom": () => import("./dist-va7FmnW4.js").then((e) => e.i),
|
|
13
|
-
"@deot/helper-emitter": () => import("./dist-Cxf7_ocf.js").then((e) => e.n),
|
|
14
|
-
"@deot/helper-fp": () => import("./dist-COjpr4FU.js").then((e) => e.i),
|
|
15
|
-
"@deot/helper-is": () => import("./dist-DLj8yJdm.js").then((e) => e.o),
|
|
16
|
-
"@deot/helper-load": () => import("./dist-D_Uqh6m9.js").then((e) => e.t),
|
|
17
|
-
"@deot/helper-resize": () => import("./dist-DN0sqx7H.js").then((e) => e.n),
|
|
18
|
-
"@deot/helper-route": () => import("./dist-DF4kisl2.js"),
|
|
19
|
-
"@deot/helper-scheduler": () => import("./dist-C8z9l0mA.js").then((e) => e.n),
|
|
20
|
-
"@deot/helper-shared": () => import("./dist-oZ12SGqg.js"),
|
|
21
|
-
"@deot/helper-unicode": () => import("./dist-DlmO7OlF.js"),
|
|
22
|
-
"@deot/helper-utils": () => import("./dist-C3V7reR4.js").then((e) => e.r),
|
|
23
|
-
"@deot/helper-validator": () => import("./dist-DcIU51zW.js").then((e) => e.n),
|
|
24
|
-
"@deot/helper-wheel": () => import("./dist-CI9Lp9Cj.js").then((e) => e.n),
|
|
25
|
-
"@deot/http-client": () => import("./dist-DWqBe2Ah.js").then((e) => e.r),
|
|
26
|
-
"@deot/http-core": () => import("./dist-BeOE8qTX.js").then((e) => e.a),
|
|
27
|
-
"@deot/http-hooks": () => import("./dist-BUw25nXJ.js").then((e) => e.t),
|
|
28
|
-
"@deot/http": () => import("../index.js").then((e) => e.t),
|
|
29
|
-
"@deot/vc": () => import("../index.js").then((e) => e.n),
|
|
30
|
-
"@deot/vc-components": () => import("./dist-Bm7SK-km.js").then((e) => e.ai),
|
|
31
|
-
"@deot/vc-hooks": () => import("./dist-uXnwGrO3.js").then((e) => e.t),
|
|
32
|
-
"@deot/vc-locale": () => import("./dist-0ySyXNpo.js").then((e) => e.t),
|
|
33
|
-
"lodash-es": () => import("./lodash-Cxf6dD_I.js").then((e) => e.t),
|
|
34
|
-
echarts: () => import("./echarts-Dk-pu7GM.js"),
|
|
35
|
-
photoswipe: () => import("./photoswipe.esm-B0V-xGTB.js"),
|
|
36
|
-
jszip: () => import("./jszip.min-BbVwZKYP.js").then((t) => /* @__PURE__ */ e(t.default)),
|
|
37
|
-
jspdf: () => import("./jspdf.es.min-CJc40v7q.js").then((e) => e.t),
|
|
38
|
-
dayjs: async () => (await import("./dayjs.min-B3g34Qcz.js").then((t) => /* @__PURE__ */ e(t.default))).default
|
|
39
|
-
}, r = /* @__PURE__ */ new Map(), i = new Set(Object.keys(n)), a = (e) => {
|
|
40
|
-
let t = n[e];
|
|
41
|
-
if (!t) return Promise.reject(/* @__PURE__ */ Error(`[Playground] 没有本地模块 "${e}"`));
|
|
42
|
-
let i = r.get(e);
|
|
43
|
-
return i || (i = t(), r.set(e, i)), i;
|
|
44
|
-
}, o = /* @__PURE__ */ new Set([
|
|
45
|
-
"prototype",
|
|
46
|
-
"caller",
|
|
47
|
-
"arguments"
|
|
48
|
-
]), s = (e) => {
|
|
49
|
-
if (e == null || typeof e != "object" && typeof e != "function") return {
|
|
50
|
-
__esModule: !0,
|
|
51
|
-
default: e
|
|
52
|
-
};
|
|
53
|
-
let t = e, n = { __esModule: !0 }, r = (e) => {
|
|
54
|
-
if (!(o.has(e) || e === "__esModule")) try {
|
|
55
|
-
n[e] = t[e];
|
|
56
|
-
} catch {}
|
|
57
|
-
};
|
|
58
|
-
try {
|
|
59
|
-
Object.keys(t).forEach(r);
|
|
60
|
-
} catch {}
|
|
61
|
-
try {
|
|
62
|
-
Object.getOwnPropertyNames(t).forEach(r);
|
|
63
|
-
} catch {}
|
|
64
|
-
return (!("default" in n) || n.default === void 0) && (n.default = t.default === void 0 ? t : t.default), n;
|
|
65
|
-
}, c = (e, t) => Object.prototype.hasOwnProperty.call(t, e) ? s(t[e]) : null, l = (e, t) => {
|
|
66
|
-
if (!t) return;
|
|
67
|
-
let n = t.split("/").filter(Boolean), r = e;
|
|
68
|
-
for (let e of n) {
|
|
69
|
-
if (r == null || typeof r != "object" && typeof r != "function") return;
|
|
70
|
-
let t = r;
|
|
71
|
-
if (!(e in t)) return;
|
|
72
|
-
r = t[e];
|
|
73
|
-
}
|
|
74
|
-
return r;
|
|
75
|
-
}, u = (e, t) => {
|
|
76
|
-
let n = c(e, t);
|
|
77
|
-
if (n) return n;
|
|
78
|
-
let r = e;
|
|
79
|
-
for (;;) {
|
|
80
|
-
let n = r.lastIndexOf("/");
|
|
81
|
-
if (n <= 0) break;
|
|
82
|
-
let i = r.slice(0, n), a = e.slice(i.length + 1), o = c(i, t);
|
|
83
|
-
if (o) {
|
|
84
|
-
let e = l(o, a);
|
|
85
|
-
if (e !== void 0) return s(e);
|
|
86
|
-
}
|
|
87
|
-
r = i;
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
}, d = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), f = (e) => e instanceof Error ? e.message : String(e), p = (e, t) => {
|
|
91
|
-
if (t[e]) return e;
|
|
92
|
-
let n = e;
|
|
93
|
-
for (;;) {
|
|
94
|
-
let e = n.lastIndexOf("/");
|
|
95
|
-
if (e <= 0) return null;
|
|
96
|
-
let r = n.slice(0, e);
|
|
97
|
-
if (t[r]) return r;
|
|
98
|
-
n = r;
|
|
99
|
-
}
|
|
100
|
-
}, m = (e, n, r) => {
|
|
101
|
-
if (!i.has(e) && !d.has(e)) return !1;
|
|
102
|
-
let a = n[e];
|
|
103
|
-
return !a || a === t(r)[e];
|
|
104
|
-
}, h = async (e, t, n, r, i) => {
|
|
105
|
-
let o = {
|
|
106
|
-
vue: n.vue,
|
|
107
|
-
"vue-router": n.vueRouter
|
|
108
|
-
}, s = [], c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set();
|
|
109
|
-
e.forEach((e) => {
|
|
110
|
-
if (m(e, t, i)) l.add(e);
|
|
111
|
-
else {
|
|
112
|
-
let n = e;
|
|
113
|
-
for (;;) {
|
|
114
|
-
let e = n.lastIndexOf("/");
|
|
115
|
-
if (e <= 0) break;
|
|
116
|
-
let r = n.slice(0, e);
|
|
117
|
-
if (m(r, t, i)) {
|
|
118
|
-
l.add(r);
|
|
119
|
-
break;
|
|
120
|
-
}
|
|
121
|
-
n = r;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
if (e === "vue-router") {
|
|
125
|
-
t["vue-router"] && c.add("vue-router");
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
let n = p(e, t);
|
|
129
|
-
n && m(n, t, i) ? l.add(n) : n && c.add(n);
|
|
130
|
-
}), await Promise.all([...l].map(async (e) => {
|
|
131
|
-
if (e !== "vue" && e !== "vue-router") {
|
|
132
|
-
if (e === "vue/server-renderer") {
|
|
133
|
-
o[e] = n.vue;
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
o[e] = await a(e);
|
|
137
|
-
}
|
|
138
|
-
}));
|
|
139
|
-
for (let e of c) {
|
|
140
|
-
let n = t[e];
|
|
141
|
-
if (n && !m(e, t, i)) try {
|
|
142
|
-
o[e] = await r(n);
|
|
143
|
-
} catch (t) {
|
|
144
|
-
s.push(`[Playground] 无法加载模块 "${e}" (${n}): ${f(t)}`);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
modules: o,
|
|
149
|
-
errors: s
|
|
150
|
-
};
|
|
151
|
-
};
|
|
152
|
-
//#endregion
|
|
153
|
-
export { h as loadLocalModules, i as n, m as prefersLocalBuiltin, u as resolveHostModule, p as resolveImportTarget, a as t, s as toHostModule };
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
globalThis.process;
|
|
2
|
-
import { $ as e, E as t, Q as n, T as r, Z as i, at as a, ct as o, et as s, f as c, k as l, lt as u, nt as d, q as f, rt as p, tt as m, ut as h } from "./vue.runtime.esm-bundler-XxHGOLq2.js";
|
|
3
|
-
//#region node_modules/.pnpm/pinia@4.0.3_@vue+devtools-api@8.2.1_typescript@6.0.3_vue@3.5.43_typescript@6.0.3_/node_modules/pinia/dist/pinia.js
|
|
4
|
-
var g = typeof window < "u", _, v = (e) => _ = e, y = () => r() && t(b) || _, b = Symbol();
|
|
5
|
-
function x(e) {
|
|
6
|
-
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
7
|
-
}
|
|
8
|
-
var S = /* @__PURE__ */ function(e) {
|
|
9
|
-
return e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function", e;
|
|
10
|
-
}({}), C = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
11
|
-
function w(e, { autoBom: t = !1 } = {}) {
|
|
12
|
-
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["", e], { type: e.type }) : e;
|
|
13
|
-
}
|
|
14
|
-
function T(e, t, n) {
|
|
15
|
-
let r = new XMLHttpRequest();
|
|
16
|
-
r.open("GET", e), r.responseType = "blob", r.onload = function() {
|
|
17
|
-
A(r.response, t, n);
|
|
18
|
-
}, r.onerror = function() {
|
|
19
|
-
console.error("could not download file");
|
|
20
|
-
}, r.send();
|
|
21
|
-
}
|
|
22
|
-
function E(e) {
|
|
23
|
-
let t = new XMLHttpRequest();
|
|
24
|
-
t.open("HEAD", e, !1);
|
|
25
|
-
try {
|
|
26
|
-
t.send();
|
|
27
|
-
} catch {}
|
|
28
|
-
return t.status >= 200 && t.status <= 299;
|
|
29
|
-
}
|
|
30
|
-
function D(e) {
|
|
31
|
-
try {
|
|
32
|
-
e.dispatchEvent(new MouseEvent("click"));
|
|
33
|
-
} catch {
|
|
34
|
-
let t = new MouseEvent("click", {
|
|
35
|
-
bubbles: !0,
|
|
36
|
-
cancelable: !0,
|
|
37
|
-
view: window,
|
|
38
|
-
detail: 0,
|
|
39
|
-
screenX: 80,
|
|
40
|
-
screenY: 20,
|
|
41
|
-
clientX: 80,
|
|
42
|
-
clientY: 20,
|
|
43
|
-
ctrlKey: !1,
|
|
44
|
-
altKey: !1,
|
|
45
|
-
shiftKey: !1,
|
|
46
|
-
metaKey: !1,
|
|
47
|
-
button: 0,
|
|
48
|
-
relatedTarget: null
|
|
49
|
-
});
|
|
50
|
-
e.dispatchEvent(t);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
var O = typeof navigator == "object" ? navigator : { userAgent: "" }, k = /Macintosh/.test(O.userAgent) && /AppleWebKit/.test(O.userAgent) && !/Safari/.test(O.userAgent), A = g ? typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !k ? j : "msSaveOrOpenBlob" in O ? M : N : () => {};
|
|
54
|
-
function j(e, t = "download", n) {
|
|
55
|
-
let r = document.createElement("a");
|
|
56
|
-
r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin === location.origin ? D(r) : E(r.href) ? T(e, t, n) : (r.target = "_blank", D(r))) : (r.href = URL.createObjectURL(e), setTimeout(function() {
|
|
57
|
-
URL.revokeObjectURL(r.href);
|
|
58
|
-
}, 4e4), setTimeout(function() {
|
|
59
|
-
D(r);
|
|
60
|
-
}, 0));
|
|
61
|
-
}
|
|
62
|
-
function M(e, t = "download", n) {
|
|
63
|
-
if (typeof e == "string") {
|
|
64
|
-
if (E(e)) T(e, t, n);
|
|
65
|
-
else {
|
|
66
|
-
let t = document.createElement("a");
|
|
67
|
-
t.href = e, t.target = "_blank", setTimeout(function() {
|
|
68
|
-
D(t);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
} else navigator.msSaveOrOpenBlob(w(e, n), t);
|
|
72
|
-
}
|
|
73
|
-
function N(e, t, n, r) {
|
|
74
|
-
if (r ||= open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string") return T(e, t, n);
|
|
75
|
-
let i = e.type === "application/octet-stream", a = /constructor/i.test(String(C.HTMLElement)) || "safari" in C, o = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
76
|
-
if ((o || i && a || k) && typeof FileReader < "u") {
|
|
77
|
-
let t = new FileReader();
|
|
78
|
-
t.onloadend = function() {
|
|
79
|
-
let e = t.result;
|
|
80
|
-
if (typeof e != "string") throw r = null, Error("Wrong reader.result type");
|
|
81
|
-
e = o ? e : e.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = e : location.assign(e), r = null;
|
|
82
|
-
}, t.readAsDataURL(e);
|
|
83
|
-
} else {
|
|
84
|
-
let t = URL.createObjectURL(e);
|
|
85
|
-
r ? r.location.assign(t) : location.href = t, r = null, setTimeout(function() {
|
|
86
|
-
URL.revokeObjectURL(t);
|
|
87
|
-
}, 4e4);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
var { assign: ee } = Object;
|
|
91
|
-
function P() {
|
|
92
|
-
let e = i(!0), t = e.run(() => a({})), n = [], r = [], o = m({
|
|
93
|
-
install(e) {
|
|
94
|
-
v(o), o._a = e, e.provide(b, o), e.config.globalProperties.$pinia = o, r.forEach((e) => n.push(e)), r = [];
|
|
95
|
-
},
|
|
96
|
-
use(e) {
|
|
97
|
-
return this._a ? n.push(e) : r.push(e), this;
|
|
98
|
-
},
|
|
99
|
-
_p: n,
|
|
100
|
-
_a: null,
|
|
101
|
-
_e: e,
|
|
102
|
-
_s: /* @__PURE__ */ new Map(),
|
|
103
|
-
state: t
|
|
104
|
-
});
|
|
105
|
-
return o;
|
|
106
|
-
}
|
|
107
|
-
function F(e) {
|
|
108
|
-
e._e.stop(), e._s.clear(), e._p.splice(0), e.state.value = {}, e._a = null;
|
|
109
|
-
}
|
|
110
|
-
function I(e, t) {
|
|
111
|
-
return () => {};
|
|
112
|
-
}
|
|
113
|
-
var L = () => {};
|
|
114
|
-
function R(e, t, r, i = L) {
|
|
115
|
-
e.add(t);
|
|
116
|
-
let a = () => {
|
|
117
|
-
e.delete(t) && i();
|
|
118
|
-
};
|
|
119
|
-
return !r && n() && d(a), a;
|
|
120
|
-
}
|
|
121
|
-
function z(e, ...t) {
|
|
122
|
-
e.forEach((e) => {
|
|
123
|
-
e(...t);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
var B = (e) => e(), V = Symbol(), H = Symbol();
|
|
127
|
-
function U(t, n) {
|
|
128
|
-
t instanceof Map && n instanceof Map ? n.forEach((e, n) => t.set(n, e)) : t instanceof Set && n instanceof Set && n.forEach(t.add, t);
|
|
129
|
-
for (let r in n) {
|
|
130
|
-
if (!Object.hasOwn(n, r)) continue;
|
|
131
|
-
let i = n[r], a = t[r];
|
|
132
|
-
t[r] = x(a) && x(i) && Object.hasOwn(t, r) && !s(i) && !e(i) ? U(a, i) : i;
|
|
133
|
-
}
|
|
134
|
-
return t;
|
|
135
|
-
}
|
|
136
|
-
var W = Symbol();
|
|
137
|
-
function G(e) {
|
|
138
|
-
return Object.defineProperty(e, W, {});
|
|
139
|
-
}
|
|
140
|
-
function K(e) {
|
|
141
|
-
return !e || typeof e != "object" || !Object.hasOwn(e, W);
|
|
142
|
-
}
|
|
143
|
-
var { assign: q } = Object;
|
|
144
|
-
function J(e) {
|
|
145
|
-
return !!(s(e) && e.effect);
|
|
146
|
-
}
|
|
147
|
-
function Y(e, t, n, r) {
|
|
148
|
-
let { state: i, actions: a, getters: o } = t, s = n.state.value[e], l;
|
|
149
|
-
function u() {
|
|
150
|
-
return s ||
|
|
151
|
-
/* istanbul ignore if */
|
|
152
|
-
(n.state.value[e] = i ? i() : {}), q(h(n.state.value[e]), a, Object.keys(o || {}).reduce((t, r) => (t[r] = m(c(() => {
|
|
153
|
-
v(n);
|
|
154
|
-
let t = n._s.get(e);
|
|
155
|
-
return o[r].call(t, t);
|
|
156
|
-
})), t), {}));
|
|
157
|
-
}
|
|
158
|
-
return l = X(e, u, t, n, r, !0), l;
|
|
159
|
-
}
|
|
160
|
-
function X(t, n, r = {}, a, c, u) {
|
|
161
|
-
let d, m = q({ actions: {} }, r), h = { deep: !0 }, g, _, y = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set(), x, S = a.state.value[t];
|
|
162
|
-
!u && !S &&
|
|
163
|
-
/* istanbul ignore if */
|
|
164
|
-
(a.state.value[t] = {});
|
|
165
|
-
let C;
|
|
166
|
-
function w(e) {
|
|
167
|
-
let n;
|
|
168
|
-
g = _ = !1, typeof e == "function" ? (e(a.state.value[t]), n = {
|
|
169
|
-
type: "patch function",
|
|
170
|
-
storeId: t,
|
|
171
|
-
events: x
|
|
172
|
-
}) : (U(a.state.value[t], e), n = {
|
|
173
|
-
type: "patch object",
|
|
174
|
-
payload: e,
|
|
175
|
-
storeId: t,
|
|
176
|
-
events: x
|
|
177
|
-
});
|
|
178
|
-
let r = C = Symbol();
|
|
179
|
-
l().then(() => {
|
|
180
|
-
C === r && (g = !0);
|
|
181
|
-
}), _ = !0, z(y, n, a.state.value[t]);
|
|
182
|
-
}
|
|
183
|
-
let T = u ? function() {
|
|
184
|
-
let { state: e } = r, t = e ? e() : {};
|
|
185
|
-
this.$patch((e) => {
|
|
186
|
-
q(e, t);
|
|
187
|
-
});
|
|
188
|
-
} : L;
|
|
189
|
-
function E() {
|
|
190
|
-
d.stop(), y.clear(), b.clear(), a._s.delete(t);
|
|
191
|
-
}
|
|
192
|
-
let D = (e, n = "") => {
|
|
193
|
-
if (V in e) return e[H] = n, e;
|
|
194
|
-
let r = function() {
|
|
195
|
-
v(a);
|
|
196
|
-
let n = Array.from(arguments), i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
|
|
197
|
-
function s(e) {
|
|
198
|
-
i.add(e);
|
|
199
|
-
}
|
|
200
|
-
function c(e) {
|
|
201
|
-
o.add(e);
|
|
202
|
-
}
|
|
203
|
-
z(b, {
|
|
204
|
-
args: n,
|
|
205
|
-
name: r[H],
|
|
206
|
-
store: k,
|
|
207
|
-
after: s,
|
|
208
|
-
onError: c
|
|
209
|
-
});
|
|
210
|
-
let l;
|
|
211
|
-
try {
|
|
212
|
-
l = e.apply(this && this.$id === t ? this : k, n);
|
|
213
|
-
} catch (e) {
|
|
214
|
-
throw z(o, e), e;
|
|
215
|
-
}
|
|
216
|
-
return l instanceof Promise ? l.then((e) => (z(i, e), e)).catch((e) => (z(o, e), Promise.reject(e))) : (z(i, l), l);
|
|
217
|
-
};
|
|
218
|
-
return r[V] = !0, r[H] = n, r;
|
|
219
|
-
}, O = {
|
|
220
|
-
_p: a,
|
|
221
|
-
$id: t,
|
|
222
|
-
$onAction: R.bind(null, b),
|
|
223
|
-
$patch: w,
|
|
224
|
-
$reset: T,
|
|
225
|
-
$subscribe(e, n = {}) {
|
|
226
|
-
if (y.has(e)) return L;
|
|
227
|
-
let r = R(y, e, n.detached, () => i()), i = d.run(() => f(() => a.state.value[t], (r) => {
|
|
228
|
-
(n.flush === "sync" ? _ : g) && e({
|
|
229
|
-
storeId: t,
|
|
230
|
-
type: "direct",
|
|
231
|
-
events: x
|
|
232
|
-
}, r);
|
|
233
|
-
}, q({}, h, n)));
|
|
234
|
-
return r;
|
|
235
|
-
},
|
|
236
|
-
$dispose: E
|
|
237
|
-
}, k = p(O);
|
|
238
|
-
a._s.set(t, k);
|
|
239
|
-
let A = (a._a && a._a.runWithContext || B)(() => a._e.run(() => (d = i()).run(() => n({ action: D }))));
|
|
240
|
-
for (let n in A) {
|
|
241
|
-
let r = A[n];
|
|
242
|
-
s(r) && !J(r) || e(r) ? u || (S && K(r) && (s(r) ? r.value = S[n] : ((r instanceof Set || r instanceof Map) && r.clear(), U(r, S[n]))), a.state.value[t][n] = r) : typeof r == "function" && (A[n] = D(r, n), m.actions[n] = r);
|
|
243
|
-
}
|
|
244
|
-
return q(k, A), q(o(k), A), Object.defineProperty(k, "$state", {
|
|
245
|
-
get: () => a.state.value[t],
|
|
246
|
-
set: (e) => {
|
|
247
|
-
w((t) => {
|
|
248
|
-
q(t, e);
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
}), a._p.forEach((e) => {
|
|
252
|
-
let t = d.run(() => e({
|
|
253
|
-
store: k,
|
|
254
|
-
app: a._a,
|
|
255
|
-
pinia: a,
|
|
256
|
-
options: m
|
|
257
|
-
}));
|
|
258
|
-
q(k, t);
|
|
259
|
-
}), S && u && r.hydrate && r.hydrate(k.$state, S), g = !0, _ = !0, k;
|
|
260
|
-
}
|
|
261
|
-
function Z(e, n, i) {
|
|
262
|
-
let a, o = typeof n == "function";
|
|
263
|
-
a = o ? i : n;
|
|
264
|
-
function s(i, s) {
|
|
265
|
-
let c = r();
|
|
266
|
-
return i ||= c ? t(b, null) : null, i && v(i), i = _, i._s.has(e) || (o ? X(e, n, a, i) : Y(e, a, i)), i._s.get(e);
|
|
267
|
-
}
|
|
268
|
-
return s.$id = e, s;
|
|
269
|
-
}
|
|
270
|
-
var Q = "Store";
|
|
271
|
-
function te(e) {
|
|
272
|
-
Q = e;
|
|
273
|
-
}
|
|
274
|
-
function ne(...e) {
|
|
275
|
-
return e.reduce((e, t) => (e[t.$id + Q] = function() {
|
|
276
|
-
return t(this.$pinia);
|
|
277
|
-
}, e), {});
|
|
278
|
-
}
|
|
279
|
-
function $(e, t) {
|
|
280
|
-
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function() {
|
|
281
|
-
return e(this.$pinia)[n];
|
|
282
|
-
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function() {
|
|
283
|
-
let n = e(this.$pinia), i = t[r];
|
|
284
|
-
return typeof i == "function" ? i.call(this, n) : n[i];
|
|
285
|
-
}, n), {});
|
|
286
|
-
}
|
|
287
|
-
var re = $;
|
|
288
|
-
function ie(e, t) {
|
|
289
|
-
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = function(...t) {
|
|
290
|
-
return e(this.$pinia)[n](...t);
|
|
291
|
-
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = function(...n) {
|
|
292
|
-
return e(this.$pinia)[t[r]](...n);
|
|
293
|
-
}, n), {});
|
|
294
|
-
}
|
|
295
|
-
function ae(e, t) {
|
|
296
|
-
return Array.isArray(t) ? t.reduce((t, n) => (t[n] = {
|
|
297
|
-
get() {
|
|
298
|
-
return e(this.$pinia)[n];
|
|
299
|
-
},
|
|
300
|
-
set(t) {
|
|
301
|
-
return e(this.$pinia)[n] = t;
|
|
302
|
-
}
|
|
303
|
-
}, t), {}) : Object.keys(t).reduce((n, r) => (n[r] = {
|
|
304
|
-
get() {
|
|
305
|
-
return e(this.$pinia)[t[r]];
|
|
306
|
-
},
|
|
307
|
-
set(n) {
|
|
308
|
-
return e(this.$pinia)[t[r]] = n;
|
|
309
|
-
}
|
|
310
|
-
}, n), {});
|
|
311
|
-
}
|
|
312
|
-
function oe(t) {
|
|
313
|
-
let n = o(t), r = {};
|
|
314
|
-
for (let i in n) {
|
|
315
|
-
let a = n[i];
|
|
316
|
-
a?.effect ? r[i] = c({
|
|
317
|
-
get: () => t[i],
|
|
318
|
-
set(e) {
|
|
319
|
-
t[i] = e;
|
|
320
|
-
}
|
|
321
|
-
}) : (s(a) || e(a)) && (r[i] = u(t, i));
|
|
322
|
-
}
|
|
323
|
-
return r;
|
|
324
|
-
}
|
|
325
|
-
//#endregion
|
|
326
|
-
export { S as MutationType, I as acceptHMRUpdate, P as createPinia, Z as defineStore, F as disposePinia, y as getActivePinia, ie as mapActions, re as mapGetters, $ as mapState, ne as mapStores, ae as mapWritableState, b as piniaSymbol, v as setActivePinia, te as setMapStoreSuffix, K as shouldHydrate, G as skipHydrate, oe as storeToRefs };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
globalThis.process;
|
|
2
|
-
import { isRelativeSpecifier as e, listImportSpecifiers as t } from "./files-C5UMzYxA-q9oJ4PrI.js";
|
|
3
|
-
import { r as n, t as r } from "./script-xKUjE8pf-oF69rg-w.js";
|
|
4
|
-
import { n as i, prefersLocalBuiltin as a, resolveHostModule as o, resolveImportTarget as s, t as c, toHostModule as l } from "./modules-DlLJF_vd-DcNdL6sc.js";
|
|
5
|
-
//#region packages/playground/dist/remote-DfXAsO9n.js
|
|
6
|
-
var u = /* @__PURE__ */ new Set(["vue", "vue/server-renderer"]), d = (d, f, p) => {
|
|
7
|
-
let m = {
|
|
8
|
-
vue: f.vue,
|
|
9
|
-
"vue-router": f.vueRouter
|
|
10
|
-
}, h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Set(), y = (e) => {
|
|
11
|
-
if (d[e] && !a(e, d, p)) return null;
|
|
12
|
-
if (a(e, d, p)) return e;
|
|
13
|
-
let t = e;
|
|
14
|
-
for (;;) {
|
|
15
|
-
let e = t.lastIndexOf("/");
|
|
16
|
-
if (e <= 0) return null;
|
|
17
|
-
let n = t.slice(0, e);
|
|
18
|
-
if (a(n, d, p)) return n;
|
|
19
|
-
t = n;
|
|
20
|
-
}
|
|
21
|
-
}, b = (t, n) => {
|
|
22
|
-
if (e(n)) return new URL(n, t).href;
|
|
23
|
-
if (d[n] && !a(n, d, p)) return d[n];
|
|
24
|
-
if (u.has(n) && a(n, d, p)) return null;
|
|
25
|
-
let r = n;
|
|
26
|
-
for (; r;) {
|
|
27
|
-
if (i.has(r) && a(r, d, p)) return h.add(r), null;
|
|
28
|
-
let e = r.lastIndexOf("/");
|
|
29
|
-
if (e <= 0) break;
|
|
30
|
-
r = r.slice(0, e);
|
|
31
|
-
}
|
|
32
|
-
let o = d[n] ? n : s(n, d);
|
|
33
|
-
return !o || !d[o] ? null : d[o];
|
|
34
|
-
}, x = async (e) => {
|
|
35
|
-
if (v.has(e)) return;
|
|
36
|
-
v.add(e);
|
|
37
|
-
let n = await fetch(e);
|
|
38
|
-
if (!n.ok) throw Error(`${n.status} ${e}`);
|
|
39
|
-
let r = await n.text();
|
|
40
|
-
g.set(e, r);
|
|
41
|
-
let i = r.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
42
|
-
await Promise.all(t(i).map(async (t) => {
|
|
43
|
-
let n = b(e, t);
|
|
44
|
-
n && await x(n);
|
|
45
|
-
}));
|
|
46
|
-
}, S = (t) => (n) => {
|
|
47
|
-
if (u.has(n) && a(n, d, p)) return l(f.vue);
|
|
48
|
-
let r = y(n);
|
|
49
|
-
if (r) return l(m[r]);
|
|
50
|
-
if (e(n)) return C(new URL(n, t).href);
|
|
51
|
-
let i = d[n] ? n : s(n, d);
|
|
52
|
-
if (!i || !d[i]) throw Error(`[Playground] 未注册的模块 "${n}"`);
|
|
53
|
-
let c = C(d[i]);
|
|
54
|
-
if (i === n) return c;
|
|
55
|
-
if (!o(n, { [i]: c }))
|
|
56
|
-
/* istanbul ignore next -- 父包没有对应导出时才拒绝 */
|
|
57
|
-
throw Error(`[Playground] 未注册的模块 "${n}"`);
|
|
58
|
-
return c;
|
|
59
|
-
}, C = (e) => {
|
|
60
|
-
if (_.has(e)) return _.get(e);
|
|
61
|
-
let t = g.get(e);
|
|
62
|
-
if (t == null) throw Error(`[Playground] 远程模块尚未下载: ${e}`);
|
|
63
|
-
let i = n(r(t, e), {
|
|
64
|
-
transforms: ["imports"],
|
|
65
|
-
production: !0,
|
|
66
|
-
filePath: e
|
|
67
|
-
}).code, a = { exports: {} };
|
|
68
|
-
return _.set(e, a.exports), Function("require", "module", "exports", i)(S(e), a, a.exports), _.set(e, a.exports), a.exports;
|
|
69
|
-
};
|
|
70
|
-
return { load: async (e) => (await x(e), await Promise.all([...h].map(async (e) => {
|
|
71
|
-
e !== "vue" && e !== "vue-router" && (m[e] = await c(e));
|
|
72
|
-
})), C(e)) };
|
|
73
|
-
};
|
|
74
|
-
//#endregion
|
|
75
|
-
export { d as createRemoteLoader };
|