acheronjs 0.0.1

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 ADDED
@@ -0,0 +1,54 @@
1
+ # acheron
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
8
+
9
+ ## Recommended Browser Setup
10
+
11
+ - Chromium-based browsers (Chrome, Edge, Brave, etc.):
12
+ - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
13
+ - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
14
+ - Firefox:
15
+ - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
16
+ - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
17
+
18
+ ## Type Support for `.vue` Imports in TS
19
+
20
+ TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.
21
+
22
+ ## Customize configuration
23
+
24
+ See [Vite Configuration Reference](https://vite.dev/config/).
25
+
26
+ ## Project Setup
27
+
28
+ ```sh
29
+ pnpm install
30
+ ```
31
+
32
+ ### Compile and Hot-Reload for Development
33
+
34
+ ```sh
35
+ pnpm dev
36
+ ```
37
+
38
+ ### Type-Check, Compile and Minify for Production
39
+
40
+ ```sh
41
+ pnpm build
42
+ ```
43
+
44
+ ### Run Unit Tests with [Vitest](https://vitest.dev/)
45
+
46
+ ```sh
47
+ pnpm test:unit
48
+ ```
49
+
50
+ ### Lint with [ESLint](https://eslint.org/)
51
+
52
+ ```sh
53
+ pnpm lint
54
+ ```
@@ -0,0 +1,792 @@
1
+ const K = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Re = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], re = () => {
2
+ }, ke = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
3
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), x = Object.assign, d = Array.isArray, De = (e) => Q(e) === "[object Map]", Te = (e) => Q(e) === "[object Set]", S = (e) => typeof e == "function", N = (e) => typeof e == "string", G = (e) => typeof e == "symbol", E = (e) => e !== null && typeof e == "object", se = Object.prototype.toString, Q = (e) => se.call(e), xe = (e) => Q(e) === "[object Object]";
4
+ let ne;
5
+ const H = () => ne || (ne = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
6
+ function X(e) {
7
+ if (d(e)) {
8
+ const t = {};
9
+ for (let n = 0; n < e.length; n++) {
10
+ const o = e[n], s = N(o) ? Pe(o) : X(o);
11
+ if (s)
12
+ for (const r in s)
13
+ t[r] = s[r];
14
+ }
15
+ return t;
16
+ } else if (N(e) || E(e))
17
+ return e;
18
+ }
19
+ const Fe = /;(?![^(]*\))/g, Ie = /:([^]+)/, $e = /\/\*[^]*?\*\//g;
20
+ function Pe(e) {
21
+ const t = {};
22
+ return e.replace($e, "").split(Fe).forEach((n) => {
23
+ if (n) {
24
+ const o = n.split(Ie);
25
+ o.length > 1 && (t[o[0].trim()] = o[1].trim());
26
+ }
27
+ }), t;
28
+ }
29
+ function Z(e) {
30
+ let t = "";
31
+ if (N(e))
32
+ t = e;
33
+ else if (d(e))
34
+ for (let n = 0; n < e.length; n++) {
35
+ const o = Z(e[n]);
36
+ o && (t += o + " ");
37
+ }
38
+ else if (E(e))
39
+ for (const n in e)
40
+ e[n] && (t += n + " ");
41
+ return t.trim();
42
+ }
43
+ const ie = (e) => !!(e && e.__v_isRef === !0), ce = (e) => N(e) ? e : e == null ? "" : d(e) || E(e) && (e.toString === se || !S(e.toString)) ? ie(e) ? ce(e.value) : JSON.stringify(e, le, 2) : String(e), le = (e, t) => ie(t) ? le(e, t.value) : De(t) ? {
44
+ [`Map(${t.size})`]: [...t.entries()].reduce(
45
+ (n, [o, s], r) => (n[U(o, r) + " =>"] = s, n),
46
+ {}
47
+ )
48
+ } : Te(t) ? {
49
+ [`Set(${t.size})`]: [...t.values()].map((n) => U(n))
50
+ } : G(t) ? U(t) : E(t) && !d(t) && !xe(t) ? String(t) : t, U = (e, t = "") => {
51
+ var n;
52
+ return (
53
+ // Symbol.description in es2019+ so we need to cast here to pass
54
+ // the lib: es2016 check
55
+ G(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
56
+ );
57
+ };
58
+ process.env.NODE_ENV;
59
+ process.env.NODE_ENV;
60
+ process.env.NODE_ENV;
61
+ new Set(
62
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(G)
63
+ );
64
+ // @__NO_SIDE_EFFECTS__
65
+ function ue(e) {
66
+ return /* @__PURE__ */ q(e) ? /* @__PURE__ */ ue(e.__v_raw) : !!(e && e.__v_isReactive);
67
+ }
68
+ // @__NO_SIDE_EFFECTS__
69
+ function q(e) {
70
+ return !!(e && e.__v_isReadonly);
71
+ }
72
+ // @__NO_SIDE_EFFECTS__
73
+ function z(e) {
74
+ return !!(e && e.__v_isShallow);
75
+ }
76
+ // @__NO_SIDE_EFFECTS__
77
+ function W(e) {
78
+ return e ? !!e.__v_raw : !1;
79
+ }
80
+ // @__NO_SIDE_EFFECTS__
81
+ function b(e) {
82
+ const t = e && e.__v_raw;
83
+ return t ? /* @__PURE__ */ b(t) : e;
84
+ }
85
+ // @__NO_SIDE_EFFECTS__
86
+ function v(e) {
87
+ return e ? e.__v_isRef === !0 : !1;
88
+ }
89
+ const w = [];
90
+ function Ae(e) {
91
+ w.push(e);
92
+ }
93
+ function Me() {
94
+ w.pop();
95
+ }
96
+ let J = !1;
97
+ function k(e, ...t) {
98
+ if (J) return;
99
+ J = !0;
100
+ const n = w.length ? w[w.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = je();
101
+ if (o)
102
+ ee(
103
+ o,
104
+ n,
105
+ 11,
106
+ [
107
+ // eslint-disable-next-line no-restricted-syntax
108
+ e + t.map((r) => {
109
+ var c, l;
110
+ return (l = (c = r.toString) == null ? void 0 : c.call(r)) != null ? l : JSON.stringify(r);
111
+ }).join(""),
112
+ n && n.proxy,
113
+ s.map(
114
+ ({ vnode: r }) => `at <${Ve(n, r.type)}>`
115
+ ).join(`
116
+ `),
117
+ s
118
+ ]
119
+ );
120
+ else {
121
+ const r = [`[Vue warn]: ${e}`, ...t];
122
+ s.length && r.push(`
123
+ `, ...He(s)), console.warn(...r);
124
+ }
125
+ J = !1;
126
+ }
127
+ function je() {
128
+ let e = w[w.length - 1];
129
+ if (!e)
130
+ return [];
131
+ const t = [];
132
+ for (; e; ) {
133
+ const n = t[0];
134
+ n && n.vnode === e ? n.recurseCount++ : t.push({
135
+ vnode: e,
136
+ recurseCount: 0
137
+ });
138
+ const o = e.component && e.component.parent;
139
+ e = o && o.vnode;
140
+ }
141
+ return t;
142
+ }
143
+ function He(e) {
144
+ const t = [];
145
+ return e.forEach((n, o) => {
146
+ t.push(...o === 0 ? [] : [`
147
+ `], ...Ue(n));
148
+ }), t;
149
+ }
150
+ function Ue({ vnode: e, recurseCount: t }) {
151
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${Ve(
152
+ e.component,
153
+ e.type,
154
+ o
155
+ )}`, r = ">" + n;
156
+ return e.props ? [s, ...ze(e.props), r] : [s + r];
157
+ }
158
+ function ze(e) {
159
+ const t = [], n = Object.keys(e);
160
+ return n.slice(0, 3).forEach((o) => {
161
+ t.push(...fe(o, e[o]));
162
+ }), n.length > 3 && t.push(" ..."), t;
163
+ }
164
+ function fe(e, t, n) {
165
+ return N(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ v(t) ? (t = fe(e, /* @__PURE__ */ b(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : S(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ b(t), n ? t : [`${e}=`, t]);
166
+ }
167
+ const ae = {
168
+ sp: "serverPrefetch hook",
169
+ bc: "beforeCreate hook",
170
+ c: "created hook",
171
+ bm: "beforeMount hook",
172
+ m: "mounted hook",
173
+ bu: "beforeUpdate hook",
174
+ u: "updated",
175
+ bum: "beforeUnmount hook",
176
+ um: "unmounted hook",
177
+ a: "activated hook",
178
+ da: "deactivated hook",
179
+ ec: "errorCaptured hook",
180
+ rtc: "renderTracked hook",
181
+ rtg: "renderTriggered hook",
182
+ 0: "setup function",
183
+ 1: "render function",
184
+ 2: "watcher getter",
185
+ 3: "watcher callback",
186
+ 4: "watcher cleanup function",
187
+ 5: "native event handler",
188
+ 6: "component event handler",
189
+ 7: "vnode hook",
190
+ 8: "directive hook",
191
+ 9: "transition hook",
192
+ 10: "app errorHandler",
193
+ 11: "app warnHandler",
194
+ 12: "ref function",
195
+ 13: "async component loader",
196
+ 14: "scheduler flush",
197
+ 15: "component update",
198
+ 16: "app unmount cleanup function"
199
+ };
200
+ function ee(e, t, n, o) {
201
+ try {
202
+ return o ? e(...o) : e();
203
+ } catch (s) {
204
+ pe(s, t, n);
205
+ }
206
+ }
207
+ function pe(e, t, n, o = !0) {
208
+ const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: c } = t && t.appContext.config || K;
209
+ if (t) {
210
+ let l = t.parent;
211
+ const u = t.proxy, h = process.env.NODE_ENV !== "production" ? ae[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
212
+ for (; l; ) {
213
+ const g = l.ec;
214
+ if (g) {
215
+ for (let i = 0; i < g.length; i++)
216
+ if (g[i](e, u, h) === !1)
217
+ return;
218
+ }
219
+ l = l.parent;
220
+ }
221
+ if (r) {
222
+ ee(r, null, 10, [
223
+ e,
224
+ u,
225
+ h
226
+ ]);
227
+ return;
228
+ }
229
+ }
230
+ Je(e, n, s, o, c);
231
+ }
232
+ function Je(e, t, n, o = !0, s = !1) {
233
+ if (process.env.NODE_ENV !== "production") {
234
+ const r = ae[t];
235
+ if (n && Ae(n), k(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Me(), o)
236
+ throw e;
237
+ console.error(e);
238
+ } else {
239
+ if (s)
240
+ throw e;
241
+ console.error(e);
242
+ }
243
+ }
244
+ const p = [];
245
+ let y = -1;
246
+ const R = [];
247
+ let O = null, V = 0;
248
+ const Le = /* @__PURE__ */ Promise.resolve();
249
+ let Y = null;
250
+ const Be = 100;
251
+ function Ke(e) {
252
+ let t = y + 1, n = p.length;
253
+ for (; t < n; ) {
254
+ const o = t + n >>> 1, s = p[o], r = T(s);
255
+ r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
256
+ }
257
+ return t;
258
+ }
259
+ function qe(e) {
260
+ if (!(e.flags & 1)) {
261
+ const t = T(e), n = p[p.length - 1];
262
+ !n || // fast path when the job id is larger than the tail
263
+ !(e.flags & 2) && t >= T(n) ? p.push(e) : p.splice(Ke(t), 0, e), e.flags |= 1, de();
264
+ }
265
+ }
266
+ function de() {
267
+ Y || (Y = Le.then(me));
268
+ }
269
+ function We(e) {
270
+ d(e) ? R.push(...e) : O && e.id === -1 ? O.splice(V + 1, 0, e) : e.flags & 1 || (R.push(e), e.flags |= 1), de();
271
+ }
272
+ function Ye(e) {
273
+ if (R.length) {
274
+ const t = [...new Set(R)].sort(
275
+ (n, o) => T(n) - T(o)
276
+ );
277
+ if (R.length = 0, O) {
278
+ O.push(...t);
279
+ return;
280
+ }
281
+ for (O = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), V = 0; V < O.length; V++) {
282
+ const n = O[V];
283
+ process.env.NODE_ENV !== "production" && he(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
284
+ }
285
+ O = null, V = 0;
286
+ }
287
+ }
288
+ const T = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
289
+ function me(e) {
290
+ process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
291
+ const t = process.env.NODE_ENV !== "production" ? (n) => he(e, n) : re;
292
+ try {
293
+ for (y = 0; y < p.length; y++) {
294
+ const n = p[y];
295
+ if (n && !(n.flags & 8)) {
296
+ if (process.env.NODE_ENV !== "production" && t(n))
297
+ continue;
298
+ n.flags & 4 && (n.flags &= -2), ee(
299
+ n,
300
+ n.i,
301
+ n.i ? 15 : 14
302
+ ), n.flags & 4 || (n.flags &= -2);
303
+ }
304
+ }
305
+ } finally {
306
+ for (; y < p.length; y++) {
307
+ const n = p[y];
308
+ n && (n.flags &= -2);
309
+ }
310
+ y = -1, p.length = 0, Ye(e), Y = null, (p.length || R.length) && me(e);
311
+ }
312
+ }
313
+ function he(e, t) {
314
+ const n = e.get(t) || 0;
315
+ if (n > Be) {
316
+ const o = t.i, s = o && we(o.type);
317
+ return pe(
318
+ `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
319
+ null,
320
+ 10
321
+ ), !0;
322
+ }
323
+ return e.set(t, n + 1), !1;
324
+ }
325
+ const L = /* @__PURE__ */ new Map();
326
+ process.env.NODE_ENV !== "production" && (H().__VUE_HMR_RUNTIME__ = {
327
+ createRecord: B(Ge),
328
+ rerender: B(Qe),
329
+ reload: B(Xe)
330
+ });
331
+ const P = /* @__PURE__ */ new Map();
332
+ function Ge(e, t) {
333
+ return P.has(e) ? !1 : (P.set(e, {
334
+ initialDef: A(t),
335
+ instances: /* @__PURE__ */ new Set()
336
+ }), !0);
337
+ }
338
+ function A(e) {
339
+ return Ce(e) ? e.__vccOpts : e;
340
+ }
341
+ function Qe(e, t) {
342
+ const n = P.get(e);
343
+ n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
344
+ t && (o.render = t, A(o.type).render = t), o.renderCache = [], o.job.flags & 8 || o.update();
345
+ }));
346
+ }
347
+ function Xe(e, t) {
348
+ const n = P.get(e);
349
+ if (!n) return;
350
+ t = A(t), oe(n.initialDef, t);
351
+ const o = [...n.instances];
352
+ for (let s = 0; s < o.length; s++) {
353
+ const r = o[s], c = A(r.type);
354
+ let l = L.get(c);
355
+ l || (c !== n.initialDef && oe(c, t), L.set(c, l = /* @__PURE__ */ new Set())), l.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (l.add(r), r.ceReload(t.styles), l.delete(r)) : r.parent ? qe(() => {
356
+ r.job.flags & 8 || (r.parent.update(), l.delete(r));
357
+ }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
358
+ "[HMR] Root or manually mounted instance modified. Full reload required."
359
+ ), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(c);
360
+ }
361
+ We(() => {
362
+ L.clear();
363
+ });
364
+ }
365
+ function oe(e, t) {
366
+ x(e, t);
367
+ for (const n in e)
368
+ n !== "__file" && !(n in t) && delete e[n];
369
+ }
370
+ function B(e) {
371
+ return (t, n) => {
372
+ try {
373
+ return e(t, n);
374
+ } catch (o) {
375
+ console.error(o), console.warn(
376
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
377
+ );
378
+ }
379
+ };
380
+ }
381
+ let C, F = [];
382
+ function _e(e, t) {
383
+ var n, o;
384
+ C = e, C ? (C.enabled = !0, F.forEach(({ event: s, args: r }) => C.emit(s, ...r)), F = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
385
+ window.HTMLElement && // also exclude jsdom
386
+ // eslint-disable-next-line no-restricted-syntax
387
+ !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
388
+ _e(r, t);
389
+ }), setTimeout(() => {
390
+ C || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, F = []);
391
+ }, 3e3)) : F = [];
392
+ }
393
+ let M = null, Ze = null;
394
+ const ve = (e) => e.__isTeleport;
395
+ function ge(e, t) {
396
+ e.shapeFlag & 6 && e.component ? (e.transition = t, ge(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
397
+ }
398
+ // @__NO_SIDE_EFFECTS__
399
+ function et(e, t) {
400
+ return S(e) ? (
401
+ // #8236: extend call and options.name access are considered side-effects
402
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
403
+ x({ name: e.name }, t, { setup: e })
404
+ ) : e;
405
+ }
406
+ H().requestIdleCallback;
407
+ H().cancelIdleCallback;
408
+ const tt = /* @__PURE__ */ Symbol.for("v-ndc"), nt = {};
409
+ process.env.NODE_ENV !== "production" && (nt.ownKeys = (e) => (k(
410
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
411
+ ), Reflect.ownKeys(e)));
412
+ const ot = {}, ye = (e) => Object.getPrototypeOf(e) === ot, rt = (e) => e.__isSuspense, Ee = /* @__PURE__ */ Symbol.for("v-fgt"), st = /* @__PURE__ */ Symbol.for("v-txt"), it = /* @__PURE__ */ Symbol.for("v-cmt"), I = [];
413
+ let m = null;
414
+ function ct(e = !1) {
415
+ I.push(m = e ? null : []);
416
+ }
417
+ function lt() {
418
+ I.pop(), m = I[I.length - 1] || null;
419
+ }
420
+ function ut(e) {
421
+ return e.dynamicChildren = m || Re, lt(), m && m.push(e), e;
422
+ }
423
+ function ft(e, t, n, o, s, r) {
424
+ return ut(
425
+ Se(
426
+ e,
427
+ t,
428
+ n,
429
+ o,
430
+ s,
431
+ r,
432
+ !0
433
+ )
434
+ );
435
+ }
436
+ function at(e) {
437
+ return e ? e.__v_isVNode === !0 : !1;
438
+ }
439
+ const pt = (...e) => Oe(
440
+ ...e
441
+ ), Ne = ({ key: e }) => e ?? null, $ = ({
442
+ ref: e,
443
+ ref_key: t,
444
+ ref_for: n
445
+ }) => (typeof e == "number" && (e = "" + e), e != null ? N(e) || /* @__PURE__ */ v(e) || S(e) ? { i: M, r: e, k: t, f: !!n } : e : null);
446
+ function Se(e, t = null, n = null, o = 0, s = null, r = e === Ee ? 0 : 1, c = !1, l = !1) {
447
+ const u = {
448
+ __v_isVNode: !0,
449
+ __v_skip: !0,
450
+ type: e,
451
+ props: t,
452
+ key: t && Ne(t),
453
+ ref: t && $(t),
454
+ scopeId: Ze,
455
+ slotScopeIds: null,
456
+ children: n,
457
+ component: null,
458
+ suspense: null,
459
+ ssContent: null,
460
+ ssFallback: null,
461
+ dirs: null,
462
+ transition: null,
463
+ el: null,
464
+ anchor: null,
465
+ target: null,
466
+ targetStart: null,
467
+ targetAnchor: null,
468
+ staticCount: 0,
469
+ shapeFlag: r,
470
+ patchFlag: o,
471
+ dynamicProps: s,
472
+ dynamicChildren: null,
473
+ appContext: null,
474
+ ctx: M
475
+ };
476
+ return l ? (te(u, n), r & 128 && e.normalize(u)) : n && (u.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && k("VNode created with invalid key (NaN). VNode type:", u.type), // avoid a block node from tracking itself
477
+ !c && // has current parent block
478
+ m && // presence of a patch flag indicates this node needs patching on updates.
479
+ // component nodes also should always be patched, because even if the
480
+ // component doesn't need to update, it needs to persist the instance on to
481
+ // the next vnode so that it can be properly unmounted later.
482
+ (u.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
483
+ // vnode should not be considered dynamic due to handler caching.
484
+ u.patchFlag !== 32 && m.push(u), u;
485
+ }
486
+ const dt = process.env.NODE_ENV !== "production" ? pt : Oe;
487
+ function Oe(e, t = null, n = null, o = 0, s = null, r = !1) {
488
+ if ((!e || e === tt) && (process.env.NODE_ENV !== "production" && !e && k(`Invalid vnode type when creating vnode: ${e}.`), e = it), at(e)) {
489
+ const l = j(
490
+ e,
491
+ t,
492
+ !0
493
+ /* mergeRef: true */
494
+ );
495
+ return n && te(l, n), !r && m && (l.shapeFlag & 6 ? m[m.indexOf(e)] = l : m.push(l)), l.patchFlag = -2, l;
496
+ }
497
+ if (Ce(e) && (e = e.__vccOpts), t) {
498
+ t = mt(t);
499
+ let { class: l, style: u } = t;
500
+ l && !N(l) && (t.class = Z(l)), E(u) && (/* @__PURE__ */ W(u) && !d(u) && (u = x({}, u)), t.style = X(u));
501
+ }
502
+ const c = N(e) ? 1 : rt(e) ? 128 : ve(e) ? 64 : E(e) ? 4 : S(e) ? 2 : 0;
503
+ return process.env.NODE_ENV !== "production" && c & 4 && /* @__PURE__ */ W(e) && (e = /* @__PURE__ */ b(e), k(
504
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
505
+ `
506
+ Component that was made reactive: `,
507
+ e
508
+ )), Se(
509
+ e,
510
+ t,
511
+ n,
512
+ o,
513
+ s,
514
+ c,
515
+ r,
516
+ !0
517
+ );
518
+ }
519
+ function mt(e) {
520
+ return e ? /* @__PURE__ */ W(e) || ye(e) ? x({}, e) : e : null;
521
+ }
522
+ function j(e, t, n = !1, o = !1) {
523
+ const { props: s, ref: r, patchFlag: c, children: l, transition: u } = e, h = t ? _t(s || {}, t) : s, g = {
524
+ __v_isVNode: !0,
525
+ __v_skip: !0,
526
+ type: e.type,
527
+ props: h,
528
+ key: h && Ne(h),
529
+ ref: t && t.ref ? (
530
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
531
+ // if the vnode itself already has a ref, cloneVNode will need to merge
532
+ // the refs so the single vnode can be set on multiple refs
533
+ n && r ? d(r) ? r.concat($(t)) : [r, $(t)] : $(t)
534
+ ) : r,
535
+ scopeId: e.scopeId,
536
+ slotScopeIds: e.slotScopeIds,
537
+ children: process.env.NODE_ENV !== "production" && c === -1 && d(l) ? l.map(be) : l,
538
+ target: e.target,
539
+ targetStart: e.targetStart,
540
+ targetAnchor: e.targetAnchor,
541
+ staticCount: e.staticCount,
542
+ shapeFlag: e.shapeFlag,
543
+ // if the vnode is cloned with extra props, we can no longer assume its
544
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
545
+ // note: preserve flag for fragments since they use the flag for children
546
+ // fast paths only.
547
+ patchFlag: t && e.type !== Ee ? c === -1 ? 16 : c | 16 : c,
548
+ dynamicProps: e.dynamicProps,
549
+ dynamicChildren: e.dynamicChildren,
550
+ appContext: e.appContext,
551
+ dirs: e.dirs,
552
+ transition: u,
553
+ // These should technically only be non-null on mounted VNodes. However,
554
+ // they *should* be copied for kept-alive vnodes. So we just always copy
555
+ // them since them being non-null during a mount doesn't affect the logic as
556
+ // they will simply be overwritten.
557
+ component: e.component,
558
+ suspense: e.suspense,
559
+ ssContent: e.ssContent && j(e.ssContent),
560
+ ssFallback: e.ssFallback && j(e.ssFallback),
561
+ placeholder: e.placeholder,
562
+ el: e.el,
563
+ anchor: e.anchor,
564
+ ctx: e.ctx,
565
+ ce: e.ce
566
+ };
567
+ return u && o && ge(
568
+ g,
569
+ u.clone(g)
570
+ ), g;
571
+ }
572
+ function be(e) {
573
+ const t = j(e);
574
+ return d(e.children) && (t.children = e.children.map(be)), t;
575
+ }
576
+ function ht(e = " ", t = 0) {
577
+ return dt(st, null, e, t);
578
+ }
579
+ function te(e, t) {
580
+ let n = 0;
581
+ const { shapeFlag: o } = e;
582
+ if (t == null)
583
+ t = null;
584
+ else if (d(t))
585
+ n = 16;
586
+ else if (typeof t == "object")
587
+ if (o & 65) {
588
+ const s = t.default;
589
+ s && (s._c && (s._d = !1), te(e, s()), s._c && (s._d = !0));
590
+ return;
591
+ } else
592
+ n = 32, !t._ && !ye(t) && (t._ctx = M);
593
+ else S(t) ? (t = { default: t, _ctx: M }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [ht(t)]) : n = 8);
594
+ e.children = t, e.shapeFlag |= n;
595
+ }
596
+ function _t(...e) {
597
+ const t = {};
598
+ for (let n = 0; n < e.length; n++) {
599
+ const o = e[n];
600
+ for (const s in o)
601
+ if (s === "class")
602
+ t.class !== o.class && (t.class = Z([t.class, o.class]));
603
+ else if (s === "style")
604
+ t.style = X([t.style, o.style]);
605
+ else if (ke(s)) {
606
+ const r = t[s], c = o[s];
607
+ c && r !== c && !(d(r) && r.includes(c)) && (t[s] = r ? [].concat(r, c) : c);
608
+ } else s !== "" && (t[s] = o[s]);
609
+ }
610
+ return t;
611
+ }
612
+ {
613
+ const e = H(), t = (n, o) => {
614
+ let s;
615
+ return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
616
+ s.length > 1 ? s.forEach((c) => c(r)) : s[0](r);
617
+ };
618
+ };
619
+ t(
620
+ "__VUE_INSTANCE_SETTERS__",
621
+ (n) => n
622
+ ), t(
623
+ "__VUE_SSR_SETTERS__",
624
+ (n) => n
625
+ );
626
+ }
627
+ process.env.NODE_ENV;
628
+ const gt = /(?:^|[-_])\w/g, yt = (e) => e.replace(gt, (t) => t.toUpperCase()).replace(/[-_]/g, "");
629
+ function we(e, t = !0) {
630
+ return S(e) ? e.displayName || e.name : e.name || t && e.__name;
631
+ }
632
+ function Ve(e, t, n = !1) {
633
+ let o = we(t);
634
+ if (!o && t.__file) {
635
+ const s = t.__file.match(/([^/\\]+)\.\w+$/);
636
+ s && (o = s[1]);
637
+ }
638
+ if (!o && e) {
639
+ const s = (r) => {
640
+ for (const c in r)
641
+ if (r[c] === t)
642
+ return c;
643
+ };
644
+ o = s(e.components) || e.parent && s(
645
+ e.parent.type.components
646
+ ) || s(e.appContext.components);
647
+ }
648
+ return o ? yt(o) : n ? "App" : "Anonymous";
649
+ }
650
+ function Ce(e) {
651
+ return S(e) && "__vccOpts" in e;
652
+ }
653
+ function Et() {
654
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
655
+ return;
656
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
657
+ __vue_custom_formatter: !0,
658
+ header(i) {
659
+ if (!E(i))
660
+ return null;
661
+ if (i.__isVue)
662
+ return ["div", e, "VueInstance"];
663
+ if (/* @__PURE__ */ v(i)) {
664
+ const f = i.value;
665
+ return [
666
+ "div",
667
+ {},
668
+ ["span", e, g(i)],
669
+ "<",
670
+ l(f),
671
+ ">"
672
+ ];
673
+ } else {
674
+ if (/* @__PURE__ */ ue(i))
675
+ return [
676
+ "div",
677
+ {},
678
+ ["span", e, /* @__PURE__ */ z(i) ? "ShallowReactive" : "Reactive"],
679
+ "<",
680
+ l(i),
681
+ `>${/* @__PURE__ */ q(i) ? " (readonly)" : ""}`
682
+ ];
683
+ if (/* @__PURE__ */ q(i))
684
+ return [
685
+ "div",
686
+ {},
687
+ ["span", e, /* @__PURE__ */ z(i) ? "ShallowReadonly" : "Readonly"],
688
+ "<",
689
+ l(i),
690
+ ">"
691
+ ];
692
+ }
693
+ return null;
694
+ },
695
+ hasBody(i) {
696
+ return i && i.__isVue;
697
+ },
698
+ body(i) {
699
+ if (i && i.__isVue)
700
+ return [
701
+ "div",
702
+ {},
703
+ ...r(i.$)
704
+ ];
705
+ }
706
+ };
707
+ function r(i) {
708
+ const f = [];
709
+ i.type.props && i.props && f.push(c("props", /* @__PURE__ */ b(i.props))), i.setupState !== K && f.push(c("setup", i.setupState)), i.data !== K && f.push(c("data", /* @__PURE__ */ b(i.data)));
710
+ const a = u(i, "computed");
711
+ a && f.push(c("computed", a));
712
+ const _ = u(i, "inject");
713
+ return _ && f.push(c("injected", _)), f.push([
714
+ "div",
715
+ {},
716
+ [
717
+ "span",
718
+ {
719
+ style: o.style + ";opacity:0.66"
720
+ },
721
+ "$ (internal): "
722
+ ],
723
+ ["object", { object: i }]
724
+ ]), f;
725
+ }
726
+ function c(i, f) {
727
+ return f = x({}, f), Object.keys(f).length ? [
728
+ "div",
729
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
730
+ [
731
+ "div",
732
+ {
733
+ style: "color:#476582"
734
+ },
735
+ i
736
+ ],
737
+ [
738
+ "div",
739
+ {
740
+ style: "padding-left:1.25em"
741
+ },
742
+ ...Object.keys(f).map((a) => [
743
+ "div",
744
+ {},
745
+ ["span", o, a + ": "],
746
+ l(f[a], !1)
747
+ ])
748
+ ]
749
+ ] : ["span", {}];
750
+ }
751
+ function l(i, f = !0) {
752
+ return typeof i == "number" ? ["span", t, i] : typeof i == "string" ? ["span", n, JSON.stringify(i)] : typeof i == "boolean" ? ["span", o, i] : E(i) ? ["object", { object: f ? /* @__PURE__ */ b(i) : i }] : ["span", n, String(i)];
753
+ }
754
+ function u(i, f) {
755
+ const a = i.type;
756
+ if (S(a))
757
+ return;
758
+ const _ = {};
759
+ for (const D in i.ctx)
760
+ h(a, D, f) && (_[D] = i.ctx[D]);
761
+ return _;
762
+ }
763
+ function h(i, f, a) {
764
+ const _ = i[a];
765
+ if (d(_) && _.includes(f) || E(_) && f in _ || i.extends && h(i.extends, f, a) || i.mixins && i.mixins.some((D) => h(D, f, a)))
766
+ return !0;
767
+ }
768
+ function g(i) {
769
+ return /* @__PURE__ */ z(i) ? "ShallowRef" : i.effect ? "ComputedRef" : "Ref";
770
+ }
771
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
772
+ }
773
+ process.env.NODE_ENV;
774
+ process.env.NODE_ENV;
775
+ process.env.NODE_ENV;
776
+ function Nt() {
777
+ Et();
778
+ }
779
+ process.env.NODE_ENV !== "production" && Nt();
780
+ const St = /* @__PURE__ */ et({
781
+ __name: "index",
782
+ props: {
783
+ type: { default: "" }
784
+ },
785
+ setup(e) {
786
+ const t = e;
787
+ return (n, o) => (ct(), ft("div", null, "这是按钮测试," + ce(t.type), 1));
788
+ }
789
+ });
790
+ export {
791
+ St as Button
792
+ };
@@ -0,0 +1,5 @@
1
+ (function(C,O){typeof exports=="object"&&typeof module<"u"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(C=typeof globalThis<"u"?globalThis:C||self,O(C.Acheron={}))})(this,(function(C){"use strict";const O=process.env.NODE_ENV!=="production"?Object.freeze({}):{},ke=process.env.NODE_ENV!=="production"?Object.freeze([]):[],oe=()=>{},Te=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),D=Object.assign,a=Array.isArray,xe=e=>L(e)==="[object Map]",De=e=>L(e)==="[object Set]",g=e=>typeof e=="function",y=e=>typeof e=="string",J=e=>typeof e=="symbol",E=e=>e!==null&&typeof e=="object",re=Object.prototype.toString,L=e=>re.call(e),Fe=e=>L(e)==="[object Object]";let se;const $=()=>se||(se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function B(e){if(a(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=y(o)?Ae(o):B(o);if(s)for(const r in s)t[r]=s[r]}return t}else if(y(e)||E(e))return e}const Ie=/;(?![^(]*\))/g,$e=/:([^]+)/,Pe=/\/\*[^]*?\*\//g;function Ae(e){const t={};return e.replace(Pe,"").split(Ie).forEach(n=>{if(n){const o=n.split($e);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function K(e){let t="";if(y(e))t=e;else if(a(e))for(let n=0;n<e.length;n++){const o=K(e[n]);o&&(t+=o+" ")}else if(E(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ie=e=>!!(e&&e.__v_isRef===!0),ce=e=>y(e)?e:e==null?"":a(e)||E(e)&&(e.toString===re||!g(e.toString))?ie(e)?ce(e.value):JSON.stringify(e,le,2):String(e),le=(e,t)=>ie(t)?le(e,t.value):xe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],r)=>(n[q(o,r)+" =>"]=s,n),{})}:De(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>q(n))}:J(t)?q(t):E(t)&&!a(t)&&!Fe(t)?String(t):t,q=(e,t="")=>{var n;return J(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(J));function ue(e){return W(e)?ue(e.__v_raw):!!(e&&e.__v_isReactive)}function W(e){return!!(e&&e.__v_isReadonly)}function Y(e){return!!(e&&e.__v_isShallow)}function G(e){return e?!!e.__v_raw:!1}function w(e){const t=e&&e.__v_raw;return t?w(t):e}function Q(e){return e?e.__v_isRef===!0:!1}const V=[];function Me(e){V.push(e)}function je(){V.pop()}let X=!1;function R(e,...t){if(X)return;X=!0;const n=V.length?V[V.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=He();if(o)Z(o,n,11,[e+t.map(r=>{var c,l;return(l=(c=r.toString)==null?void 0:c.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,s.map(({vnode:r})=>`at <${Ce(n,r.type)}>`).join(`
2
+ `),s]);else{const r=[`[Vue warn]: ${e}`,...t];s.length&&r.push(`
3
+ `,...Ue(s)),console.warn(...r)}X=!1}function He(){let e=V[V.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function Ue(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
4
+ `],...ze(n))}),t}function ze({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${Ce(e.component,e.type,o)}`,r=">"+n;return e.props?[s,...Je(e.props),r]:[s+r]}function Je(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...fe(o,e[o]))}),n.length>3&&t.push(" ..."),t}function fe(e,t,n){return y(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Q(t)?(t=fe(e,w(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):g(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=w(t),n?t:[`${e}=`,t])}const ae={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Z(e,t,n,o){try{return o?e(...o):e()}catch(s){pe(s,t,n)}}function pe(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||O;if(t){let l=t.parent;const u=t.proxy,h=process.env.NODE_ENV!=="production"?ae[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const S=l.ec;if(S){for(let i=0;i<S.length;i++)if(S[i](e,u,h)===!1)return}l=l.parent}if(r){Z(r,null,10,[e,u,h]);return}}Le(e,n,s,o,c)}function Le(e,t,n,o=!0,s=!1){if(process.env.NODE_ENV!=="production"){const r=ae[t];if(n&&Me(n),R(`Unhandled error${r?` during execution of ${r}`:""}`),n&&je(),o)throw e;console.error(e)}else{if(s)throw e;console.error(e)}}const p=[];let N=-1;const k=[];let b=null,T=0;const Be=Promise.resolve();let v=null;const Ke=100;function qe(e){let t=N+1,n=p.length;for(;t<n;){const o=t+n>>>1,s=p[o],r=F(s);r<e||r===e&&s.flags&2?t=o+1:n=o}return t}function We(e){if(!(e.flags&1)){const t=F(e),n=p[p.length-1];!n||!(e.flags&2)&&t>=F(n)?p.push(e):p.splice(qe(t),0,e),e.flags|=1,de()}}function de(){v||(v=Be.then(me))}function Ye(e){a(e)?k.push(...e):b&&e.id===-1?b.splice(T+1,0,e):e.flags&1||(k.push(e),e.flags|=1),de()}function Ge(e){if(k.length){const t=[...new Set(k)].sort((n,o)=>F(n)-F(o));if(k.length=0,b){b.push(...t);return}for(b=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),T=0;T<b.length;T++){const n=b[T];process.env.NODE_ENV!=="production"&&he(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}b=null,T=0}}const F=e=>e.id==null?e.flags&2?-1:1/0:e.id;function me(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>he(e,n):oe;try{for(N=0;N<p.length;N++){const n=p[N];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Z(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;N<p.length;N++){const n=p[N];n&&(n.flags&=-2)}N=-1,p.length=0,Ge(e),v=null,(p.length||k.length)&&me(e)}}function he(e,t){const n=e.get(t)||0;if(n>Ke){const o=t.i,s=o&&Ve(o.type);return pe(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const ee=new Map;process.env.NODE_ENV!=="production"&&($().__VUE_HMR_RUNTIME__={createRecord:te(Qe),rerender:te(Xe),reload:te(Ze)});const P=new Map;function Qe(e,t){return P.has(e)?!1:(P.set(e,{initialDef:A(t),instances:new Set}),!0)}function A(e){return Re(e)?e.__vccOpts:e}function Xe(e,t){const n=P.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,A(o.type).render=t),o.renderCache=[],o.job.flags&8||o.update()}))}function Ze(e,t){const n=P.get(e);if(!n)return;t=A(t),_e(n.initialDef,t);const o=[...n.instances];for(let s=0;s<o.length;s++){const r=o[s],c=A(r.type);let l=ee.get(c);l||(c!==n.initialDef&&_e(c,t),ee.set(c,l=new Set)),l.add(r),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(l.add(r),r.ceReload(t.styles),l.delete(r)):r.parent?We(()=>{r.job.flags&8||(r.parent.update(),l.delete(r))}):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),r.root.ce&&r!==r.root&&r.root.ce._removeChildStyle(c)}Ye(()=>{ee.clear()})}function _e(e,t){D(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function te(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let x,M=[];function ge(e,t){var n,o;x=e,x?(x.enabled=!0,M.forEach(({event:s,args:r})=>x.emit(s,...r)),M=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{ge(r,t)}),setTimeout(()=>{x||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,M=[])},3e3)):M=[]}let j=null,ve=null;const et=e=>e.__isTeleport;function ye(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ye(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function tt(e,t){return g(e)?D({name:e.name},t,{setup:e}):e}$().requestIdleCallback,$().cancelIdleCallback;const nt=Symbol.for("v-ndc"),ot={};process.env.NODE_ENV!=="production"&&(ot.ownKeys=e=>(R("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));const rt={},Ee=e=>Object.getPrototypeOf(e)===rt,st=e=>e.__isSuspense,Ne=Symbol.for("v-fgt"),it=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),H=[];let m=null;function lt(e=!1){H.push(m=e?null:[])}function ut(){H.pop(),m=H[H.length-1]||null}function ft(e){return e.dynamicChildren=m||ke,ut(),m&&m.push(e),e}function at(e,t,n,o,s,r){return ft(be(e,t,n,o,s,r,!0))}function pt(e){return e?e.__v_isVNode===!0:!1}const dt=(...e)=>Oe(...e),Se=({key:e})=>e??null,U=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?y(e)||Q(e)||g(e)?{i:j,r:e,k:t,f:!!n}:e:null);function be(e,t=null,n=null,o=0,s=null,r=e===Ne?0:1,c=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Se(t),ref:t&&U(t),scopeId:ve,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:j};return l?(ne(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=y(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&R("VNode created with invalid key (NaN). VNode type:",u.type),!c&&m&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&m.push(u),u}const mt=process.env.NODE_ENV!=="production"?dt:Oe;function Oe(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===nt)&&(process.env.NODE_ENV!=="production"&&!e&&R(`Invalid vnode type when creating vnode: ${e}.`),e=ct),pt(e)){const l=z(e,t,!0);return n&&ne(l,n),!r&&m&&(l.shapeFlag&6?m[m.indexOf(e)]=l:m.push(l)),l.patchFlag=-2,l}if(Re(e)&&(e=e.__vccOpts),t){t=ht(t);let{class:l,style:u}=t;l&&!y(l)&&(t.class=K(l)),E(u)&&(G(u)&&!a(u)&&(u=D({},u)),t.style=B(u))}const c=y(e)?1:st(e)?128:et(e)?64:E(e)?4:g(e)?2:0;return process.env.NODE_ENV!=="production"&&c&4&&G(e)&&(e=w(e),R("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
5
+ Component that was made reactive: `,e)),be(e,t,n,o,s,c,r,!0)}function ht(e){return e?G(e)||Ee(e)?D({},e):e:null}function z(e,t,n=!1,o=!1){const{props:s,ref:r,patchFlag:c,children:l,transition:u}=e,h=t?gt(s||{},t):s,S={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Se(h),ref:t&&t.ref?n&&r?a(r)?r.concat(U(t)):[r,U(t)]:U(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&c===-1&&a(l)?l.map(we):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?c===-1?16:c|16:c,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&z(e.ssContent),ssFallback:e.ssFallback&&z(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&o&&ye(S,u.clone(S)),S}function we(e){const t=z(e);return a(e.children)&&(t.children=e.children.map(we)),t}function _t(e=" ",t=0){return mt(it,null,e,t)}function ne(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(a(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),ne(e,s()),s._c&&(s._d=!0));return}else n=32,!t._&&!Ee(t)&&(t._ctx=j);else g(t)?(t={default:t,_ctx:j},n=32):(t=String(t),o&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function gt(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=K([t.class,o.class]));else if(s==="style")t.style=B([t.style,o.style]);else if(Te(s)){const r=t[s],c=o[s];c&&r!==c&&!(a(r)&&r.includes(c))&&(t[s]=r?[].concat(r,c):c)}else s!==""&&(t[s]=o[s])}return t}{const e=$(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),r=>{s.length>1?s.forEach(c=>c(r)):s[0](r)}};t("__VUE_INSTANCE_SETTERS__",n=>n),t("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;const yt=/(?:^|[-_])\w/g,Et=e=>e.replace(yt,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ve(e,t=!0){return g(e)?e.displayName||e.name:e.name||t&&e.__name}function Ce(e,t,n=!1){let o=Ve(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e){const s=r=>{for(const c in r)if(r[c]===t)return c};o=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return o?Et(o):n?"App":"Anonymous"}function Re(e){return g(e)&&"__vccOpts"in e}function Nt(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},o={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(i){if(!E(i))return null;if(i.__isVue)return["div",e,"VueInstance"];if(Q(i)){const f=i.value;return["div",{},["span",e,S(i)],"<",l(f),">"]}else{if(ue(i))return["div",{},["span",e,Y(i)?"ShallowReactive":"Reactive"],"<",l(i),`>${W(i)?" (readonly)":""}`];if(W(i))return["div",{},["span",e,Y(i)?"ShallowReadonly":"Readonly"],"<",l(i),">"]}return null},hasBody(i){return i&&i.__isVue},body(i){if(i&&i.__isVue)return["div",{},...r(i.$)]}};function r(i){const f=[];i.type.props&&i.props&&f.push(c("props",w(i.props))),i.setupState!==O&&f.push(c("setup",i.setupState)),i.data!==O&&f.push(c("data",w(i.data)));const d=u(i,"computed");d&&f.push(c("computed",d));const _=u(i,"inject");return _&&f.push(c("injected",_)),f.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:i}]]),f}function c(i,f){return f=D({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},i],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",o,d+": "],l(f[d],!1)])]]:["span",{}]}function l(i,f=!0){return typeof i=="number"?["span",t,i]:typeof i=="string"?["span",n,JSON.stringify(i)]:typeof i=="boolean"?["span",o,i]:E(i)?["object",{object:f?w(i):i}]:["span",n,String(i)]}function u(i,f){const d=i.type;if(g(d))return;const _={};for(const I in i.ctx)h(d,I,f)&&(_[I]=i.ctx[I]);return _}function h(i,f,d){const _=i[d];if(a(_)&&_.includes(f)||E(_)&&f in _||i.extends&&h(i.extends,f,d)||i.mixins&&i.mixins.some(I=>h(I,f,d)))return!0}function S(i){return Y(i)?"ShallowRef":i.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function St(){Nt()}process.env.NODE_ENV!=="production"&&St();const bt=tt({__name:"index",props:{type:{default:""}},setup(e){const t=e;return(n,o)=>(lt(),at("div",null,"这是按钮测试,"+ce(t.type),1))}});C.Button=bt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
Binary file
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "acheronjs",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/acheron.es.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "dependencies": {
17
+ "vue": "^3.5.28"
18
+ },
19
+ "devDependencies": {
20
+ "@tsconfig/node24": "^24.0.4",
21
+ "@types/jsdom": "^27.0.0",
22
+ "@types/node": "^24.10.13",
23
+ "@vitejs/plugin-vue": "^6.0.4",
24
+ "@vitest/eslint-plugin": "^1.6.9",
25
+ "@vue/eslint-config-typescript": "^14.6.0",
26
+ "@vue/test-utils": "^2.4.6",
27
+ "@vue/tsconfig": "^0.8.1",
28
+ "eslint": "^9.39.2",
29
+ "eslint-config-prettier": "^10.1.8",
30
+ "eslint-plugin-oxlint": "~1.46.0",
31
+ "eslint-plugin-vue": "~10.8.0",
32
+ "jiti": "^2.6.1",
33
+ "jsdom": "^28.1.0",
34
+ "npm-run-all2": "^8.0.4",
35
+ "oxlint": "~1.47.0",
36
+ "prettier": "3.8.1",
37
+ "typescript": "~5.9.3",
38
+ "vite": "^7.3.1",
39
+ "vite-plugin-dts": "^4.5.4",
40
+ "vitest": "^4.0.18",
41
+ "vue-tsc": "^3.2.4"
42
+ },
43
+ "engines": {
44
+ "node": "^20.19.0 || >=22.12.0"
45
+ },
46
+ "scripts": {
47
+ "dev": "vite",
48
+ "build": "run-p type-check \"build-only {@}\" --",
49
+ "preview": "vite preview",
50
+ "test:unit": "vitest",
51
+ "build-only": "vite build",
52
+ "build:lib": "vite build --config vite.config.lib.ts",
53
+ "type-check": "vue-tsc --build",
54
+ "lint": "run-s lint:*",
55
+ "lint:oxlint": "oxlint . --fix",
56
+ "lint:eslint": "eslint . --fix --cache",
57
+ "format": "prettier --write --experimental-cli src/"
58
+ }
59
+ }