@aevantec/litevue 0.6.2 → 0.6.3
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/dist/litevue-plugins.dev.iife.js +4 -85
- package/dist/litevue-plugins.dev.mjs +4 -85
- package/dist/litevue-plugins.iife.js +1 -1
- package/dist/litevue-plugins.mjs +1 -1
- package/dist/litevue-plugins.umd.js +1 -1
- package/dist/litevue.dev.iife.js +2 -121
- package/dist/litevue.dev.mjs +2 -121
- package/dist/litevue.iife.js +1 -1
- package/dist/litevue.mjs +1 -1
- package/dist/litevue.umd.js +1 -1
- package/dist/plugins/media.dev.iife.js +2 -35
- package/dist/plugins/media.dev.mjs +2 -35
- package/dist/plugins/media.iife.js +1 -1
- package/dist/plugins/media.mjs +1 -1
- package/dist/plugins/media.umd.js +1 -1
- package/dist/plugins/morph.dev.iife.js +2 -42
- package/dist/plugins/morph.dev.mjs +2 -42
- package/dist/plugins/morph.iife.js +1 -1
- package/dist/plugins/morph.mjs +1 -1
- package/dist/plugins/morph.umd.js +1 -1
- package/dist/plugins/navigate.dev.iife.js +1 -10
- package/dist/plugins/navigate.dev.mjs +1 -10
- package/dist/plugins/persist.dev.iife.js +0 -7
- package/dist/plugins/persist.dev.mjs +0 -7
- package/dist/plugins/transition.iife.js +1 -1
- package/dist/plugins/transition.mjs +1 -1
- package/dist/plugins/transition.umd.js +1 -1
- package/dist/types/app.d.mts +2 -5
- package/dist/types/app.d.ts +2 -5
- package/dist/types/block.d.mts +0 -4
- package/dist/types/block.d.ts +0 -4
- package/dist/types/context.d.mts +0 -5
- package/dist/types/context.d.ts +0 -5
- package/dist/types/devtools-panel/chrome.d.mts +0 -3
- package/dist/types/devtools-panel/chrome.d.ts +0 -3
- package/dist/types/devtools-panel/menu.d.mts +0 -2
- package/dist/types/devtools-panel/menu.d.ts +0 -2
- package/dist/types/devtools-panel/plugins.d.mts +0 -4
- package/dist/types/devtools-panel/plugins.d.ts +0 -4
- package/dist/types/devtools-panel/styles.d.mts +2 -17
- package/dist/types/devtools-panel/styles.d.ts +2 -17
- package/dist/types/devtools-panel/values.d.mts +0 -25
- package/dist/types/devtools-panel/values.d.ts +0 -25
- package/dist/types/devtools.d.mts +0 -7
- package/dist/types/devtools.d.ts +0 -7
- package/dist/types/directives/on.d.mts +0 -1
- package/dist/types/directives/on.d.ts +0 -1
- package/dist/types/errors.d.mts +0 -7
- package/dist/types/errors.d.ts +0 -7
- package/dist/types/eval.d.mts +0 -3
- package/dist/types/eval.d.ts +0 -3
- package/dist/types/lazy.d.mts +0 -10
- package/dist/types/lazy.d.ts +0 -10
- package/dist/types/magics.d.mts +0 -9
- package/dist/types/magics.d.ts +0 -9
- package/dist/types/ownership.d.mts +0 -19
- package/dist/types/ownership.d.ts +0 -19
- package/dist/types/plugins/media/index.d.mts +0 -5
- package/dist/types/plugins/media/index.d.ts +0 -5
- package/dist/types/plugins/morph/index.d.mts +0 -8
- package/dist/types/plugins/morph/index.d.ts +0 -8
- package/dist/types/scheduler.d.mts +0 -5
- package/dist/types/scheduler.d.ts +0 -5
- package/dist/types/utils.d.mts +0 -5
- package/dist/types/utils.d.ts +0 -5
- package/dist/types/warn.d.mts +0 -12
- package/dist/types/warn.d.ts +0 -12
- package/package.json +1 -1
package/dist/litevue.dev.mjs
CHANGED
|
@@ -642,7 +642,6 @@ var registerStore = (name, store) => {
|
|
|
642
642
|
var registerComponent = (name) => {
|
|
643
643
|
if (!isDisabled()) componentNames.add(name);
|
|
644
644
|
};
|
|
645
|
-
/** Registers a plugin and returns a deregister, as registerScope does. */
|
|
646
645
|
var registerPlugin = (info) => {
|
|
647
646
|
if (isDisabled()) return;
|
|
648
647
|
pluginList.push(info);
|
|
@@ -652,7 +651,6 @@ var registerPlugin = (info) => {
|
|
|
652
651
|
if (i > -1) pluginList.splice(i, 1);
|
|
653
652
|
};
|
|
654
653
|
};
|
|
655
|
-
/** True when something is listening, so app.use() can skip the diff. */
|
|
656
654
|
var pluginsWatched = () => !isDisabled();
|
|
657
655
|
var emitFlush = () => {
|
|
658
656
|
if (listeners.flush.size && !isDisabled()) emit("flush");
|
|
@@ -702,7 +700,6 @@ var disableDevtools = () => {
|
|
|
702
700
|
};
|
|
703
701
|
if (typeof window !== "undefined" && !isDisabled()) window.__LITE_VUE__ = devtools;
|
|
704
702
|
// src/errors.ts
|
|
705
|
-
/** Levenshtein, bounded — only used to rank candidate names in DEV. */
|
|
706
703
|
var distance = (a, b) => {
|
|
707
704
|
const m = a.length;
|
|
708
705
|
const n = b.length;
|
|
@@ -716,7 +713,6 @@ var distance = (a, b) => {
|
|
|
716
713
|
}
|
|
717
714
|
return prev[n];
|
|
718
715
|
};
|
|
719
|
-
/** Every name in scope, up the prototype chain that nested `v-scope`s inherit. */
|
|
720
716
|
var scopeNames = (scope) => {
|
|
721
717
|
const names = /* @__PURE__ */ new Set();
|
|
722
718
|
let cur = scope;
|
|
@@ -726,7 +722,6 @@ var scopeNames = (scope) => {
|
|
|
726
722
|
}
|
|
727
723
|
return [...names];
|
|
728
724
|
};
|
|
729
|
-
/** `count is not defined` → the closest name actually in scope. */
|
|
730
725
|
var suggestName = (err, scope) => {
|
|
731
726
|
if (!scope || !(err instanceof ReferenceError)) return;
|
|
732
727
|
const missing = /^(\w+) is not defined$/.exec(err.message)?.[1];
|
|
@@ -747,14 +742,12 @@ var suggestName = (err, scope) => {
|
|
|
747
742
|
suggestion: best
|
|
748
743
|
} : { missing };
|
|
749
744
|
};
|
|
750
|
-
/** A short, recognisable rendering of the element — not its whole subtree. */
|
|
751
745
|
var describeEl = (el) => {
|
|
752
746
|
if (!el) return;
|
|
753
747
|
if (!(el instanceof Element)) return el.nodeType === 3 ? `text node "${el.nodeValue?.trim().slice(0, 40)}"` : void 0;
|
|
754
748
|
return `<${el.tagName.toLowerCase()}${el.id ? `#${el.id}` : ""}${el.classList.length ? `.${[...el.classList].join(".")}` : ""}>`;
|
|
755
749
|
};
|
|
756
750
|
var handlers = [];
|
|
757
|
-
/** Registered by `app.onError()`. Shared across apps, like the store registry. */
|
|
758
751
|
var addErrorHandler = (fn) => {
|
|
759
752
|
handlers.push(fn);
|
|
760
753
|
return () => {
|
|
@@ -791,17 +784,7 @@ var handleError = (err, info) => {
|
|
|
791
784
|
if (info.el) console.error(info.el);
|
|
792
785
|
};
|
|
793
786
|
// src/scheduler.ts
|
|
794
|
-
/**
|
|
795
|
-
* Effects this library has stopped.
|
|
796
|
-
*
|
|
797
|
-
* The scheduler must know whether a queued runner is still live, and
|
|
798
|
-
* @vue/reactivity offers no supported way to ask: 3.4's `ReactiveEffect.active`
|
|
799
|
-
* became an undeclared `flags` bitfield in 3.5. Since every stop here goes
|
|
800
|
-
* through `stopEffect`, tracking them ourselves is version-proof. Weak, so a
|
|
801
|
-
* stopped effect stays collectable.
|
|
802
|
-
*/
|
|
803
787
|
var stopped = /* @__PURE__ */ new WeakSet();
|
|
804
|
-
/** Stops an effect and remembers that it is stopped. Use instead of `stop`. */
|
|
805
788
|
var stopEffect = (runner) => {
|
|
806
789
|
stopped.add(runner);
|
|
807
790
|
if (runner.effect) stop(runner);
|
|
@@ -812,10 +795,6 @@ var queue = /* @__PURE__ */ new Set();
|
|
|
812
795
|
var p = Promise.resolve();
|
|
813
796
|
var MAX_RUNS = 100;
|
|
814
797
|
var nextTick = (fn) => p.then(fn);
|
|
815
|
-
/**
|
|
816
|
-
* Stamps a job with its creation order, which the flush runs in. An effect
|
|
817
|
-
* stamped as it is created sorts before the children its first run creates.
|
|
818
|
-
*/
|
|
819
798
|
var stampJob = (job) => (job.i = uid$1++, job);
|
|
820
799
|
var queueJob = (job) => {
|
|
821
800
|
job.i ?? stampJob(job);
|
|
@@ -847,19 +826,10 @@ var flushJobs = () => {
|
|
|
847
826
|
};
|
|
848
827
|
// src/magics.ts
|
|
849
828
|
var uid = 0;
|
|
850
|
-
/**
|
|
851
|
-
* $id('name') — unique ids for accessibility attributes. Stable within a scope
|
|
852
|
-
* so label/input pairs match, unique across scopes.
|
|
853
|
-
*/
|
|
854
829
|
var createId = () => {
|
|
855
830
|
const memo = Object.create(null);
|
|
856
831
|
return (name = "id") => memo[name] || (memo[name] = `${name}-${++uid}`);
|
|
857
832
|
};
|
|
858
|
-
/**
|
|
859
|
-
* $watch(source, callback, { immediate }) — watches a dot-path string or getter
|
|
860
|
-
* and calls back with (value, oldValue). Returns a stop function; it also stops
|
|
861
|
-
* when the owning scope unmounts.
|
|
862
|
-
*/
|
|
863
833
|
var createWatch = (ctx) => (source, cb, options) => {
|
|
864
834
|
const getter = typeof source === "function" ? source : () => source.split(".").reduce((o, k) => o == null ? o : o[k], ctx.scope);
|
|
865
835
|
let oldValue;
|
|
@@ -949,22 +919,10 @@ var setStyle = (style, name, val) => {
|
|
|
949
919
|
else style[name] = val;
|
|
950
920
|
};
|
|
951
921
|
// src/warn.ts
|
|
952
|
-
/**
|
|
953
|
-
* Development warnings.
|
|
954
|
-
*
|
|
955
|
-
* Every call site is guarded by `import.meta.env.DEV`; the production build
|
|
956
|
-
* replaces that constant and terser drops the branch, so neither these
|
|
957
|
-
* functions nor their strings ship. Messages are therefore free to be wordy —
|
|
958
|
-
* say what to do instead.
|
|
959
|
-
*/
|
|
960
922
|
var seen = /* @__PURE__ */ new Set();
|
|
961
923
|
var warn = (msg) => {
|
|
962
924
|
console.warn(`[litevue] ${msg}`);
|
|
963
925
|
};
|
|
964
|
-
/**
|
|
965
|
-
* Warns once per `key`. Most callers are effects, which re-run on every
|
|
966
|
-
* relevant change — one mistake would otherwise print on every keystroke.
|
|
967
|
-
*/
|
|
968
926
|
var warnOnce = (key, msg) => {
|
|
969
927
|
if (seen.has(key)) return;
|
|
970
928
|
seen.add(key);
|
|
@@ -1013,10 +971,6 @@ var toFunction = (exp, el, meta) => {
|
|
|
1013
971
|
}
|
|
1014
972
|
};
|
|
1015
973
|
// src/directives/on.ts
|
|
1016
|
-
/**
|
|
1017
|
-
* Can `exp` stand as a single expression, or is it a statement list?
|
|
1018
|
-
* Memoised: it compiles a throwaway function, which a `v-for` pays per row.
|
|
1019
|
-
*/
|
|
1020
974
|
var expressionCache = Object.create(null);
|
|
1021
975
|
var cachedExpressions = 0;
|
|
1022
976
|
var isExpression = (exp) => {
|
|
@@ -1180,11 +1134,6 @@ var checkAttr = (el, name) => {
|
|
|
1180
1134
|
if (val != null) el.removeAttribute(name);
|
|
1181
1135
|
return val;
|
|
1182
1136
|
};
|
|
1183
|
-
/**
|
|
1184
|
-
* Adds a listener and returns a remover. Callers are expected to use it:
|
|
1185
|
-
* `app.unmount(el)` leaves elements in the document, so a listener left behind
|
|
1186
|
-
* would keep driving markup meant to be inert.
|
|
1187
|
-
*/
|
|
1188
1137
|
var listen = (el, event, handler, options) => {
|
|
1189
1138
|
el.addEventListener(event, handler, options);
|
|
1190
1139
|
return () => el.removeEventListener(event, handler, options);
|
|
@@ -1320,35 +1269,19 @@ var trigger = (el, type) => {
|
|
|
1320
1269
|
};
|
|
1321
1270
|
// src/ownership.ts
|
|
1322
1271
|
var owned = /* @__PURE__ */ new WeakMap();
|
|
1323
|
-
/**
|
|
1324
|
-
* The node currently being walked. A module-level cursor suffices because the
|
|
1325
|
-
* walk is synchronous and depth-first, and it keeps `owner` out of every
|
|
1326
|
-
* directive signature.
|
|
1327
|
-
*/
|
|
1328
1272
|
var owner;
|
|
1329
1273
|
var setOwner = (node) => {
|
|
1330
1274
|
const previous = owner;
|
|
1331
1275
|
owner = node;
|
|
1332
1276
|
return previous;
|
|
1333
1277
|
};
|
|
1334
|
-
/**
|
|
1335
|
-
* Registers a disposer against `node`, defaulting to the node being walked.
|
|
1336
|
-
* Pass `node` explicitly for a directive that outlives its element: `v-if` and
|
|
1337
|
-
* `v-for` detach the template and render from an anchor, so they must own to
|
|
1338
|
-
* the anchor.
|
|
1339
|
-
*/
|
|
1340
1278
|
var own = (dispose, node = owner) => {
|
|
1341
1279
|
if (!node) return;
|
|
1342
1280
|
const list = owned.get(node);
|
|
1343
1281
|
if (list) list.push(dispose);
|
|
1344
1282
|
else owned.set(node, [dispose]);
|
|
1345
1283
|
};
|
|
1346
|
-
/** Withdraws a disposer from `node`, for an owner that removes it itself. */
|
|
1347
1284
|
var disown = (dispose, node) => remove(owned.get(node) || [], dispose);
|
|
1348
|
-
/**
|
|
1349
|
-
* Disposes `node` and its subtree. Safe on an unowned node, and idempotent —
|
|
1350
|
-
* the record is dropped as it runs.
|
|
1351
|
-
*/
|
|
1352
1285
|
var disposeSubtree = (node) => {
|
|
1353
1286
|
const list = owned.get(node);
|
|
1354
1287
|
if (list) {
|
|
@@ -1642,17 +1575,12 @@ var LAZY_MODES = [
|
|
|
1642
1575
|
"idle",
|
|
1643
1576
|
"interaction"
|
|
1644
1577
|
];
|
|
1645
|
-
/** Selector matching every scope root, deferred or not. */
|
|
1646
1578
|
var SCOPE_SELECTOR = ["[v-scope]", ...LAZY_MODES.map((m) => `[v-scope\\.${m}]`)].join(",");
|
|
1647
1579
|
var INTERACTIONS = [
|
|
1648
1580
|
"pointerdown",
|
|
1649
1581
|
"keydown",
|
|
1650
1582
|
"focusin"
|
|
1651
1583
|
];
|
|
1652
|
-
/**
|
|
1653
|
-
* Arms `mode` and returns a disposer. Fires at most once; disposing first
|
|
1654
|
-
* cancels it, since a region can be unmounted while still waiting.
|
|
1655
|
-
*/
|
|
1656
1584
|
var arm = (el, mode, fire) => {
|
|
1657
1585
|
let done = false;
|
|
1658
1586
|
const once = () => {
|
|
@@ -1687,10 +1615,6 @@ var arm = (el, mode, fire) => {
|
|
|
1687
1615
|
stop();
|
|
1688
1616
|
};
|
|
1689
1617
|
};
|
|
1690
|
-
/**
|
|
1691
|
-
* Returns true if `el` was deferred. The walk must not descend into it:
|
|
1692
|
-
* walking consumes directives, so it could not be walked again later.
|
|
1693
|
-
*/
|
|
1694
1618
|
var deferScope = (el, ctx, walk, once) => {
|
|
1695
1619
|
const mode = LAZY_MODES.find((m) => el.hasAttribute(`v-scope.${m}`));
|
|
1696
1620
|
if (!mode) return false;
|
|
@@ -1712,16 +1636,6 @@ var deferScope = (el, ctx, walk, once) => {
|
|
|
1712
1636
|
var dirRE = /^(?:v-|:|@)/;
|
|
1713
1637
|
var modifierRE = /\.([\w-]+)/g;
|
|
1714
1638
|
var inOnce = false;
|
|
1715
|
-
/**
|
|
1716
|
-
* Registers a cleanup on both owners: the context, for whole-region teardown,
|
|
1717
|
-
* and the walked node, for a subtree detached on its own. Dropping the entry
|
|
1718
|
-
* when the node goes keeps a re-mounted region from accumulating spent ones.
|
|
1719
|
-
*
|
|
1720
|
-
* The `indexOf` guard also makes this run-once. A subtree can reach the same
|
|
1721
|
-
* cleanup twice — via the block root, whose teardown drains `ctx.cleanups`,
|
|
1722
|
-
* and via the node — and a second run would remove a listener the next mount
|
|
1723
|
-
* installed.
|
|
1724
|
-
*/
|
|
1725
1639
|
var addCleanup = (ctx, cleanup, node) => {
|
|
1726
1640
|
ctx.cleanups.push(cleanup);
|
|
1727
1641
|
own(() => {
|
|
@@ -1930,10 +1844,6 @@ var applyDirective = (el, dir, exp, ctx, arg, modifiers, source, displayExp) =>
|
|
|
1930
1844
|
}
|
|
1931
1845
|
});
|
|
1932
1846
|
};
|
|
1933
|
-
/**
|
|
1934
|
-
* `querySelector` for a selector written in markup. One that does not parse is
|
|
1935
|
-
* reported and yields undefined, rather than throwing out of `mount()`.
|
|
1936
|
-
*/
|
|
1937
1847
|
var query = (sel, el, source) => {
|
|
1938
1848
|
try {
|
|
1939
1849
|
return document.querySelector(sel);
|
|
@@ -1953,7 +1863,7 @@ var resolveTemplate = (el, template) => {
|
|
|
1953
1863
|
if (templateEl !== void 0) console.error(`template selector ${template} has no matching <template> element.`);
|
|
1954
1864
|
return;
|
|
1955
1865
|
}
|
|
1956
|
-
el.appendChild(templateEl.content
|
|
1866
|
+
el.appendChild(el.ownerDocument.importNode(templateEl.content, true));
|
|
1957
1867
|
return;
|
|
1958
1868
|
}
|
|
1959
1869
|
el.innerHTML = template;
|
|
@@ -1990,11 +1900,6 @@ var createContext = (parent) => {
|
|
|
1990
1900
|
};
|
|
1991
1901
|
return ctx;
|
|
1992
1902
|
};
|
|
1993
|
-
/**
|
|
1994
|
-
* Framework-provided, so non-enumerable: `Object.assign`-ing one scope onto
|
|
1995
|
-
* another must copy the user's data and leave these alone. v-for does exactly
|
|
1996
|
-
* that on every update, which reset each row's $id and wiped its $refs.
|
|
1997
|
-
*/
|
|
1998
1903
|
var hide = (scope, key, value) => Object.defineProperty(scope, key, {
|
|
1999
1904
|
value,
|
|
2000
1905
|
writable: true,
|
|
@@ -2039,7 +1944,7 @@ var Block = class {
|
|
|
2039
1944
|
else if (template.hasAttribute("v-for")) {
|
|
2040
1945
|
this.isFragment = true;
|
|
2041
1946
|
(this.template = new DocumentFragment()).append(template.cloneNode(true));
|
|
2042
|
-
} else if (this.isFragment) this.template = template.
|
|
1947
|
+
} else if (this.isFragment) this.template = template.ownerDocument.importNode(template.content, true);
|
|
2043
1948
|
else this.template = template.cloneNode(true);
|
|
2044
1949
|
if (isRoot) this.ctx = createContext(parentCtx);
|
|
2045
1950
|
else {
|
|
@@ -2112,10 +2017,6 @@ var Block = class {
|
|
|
2112
2017
|
if (leaves.length) Promise.all(leaves).then(removeNow);
|
|
2113
2018
|
else removeNow();
|
|
2114
2019
|
}
|
|
2115
|
-
/**
|
|
2116
|
-
* The bookkeeping half of `remove()`, for a block whose nodes are already
|
|
2117
|
-
* gone — `remove()`'s `removeChild` calls would throw on them.
|
|
2118
|
-
*/
|
|
2119
2020
|
discard() {
|
|
2120
2021
|
if (this.parentCtx) remove(this.parentCtx.blocks, this);
|
|
2121
2022
|
this.teardown();
|
|
@@ -2129,20 +2030,6 @@ var Block = class {
|
|
|
2129
2030
|
}
|
|
2130
2031
|
};
|
|
2131
2032
|
// src/store.ts
|
|
2132
|
-
/**
|
|
2133
|
-
* DEV: catch `$store.typo`, which otherwise reads as `undefined` and renders a
|
|
2134
|
-
* blank instead of raising.
|
|
2135
|
-
*
|
|
2136
|
-
* The trap sits *under* `reactive`, not over it: `reactive` probes its target
|
|
2137
|
-
* for `__v_raw`, and a wrapper that forwards that probe is bypassed entirely.
|
|
2138
|
-
* `__v_`-prefixed keys are ignored for the same reason — they are not reads a
|
|
2139
|
-
* user wrote.
|
|
2140
|
-
*
|
|
2141
|
-
* Deferred to the end of the task, because reading a store before it is
|
|
2142
|
-
* registered is legitimate — the registry is reactive so the expression
|
|
2143
|
-
* re-runs. A microtask would warn on a store registered after an `await`. One
|
|
2144
|
-
* registered later still warns; a check cannot wait forever.
|
|
2145
|
-
*/
|
|
2146
2033
|
var registry = Object.create(null);
|
|
2147
2034
|
var target = registry;
|
|
2148
2035
|
target = new Proxy(registry, { get(obj, key, receiver) {
|
|
@@ -2283,12 +2170,6 @@ var createApp = (initialData) => {
|
|
|
2283
2170
|
}
|
|
2284
2171
|
return this;
|
|
2285
2172
|
},
|
|
2286
|
-
/**
|
|
2287
|
-
* Tear down mounted regions: every root, or only those at or inside `el`.
|
|
2288
|
-
* Effects stop, cleanups run and scopes deregister; the rest of the app
|
|
2289
|
-
* keeps running. Without it, replacing a region's markup leaves its
|
|
2290
|
-
* effects writing to detached nodes.
|
|
2291
|
-
*/
|
|
2292
2173
|
unmount(el) {
|
|
2293
2174
|
if (el == null) {
|
|
2294
2175
|
rootBlocks.forEach((block) => block.teardown());
|
package/dist/litevue.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Date]"===d(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_=/-(\w)/g,g=m(e=>e.replace(_,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=m(e=>e.replace(y,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>j(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)C(e.deps[t],e);e.deps.length=e._depsLength}}function C(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function M(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&T(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var W=!0,V=0,z=[];function D(){z.push(W),W=!1}function F(){const e=z.pop();W=void 0===e||e}function B(){V++}function K(){for(V--;!V&&U.length;)U.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&C(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var U=[];function H(e,t,n){B();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&U.push(s.scheduler)))}K()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,o){const i=Z.get(e);if(!i)return;let l=[];if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":c(e)?v(n)&&l.push(i.get("length")):l.push(i.get(G));break;case"delete":c(e)||l.push(i.get(G))}B();for(const c of l)c&&H(c,4);K()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),B();const n=_e(this)[t].apply(this,e);return K(),F(),n}}),e}function se(e){f(e)||(e=String(e));const t=_e(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?o&&v(t)?l:l.value:p(l)?s?function(e){return ve(e,!0,le,null,fe)}(l):de(l):l)}},oe=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=_e(r),n=_e(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const o=c(e)&&v(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===_e(s)&&(o?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},ie=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new oe,le=new ie,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function he(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function de(e){return me(e)?e:ve(e,!1,ce,null,ae)}function ve(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=he(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}var ge=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=_e(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||ye(e,4),t=e,W&&$&&(t=_e(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof ge?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ye(e,t=4,n,s){const r=(e=_e(e)).dep;r&&H(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Oe=new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Te=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){console.error(e,n)}Re.length||console.error(e)},Ce=new WeakSet,Me=e=>{Ce.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,De=Promise.resolve(),Fe=e=>De.then(e),Be=e=>(e.i=Ve++,e),Ke=e=>{e.i??Be(e),ze.add(e),We||(We=!0,Fe(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Ce.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Ae("flush")},Ue=0,He=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ue}`)},Je=e=>(t,n,s)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?w(e,t):s?.immediate){D();try{n(e,t)}finally{F(),i=o()}}c=!0});return()=>{Me(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?et:tt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||tt(e,s,null,o[s])}o=Ye(n),!s&&o?.style&&(o.style=Ye(o.style)),s||(e.__bound=o)})},Ye=e=>p(e)?{...nt(e)}:e,et=(e,t,n,s)=>{(n!==s||p(n)||"value"===t)&&tt(e,t,n,s)},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),o=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in o)null==r[e]&&rt(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},nt=e=>u(e=x(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{c(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(b(t),n.replace(st,""),"important"):e[t]=n},ot=Object.create(null),it=0,ct=e=>e.replace(/^return\(([^]*)\)$/,"$1"),lt=(e,t,n,s)=>at(e,`return(${t})`,n,s),at=(e,t,n,s)=>{let r=ot[t];r||(++it>1e3&&(ot=Object.create(null),it=1),r=ot[t]=ut(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ie(o,{phase:"expression",expression:s?.expression??ct(t),source:s?.source,el:s?.el??n,scope:e})}},ut=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??ct(e),source:s?.source,el:s?.el??t}),n}},ft=Object.create(null),pt=0,ht=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,dt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,vt=["ctrl","shift","alt","meta"],mt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>vt.some(n=>e[`${n}Key`]&&!t[n])},_t={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},gt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,yt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=dt.test(n)||ht.test(n)?t(`(e => (${i})(e))`):(e=>{const t=ft[e];if(void 0!==t)return t;++pt>1e3&&(ft=Object.create(null),pt=1);try{return new Function(`return (${e})`),ft[e]=!0}catch{return ft[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Fe(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!gt.test(e)||e in _t);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||_t[t]===e))return}for(const e in r){const t=mt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},bt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=wt(t())})},wt=e=>null==e?"":c(e)||p(e)&&(e.toString===h||!a(e.toString))?JSON.stringify(e,null,2):String(e),xt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},$t=e=>"_value"in e?e._value:e.value,kt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},Ot=e=>{e.target.composing=!0},St=e=>{const t=e.target;t.composing&&(t.composing=!1,Et(t,"input"))},Et=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Lt=new WeakMap,jt=e=>{const t=Pe;return Pe=e,t},At=(e,t=Pe)=>{if(!t)return;const n=Lt.get(t);n?n.push(e):Lt.set(t,[e])},Tt=e=>{const t=Lt.get(e);if(t){Lt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Nt={bind:Xe,on:yt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:bt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,_=!1;if("SELECT"===e.tagName){const t=e;d("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p($t(e)));i(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=$t(r);if(s)r.selected=c(e)&&A(e,o)>-1;else if(j($t(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",v=()=>{const t=n(),s=e.checked;if(c(t)){const n=$t(e),r=A(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(kt(e,s))}),m=()=>{const t=n();c(t)?e.checked=A(t,$t(e))>-1:e.checked=j(t,kt(e,!0))};else if("radio"===o)d("change",v=()=>i($t(e))),m=()=>{e.checked=j(n(),$t(e))};else{_=!0;const t=e=>p(l?e.trim():e);v=()=>i(t(e.value));let s,o=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(i,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",Ot),d("compositionend",St),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||v()}const g=s(m);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ut;return Fe(()=>{if(!r)return;const i=jt(e);try{Jt(o,()=>s(()=>at(t.scope,n,e,{source:"v-effect",el:e})))}finally{jt(i)}}),()=>{r=!1}}},Pt=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===xt(i,"v-else")||null!=(c=xt(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),jt(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=h,t=a.el,r(Lt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{Me(p),r(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:r}=o[e];if(!t||lt(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new an(r,n),a.insert(t,s),At(h,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),At(h,s),l},Rt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,It=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Ct=/^\(|\)$/g,Mt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Wt=(e,t,n)=>{const s=t.match(Rt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;jt(o);const l=s[2].trim();let a,f,h,d,v=s[1].trim().replace(Ct,"").trim(),m=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=v.match(It))&&(v=v.replace(It,"").trim(),f=d[1].trim(),d[2]&&(h=d[2].trim())),(d=v.match(Mt))&&(a=d[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s?.[m?t:e]):i[v]=s,null!=o?(f&&(i[f]=o),h&&(i[h]=r)):f&&(i[f]=r);const c=g?lt(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new an(e,on(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=lt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=new Map,s=[];try{if(c(t)||u(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(p(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ie(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==c)a=k(r,l);else{a=y[c],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;c!==n&&e!==l&&a.insert(i(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},Vt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=_e(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},zt=["visible","idle","interaction"],Dt=["[v-scope]",...zt.map(e=>`[v-scope\\.${e}]`)].join(","),Ft=["pointerdown","keydown","focusin"],Bt=(e,t,s,o)=>{const i=zt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,t,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ft)e.addEventListener(t,o);i=()=>{for(const t of Ft)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,o))});return t.cleanups.push(l),At(()=>{r(t.cleanups,l),l()}),!0},Kt=/^(?:v-|:|@)/,qt=/\.([\w-]+)/g,Ut=!1,Ht=(e,t,n)=>{e.cleanups.push(t),At(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Jt=(e,t)=>{const n=Ut;Ut=e;try{t()}finally{Ut=n}},Zt=(e,t,n)=>Jt(n,()=>Gt(e,t)),Gt=(e,t)=>{const n=jt(e);try{return Qt(e,t)}finally{jt(n)}},Qt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Xt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=xt(n,"v-if")))return Pt(n,r,t);if(r=xt(n,"v-for"))return Wt(n,r,t);if(Bt(n,t,Zt,Ut))return;xt(n,"v-cloak");const o=xt(n,"v-name");let i;if(r=xt(n,"v-teleport")){const e=tn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ie(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Ht(t,()=>{Tt(n),n.remove()},o)}}if((r=xt(n,"v-scope"))||""===r){const e=(r?lt(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=on(t,e),n.__ctx=t;const s=Te(n,t.scope,r||void 0,o||void 0);Ht(t,()=>{s(),delete n.__ctx}),e.$template&&nn(n,e.$template)}const c=Ut;null!=xt(n,"v-once")&&(Ut=!0),(r=xt(n,"ref"))&&en(n,Vt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Xt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])Kt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):Yt(n,e,s,t));for(const[e,s]of l)Yt(n,e,s,t);return Ut=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),en(e,bt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Xt(e,t)},Xt=(e,t)=>{let n=e.firstChild;for(;n;)n=Gt(n,t)||n.nextSibling},Yt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(qt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=yt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(Nt,n)?Nt[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Vt),en(e,r,n,s,o,c,l),e.removeAttribute(l))},en=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ie(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=lt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=jt(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{jt(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ie(p,{phase:"directive",source:i,el:e,expression:n})}f&&Ht(s,()=>{try{f()}catch(p){Ie(p,{phase:"teardown",source:i,el:e,expression:n})}})},tn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},nn=(e,t)=>{if("#"===t[0]){const n=tn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},sn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:de({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ut){const t=()=>Jt(!0,e);return Ke(t),t}const n=Be(M(e,{scheduler:()=>Ke(n),lazy:!0}));return t.effects.push(n),At(()=>{Me(n),r(t.effects,n)}),n(),n}};return t},rn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),on=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),rn(r,"$refs",Object.create(s.$refs));const o=de(new Proxy(r,{set:(e,t,n,r)=>r!==o||i(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:o};return rn(r,"$watch",Je(c)),rn(r,"$id",He()),n||cn(o,r),c},cn=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},ln=e=>{e.ctx.blocks.forEach(ln),e.ctx.effects.splice(0).forEach(Me)},an=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=sn(t),Gt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,At(()=>this.discard(),this.el))}remove(){this.parentCtx&&(r(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};ln(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Me),this.ctx.cleanups.splice(0).forEach(e=>e())}},un=de(Object.create(null)),fn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),pn=e=>e&&(e.__r||e.hasAttribute("v-pre")||pn(e.parentElement)),hn=e=>{const t=sn();if("function"==typeof e&&(e=e()),e&&(t.scope=de(e),cn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(fn(n)+"([^]+?)"+fn(s),"g")}rn(t.scope,"$s",wt),rn(t.scope,"$nextTick",Fe),rn(t.scope,"$refs",Object.create(null)),rn(t.scope,"$store",un),rn(t.scope,"$watch",Je(t)),rn(t.scope,"$id",He()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const o=[],i=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Dt)?[e]:[...e.querySelectorAll(Dt)].filter(e=>!e.matches(`:where(${Dt}) *`)),n.length||(n=[e]),n=n.filter(e=>!pn(e)),t.walk??=Gt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new an(o,t,!0);i.host=n,o.__ctx??=i.ctx,Ne.scopes.has(o)||o.matches(Dt)||i.ctx.cleanups.push(Te(o,i.ctx.scope,void 0,e||void 0)),s.push(i),At(()=>(r(s,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Me),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():r.push(t)}s=r}};return a},dn=document.currentScript;return dn&&dn.hasAttribute("init")&&hn().mount(),e.computed=function(e,t,s=!1){let r,o;const i=a(e);return i?(r=e,o=n):(r=e.get,o=e.set),new ge(r,o,i||!o,s)},e.createApp=hn,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=Fe,e.reactive=de,e.store=(e,t)=>(void 0!==t&&(un[e]=t,"function"==typeof un[e].init&&un[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,un[e])),un[e]),e.watchEffect=e=>{const t=M(e,{scheduler:()=>Ke(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Me(t),n}return()=>Me(t)},e}({});
|
|
1
|
+
var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Date]"===d(e),a=e=>"function"==typeof e,u=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,d=e=>h.call(e),v=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},_=/-(\w)/g,g=m(e=>e.replace(_,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,b=m(e=>e.replace(y,"-$1").toLowerCase()),w=(e,t)=>!Object.is(e,t);function x(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):x(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||p(e))return e}var $,k=/;(?![^(]*\))/g,O=/:([^]+)/,S=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(S,"").split(k).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function j(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=j(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!j(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>j(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(P(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=W,t=$;try{return W=!0,$=this,this._runnings++,R(this),this.fn()}finally{I(this),this._runnings--,$=t,W=e}}stop(){this.active&&(R(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function P(e){return e.value}function R(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)C(e.deps[t],e);e.deps.length=e._depsLength}}function C(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function M(e,t){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&T(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var W=!0,V=0,z=[];function D(){z.push(W),W=!1}function F(){const e=z.pop();W=void 0===e||e}function B(){V++}function K(){for(V--;!V&&U.length;)U.shift()()}function q(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&C(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var U=[];function H(e,t,n){B();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&U.push(s.scheduler)))}K()}var J=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Z=new WeakMap,G=Symbol("");function Q(e,t,n){if(W&&$){let t=Z.get(e);t||Z.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=J(()=>t.delete(n))),q($,s)}}function X(e,t,n,s,r,o){const i=Z.get(e);if(!i)return;let l=[];if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":c(e)?v(n)&&l.push(i.get("length")):l.push(i.get(G));break;case"delete":c(e)||l.push(i.get(G))}B();for(const c of l)c&&H(c,4);K()}var Y=t("__proto__,__v_isRef,__isVue"),ee=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),te=ne();function ne(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=_e(this);for(let t=0,r=this.length;t<r;t++)Q(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(_e)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),B();const n=_e(this)[t].apply(this,e);return K(),F(),n}}),e}function se(e){f(e)||(e=String(e));const t=_e(this);return Q(t,0,e),t.hasOwnProperty(e)}var re=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?pe:fe:r?ue:ae).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(te,t))return Reflect.get(te,t,n);if("hasOwnProperty"===t)return se}const l=Reflect.get(e,t,n);return(f(t)?ee.has(t):Y(t))?l:(s||Q(e,0,t),r?l:be(l)?o&&v(t)?l:l.value:p(l)?s?function(e){return ve(e,!0,le,null,fe)}(l):de(l):l)}},oe=class extends re{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=_e(r),n=_e(n)),!c(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const o=c(e)&&v(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===_e(s)&&(o?w(n,r)&&X(e,"set",t,n):X(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&X(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&ee.has(t)||Q(e,0,t),n}ownKeys(e){return Q(e,0,c(e)?"length":G),Reflect.ownKeys(e)}},ie=class extends re{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ce=new oe,le=new ie,ae=new WeakMap,ue=new WeakMap,fe=new WeakMap,pe=new WeakMap;function he(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>d(e).slice(8,-1))(e))}function de(e){return me(e)?e:ve(e,!1,ce,null,ae)}function ve(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=he(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function _e(e){const t=e&&e.__v_raw;return t?_e(t):e}var ge=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=_e(this);var t,n;return e._cacheable&&!e.effect.dirty||!w(e._value,e._value=e.effect.run())||ye(e,4),t=e,W&&$&&(t=_e(t),q($,null!=(n=t.dep)?n:t.dep=J(()=>t.dep=void 0,t instanceof ge?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ye(e,t=4,n,s){const r=(e=_e(e)).dep;r&&H(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=new Map,xe=new Map,$e=new Map,ke=new Map,Oe=new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,"plugin:install":new Set,flush:new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Te=(e,t,s,r)=>Le()?n:(we.set(e,t),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,t),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Ne={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Ne);var Pe,Re=[],Ie=(e,t)=>{for(const s of[...Re])try{s(e,t)}catch(n){console.error(e,n)}Re.length||console.error(e)},Ce=new WeakSet,Me=e=>{Ce.add(e),e.effect&&function(e){e.effect.stop()}(e)},We=!1,Ve=0,ze=new Set,De=Promise.resolve(),Fe=e=>De.then(e),Be=e=>(e.i=Ve++,e),Ke=e=>{e.i??Be(e),ze.add(e),We||(We=!0,Fe(qe))},qe=()=>{const e=new Map;for(;ze.size;)for(const n of[...ze].sort((e,t)=>e.i-t.i)){if(ze.delete(n),Ce.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ie(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ie(t,{phase:"effect"})}}We=!1,je.flush.size&&!Le()&&Ae("flush")},Ue=0,He=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++Ue}`)},Je=e=>(t,n,s)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?w(e,t):s?.immediate){D();try{n(e,t)}finally{F(),i=o()}}c=!0});return()=>{Me(l),r(e.effects,l)}},Ze=/^(spellcheck|draggable|translate|form|list|type)$/,Ge=/^(img|video|canvas|source)(width|height)$/,Qe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?et:tt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||tt(e,s,null,o[s])}o=Ye(n),!s&&o?.style&&(o.style=Ye(o.style)),s||(e.__bound=o)})},Ye=e=>p(e)?{...nt(e)}:e,et=(e,t,n,s)=>{(n!==s||p(n)||"value"===t)&&tt(e,t,n,s)},tt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=nt(n),o=nt(s);for(const e in r)rt(t,e,r[e]);for(const e in o)null==r[e]&&rt(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ze.test(t)||Ge.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Qe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},nt=e=>u(e=x(e))?E(e):e||{},st=/\s*!important$/,rt=(e,t,n)=>{c(n)?n.forEach(n=>rt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):st.test(n)?e.setProperty(b(t),n.replace(st,""),"important"):e[t]=n},ot=Object.create(null),it=0,ct=e=>e.replace(/^return\(([^]*)\)$/,"$1"),lt=(e,t,n,s)=>at(e,`return(${t})`,n,s),at=(e,t,n,s)=>{let r=ot[t];r||(++it>1e3&&(ot=Object.create(null),it=1),r=ot[t]=ut(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ie(o,{phase:"expression",expression:s?.expression??ct(t),source:s?.source,el:s?.el??n,scope:e})}},ut=(e,t,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ie(r,{phase:"compile",expression:s?.expression??ct(e),source:s?.source,el:s?.el??t}),n}},ft=Object.create(null),pt=0,ht=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,dt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,vt=["ctrl","shift","alt","meta"],mt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>vt.some(n=>e[`${n}Key`]&&!t[n])},_t={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},gt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,yt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=dt.test(n)||ht.test(n)?t(`(e => (${i})(e))`):(e=>{const t=ft[e];if(void 0!==t)return t;++pt>1e3&&(ft=Object.create(null),pt=1);try{return new Function(`return (${e})`),ft[e]=!0}catch{return ft[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Fe(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!gt.test(e)||e in _t);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=b(s.key||"");if(!n.some(t=>t===e||_t[t]===e))return}for(const e in r){const t=mt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},bt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=wt(t())})},wt=e=>null==e?"":c(e)||p(e)&&(e.toString===h||!a(e.toString))?JSON.stringify(e,null,2):String(e),xt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},$t=e=>"_value"in e?e._value:e.value,kt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},Ot=e=>{e.target.composing=!0},St=e=>{const t=e.target;t.composing&&(t.composing=!1,Et(t,"input"))},Et=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},Lt=new WeakMap,jt=e=>{const t=Pe;return Pe=e,t},At=(e,t=Pe)=>{if(!t)return;const n=Lt.get(t);n?n.push(e):Lt.set(t,[e])},Tt=e=>{const t=Lt.get(e);if(t){Lt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Nt={bind:Xe,on:yt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:bt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,_=!1;if("SELECT"===e.tagName){const t=e;d("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p($t(e)));i(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=$t(r);if(s)r.selected=c(e)&&A(e,o)>-1;else if(j($t(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",v=()=>{const t=n(),s=e.checked;if(c(t)){const n=$t(e),r=A(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(kt(e,s))}),m=()=>{const t=n();c(t)?e.checked=A(t,$t(e))>-1:e.checked=j(t,kt(e,!0))};else if("radio"===o)d("change",v=()=>i($t(e))),m=()=>{e.checked=j(n(),$t(e))};else{_=!0;const t=e=>p(l?e.trim():e);v=()=>i(t(e.value));let s,o=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(i,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",Ot),d("compositionend",St),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||v()}const g=s(m);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ut;return Fe(()=>{if(!r)return;const i=jt(e);try{Jt(o,()=>s(()=>at(t.scope,n,e,{source:"v-effect",el:e})))}finally{jt(i)}}),()=>{r=!1}}},Pt=(e,t,n)=>{const s=new Comment("v-if");e.before(s);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===xt(i,"v-else")||null!=(c=xt(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),jt(s);let u=-1;const f=()=>{var e,t;a&&(s.parentNode||a.el.before(s),e=h,t=a.el,r(Lt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{Me(p),r(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:r}=o[e];if(!t||lt(n.scope,t,r,{source:"v-if",el:r})){if(e!==u){f();const t=s.parentNode;a=new an(r,n),a.insert(t,s),At(h,a.el),a.el.parentNode===t&&s.remove(),u=e}return}}u=-1,f()}),At(h,s),l},Rt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,It=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Ct=/^\(|\)$/g,Mt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Wt=(e,t,n)=>{const s=t.match(Rt);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;jt(o);const l=s[2].trim();let a,f,h,d,v=s[1].trim().replace(Ct,"").trim(),m=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=v.match(It))&&(v=v.replace(It,"").trim(),f=d[1].trim(),d[2]&&(h=d[2].trim())),(d=v.match(Mt))&&(a=d[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};a?a.forEach((e,t)=>i[e]=s?.[m?t:e]):i[v]=s,null!=o?(f&&(i[f]=o),h&&(i[h]=r)):f&&(i[f]=r);const c=g?lt(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new an(e,on(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(i(),s),r};return n.effect(()=>{const t=lt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=new Map,s=[];try{if(c(t)||u(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(p(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ie(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],c=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==c)a=k(r,l);else{a=y[c],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;c!==n&&e!==l&&a.insert(i(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},Vt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=_e(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},zt=["visible","idle","interaction"],Dt=["[v-scope]",...zt.map(e=>`[v-scope\\.${e}]`)].join(","),Ft=["pointerdown","keydown","focusin"],Bt=(e,t,s,o)=>{const i=zt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,t,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=n;if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ft)e.addEventListener(t,o);i=()=>{for(const t of Ft)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),s(e,t,o))});return t.cleanups.push(l),At(()=>{r(t.cleanups,l),l()}),!0},Kt=/^(?:v-|:|@)/,qt=/\.([\w-]+)/g,Ut=!1,Ht=(e,t,n)=>{e.cleanups.push(t),At(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Jt=(e,t)=>{const n=Ut;Ut=e;try{t()}finally{Ut=n}},Zt=(e,t,n)=>Jt(n,()=>Gt(e,t)),Gt=(e,t)=>{const n=jt(e);try{return Qt(e,t)}finally{jt(n)}},Qt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Xt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=xt(n,"v-if")))return Pt(n,r,t);if(r=xt(n,"v-for"))return Wt(n,r,t);if(Bt(n,t,Zt,Ut))return;xt(n,"v-cloak");const o=xt(n,"v-name");let i;if(r=xt(n,"v-teleport")){const e=tn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ie(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Ht(t,()=>{Tt(n),n.remove()},o)}}if((r=xt(n,"v-scope"))||""===r){const e=(r?lt(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=on(t,e),n.__ctx=t;const s=Te(n,t.scope,r||void 0,o||void 0);Ht(t,()=>{s(),delete n.__ctx}),e.$template&&nn(n,e.$template)}const c=Ut;null!=xt(n,"v-once")&&(Ut=!0),(r=xt(n,"ref"))&&en(n,Vt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Xt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])Kt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):Yt(n,e,s,t));for(const[e,s]of l)Yt(n,e,s,t);return Ut=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),en(e,bt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Xt(e,t)},Xt=(e,t)=>{let n=e.firstChild;for(;n;)n=Gt(n,t)||n.nextSibling},Yt=(e,t,n,s)=>{let r,o,c;const l=t;if(":"===(t=t.replace(qt,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=yt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=i(Nt,n)?Nt[n]:i(s.dirs,n)?s.dirs[n]:void 0,o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Vt),en(e,r,n,s,o,c,l),e.removeAttribute(l))},en=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ie(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=lt(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=jt(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{jt(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ie(p,{phase:"directive",source:i,el:e,expression:n})}f&&Ht(s,()=>{try{f()}catch(p){Ie(p,{phase:"teardown",source:i,el:e,expression:n})}})},tn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ie(s,{phase:"directive",source:n,el:t,expression:e})}},nn=(e,t)=>{if("#"===t[0]){const n=tn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(e.ownerDocument.importNode(n.content,!0))}e.innerHTML=t},sn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:de({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ut){const t=()=>Jt(!0,e);return Ke(t),t}const n=Be(M(e,{scheduler:()=>Ke(n),lazy:!0}));return t.effects.push(n),At(()=>{Me(n),r(t.effects,n)}),n(),n}};return t},rn=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),on=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),rn(r,"$refs",Object.create(s.$refs));const o=de(new Proxy(r,{set:(e,t,n,r)=>r!==o||i(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:o};return rn(r,"$watch",Je(c)),rn(r,"$id",He()),n||cn(o,r),c},cn=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},ln=e=>{e.ctx.blocks.forEach(ln),e.ctx.effects.splice(0).forEach(Me)},an=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.ownerDocument.importNode(e.content,!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=sn(t),Gt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,At(()=>this.discard(),this.el))}remove(){this.parentCtx&&(r(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};ln(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Me),this.ctx.cleanups.splice(0).forEach(e=>e())}},un=de(Object.create(null)),fn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),pn=e=>e&&(e.__r||e.hasAttribute("v-pre")||pn(e.parentElement)),hn=e=>{const t=sn();if("function"==typeof e&&(e=e()),e&&(t.scope=de(e),cn(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(fn(n)+"([^]+?)"+fn(s),"g")}rn(t.scope,"$s",wt),rn(t.scope,"$nextTick",Fe),rn(t.scope,"$refs",Object.create(null)),rn(t.scope,"$store",un),rn(t.scope,"$watch",Je(t)),rn(t.scope,"$id",He()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const o=[],i=new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Re.push(n),()=>{const e=Re.indexOf(n);e>-1&&Re.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Dt)?[e]:[...e.querySelectorAll(Dt)].filter(e=>!e.matches(`:where(${Dt}) *`)),n.length||(n=[e]),n=n.filter(e=>!pn(e)),t.walk??=Gt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new an(o,t,!0);i.host=n,o.__ctx??=i.ctx,Ne.scopes.has(o)||o.matches(Dt)||i.ctx.cleanups.push(Te(o,i.ctx.scope,void 0,e||void 0)),s.push(i),At(()=>(r(s,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],t.effects.splice(0).forEach(Me),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ie(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const r=[];for(const t of s){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():r.push(t)}s=r}};return a},dn=document.currentScript;return dn&&dn.hasAttribute("init")&&hn().mount(),e.computed=function(e,t,s=!1){let r,o;const i=a(e);return i?(r=e,o=n):(r=e.get,o=e.set),new ge(r,o,i||!o,s)},e.createApp=hn,e.devtools=Ne,e.disableDevtools=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ne&&delete window.__LITE_VUE__},e.nextTick=Fe,e.reactive=de,e.store=(e,t)=>(void 0!==t&&(un[e]=t,"function"==typeof un[e].init&&un[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,un[e])),un[e]),e.watchEffect=e=>{const t=M(e,{scheduler:()=>Ke(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw Me(t),n}return()=>Me(t)},e}({});
|
package/dist/litevue.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,o=(e,t)=>r.call(e,t),i=Array.isArray,c=e=>"[object Date]"===h(e),l=e=>"function"==typeof e,a=e=>"string"==typeof e,u=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},m=/-(\w)/g,_=/* @__PURE__ */v(e=>e.replace(m,(e,t)=>t?t.toUpperCase():"")),g=/\B([A-Z])/g,y=/* @__PURE__ */v(e=>e.replace(g,"-$1").toLowerCase()),b=(e,t)=>!Object.is(e,t);function w(e){if(i(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?S(s):w(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||f(e))return e}var x,$=/;(?![^(]*\))/g,k=/:([^]+)/,O=/\/\*[^]*?\*\//g;function S(e){const t={};return e.replace(O,"").split($).forEach(e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function E(e){let t="";if(a(e))t=e;else if(i(e))for(let n=0;n<e.length;n++){const s=E(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function L(e,t){if(e===t)return!0;let n=c(e),s=c(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=u(e),s=u(t),n||s)return e===t;if(n=i(e),s=i(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=L(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!L(e[n],t[n]))return!1}}return String(e)===String(t)}function j(e,t){return e.findIndex(e=>L(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,z();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(T(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=M,t=x;try{return M=!0,x=this,this._runnings++,P(this),this.fn()}finally{R(this),this._runnings--,x=t,M=e}}stop(){this.active&&(P(this),R(this),this.onStop&&this.onStop(),this.active=!1)}};function T(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function R(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)I(e.deps[t],e);e.deps.length=e._depsLength}}function I(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,s){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&A(r,s.scope)),s&&s.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var M=!0,W=0,V=[];function z(){V.push(M),M=!1}function F(){const e=V.pop();M=void 0===e||e}function B(){W++}function D(){for(W--;!W&&q.length;)q.shift()()}function K(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&I(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var q=[];function U(e,t,n){B();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&q.push(s.scheduler)))}D()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},J=/* @__PURE__ */new WeakMap,Z=Symbol("");function G(e,t,n){if(M&&x){let t=J.get(e);t||J.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),K(x,s)}}function Q(e,t,n,s,r,o){const c=J.get(e);if(!c)return;let l=[];if("length"===n&&i(e)){const e=Number(s);c.forEach((t,n)=>{("length"===n||!u(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(c.get(n)),t){case"add":i(e)?d(n)&&l.push(c.get("length")):l.push(c.get(Z));break;case"delete":i(e)||l.push(c.get(Z))}B();for(const i of l)i&&U(i,4);D()}var X=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),Y=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(u)),ee=/* @__PURE__ */te();function te(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=me(this);for(let t=0,r=this.length;t<r;t++)G(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(me)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){z(),B();const n=me(this)[t].apply(this,e);return D(),F(),n}}),e}function ne(e){u(e)||(e=String(e));const t=me(this);return G(t,0,e),t.hasOwnProperty(e)}var se=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?fe:ue:r?ae:le).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=i(e);if(!s){if(c&&o(ee,t))return Reflect.get(ee,t,n);if("hasOwnProperty"===t)return ne}const l=Reflect.get(e,t,n);return(u(t)?Y.has(t):X(t))?l:(s||G(e,0,t),r?l:be(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return de(e,!0,ce,null,ue)}(l):he(l):l)}},re=class extends se{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ve(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ve(n)||(r=me(r),n=me(n)),!i(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const c=i(e)&&d(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===me(s)&&(c?b(n,r)&&Q(e,"set",t,n):Q(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Q(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return u(t)&&Y.has(t)||G(e,0,t),n}ownKeys(e){return G(e,0,i(e)?"length":Z),Reflect.ownKeys(e)}},oe=class extends se{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ie=/* @__PURE__ */new re,ce=/* @__PURE__ */new oe,le=/* @__PURE__ */new WeakMap,ae=/* @__PURE__ */new WeakMap,ue=/* @__PURE__ */new WeakMap,fe=/* @__PURE__ */new WeakMap;function pe(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return ve(e)?e:de(e,!1,ie,null,le)}function de(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=pe(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function ve(e){return!(!e||!e.__v_isReadonly)}function me(e){const t=e&&e.__v_raw;return t?me(t):e}var _e=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=me(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||ye(e,4),t=e,M&&x&&(t=me(t),K(x,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof _e?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ge(e,n,s=!1){let r,o;const i=l(e);return i?(r=e,o=t):(r=e.get,o=e.set),new _e(r,o,i||!o,s)}function ye(e,t=4,n,s){const r=(e=me(e)).dep;r&&U(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=/* @__PURE__ */new Map,xe=/* @__PURE__ */new Map,$e=/* @__PURE__ */new Map,ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Ne=(e,n,s,r)=>Le()?t:(we.set(e,n),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,n),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Te={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}},Pe=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Te&&delete window.__LITE_VUE__};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Te);var Re,Ie=[],Ce=(e,t)=>{for(const s of[...Ie])try{s(e,t)}catch(n){console.error(e,n)}Ie.length||console.error(e)},Me=/* @__PURE__ */new WeakSet,We=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},Ve=!1,ze=0,Fe=/* @__PURE__ */new Set,Be=Promise.resolve(),De=e=>Be.then(e),Ke=e=>(e.i=ze++,e),qe=e=>{e.i??Ke(e),Fe.add(e),Ve||(Ve=!0,De(Ue))},Ue=()=>{const e=/* @__PURE__ */new Map;for(;Fe.size;)for(const n of[...Fe].sort((e,t)=>e.i-t.i)){if(Fe.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ce(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ce(t,{phase:"effect"})}}Ve=!1,je.flush.size&&!Le()&&Ae("flush")},He=0,Je=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Ze=e=>(t,n,r)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?b(e,t):r?.immediate){z();try{n(e,t)}finally{F(),i=o()}}c=!0});return()=>{We(l),s(e.effects,l)}},Ge=/^(spellcheck|draggable|translate|form|list|type)$/,Qe=/^(img|video|canvas|source)(width|height)$/,Xe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),tt(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?tt:nt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||nt(e,s,null,o[s])}o=et(n),!s&&o?.style&&(o.style=et(o.style)),s||(e.__bound=o)})},et=e=>f(e)?{...st(e)}:e,tt=(e,t,n,s)=>{(n!==s||f(n)||"value"===t)&&nt(e,t,n,s)},nt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",E(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=st(n),o=st(s);for(const e in r)ot(t,e,r[e]);for(const e in o)null==r[e]&&ot(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ge.test(t)||Qe.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Xe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},st=e=>a(e=w(e))?S(e):e||{},rt=/\s*!important$/,ot=(e,t,n)=>{i(n)?n.forEach(n=>ot(e,t,n)):t.startsWith("--")?e.setProperty(t,n):rt.test(n)?e.setProperty(y(t),n.replace(rt,""),"important"):e[t]=n},it=Object.create(null),ct=0,lt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),at=(e,t,n,s)=>ut(e,`return(${t})`,n,s),ut=(e,t,n,s)=>{let r=it[t];r||(++ct>1e3&&(it=Object.create(null),ct=1),r=it[t]=ft(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ce(o,{phase:"expression",expression:s?.expression??lt(t),source:s?.source,el:s?.el??n,scope:e})}},ft=(e,n,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ce(r,{phase:"compile",expression:s?.expression??lt(e),source:s?.source,el:s?.el??n}),t}},pt=Object.create(null),ht=0,dt=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,vt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,mt=["ctrl","shift","alt","meta"],_t={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>mt.some(n=>e[`${n}Key`]&&!t[n])},gt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},yt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,bt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=vt.test(n)||dt.test(n)?t(`(e => (${i})(e))`):(e=>{const t=pt[e];if(void 0!==t)return t;++ht>1e3&&(pt=Object.create(null),ht=1);try{return new Function(`return (${e})`),pt[e]=!0}catch{return pt[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return De(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!yt.test(e)||e in gt);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=y(s.key||"");if(!n.some(t=>t===e||gt[t]===e))return}for(const e in r){const t=_t[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},wt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=xt(t())})},xt=e=>null==e?"":i(e)||f(e)&&(e.toString===p||!l(e.toString))?JSON.stringify(e,null,2):String(e),$t=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},kt=e=>"_value"in e?e._value:e.value,Ot=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},St=e=>{e.target.composing=!0},Et=e=>{const t=e.target;t.composing&&(t.composing=!1,Lt(t,"input"))},Lt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},jt=/* @__PURE__ */new WeakMap,At=e=>{const t=Re;return Re=e,t},Nt=(e,t=Re)=>{if(!t)return;const n=jt.get(t);n?n.push(e):jt.set(t,[e])},Tt=e=>{const t=jt.get(e);if(t){jt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Pt={bind:Ye,on:bt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:wt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let v,m,_=!1;if("SELECT"===e.tagName){const t=e;d("change",v=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(kt(e)));c(t.multiple?e:e[0])}),m=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=kt(r);if(s)r.selected=i(e)&&j(e,o)>-1;else if(L(kt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",v=()=>{const t=n(),s=e.checked;if(i(t)){const n=kt(e),r=j(t,n),o=-1!==r;if(s&&!o)c(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),c(e)}}else c(Ot(e,s))}),m=()=>{const t=n();i(t)?e.checked=j(t,kt(e))>-1:e.checked=L(t,Ot(e,!0))};else if("radio"===o)d("change",v=()=>c(kt(e))),m=()=>{e.checked=L(n(),kt(e))};else{_=!0;const t=e=>p(l?e.trim():e);v=()=>c(t(e.value));let s,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(c,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",St),d("compositionend",Et),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),m=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||v()}const g=s(m);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ht;return De(()=>{if(!r)return;const i=At(e);try{Zt(o,()=>s(()=>ut(t.scope,n,e,{source:"v-effect",el:e})))}finally{At(i)}}),()=>{r=!1}}},Rt=(e,t,n)=>{const r=new Comment("v-if");e.before(r);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===$t(i,"v-else")||null!=(c=$t(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),At(r);let u=-1;const f=()=>{var e,t;a&&(r.parentNode||a.el.before(r),e=h,t=a.el,s(jt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{We(p),s(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:s}=o[e];if(!t||at(n.scope,t,s,{source:"v-if",el:s})){if(e!==u){f();const t=r.parentNode;a=new un(s,n),a.insert(t,r),Nt(h,a.el),a.el.parentNode===t&&r.remove(),u=e}return}}u=-1,f()}),Nt(h,r),l},It=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ct=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Mt=/^\(|\)$/g,Wt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Vt=(e,t,n)=>{const s=t.match(It);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const c=()=>o.parentNode;At(o);const l=s[2].trim();let u,p,h,d,v=s[1].trim().replace(Mt,"").trim(),m=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=v.match(Ct))&&(v=v.replace(Ct,"").trim(),p=d[1].trim(),d[2]&&(h=d[2].trim())),(d=v.match(Wt))&&(u=d[1].split(",").map(e=>e.trim()),m="["===v[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};u?u.forEach((e,t)=>i[e]=s?.[m?t:e]):i[v]=s,null!=o?(p&&(i[p]=o),h&&(i[h]=r)):p&&(i[p]=r);const c=g?at(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new un(e,cn(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=at(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=/* @__PURE__ */new Map,s=[];try{if(i(t)||a(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(f(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ce(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],/* @__PURE__ */new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],i=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==i)a=k(r,l);else{a=y[i],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;i!==n&&e!==l&&a.insert(c(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},zt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=me(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},Ft=["visible","idle","interaction"],Bt=["[v-scope]",...Ft.map(e=>`[v-scope\\.${e}]`)].join(","),Dt=["pointerdown","keydown","focusin"],Kt=(e,n,r,o)=>{const i=Ft.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,n,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=t;if("visible"===n&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==n){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Dt)e.addEventListener(t,o);i=()=>{for(const t of Dt)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),r(e,n,o))});return n.cleanups.push(l),Nt(()=>{s(n.cleanups,l),l()}),!0},qt=/^(?:v-|:|@)/,Ut=/\.([\w-]+)/g,Ht=!1,Jt=(e,t,n)=>{e.cleanups.push(t),Nt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Zt=(e,t)=>{const n=Ht;Ht=e;try{t()}finally{Ht=n}},Gt=(e,t,n)=>Zt(n,()=>Qt(e,t)),Qt=(e,t)=>{const n=At(e);try{return Xt(e,t)}finally{At(n)}},Xt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Yt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=$t(n,"v-if")))return Rt(n,r,t);if(r=$t(n,"v-for"))return Vt(n,r,t);if(Kt(n,t,Gt,Ht))return;$t(n,"v-cloak");const o=$t(n,"v-name");let i;if(r=$t(n,"v-teleport")){const e=nn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ce(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Jt(t,()=>{Tt(n),n.remove()},o)}}if((r=$t(n,"v-scope"))||""===r){const e=(r?at(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=cn(t,e),n.__ctx=t;const s=Ne(n,t.scope,r||void 0,o||void 0);Jt(t,()=>{s(),delete n.__ctx}),e.$template&&sn(n,e.$template)}const c=Ht;null!=$t(n,"v-once")&&(Ht=!0),(r=$t(n,"ref"))&&tn(n,zt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Yt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])qt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):en(n,e,s,t));for(const[e,s]of l)en(n,e,s,t);return Ht=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),tn(e,wt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Yt(e,t)},Yt=(e,t)=>{let n=e.firstChild;for(;n;)n=Qt(n,t)||n.nextSibling},en=(e,t,n,s)=>{let r,i,c;const l=t;if(":"===(t=t.replace(Ut,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=bt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=o(Pt,n)?Pt[n]:o(s.dirs,n)?s.dirs[n]:void 0,i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=zt),tn(e,r,n,s,i,c,l),e.removeAttribute(l))},tn=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ce(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=at(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=At(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{At(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ce(p,{phase:"directive",source:i,el:e,expression:n})}f&&Jt(s,()=>{try{f()}catch(p){Ce(p,{phase:"teardown",source:i,el:e,expression:n})}})},nn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ce(s,{phase:"directive",source:n,el:t,expression:e})}},sn=(e,t)=>{if("#"===t[0]){const n=nn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},rn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ht){const t=()=>Zt(!0,e);return qe(t),t}const n=Ke(C(e,{scheduler:()=>qe(n),lazy:!0}));return t.effects.push(n),Nt(()=>{We(n),s(t.effects,n)}),n(),n}};return t},on=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cn=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),on(r,"$refs",Object.create(s.$refs));const i=he(new Proxy(r,{set:(e,t,n,r)=>r!==i||o(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:i};return on(r,"$watch",Ze(c)),on(r,"$id",Je()),n||ln(i,r),c},ln=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},an=e=>{e.ctx.blocks.forEach(an),e.ctx.effects.splice(0).forEach(We)},un=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=rn(t),Qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Nt(()=>this.discard(),this.el))}remove(){this.parentCtx&&(s(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};an(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(We),this.ctx.cleanups.splice(0).forEach(e=>e())}},fn=he(Object.create(null)),pn=(e,t)=>(void 0!==t&&(fn[e]=t,"function"==typeof fn[e].init&&fn[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,fn[e])),fn[e]),hn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),dn=e=>e&&(e.__r||e.hasAttribute("v-pre")||dn(e.parentElement)),vn=e=>{const t=rn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),ln(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(hn(n)+"([^]+?)"+hn(s),"g")}on(t.scope,"$s",xt),on(t.scope,"$nextTick",De),on(t.scope,"$refs",Object.create(null)),on(t.scope,"$store",fn),on(t.scope,"$watch",Ze(t)),on(t.scope,"$id",Je()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let r=[];const o=[],i=/* @__PURE__ */new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ie.push(n),()=>{const e=Ie.indexOf(n);e>-1&&Ie.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Bt)?[e]:[...e.querySelectorAll(Bt)].filter(e=>!e.matches(`:where(${Bt}) *`)),n.length||(n=[e]),n=n.filter(e=>!dn(e)),t.walk??=Qt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new un(o,t,!0);i.host=n,o.__ctx??=i.ctx,Te.scopes.has(o)||o.matches(Bt)||i.ctx.cleanups.push(Ne(o,i.ctx.scope,void 0,e||void 0)),r.push(i),Nt(()=>(s(r,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return r.forEach(e=>e.teardown()),r=[],t.effects.splice(0).forEach(We),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ce(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const s=[];for(const t of r){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():s.push(t)}r=s}};return a},mn=e=>{const t=C(e,{scheduler:()=>qe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw We(t),n}return()=>We(t)},_n=document.currentScript;_n&&_n.hasAttribute("init")&&vn().mount();export{ge as computed,vn as createApp,Te as devtools,Pe as disableDevtools,De as nextTick,he as reactive,pn as store,mn as watchEffect};
|
|
1
|
+
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,o=(e,t)=>r.call(e,t),i=Array.isArray,c=e=>"[object Date]"===h(e),l=e=>"function"==typeof e,a=e=>"string"==typeof e,u=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,_=/* @__PURE__ */m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),g=/\B([A-Z])/g,y=/* @__PURE__ */m(e=>e.replace(g,"-$1").toLowerCase()),b=(e,t)=>!Object.is(e,t);function w(e){if(i(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?S(s):w(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||f(e))return e}var x,$=/;(?![^(]*\))/g,k=/:([^]+)/,O=/\/\*[^]*?\*\//g;function S(e){const t={};return e.replace(O,"").split($).forEach(e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function E(e){let t="";if(a(e))t=e;else if(i(e))for(let n=0;n<e.length;n++){const s=E(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function L(e,t){if(e===t)return!0;let n=c(e),s=c(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=u(e),s=u(t),n||s)return e===t;if(n=i(e),s=i(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=L(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!L(e[n],t[n]))return!1}}return String(e)===String(t)}function j(e,t){return e.findIndex(e=>L(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var N=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,z();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(T(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),D()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=M,t=x;try{return M=!0,x=this,this._runnings++,P(this),this.fn()}finally{R(this),this._runnings--,x=t,M=e}}stop(){this.active&&(P(this),R(this),this.onStop&&this.onStop(),this.active=!1)}};function T(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function R(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)I(e.deps[t],e);e.deps.length=e._depsLength}}function I(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function C(e,s){e.effect instanceof N&&(e=e.effect.fn);const r=new N(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&A(r,s.scope)),s&&s.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var M=!0,W=0,V=[];function z(){V.push(M),M=!1}function D(){const e=V.pop();M=void 0===e||e}function F(){W++}function B(){for(W--;!W&&q.length;)q.shift()()}function K(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&I(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var q=[];function U(e,t,n){F();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&q.push(s.scheduler)))}B()}var H=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},J=/* @__PURE__ */new WeakMap,Z=Symbol("");function G(e,t,n){if(M&&x){let t=J.get(e);t||J.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=H(()=>t.delete(n))),K(x,s)}}function Q(e,t,n,s,r,o){const c=J.get(e);if(!c)return;let l=[];if("length"===n&&i(e)){const e=Number(s);c.forEach((t,n)=>{("length"===n||!u(n)&&n>=e)&&l.push(t)})}else switch(void 0!==n&&l.push(c.get(n)),t){case"add":i(e)?d(n)&&l.push(c.get("length")):l.push(c.get(Z));break;case"delete":i(e)||l.push(c.get(Z))}F();for(const i of l)i&&U(i,4);B()}var X=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),Y=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(u)),ee=/* @__PURE__ */te();function te(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ve(this);for(let t=0,r=this.length;t<r;t++)G(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ve)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){z(),F();const n=ve(this)[t].apply(this,e);return B(),D(),n}}),e}function ne(e){u(e)||(e=String(e));const t=ve(this);return G(t,0,e),t.hasOwnProperty(e)}var se=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?fe:ue:r?ae:le).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=i(e);if(!s){if(c&&o(ee,t))return Reflect.get(ee,t,n);if("hasOwnProperty"===t)return ne}const l=Reflect.get(e,t,n);return(u(t)?Y.has(t):X(t))?l:(s||G(e,0,t),r?l:be(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return de(e,!0,ce,null,ue)}(l):he(l):l)}},re=class extends se{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=me(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||me(n)||(r=ve(r),n=ve(n)),!i(e)&&be(r)&&!be(n))return!t&&(r.value=n,!0)}const c=i(e)&&d(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===ve(s)&&(c?b(n,r)&&Q(e,"set",t,n):Q(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&Q(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return u(t)&&Y.has(t)||G(e,0,t),n}ownKeys(e){return G(e,0,i(e)?"length":Z),Reflect.ownKeys(e)}},oe=class extends se{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ie=/* @__PURE__ */new re,ce=/* @__PURE__ */new oe,le=/* @__PURE__ */new WeakMap,ae=/* @__PURE__ */new WeakMap,ue=/* @__PURE__ */new WeakMap,fe=/* @__PURE__ */new WeakMap;function pe(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function he(e){return me(e)?e:de(e,!1,ie,null,le)}function de(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=pe(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function me(e){return!(!e||!e.__v_isReadonly)}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}var _e=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new N(()=>e(this._value),()=>ye(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ve(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||ye(e,4),t=e,M&&x&&(t=ve(t),K(x,null!=(n=t.dep)?n:t.dep=H(()=>t.dep=void 0,t instanceof _e?t:void 0))),e.effect._dirtyLevel>=2&&ye(e,2),e._value}set value(e){this._setter(e)}};function ge(e,n,s=!1){let r,o;const i=l(e);return i?(r=e,o=t):(r=e.get,o=e.set),new _e(r,o,i||!o,s)}function ye(e,t=4,n,s){const r=(e=ve(e)).dep;r&&U(r,t)}function be(e){return!(!e||!0!==e.__v_isRef)}var we=/* @__PURE__ */new Map,xe=/* @__PURE__ */new Map,$e=/* @__PURE__ */new Map,ke=/* @__PURE__ */new Map,Oe=/* @__PURE__ */new Set,Se=[],Ee=!1,Le=()=>Ee||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,je={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,"plugin:install":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Ae=(e,...t)=>{je[e].forEach(e=>{try{e(...t)}catch(n){console.error(n)}})},Ne=(e,n,s,r)=>Le()?t:(we.set(e,n),s&&xe.set(e,s),r&&$e.set(e,r),Ae("scope:mount",e,n),()=>{we.delete(e)&&(xe.delete(e),$e.delete(e),Ae("scope:unmount",e))}),Te={scopes:we,exps:xe,names:$e,stores:ke,components:Oe,plugins:Se,getScopeByName(e){for(const[t,n]of $e)if(n===e)return we.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=we.get(t);if(e)return e;t=t.__marker?.parentElement||t.parentElement}},on:(e,t)=>(je[e].add(t),()=>je[e].delete(t)),off(e,t){je[e].delete(t)}},Pe=()=>{Ee=!0,we.clear(),xe.clear(),$e.clear(),ke.clear(),Oe.clear(),Se.length=0;for(const e in je)je[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Te&&delete window.__LITE_VUE__};"undefined"==typeof window||Le()||(window.__LITE_VUE__=Te);var Re,Ie=[],Ce=(e,t)=>{for(const s of[...Ie])try{s(e,t)}catch(n){console.error(e,n)}Ie.length||console.error(e)},Me=/* @__PURE__ */new WeakSet,We=e=>{Me.add(e),e.effect&&function(e){e.effect.stop()}(e)},Ve=!1,ze=0,De=/* @__PURE__ */new Set,Fe=Promise.resolve(),Be=e=>Fe.then(e),Ke=e=>(e.i=ze++,e),qe=e=>{e.i??Ke(e),De.add(e),Ve||(Ve=!0,Be(Ue))},Ue=()=>{const e=/* @__PURE__ */new Map;for(;De.size;)for(const n of[...De].sort((e,t)=>e.i-t.i)){if(De.delete(n),Me.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Ce(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Ce(t,{phase:"effect"})}}Ve=!1,je.flush.size&&!Le()&&Ae("flush")},He=0,Je=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++He}`)},Ze=e=>(t,n,r)=>{const o="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let i,c=!1;const l=e.effect(()=>{const e=o(),t=i;if(i=e,c?b(e,t):r?.immediate){z();try{n(e,t)}finally{D(),i=o()}}c=!0});return()=>{We(l),s(e.effects,l)}},Ge=/^(spellcheck|draggable|translate|form|list|type)$/,Qe=/^(img|video|canvas|source)(width|height)$/,Xe=/^(readonly|novalidate|formnovalidate|allowfullscreen|playsinline)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o={};s&&"class"!==s||"_class"in e||(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),tt(e,s,n,o);else{const t=Object(o);for(const s in n)(s in t?tt:nt)(e,s,n[s],t[s]);for(const s in o)n&&s in n||nt(e,s,null,o[s])}o=et(n),!s&&o?.style&&(o.style=et(o.style)),s||(e.__bound=o)})},et=e=>f(e)?{...st(e)}:e,tt=(e,t,n,s)=>{(n!==s||f(n)||"value"===t)&&nt(e,t,n,s)},nt=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",E(e._class?[e._class,n]:n)||"");else if("style"===t){const{style:t}=e,r=st(n),o=st(s);for(const e in r)ot(t,e,r[e]);for(const e in o)null==r[e]&&ot(t,e,"");"_vod"in e&&(("display"in r||"display"in o)&&(e._vod=t.display),e._vsh&&(t.display="none")),t.cssText||e.removeAttribute("style")}else if(e instanceof SVGElement||!(t in e)||Ge.test(t)||Qe.test(e.localName+t))"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:(Xe.test(t)&&(n=n||""===n?"":null),null!=n?e.setAttribute(t,n):e.removeAttribute(t));else{try{const s=typeof e[t];e[t]=null==n&&"string"==s?"":""===n&&"boolean"==s||n}catch(r){if(null!=n)throw r}null==n&&e.removeAttribute(t),"value"===t&&(e._value=n)}},st=e=>a(e=w(e))?S(e):e||{},rt=/\s*!important$/,ot=(e,t,n)=>{i(n)?n.forEach(n=>ot(e,t,n)):t.startsWith("--")?e.setProperty(t,n):rt.test(n)?e.setProperty(y(t),n.replace(rt,""),"important"):e[t]=n},it=Object.create(null),ct=0,lt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),at=(e,t,n,s)=>ut(e,`return(${t})`,n,s),ut=(e,t,n,s)=>{let r=it[t];r||(++ct>1e3&&(it=Object.create(null),ct=1),r=it[t]=ft(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Ce(o,{phase:"expression",expression:s?.expression??lt(t),source:s?.source,el:s?.el??n,scope:e})}},ft=(e,n,s)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(r){return Ce(r,{phase:"compile",expression:s?.expression??lt(e),source:s?.source,el:s?.el??n}),t}},pt=Object.create(null),ht=0,dt=/^\s*(async\s*)?(\([^)]*?\)|[\w$]+)\s*=>|^\s*(async\s+)?function\b/,mt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,vt=["ctrl","shift","alt","meta"],_t={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>vt.some(n=>e[`${n}Key`]&&!t[n])},gt={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},yt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,bt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;const o=/\bawait\b/.test(n)?"async ":"",i=n.replace(/;\s*$/,"");let c,l=mt.test(n)||dt.test(n)?t(`(e => (${i})(e))`):(e=>{const t=pt[e];if(void 0!==t)return t;++ht>1e3&&(pt=Object.create(null),ht=1);try{return new Function(`return (${e})`),pt[e]=!0}catch{return pt[e]=!1}})(i)?t(`(${o}$event => (${i}))`):t(`(${o}$event => { ${n} })`);if(!l)return;if("mounted"===s||"vue:mounted"===s){let e=!0;return Be(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>l();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=l;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!yt.test(e)||e in gt);l=s=>{if(!r.outside||!(s.composedPath().includes(e)||e._vsh||s.timeStamp<e._vts)){if(n.length&&("key"in s||s.type.startsWith("key"))){const e=y(s.key||"");if(!n.some(t=>t===e||gt[t]===e))return}for(const e in r){const t=_t[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return r.once&&a.removeEventListener(u,l,r),t(s)}}}const a=r?.window?window:r?.document||r?.outside?document:e,u=s;return r?.outside&&(e._vts=performance.now()),a.addEventListener(u,l,{...r,once:!1}),()=>{clearTimeout(c),a.removeEventListener(u,l,r)}},wt=({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.textContent=xt(t())})},xt=e=>null==e?"":i(e)||f(e)&&(e.toString===p||!l(e.toString))?JSON.stringify(e,null,2):String(e),$t=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},kt=e=>"_value"in e?e._value:e.value,Ot=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},St=e=>{e.target.composing=!0},Et=e=>{const t=e.target;t.composing&&(t.composing=!1,Lt(t,"input"))},Lt=(e,t)=>{e.dispatchEvent(new Event(t,{bubbles:!0,cancelable:!0}))},jt=/* @__PURE__ */new WeakMap,At=e=>{const t=Re;return Re=e,t},Nt=(e,t=Re)=>{if(!t)return;const n=jt.get(t);n?n.push(e):jt.set(t,[e])},Tt=e=>{const t=jt.get(e);if(t){jt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Tt(n),n=e}},Pt={bind:Ye,on:bt,show:({el:e,get:t,effect:n})=>{e._vod="none"==e.style.display?"":e.style.display,n(()=>{const n=!t();e._vsh&&!n&&(e._vts=performance.now()),e._vsh=n,e.style.display=n?"none":e._vod})},text:wt,html:({el:e,get:t,effect:n})=>{e.__r=1,n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:a="number"===o,lazy:u,fill:f}=r||{},p=e=>a?(e=>{const t=parseFloat(e);return isNaN(t)?e:t})(e):e,h=[],d=(t,n)=>h.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));let m,v,_=!1;if("SELECT"===e.tagName){const t=e;d("change",m=()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>p(kt(e)));c(t.multiple?e:e[0])}),v=()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=kt(r);if(s)r.selected=i(e)&&j(e,o)>-1;else if(L(kt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)}}else if("checkbox"===o)d("change",m=()=>{const t=n(),s=e.checked;if(i(t)){const n=kt(e),r=j(t,n),o=-1!==r;if(s&&!o)c(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),c(e)}}else c(Ot(e,s))}),v=()=>{const t=n();i(t)?e.checked=j(t,kt(e))>-1:e.checked=L(t,Ot(e,!0))};else if("radio"===o)d("change",m=()=>c(kt(e))),v=()=>{e.checked=L(n(),kt(e))};else{_=!0;const t=e=>p(l?e.trim():e);m=()=>c(t(e.value));let s,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(s),s=setTimeout(c,e,t)},h.push(()=>clearTimeout(s))}}d("compositionstart",St),d("compositionend",Et),d(u?"change":"input",()=>{e.composing||o(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),v=()=>{if(e.composing)return;const s=e.value,r=n()??"";document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)}}if(f){const t=n();null!=t&&""!==t||!e.value||"radio"===o&&!e.checked||m()}const g=s(v);if(!_){const t=new MutationObserver(()=>g());t.observe(e,{attributes:!0,childList:!0,subtree:!0}),h.push(()=>t.disconnect())}return()=>h.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;const o=Ht;return Be(()=>{if(!r)return;const i=At(e);try{Zt(o,()=>s(()=>ut(t.scope,n,e,{source:"v-effect",el:e})))}finally{At(i)}}),()=>{r=!1}}},Rt=(e,t,n)=>{const r=new Comment("v-if");e.before(r);const o=[{exp:t.trim()||"0",el:e}];let i,c;for(;(i=e.nextElementSibling)&&(c=null,""===$t(i,"v-else")||null!=(c=$t(i,"v-else-if")));)i.remove(),o.push({exp:null==c?c:c.trim()||"0",el:i});const l=e.nextSibling;let a;e.remove(),At(r);let u=-1;const f=()=>{var e,t;a&&(r.parentNode||a.el.before(r),e=h,t=a.el,s(jt.get(t)||[],e),a.remove(),a=void 0)};let p;const h=()=>{We(p),s(n.effects,p)};return p=n.effect(()=>{for(let e=0;e<o.length;e++){const{exp:t,el:s}=o[e];if(!t||at(n.scope,t,s,{source:"v-if",el:s})){if(e!==u){f();const t=r.parentNode;a=new un(s,n),a.insert(t,r),Nt(h,a.el),a.el.parentNode===t&&r.remove(),u=e}return}}u=-1,f()}),Nt(h,r),l},It=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ct=/,([^,}\]]*)(?:,([^,}\]]*))?$/,Mt=/^\(|\)$/g,Wt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Vt=(e,t,n)=>{const s=t.match(It);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const c=()=>o.parentNode;At(o);const l=s[2].trim();let u,p,h,d,m=s[1].trim().replace(Mt,"").trim(),v=!1,_="key",g=e.getAttribute(_)||e.getAttribute(_=":key")||e.getAttribute(_="v-bind:key");g&&(e.removeAttribute(_),"key"===_&&(g=JSON.stringify(g))),(d=m.match(Ct))&&(m=m.replace(Ct,"").trim(),p=d[1].trim(),d[2]&&(h=d[2].trim())),(d=m.match(Wt))&&(u=d[1].split(",").map(e=>e.trim()),v="["===m[0]);let y,b,w,x=!1;const $=(t,s,r,o)=>{const i={};u?u.forEach((e,t)=>i[e]=s?.[v?t:e]):i[m]=s,null!=o?(p&&(i[p]=o),h&&(i[h]=r)):p&&(i[p]=r);const c=g?at(Object.setPrototypeOf(i,n.scope),g,e,{source:":key",el:e}):r;return t.set(c,r),{data:i,key:c}},k=(t,s)=>{const r=new un(e,cn(n,t.data,!0)),o=r.template;return o.__ctx??=r.ctx,r.ctx.cleanups.push(()=>delete o.__ctx),r.key=t.key,r.insert(c(),s),r};return n.effect(()=>{const t=at(n.scope,l,e,{source:"v-for",el:e}),s=w;if([b,w]=(t=>{const n=/* @__PURE__ */new Map,s=[];try{if(i(t)||a(t))for(let e=0;e<t.length;e++)s.push($(n,t[e],e));else if("number"==typeof t)for(let e=0;e<t;e++)s.push($(n,e+1,e));else if(f(t)){let e=0;for(const r in t)s.push($(n,t[r],e++,r))}}catch(r){return Ce(r,{phase:"expression",source:"v-for",el:e,expression:l}),[[],/* @__PURE__ */new Map]}return[s,n]})(t),x){for(let r=0;r<y.length;r++){const e=y[r].key;w.has(e)&&s.get(e)===r||y[r].remove()}const e=[];let t,n=b.length;for(;n--;){const r=b[n],i=s.get(r.key);s.delete(r.key);const l=t?t.el:o;let a;if(null==i)a=k(r,l);else{a=y[i],Object.assign(a.ctx.scope,r.data);let e=(a.end||a.el).nextSibling;for(;e?.__leaving;)e=e.nextSibling;i!==n&&e!==l&&a.insert(c(),l)}e[n]=t=a}y=e}else y=b.map(e=>k(e,o)),x=!0}),r},zt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{const r=ve(t);let o;return s(()=>{const s=n();t[s]=e,o&&s!==o&&r[o]===e&&delete t[o],o=s}),()=>{r[o]===e&&delete t[o]}},Dt=["visible","idle","interaction"],Ft=["[v-scope]",...Dt.map(e=>`[v-scope\\.${e}]`)].join(","),Bt=["pointerdown","keydown","focusin"],Kt=(e,n,r,o)=>{const i=Dt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!i)return!1;const c=`v-scope.${i}`,l=((e,n,s)=>{let r=!1;const o=()=>{r||(r=!0,i(),s())};let i=t;if("visible"===n&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{for(const n of e){if(n.isIntersecting)return o();const e=n.target.parentElement;!n.boundingClientRect.width&&e&&t.observe(e)}});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==n){const e=window.requestIdleCallback,t=e?e(o):setTimeout(o);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Bt)e.addEventListener(t,o);i=()=>{for(const t of Bt)e.removeEventListener(t,o)}}return()=>{r=!0,i()}})(e,i,()=>{e.hasAttribute(c)&&(e.setAttribute("v-scope",e.getAttribute(c)),e.removeAttribute(c),r(e,n,o))});return n.cleanups.push(l),Nt(()=>{s(n.cleanups,l),l()}),!0},qt=/^(?:v-|:|@)/,Ut=/\.([\w-]+)/g,Ht=!1,Jt=(e,t,n)=>{e.cleanups.push(t),Nt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())},n)},Zt=(e,t)=>{const n=Ht;Ht=e;try{t()}finally{Ht=n}},Gt=(e,t,n)=>Zt(n,()=>Qt(e,t)),Qt=(e,t)=>{const n=At(e);try{return Xt(e,t)}finally{At(n)}},Xt=(e,t)=>{if(e.__r)return;const n=e.nodeType;if(1===n){const n=e;if(!n.hasAttributes())return Yt(n,t);if(n.hasAttribute("v-pre"))return;let r;if(null!=(r=$t(n,"v-if")))return Rt(n,r,t);if(r=$t(n,"v-for"))return Vt(n,r,t);if(Kt(n,t,Gt,Ht))return;$t(n,"v-cloak");const o=$t(n,"v-name");let i;if(r=$t(n,"v-teleport")){const e=nn(r,n,"v-teleport");if(e){i=n.nextSibling;const o=n.__marker=new Text("");n.before(o);try{e.appendChild(n)}catch(s){Ce(s,{phase:"directive",source:"v-teleport",el:n,expression:r})}Jt(t,()=>{Tt(n),n.remove()},o)}}if((r=$t(n,"v-scope"))||""===r){const e=(r?at(t.scope,r,n,{source:"v-scope",el:n}):{})||{};t=cn(t,e),n.__ctx=t;const s=Ne(n,t.scope,r||void 0,o||void 0);Jt(t,()=>{s(),delete n.__ctx}),e.$template&&sn(n,e.$template)}const c=Ht;null!=$t(n,"v-once")&&(Ht=!0),(r=$t(n,"ref"))&&tn(n,zt,`"${r}"`,t),n.hasAttribute("v-text")||n.hasAttribute("v-html")||Yt(n,t);const l=[];for(const{name:e,value:s}of[...n.attributes])qt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?l.unshift([e,s]):"@"===e[0]||/^v-on\b/.test(e)?l.push([e,s]):en(n,e,s,t));for(const[e,s]of l)en(n,e,s,t);return Ht=c,i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])&&"script"!=e.parentNode?.localName){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),tn(e,wt,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Yt(e,t)},Yt=(e,t)=>{let n=e.firstChild;for(;n;)n=Qt(n,t)||n.nextSibling},en=(e,t,n,s)=>{let r,i,c;const l=t;if(":"===(t=t.replace(Ut,(e,t)=>((c||(c={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=bt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=o(Pt,n)?Pt[n]:o(s.dirs,n)?s.dirs[n]:void 0,i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=zt),tn(e,r,n,s,i,c,l),e.removeAttribute(l))},tn=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c||n},a=t=>Ce(t,{phase:"handler",source:i,el:e,expression:n,scope:s.scope}),u=t=>{const r=at(s.scope,t??n,e,l);return t&&"function"==typeof r?(...t)=>{const n=At(e);try{const e=r(...t);return e instanceof Promise&&e.catch(a),e}catch(s){a(s)}finally{At(n)}}:r};let f;try{f=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(p){return void Ce(p,{phase:"directive",source:i,el:e,expression:n})}f&&Jt(s,()=>{try{f()}catch(p){Ce(p,{phase:"teardown",source:i,el:e,expression:n})}})},nn=(e,t,n)=>{try{return document.querySelector(e)}catch(s){Ce(s,{phase:"directive",source:n,el:t,expression:e})}},sn=(e,t)=>{if("#"===t[0]){const n=nn(t,e,"v-scope");if(!(n instanceof HTMLTemplateElement))return;return void e.appendChild(e.ownerDocument.importNode(n.content,!0))}e.innerHTML=t},rn=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:he({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Ht){const t=()=>Zt(!0,e);return qe(t),t}const n=Ke(C(e,{scheduler:()=>qe(n),lazy:!0}));return t.effects.push(n),Nt(()=>{We(n),s(t.effects,n)}),n(),n}};return t},on=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),cn=(e,t={},n)=>{const s=e.scope,r=Object.create(s);Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)),on(r,"$refs",Object.create(s.$refs));const i=he(new Proxy(r,{set:(e,t,n,r)=>r!==i||o(e,t)?Reflect.set(e,t,n,r):Reflect.set(s,t,n)})),c={...e,scope:i};return on(r,"$watch",Ze(c)),on(r,"$id",Je()),n||ln(i,r),c},ln=(e,t=e)=>{for(const n of Object.keys(t)){const{value:s,writable:r}=Object.getOwnPropertyDescriptor(t,n);"function"==typeof s&&r&&(e[n]=Object.setPrototypeOf(s.bind(e),s))}},an=e=>{e.ctx.blocks.forEach(an),e.ctx.effects.splice(0).forEach(We)},un=class{get el(){return this.start||this.template.__marker||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:e.hasAttribute("v-for")?(this.isFragment=!0,(this.template=new DocumentFragment).append(e.cloneNode(!0))):this.isFragment?this.template=e.ownerDocument.importNode(e.content,!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=rn(t),Qt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else e.insertBefore(this.el,t);this.owned||(this.owned=!0,Nt(()=>this.discard(),this.el))}remove(){this.parentCtx&&(s(this.parentCtx.blocks,this),this.parentCtx=void 0);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),Tt(n),n!==this.end);)n=t}else e.removeChild(this.template),Tt(this.template);this.template.__marker?.remove(),this.teardown()};an(this);const t=[];let n=this.start||this.template;for(;n;){n.__leaving=1;const e=n.__leave;if(e&&t.push(e()),!this.start||n===this.end)break;n=n.nextSibling}t.length?Promise.all(t).then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(We),this.ctx.cleanups.splice(0).forEach(e=>e())}},fn=he(Object.create(null)),pn=(e,t)=>(void 0!==t&&(fn[e]=t,"function"==typeof fn[e].init&&fn[e].init(),((e,t)=>{Le()||(ke.set(e,t),Ae("store:register",e,t))})(e,fn[e])),fn[e]),hn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),dn=e=>e&&(e.__r||e.hasAttribute("v-pre")||dn(e.parentElement)),mn=e=>{const t=rn();if("function"==typeof e&&(e=e()),e&&(t.scope=he(e),ln(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(hn(n)+"([^]+?)"+hn(s),"g")}on(t.scope,"$s",xt),on(t.scope,"$nextTick",Be),on(t.scope,"$refs",Object.create(null)),on(t.scope,"$store",fn),on(t.scope,"$watch",Ze(t)),on(t.scope,"$id",Je()),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let r=[];const o=[],i=/* @__PURE__ */new Set,c=[],l=[],a={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Le()||Oe.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Ie.push(n),()=>{const e=Ie.indexOf(n);e>-1&&Ie.splice(e,1)});var n;return l.push(t),()=>{const e=l.indexOf(t);e>-1&&l.splice(e,1),t()}},use(e,t){if(!i.has(e)){i.add(e);const n="function"==typeof e?e(a,t):e.install(a,t);"function"==typeof n&&c.push(n)}return a},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Ft)?[e]:[...e.querySelectorAll(Ft)].filter(e=>!e.matches(`:where(${Ft}) *`)),n.length||(n=[e]),n=n.filter(e=>!dn(e)),t.walk??=Qt,t.dispose??=Tt;for(const o of n){const e=o.getAttribute("v-name"),n=o.parentNode,i=new un(o,t,!0);i.host=n,o.__ctx??=i.ctx,Te.scopes.has(o)||o.matches(Ft)||i.ctx.cleanups.push(Ne(o,i.ctx.scope,void 0,e||void 0)),r.push(i),Nt(()=>(s(r,i),i.teardown()),o),i.ctx.cleanups.push(()=>delete o.__ctx)}return this},unmount(e){if(null==e)return r.forEach(e=>e.teardown()),r=[],t.effects.splice(0).forEach(We),o.splice(0).forEach(e=>e()),c.splice(0).forEach(e=>{try{e()}catch(t){Ce(t,{phase:"teardown",source:"plugin"})}}),i.clear(),void l.splice(0).forEach(e=>e());const n="string"==typeof e?document.querySelector(e):e;if(!n)return;const s=[];for(const t of r){const e=t.template;n.contains(e)||n.contains(t.host)?t.teardown():s.push(t)}r=s}};return a},vn=e=>{const t=C(e,{scheduler:()=>qe(t),lazy:!0});t.i=1/0;try{t()}catch(n){throw We(t),n}return()=>We(t)},_n=document.currentScript;_n&&_n.hasAttribute("init")&&mn().mount();export{ge as computed,mn as createApp,Te as devtools,Pe as disableDevtools,Be as nextTick,he as reactive,pn as store,vn as watchEffect};
|