delta-comic-core 0.0.1 → 0.0.2

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/bundle.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, hasInjectionContext, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeUnmount, onBeforeUpdate, onDeactivated, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveDynamicComponent, shallowReactive, shallowReadonly, shallowRef, toDisplayString, toRef, toValue, unref, useCssVars, useModel, useTemplateRef, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
2
- import { ceil, debounce, defaultsDeep, entries, fromPairs, isArray, isEmpty, isError, isFunction, isNumber, isString, last, noop, random, remove, uniqBy } from "lodash-es";
3
2
  import { onBeforeRouteLeave, useRoute } from "vue-router";
4
3
  import { NButton, NEmpty, NIcon, NImage, NPopconfirm, NResult, NVirtualList, useThemeVars } from "naive-ui";
5
4
  import { showImagePreview } from "vant";
6
5
  import { defineStore } from "pinia";
7
- import axios, { isAxiosError, isCancel } from "axios";
6
+ import axios, { getAdapter, isAxiosError, isCancel } from "axios";
8
7
  import { AnimatePresence, motion } from "motion-v";
9
8
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), __export = (e) => {
10
9
  let n = {};
@@ -39,11 +38,11 @@ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDes
39
38
  }
40
39
  });
41
40
  function noop$2() {}
42
- var extend = Object.assign, inBrowser = typeof window < "u", isObject$2 = (e) => typeof e == "object" && !!e, isDef$1 = (e) => e != null, isFunction$1 = (e) => typeof e == "function", isPromise = (e) => isObject$2(e) && isFunction$1(e.then) && isFunction$1(e.catch), isNumeric = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
43
- function get(e, n) {
41
+ var extend = Object.assign, inBrowser = typeof window < "u", isObject$3 = (e) => typeof e == "object" && !!e, isDef$1 = (e) => e != null, isFunction$1 = (e) => typeof e == "function", isPromise = (e) => isObject$3(e) && isFunction$1(e.then) && isFunction$1(e.catch), isNumeric = (e) => typeof e == "number" || /^\d+(\.\d+)?$/.test(e), isIOS$1 = () => inBrowser ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
42
+ function get$1(e, n) {
44
43
  let r = n.split("."), i = e;
45
44
  return r.forEach((e) => {
46
- i = isObject$2(i) ? i[e] ?? "" : "";
45
+ i = isObject$3(i) ? i[e] ?? "" : "";
47
46
  }), i;
48
47
  }
49
48
  function pick(e, n, r) {
@@ -93,11 +92,9 @@ function useParent(e) {
93
92
  let n = inject(e, null);
94
93
  if (n) {
95
94
  let e = getCurrentInstance(), { link: r, unlink: a, internalChildren: o } = n;
96
- r(e), onUnmounted(() => a(e));
97
- let s = computed(() => o.indexOf(e));
98
- return {
95
+ return r(e), onUnmounted(() => a(e)), {
99
96
  parent: n,
100
- index: s
97
+ index: computed(() => o.indexOf(e))
101
98
  };
102
99
  }
103
100
  return {
@@ -121,10 +118,7 @@ function sortChildren(e, n, r) {
121
118
  let i = flattenVNodes(e.subTree.children);
122
119
  r.sort((e, n) => findVNodeIndex(i, e.vnode) - findVNodeIndex(i, n.vnode));
123
120
  let a = r.map((e) => e.proxy);
124
- n.sort((e, n) => {
125
- let r = a.indexOf(e), i = a.indexOf(n);
126
- return r - i;
127
- });
121
+ n.sort((e, n) => a.indexOf(e) - a.indexOf(n));
128
122
  }
129
123
  function useChildren(e) {
130
124
  let n = reactive([]), r = reactive([]), i = getCurrentInstance();
@@ -295,10 +289,10 @@ function unitToPx(e) {
295
289
  }
296
290
  return parseFloat(e);
297
291
  }
298
- var camelizeRE$2 = /-(\w)/g, camelize$2 = (e) => e.replace(camelizeRE$2, (e, n) => n.toUpperCase()), kebabCase = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), clamp$1 = (e, n, r) => Math.min(Math.max(e, n), r), { hasOwnProperty } = Object.prototype;
292
+ var camelizeRE$2 = /-(\w)/g, camelize$2 = (e) => e.replace(camelizeRE$2, (e, n) => n.toUpperCase()), kebabCase = (e) => e.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, ""), clamp$3 = (e, n, r) => Math.min(Math.max(e, n), r), { hasOwnProperty } = Object.prototype;
299
293
  function assignKey(e, n, r) {
300
294
  let i = n[r];
301
- isDef$1(i) && (!hasOwnProperty.call(e, r) || !isObject$2(i) ? e[r] = i : e[r] = deepAssign(Object(e[r]), i));
295
+ isDef$1(i) && (!hasOwnProperty.call(e, r) || !isObject$3(i) ? e[r] = i : e[r] = deepAssign(Object(e[r]), i));
302
296
  }
303
297
  function deepAssign(e, n) {
304
298
  return Object.keys(n).forEach((r) => {
@@ -382,7 +376,7 @@ var stdin_default$15 = {
382
376
  function createTranslate(e) {
383
377
  let n = camelize$2(e) + ".";
384
378
  return (e, ...r) => {
385
- let i = stdin_default$14.messages(), a = get(i, n + e) || get(i, e);
379
+ let i = stdin_default$14.messages(), a = get$1(i, n + e) || get$1(i, e);
386
380
  return isFunction$1(a) ? a(...r) : a;
387
381
  };
388
382
  }
@@ -441,18 +435,18 @@ var routeProps = {
441
435
  function route({ to: e, url: n, replace: r, $router: i }) {
442
436
  e && i ? i[r ? "replace" : "push"](e) : n && (r ? location.replace(n) : location.href = n);
443
437
  }
444
- var [name$14, bem$14] = createNamespace("badge"), badgeProps = {
445
- dot: Boolean,
446
- max: numericProp,
447
- tag: makeStringProp("div"),
448
- color: String,
449
- offset: Array,
450
- content: numericProp,
451
- showZero: truthProp,
452
- position: makeStringProp("top-right")
453
- }, stdin_default$13 = defineComponent({
438
+ var [name$14, bem$14] = createNamespace("badge"), Badge = withInstall(defineComponent({
454
439
  name: name$14,
455
- props: badgeProps,
440
+ props: {
441
+ dot: Boolean,
442
+ max: numericProp,
443
+ tag: makeStringProp("div"),
444
+ color: String,
445
+ offset: Array,
446
+ content: numericProp,
447
+ showZero: truthProp,
448
+ position: makeStringProp("top-right")
449
+ },
456
450
  setup(e, { slots: n }) {
457
451
  let r = () => {
458
452
  if (n.content) return !0;
@@ -485,7 +479,7 @@ var [name$14, bem$14] = createNamespace("badge"), badgeProps = {
485
479
  return c();
486
480
  };
487
481
  }
488
- }), Badge = withInstall(stdin_default$13), globalZIndex = 2e3, useGlobalZIndex = () => ++globalZIndex, setGlobalZIndex = (e) => {
482
+ })), globalZIndex = 2e3, useGlobalZIndex = () => ++globalZIndex, setGlobalZIndex = (e) => {
489
483
  globalZIndex = e;
490
484
  }, [name$13, bem$13] = createNamespace("config-provider"), CONFIG_PROVIDER_KEY = Symbol(name$13), configProviderProps = {
491
485
  tag: makeStringProp("div"),
@@ -541,18 +535,18 @@ defineComponent({
541
535
  }, { default: () => [n.default?.call(n)] });
542
536
  }
543
537
  });
544
- var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/"), iconProps = {
545
- dot: Boolean,
546
- tag: makeStringProp("i"),
547
- name: String,
548
- size: numericProp,
549
- badge: numericProp,
550
- color: String,
551
- badgeProps: Object,
552
- classPrefix: String
553
- }, stdin_default$11 = defineComponent({
538
+ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/"), Icon = withInstall(defineComponent({
554
539
  name: name$12,
555
- props: iconProps,
540
+ props: {
541
+ dot: Boolean,
542
+ tag: makeStringProp("i"),
543
+ name: String,
544
+ size: numericProp,
545
+ badge: numericProp,
546
+ color: String,
547
+ badgeProps: Object,
548
+ classPrefix: String
549
+ },
556
550
  setup(e, { slots: n }) {
557
551
  let r = inject(CONFIG_PROVIDER_KEY, null), a = computed(() => e.classPrefix || r?.iconPrefix || bem$12());
558
552
  return () => {
@@ -572,7 +566,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
572
566
  }, null)] });
573
567
  };
574
568
  }
575
- }), Icon = withInstall(stdin_default$11), [name$11, bem$11] = createNamespace("loading"), SpinIcon = Array(12).fill(null).map((e, n) => createVNode("i", { class: bem$11("line", String(n + 1)) }, null)), CircularIcon = createVNode("svg", {
569
+ })), [name$11, bem$11] = createNamespace("loading"), SpinIcon = Array(12).fill(null).map((e, n) => createVNode("i", { class: bem$11("line", String(n + 1)) }, null)), CircularIcon = createVNode("svg", {
576
570
  class: bem$11("circular"),
577
571
  viewBox: "25 25 50 50"
578
572
  }, [createVNode("circle", {
@@ -580,16 +574,16 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
580
574
  cy: "50",
581
575
  r: "20",
582
576
  fill: "none"
583
- }, null)]), loadingProps = {
584
- size: numericProp,
585
- type: makeStringProp("circular"),
586
- color: String,
587
- vertical: Boolean,
588
- textSize: numericProp,
589
- textColor: String
590
- }, stdin_default$10 = defineComponent({
577
+ }, null)]), Loading = withInstall(defineComponent({
591
578
  name: name$11,
592
- props: loadingProps,
579
+ props: {
580
+ size: numericProp,
581
+ type: makeStringProp("circular"),
582
+ color: String,
583
+ vertical: Boolean,
584
+ textSize: numericProp,
585
+ textColor: String
586
+ },
593
587
  setup(e, { slots: n }) {
594
588
  let r = computed(() => extend({ color: e.color }, getSizeStyle(e.size))), a = () => {
595
589
  let i = e.type === "spinner" ? SpinIcon : CircularIcon;
@@ -615,7 +609,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
615
609
  }, [a(), o()]);
616
610
  };
617
611
  }
618
- }), Loading = withInstall(stdin_default$10), popupSharedProps = {
612
+ })), popupSharedProps = {
619
613
  show: Boolean,
620
614
  zIndex: numericProp,
621
615
  overlay: truthProp,
@@ -682,19 +676,19 @@ function useLazyRender(e) {
682
676
  var useScopeId = () => {
683
677
  let { scopeId: e } = getCurrentInstance()?.vnode || {};
684
678
  return e ? { [e]: "" } : null;
685
- }, [name$10, bem$10] = createNamespace("overlay"), overlayProps = {
686
- show: Boolean,
687
- zIndex: numericProp,
688
- duration: numericProp,
689
- className: null,
690
- lockScroll: truthProp,
691
- lazyRender: truthProp,
692
- customStyle: Object,
693
- teleport: [String, Object]
694
- }, stdin_default$9 = defineComponent({
679
+ }, [name$10, bem$10] = createNamespace("overlay"), Overlay = withInstall(defineComponent({
695
680
  name: name$10,
696
681
  inheritAttrs: !1,
697
- props: overlayProps,
682
+ props: {
683
+ show: Boolean,
684
+ zIndex: numericProp,
685
+ duration: numericProp,
686
+ className: null,
687
+ lockScroll: truthProp,
688
+ lazyRender: truthProp,
689
+ customStyle: Object,
690
+ teleport: [String, Object]
691
+ },
698
692
  setup(e, { attrs: i, slots: a }) {
699
693
  let o = ref(), s = useLazyRender(() => e.show || !e.lazyRender), c = (n) => {
700
694
  e.lockScroll && preventDefault(n, !0);
@@ -714,7 +708,7 @@ var useScopeId = () => {
714
708
  return e.teleport ? createVNode(Teleport, { to: e.teleport }, { default: () => [i] }) : i;
715
709
  };
716
710
  }
717
- }), Overlay = withInstall(stdin_default$9), popupProps = extend({}, popupSharedProps, {
711
+ })), popupProps = extend({}, popupSharedProps, {
718
712
  round: Boolean,
719
713
  position: makeStringProp("center"),
720
714
  closeIcon: makeStringProp("cross"),
@@ -726,7 +720,7 @@ var useScopeId = () => {
726
720
  destroyOnClose: Boolean,
727
721
  safeAreaInsetTop: Boolean,
728
722
  safeAreaInsetBottom: Boolean
729
- }), [name$9, bem$9] = createNamespace("popup"), stdin_default$8 = defineComponent({
723
+ }), [name$9, bem$9] = createNamespace("popup"), Popup = withInstall(defineComponent({
730
724
  name: name$9,
731
725
  inheritAttrs: !1,
732
726
  props: popupProps,
@@ -757,18 +751,15 @@ var useScopeId = () => {
757
751
  }, y = (e) => {
758
752
  o("clickOverlay", e), a.closeOnClickOverlay && v();
759
753
  }, b = () => {
760
- if (a.overlay) {
761
- let e = extend({
762
- show: a.show,
763
- class: a.overlayClass,
764
- zIndex: f.value,
765
- duration: a.duration,
766
- customStyle: a.overlayStyle,
767
- role: a.closeOnClickOverlay ? "button" : void 0,
768
- tabindex: a.closeOnClickOverlay ? 0 : void 0
769
- }, a.overlayProps);
770
- return createVNode(Overlay, mergeProps(e, useScopeId(), { onClick: y }), { default: c["overlay-content"] });
771
- }
754
+ if (a.overlay) return createVNode(Overlay, mergeProps(extend({
755
+ show: a.show,
756
+ class: a.overlayClass,
757
+ zIndex: f.value,
758
+ duration: a.duration,
759
+ customStyle: a.overlayStyle,
760
+ role: a.closeOnClickOverlay ? "button" : void 0,
761
+ tabindex: a.closeOnClickOverlay ? 0 : void 0
762
+ }, a.overlayProps), useScopeId(), { onClick: y }), { default: c["overlay-content"] });
772
763
  }, S = (e) => {
773
764
  o("clickCloseIcon", e), v();
774
765
  }, C = () => {
@@ -824,7 +815,7 @@ var useScopeId = () => {
824
815
  a.show && a.teleport && (v(), d = !0);
825
816
  }), provide(POPUP_TOGGLE_KEY, () => a.show), () => a.teleport ? createVNode(Teleport, { to: a.teleport }, { default: () => [b(), V()] }) : createVNode(Fragment, null, [b(), V()]);
826
817
  }
827
- }), Popup = withInstall(stdin_default$8), useSyncPropRef = (e, n) => {
818
+ })), useSyncPropRef = (e, n) => {
828
819
  let r = ref(e());
829
820
  return watch(e, (e) => {
830
821
  e !== r.value && (r.value = e);
@@ -833,7 +824,7 @@ var useScopeId = () => {
833
824
  }), r;
834
825
  };
835
826
  process.env.NODE_ENV === "production" || Object.freeze({}), process.env.NODE_ENV === "production" || Object.freeze([]);
836
- var isArray$1 = Array.isArray, isString$1 = (e) => typeof e == "string", isObject$1 = (e) => typeof e == "object" && !!e, cacheStringFunction$1 = (e) => {
827
+ var isArray$1 = Array.isArray, isString$1 = (e) => typeof e == "string", isObject$2 = (e) => typeof e == "object" && !!e, cacheStringFunction$1 = (e) => {
837
828
  let n = /* @__PURE__ */ Object.create(null);
838
829
  return ((r) => n[r] || (n[r] = e(r)));
839
830
  }, hyphenateRE$1 = /\B([A-Z])/g, hyphenate$1 = cacheStringFunction$1((e) => e.replace(hyphenateRE$1, "-$1").toLowerCase());
@@ -845,7 +836,7 @@ function normalizeStyle$1(e) {
845
836
  if (a) for (let e in a) n[e] = a[e];
846
837
  }
847
838
  return n;
848
- } else if (isString$1(e) || isObject$1(e)) return e;
839
+ } else if (isString$1(e) || isObject$2(e)) return e;
849
840
  }
850
841
  var listDelimiterRE = /;(?![^(]*\))/g, propertyDelimiterRE = /:([^]+)/, styleCommentRE = /\/\*[^]*?\*\//g;
851
842
  function parseStringStyle(e) {
@@ -877,7 +868,7 @@ function normalizeClass$1(e) {
877
868
  let i = normalizeClass$1(e[r]);
878
869
  i && (n += i + " ");
879
870
  }
880
- else if (isObject$1(e)) for (let r in e) e[r] && (n += r + " ");
871
+ else if (isObject$2(e)) for (let r in e) e[r] && (n += r + " ");
881
872
  return n.trim();
882
873
  }
883
874
  function scrollLeftTo(e, n, r) {
@@ -902,8 +893,8 @@ function scrollTopTo(e, n, r, i) {
902
893
  }
903
894
  var current = 0;
904
895
  function useId() {
905
- let e = getCurrentInstance(), { name: n = "unknown" } = e?.type || {};
906
- return process.env.NODE_ENV === "test" ? n : `${n}-${++current}`;
896
+ let { name: e = "unknown" } = getCurrentInstance()?.type || {};
897
+ return process.env.NODE_ENV === "test" ? e : `${e}-${++current}`;
907
898
  }
908
899
  function useRefs() {
909
900
  let e = ref([]), n = [];
@@ -924,15 +915,15 @@ function useVisibilityChange(e, n) {
924
915
  };
925
916
  onDeactivated(a), onBeforeUnmount(a), onMountedOrActivated(i);
926
917
  }
927
- var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
928
- zIndex: numericProp,
929
- position: makeStringProp("top"),
930
- container: Object,
931
- offsetTop: makeNumericProp(0),
932
- offsetBottom: makeNumericProp(0)
933
- }, stdin_default$7 = defineComponent({
918
+ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComponent({
934
919
  name: name$8,
935
- props: stickyProps,
920
+ props: {
921
+ zIndex: numericProp,
922
+ position: makeStringProp("top"),
923
+ container: Object,
924
+ offsetTop: makeNumericProp(0),
925
+ offsetBottom: makeNumericProp(0)
926
+ },
936
927
  emits: ["scroll", "change"],
937
928
  setup(e, { emit: n, slots: r }) {
938
929
  let a = ref(), o = useScrollParent(a), s = reactive({
@@ -990,7 +981,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
990
981
  style: f.value
991
982
  }, [r.default?.call(r)])]);
992
983
  }
993
- }), Sticky = withInstall(stdin_default$7), [name$7, bem$7] = createNamespace("swipe"), swipeProps = {
984
+ })), [name$7, bem$7] = createNamespace("swipe"), swipeProps = {
994
985
  loop: truthProp,
995
986
  width: numericProp,
996
987
  height: numericProp,
@@ -1003,7 +994,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1003
994
  indicatorColor: String,
1004
995
  showIndicators: truthProp,
1005
996
  stopPropagation: truthProp
1006
- }, SWIPE_KEY = Symbol(name$7), stdin_default$6 = defineComponent({
997
+ }, SWIPE_KEY = Symbol(name$7), Swipe = withInstall(defineComponent({
1007
998
  name: name$7,
1008
999
  props: swipeProps,
1009
1000
  emits: [
@@ -1034,12 +1025,12 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1034
1025
  return n;
1035
1026
  }), w = (n) => {
1036
1027
  let { active: r } = s;
1037
- return n ? e.loop ? clamp$1(r + n, -1, p.value) : clamp$1(r + n, 0, v.value) : r;
1028
+ return n ? e.loop ? clamp$3(r + n, -1, p.value) : clamp$3(r + n, 0, v.value) : r;
1038
1029
  }, D = (n, r = 0) => {
1039
1030
  let i = n * m.value;
1040
1031
  e.loop || (i = Math.min(i, -g.value));
1041
1032
  let a = r - i;
1042
- return e.loop || (a = clamp$1(a, g.value, 0)), a;
1033
+ return e.loop || (a = clamp$3(a, g.value, 0)), a;
1043
1034
  }, O = ({ pace: r = 0, offset: i = 0, emitChange: a }) => {
1044
1035
  if (p.value <= 1) return;
1045
1036
  let { active: o } = s, c = w(r), l = D(c, i);
@@ -1089,13 +1080,13 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1089
1080
  }), K();
1090
1081
  };
1091
1082
  isHidden(a) ? nextTick().then(r) : r();
1092
- }, Tc = () => J(s.active), Ec, Dc = (n) => {
1093
- !e.touchable || n.touches.length > 1 || (l.start(n), c = !1, Ec = Date.now(), W(), k());
1094
- }, Oc = (r) => {
1083
+ }, El = () => J(s.active), Dl, Ol = (n) => {
1084
+ !e.touchable || n.touches.length > 1 || (l.start(n), c = !1, Dl = Date.now(), W(), k());
1085
+ }, kl = (r) => {
1095
1086
  e.touchable && s.swiping && (l.move(r), S.value && (!e.loop && (s.active === 0 && h.value > 0 || s.active === p.value - 1 && h.value < 0) || (preventDefault(r, e.stopPropagation), O({ offset: h.value }), c ||= (n("dragStart", { index: b.value }), !0))));
1096
- }, kc = () => {
1087
+ }, Al = () => {
1097
1088
  if (!e.touchable || !s.swiping) return;
1098
- let r = Date.now() - Ec, i = h.value / r;
1089
+ let r = Date.now() - Dl, i = h.value / r;
1099
1090
  if ((Math.abs(i) > .25 || Math.abs(h.value) > m.value / 2) && S.value) {
1100
1091
  let n = e.vertical ? l.offsetY.value : l.offsetX.value, r = 0;
1101
1092
  r = e.loop ? n > 0 ? h.value > 0 ? -1 : 1 : 0 : -Math[h.value > 0 ? "ceil" : "floor"](h.value / m.value), O({
@@ -1104,7 +1095,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1104
1095
  });
1105
1096
  } else h.value && O({ pace: 0 });
1106
1097
  c = !1, s.swiping = !1, n("dragEnd", { index: b.value }), K();
1107
- }, Ac = (n, r = {}) => {
1098
+ }, jl = (n, r = {}) => {
1108
1099
  k(), l.reset(), doubleRaf(() => {
1109
1100
  let i;
1110
1101
  i = e.loop && n === p.value ? s.active === 0 ? 0 : n : n % p.value, r.immediate ? doubleRaf(() => {
@@ -1114,25 +1105,25 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1114
1105
  emitChange: !0
1115
1106
  });
1116
1107
  });
1117
- }, jc = (n, r) => {
1118
- let i = r === b.value, a = i ? { backgroundColor: e.indicatorColor } : void 0;
1108
+ }, Ml = (n, r) => {
1109
+ let i = r === b.value;
1119
1110
  return createVNode("i", {
1120
- style: a,
1111
+ style: i ? { backgroundColor: e.indicatorColor } : void 0,
1121
1112
  class: bem$7("indicator", { active: i })
1122
1113
  }, null);
1123
- }, Mc = () => {
1114
+ }, Nl = () => {
1124
1115
  if (r.indicator) return r.indicator({
1125
1116
  active: b.value,
1126
1117
  total: p.value
1127
1118
  });
1128
- if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(jc)]);
1119
+ if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(Ml)]);
1129
1120
  };
1130
1121
  return useExpose({
1131
1122
  prev: M,
1132
1123
  next: V,
1133
1124
  state: s,
1134
- resize: Tc,
1135
- swipeTo: Ac
1125
+ resize: El,
1126
+ swipeTo: jl
1136
1127
  }), f({
1137
1128
  size: m,
1138
1129
  props: e,
@@ -1143,21 +1134,21 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1143
1134
  windowHeight,
1144
1135
  () => e.width,
1145
1136
  () => e.height
1146
- ], Tc), watch(usePageVisibility(), (e) => {
1137
+ ], El), watch(usePageVisibility(), (e) => {
1147
1138
  e === "visible" ? K() : W();
1148
- }), onMounted(J), onActivated(() => J(s.active)), onPopupReopen(() => J(s.active)), onDeactivated(W), onBeforeUnmount(W), useEventListener("touchmove", Oc, { target: o }), () => createVNode("div", {
1139
+ }), onMounted(J), onActivated(() => J(s.active)), onPopupReopen(() => J(s.active)), onDeactivated(W), onBeforeUnmount(W), useEventListener("touchmove", kl, { target: o }), () => createVNode("div", {
1149
1140
  ref: a,
1150
1141
  class: bem$7()
1151
1142
  }, [createVNode("div", {
1152
1143
  ref: o,
1153
1144
  style: C.value,
1154
1145
  class: bem$7("track", { vertical: e.vertical }),
1155
- onTouchstartPassive: Dc,
1156
- onTouchend: kc,
1157
- onTouchcancel: kc
1158
- }, [r.default?.call(r)]), Mc()]);
1146
+ onTouchstartPassive: Ol,
1147
+ onTouchend: Al,
1148
+ onTouchcancel: Al
1149
+ }, [r.default?.call(r)]), Nl()]);
1159
1150
  }
1160
- }), Swipe = withInstall(stdin_default$6), [name$6, bem$6] = createNamespace("tabs"), stdin_default$5 = defineComponent({
1151
+ })), [name$6, bem$6] = createNamespace("tabs"), stdin_default$5 = defineComponent({
1161
1152
  name: name$6,
1162
1153
  props: {
1163
1154
  count: makeRequiredProp(Number),
@@ -1292,29 +1283,26 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1292
1283
  event: a,
1293
1284
  disabled: s
1294
1285
  });
1295
- }, Tc = (e) => {
1286
+ }, El = (e) => {
1296
1287
  s = e.isFixed, n("scroll", e);
1297
- }, Ec = (e) => {
1288
+ }, Dl = (e) => {
1298
1289
  nextTick(() => {
1299
1290
  W(e), K(!0);
1300
1291
  });
1301
- }, Dc = () => {
1292
+ }, Ol = () => {
1302
1293
  for (let e = 0; e < b.length; e++) {
1303
1294
  let { top: n } = useRect(b[e].$el);
1304
1295
  if (n > M.value) return e === 0 ? 0 : e - 1;
1305
1296
  }
1306
1297
  return b.length - 1;
1307
- }, Oc = () => {
1308
- if (e.scrollspy && !o) {
1309
- let e = Dc();
1310
- H(e);
1311
- }
1312
- }, kc = () => {
1298
+ }, kl = () => {
1299
+ e.scrollspy && !o && H(Ol());
1300
+ }, Al = () => {
1313
1301
  if (e.type === "line" && b.length) return createVNode("div", {
1314
1302
  class: bem$5("line"),
1315
1303
  style: C.lineStyle
1316
1304
  }, null);
1317
- }, Ac = () => {
1305
+ }, jl = () => {
1318
1306
  let { type: n, border: i, sticky: a } = e, o = [createVNode("div", {
1319
1307
  ref: a ? void 0 : p,
1320
1308
  class: [bem$5("wrap"), { [BORDER_TOP_BOTTOM]: n === "line" && i }]
@@ -1330,11 +1318,11 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1330
1318
  }, [
1331
1319
  r["nav-left"]?.call(r),
1332
1320
  b.map((e) => e.renderTitle(J)),
1333
- kc(),
1321
+ Al(),
1334
1322
  r["nav-right"]?.call(r)
1335
1323
  ])]), r["nav-bottom"]?.call(r)];
1336
1324
  return a ? createVNode("div", { ref: p }, [o]) : o;
1337
- }, jc = () => {
1325
+ }, Ml = () => {
1338
1326
  B(), nextTick(() => {
1339
1327
  var e;
1340
1328
  z(!0), (e = m.value?.swipeRef.value) == null || e.resize();
@@ -1345,20 +1333,20 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1345
1333
  e.duration,
1346
1334
  e.lineWidth,
1347
1335
  e.lineHeight
1348
- ], B), watch(windowWidth, jc), watch(() => e.active, (e) => {
1336
+ ], B), watch(windowWidth, Ml), watch(() => e.active, (e) => {
1349
1337
  e !== k.value && W(e);
1350
1338
  }), watch(() => b.length, () => {
1351
1339
  C.inited && (W(e.active), B(), nextTick(() => {
1352
1340
  z(!0);
1353
1341
  }));
1354
1342
  }), useExpose({
1355
- resize: jc,
1356
- scrollTo: Ec
1343
+ resize: Ml,
1344
+ scrollTo: Dl
1357
1345
  }), onActivated(B), onPopupReopen(B), onMountedOrActivated(() => {
1358
1346
  W(e.active, !0), nextTick(() => {
1359
1347
  C.inited = !0, p.value && (a = useRect(p.value).height), z(!0);
1360
1348
  });
1361
- }), useVisibilityChange(d, B), useEventListener("scroll", Oc, {
1349
+ }), useVisibilityChange(d, B), useEventListener("scroll", kl, {
1362
1350
  target: g,
1363
1351
  passive: !0
1364
1352
  }), S({
@@ -1376,8 +1364,8 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1376
1364
  }, [e.showHeader ? e.sticky ? createVNode(Sticky, {
1377
1365
  container: d.value,
1378
1366
  offsetTop: j.value,
1379
- onScroll: Tc
1380
- }, { default: () => [Ac()] }) : Ac() : null, createVNode(stdin_default$5, {
1367
+ onScroll: El
1368
+ }, { default: () => [jl()] }) : jl() : null, createVNode(stdin_default$5, {
1381
1369
  ref: m,
1382
1370
  count: b.length,
1383
1371
  inited: C.inited,
@@ -1441,7 +1429,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1441
1429
  "data-allow-mismatch": "attribute"
1442
1430
  }, [a()]);
1443
1431
  }
1444
- }), [name$3, bem$3] = createNamespace("swipe-item"), stdin_default$4 = defineComponent({
1432
+ }), [name$3, bem$3] = createNamespace("swipe-item"), SwipeItem = withInstall(defineComponent({
1445
1433
  name: name$3,
1446
1434
  setup(e, { slots: n }) {
1447
1435
  let r, a = reactive({
@@ -1474,18 +1462,18 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1474
1462
  style: c.value
1475
1463
  }, [l.value ? n.default?.call(n) : null]);
1476
1464
  }
1477
- }), SwipeItem = withInstall(stdin_default$4), [name$2, bem$2] = createNamespace("tab"), tabProps = extend({}, routeProps, {
1478
- dot: Boolean,
1479
- name: numericProp,
1480
- badge: numericProp,
1481
- title: String,
1482
- disabled: Boolean,
1483
- titleClass: null,
1484
- titleStyle: [String, Object],
1485
- showZeroBadge: truthProp
1486
- }), stdin_default$3 = defineComponent({
1465
+ })), [name$2, bem$2] = createNamespace("tab"), Tab = withInstall(defineComponent({
1487
1466
  name: name$2,
1488
- props: tabProps,
1467
+ props: extend({}, routeProps, {
1468
+ dot: Boolean,
1469
+ name: numericProp,
1470
+ badge: numericProp,
1471
+ title: String,
1472
+ disabled: Boolean,
1473
+ titleClass: null,
1474
+ titleStyle: [String, Object],
1475
+ showZeroBadge: truthProp
1476
+ }),
1489
1477
  setup(e, { slots: n }) {
1490
1478
  let r = useId(), a = ref(!1), o = getCurrentInstance(), { parent: s, index: c } = useParent(TABS_KEY);
1491
1479
  if (!s) {
@@ -1560,14 +1548,14 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1560
1548
  }, [m]), [[vShow, p]]);
1561
1549
  };
1562
1550
  }
1563
- }), Tab = withInstall(stdin_default$3), Tabs = withInstall(stdin_default$2), floatingPanelProps = {
1551
+ })), Tabs = withInstall(stdin_default$2), floatingPanelProps = {
1564
1552
  height: makeNumericProp(0),
1565
1553
  anchors: makeArrayProp(),
1566
1554
  duration: makeNumericProp(.3),
1567
1555
  contentDraggable: truthProp,
1568
1556
  lockScroll: Boolean,
1569
1557
  safeAreaInsetBottom: truthProp
1570
- }, [name$1, bem$1] = createNamespace("floating-panel"), stdin_default$1 = defineComponent({
1558
+ }, [name$1, bem$1] = createNamespace("floating-panel"), FloatingPanel = withInstall(defineComponent({
1571
1559
  name: name$1,
1572
1560
  props: floatingPanelProps,
1573
1561
  emits: ["heightChange", "update:height"],
@@ -1593,8 +1581,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1593
1581
  if (-h < l.value.max) preventDefault(n, !0);
1594
1582
  else if (!(r <= 0 && v.deltaY.value > 0) || g > 0) return;
1595
1583
  }
1596
- let i = v.deltaY.value + h;
1597
- c.value = -m(i);
1584
+ c.value = -m(v.deltaY.value + h);
1598
1585
  }, S = () => {
1599
1586
  g = -1, f.value = !1, c.value = closest(d.value, c.value), c.value !== -h && n("heightChange", { height: c.value });
1600
1587
  };
@@ -1614,24 +1601,24 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1614
1601
  ref: s
1615
1602
  }, [r.default?.call(r)])]);
1616
1603
  }
1617
- }), FloatingPanel = withInstall(stdin_default$1), [name, bem, t] = createNamespace("pull-refresh"), TEXT_STATUS = [
1604
+ })), [name, bem, t] = createNamespace("pull-refresh"), DEFAULT_HEAD_HEIGHT = 50, TEXT_STATUS = [
1618
1605
  "pulling",
1619
1606
  "loosing",
1620
1607
  "success"
1621
- ], pullRefreshProps = {
1622
- disabled: Boolean,
1623
- modelValue: Boolean,
1624
- headHeight: makeNumericProp(50),
1625
- successText: String,
1626
- pullingText: String,
1627
- loosingText: String,
1628
- loadingText: String,
1629
- pullDistance: numericProp,
1630
- successDuration: makeNumericProp(500),
1631
- animationDuration: makeNumericProp(300)
1632
- }, stdin_default = defineComponent({
1608
+ ], PullRefresh = withInstall(defineComponent({
1633
1609
  name,
1634
- props: pullRefreshProps,
1610
+ props: {
1611
+ disabled: Boolean,
1612
+ modelValue: Boolean,
1613
+ headHeight: makeNumericProp(DEFAULT_HEAD_HEIGHT),
1614
+ successText: String,
1615
+ pullingText: String,
1616
+ loosingText: String,
1617
+ loadingText: String,
1618
+ pullDistance: numericProp,
1619
+ successDuration: makeNumericProp(500),
1620
+ animationDuration: makeNumericProp(300)
1621
+ },
1635
1622
  emits: [
1636
1623
  "change",
1637
1624
  "refresh",
@@ -1643,7 +1630,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1643
1630
  distance: 0,
1644
1631
  duration: 0
1645
1632
  }), l = useTouch(), d = () => {
1646
- if (e.headHeight !== 50) return { height: `${e.headHeight}px` };
1633
+ if (e.headHeight !== DEFAULT_HEAD_HEIGHT) return { height: `${e.headHeight}px` };
1647
1634
  }, f = () => c.status !== "loading" && c.status !== "success" && !e.disabled, p = (n) => {
1648
1635
  let r = +(e.pullDistance || e.headHeight);
1649
1636
  return n > r && (n = n < r * 2 ? r + (n - r) / 2 : r * 1.5 + (n - r * 2) / 4), Math.round(n);
@@ -1701,7 +1688,506 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1701
1688
  }, [g()]), r.default?.call(r)])]);
1702
1689
  };
1703
1690
  }
1704
- }), PullRefresh = withInstall(stdin_default), loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
1691
+ }));
1692
+ function toArray$1(e) {
1693
+ return Array.isArray(e) ? e : Array.from(e);
1694
+ }
1695
+ function isLength(e) {
1696
+ return Number.isSafeInteger(e) && e >= 0;
1697
+ }
1698
+ function isArrayLike(e) {
1699
+ return e != null && typeof e != "function" && isLength(e.length);
1700
+ }
1701
+ function identity$1(e) {
1702
+ return e;
1703
+ }
1704
+ function isUnsafeProperty(e) {
1705
+ return e === "__proto__";
1706
+ }
1707
+ function isDeepKey(e) {
1708
+ switch (typeof e) {
1709
+ case "number":
1710
+ case "symbol": return !1;
1711
+ case "string": return e.includes(".") || e.includes("[") || e.includes("]");
1712
+ }
1713
+ }
1714
+ function toKey(e) {
1715
+ return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
1716
+ }
1717
+ function toString$1(e) {
1718
+ if (e == null) return "";
1719
+ if (typeof e == "string") return e;
1720
+ if (Array.isArray(e)) return e.map(toString$1).join(",");
1721
+ let n = String(e);
1722
+ return n === "0" && Object.is(Number(e), -0) ? "-0" : n;
1723
+ }
1724
+ function toPath(e) {
1725
+ if (Array.isArray(e)) return e.map(toKey);
1726
+ if (typeof e == "symbol") return [e];
1727
+ e = toString$1(e);
1728
+ let n = [], r = e.length;
1729
+ if (r === 0) return n;
1730
+ let i = 0, a = "", o = "", s = !1;
1731
+ for (e.charCodeAt(0) === 46 && (n.push(""), i++); i < r;) {
1732
+ let c = e[i];
1733
+ o ? c === "\\" && i + 1 < r ? (i++, a += e[i]) : c === o ? o = "" : a += c : s ? c === "\"" || c === "'" ? o = c : c === "]" ? (s = !1, n.push(a), a = "") : a += c : c === "[" ? (s = !0, a &&= (n.push(a), "")) : c === "." ? a &&= (n.push(a), "") : a += c, i++;
1734
+ }
1735
+ return a && n.push(a), n;
1736
+ }
1737
+ function get(e, n, r) {
1738
+ if (e == null) return r;
1739
+ switch (typeof n) {
1740
+ case "string": {
1741
+ if (isUnsafeProperty(n)) return r;
1742
+ let i = e[n];
1743
+ return i === void 0 ? isDeepKey(n) ? get(e, toPath(n), r) : r : i;
1744
+ }
1745
+ case "number":
1746
+ case "symbol": {
1747
+ typeof n == "number" && (n = toKey(n));
1748
+ let i = e[n];
1749
+ return i === void 0 ? r : i;
1750
+ }
1751
+ default: {
1752
+ if (Array.isArray(n)) return getWithPath(e, n, r);
1753
+ if (n = Object.is(n?.valueOf(), -0) ? "-0" : String(n), isUnsafeProperty(n)) return r;
1754
+ let i = e[n];
1755
+ return i === void 0 ? r : i;
1756
+ }
1757
+ }
1758
+ }
1759
+ function getWithPath(e, n, r) {
1760
+ if (n.length === 0) return r;
1761
+ let i = e;
1762
+ for (let e = 0; e < n.length; e++) {
1763
+ if (i == null || isUnsafeProperty(n[e])) return r;
1764
+ i = i[n[e]];
1765
+ }
1766
+ return i === void 0 ? r : i;
1767
+ }
1768
+ function property(e) {
1769
+ return function(n) {
1770
+ return get(n, e);
1771
+ };
1772
+ }
1773
+ function isObject$1(e) {
1774
+ return e !== null && (typeof e == "object" || typeof e == "function");
1775
+ }
1776
+ function isPrimitive(e) {
1777
+ return e == null || typeof e != "object" && typeof e != "function";
1778
+ }
1779
+ function eq(e, n) {
1780
+ return e === n || Number.isNaN(e) && Number.isNaN(n);
1781
+ }
1782
+ function isMatchWith(e, n, r) {
1783
+ return typeof r == "function" ? isMatchWithInternal(e, n, function e(n, i, a, o, s, c) {
1784
+ let l = r(n, i, a, o, s, c);
1785
+ return l === void 0 ? isMatchWithInternal(n, i, e, c) : !!l;
1786
+ }, /* @__PURE__ */ new Map()) : isMatch(e, n);
1787
+ }
1788
+ function isMatchWithInternal(e, n, r, i) {
1789
+ if (n === e) return !0;
1790
+ switch (typeof n) {
1791
+ case "object": return isObjectMatch(e, n, r, i);
1792
+ case "function": return Object.keys(n).length > 0 ? isMatchWithInternal(e, { ...n }, r, i) : eq(e, n);
1793
+ default: return isObject$1(e) ? typeof n == "string" ? n === "" : !0 : eq(e, n);
1794
+ }
1795
+ }
1796
+ function isObjectMatch(e, n, r, i) {
1797
+ if (n == null) return !0;
1798
+ if (Array.isArray(n)) return isArrayMatch(e, n, r, i);
1799
+ if (n instanceof Map) return isMapMatch(e, n, r, i);
1800
+ if (n instanceof Set) return isSetMatch(e, n, r, i);
1801
+ let a = Object.keys(n);
1802
+ if (e == null) return a.length === 0;
1803
+ if (a.length === 0) return !0;
1804
+ if (i && i.has(n)) return i.get(n) === e;
1805
+ i && i.set(n, e);
1806
+ try {
1807
+ for (let o = 0; o < a.length; o++) {
1808
+ let s = a[o];
1809
+ if (!isPrimitive(e) && !(s in e) || n[s] === void 0 && e[s] !== void 0 || n[s] === null && e[s] !== null || !r(e[s], n[s], s, e, n, i)) return !1;
1810
+ }
1811
+ return !0;
1812
+ } finally {
1813
+ i && i.delete(n);
1814
+ }
1815
+ }
1816
+ function isMapMatch(e, n, r, i) {
1817
+ if (n.size === 0) return !0;
1818
+ if (!(e instanceof Map)) return !1;
1819
+ for (let [a, o] of n.entries()) if (r(e.get(a), o, a, e, n, i) === !1) return !1;
1820
+ return !0;
1821
+ }
1822
+ function isArrayMatch(e, n, r, i) {
1823
+ if (n.length === 0) return !0;
1824
+ if (!Array.isArray(e)) return !1;
1825
+ let a = /* @__PURE__ */ new Set();
1826
+ for (let o = 0; o < n.length; o++) {
1827
+ let s = n[o], c = !1;
1828
+ for (let l = 0; l < e.length; l++) {
1829
+ if (a.has(l)) continue;
1830
+ let u = e[l], d = !1;
1831
+ if (r(u, s, o, e, n, i) && (d = !0), d) {
1832
+ a.add(l), c = !0;
1833
+ break;
1834
+ }
1835
+ }
1836
+ if (!c) return !1;
1837
+ }
1838
+ return !0;
1839
+ }
1840
+ function isSetMatch(e, n, r, i) {
1841
+ return n.size === 0 ? !0 : e instanceof Set ? isArrayMatch([...e], [...n], r, i) : !1;
1842
+ }
1843
+ function isMatch(e, n) {
1844
+ return isMatchWith(e, n, () => void 0);
1845
+ }
1846
+ function getSymbols(e) {
1847
+ return Object.getOwnPropertySymbols(e).filter((n) => Object.prototype.propertyIsEnumerable.call(e, n));
1848
+ }
1849
+ function getTag(e) {
1850
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
1851
+ }
1852
+ var regexpTag = "[object RegExp]", stringTag = "[object String]", numberTag = "[object Number]", booleanTag = "[object Boolean]", argumentsTag = "[object Arguments]", symbolTag = "[object Symbol]", dateTag = "[object Date]", mapTag = "[object Map]", setTag = "[object Set]", arrayTag = "[object Array]", arrayBufferTag = "[object ArrayBuffer]", objectTag = "[object Object]", dataViewTag = "[object DataView]", uint8ArrayTag = "[object Uint8Array]", uint8ClampedArrayTag = "[object Uint8ClampedArray]", uint16ArrayTag = "[object Uint16Array]", uint32ArrayTag = "[object Uint32Array]", int8ArrayTag = "[object Int8Array]", int16ArrayTag = "[object Int16Array]", int32ArrayTag = "[object Int32Array]", float32ArrayTag = "[object Float32Array]", float64ArrayTag = "[object Float64Array]";
1853
+ function isTypedArray$1(e) {
1854
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
1855
+ }
1856
+ function cloneDeepWith$1(e, n) {
1857
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), n);
1858
+ }
1859
+ function cloneDeepWithImpl(e, n, r, i = /* @__PURE__ */ new Map(), a = void 0) {
1860
+ let o = a?.(e, n, r, i);
1861
+ if (o !== void 0) return o;
1862
+ if (isPrimitive(e)) return e;
1863
+ if (i.has(e)) return i.get(e);
1864
+ if (Array.isArray(e)) {
1865
+ let n = Array(e.length);
1866
+ i.set(e, n);
1867
+ for (let o = 0; o < e.length; o++) n[o] = cloneDeepWithImpl(e[o], o, r, i, a);
1868
+ return Object.hasOwn(e, "index") && (n.index = e.index), Object.hasOwn(e, "input") && (n.input = e.input), n;
1869
+ }
1870
+ if (e instanceof Date) return new Date(e.getTime());
1871
+ if (e instanceof RegExp) {
1872
+ let n = new RegExp(e.source, e.flags);
1873
+ return n.lastIndex = e.lastIndex, n;
1874
+ }
1875
+ if (e instanceof Map) {
1876
+ let n = /* @__PURE__ */ new Map();
1877
+ i.set(e, n);
1878
+ for (let [o, s] of e) n.set(o, cloneDeepWithImpl(s, o, r, i, a));
1879
+ return n;
1880
+ }
1881
+ if (e instanceof Set) {
1882
+ let n = /* @__PURE__ */ new Set();
1883
+ i.set(e, n);
1884
+ for (let o of e) n.add(cloneDeepWithImpl(o, void 0, r, i, a));
1885
+ return n;
1886
+ }
1887
+ if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray();
1888
+ if (isTypedArray$1(e)) {
1889
+ let n = new (Object.getPrototypeOf(e)).constructor(e.length);
1890
+ i.set(e, n);
1891
+ for (let o = 0; o < e.length; o++) n[o] = cloneDeepWithImpl(e[o], o, r, i, a);
1892
+ return n;
1893
+ }
1894
+ if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
1895
+ if (e instanceof DataView) {
1896
+ let n = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
1897
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1898
+ }
1899
+ if (typeof File < "u" && e instanceof File) {
1900
+ let n = new File([e], e.name, { type: e.type });
1901
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1902
+ }
1903
+ if (typeof Blob < "u" && e instanceof Blob) {
1904
+ let n = new Blob([e], { type: e.type });
1905
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1906
+ }
1907
+ if (e instanceof Error) {
1908
+ let n = new e.constructor();
1909
+ return i.set(e, n), n.message = e.message, n.name = e.name, n.stack = e.stack, n.cause = e.cause, copyProperties(n, e, r, i, a), n;
1910
+ }
1911
+ if (e instanceof Boolean) {
1912
+ let n = new Boolean(e.valueOf());
1913
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1914
+ }
1915
+ if (e instanceof Number) {
1916
+ let n = new Number(e.valueOf());
1917
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1918
+ }
1919
+ if (e instanceof String) {
1920
+ let n = new String(e.valueOf());
1921
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1922
+ }
1923
+ if (typeof e == "object" && isCloneableObject(e)) {
1924
+ let n = Object.create(Object.getPrototypeOf(e));
1925
+ return i.set(e, n), copyProperties(n, e, r, i, a), n;
1926
+ }
1927
+ return e;
1928
+ }
1929
+ function copyProperties(e, n, r = e, i, a) {
1930
+ let o = [...Object.keys(n), ...getSymbols(n)];
1931
+ for (let s = 0; s < o.length; s++) {
1932
+ let c = o[s], l = Object.getOwnPropertyDescriptor(e, c);
1933
+ (l == null || l.writable) && (e[c] = cloneDeepWithImpl(n[c], c, r, i, a));
1934
+ }
1935
+ }
1936
+ function isCloneableObject(e) {
1937
+ switch (getTag(e)) {
1938
+ case argumentsTag:
1939
+ case arrayTag:
1940
+ case arrayBufferTag:
1941
+ case dataViewTag:
1942
+ case booleanTag:
1943
+ case dateTag:
1944
+ case float32ArrayTag:
1945
+ case float64ArrayTag:
1946
+ case int8ArrayTag:
1947
+ case int16ArrayTag:
1948
+ case int32ArrayTag:
1949
+ case mapTag:
1950
+ case numberTag:
1951
+ case objectTag:
1952
+ case regexpTag:
1953
+ case setTag:
1954
+ case stringTag:
1955
+ case symbolTag:
1956
+ case uint8ArrayTag:
1957
+ case uint8ClampedArrayTag:
1958
+ case uint16ArrayTag:
1959
+ case uint32ArrayTag: return !0;
1960
+ default: return !1;
1961
+ }
1962
+ }
1963
+ function cloneDeep$1(e) {
1964
+ return cloneDeepWithImpl(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
1965
+ }
1966
+ function matches(e) {
1967
+ return e = cloneDeep$1(e), (n) => isMatch(n, e);
1968
+ }
1969
+ function cloneDeepWith(e, n) {
1970
+ return cloneDeepWith$1(e, (r, i, a, o) => {
1971
+ let s = n?.(r, i, a, o);
1972
+ if (s !== void 0) return s;
1973
+ if (typeof e == "object") switch (Object.prototype.toString.call(e)) {
1974
+ case numberTag:
1975
+ case stringTag:
1976
+ case booleanTag: {
1977
+ let n = new e.constructor(e?.valueOf());
1978
+ return copyProperties(n, e), n;
1979
+ }
1980
+ case argumentsTag: {
1981
+ let n = {};
1982
+ return copyProperties(n, e), n.length = e.length, n[Symbol.iterator] = e[Symbol.iterator], n;
1983
+ }
1984
+ default: return;
1985
+ }
1986
+ });
1987
+ }
1988
+ function cloneDeep(e) {
1989
+ return cloneDeepWith(e);
1990
+ }
1991
+ var IS_UNSIGNED_INTEGER = /^(?:0|[1-9]\d*)$/;
1992
+ function isIndex(e, n = 2 ** 53 - 1) {
1993
+ switch (typeof e) {
1994
+ case "number": return Number.isInteger(e) && e >= 0 && e < n;
1995
+ case "symbol": return !1;
1996
+ case "string": return IS_UNSIGNED_INTEGER.test(e);
1997
+ }
1998
+ }
1999
+ function isArguments(e) {
2000
+ return typeof e == "object" && !!e && getTag(e) === "[object Arguments]";
2001
+ }
2002
+ function has(e, n) {
2003
+ let r;
2004
+ if (r = Array.isArray(n) ? n : typeof n == "string" && isDeepKey(n) && e?.[n] == null ? toPath(n) : [n], r.length === 0) return !1;
2005
+ let i = e;
2006
+ for (let e = 0; e < r.length; e++) {
2007
+ let n = r[e];
2008
+ if ((i == null || !Object.hasOwn(i, n)) && !((Array.isArray(i) || isArguments(i)) && isIndex(n) && n < i.length)) return !1;
2009
+ i = i[n];
2010
+ }
2011
+ return !0;
2012
+ }
2013
+ function matchesProperty(e, n) {
2014
+ switch (typeof e) {
2015
+ case "object":
2016
+ Object.is(e?.valueOf(), -0) && (e = "-0");
2017
+ break;
2018
+ case "number":
2019
+ e = toKey(e);
2020
+ break;
2021
+ }
2022
+ return n = cloneDeep(n), function(r) {
2023
+ let i = get(r, e);
2024
+ return i === void 0 ? has(r, e) : n === void 0 ? i === void 0 : isMatch(i, n);
2025
+ };
2026
+ }
2027
+ function iteratee(e) {
2028
+ if (e == null) return identity$1;
2029
+ switch (typeof e) {
2030
+ case "function": return e;
2031
+ case "object": return Array.isArray(e) && e.length === 2 ? matchesProperty(e[0], e[1]) : matches(e);
2032
+ case "string":
2033
+ case "symbol":
2034
+ case "number": return property(e);
2035
+ }
2036
+ }
2037
+ function isObjectLike(e) {
2038
+ return typeof e == "object" && !!e;
2039
+ }
2040
+ function isArrayLikeObject(e) {
2041
+ return isObjectLike(e) && isArrayLike(e);
2042
+ }
2043
+ function last$1(e) {
2044
+ return e[e.length - 1];
2045
+ }
2046
+ function last(e) {
2047
+ if (isArrayLike(e)) return last$1(toArray$1(e));
2048
+ }
2049
+ function isString(e) {
2050
+ return typeof e == "string" || e instanceof String;
2051
+ }
2052
+ function isArray(e) {
2053
+ return Array.isArray(e);
2054
+ }
2055
+ function remove$1(e, n) {
2056
+ let r = e.slice(), i = [], a = 0;
2057
+ for (let o = 0; o < e.length; o++) {
2058
+ if (n(e[o], o, r)) {
2059
+ i.push(e[o]);
2060
+ continue;
2061
+ }
2062
+ if (!Object.hasOwn(e, o)) {
2063
+ delete e[a++];
2064
+ continue;
2065
+ }
2066
+ e[a++] = e[o];
2067
+ }
2068
+ return e.length = a, i;
2069
+ }
2070
+ function remove(e, n = identity$1) {
2071
+ return remove$1(e, iteratee(n));
2072
+ }
2073
+ function random$1(e, n) {
2074
+ if (n ?? (n = e, e = 0), e >= n) throw Error("Invalid input: The maximum value must be greater than the minimum value.");
2075
+ return Math.random() * (n - e) + e;
2076
+ }
2077
+ function randomInt(e, n) {
2078
+ return Math.floor(random$1(e, n));
2079
+ }
2080
+ function clamp$2(e, n, r) {
2081
+ return r == null ? Math.min(e, n) : Math.min(Math.max(e, n), r);
2082
+ }
2083
+ function clamp$1(e, n, r) {
2084
+ return Number.isNaN(n) && (n = 0), Number.isNaN(r) && (r = 0), clamp$2(e, n, r);
2085
+ }
2086
+ function isNumber(e) {
2087
+ return typeof e == "number" || e instanceof Number;
2088
+ }
2089
+ function uniqBy$1(e, n) {
2090
+ let r = /* @__PURE__ */ new Map();
2091
+ for (let i = 0; i < e.length; i++) {
2092
+ let a = e[i], o = n(a);
2093
+ r.has(o) || r.set(o, a);
2094
+ }
2095
+ return Array.from(r.values());
2096
+ }
2097
+ function uniqBy(e, n = identity$1) {
2098
+ return isArrayLikeObject(e) ? uniqBy$1(Array.from(e), iteratee(n)) : [];
2099
+ }
2100
+ function debounce$1(e, n, { signal: r, edges: i } = {}) {
2101
+ let a, o = null, s = i != null && i.includes("leading"), c = i == null || i.includes("trailing"), l = () => {
2102
+ o !== null && (e.apply(a, o), a = void 0, o = null);
2103
+ }, u = () => {
2104
+ c && l(), m();
2105
+ }, d = null, f = () => {
2106
+ d != null && clearTimeout(d), d = setTimeout(() => {
2107
+ d = null, u();
2108
+ }, n);
2109
+ }, p = () => {
2110
+ d !== null && (clearTimeout(d), d = null);
2111
+ }, m = () => {
2112
+ p(), a = void 0, o = null;
2113
+ }, h = () => {
2114
+ l();
2115
+ }, g = function(...e) {
2116
+ if (r?.aborted) return;
2117
+ a = this, o = e;
2118
+ let n = d == null;
2119
+ f(), s && n && l();
2120
+ };
2121
+ return g.schedule = f, g.cancel = m, g.flush = h, r?.addEventListener("abort", m, { once: !0 }), g;
2122
+ }
2123
+ function debounce(e, n = 0, r = {}) {
2124
+ typeof r != "object" && (r = {});
2125
+ let { leading: i = !1, trailing: a = !0, maxWait: o } = r, s = [, ,];
2126
+ i && (s[0] = "leading"), a && (s[1] = "trailing");
2127
+ let c, l = null, u = debounce$1(function(...n) {
2128
+ c = e.apply(this, n), l = null;
2129
+ }, n, { edges: s }), d = function(...n) {
2130
+ return o != null && (l === null && (l = Date.now()), Date.now() - l >= o) ? (c = e.apply(this, n), l = Date.now(), u.cancel(), u.schedule(), c) : (u.apply(this, n), c);
2131
+ };
2132
+ return d.cancel = u.cancel, d.flush = () => (u.flush(), c), d;
2133
+ }
2134
+ function decimalAdjust(e, n, r = 0) {
2135
+ if (n = Number(n), Object.is(n, -0) && (n = "-0"), r = Math.min(Number.parseInt(r, 10), 292), r) {
2136
+ let [i, a = 0] = n.toString().split("e"), o = Math[e](Number(`${i}e${Number(a) + r}`));
2137
+ Object.is(o, -0) && (o = "-0");
2138
+ let [s, c = 0] = o.toString().split("e");
2139
+ return Number(`${s}e${Number(c) - r}`);
2140
+ }
2141
+ return Math[e](Number(n));
2142
+ }
2143
+ function ceil(e, n = 0) {
2144
+ return decimalAdjust("ceil", e, n);
2145
+ }
2146
+ function random(...e) {
2147
+ let n = 0, r = 1, i = !1;
2148
+ switch (e.length) {
2149
+ case 1:
2150
+ typeof e[0] == "boolean" ? i = e[0] : r = e[0];
2151
+ break;
2152
+ case 2: typeof e[1] == "boolean" ? (r = e[0], i = e[1]) : (n = e[0], r = e[1]);
2153
+ case 3: typeof e[2] == "object" && e[2] != null && e[2][e[1]] === e[0] ? (n = 0, r = e[0], i = !1) : (n = e[0], r = e[1], i = e[2]);
2154
+ }
2155
+ return typeof n != "number" && (n = Number(n)), typeof r != "number" && (n = Number(r)), n ||= 0, r ||= 0, n > r && ([n, r] = [r, n]), n = clamp$1(n, -(2 ** 53 - 1), 2 ** 53 - 1), r = clamp$1(r, -(2 ** 53 - 1), 2 ** 53 - 1), n === r ? n : i ? random$1(n, r + 1) : randomInt(n, r + 1);
2156
+ }
2157
+ function noop$1(...e) {}
2158
+ function isPrototype(e) {
2159
+ let n = e?.constructor;
2160
+ return e === (typeof n == "function" ? n.prototype : Object.prototype);
2161
+ }
2162
+ function isTypedArray(e) {
2163
+ return isTypedArray$1(e);
2164
+ }
2165
+ function fromPairs(e) {
2166
+ if (!isArrayLike(e)) return {};
2167
+ let n = {};
2168
+ for (let r = 0; r < e.length; r++) {
2169
+ let [i, a] = e[r];
2170
+ n[i] = a;
2171
+ }
2172
+ return n;
2173
+ }
2174
+ function isFunction(e) {
2175
+ return typeof e == "function";
2176
+ }
2177
+ function isEmpty(e) {
2178
+ if (e == null) return !0;
2179
+ if (isArrayLike(e)) return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !isTypedArray(e) && !isArguments(e) ? !1 : e.length === 0;
2180
+ if (typeof e == "object") {
2181
+ if (e instanceof Map || e instanceof Set) return e.size === 0;
2182
+ let n = Object.keys(e);
2183
+ return isPrototype(e) ? n.filter((e) => e !== "constructor").length === 0 : n.length === 0;
2184
+ }
2185
+ return !0;
2186
+ }
2187
+ function isError(e) {
2188
+ return getTag(e) === "[object Error]";
2189
+ }
2190
+ var loading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
1705
2191
  __name: "loading",
1706
2192
  props: {
1707
2193
  size: {},
@@ -1712,7 +2198,7 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1712
2198
  textColor: {}
1713
2199
  },
1714
2200
  setup(e) {
1715
- useCssVars((e) => ({ "4eb8d787": r.value }));
2201
+ useCssVars((e) => ({ 59230568: r.value }));
1716
2202
  let n = e, r = computed(() => isNumber(n.size) ? `${n.size}px` : n.size);
1717
2203
  return (e, r) => {
1718
2204
  let i = Loading;
@@ -1726,7 +2212,22 @@ var [name$8, bem$8] = createNamespace("sticky"), stickyProps = {
1726
2212
  let r = e.__vccOpts || e;
1727
2213
  for (let [e, i] of n) r[e] = i;
1728
2214
  return r;
1729
- }, loading_default = /* @__PURE__ */ __plugin_vue_export_helper_default(loading_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d003299d"]]);
2215
+ }, loading_default = /* @__PURE__ */ __plugin_vue_export_helper_default(loading_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-fb775dfa"]]);
2216
+ const useGlobalVar = (e, n) => (window.$api.__core_lib__ ??= {})[n] ??= e;
2217
+ var layout_exports = /* @__PURE__ */ __export({ useZIndex: () => useZIndex }), allLayers = useGlobalVar(shallowReactive([]), "utils/layers");
2218
+ const useZIndex = (e) => {
2219
+ let n = Symbol("layer"), r = watch(toRef(e), (e) => {
2220
+ e ? allLayers.push(n) : remove(allLayers, (e) => e === n);
2221
+ }, { immediate: !0 });
2222
+ try {
2223
+ onUnmounted(r);
2224
+ } catch {}
2225
+ return [
2226
+ computed(() => (allLayers.indexOf(n) + 1) * 10),
2227
+ computed(() => last(allLayers) === n),
2228
+ r
2229
+ ];
2230
+ };
1730
2231
  function tryOnScopeDispose(e) {
1731
2232
  return getCurrentScope() ? (onScopeDispose(e), !0) : !1;
1732
2233
  }
@@ -1753,13 +2254,13 @@ function makeDestructurable(e, n) {
1753
2254
  }
1754
2255
  var isClient = typeof window < "u" && typeof document < "u";
1755
2256
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1756
- var notNullish = (e) => e != null, toString = Object.prototype.toString, isObject = (e) => toString.call(e) === "[object Object]", noop$1 = () => {};
2257
+ var notNullish = (e) => e != null, toString = Object.prototype.toString, isObject = (e) => toString.call(e) === "[object Object]", noop = () => {};
1757
2258
  function toRef$1(...e) {
1758
2259
  if (e.length !== 1) return toRef(...e);
1759
2260
  let n = e[0];
1760
2261
  return typeof n == "function" ? readonly(customRef(() => ({
1761
2262
  get: n,
1762
- set: noop$1
2263
+ set: noop
1763
2264
  }))) : ref(n);
1764
2265
  }
1765
2266
  function createFilterWrapper(e, n) {
@@ -1776,8 +2277,8 @@ function createFilterWrapper(e, n) {
1776
2277
  }
1777
2278
  var bypassFilter = (e) => e();
1778
2279
  function debounceFilter(e, n = {}) {
1779
- let r, i, a = noop$1, o = (e) => {
1780
- clearTimeout(e), a(), a = noop$1;
2280
+ let r, i, a = noop, o = (e) => {
2281
+ clearTimeout(e), a(), a = noop;
1781
2282
  }, s;
1782
2283
  return (c) => {
1783
2284
  let l = toValue(e), u = toValue(n.maxWait);
@@ -1791,10 +2292,10 @@ function debounceFilter(e, n = {}) {
1791
2292
  };
1792
2293
  }
1793
2294
  function throttleFilter(...e) {
1794
- let n = 0, r, i = !0, a = noop$1, o, s, c, l, u;
2295
+ let n = 0, r, i = !0, a = noop, o, s, c, l, u;
1795
2296
  !isRef(e[0]) && typeof e[0] == "object" ? {delay: s, trailing: c = !0, leading: l = !0, rejectOnCancel: u = !1} = e[0] : [s, c = !0, l = !0, u = !1] = e;
1796
2297
  let d = () => {
1797
- r && (clearTimeout(r), r = void 0, a(), a = noop$1);
2298
+ r && (clearTimeout(r), r = void 0, a(), a = noop);
1798
2299
  };
1799
2300
  return (e) => {
1800
2301
  let f = toValue(s), p = Date.now() - n, m = () => o = e();
@@ -1959,7 +2460,7 @@ function watchOnce(e, n, r) {
1959
2460
  function computedAsync(e, n, r) {
1960
2461
  let a;
1961
2462
  a = isRef(r) ? { evaluating: r } : r || {};
1962
- let { lazy: o = !1, flush: s = "pre", evaluating: c = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? noop$1 } = a, d = shallowRef(!o), f = l ? shallowRef(n) : ref(n), p = 0;
2463
+ let { lazy: o = !1, flush: s = "pre", evaluating: c = void 0, shallow: l = !0, onError: u = globalThis.reportError ?? noop } = a, d = shallowRef(!o), f = l ? shallowRef(n) : ref(n), p = 0;
1963
2464
  return watchEffect(async (n) => {
1964
2465
  if (!d.value) return;
1965
2466
  p++;
@@ -2052,23 +2553,24 @@ function useSupported(e) {
2052
2553
  function useMutationObserver(e, n, r = {}) {
2053
2554
  let { window: a = defaultWindow,...o } = r, s, c = /* @__PURE__ */ useSupported(() => a && "MutationObserver" in a), l = () => {
2054
2555
  s &&= (s.disconnect(), void 0);
2055
- }, u = computed(() => {
2056
- let n = toValue(e), r = toArray(n).map(unrefElement).filter(notNullish);
2057
- return new Set(r);
2058
- }), d = watch(u, (e) => {
2556
+ }, u = watch(computed(() => {
2557
+ let n = toArray(toValue(e)).map(unrefElement).filter(notNullish);
2558
+ return new Set(n);
2559
+ }), (e) => {
2059
2560
  l(), c.value && e.size && (s = new MutationObserver(n), e.forEach((e) => s.observe(e, o)));
2060
2561
  }, {
2061
2562
  immediate: !0,
2062
2563
  flush: "post"
2063
- }), f = () => s?.takeRecords(), p = () => {
2064
- d(), l();
2564
+ }), d = () => s?.takeRecords(), f = () => {
2565
+ u(), l();
2065
2566
  };
2066
- return tryOnScopeDispose(p), {
2567
+ return tryOnScopeDispose(f), {
2067
2568
  isSupported: c,
2068
- stop: p,
2069
- takeRecords: f
2569
+ stop: f,
2570
+ takeRecords: d
2070
2571
  };
2071
2572
  }
2573
+ var DEFAULT_DELAY = 500, DEFAULT_THRESHOLD = 10;
2072
2574
  function onLongPress(e, n, r) {
2073
2575
  let a = computed(() => unrefElement(e)), o, s, c, l = !1;
2074
2576
  function u() {
@@ -2076,7 +2578,7 @@ function onLongPress(e, n, r) {
2076
2578
  }
2077
2579
  function d(e) {
2078
2580
  let n = r?.delay;
2079
- return typeof n == "function" ? n(e) : n ?? 500;
2581
+ return typeof n == "function" ? n(e) : n ?? DEFAULT_DELAY;
2080
2582
  }
2081
2583
  function f(e) {
2082
2584
  let [n, i, o] = [
@@ -2101,7 +2603,7 @@ function onLongPress(e, n, r) {
2101
2603
  if (r?.modifiers?.self && e.target !== a.value || !s || r?.distanceThreshold === !1) return;
2102
2604
  r?.modifiers?.prevent && e.preventDefault(), r?.modifiers?.stop && e.stopPropagation();
2103
2605
  let n = e.x - s.x, i = e.y - s.y;
2104
- Math.sqrt(n * n + i * i) >= (r?.distanceThreshold ?? 10) && u();
2606
+ Math.sqrt(n * n + i * i) >= (r?.distanceThreshold ?? DEFAULT_THRESHOLD) && u();
2105
2607
  }
2106
2608
  let h = {
2107
2609
  capture: r?.modifiers?.capture,
@@ -2136,7 +2638,7 @@ function useMediaQuery(e, n = {}) {
2136
2638
  }
2137
2639
  var _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__", handlers = /* @__PURE__ */ getHandlers();
2138
2640
  function getHandlers() {
2139
- return "__vueuse_ssr_handlers__" in _global || (_global[globalKey] = _global.__vueuse_ssr_handlers__ || {}), _global[globalKey];
2641
+ return globalKey in _global || (_global[globalKey] = _global[globalKey] || {}), _global[globalKey];
2140
2642
  }
2141
2643
  function getSSRHandler(e, n) {
2142
2644
  return handlers[e] || n;
@@ -2268,10 +2770,10 @@ function useStorage(e, n, r, a = {}) {
2268
2770
  function useResizeObserver(e, n, r = {}) {
2269
2771
  let { window: a = defaultWindow,...o } = r, s, c = /* @__PURE__ */ useSupported(() => a && "ResizeObserver" in a), l = () => {
2270
2772
  s &&= (s.disconnect(), void 0);
2271
- }, u = computed(() => {
2773
+ }, u = watch(computed(() => {
2272
2774
  let n = toValue(e);
2273
2775
  return Array.isArray(n) ? n.map((e) => unrefElement(e)) : [unrefElement(n)];
2274
- }), d = watch(u, (e) => {
2776
+ }), (e) => {
2275
2777
  if (l(), c.value && a) {
2276
2778
  s = new ResizeObserver(n);
2277
2779
  for (let n of e) n && s.observe(n, o);
@@ -2279,49 +2781,17 @@ function useResizeObserver(e, n, r = {}) {
2279
2781
  }, {
2280
2782
  immediate: !0,
2281
2783
  flush: "post"
2282
- }), f = () => {
2283
- l(), d();
2784
+ }), d = () => {
2785
+ l(), u();
2284
2786
  };
2285
- return tryOnScopeDispose(f), {
2787
+ return tryOnScopeDispose(d), {
2286
2788
  isSupported: c,
2287
- stop: f
2288
- };
2289
- }
2290
- function useElementSize(e, n = {
2291
- width: 0,
2292
- height: 0
2293
- }, r = {}) {
2294
- let { window: a = defaultWindow, box: o = "content-box" } = r, s = computed(() => (unrefElement(e)?.namespaceURI)?.includes("svg")), c = shallowRef(n.width), l = shallowRef(n.height), { stop: u } = useResizeObserver(e, ([n]) => {
2295
- let r = o === "border-box" ? n.borderBoxSize : o === "content-box" ? n.contentBoxSize : n.devicePixelContentBoxSize;
2296
- if (a && s.value) {
2297
- let n = unrefElement(e);
2298
- if (n) {
2299
- let e = n.getBoundingClientRect();
2300
- c.value = e.width, l.value = e.height;
2301
- }
2302
- } else if (r) {
2303
- let e = toArray(r);
2304
- c.value = e.reduce((e, { inlineSize: n }) => e + n, 0), l.value = e.reduce((e, { blockSize: n }) => e + n, 0);
2305
- } else c.value = n.contentRect.width, l.value = n.contentRect.height;
2306
- }, r);
2307
- tryOnMounted(() => {
2308
- let r = unrefElement(e);
2309
- r && (c.value = "offsetWidth" in r ? r.offsetWidth : n.width, l.value = "offsetHeight" in r ? r.offsetHeight : n.height);
2310
- });
2311
- let d = watch(() => unrefElement(e), (e) => {
2312
- c.value = e ? n.width : 0, l.value = e ? n.height : 0;
2313
- });
2314
- function f() {
2315
- u(), d();
2316
- }
2317
- return {
2318
- width: c,
2319
- height: l,
2320
- stop: f
2789
+ stop: d
2321
2790
  };
2322
2791
  }
2792
+ var ARRIVED_STATE_THRESHOLD_PIXELS = 1;
2323
2793
  function useScroll(e, n = {}) {
2324
- let { throttle: r = 0, idle: a = 200, onStop: o = noop$1, onScroll: s = noop$1, offset: c = {
2794
+ let { throttle: r = 0, idle: a = 200, onStop: o = noop, onScroll: s = noop, offset: c = {
2325
2795
  left: 0,
2326
2796
  right: 0,
2327
2797
  top: 0,
@@ -2375,16 +2845,14 @@ function useScroll(e, n = {}) {
2375
2845
  if (!f) return;
2376
2846
  let n = e?.document?.documentElement || e?.documentElement || unrefElement(e), { display: r, flexDirection: i, direction: a } = getComputedStyle(n), o = a === "rtl" ? -1 : 1, s = n.scrollLeft;
2377
2847
  w.left = s < h.value, w.right = s > h.value;
2378
- let l = Math.abs(s * o) <= (c.left || 0), u = Math.abs(s * o) + n.clientWidth >= n.scrollWidth - (c.right || 0) - 1;
2848
+ let l = Math.abs(s * o) <= (c.left || 0), u = Math.abs(s * o) + n.clientWidth >= n.scrollWidth - (c.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
2379
2849
  r === "flex" && i === "row-reverse" ? (C.left = u, C.right = l) : (C.left = l, C.right = u), h.value = s;
2380
2850
  let d = n.scrollTop;
2381
2851
  e === f.document && !d && (d = f.document.body.scrollTop), w.top = d < g.value, w.bottom = d > g.value;
2382
- let p = Math.abs(d) <= (c.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (c.bottom || 0) - 1;
2852
+ let p = Math.abs(d) <= (c.top || 0), m = Math.abs(d) + n.clientHeight >= n.scrollHeight - (c.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
2383
2853
  r === "flex" && i === "column-reverse" ? (C.top = m, C.bottom = p) : (C.top = p, C.bottom = m), g.value = d;
2384
2854
  }, k = (e) => {
2385
- if (!f) return;
2386
- let n = e.target.documentElement ?? e.target;
2387
- O(n), S.value = !0, D(e), s(e);
2855
+ f && (O(e.target.documentElement ?? e.target), S.value = !0, D(e), s(e));
2388
2856
  };
2389
2857
  return useEventListener$1(e, "scroll", r ? /* @__PURE__ */ useThrottleFn(k, r, !0, !1) : k, u), tryOnMounted(() => {
2390
2858
  try {
@@ -2428,30 +2896,11 @@ function useWindowSize(e = {}) {
2428
2896
  };
2429
2897
  u(), tryOnMounted(u);
2430
2898
  let d = { passive: !0 };
2431
- if (useEventListener$1("resize", u, d), n && s === "visual" && n.visualViewport && useEventListener$1(n.visualViewport, "resize", u, d), a) {
2432
- let e = useMediaQuery("(orientation: portrait)");
2433
- watch(e, () => u());
2434
- }
2435
- return {
2899
+ return useEventListener$1("resize", u, d), n && s === "visual" && n.visualViewport && useEventListener$1(n.visualViewport, "resize", u, d), a && watch(useMediaQuery("(orientation: portrait)"), () => u()), {
2436
2900
  width: c,
2437
2901
  height: l
2438
2902
  };
2439
2903
  }
2440
- const useGlobalVar = (e, n) => (window.$api.__core_lib__ ??= {})[n] ??= e;
2441
- var layout_exports = /* @__PURE__ */ __export({ useZIndex: () => useZIndex }), allLayers = useGlobalVar(shallowReactive([]), "utils/layers");
2442
- const useZIndex = (e) => {
2443
- let n = Symbol("layer"), r = toRef$1(e), a = watch(r, (e) => {
2444
- e ? allLayers.push(n) : remove(allLayers, (e) => e === n);
2445
- }, { immediate: !0 });
2446
- try {
2447
- onUnmounted(a);
2448
- } catch {}
2449
- return [
2450
- computed(() => (allLayers.indexOf(n) + 1) * 10),
2451
- computed(() => last(allLayers) === n),
2452
- a
2453
- ];
2454
- };
2455
2904
  var floatPopup_default = /* @__PURE__ */ defineComponent({
2456
2905
  __name: "floatPopup",
2457
2906
  props: {
@@ -2481,7 +2930,7 @@ var floatPopup_default = /* @__PURE__ */ defineComponent({
2481
2930
  Math.round(.3 * p.value),
2482
2931
  Math.round(.6 * p.value),
2483
2932
  Math.round(.9 * p.value)
2484
- ]), h = shallowRef(0), [g, v] = useZIndex(() => h.value > 0), y = noop;
2933
+ ]), h = shallowRef(0), [g, v] = useZIndex(() => h.value > 0), y = noop$1;
2485
2934
  return watch(f, () => {
2486
2935
  f.value ? y = l.beforeEach(() => v.value ? f.value = !1 : void 0) : y();
2487
2936
  }), onBeforeRouteLeave(y), s({
@@ -2554,17 +3003,19 @@ const showImagePreview$1 = (e, n = {}) => {
2554
3003
  r.value = !1;
2555
3004
  }
2556
3005
  };
2557
- }, useTemp = useGlobalVar(defineStore("core:temp", (e) => {
2558
- let n = shallowReactive(/* @__PURE__ */ new Map()), r = (e, r) => (e = `reactive:${e}`, n.has(e) || n.set(e, reactive(r())), n.get(e)), i = e.action((e) => (e = `reactive:${e}`, n.has(e)), "has"), a = e.action((e) => (e = `reactive:${e}`, n.get(e)), "onlyGet"), o = e.action((e, r) => (e = `raw:${e}`, n.has(e) || n.set(e, r()), n.get(e)), "applyRaw"), s = e.action((e) => (e = `raw:${e}`, n.has(e)), "hasRaw"), c = e.action((e) => (e = `raw:${e}`, n.get(e)), "onlyGetRaw");
3006
+ };
3007
+ var _useTemp = useGlobalVar(defineStore("core:temp", (e) => {
3008
+ let n = shallowReactive(/* @__PURE__ */ new Map());
2559
3009
  return {
2560
- $apply: r,
2561
- $has: i,
2562
- $onlyGet: a,
2563
- $applyRaw: o,
2564
- $hasRaw: s,
2565
- $onlyGetRaw: c
3010
+ $apply: (e, r) => (e = `reactive:${e}`, n.has(e) || n.set(e, reactive(r())), n.get(e)),
3011
+ $has: e.action((e) => (e = `reactive:${e}`, n.has(e)), "has"),
3012
+ $onlyGet: e.action((e) => (e = `reactive:${e}`, n.get(e)), "onlyGet"),
3013
+ $applyRaw: e.action((e, r) => (e = `raw:${e}`, n.has(e) || n.set(e, r()), n.get(e)), "applyRaw"),
3014
+ $hasRaw: e.action((e) => (e = `raw:${e}`, n.has(e)), "hasRaw"),
3015
+ $onlyGetRaw: e.action((e) => (e = `raw:${e}`, n.get(e)), "onlyGetRaw")
2566
3016
  };
2567
3017
  }), "store/temp");
3018
+ const useTemp = () => _useTemp(window.$api.piniaInstance);
2568
3019
  var image_default = /* @__PURE__ */ defineComponent({
2569
3020
  __name: "image",
2570
3021
  props: {
@@ -2829,10 +3280,9 @@ let utilInterceptors;
2829
3280
  throw r;
2830
3281
  }
2831
3282
  };
2832
- e.createAutoRetry = (e, r = 3) => async (i) => {
2833
- if (!n(i)) return Promise.reject(i);
2834
- if (!i.config || i.config.disretry || (i.config.__retryCount ?? 0) >= r) throw requestErrorResult("networkError_response", i);
2835
- return i.config.__retryCount = (i.config.__retryCount ?? 0) + 1, await delay(500 * i.config.__retryCount), e(i.config);
3283
+ e.createAutoRetry = (e, n = 3) => async (r) => {
3284
+ if (!r.config || r.config.disretry || (r.config.__retryCount ?? 0) >= n) throw requestErrorResult("networkError_response", r);
3285
+ return r.config.__retryCount = (r.config.__retryCount ?? 0) + 1, await delay(500 * r.config.__retryCount), e(r.config);
2836
3286
  }, e.createCheckIsUnauth = (e, r) => async (i) => {
2837
3287
  if (!n(i)) return Promise.reject(i);
2838
3288
  if (i?.response?.status === 401) {
@@ -2849,11 +3299,24 @@ let utilInterceptors;
2849
3299
  if (!n(e)) return Promise.reject(e);
2850
3300
  if (e.code === "ERR_NETWORK" && !e.response) throw requestErrorResult("networkError_request", e);
2851
3301
  return Promise.reject(e);
2852
- };
3302
+ }, e.devProxy = (e) => {
3303
+ let n = getAdapter([
3304
+ "xhr",
3305
+ "fetch",
3306
+ "http"
3307
+ ]);
3308
+ if (window.$isDev) return n(e);
3309
+ let r = e.url?.replaceAll("/api0", "") ?? "";
3310
+ return console.log(e), n({
3311
+ ...e,
3312
+ baseURL: "",
3313
+ url: `http://${location.host}/api0/${URL.canParse(r) ? r : `${e.baseURL}/${r}`}`
3314
+ });
3315
+ }, e._ = 1;
2853
3316
  })(utilInterceptors ||= {});
2854
3317
  const createAxios = (e, n = {}, r) => {
2855
3318
  let i = axios.create(n);
2856
- return r?.(i), i.interceptors.request.use(async (n) => (n.baseURL = await e(), n)), i.interceptors.response.use(void 0, utilInterceptors.isClientError), i.interceptors.response.use(void 0, utilInterceptors.createAutoRetry(i, 10)), {
3319
+ return r?.(i), i.interceptors.request.use(async (n) => (n.baseURL ??= await e(), n)), i.interceptors.response.use(void 0, utilInterceptors.isClientError), i.interceptors.response.use(void 0, utilInterceptors.createAutoRetry(i, 10)), {
2857
3320
  get: async (e, n = {}) => utilInterceptors.useUnreadableRetry(() => i.get(e, n)),
2858
3321
  post: async (e, n, r = {}) => utilInterceptors.useUnreadableRetry(() => i.post(e, n, r)),
2859
3322
  postForm: async (e, n, r = {}) => utilInterceptors.useUnreadableRetry(() => i.postForm(e, n, r)),
@@ -2871,22 +3334,19 @@ var data_exports = /* @__PURE__ */ __export({
2871
3334
  callbackToPromise: () => callbackToPromise
2872
3335
  }), Struct = class {
2873
3336
  toJSON() {
2874
- return this.$$raw;
3337
+ return JSON.parse(JSON.stringify(this.$$raw));
2875
3338
  }
2876
3339
  constructor(e) {
2877
3340
  this.$$raw = e;
2878
3341
  }
2879
3342
  }, PromiseContent = class e {
2880
3343
  static _this;
2881
- static {
2882
- this._this = useGlobalVar(this, "data/PromiseContent");
2883
- }
3344
+ static #_ = this._this = useGlobalVar(this, "data/PromiseContent");
2884
3345
  static isPromiseContent(e) {
2885
3346
  return e instanceof this._this;
2886
3347
  }
2887
3348
  static fromPromise(e, n = (e) => e) {
2888
- let r = new this._this(e, n);
2889
- return markRaw(r);
3349
+ return markRaw(new this._this(e, n));
2890
3350
  }
2891
3351
  constructor(e, n = (e) => e) {
2892
3352
  this.promise = e, this.processor = n, this.loadPromise(e);
@@ -2897,9 +3357,10 @@ var data_exports = /* @__PURE__ */ __export({
2897
3357
  let n = await e;
2898
3358
  this.data.value = this.processor(n), this.isLoading.value = !1, this.isError.value = !1, this.isEmpty.value = isEmpty(n);
2899
3359
  } catch (e) {
2900
- this.data.value = void 0, this.isError.value = !0, this.errorCause.value = isError(e) ? e : Error(String(e));
3360
+ this.data.value = void 0, this.isError.value = !0, this.errorCause.value = isError(e) ? e : Error(String(e)), console.error("Non-throw Error [PromiseContent]", e);
2901
3361
  }
2902
3362
  }
3363
+ [Symbol.toStringTag] = "[class PromiseContent]";
2903
3364
  setProcessor(n) {
2904
3365
  return e.fromPromise(this.promise, n);
2905
3366
  }
@@ -2944,15 +3405,12 @@ var data_exports = /* @__PURE__ */ __export({
2944
3405
  this.generator = e(this.abortController.signal, this), generatorMap.set(this, e);
2945
3406
  }
2946
3407
  static _this;
2947
- static {
2948
- this._this = useGlobalVar(this, "data/Stream");
2949
- }
3408
+ static #_ = this._this = useGlobalVar(this, "data/Stream");
2950
3409
  static isStream(e) {
2951
3410
  return e instanceof this._this;
2952
3411
  }
2953
3412
  static create(e) {
2954
- let n = new this._this(e);
2955
- return markRaw(n);
3413
+ return markRaw(new this._this(e));
2956
3414
  }
2957
3415
  abortController = new SmartAbortController();
2958
3416
  generator;
@@ -3055,43 +3513,46 @@ const callbackToPromise = (e) => {
3055
3513
  let { resolve: n, promise: r } = Promise.withResolvers();
3056
3514
  return e(n), r;
3057
3515
  };
3058
- var _hoisted_1$6 = {
3516
+ var _hoisted_1$5 = {
3059
3517
  xmlns: "http://www.w3.org/2000/svg",
3060
3518
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3061
3519
  viewBox: "0 0 1024 1024"
3062
3520
  }, ReloadOutlined_default = defineComponent({
3063
3521
  name: "ReloadOutlined",
3064
3522
  render: function(e, n) {
3065
- return openBlock(), createElementBlock("svg", _hoisted_1$6, n[0] ||= [createElementVNode("path", {
3523
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, n[0] ||= [createElementVNode("path", {
3066
3524
  d: "M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92C290 92 102.3 279.5 102 511.5C101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1c1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9c-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27c-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4c31.6-31.6 68.4-56.4 109.3-73.8c42.3-17.9 87.4-27 133.8-27c46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z",
3067
3525
  fill: "currentColor"
3068
3526
  }, null, -1)]);
3069
3527
  }
3070
- }), _hoisted_1$5 = {
3528
+ }), _hoisted_1$4 = {
3071
3529
  xmlns: "http://www.w3.org/2000/svg",
3072
3530
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3073
3531
  viewBox: "0 0 24 24"
3074
3532
  }, MoreVertRound_default = defineComponent({
3075
3533
  name: "MoreVertRound",
3076
3534
  render: function(e, n) {
3077
- return openBlock(), createElementBlock("svg", _hoisted_1$5, n[0] ||= [createElementVNode("path", {
3535
+ return openBlock(), createElementBlock("svg", _hoisted_1$4, n[0] ||= [createElementVNode("path", {
3078
3536
  d: "M12 8c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2z",
3079
3537
  fill: "currentColor"
3080
3538
  }, null, -1)]);
3081
3539
  }
3082
- }), _hoisted_1$4 = {
3540
+ }), _hoisted_1$3 = {
3083
3541
  xmlns: "http://www.w3.org/2000/svg",
3084
3542
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3085
3543
  viewBox: "0 0 24 24"
3086
3544
  }, WifiTetheringErrorRound_default = defineComponent({
3087
3545
  name: "WifiTetheringErrorRound",
3088
3546
  render: function(e, n) {
3089
- return openBlock(), createElementBlock("svg", _hoisted_1$4, n[0] ||= [createElementVNode("path", {
3547
+ return openBlock(), createElementBlock("svg", _hoisted_1$3, n[0] ||= [createElementVNode("path", {
3090
3548
  d: "M10.66 7.14c-2.24.48-4.04 2.3-4.52 4.54c-.37 1.75.02 3.38.89 4.66c.34.51 1.08.55 1.51.11c.35-.35.37-.88.1-1.28c-.5-.76-.75-1.71-.61-2.73c.23-1.74 1.67-3.17 3.41-3.4A4.003 4.003 0 0 1 16 13c0 .8-.24 1.54-.64 2.16c-.27.41-.25.95.1 1.29c.43.43 1.17.4 1.51-.11C17.62 15.4 18 14.25 18 13c0-3.75-3.45-6.7-7.34-5.86zm-.41-3.99c-4.05.69-7.19 3.69-8.03 7.72c-.66 3.17.2 6.16 1.97 8.38c.37.46 1.07.49 1.49.07c.36-.36.39-.93.07-1.32a8.004 8.004 0 0 1-1.66-6.28c.55-3.47 3.42-6.24 6.92-6.65c2.76-.33 5.27.74 6.93 2.59c.2.21.47.34.76.34c.85 0 1.34-1.01.77-1.65c-2.19-2.45-5.56-3.82-9.22-3.2zM12 11c-1.1 0-2 .9-2 2c0 .55.23 1.05.59 1.41c.36.36.86.59 1.41.59s1.05-.23 1.41-.59c.36-.36.59-.86.59-1.41c0-1.1-.9-2-2-2zm9-1c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1s-1-.45-1-1v-4c0-.55.45-1 1-1zm0 8c.55 0 1 .45 1 1s-.45 1-1 1s-1-.45-1-1s.45-1 1-1z",
3091
3549
  fill: "currentColor"
3092
3550
  }, null, -1)]);
3093
3551
  }
3094
- }), _hoisted_1$3 = { class: "relative size-full overflow-hidden" }, _hoisted_2$1 = { key: 2 }, _hoisted_3$1 = { key: 3 }, _hoisted_4$1 = {
3552
+ }), _hoisted_1$2 = { class: "relative size-full overflow-hidden" }, _hoisted_2$1 = { key: 2 }, _hoisted_3$1 = {
3553
+ key: 3,
3554
+ class: "!size-full"
3555
+ }, _hoisted_4$1 = {
3095
3556
  key: 4,
3096
3557
  class: "flex items-center gap-3 justify-around"
3097
3558
  }, _hoisted_5$1 = { class: "flex gap-2 flex-col justify-center text-white" }, _hoisted_6$1 = { class: "text-xs text-wrap" }, content_default = /* @__PURE__ */ defineComponent({
@@ -3239,7 +3700,7 @@ var _hoisted_1$6 = {
3239
3700
  }, h = computed(() => !d.hideLoading && f.value.isLoading ? f.value.isEmpty ? "isLoadingNoData" : "isLoadingData" : !d.hideError && f.value.isError ? f.value.isEmpty ? "isErrorNoData" : "isErrorData" : !d.hideEmpty && f.value.isNoResult ? "isEmpty" : "done"), g = useTemplateRef("cont");
3240
3701
  return n({ cont: g }), (e, n) => {
3241
3702
  let i = Loading, p = NEmpty, v = NButton, y = NIcon, b = NResult, S = AnimatePresence;
3242
- return openBlock(), createElementBlock("div", _hoisted_1$3, [createElementVNode("div", {
3703
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", {
3243
3704
  class: normalizeClass(["relative size-full", [d.class]]),
3244
3705
  ref_key: "cont",
3245
3706
  ref: g
@@ -3256,7 +3717,7 @@ var _hoisted_1$6 = {
3256
3717
  },
3257
3718
  variants: m,
3258
3719
  animate: h.value,
3259
- class: "rounded-full shadow flex justify-center items-center scale-100 absolute whitespace-nowrap"
3720
+ class: "shadow flex justify-center items-center scale-100 absolute whitespace-nowrap"
3260
3721
  }, {
3261
3722
  default: withCtx(() => [createVNode(Transition, { name: "van-fade" }, {
3262
3723
  default: withCtx(() => [h.value === "isLoadingNoData" ? (openBlock(), createBlock(i, {
@@ -3521,7 +3982,7 @@ var _hoisted_1$6 = {
3521
3982
  }),
3522
3983
  emits: /* @__PURE__ */ mergeModels(["closed"], ["update:show"]),
3523
3984
  setup(e, { expose: n }) {
3524
- let r = window.$router, s = e, c = useModel(e, "show"), l = shallowRef(c.value), [u, d] = useZIndex(computed(() => s.useTrulyShow ? l.value : c.value)), f = noop;
3985
+ let r = window.$router, s = e, c = useModel(e, "show"), l = shallowRef(c.value), [u, d] = useZIndex(computed(() => s.useTrulyShow ? l.value : c.value)), f = noop$1;
3525
3986
  return watch(c, (e) => {
3526
3987
  e ? f = r.beforeEach(() => {
3527
3988
  if (console.log("popup:\n", "isLast:", d.value, "show:", c.value), d.value) return c.value ? c.value = !1 : void 0;
@@ -3560,34 +4021,34 @@ var _hoisted_1$6 = {
3560
4021
  routerBase: {}
3561
4022
  },
3562
4023
  setup(n) {
3563
- let r = n, i = useRoute(), o = decodeURI(i.path.replaceAll(r.routerBase + "/", "").split("/")[0]), c = ref(o), l = window.$router, u = useTemplateRef("tab"), d = async (e) => {
4024
+ let r = n, i = useRoute(), o = ref(decodeURI(i.path.replaceAll(r.routerBase + "/", "").split("/")[0])), c = window.$router, l = useTemplateRef("tab"), u = async (e) => {
3564
4025
  let n = "?", i = r.items.find((n) => n.name == e);
3565
4026
  for (let e in i.queries ?? {}) if (Object.prototype.hasOwnProperty.call(i.queries ?? {}, e)) {
3566
4027
  let r = (i.queries ?? {})[e];
3567
4028
  n += `${e}=${r}&`;
3568
4029
  }
3569
- return n = n.replace(/&$/, ""), await l.force.replace(`${r.routerBase}/${e.split("/").map(encodeURI).join("/")}${n}`), !0;
4030
+ return n = n.replace(/&$/, ""), await c.force.replace(`${r.routerBase}/${e.split("/").map(encodeURI).join("/")}${n}`), !0;
3570
4031
  };
3571
4032
  watch(() => r.items, (e) => {
3572
- e.find((e) => e.name.startsWith(c.value)) || console.log(c.value, e);
4033
+ e.find((e) => e.name.startsWith(o.value)) || console.log(o.value, e);
3573
4034
  });
3574
- let f = l.afterEach((e) => {
4035
+ let d = c.afterEach((e) => {
3575
4036
  if (e.path.startsWith(r.routerBase)) {
3576
4037
  let n = e.path.replaceAll(r.routerBase + "/", "").split("/")[0];
3577
- n !== c.value && (c.value = n);
4038
+ n !== o.value && (o.value = n);
3578
4039
  }
3579
4040
  });
3580
4041
  return onUnmounted(() => {
3581
- f();
4042
+ d();
3582
4043
  }), (n, r) => {
3583
- let i = Tab, o = Tabs;
3584
- return openBlock(), createBlock(o, {
4044
+ let i = Tab, c = Tabs;
4045
+ return openBlock(), createBlock(c, {
3585
4046
  ref_key: "tab",
3586
- ref: u,
4047
+ ref: l,
3587
4048
  shrink: "",
3588
- active: c.value,
3589
- "onUpdate:active": r[0] ||= (e) => c.value = e,
3590
- beforeChange: d,
4049
+ active: o.value,
4050
+ "onUpdate:active": r[0] ||= (e) => o.value = e,
4051
+ beforeChange: u,
3591
4052
  class: "w-full"
3592
4053
  }, {
3593
4054
  "nav-left": withCtx(() => [renderSlot(n.$slots, "left")]),
@@ -3595,7 +4056,7 @@ var _hoisted_1$6 = {
3595
4056
  "nav-bottom": withCtx(() => [renderSlot(n.$slots, "bottom")]),
3596
4057
  default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.items, (e) => (openBlock(), createBlock(i, {
3597
4058
  title: e.title,
3598
- onClick: (n) => c.value = e.name,
4059
+ onClick: (n) => o.value = e.name,
3599
4060
  name: e.name
3600
4061
  }, null, 8, [
3601
4062
  "title",
@@ -3640,7 +4101,7 @@ var _hoisted_1$6 = {
3640
4101
  }, 1032, ["href"])) : n.mode === "text" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(n.value), 1)], 64)) : createCommentVNode("", !0)], 64))), 256))], 6);
3641
4102
  };
3642
4103
  }
3643
- }), _hoisted_1$2 = { class: "mt-1 text-(--van-text-color-2) text-xs" }, toggleIcon_default = /* @__PURE__ */ defineComponent({
4104
+ }), _hoisted_1$1 = { class: "mt-1 text-(--van-text-color-2) text-xs" }, toggleIcon_default = /* @__PURE__ */ defineComponent({
3644
4105
  __name: "toggleIcon",
3645
4106
  props: /* @__PURE__ */ mergeModels({
3646
4107
  icon: {},
@@ -3681,7 +4142,7 @@ var _hoisted_1$6 = {
3681
4142
  }, {
3682
4143
  default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(e.icon)))]),
3683
4144
  _: 1
3684
- }, 8, ["size", "color"]), createElementVNode("span", _hoisted_1$2, [renderSlot(e.$slots, "default")])], 2);
4145
+ }, 8, ["size", "color"]), createElementVNode("span", _hoisted_1$1, [renderSlot(e.$slots, "default")])], 2);
3685
4146
  };
3686
4147
  }
3687
4148
  }), Z = Object.defineProperty, ee = Object.defineProperties, te = Object.getOwnPropertyDescriptors, I = Object.getOwnPropertySymbols, P = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable, N = (e, n, r) => n in e ? Z(e, n, {
@@ -3693,7 +4154,7 @@ var _hoisted_1$6 = {
3693
4154
  for (var r in n ||= {}) P.call(n, r) && N(e, r, n[r]);
3694
4155
  if (I) for (var r of I(n)) G.call(n, r) && N(e, r, n[r]);
3695
4156
  return e;
3696
- }, _ = (e, n) => ee(e, te(n)), L = (e, n) => {
4157
+ }, _$1 = (e, n) => ee(e, te(n)), L = (e, n) => {
3697
4158
  var r = {};
3698
4159
  for (var i in e) P.call(e, i) && n.indexOf(i) < 0 && (r[i] = e[i]);
3699
4160
  if (e != null && I) for (var i of I(e)) n.indexOf(i) < 0 && G.call(e, i) && (r[i] = e[i]);
@@ -3715,7 +4176,7 @@ function Q(e, n = !0, r) {
3715
4176
  me() ? onMounted(e, r) : n ? e() : nextTick(e);
3716
4177
  }
3717
4178
  function ge(e, n, r) {
3718
- return watch(e, n, _(T({}, r), { immediate: !0 }));
4179
+ return watch(e, n, _$1(T({}, r), { immediate: !0 }));
3719
4180
  }
3720
4181
  var $ = fe ? window : void 0;
3721
4182
  function x(e) {
@@ -3758,8 +4219,8 @@ function we(e, n, r = {}) {
3758
4219
  let a = r, { window: o = $ } = a, s = L(a, ["window"]), c, l = /* @__PURE__ */ X(() => o && "MutationObserver" in o), u = () => {
3759
4220
  c &&= (c.disconnect(), void 0);
3760
4221
  }, d = computed(() => {
3761
- let n = toValue(e), r = R(n).map(x).filter(pe);
3762
- return new Set(r);
4222
+ let n = R(toValue(e)).map(x).filter(pe);
4223
+ return new Set(n);
3763
4224
  }), f = watch(() => d.value, (e) => {
3764
4225
  u(), l.value && e.size && (c = new MutationObserver(n), e.forEach((e) => c.observe(e, s)));
3765
4226
  }, {
@@ -3777,10 +4238,10 @@ function we(e, n, r = {}) {
3777
4238
  function Y(e, n, r = {}) {
3778
4239
  let a = r, { window: o = $ } = a, s = L(a, ["window"]), c, l = /* @__PURE__ */ X(() => o && "ResizeObserver" in o), u = () => {
3779
4240
  c &&= (c.disconnect(), void 0);
3780
- }, d = computed(() => {
4241
+ }, d = watch(computed(() => {
3781
4242
  let n = toValue(e);
3782
4243
  return Array.isArray(n) ? n.map((e) => x(e)) : [x(n)];
3783
- }), f = watch(d, (e) => {
4244
+ }), (e) => {
3784
4245
  if (u(), l.value && o) {
3785
4246
  c = new ResizeObserver(n);
3786
4247
  for (let n of e) n && c.observe(n, s);
@@ -3788,12 +4249,12 @@ function Y(e, n, r = {}) {
3788
4249
  }, {
3789
4250
  immediate: !0,
3790
4251
  flush: "post"
3791
- }), p = () => {
3792
- u(), f();
4252
+ }), f = () => {
4253
+ u(), d();
3793
4254
  };
3794
- return F(p), {
4255
+ return F(f), {
3795
4256
  isSupported: l,
3796
- stop: p
4257
+ stop: f
3797
4258
  };
3798
4259
  }
3799
4260
  function xe(e, n = {}) {
@@ -4124,39 +4585,6 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
4124
4585
  ])) : createCommentVNode("", !0);
4125
4586
  };
4126
4587
  }
4127
- }), _hoisted_1$1 = { class: "overflow-hidden" }, previewUser_default = /* @__PURE__ */ defineComponent({
4128
- __name: "previewUser",
4129
- setup(e, { expose: n }) {
4130
- let r = useTemplateRef("floatPopup"), o = useTemplateRef("contentBox"), { height: s } = useElementSize(o), l = shallowRef();
4131
- n({
4132
- show(e) {
4133
- r.value?.show(1), l.value = e;
4134
- },
4135
- isShowing: computed(() => r.value?.isShowing),
4136
- close() {
4137
- r.value?.close();
4138
- }
4139
- });
4140
- let u = computed(() => [
4141
- 0,
4142
- (s.value || Math.floor(window.innerHeight * .2)) + 30,
4143
- 72 + (s.value || Math.floor(window.innerHeight * .2))
4144
- ]);
4145
- return (e, n) => (openBlock(), createBlock(floatPopup_default, {
4146
- ref_key: "floatPopup",
4147
- ref: r,
4148
- anchors: u.value,
4149
- overlay: "",
4150
- class: "overflow-hidden"
4151
- }, {
4152
- default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [createElementVNode("div", {
4153
- ref_key: "contentBox",
4154
- ref: o,
4155
- class: "w-full flex justify-center items-start backdrop-blur-lg van-hairline--bottom"
4156
- }, null, 512)])]),
4157
- _: 1
4158
- }, 8, ["anchors"]));
4159
- }
4160
4588
  }), image_exports$1 = /* @__PURE__ */ __export({ Image: () => Image$1 }), Image$1 = class e extends Struct {
4161
4589
  static processInstances = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/image/processInstances");
4162
4590
  static setProcess(e, n, r) {
@@ -4200,15 +4628,14 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
4200
4628
  continue;
4201
4629
  }
4202
4630
  let o = await a.func(n, this);
4203
- if (n = o[0], r.ignoreExit || !o[1]) continue;
4204
- break;
4631
+ if (n = o[0], !(r.ignoreExit || !o[1])) break;
4205
4632
  }
4206
- return `${e.activeFork.get(`${this.$$plugin}:${this.forkNamespace}`)}/${n}`;
4633
+ return URL.canParse(n) ? n : `${e.activeFork.get(`${this.$$plugin}:${this.forkNamespace}`)}/${n}`;
4207
4634
  }
4208
- }, require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, n) => {
4635
+ }, require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, n) => {
4209
4636
  (function(r, i) {
4210
- typeof exports == "object" && n !== void 0 ? n.exports = i() : typeof define == "function" && define.amd ? define(i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs = i();
4211
- })(exports, (function() {
4637
+ typeof e == "object" && n !== void 0 ? n.exports = i() : typeof define == "function" && define.amd ? define(i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs = i();
4638
+ })(e, (function() {
4212
4639
  var e = 1e3, n = 6e4, r = 36e5, i = "millisecond", a = "second", o = "minute", s = "hour", c = "day", l = "week", u = "month", d = "quarter", f = "year", p = "date", m = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = {
4213
4640
  name: "en",
4214
4641
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
@@ -4499,7 +4926,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
4499
4926
  return O(1e3 * e);
4500
4927
  }, O.en = C[S], O.Ls = C, O.p = {}, O;
4501
4928
  }));
4502
- })), import_dayjs_min$2 = /* @__PURE__ */ __toESM(require_dayjs_min()), content_exports = /* @__PURE__ */ __export({ ContentPage: () => ContentPage }), ContentPage = class {
4929
+ })), import_dayjs_min$2 = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), content_exports = /* @__PURE__ */ __export({ ContentPage: () => ContentPage }), ContentPage = class {
4503
4930
  static viewLayout = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/viewLayout");
4504
4931
  static setViewLayout(e, n) {
4505
4932
  let r = this.toContentTypeString(e);
@@ -4610,7 +5037,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
4610
5037
  let e = (e) => /(^|[\((\[\s【])ai[】\))\]\s]?/gi.test(e);
4611
5038
  return this.customIsAI || e(this.title) || this.author.some((n) => e(n));
4612
5039
  }
4613
- }, comment_exports = /* @__PURE__ */ __export({ Comment: () => Comment }), import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min()), Comment = class extends Struct {
5040
+ }, comment_exports = /* @__PURE__ */ __export({ Comment: () => Comment }), import_dayjs_min$1 = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), Comment = class extends Struct {
4614
5041
  static commentRow = shallowReactive(/* @__PURE__ */ new Map());
4615
5042
  static setCommentRow(e, n) {
4616
5043
  let r = uni.content.ContentPage.toContentTypeString(e);
@@ -4640,17 +5067,77 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
4640
5067
  static userBase = shallowReactive(/* @__PURE__ */ new Map());
4641
5068
  static userEditorBase = shallowReactive(/* @__PURE__ */ new Map());
4642
5069
  constructor(e) {
4643
- e.avatar && (this.avatar = Image$1.create(e.avatar)), this.name = e.name, this.id = e.id;
5070
+ e.avatar && (this.avatar = Image$1.create(e.avatar)), this.name = e.name, this.id = e.id, this.$$plugin = e.$$plugin;
4644
5071
  }
4645
5072
  avatar;
4646
5073
  name;
4647
5074
  id;
5075
+ $$plugin;
4648
5076
  };
4649
5077
  let uni;
4650
5078
  (function(e) {
4651
5079
  e.user = user_exports, e.comment = comment_exports, e.content = content_exports, e.image = image_exports$1, e.item = item_exports, e.ep = ep_exports;
4652
5080
  })(uni ||= {});
4653
- var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[calc(70%-14px)] h-[calc(100%-8px)] *:text-justify right-2" }, _hoisted_3 = { class: "van-multi-ellipsis--l2" }, _hoisted_4 = { class: "absolute bottom-2 text-(--van-text-color-2) text-sm" }, _hoisted_5 = ["disabled"], _hoisted_6 = { class: "w-full flex items-center relative" }, _hoisted_7 = { class: "absolute w-full h-6 !text-[10px] text-white bg-[linear-gradient(transparent,rgba(0,0,0,0.9))] bottom-0 flex pb-0.5 gap-1 pl-1 items-end justify-start *:flex *:items-center" }, _hoisted_8 = { class: "w-full overflow-hidden p-1 flex flex-col text-(--van-text-color)" }, _hoisted_9 = { class: "flex flex-nowrap" }, _hoisted_10 = { class: "text-start text-sm" }, _hoisted_11 = { class: "my-1 w-full h-auto flex-nowrap flex items-center" }, unitCard_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
5081
+ var _useConfig = defineStore("config", (e) => {
5082
+ let n = shallowReactive(/* @__PURE__ */ new Map()), r = e.action((e, r) => {
5083
+ let i = useLocalStorage(`${e}.config`, fromPairs(Object.entries(r).map(([n, r]) => [`${e}.${n}`, r.defaultValue])));
5084
+ return n.set(e, {
5085
+ form: r,
5086
+ value: i
5087
+ }), i.value;
5088
+ }, "useCustomConfig"), a = r("core", {
5089
+ recordHistory: {
5090
+ type: "switch",
5091
+ defaultValue: !1,
5092
+ info: "记录历史记录"
5093
+ },
5094
+ showAIProject: {
5095
+ type: "switch",
5096
+ defaultValue: !0,
5097
+ info: "展示AI作品"
5098
+ },
5099
+ darkMode: {
5100
+ type: "radio",
5101
+ defaultValue: "system",
5102
+ info: "暗色模式配置",
5103
+ comp: "select",
5104
+ selects: [
5105
+ {
5106
+ label: "浅色",
5107
+ value: "light"
5108
+ },
5109
+ {
5110
+ label: "暗色",
5111
+ value: "dark"
5112
+ },
5113
+ {
5114
+ label: "跟随系统",
5115
+ value: "system"
5116
+ }
5117
+ ]
5118
+ },
5119
+ easilyTitle: {
5120
+ type: "switch",
5121
+ defaultValue: !1,
5122
+ info: "简化标题(实验)"
5123
+ }
5124
+ }), o = /* @__PURE__ */ usePreferredDark();
5125
+ return {
5126
+ appConfig: a,
5127
+ isDark: computed(() => {
5128
+ switch (a["core.darkMode"]) {
5129
+ case "light": return !1;
5130
+ case "dark": return !0;
5131
+ case "system": return o.value;
5132
+ default: return !1;
5133
+ }
5134
+ }),
5135
+ form: n,
5136
+ $useCustomConfig: r
5137
+ };
5138
+ });
5139
+ const useConfig = () => _useConfig(window.$api.piniaInstance);
5140
+ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[calc(70%-14px)] h-[calc(100%-8px)] *:text-justify right-2" }, _hoisted_3 = { class: "van-multi-ellipsis--l2" }, _hoisted_4 = { class: "absolute bottom-2 text-(--van-text-color-2) text-sm" }, _hoisted_5 = ["disabled"], _hoisted_6 = { class: "w-full flex items-center relative" }, _hoisted_7 = { class: "absolute w-full h-6 !text-[10px] text-white bg-[linear-gradient(transparent,rgba(0,0,0,0.9))] bottom-0 flex pb-0.5 gap-1 pl-1 items-end justify-start *:flex *:items-center" }, _hoisted_8 = { class: "w-full overflow-hidden p-1 flex flex-col text-(--van-text-color)" }, _hoisted_9 = { class: "flex flex-nowrap" }, _hoisted_10 = { class: "text-start text-sm" }, _hoisted_11 = { class: "my-1 w-full h-auto flex-nowrap flex items-center" }, unitCard_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
4654
5141
  __name: "unitCard",
4655
5142
  props: {
4656
5143
  item: {},
@@ -4668,10 +5155,10 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
4668
5155
  },
4669
5156
  emits: ["click"],
4670
5157
  setup(n, { emit: r }) {
4671
- useCssVars((e) => ({ a7da52b2: h.value }));
5158
+ useCssVars((e) => ({ "0388e6a2": h.value }));
4672
5159
  let d = n, f = r, p = useTemplateRef("cover"), m = computed(() => uni.item.Item.is(d.item) ? d.item.$cover : uni.image.Image.create(d.item.cover)), h = computed(() => p.value?.isLoaded ? "unset" : `${m.value.aspect?.width || 3} / ${m.value.aspect?.height || 4}`), [g, v] = /* @__PURE__ */ createReusableTemplate(), y = () => {
4673
- SharedFunction.callWitch("addRecent", "core", d.item);
4674
- };
5160
+ uni.item.Item.is(d.item) && SharedFunction.callWitch("addRecent", "core", d.item);
5161
+ }, b = useConfig(), S = computed(() => b.appConfig["core.easilyTitle"] ? d.item.title.replace(/(\([^\)]+\)|\[[^\]]+\]|\([^\)]+\)|\【[^\】]+\】)+?/gi, "").trim() : d.item.title);
4675
5162
  return (n, r) => {
4676
5163
  let i = NIcon, h = NButton, b = NPopconfirm;
4677
5164
  return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(g), null, {
@@ -4679,7 +5166,7 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
4679
5166
  trigger: withCtx(() => [createVNode(h, {
4680
5167
  onClick: r[0] ||= withModifiers(() => {}, ["stop"]),
4681
5168
  text: "",
4682
- class: "!absolute bottom-2 right-2"
5169
+ class: "!absolute bottom-1.5 right-2"
4683
5170
  }, {
4684
5171
  default: withCtx(() => [createVNode(i, {
4685
5172
  color: "var(--van-text-color-2)",
@@ -4710,7 +5197,7 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
4710
5197
  ref_key: "cover",
4711
5198
  ref: p
4712
5199
  }, null, 8, ["src"])), createElementVNode("div", _hoisted_7, [renderSlot(n.$slots, "smallTopInfo", {}, void 0, !0)])]),
4713
- createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [createElementVNode("span", _hoisted_10, toDisplayString(n.item.title), 1)]), createElementVNode("div", _hoisted_11, [renderSlot(n.$slots, "default", {}, void 0, !0)])]),
5200
+ createElementVNode("div", _hoisted_8, [createElementVNode("div", _hoisted_9, [createElementVNode("span", _hoisted_10, toDisplayString(S.value), 1)]), createElementVNode("div", _hoisted_11, [renderSlot(n.$slots, "default", {}, void 0, !0)])]),
4714
5201
  createVNode(unref(v))
4715
5202
  ], 14, _hoisted_5)) : (openBlock(), createElementBlock("div", {
4716
5203
  key: 0,
@@ -4733,12 +5220,12 @@ var _hoisted_1 = ["disabled"], _hoisted_2 = { class: "flex absolute flex-col w-[
4733
5220
  ref_key: "cover",
4734
5221
  ref: p
4735
5222
  }, null, 8, ["src"]),
4736
- createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(n.item.title), 1), createElementVNode("div", _hoisted_4, [renderSlot(n.$slots, "default", {}, void 0, !0)])]),
5223
+ createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(S.value), 1), createElementVNode("div", _hoisted_4, [renderSlot(n.$slots, "default", {}, void 0, !0)])]),
4737
5224
  createVNode(unref(v))
4738
5225
  ], 14, _hoisted_1))], 64);
4739
5226
  };
4740
5227
  }
4741
- }), unitCard_default = /* @__PURE__ */ __plugin_vue_export_helper_default(unitCard_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-631189ad"]]), translate_exports = /* @__PURE__ */ __export({ createDateString: () => createDateString }), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
5228
+ }), [["__scopeId", "data-v-58777aa0"]]), translate_exports = /* @__PURE__ */ __export({ createDateString: () => createDateString }), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
4742
5229
  const createDateString = (e = (0, import_dayjs_min.default)()) => {
4743
5230
  let n = (0, import_dayjs_min.default)(), r = e.isSame(n, "year"), i = r && e.isSame(n, "month"), a = i && e.date() === n.date(), o = i && e.date() === n.date() - 1, s = "";
4744
5231
  return r || (s += "YYYY年 "), a ? s += "今天 " : o ? s += "昨天 " : s += "M月D日 ", s += "HH:mm", e.format(s);
@@ -4781,7 +5268,7 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
4781
5268
  };
4782
5269
  return l;
4783
5270
  }, createDialog = (e) => {
4784
- let n = noop$1, r = noop$1, i = new Promise((e, i) => {
5271
+ let n = noop, r = noop, i = new Promise((e, i) => {
4785
5272
  n = e, r = i;
4786
5273
  }), a = shallowRef(!0), [o, s, c] = useZIndex(a);
4787
5274
  console.log("[createDialog] after useZIndex");
@@ -4810,11 +5297,11 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
4810
5297
  a.value = !1, f();
4811
5298
  },
4812
5299
  async onPositiveClick(n) {
4813
- if (await (e.onPositiveClick ?? noop$1)(n) === !1) return !1;
5300
+ if (await (e.onPositiveClick ?? noop)(n) === !1) return !1;
4814
5301
  p();
4815
5302
  },
4816
5303
  async onNegativeClick(n) {
4817
- let r = await (e.onNegativeClick ?? noop$1)(n);
5304
+ let r = await (e.onNegativeClick ?? noop)(n);
4818
5305
  if (r) return r;
4819
5306
  f();
4820
5307
  },
@@ -4829,45 +5316,27 @@ const createLoadingMessage = (e = "加载中", n = window.$message) => {
4829
5316
  }
4830
5317
  });
4831
5318
  return console.log("[createDialog] after const dialog"), i.ins = m, i;
4832
- };
4833
- var defaultConfig = {
4834
- "app.read.preloadImageNumbers": 2,
4835
- "app.read.watchFullscreen": !0,
4836
- "app.read.twoImage": !1,
4837
- "app.search.showAIProject": !0,
4838
- "app.darkMode": !1,
4839
- "app.recordHistory": !0
4840
- };
4841
- const useConfig = defineStore("config", (e) => {
4842
- let n = useLocalStorage("app.config", defaultConfig);
4843
- n.value = defaultsDeep(n.value, defaultConfig);
4844
- let r = /* @__PURE__ */ usePreferredDark(), a = computed(() => n.value["app.darkMode"] || r.value), o = e.action((e, n) => useLocalStorage(`${e}.config`, fromPairs(entries(n).map(([n, r]) => [`${e}.${n}`, r]))).value, "useCustomConfig");
4845
- return {
4846
- ...n.value,
4847
- isDark: a,
4848
- $useCustomConfig: o
4849
- };
4850
- }), definePlugin = (e) => {
5319
+ }, definePlugin = (e) => {
4851
5320
  if (isFunction(e)) var n = e(window.$$safe$$);
4852
5321
  else var n = e;
4853
5322
  console.log("[definePlugin] new plugin defining...", n);
4854
5323
  let { name: r, content: i, image: a, search: o, user: s } = n;
4855
5324
  if (i) {
4856
- for (let [e, n] of entries(i.layout)) ContentPage.setViewLayout(e, n);
4857
- for (let [e, n] of entries(i.itemCard)) ContentPage.setItemCard(e, n);
4858
- for (let [e, n] of entries(i.contentPage)) ContentPage.setContentPage(e, n);
4859
- for (let [e, n] of entries(i.commentRow)) Comment.setCommentRow(e, n);
5325
+ for (let [e, n] of Object.entries(i.layout ?? {})) ContentPage.setViewLayout(e, n);
5326
+ for (let [e, n] of Object.entries(i.itemCard ?? {})) ContentPage.setItemCard(e, n);
5327
+ for (let [e, n] of Object.entries(i.contentPage ?? {})) ContentPage.setContentPage(e, n);
5328
+ for (let [e, n] of Object.entries(i.commentRow ?? {})) Comment.setCommentRow(e, n);
4860
5329
  }
4861
5330
  if (a) {
4862
- if (a.forks) for (let [e, n] of entries(a.forks)) Image$1.setFork(r, e, n);
4863
- if (a.process) for (let [e, n] of entries(a.process)) Image$1.setProcess(r, e, n);
5331
+ if (a.forks) for (let [e, n] of Object.entries(a.forks)) Image$1.setFork(r, e, n);
5332
+ if (a.process) for (let [e, n] of Object.entries(a.process)) Image$1.setProcess(r, e, n);
4864
5333
  }
4865
5334
  if (o) {
4866
5335
  if (o.categories) for (let e of o.categories) ContentPage.setCategories(r, e);
4867
5336
  if (o.tabbar) for (let e of o.tabbar) ContentPage.setTabbar(r, e);
4868
5337
  }
4869
5338
  s && User.userEditorBase.set(r, s.edit), SharedFunction.callWitch("addPlugin", "core", n);
4870
- }, Comp = {
5339
+ }, _ = void 0, Comp = {
4871
5340
  Await: await_default,
4872
5341
  Loading: loading_default,
4873
5342
  Content: content_default,
@@ -4880,7 +5349,6 @@ const useConfig = defineStore("config", (e) => {
4880
5349
  ToggleIcon: toggleIcon_default,
4881
5350
  Var: var_default,
4882
5351
  Waterfall: waterfall_default,
4883
- user: { PreviewUser: previewUser_default },
4884
5352
  content: { UnitCard: unitCard_default }
4885
5353
  };
4886
5354
  let Utils;
@@ -4891,6 +5359,6 @@ const Store = {
4891
5359
  useTemp,
4892
5360
  useConfig
4893
5361
  };
4894
- export { Comp, Store, Utils, definePlugin, uni };
5362
+ export { Comp, Store, Utils, _, definePlugin, uni };
4895
5363
 
4896
5364
  //# sourceMappingURL=bundle.js.map