asai-vue-host 0.0.22 → 0.0.24

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.
@@ -9,8 +9,8 @@ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9
9
  if (typeof e.value == "function") {
10
10
  let n = 0;
11
11
  const o = 300, a = (s) => {
12
- const i = performance.now();
13
- i - n < o ? (e.value(s), n = 0) : n = i;
12
+ const r = performance.now();
13
+ r - n < o ? (e.value(s), n = 0) : n = r;
14
14
  };
15
15
  t.__dbPointerDownHandler = a, t.addEventListener("pointerdown", a);
16
16
  }
@@ -36,11 +36,11 @@ function xe(t, e) {
36
36
  function s(b) {
37
37
  n("touch-none", b);
38
38
  }
39
- function i(b) {
39
+ function r(b) {
40
40
  const k = window.event || b;
41
41
  return k?.preventDefault(), k?.stopPropagation(), !0;
42
42
  }
43
- function r(b) {
43
+ function c(b) {
44
44
  const k = window.event || b;
45
45
  k.cancelable && (k?.preventDefault(), k?.stopPropagation());
46
46
  }
@@ -49,17 +49,17 @@ function xe(t, e) {
49
49
  b(), cancelAnimationFrame(e.timeout), e.timeout = null;
50
50
  }));
51
51
  }
52
- function c() {
52
+ function i() {
53
53
  return "ontouchstart" in window || navigator.maxTouchPoints;
54
54
  }
55
55
  function f(b) {
56
- c() && e.touchstat !== 1 && (b.addEventListener("touchstart", _, !0), e.touchstat = 1);
56
+ i() && e.touchstat !== 1 && (b.addEventListener("touchstart", _, !0), e.touchstat = 1);
57
57
  }
58
58
  function h(b) {
59
- c() && e.touchstat !== 2 && (b.addEventListener("touchmove", i), a(b), e.touchstat = 2);
59
+ i() && e.touchstat !== 2 && (b.addEventListener("touchmove", r), a(b), e.touchstat = 2);
60
60
  }
61
61
  function g(b) {
62
- c() && e.touchstat !== 3 && (b.removeEventListener("touchmove", i), s(b), e.touchstat = 3);
62
+ i() && e.touchstat !== 3 && (b.removeEventListener("touchmove", r), s(b), e.touchstat = 3);
63
63
  }
64
64
  function _(b) {
65
65
  document.body.addEventListener("touchmove", $), document.body.addEventListener("touchend", y), e.dragttm = Date.now();
@@ -71,9 +71,9 @@ function xe(t, e) {
71
71
  document.body.removeEventListener("touchmove", $), document.body.removeEventListener("touchend", y), e.dragtstat = 0;
72
72
  }
73
73
  return {
74
- eStop: i,
75
- canTouch: c,
76
- eStopTouch: r,
74
+ eStop: r,
75
+ canTouch: i,
76
+ eStopTouch: c,
77
77
  setTouchNone: a,
78
78
  setTouchAuto: s,
79
79
  fnPThrottle: d,
@@ -89,22 +89,22 @@ const fe = {}, jt = {
89
89
  e.value
90
90
  );
91
91
  o(t);
92
- let i = !1, r = 0, d = 0, c = 0, f = 0;
92
+ let r = !1, c = 0, d = 0, i = 0, f = 0;
93
93
  typeof e.value.domarea == "string" ? fe.dragAreaDom = document.getElementById(e.value.domarea) : fe.dragAreaDom = t;
94
94
  const h = ($) => {
95
- console.log("handleDown", fe, $), a(t), i = !0;
95
+ console.log("handleDown", fe, $), a(t), r = !0;
96
96
  const y = fe.dragAreaDom.getBoundingClientRect();
97
- fe.dragAreaDom.style.position = "absolute", fe.dragAreaDom.style.transform = `translate(${y.x}px, ${y.y}px)`, r = $.clientX - y.x, d = $.clientY - y.y, t.style.cursor = "grabbing", document.addEventListener("pointermove", g), document.addEventListener("pointerup", _);
97
+ fe.dragAreaDom.style.position = "absolute", fe.dragAreaDom.style.transform = `translate(${y.x}px, ${y.y}px)`, c = $.clientX - y.x, d = $.clientY - y.y, t.style.cursor = "grabbing", document.addEventListener("pointermove", g), document.addEventListener("pointerup", _);
98
98
  }, g = ($) => {
99
99
  n(() => {
100
- if (i) {
101
- c = $.clientX - r, f = $.clientY - d;
100
+ if (r) {
101
+ i = $.clientX - c, f = $.clientY - d;
102
102
  const y = window.innerWidth - fe.dragAreaDom.offsetWidth, b = window.innerHeight - fe.dragAreaDom.offsetHeight;
103
- c = Math.max(0, Math.min(c, y)), f = Math.max(0, Math.min(f, b)), fe.dragAreaDom.style.transform = `translate(${c}px, ${f}px)`;
103
+ i = Math.max(0, Math.min(i, y)), f = Math.max(0, Math.min(f, b)), fe.dragAreaDom.style.transform = `translate(${i}px, ${f}px)`;
104
104
  }
105
105
  });
106
106
  }, _ = () => {
107
- i = !1, t.style.cursor = "grab", s(t), document.removeEventListener("pointermove", g), document.removeEventListener("pointerup", _);
107
+ r = !1, t.style.cursor = "grab", s(t), document.removeEventListener("pointermove", g), document.removeEventListener("pointerup", _);
108
108
  };
109
109
  t.addEventListener("pointerdown", h), fe.unmounted = () => {
110
110
  t.removeEventListener("pointerdown", h);
@@ -124,7 +124,7 @@ const fe = {}, jt = {
124
124
  e.value
125
125
  );
126
126
  o(t);
127
- let i = !1, r = { x: 0, y: 0 }, d = { x: 0, y: 0 }, c = null, f = 1;
127
+ let r = !1, c = { x: 0, y: 0 }, d = { x: 0, y: 0 }, i = null, f = 1;
128
128
  const h = (e.value?.dom ? document.getElementById(e.value.dom) : "") || t, g = (e.value?.domarea ? document.getElementById(e.value.domarea) : "") || h, _ = (e.value?.dommask ? document.getElementById(e.value.dommask) : "") || (e.value?.ujt?.$global?.sys?.zoomid ? document.getElementById(e.value.ujt.$global.sys.zoomid) : "") || document.getElementById("asaizoomarea") || document.body, $ = () => _ && (e.value?.scale || e.value?.ujt?.$global?.scale) || 1, y = (x) => {
129
129
  if (!_) return;
130
130
  if (a(t), x.preventDefault(), f = $(), e.value?.pos)
@@ -143,17 +143,17 @@ const fe = {}, jt = {
143
143
  y: 0
144
144
  };
145
145
  }
146
- i = !0, c = _.getBoundingClientRect();
146
+ r = !0, i = _.getBoundingClientRect();
147
147
  let L, S;
148
- L = x.clientX, S = x.clientY, r = {
149
- x: (L - c.left) / f - d.x,
150
- y: (S - c.top) / f - d.y
148
+ L = x.clientX, S = x.clientY, c = {
149
+ x: (L - i.left) / f - d.x,
150
+ y: (S - i.top) / f - d.y
151
151
  }, h.setPointerCapture(x.pointerId), document.addEventListener("pointermove", b), document.addEventListener("pointerup", k), document.addEventListener("pointercancel", k);
152
152
  }, b = (x) => {
153
- if (!i || !c) return;
153
+ if (!r || !i) return;
154
154
  let L, S;
155
155
  L = x.clientX, S = x.clientY, f = $();
156
- const w = (L - c.left) / f - r.x, P = (S - c.top) / f - r.y, C = _.offsetWidth - g.offsetWidth, O = _.offsetHeight - g.offsetHeight;
156
+ const w = (L - i.left) / f - c.x, P = (S - i.top) / f - c.y, C = _.offsetWidth - g.offsetWidth, O = _.offsetHeight - g.offsetHeight;
157
157
  n(() => {
158
158
  e.value.pos ? (e.value.pos.x = +Math.max(
159
159
  0,
@@ -170,10 +170,10 @@ const fe = {}, jt = {
170
170
  ).toFixed(3)}px)`;
171
171
  });
172
172
  }, k = (x) => {
173
- s(t), x instanceof PointerEvent && h.hasPointerCapture(x.pointerId) && (i = !1, h.releasePointerCapture(x.pointerId)), document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k);
173
+ s(t), x instanceof PointerEvent && h.hasPointerCapture(x.pointerId) && (r = !1, h.releasePointerCapture(x.pointerId)), document.removeEventListener("pointermove", b), document.removeEventListener("pointerup", k), document.removeEventListener("pointercancel", k);
174
174
  };
175
175
  h.addEventListener("pointerdown", y);
176
- const M = () => c = null;
176
+ const M = () => i = null;
177
177
  window.addEventListener("resize", M), ze.unmounted = () => {
178
178
  h.removeEventListener("pointerdown", y), window.removeEventListener("resize", M);
179
179
  };
@@ -211,17 +211,17 @@ const At = {
211
211
  n.keyboard.params || (n.keyboard.params = {});
212
212
  }, s = function(g) {
213
213
  g?.setAttribute("inputmode", "none"), g?.style?.setProperty("ime-mode", "disabled", "important");
214
- }, i = function(g) {
215
- g?.removeAttribute("inputmode"), g?.style?.setProperty("ime-mode", "normal", "important");
216
214
  }, r = function(g) {
215
+ g?.removeAttribute("inputmode"), g?.style?.setProperty("ime-mode", "normal", "important");
216
+ }, c = function(g) {
217
217
  s(g), n.keyboard.params.ot && (n.keyboard.params.ot.fndscb = () => {
218
- i(g), n.keyboard.params.ot.fndscb = null;
218
+ r(g), n.keyboard.params.ot.fndscb = null;
219
219
  });
220
220
  }, d = function(g) {
221
221
  ie.monacoDom = g.target.closest(".askey-luaeditor"), ie.monacoDivDom = ie.monacoDom.querySelector(
222
222
  ".native-edit-context"
223
- ), r(ie.monacoDivDom), ie.monacoHoverDom = ie.monacoDom.querySelector(".monaco-hover"), r(ie.monacoHoverDom), ie.monacoTextareaDom = ie.monacoDom.querySelector("textarea"), r(ie.monacoTextareaDom);
224
- }, c = function(g) {
223
+ ), c(ie.monacoDivDom), ie.monacoHoverDom = ie.monacoDom.querySelector(".monaco-hover"), c(ie.monacoHoverDom), ie.monacoTextareaDom = ie.monacoDom.querySelector("textarea"), c(ie.monacoTextareaDom);
224
+ }, i = function(g) {
225
225
  return o.data.sys.keyboard?.nokeytypes?.some(
226
226
  (_) => g.target?.closest(_)
227
227
  );
@@ -230,7 +230,7 @@ const At = {
230
230
  o.data.sys.keyboard?.askeytypes || {}
231
231
  )?.find((_) => g.target?.closest(_));
232
232
  }, h = function(g) {
233
- if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x = g.clientX + (e.value?.auto?.x || 0), n.keyboard.areastyle.y = g.clientY + (e.value?.auto?.y || 0)), n.keyboard.params.ot = {}, !c(g)) if (g.target?.closest(".portaskeyboard"))
233
+ if (n.keyboard.params?.ot?.fnnumcb?.(), n.keyboard.params?.ot?.fndscb?.(), a(), e.value?.auto && (n.keyboard.areastyle.x = g.clientX + (e.value?.auto?.x || 0), n.keyboard.areastyle.y = g.clientY + (e.value?.auto?.y || 0)), n.keyboard.params.ot = {}, !i(g)) if (g.target?.closest(".portaskeyboard"))
234
234
  n.keyboard.params.ot.portaskeyboard = !0;
235
235
  else if (g.target?.closest(".askey-luaeditor"))
236
236
  d(g), e.value?.style && (n.keyboard.params.ot.style = e.value.style), Object.assign(n.keyboard.params, {
@@ -240,7 +240,7 @@ const At = {
240
240
  else if (["textarea", "text", "number", "password"].includes(
241
241
  g.target?.type
242
242
  ) && !g.target?.disabled) {
243
- if (ie.monacoDivDom = g.target, r(ie.monacoDivDom), ie.monacoDivDom.type === "number") {
243
+ if (ie.monacoDivDom = g.target, c(ie.monacoDivDom), ie.monacoDivDom.type === "number") {
244
244
  n.keyboard.showkeyboard = ".askey-number", n.keyboard.params.ot.isnumber = !0, ie.monacoDivDom.type = "text";
245
245
  let _ = requestAnimationFrame(() => {
246
246
  ie.monacoDivDom.setSelectionRange(
@@ -288,22 +288,22 @@ const At = {
288
288
  );
289
289
  n(t);
290
290
  const s = e.value.long ? 1e3 : 500;
291
- let i = null, r = !1, d = 0, c = 0;
291
+ let r = null, c = !1, d = 0, i = 0;
292
292
  const f = 10, h = (y) => {
293
- o(t), e.value.prevent && y.preventDefault(), r = !0, y?.touches?.[0] ? (d = y.touches[0].clientX, c = y.touches[0].clientY) : (d = y.clientX, c = y.clientY), e.value.press && e.value.press(y), i = window.setTimeout(() => {
294
- r && e.value.hold && e.value.hold(y);
293
+ o(t), e.value.prevent && y.preventDefault(), c = !0, y?.touches?.[0] ? (d = y.touches[0].clientX, i = y.touches[0].clientY) : (d = y.clientX, i = y.clientY), e.value.press && e.value.press(y), r = window.setTimeout(() => {
294
+ c && e.value.hold && e.value.hold(y);
295
295
  }, s);
296
296
  }, g = (y) => {
297
- a(t), i !== null && (clearTimeout(i), i = null), r && (e.value.release && e.value.release(y), r = !1);
297
+ a(t), r !== null && (clearTimeout(r), r = null), c && (e.value.release && e.value.release(y), c = !1);
298
298
  }, $ = {
299
299
  down: h,
300
300
  up: g,
301
301
  move: (y) => {
302
- if (!r) return;
302
+ if (!c) return;
303
303
  let b = 0, k = 0;
304
304
  y?.touches?.[0] ? (b = y.touches[0].clientX, k = y.touches[0].clientY) : (b = y.clientX, k = y.clientY);
305
- const M = Math.abs(b - d), x = Math.abs(k - c);
306
- (M > f || x > f) && (i !== null && (clearTimeout(i), i = null), r = !1);
305
+ const M = Math.abs(b - d), x = Math.abs(k - i);
306
+ (M > f || x > f) && (r !== null && (clearTimeout(r), r = null), c = !1);
307
307
  }
308
308
  };
309
309
  t.addEventListener("pointerdown", h), t.addEventListener("pointerup", g), t.addEventListener("pointercancel", g), t.addEventListener("pointerleave", g), t._pressHandlers = $;
@@ -322,13 +322,13 @@ const At = {
322
322
  e.value
323
323
  );
324
324
  o(t);
325
- const { ujt: i, size: r, scale: d } = e.value;
326
- let c = { x: 0, y: 0 }, f;
325
+ const { ujt: r, size: c, scale: d } = e.value;
326
+ let i = { x: 0, y: 0 }, f;
327
327
  const h = {
328
- width: i?.$global?.sys?.zoomwidth || 1920,
329
- height: i?.$global?.sys?.zoomheight || 1200
330
- }, g = () => d || i?.$global?.scale || 1;
331
- let _ = !1, $, y, b, k, M = r || { w: 0, h: 0 };
328
+ width: r?.$global?.sys?.zoomwidth || 1920,
329
+ height: r?.$global?.sys?.zoomheight || 1200
330
+ }, g = () => d || r?.$global?.scale || 1;
331
+ let _ = !1, $, y, b, k, M = c || { w: 0, h: 0 };
332
332
  const x = (C) => ({ clientX: C.clientX, clientY: C.clientY }), L = (C) => {
333
333
  a(t), C.preventDefault(), f = g(), _ = !0;
334
334
  const { clientX: O, clientY: j } = x(C);
@@ -336,13 +336,13 @@ const At = {
336
336
  const R = window.getComputedStyle(t).transform?.split(", ");
337
337
  if (R && R.length > 2) {
338
338
  const B = R.pop().slice(0, -1), J = R.pop();
339
- c = {
339
+ i = {
340
340
  x: parseFloat(J),
341
341
  y: parseFloat(B)
342
342
  };
343
343
  } else
344
- c = { x: 0, y: 0 };
345
- t.style.transform = `translate(${c.x}px,${c.y}px)`, C instanceof PointerEvent && t.setPointerCapture(C.pointerId), document.addEventListener(
344
+ i = { x: 0, y: 0 };
345
+ t.style.transform = `translate(${i.x}px,${i.y}px)`, C instanceof PointerEvent && t.setPointerCapture(C.pointerId), document.addEventListener(
346
346
  "pointermove",
347
347
  S
348
348
  ), document.addEventListener("pointerup", w), document.addEventListener(
@@ -354,10 +354,10 @@ const At = {
354
354
  const { clientX: O, clientY: j } = x(C), T = (O - window.scrollX - $) / f, R = (j - window.scrollY - y) / f;
355
355
  M.w = +Math.min(
356
356
  Math.max(88, b + T),
357
- h.width - c.x
357
+ h.width - i.x
358
358
  ).toFixed(3), M.h = +Math.min(
359
359
  Math.max(58, k + R),
360
- h.height - c.y
360
+ h.height - i.y
361
361
  ).toFixed(3), t.style.width = M.w + "px", t.style.height = M.h + "px";
362
362
  });
363
363
  }, w = (C) => {
@@ -396,12 +396,12 @@ const At = {
396
396
  e.value
397
397
  );
398
398
  o(t);
399
- const { ujt: i, scale: r, id: d, type: c, cut: f, min: h } = e.value, g = () => r || i?.$global?.scale || 1, _ = {
400
- width: i?.$global?.sys?.zoomwidth || 1920,
401
- height: i?.$global?.sys?.zoomheight || 1200
399
+ const { ujt: r, scale: c, id: d, type: i, cut: f, min: h } = e.value, g = () => c || r?.$global?.scale || 1, _ = {
400
+ width: r?.$global?.sys?.zoomwidth || 1920,
401
+ height: r?.$global?.sys?.zoomheight || 1200
402
402
  };
403
403
  let $ = f || 0;
404
- c ? _.height = _.height - $ : _.width = _.width - $;
404
+ i ? _.height = _.height - $ : _.width = _.width - $;
405
405
  function y() {
406
406
  return typeof h == "function" ? h() : typeof h?.value == "number" ? h?.value : typeof h == "number" ? h : 100;
407
407
  }
@@ -411,10 +411,10 @@ const At = {
411
411
  console.error(`未找到 ID 为 ${d} 的元素`);
412
412
  return;
413
413
  }
414
- a(t), T.preventDefault(), k = g(), M = !0, c ? (S = T.clientY, w = b.offsetHeight) : (x = T.clientX, L = b.offsetWidth), document.addEventListener("pointermove", C), document.addEventListener("pointerup", O);
414
+ a(t), T.preventDefault(), k = g(), M = !0, i ? (S = T.clientY, w = b.offsetHeight) : (x = T.clientX, L = b.offsetWidth), document.addEventListener("pointermove", C), document.addEventListener("pointerup", O);
415
415
  }, C = (T) => {
416
416
  M && n(() => {
417
- if (c) {
417
+ if (i) {
418
418
  const R = (S - T.clientY) / k, B = Math.max(y(), w + R);
419
419
  b.style.height = Math.min(B, _.height) + "px", b.style.minHeight = Math.min(B, _.height) + "px";
420
420
  } else {
@@ -477,7 +477,7 @@ const At = {
477
477
  baseURL: a.As.getUrlByCfg(o.link.api[e], 0),
478
478
  Userinfo: o.user.info,
479
479
  ujt: t
480
- }), a.api[e].ictReq(async ({ url: s, opt: i }) => (i?.mm && o?.code?.token && (i.headers.Userinfo = `${o.code.token}`), { url: s, opt: i })), a.api[e].ictRes((s) => ([908].includes(s.code) ? s.data = "" : [909, 200].includes(s.code), s))), a.api[e];
480
+ }), a.api[e].ictReq(async ({ url: s, opt: r }) => (r?.mm && o?.code?.token && (r.headers.Userinfo = `${o.code.token}`), { url: s, opt: r })), a.api[e].ictRes((s) => ([908].includes(s.code) ? s.data = "" : [909, 200].includes(s.code), s))), a.api[e];
481
481
  }, Nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
482
482
  __proto__: null,
483
483
  default: Bt
@@ -691,10 +691,10 @@ const At = {
691
691
  let n = "", o;
692
692
  e ? (e < 9999999999 && (e = e * 1e3), o = new Date(e)) : o = /* @__PURE__ */ new Date();
693
693
  const [a, s] = t > 9 ? t + "" : "0" + t;
694
- function i(r) {
695
- return +a <= r && +s >= r;
694
+ function r(c) {
695
+ return +a <= c && +s >= c;
696
696
  }
697
- return i(1) && (n += ("00" + o.getFullYear()).slice(-4) + "-"), i(2) && (n += ("00" + (o.getMonth() + 1)).slice(-2) + "-"), i(3) && (n += ("00" + o.getDate()).slice(-2) + " "), i(4) && (n += ("00" + o.getHours()).slice(-2) + ":"), i(5) && (n += ("00" + o.getMinutes()).slice(-2) + ":"), i(6) && (n += ("00" + o.getSeconds()).slice(-2) + "."), i(7) && (n += ("000" + o.getMilliseconds()).slice(-3) + " "), i(9) ? n.replace(/\D/g, "") : n && n.substring(0, n.length - 1);
697
+ return r(1) && (n += ("00" + o.getFullYear()).slice(-4) + "-"), r(2) && (n += ("00" + (o.getMonth() + 1)).slice(-2) + "-"), r(3) && (n += ("00" + o.getDate()).slice(-2) + " "), r(4) && (n += ("00" + o.getHours()).slice(-2) + ":"), r(5) && (n += ("00" + o.getMinutes()).slice(-2) + ":"), r(6) && (n += ("00" + o.getSeconds()).slice(-2) + "."), r(7) && (n += ("000" + o.getMilliseconds()).slice(-3) + " "), r(9) ? n.replace(/\D/g, "") : n && n.substring(0, n.length - 1);
698
698
  },
699
699
  /**
700
700
  * 简化版
@@ -800,12 +800,12 @@ const At = {
800
800
  const n = t.length, o = e.length;
801
801
  let a = "";
802
802
  for (let s = 0; s < n; s++) {
803
- const i = Math.round(Math.random() * 1e3) % o, r = Number(i.toString().slice(-1)) + 1, d = o - r;
804
- let c = t.codePointAt(s);
805
- const f = c % d;
806
- c = (c - f) / d;
807
- const h = c % d;
808
- c = (c - h) / d, a += e[c % d + r] + e[h + r] + e[f + r] + e.charAt(i);
803
+ const r = Math.round(Math.random() * 1e3) % o, c = Number(r.toString().slice(-1)) + 1, d = o - c;
804
+ let i = t.codePointAt(s);
805
+ const f = i % d;
806
+ i = (i - f) / d;
807
+ const h = i % d;
808
+ i = (i - h) / d, a += e[i % d + c] + e[h + c] + e[f + c] + e.charAt(r);
809
809
  }
810
810
  return a;
811
811
  },
@@ -815,9 +815,9 @@ const At = {
815
815
  const n = t.length, o = e.length;
816
816
  let a = "";
817
817
  for (let s = 0; s < n; s++) {
818
- const i = e.indexOf(t[s + 3]), r = Number(i.toString().slice(-1)) + 1, d = o - r;
818
+ const r = e.indexOf(t[s + 3]), c = Number(r.toString().slice(-1)) + 1, d = o - c;
819
819
  a += String?.fromCodePoint(
820
- (e.indexOf(t[s++]) - r) * d * d + (e.indexOf(t[s++]) - r) * d + (e.indexOf(t[s++]) - r)
820
+ (e.indexOf(t[s++]) - c) * d * d + (e.indexOf(t[s++]) - c) * d + (e.indexOf(t[s++]) - c)
821
821
  );
822
822
  }
823
823
  return a;
@@ -957,7 +957,7 @@ const At = {
957
957
  };
958
958
  return o.location.query.fl && (z[g()] = () => o.location.query.fl), z;
959
959
  }
960
- function i(z = "") {
960
+ function r(z = "") {
961
961
  if (typeof z == "string" && z) {
962
962
  const I = z.split(".");
963
963
  if (I.length > 1) {
@@ -972,13 +972,13 @@ const At = {
972
972
  }
973
973
  return "";
974
974
  }
975
- function r() {
975
+ function c() {
976
976
  return t.opt.dty == "file" ? "/api/asaichannel/file" : t.opt.dty == "sqlite" ? "/api/asaichannel/sqlite" : "/api/asaichannel/json";
977
977
  }
978
978
  function d() {
979
979
  return Object.keys(n[t.opt.channel].rfdata.rule);
980
980
  }
981
- function c() {
981
+ function i() {
982
982
  return n[t.opt.channel].cfg.map.sn || "sn";
983
983
  }
984
984
  function f() {
@@ -1001,7 +1001,7 @@ const At = {
1001
1001
  t.opt.dty == "client" ? o.msg.fn({
1002
1002
  type: "err",
1003
1003
  con: e.lg("asai.failrequest")
1004
- }) : e.api.webserver.apiPost(r() + z, I, X).then((te) => {
1004
+ }) : e.api.webserver.apiPost(c() + z, I, X).then((te) => {
1005
1005
  ne(te?.data);
1006
1006
  }).catch(Q);
1007
1007
  });
@@ -1015,7 +1015,7 @@ const At = {
1015
1015
  e.initmodel(
1016
1016
  `${t.opt.model}/channel/${t.opt.channel}/file/${I?.show}.txt`
1017
1017
  ).then((le) => {
1018
- ce[c()] = I?.show, ce[_()] = le, ne([ce]);
1018
+ ce[i()] = I?.show, ce[_()] = le, ne([ce]);
1019
1019
  }).catch(Q);
1020
1020
  }).catch(Q) : e.initmodel(
1021
1021
  `${t.opt.model}/channel/${t.opt.channel}/class/${I?.fl}.json`
@@ -1024,10 +1024,10 @@ const At = {
1024
1024
  te?.list || {}
1025
1025
  )?.map(([le, ye]) => ({
1026
1026
  ...ye,
1027
- [c()]: le
1027
+ [i()]: le
1028
1028
  }));
1029
1029
  ne(ce);
1030
- }).catch(Q) : e.api.webserver.apiGet(r() + z, I, X).then((te) => {
1030
+ }).catch(Q) : e.api.webserver.apiGet(c() + z, I, X).then((te) => {
1031
1031
  ne(te?.data);
1032
1032
  }).catch(Q);
1033
1033
  });
@@ -1133,7 +1133,7 @@ const At = {
1133
1133
  {
1134
1134
  ...w(),
1135
1135
  svty: I,
1136
- fd: t?.opt?.fd || c() + "-" + $(),
1136
+ fd: t?.opt?.fd || i() + "-" + $(),
1137
1137
  ps: n[t.opt.channel].cmPageSize,
1138
1138
  ...o.location?.query
1139
1139
  },
@@ -1149,7 +1149,7 @@ const At = {
1149
1149
  z || k(
1150
1150
  {
1151
1151
  ...w(),
1152
- fd: c(),
1152
+ fd: i(),
1153
1153
  ...o.location?.query,
1154
1154
  sx: "",
1155
1155
  sxty: "",
@@ -1187,11 +1187,11 @@ const At = {
1187
1187
  function Me(z, I = 0) {
1188
1188
  t.opt.tyhash && ue("show", I), e.setquery(
1189
1189
  {
1190
- show: z[c()],
1190
+ show: z[i()],
1191
1191
  showty: ""
1192
1192
  },
1193
1193
  1
1194
- ), O(z[c()]);
1194
+ ), O(z[i()]);
1195
1195
  }
1196
1196
  function lt() {
1197
1197
  !o.location.query.ssty && o.location.query.ss && (o.location.query.ssty = n[t.opt.channel]?.cfg.sss?.[1]), e.setquery({ pg: 1 }, 1), n[t.opt.channel].fetch(0);
@@ -1200,7 +1200,7 @@ const At = {
1200
1200
  if (Ie()) {
1201
1201
  const X = I || n[t.opt.channel].rfdata.data;
1202
1202
  y(
1203
- "/insert/" + X[c()] + P(),
1203
+ "/insert/" + X[i()] + P(),
1204
1204
  X,
1205
1205
  n[t.opt.channel].cfg?.api?.opt || {}
1206
1206
  ).then((ne) => {
@@ -1240,7 +1240,7 @@ const At = {
1240
1240
  if (Ie()) {
1241
1241
  const X = I || n[t.opt.channel].rfdata.data;
1242
1242
  y(
1243
- "/update/" + X[c()] + "/" + P(),
1243
+ "/update/" + X[i()] + "/" + P(),
1244
1244
  X,
1245
1245
  n[t.opt.channel].cfg?.api?.opt || {}
1246
1246
  ).then((ne) => {
@@ -1305,15 +1305,15 @@ const At = {
1305
1305
  const Re = _e[Se];
1306
1306
  Se === 0 ? (X = Re.split(a.data.asai.rulebook.bksn)[1].split(a.data.asai.rulebook.bkty)[0], await k({
1307
1307
  ...w(),
1308
- field: c(),
1309
- fd: c(),
1308
+ field: i(),
1309
+ fd: i(),
1310
1310
  ps: 9999999,
1311
1311
  fl: X
1312
1312
  }).then((Fe) => {
1313
1313
  const We = Fe?.data || Fe;
1314
1314
  if (Array.isArray(We)) {
1315
1315
  const mt = We.map(
1316
- (ht) => ht[c()]
1316
+ (ht) => ht[i()]
1317
1317
  );
1318
1318
  ne.push(...mt || []);
1319
1319
  }
@@ -1327,7 +1327,7 @@ const At = {
1327
1327
  a.data.asai.rulebook.bkds
1328
1328
  ), I(Q, 4, te[0]), te = te[1].split(
1329
1329
  a.data.asai.rulebook.bkco
1330
- ), I(Q, 5, te[0]), I(Q, 6, te[1]), ne.includes(Q[c()]) ? n[t.opt.channel].cfg?.imex?.type == 1 && await y(
1330
+ ), I(Q, 5, te[0]), I(Q, 6, te[1]), ne.includes(Q[i()]) ? n[t.opt.channel].cfg?.imex?.type == 1 && await y(
1331
1331
  "/update/" + Q[n[t.opt.channel].cfg.imex.keys[1]] + P(),
1332
1332
  Q
1333
1333
  ) : await y(
@@ -1343,22 +1343,22 @@ const At = {
1343
1343
  return new Promise((X, ne) => {
1344
1344
  const Q = z || n[t.opt.channel].rfdata.data;
1345
1345
  b(
1346
- "/select/" + Q[c()] + "/",
1346
+ "/select/" + Q[i()] + "/",
1347
1347
  w(),
1348
1348
  n[t.opt.channel].cfg?.api?.opt || {}
1349
1349
  ).then((te) => {
1350
- te?.[0]?.[c()] === Q[c()] && te?.[0]?.[h()] === Q[h()] ? (I?.go && n[t.opt.channel].cfg?.url?.login && e.AsRouter.setHref(
1350
+ te?.[0]?.[i()] === Q[i()] && te?.[0]?.[h()] === Q[h()] ? (I?.go && n[t.opt.channel].cfg?.url?.login && e.AsRouter.setHref(
1351
1351
  n[t.opt.channel].cfg?.url?.login
1352
1352
  ), o.user.info = {
1353
- us: te[0][c()],
1353
+ us: te[0][i()],
1354
1354
  lv: te[0][f()]
1355
1355
  }, e.As.localSet(
1356
1356
  "as-user-info",
1357
1357
  e.AsAES.enc(e.As.toStr(o.user.info))
1358
1358
  ), X(te)) : (!I?.nomsg && o.msg.fn({
1359
1359
  type: "err",
1360
- con: e.lg("asai.faillogin", Q[c()])
1361
- }), ne(e.lg("asai.faillogin", Q[c()])));
1360
+ con: e.lg("asai.faillogin", Q[i()])
1361
+ }), ne(e.lg("asai.faillogin", Q[i()])));
1362
1362
  });
1363
1363
  });
1364
1364
  }
@@ -1366,15 +1366,15 @@ const At = {
1366
1366
  return new Promise((X, ne) => {
1367
1367
  const Q = z || n[t.opt.channel].rfdata.data;
1368
1368
  b(
1369
- "/select/" + Q[c()] + "/",
1370
- { ...w(), field: c() },
1369
+ "/select/" + Q[i()] + "/",
1370
+ { ...w(), field: i() },
1371
1371
  n[t.opt.channel].cfg?.api?.opt || {}
1372
1372
  ).then((te) => {
1373
- te?.[0]?.[c()] ? (!I?.nomsg && o.msg.fn({
1373
+ te?.[0]?.[i()] ? (!I?.nomsg && o.msg.fn({
1374
1374
  type: "err",
1375
- con: e.lg("asai.checkhas", Q[c()])
1376
- }), ne(e.lg("asai.checkhas", Q[c()]))) : y(
1377
- "/insert/" + Q[c()] + P(),
1375
+ con: e.lg("asai.checkhas", Q[i()])
1376
+ }), ne(e.lg("asai.checkhas", Q[i()]))) : y(
1377
+ "/insert/" + Q[i()] + P(),
1378
1378
  Q,
1379
1379
  n[t.opt.channel].cfg?.api?.opt || {}
1380
1380
  ).then((ce) => {
@@ -1410,13 +1410,13 @@ const At = {
1410
1410
  getQueryData: w,
1411
1411
  getQueryString: P,
1412
1412
  getChannelKeys: d,
1413
- getSnKey: c,
1413
+ getSnKey: i,
1414
1414
  getLvKey: f,
1415
1415
  getPwKey: h,
1416
1416
  getClassKey: g,
1417
1417
  getTitleKey: $,
1418
1418
  getContentKey: _,
1419
- channelLang: i,
1419
+ channelLang: r,
1420
1420
  channelLogin: pt,
1421
1421
  channelReg: ft
1422
1422
  };
@@ -1447,7 +1447,7 @@ const At = {
1447
1447
  e.AsAES.dec(e.As.localGet("as-user-info"))
1448
1448
  ));
1449
1449
  }
1450
- function i() {
1450
+ function r() {
1451
1451
  return new Promise((f, h) => {
1452
1452
  try {
1453
1453
  o.code.token ? f(o.code.token) : a().then(() => {
@@ -1466,10 +1466,10 @@ const At = {
1466
1466
  }
1467
1467
  });
1468
1468
  }
1469
- function r() {
1469
+ function c() {
1470
1470
  return new Promise((f, h) => {
1471
1471
  try {
1472
- i().then(() => {
1472
+ r().then(() => {
1473
1473
  o.code.token ? d("web").then((g) => {
1474
1474
  f();
1475
1475
  }).catch((g) => {
@@ -1500,7 +1500,7 @@ const At = {
1500
1500
  });
1501
1501
  });
1502
1502
  }
1503
- function c(f = "web") {
1503
+ function i(f = "web") {
1504
1504
  return e.ws[f].wsApi({
1505
1505
  ty: "user/online",
1506
1506
  db: ""
@@ -1510,10 +1510,10 @@ const At = {
1510
1510
  }
1511
1511
  return {
1512
1512
  initChannelUserCode: a,
1513
- initChannelUserToken: i,
1514
- initChannelUserOnline: r,
1513
+ initChannelUserToken: r,
1514
+ initChannelUserOnline: c,
1515
1515
  channelLoginWs: d,
1516
- getChannelOnline: c
1516
+ getChannelOnline: i
1517
1517
  };
1518
1518
  }, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1519
1519
  __proto__: null,
@@ -1523,8 +1523,8 @@ const At = {
1523
1523
  function o(d) {
1524
1524
  return e.ws[d] == null ? (e.useWs(t.ujt, d), e.ws[d].init()) : Promise.resolve();
1525
1525
  }
1526
- function a(d, c, f = null) {
1527
- return n.rooms[d] == null ? (n.rooms[d] = [], e.ws[c].wsWatch(
1526
+ function a(d, i, f = null) {
1527
+ return n.rooms[d] == null ? (n.rooms[d] = [], e.ws[i].wsWatch(
1528
1528
  {
1529
1529
  ty: "chat/web" + d + "broadcast"
1530
1530
  },
@@ -1533,31 +1533,31 @@ const At = {
1533
1533
  }
1534
1534
  ), !0) : !1;
1535
1535
  }
1536
- function s(d, c, f = null) {
1537
- o(c).then(() => {
1536
+ function s(d, i, f = null) {
1537
+ o(i).then(() => {
1538
1538
  Array.isArray(d) ? d.forEach((h) => {
1539
- a(h, c, f);
1540
- }) : typeof d == "string" && a(d, c, f);
1539
+ a(h, i, f);
1540
+ }) : typeof d == "string" && a(d, i, f);
1541
1541
  });
1542
1542
  }
1543
- function i(d, c) {
1543
+ function r(d, i) {
1544
1544
  Array.isArray(d) ? d.forEach((f) => {
1545
- e.ws[c].wsWatchOff({
1545
+ e.ws[i].wsWatchOff({
1546
1546
  ty: "chat/web" + f + "broadcast"
1547
1547
  });
1548
- }) : typeof d == "string" && e.ws[c].wsWatchOff({
1548
+ }) : typeof d == "string" && e.ws[i].wsWatchOff({
1549
1549
  ty: "chat/web" + d + "broadcast"
1550
1550
  });
1551
1551
  }
1552
- function r(d, c, f, h = "") {
1553
- return f.msg ? e.ws[c].wsApi({
1552
+ function c(d, i, f, h = "") {
1553
+ return f.msg ? e.ws[i].wsApi({
1554
1554
  ty: "chat/web" + d + "send",
1555
1555
  db: f
1556
1556
  }).then(() => {
1557
1557
  f.msg = h || "";
1558
1558
  }) : Promise.resolve();
1559
1559
  }
1560
- return { initChatRoom: s, offChatRoom: i, sendChatRoom: r };
1560
+ return { initChatRoom: s, offChatRoom: r, sendChatRoom: c };
1561
1561
  }, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1562
1562
  __proto__: null,
1563
1563
  default: rn
@@ -1571,13 +1571,13 @@ const At = {
1571
1571
  mediaFn: null,
1572
1572
  mediaView: null
1573
1573
  }, n = 0) => {
1574
- function o(c) {
1574
+ function o(i) {
1575
1575
  return new Promise((f, h) => {
1576
1576
  const g = new FileReader();
1577
1577
  g.onload = () => {
1578
1578
  f(g.result);
1579
1579
  }, g.onerror = h, g.readAsDataURL(
1580
- new Blob(c, {
1580
+ new Blob(i, {
1581
1581
  type: "audio/webm"
1582
1582
  })
1583
1583
  );
@@ -1586,21 +1586,21 @@ const At = {
1586
1586
  async function a() {
1587
1587
  try {
1588
1588
  e.mediaWorking = !0;
1589
- const c = {
1589
+ const i = {
1590
1590
  audio: {
1591
1591
  echoCancellation: !0,
1592
1592
  noiseSuppression: !0,
1593
1593
  sampleRate: 44100
1594
1594
  }
1595
1595
  };
1596
- n && (c.video = {
1596
+ n && (i.video = {
1597
1597
  width: { ideal: 1280 },
1598
1598
  height: { ideal: 720 },
1599
1599
  frameRate: { ideal: 30 },
1600
1600
  facingMode: "user"
1601
1601
  // 使用前置摄像头
1602
1602
  });
1603
- const f = await navigator.mediaDevices.getUserMedia(c);
1603
+ const f = await navigator.mediaDevices.getUserMedia(i);
1604
1604
  e.mediaNew = new MediaRecorder(f, {
1605
1605
  mimeType: n ? "video/webm;codecs=vp9,opus" : "audio/webm;codecs=opus"
1606
1606
  }), e.mediaNew.stream && e.mediaFnView && e.mediaFnView(e.mediaNew.stream), e.mediaChunks = [], e.mediaNew.ondataavailable = (h) => {
@@ -1610,27 +1610,27 @@ const At = {
1610
1610
  e.mediaChunks
1611
1611
  ), e.mediaFn && e.mediaFn(e.mediaBase64));
1612
1612
  }, e.mediaNew.start(100);
1613
- } catch (c) {
1614
- console.error("无法访问麦克风或摄像头:", c), alert("无法访问麦克风或摄像头,请检查权限设置");
1613
+ } catch (i) {
1614
+ console.error("无法访问麦克风或摄像头:", i), alert("无法访问麦克风或摄像头,请检查权限设置");
1615
1615
  }
1616
1616
  }
1617
1617
  function s() {
1618
- e.mediaNew && e.mediaWorking && (e.mediaNew.stop(), e.mediaNew.stream.getTracks().forEach((c) => c.stop()), e.mediaWorking = !1);
1618
+ e.mediaNew && e.mediaWorking && (e.mediaNew.stop(), e.mediaNew.stream.getTracks().forEach((i) => i.stop()), e.mediaWorking = !1);
1619
1619
  }
1620
- function i(c) {
1620
+ function r(i) {
1621
1621
  e.mediaPress != null && (clearInterval(e.mediaPress), e.mediaPress = null), a();
1622
1622
  }
1623
- function r(c) {
1623
+ function c(i) {
1624
1624
  }
1625
- function d(c) {
1625
+ function d(i) {
1626
1626
  s(), e.mediaPress != null && (clearInterval(e.mediaPress), e.mediaPress = null);
1627
1627
  }
1628
1628
  return {
1629
1629
  mediaBlobToBase64: o,
1630
1630
  mediaWorkStart: a,
1631
1631
  mediaWorkStop: s,
1632
- mediaOnPress: i,
1633
- mediaOnHold: r,
1632
+ mediaOnPress: r,
1633
+ mediaOnHold: c,
1634
1634
  mediaOnRelease: d
1635
1635
  };
1636
1636
  }, dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -1638,28 +1638,28 @@ const At = {
1638
1638
  default: un
1639
1639
  }, Symbol.toStringTag, { value: "Module" })), pn = (t) => {
1640
1640
  const { $fn: e, $db: n, $global: o, $model: a } = t.ujt;
1641
- function s(r, d) {
1642
- const c = {};
1643
- let f = r.split(a.novel.rule.bksn);
1644
- c[d] = f[0], f = f[1].split(a.novel.rule.bkty), c.sn = f[0], f = f[1].split(a.novel.rule.bktm), c.ty = f[0], f = f[1].split(a.novel.rule.bktmg);
1641
+ function s(c, d) {
1642
+ const i = {};
1643
+ let f = c.split(a.novel.rule.bksn);
1644
+ i[d] = f[0], f = f[1].split(a.novel.rule.bkty), i.sn = f[0], f = f[1].split(a.novel.rule.bktm), i.ty = f[0], f = f[1].split(a.novel.rule.bktmg);
1645
1645
  try {
1646
- c.tm = f[0]?.length > 3 ? e.As.getTime(6, new Date(f[0])) : "", f = f[1].split(a.novel.rule.bkdesc), c.tg = f[0]?.length > 3 ? e.As.getTime(6, new Date(f[0])) : "";
1646
+ i.tm = f[0]?.length > 3 ? e.As.getTime(6, new Date(f[0])) : "", f = f[1].split(a.novel.rule.bkdesc), i.tg = f[0]?.length > 3 ? e.As.getTime(6, new Date(f[0])) : "";
1647
1647
  } catch {
1648
1648
  }
1649
- return d === "li" ? (f = f[1].split(a.novel.rule.bkcontent), c.ds = f[0], c.co = f[1]) : c.ds = f[1], c;
1649
+ return d === "li" ? (f = f[1].split(a.novel.rule.bkcontent), i.ds = f[0], i.co = f[1]) : i.ds = f[1], i;
1650
1650
  }
1651
1651
  return { cmNovelData: H(() => {
1652
- const r = [];
1653
- let c = a.novel.muzu.replaceAll(`\r
1652
+ const c = [];
1653
+ let i = a.novel.muzu.replaceAll(`\r
1654
1654
  `, `
1655
1655
  `).split(a.novel.rule.bkchannel), f, h, g;
1656
- return c.forEach((_) => {
1656
+ return i.forEach((_) => {
1657
1657
  _ && _.split(a.novel.rule.bkclass).forEach((y, b) => {
1658
- b == 0 ? (f = s(y, "ch"), f.cc = [], r.push(f)) : y.split(a.novel.rule.bklist).forEach((M, x) => {
1658
+ b == 0 ? (f = s(y, "ch"), f.cc = [], c.push(f)) : y.split(a.novel.rule.bklist).forEach((M, x) => {
1659
1659
  x == 0 ? (h = s(M, "cl"), h.cc = [], f.cc.push(h)) : (g = s(M, "li"), h.cc.push(g));
1660
1660
  });
1661
1661
  });
1662
- }), r;
1662
+ }), c;
1663
1663
  }) };
1664
1664
  }, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1665
1665
  __proto__: null,
@@ -1669,13 +1669,13 @@ const At = {
1669
1669
  function n(o) {
1670
1670
  const a = Number(e.location.query.pc) || 0, s = a === 0 ? 0 : Math.ceil(a / o);
1671
1671
  if (s === 0) return [];
1672
- let i = Math.min(
1672
+ let r = Math.min(
1673
1673
  Math.max(Number(e.location.query.pg) || 1, 1),
1674
1674
  s
1675
- ), r = Math.max(i - Math.floor(o / 2), 1), d = r + o - 1;
1676
- return d > s && (d = s, r = Math.max(d - o + 1, 1)), Array.from(
1677
- { length: d - r + 1 },
1678
- (c, f) => r + f
1675
+ ), c = Math.max(r - Math.floor(o / 2), 1), d = c + o - 1;
1676
+ return d > s && (d = s, c = Math.max(d - o + 1, 1)), Array.from(
1677
+ { length: d - c + 1 },
1678
+ (i, f) => c + f
1679
1679
  );
1680
1680
  }
1681
1681
  return { getPageList: n };
@@ -1683,10 +1683,10 @@ const At = {
1683
1683
  __proto__: null,
1684
1684
  default: mn
1685
1685
  }, Symbol.toStringTag, { value: "Module" })), gn = (t) => {
1686
- const { ujt: e } = t, { $fn: n, $db: o, $global: a } = t.ujt, { channelLoginWs: s, initChannelUserToken: i } = n.useChannelUser({
1686
+ const { ujt: e } = t, { $fn: n, $db: o, $global: a } = t.ujt, { channelLoginWs: s, initChannelUserToken: r } = n.useChannelUser({
1687
1687
  ujt: e,
1688
1688
  opt: { channel: "channeluser" }
1689
- }), r = H(() => Object.entries(n.lg("channeluser.lv")).filter((T) => a.user.info?.lv > T[0]));
1689
+ }), c = H(() => Object.entries(n.lg("channeluser.lv")).filter((T) => a.user.info?.lv > T[0]));
1690
1690
  function d() {
1691
1691
  return new Promise((j, T) => {
1692
1692
  try {
@@ -1713,7 +1713,7 @@ const At = {
1713
1713
  }
1714
1714
  });
1715
1715
  }
1716
- function c() {
1716
+ function i() {
1717
1717
  return new Promise((j, T) => {
1718
1718
  o.channeluser.cur.us ? n.api.webserver.apiGet(
1719
1719
  "/api/user/userinfo/select/" + o.channeluser.cur.us + "/",
@@ -1735,7 +1735,7 @@ const At = {
1735
1735
  });
1736
1736
  }
1737
1737
  function f() {
1738
- c().then((j) => {
1738
+ i().then((j) => {
1739
1739
  a.msg.fn({
1740
1740
  type: "err",
1741
1741
  tit: n.lg("channeluser.msg.userexist", [
@@ -1755,7 +1755,7 @@ const At = {
1755
1755
  j.us && (a.user.info = {
1756
1756
  us: j.us,
1757
1757
  lv: j.lv || 1
1758
- }, i().then(() => {
1758
+ }, r().then(() => {
1759
1759
  s("web").then((T) => {
1760
1760
  g();
1761
1761
  }).catch((T) => {
@@ -1773,7 +1773,7 @@ const At = {
1773
1773
  }), n.sethash("");
1774
1774
  }
1775
1775
  function _() {
1776
- c().then((j) => {
1776
+ i().then((j) => {
1777
1777
  const T = JSON.parse(j);
1778
1778
  o.channeluser.cur.pw === T.pw ? h(T) : a.msg.fn({
1779
1779
  type: "err",
@@ -1817,7 +1817,7 @@ const At = {
1817
1817
  });
1818
1818
  }
1819
1819
  function b() {
1820
- o.channeluser.cur.pwn && o.channeluser.cur.pwn === o.channeluser.cur.pwnn ? c().then((j) => {
1820
+ o.channeluser.cur.pwn && o.channeluser.cur.pwn === o.channeluser.cur.pwnn ? i().then((j) => {
1821
1821
  const T = JSON.parse(j);
1822
1822
  o.channeluser.cur.pw === T.pw ? (T.pw = o.channeluser.cur.pwn, y(T)) : a.msg.fn({
1823
1823
  type: "err",
@@ -1887,7 +1887,7 @@ const At = {
1887
1887
  });
1888
1888
  }
1889
1889
  function S() {
1890
- c().then((j) => {
1890
+ i().then((j) => {
1891
1891
  j && (typeof j == "string" && (j = JSON.parse(j)), o.channeluser.cur.us = j.us, o.channeluser.cur.pw = j.pw, o.channeluser.cur.lv = j.lv || 1);
1892
1892
  }).catch((j) => {
1893
1893
  a.msg.fn({
@@ -1917,7 +1917,7 @@ const At = {
1917
1917
  }
1918
1918
  function P(j = "") {
1919
1919
  return new Promise((T, R) => {
1920
- j && (o.channeluser.cur.us = j), c().then((B) => {
1920
+ j && (o.channeluser.cur.us = j), i().then((B) => {
1921
1921
  B && (typeof B == "string" && (B = JSON.parse(B)), a.user.info.lv > B.lv && a.user.info.us != B.us ? w().then(() => {
1922
1922
  T();
1923
1923
  }) : (o.channeluser.cur.msg = n.lg(
@@ -1962,7 +1962,7 @@ const At = {
1962
1962
  });
1963
1963
  }
1964
1964
  function O() {
1965
- c().then((j) => {
1965
+ i().then((j) => {
1966
1966
  a.msg.fn({
1967
1967
  type: "err",
1968
1968
  tit: n.lg("channeluser.msg.userexist", [
@@ -1985,20 +1985,20 @@ const At = {
1985
1985
  delUser: P,
1986
1986
  addUser: O,
1987
1987
  setPage: x,
1988
- cmLvList: r
1988
+ cmLvList: c
1989
1989
  };
1990
1990
  }, vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1991
1991
  __proto__: null,
1992
1992
  default: gn
1993
1993
  }, Symbol.toStringTag, { value: "Module" })), yn = (t) => {
1994
1994
  const { $fn: e, $model: n, $db: o, $dbwork: a, $global: s } = t;
1995
- function i(r = "testkdd") {
1995
+ function r(c = "testkdd") {
1996
1996
  const d = Ve("$vueProxy");
1997
- d?.$installplugs(r), d?.["$engine" + r] && (Object.assign(e, d["$engine" + r]), d?.["$engineuse" + r] && Object.assign(e, d["$engineuse" + r])), n[r] || (n[r] = {}), a[r] || (a[r] = {}), o[r] || (o[r] = {}), e.setconfig = (f, h) => e.api.webserver.apiPost(
1997
+ d?.$installplugs(c), d?.["$engine" + c] && (Object.assign(e, d["$engine" + c]), d?.["$engineuse" + c] && Object.assign(e, d["$engineuse" + c])), n[c] || (n[c] = {}), a[c] || (a[c] = {}), o[c] || (o[c] = {}), e.setconfig = (f, h) => e.api.webserver.apiPost(
1998
1998
  "/api/asaijson/manage/update/?path=./webclient/webmodel/sys/setting/" + f + ".json",
1999
1999
  h
2000
2000
  ), e.changelangpro = (f = "") => e.changelang(s.config.langcur || f).then((h) => {
2001
- s?.sys?.local?.lang ? r && e.ws?.[r] && e.ws[r].wsSend({
2001
+ s?.sys?.local?.lang ? c && e.ws?.[c] && e.ws[c].wsSend({
2002
2002
  id: "1",
2003
2003
  ty: "common/setlanguage",
2004
2004
  db: h
@@ -2008,14 +2008,14 @@ const At = {
2008
2008
  }), e.changethemepro = (f = "") => s?.sys?.local?.theme ? e.changetheme(f) : e.setconfig("settingtheme", {
2009
2009
  theme: f
2010
2010
  });
2011
- const c = [e.initlang(s.config.langcur || "")];
2012
- return c.push(
2013
- e.initmodel(r + "/dirmodel.json").then((f) => {
2014
- f && Object.assign(n[r], f);
2011
+ const i = [e.initlang(s.config.langcur || "")];
2012
+ return i.push(
2013
+ e.initmodel(c + "/dirmodel.json").then((f) => {
2014
+ f && Object.assign(n[c], f);
2015
2015
  })
2016
- ), Promise.all(c);
2016
+ ), Promise.all(i);
2017
2017
  }
2018
- return { initAppModel: i };
2018
+ return { initAppModel: r };
2019
2019
  }, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2020
2020
  __proto__: null,
2021
2021
  default: yn
@@ -2086,32 +2086,32 @@ const At = {
2086
2086
  }, o.$model.gysfn.log = () => (console.log(
2087
2087
  "%c$fn",
2088
2088
  a(6, 18),
2089
- i(o.$fn),
2089
+ r(o.$fn),
2090
2090
  o.$fn
2091
2091
  ), console.log(
2092
2092
  "%c$model",
2093
2093
  a(5, 18),
2094
- i(o.$model),
2094
+ r(o.$model),
2095
2095
  o.$model
2096
2096
  ), console.log(
2097
2097
  "%c$global",
2098
2098
  a(4, 18),
2099
- i(o.$global),
2099
+ r(o.$global),
2100
2100
  o.$global
2101
2101
  ), console.log(
2102
2102
  "%c$ws",
2103
2103
  a(3, 18),
2104
- i(o.$ws),
2104
+ r(o.$ws),
2105
2105
  o.$ws
2106
2106
  ), console.log(
2107
2107
  "%c$db",
2108
2108
  a(2, 18),
2109
- i(o.$db),
2109
+ r(o.$db),
2110
2110
  o.$db
2111
2111
  ), console.log(
2112
2112
  "%c$dbwork",
2113
2113
  a(1, 18),
2114
- i(o.$dbwork),
2114
+ r(o.$dbwork),
2115
2115
  o.$dbwork
2116
2116
  ), "Web Model Log。");
2117
2117
  function a(f, h = 18) {
@@ -2121,15 +2121,15 @@ const At = {
2121
2121
  function s(f, h, g = "18px") {
2122
2122
  return "font-size:" + g + ";font-weight:bold;border-radius:20px;padding:0 10px;color:" + f + ";background-color:" + h + ";";
2123
2123
  }
2124
- function i(f) {
2124
+ function r(f) {
2125
2125
  try {
2126
2126
  return "size=>" + ((f && JSON.stringify(f)?.length) / 1024).toFixed(3) + "KB";
2127
2127
  } catch {
2128
2128
  return "";
2129
2129
  }
2130
2130
  }
2131
- const { fetchPublic: r } = o.$fn.AsaiModel("./webmodel/");
2132
- o.$fn.initmodel = r, o.$fn.startLink = () => new Promise((f, h) => {
2131
+ const { fetchPublic: c } = o.$fn.AsaiModel("./webmodel/");
2132
+ o.$fn.initmodel = c, o.$fn.startLink = () => new Promise((f, h) => {
2133
2133
  o.$fn.initmodel("sys/server.json").then((g) => {
2134
2134
  const _ = { api: {}, ws: {} };
2135
2135
  ["api", "ws"].forEach(($) => {
@@ -2174,7 +2174,7 @@ const At = {
2174
2174
  });
2175
2175
  }
2176
2176
  });
2177
- const d = /* @__PURE__ */ new Map(), c = /\$(\d+)/g;
2177
+ const d = /* @__PURE__ */ new Map(), i = /\$(\d+)/g;
2178
2178
  return o.$fn.lg = (f, h) => {
2179
2179
  if (typeof f != "string" || !f)
2180
2180
  return;
@@ -2187,7 +2187,7 @@ const At = {
2187
2187
  if (!h || h.length === 0) return _;
2188
2188
  const $ = Array.isArray(h) ? h : [h];
2189
2189
  return _?.replace(
2190
- c,
2190
+ i,
2191
2191
  (b, k) => {
2192
2192
  const M = parseInt(k, 10) - 1;
2193
2193
  return $[M] ?? b;
@@ -2345,14 +2345,14 @@ const At = {
2345
2345
  }, Symbol.toStringTag, { value: "Module" })), Sn = (t) => {
2346
2346
  const { $fn: e, $model: n, $global: o, $ws: a } = t;
2347
2347
  a?.beat || (a.beat = {});
2348
- function s(i = "web", r = 0) {
2349
- (r || o.sys?.tmbeat) && (a.beat["bt" + i] = setInterval(() => {
2350
- a.beat["btm" + i] = setTimeout(() => {
2351
- clearInterval(a.beat["bt" + i]), a.beat["bt" + i] = null, e.exit();
2352
- }, (r || o.sys?.tmbeat) * 1.5), e.ws[i].wsApi("ping").then((d) => {
2353
- d === "pong" && (clearTimeout(a.beat["btm" + i]), a.beat["btm" + i] = null);
2348
+ function s(r = "web", c = 0) {
2349
+ (c || o.sys?.tmbeat) && (a.beat["bt" + r] = setInterval(() => {
2350
+ a.beat["btm" + r] = setTimeout(() => {
2351
+ clearInterval(a.beat["bt" + r]), a.beat["bt" + r] = null, e.exit();
2352
+ }, (c || o.sys?.tmbeat) * 1.5), e.ws[r].wsApi("ping").then((d) => {
2353
+ d === "pong" && (clearTimeout(a.beat["btm" + r]), a.beat["btm" + r] = null);
2354
2354
  });
2355
- }, r || o.sys?.tmbeat));
2355
+ }, c || o.sys?.tmbeat));
2356
2356
  }
2357
2357
  return { pingPong: s };
2358
2358
  }, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -2424,13 +2424,13 @@ const At = {
2424
2424
  ujt: e.ujt,
2425
2425
  opt: { channel: "channeluser" }
2426
2426
  });
2427
- return a(), (s, i) => {
2428
- const r = U("AsaiComponent");
2427
+ return a(), (s, r) => {
2428
+ const c = U("AsaiComponent");
2429
2429
  return p(), m("div", {
2430
2430
  id: "asaiwebservernode",
2431
2431
  class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
2432
2432
  }, [
2433
- l(o).code.pub ? (p(), Y(r, {
2433
+ l(o).code.pub ? (p(), Y(c, {
2434
2434
  key: 0,
2435
2435
  ujt: t.ujt
2436
2436
  }, null, 8, ["ujt"])) : (p(), Y(pe(l(o).sys?.router?.config?.loading || "PageLoadServer"), {
@@ -2453,13 +2453,13 @@ const At = {
2453
2453
  ujt: e.ujt,
2454
2454
  opt: { channel: "channeluser" }
2455
2455
  });
2456
- return a(), (s, i) => {
2457
- const r = U("AsaiComponent");
2456
+ return a(), (s, r) => {
2457
+ const c = U("AsaiComponent");
2458
2458
  return p(), m("div", {
2459
2459
  id: "asaiwebserveruser",
2460
2460
  class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
2461
2461
  }, [
2462
- l(o).code.token ? (p(), Y(r, {
2462
+ l(o).code.token ? (p(), Y(c, {
2463
2463
  key: 0,
2464
2464
  ujt: t.ujt
2465
2465
  }, null, 8, ["ujt"])) : (p(), Y(pe(l(o).sys?.router?.config?.loading || "PageLoadUserToken"), {
@@ -2484,76 +2484,82 @@ const At = {
2484
2484
  setup(t) {
2485
2485
  const e = t, n = Ve("$vueProxy"), { $global: o, $fn: a, $model: s } = e.ujt;
2486
2486
  s.appmodules = e.appmodules;
2487
- function i() {
2487
+ function r() {
2488
+ let i = a.As?.localGet("as-user-code");
2489
+ i && (i = a.As.toObj(i), o.code.pri = i[0], o.code.pub = i[1]), o.code.pri && a.As.localGet("as-user-info") && (o.user.info = a.As.toObj(
2490
+ a.AsAES.dec(a.As.localGet("as-user-info"))
2491
+ )), o.code.pri && o.user.info?.us && (o.code.token = a.AsCode.asencode(o.user.info?.us, o.code.pri) + "##" + a.AsCode.asencode(o.user.info?.lv || 0, o.code.pri) + "##" + o.code.pub);
2492
+ }
2493
+ function c() {
2488
2494
  a.ws.web.wsWatch(
2489
2495
  {
2490
2496
  ty: "publish/web"
2491
2497
  },
2492
- (d) => {
2493
- d?.db?.exit && (a.exit(), a.sethash(o.sys?.router?.config?.login || "user/login")), d?.db?.lang && (d.db.langpm ? d.db.con = a.lg("asai.hostmsg." + d.db.lang, d.db.langpm) || d.db.con : d.db.con = a.lg("asai.hostmsg." + d.db.lang) || d.db.con), d?.db === "pong" ? a.ws.web.wsApi("ping").then((c) => {
2494
- }) : d?.db?.con && o.msg.fn(d.db);
2498
+ (i) => {
2499
+ i?.db?.exit && (a.exit(), a.sethash(o.sys?.router?.config?.login || "user/login")), i?.db?.lang && (i.db.langpm ? i.db.con = a.lg("asai.hostmsg." + i.db.lang, i.db.langpm) || i.db.con : i.db.con = a.lg("asai.hostmsg." + i.db.lang) || i.db.con), i?.db === "pong" ? a.ws.web.wsApi("ping").then((f) => {
2500
+ }) : i?.db?.con && o.msg.fn(i.db);
2495
2501
  }
2496
2502
  );
2497
2503
  }
2498
2504
  a.initweb(n).then(() => {
2499
2505
  a.useApi(e.ujt, "webserver"), a.useWs(e.ujt, "web");
2500
- let d = [];
2501
- o?.sys?.onuserws && d.push(
2506
+ let i = [];
2507
+ o?.sys?.onuserws && (r(), i.push(
2502
2508
  a.ws.web.init().then(() => {
2503
- i();
2509
+ c();
2504
2510
  })
2505
- ), o?.sys?.local?.lang || d.push(
2511
+ )), o?.sys?.local?.lang || i.push(
2506
2512
  a.api.webserver.apiGet(
2507
2513
  "/api/asaifile/manage/once/?path=./webclient/webmodel/sys/setting/settinglang.json"
2508
- ).then((c) => {
2509
- typeof c?.data == "string" ? o.config.langcur = JSON.parse(
2510
- c?.data || "{}"
2511
- )?.lang : o.config.langcur = (c?.data || {})?.lang;
2514
+ ).then((f) => {
2515
+ typeof f?.data == "string" ? o.config.langcur = JSON.parse(
2516
+ f?.data || "{}"
2517
+ )?.lang : o.config.langcur = (f?.data || {})?.lang;
2512
2518
  })
2513
- ), Promise.all(d).then(() => {
2514
- a.changelang(o.config.langcur).then((c) => {
2519
+ ), Promise.all(i).then(() => {
2520
+ a.changelang(o.config.langcur).then((f) => {
2515
2521
  !window?.$CFG?.title && o.lang.sys.webtit && (document.title = o.lang.sys.webtit), o.stat.webclient = 1;
2516
2522
  });
2517
2523
  });
2518
2524
  });
2519
- const r = H(() => !o.location.hash || o.location.hash == "/" || o.sys?.router?.rights?.lv0?.find(
2520
- (d) => o.location.hash.includes(d)
2525
+ const d = H(() => !o.location.hash || o.location.hash == "/" || o.sys?.router?.rights?.lv0?.find(
2526
+ (i) => o.location.hash.includes(i)
2521
2527
  ) ? 0 : o.sys?.router?.rights?.lv1?.find(
2522
- (d) => o.location.hash.includes(d)
2528
+ (i) => o.location.hash.includes(i)
2523
2529
  ) ? 1 : o.sys?.router?.rights?.lv2?.find(
2524
- (d) => o.location.hash.includes(d)
2530
+ (i) => o.location.hash.includes(i)
2525
2531
  ) ? 2 : o.sys?.router?.rights?.lv3?.find(
2526
- (d) => o.location.hash.includes(d)
2532
+ (i) => o.location.hash.includes(i)
2527
2533
  ) ? 3 : o.sys?.router?.config?.lv);
2528
2534
  return je(() => {
2529
2535
  a.ws.web.wsWatchOff({
2530
2536
  ty: "publish/web"
2531
2537
  });
2532
- }), (d, c) => {
2533
- const f = U("AsaiWebServerUserOnline"), h = U("PopMsg"), g = U("PopBoxConfirm"), _ = ve("keyboard");
2538
+ }), (i, f) => {
2539
+ const h = U("AsaiWebServerUserOnline"), g = U("PopMsg"), _ = U("PopBoxConfirm"), $ = ve("keyboard");
2534
2540
  return l(o).stat.webclient ? (p(), m("div", Dn, [
2535
- r.value === 0 ? (p(), Y(Ne, {
2541
+ d.value === 0 ? (p(), Y(Ne, {
2536
2542
  key: 0,
2537
2543
  ujt: t.ujt
2538
- }, null, 8, ["ujt"])) : r.value === 1 ? (p(), Y(Ye, {
2544
+ }, null, 8, ["ujt"])) : d.value === 1 ? (p(), Y(Ye, {
2539
2545
  key: 1,
2540
2546
  ujt: t.ujt
2541
- }, null, 8, ["ujt"])) : r.value === 2 ? (p(), Y(Xe, {
2547
+ }, null, 8, ["ujt"])) : d.value === 2 ? (p(), Y(Xe, {
2542
2548
  key: 2,
2543
2549
  ujt: t.ujt
2544
- }, null, 8, ["ujt"])) : (p(), Y(f, {
2550
+ }, null, 8, ["ujt"])) : (p(), Y(h, {
2545
2551
  key: 3,
2546
2552
  ujt: t.ujt
2547
2553
  }, null, 8, ["ujt"])),
2548
- c[0] || (c[0] = u("div", { id: "teleportasai" }, null, -1)),
2554
+ f[0] || (f[0] = u("div", { id: "teleportasai" }, null, -1)),
2549
2555
  G((p(), m("div", Rn, [
2550
- W(h, { ujt: t.ujt }, null, 8, ["ujt"]),
2551
- W(g, {
2556
+ W(g, { ujt: t.ujt }, null, 8, ["ujt"]),
2557
+ W(_, {
2552
2558
  ujt: t.ujt,
2553
2559
  id: "popdefaultconfirm"
2554
2560
  }, null, 8, ["ujt"])
2555
2561
  ])), [
2556
- [_, { ujt: t.ujt }]
2562
+ [$, { ujt: t.ujt }]
2557
2563
  ])
2558
2564
  ])) : (p(), Y(pe(l(o).sys?.router?.config?.loading || "PageLoadClient"), {
2559
2565
  key: 1,
@@ -2573,8 +2579,8 @@ const At = {
2573
2579
  const e = t, { $global: n, $fn: o } = e.ujt, a = H(() => n.url[n.module.value]?.filter(
2574
2580
  (s) => s.type === "module" || ("/" + s.value + "/").startsWith(n.location.hash)
2575
2581
  ));
2576
- return (s, i) => {
2577
- const r = U("UserCard");
2582
+ return (s, r) => {
2583
+ const c = U("UserCard");
2578
2584
  return p(), m("div", Hn, [
2579
2585
  u("div", Vn, [
2580
2586
  u("img", {
@@ -2586,13 +2592,13 @@ const At = {
2586
2592
  (p(!0), m(E, null, ee(a.value, (d) => (p(), m("div", {
2587
2593
  class: K(`app-menu${d.type === "module" ? " module" : ""}`),
2588
2594
  key: d.value,
2589
- onPointerup: (c) => l(o).sethash(d.value === "views" ? "" : d.value)
2595
+ onPointerup: (i) => l(o).sethash(d.value === "views" ? "" : d.value)
2590
2596
  }, [
2591
2597
  u("span", Yn, v(d.label), 1)
2592
2598
  ], 42, Nn))), 128))
2593
2599
  ]),
2594
2600
  u("div", Xn, [
2595
- W(r, { ujt: t.ujt }, null, 8, ["ujt"])
2601
+ W(c, { ujt: t.ujt }, null, 8, ["ujt"])
2596
2602
  ])
2597
2603
  ]);
2598
2604
  };
@@ -2630,9 +2636,9 @@ const At = {
2630
2636
  const { initAppModel: a } = o.useInitApp(e.ujt);
2631
2637
  return n.stat[n.module.value] = 0, a(n.module.value).then((s) => {
2632
2638
  n.stat[n.module.value] = 1;
2633
- }), (s, i) => {
2634
- const r = U("RouterView");
2635
- return e.module?.value && l(n).stat[e.module.value] ? (p(), Y(r, {
2639
+ }), (s, r) => {
2640
+ const c = U("RouterView");
2641
+ return e.module?.value && l(n).stat[e.module.value] ? (p(), Y(c, {
2636
2642
  key: 0,
2637
2643
  ujt: t.ujt,
2638
2644
  ty: 0
@@ -2653,9 +2659,9 @@ const At = {
2653
2659
  setup(t) {
2654
2660
  const e = t, { $global: n, $fn: o } = e.ujt;
2655
2661
  return o.initrouter(), (a, s) => {
2656
- const i = U("MenuShowFix"), r = U("UserCard");
2662
+ const r = U("MenuShowFix"), c = U("UserCard");
2657
2663
  return p(), m(E, null, [
2658
- W(i, {
2664
+ W(r, {
2659
2665
  ujt: t.ujt,
2660
2666
  menus: l(n).url[l(n).module.value]
2661
2667
  }, null, 8, ["ujt", "menus"]),
@@ -2670,13 +2676,13 @@ const At = {
2670
2676
  (p(!0), m(E, null, ee(l(n).url[l(n).module.value], (d) => (p(), m("div", {
2671
2677
  class: K(`app-menu${d.type === "module" ? " module" : ""}`),
2672
2678
  key: d.value,
2673
- onPointerup: (c) => l(o).sethash(d.value === "views" ? "" : d.value)
2679
+ onPointerup: (i) => l(o).sethash(d.value === "views" ? "" : d.value)
2674
2680
  }, [
2675
2681
  u("span", lo, v(d.label), 1)
2676
2682
  ], 42, so))), 128))
2677
2683
  ]),
2678
2684
  u("div", io, [
2679
- W(r, { ujt: t.ujt }, null, 8, ["ujt"])
2685
+ W(c, { ujt: t.ujt }, null, 8, ["ujt"])
2680
2686
  ])
2681
2687
  ])
2682
2688
  ], 64);
@@ -2693,13 +2699,13 @@ const At = {
2693
2699
  setup(t) {
2694
2700
  const e = t, { $global: n, $fn: o } = e.ujt;
2695
2701
  return o.initrouter(), (a, s) => {
2696
- const i = U("MenuShowFix"), r = U("RouterView");
2702
+ const r = U("MenuShowFix"), c = U("RouterView");
2697
2703
  return p(), m(E, null, [
2698
- W(i, {
2704
+ W(r, {
2699
2705
  ujt: t.ujt,
2700
2706
  menus: l(n).url[l(n).module.value]
2701
2707
  }, null, 8, ["ujt", "menus"]),
2702
- l(n).stat[l(n).module.value] ? (p(), Y(r, {
2708
+ l(n).stat[l(n).module.value] ? (p(), Y(c, {
2703
2709
  key: 0,
2704
2710
  ujt: t.ujt,
2705
2711
  ty: 1
@@ -2720,13 +2726,13 @@ const At = {
2720
2726
  ujt: e.ujt,
2721
2727
  opt: { channel: "channeluser" }
2722
2728
  });
2723
- return a(), (s, i) => {
2724
- const r = U("AsaiComponent");
2729
+ return a(), (s, r) => {
2730
+ const c = U("AsaiComponent");
2725
2731
  return p(), m("div", {
2726
2732
  id: "asaiwebserveruseronline",
2727
2733
  class: K("asaiweb asaiweb" + l(o).location?.hasharr?.[0])
2728
2734
  }, [
2729
- l(o).code.token && l(o).user.online ? (p(), Y(r, {
2735
+ l(o).code.token && l(o).user.online ? (p(), Y(c, {
2730
2736
  key: 0,
2731
2737
  ujt: t.ujt
2732
2738
  }, null, 8, ["ujt"])) : (p(), Y(pe(
@@ -2748,15 +2754,15 @@ const At = {
2748
2754
  opt: {}
2749
2755
  },
2750
2756
  setup(t) {
2751
- const e = t, { $fn: n, $db: o } = e.ujt, { addContent: a, initAddChannel: s, channelLang: i } = n.useChannel(e);
2752
- return s(), (r, d) => {
2753
- const c = U("AsaiForm");
2754
- return D(r.$slots, "default", {
2757
+ const e = t, { $fn: n, $db: o } = e.ujt, { addContent: a, initAddChannel: s, channelLang: r } = n.useChannel(e);
2758
+ return s(), (c, d) => {
2759
+ const i = U("AsaiForm");
2760
+ return D(c.$slots, "default", {
2755
2761
  item: l(o)[e.opt.channel],
2756
2762
  option: { addContent: l(a) }
2757
2763
  }, () => [
2758
2764
  u("div", vo, [
2759
- W(c, {
2765
+ W(i, {
2760
2766
  ujt: t.ujt,
2761
2767
  asaidata: l(o)[e.opt.channel].rfdata
2762
2768
  }, null, 8, ["ujt", "asaidata"])
@@ -2765,7 +2771,7 @@ const At = {
2765
2771
  u("div", {
2766
2772
  class: "li cur",
2767
2773
  onPointerdown: d[0] || (d[0] = (f) => l(a)())
2768
- }, v(l(i)("ui.add") || "Add"), 33)
2774
+ }, v(l(r)("ui.add") || "Add"), 33)
2769
2775
  ])
2770
2776
  ]);
2771
2777
  };
@@ -2780,21 +2786,21 @@ const At = {
2780
2786
  opt: {}
2781
2787
  },
2782
2788
  setup(t) {
2783
- const e = t, { $fn: n, $global: o, $db: a } = e.ujt, { setChannelClass: s, getClassKey: i } = n.useChannel(e);
2784
- return (r, d) => (p(!0), m(E, null, ee(Object.entries(
2785
- l(a)[e.opt.channel].rfdata.rule?.[l(i)()]?.[l(i)() + "data"] || { asai: "All" }
2786
- ), (c) => D(r.$slots, "default", {
2787
- key: c[0],
2788
- item: c,
2789
+ const e = t, { $fn: n, $global: o, $db: a } = e.ujt, { setChannelClass: s, getClassKey: r } = n.useChannel(e);
2790
+ return (c, d) => (p(!0), m(E, null, ee(Object.entries(
2791
+ l(a)[e.opt.channel].rfdata.rule?.[l(r)()]?.[l(r)() + "data"] || { asai: "All" }
2792
+ ), (i) => D(c.$slots, "default", {
2793
+ key: i[0],
2794
+ item: i,
2789
2795
  option: { setChannelClass: l(s) }
2790
2796
  }, () => [
2791
2797
  u("div", {
2792
- title: c[1] || "",
2798
+ title: i[1] || "",
2793
2799
  class: K({
2794
- cur: c[0] === l(o).location.query?.fl || c[0] === "asai" && !l(o).location.query?.fl
2800
+ cur: i[0] === l(o).location.query?.fl || i[0] === "asai" && !l(o).location.query?.fl
2795
2801
  }),
2796
- onPointerdown: (f) => l(s)(c[0] === "asai" ? "" : c[0])
2797
- }, v(c[1]), 43, $o)
2802
+ onPointerdown: (f) => l(s)(i[0] === "asai" ? "" : i[0])
2803
+ }, v(i[1]), 43, $o)
2798
2804
  ])), 128));
2799
2805
  }
2800
2806
  }), wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -2808,9 +2814,9 @@ const At = {
2808
2814
  },
2809
2815
  setup(t) {
2810
2816
  const e = t, { $fn: n, $db: o } = e.ujt, { editContent: a, channelLang: s } = n.useChannel(e);
2811
- return (i, r) => {
2817
+ return (r, c) => {
2812
2818
  const d = U("AsaiForm");
2813
- return D(i.$slots, "default", {
2819
+ return D(r.$slots, "default", {
2814
2820
  item: l(o)[e.opt.channel],
2815
2821
  option: { editContent: l(a) }
2816
2822
  }, () => [
@@ -2823,7 +2829,7 @@ const At = {
2823
2829
  u("div", xo, [
2824
2830
  u("div", {
2825
2831
  class: "li cur",
2826
- onPointerdown: r[0] || (r[0] = (c) => l(a)())
2832
+ onPointerdown: c[0] || (c[0] = (i) => l(a)())
2827
2833
  }, v(l(s)("ui.edit") || "Edit"), 33)
2828
2834
  ])
2829
2835
  ]);
@@ -2845,10 +2851,10 @@ const At = {
2845
2851
  opt: {}
2846
2852
  },
2847
2853
  setup(t) {
2848
- const e = t, { $fn: n, $global: o, $db: a, $model: s } = e.ujt, { initChannel: i, channelLang: r } = n.useChannel(e);
2849
- return i(), $e(() => {
2854
+ const e = t, { $fn: n, $global: o, $db: a, $model: s } = e.ujt, { initChannel: r, channelLang: c } = n.useChannel(e);
2855
+ return r(), $e(() => {
2850
2856
  a[e.opt.channel] = null;
2851
- }), (d, c) => {
2857
+ }), (d, i) => {
2852
2858
  const f = U("ChannelClass"), h = U("ChannelUpDown"), g = U("ChannelListSearch"), _ = U("PopBoxConfirm"), $ = U("ChannelList"), y = U("ChannelListPage"), b = U("ChannelOpt"), k = U("ChannelEdit"), M = U("ChannelShow"), x = U("ChannelAdd");
2853
2859
  return l(a)[e.opt.channel].stat ? (p(), m("div", {
2854
2860
  key: 0,
@@ -2856,7 +2862,7 @@ const At = {
2856
2862
  }, [
2857
2863
  u("div", Co, [
2858
2864
  u("div", Ao, [
2859
- u("h1", null, v(l(s).data.asai.rulebook.listclass) + " " + v(l(r)("ui.class") || "Class"), 1)
2865
+ u("h1", null, v(l(s).data.asai.rulebook.listclass) + " " + v(l(c)("ui.class") || "Class"), 1)
2860
2866
  ]),
2861
2867
  u("div", Oo, [
2862
2868
  W(f, {
@@ -2873,7 +2879,7 @@ const At = {
2873
2879
  ]),
2874
2880
  u("div", To, [
2875
2881
  u("div", zo, [
2876
- u("h1", null, v(l(s).data.asai.rulebook.listcontent) + " " + v(l(r)("ui.list") || "List"), 1)
2882
+ u("h1", null, v(l(s).data.asai.rulebook.listcontent) + " " + v(l(c)("ui.list") || "List"), 1)
2877
2883
  ]),
2878
2884
  W(g, {
2879
2885
  ujt: t.ujt,
@@ -2903,7 +2909,7 @@ const At = {
2903
2909
  l(o).location.query?.show ? (p(), m(E, { key: 0 }, [
2904
2910
  l(o).location.query?.showty ? (p(), m(E, { key: 0 }, [
2905
2911
  u("div", Io, [
2906
- u("h1", null, v(l(s).data.asai.rulebook.contentedit) + " " + v(l(r)("ui.edit") || "Edit"), 1),
2912
+ u("h1", null, v(l(s).data.asai.rulebook.contentedit) + " " + v(l(c)("ui.edit") || "Edit"), 1),
2907
2913
  u("div", Do, [
2908
2914
  W(b, {
2909
2915
  ujt: t.ujt,
@@ -2917,7 +2923,7 @@ const At = {
2917
2923
  }, null, 8, ["ujt", "opt"])
2918
2924
  ], 64)) : (p(), m(E, { key: 1 }, [
2919
2925
  u("div", Ro, [
2920
- u("h1", null, v(l(s).data.asai.rulebook.contentshow) + " " + v(l(r)("ui.show") || "Show"), 1),
2926
+ u("h1", null, v(l(s).data.asai.rulebook.contentshow) + " " + v(l(c)("ui.show") || "Show"), 1),
2921
2927
  u("div", Fo, [
2922
2928
  W(b, {
2923
2929
  ujt: t.ujt,
@@ -2932,7 +2938,7 @@ const At = {
2932
2938
  ], 64))
2933
2939
  ], 64)) : (p(), m(E, { key: 1 }, [
2934
2940
  u("div", Wo, [
2935
- u("h1", null, v(l(s).data.asai.rulebook.new) + " " + v(l(r)("ui.add") || "Add"), 1),
2941
+ u("h1", null, v(l(s).data.asai.rulebook.new) + " " + v(l(c)("ui.add") || "Add"), 1),
2936
2942
  u("div", Ho, [
2937
2943
  W(b, {
2938
2944
  ujt: t.ujt,
@@ -2965,16 +2971,16 @@ const At = {
2965
2971
  setup(t) {
2966
2972
  const e = t, { $fn: n, $db: o, $global: a } = e.ujt, {
2967
2973
  delItem: s,
2968
- editItem: i,
2969
- readItem: r,
2974
+ editItem: r,
2975
+ readItem: c,
2970
2976
  setShow: d,
2971
- fetchContent: c,
2977
+ fetchContent: i,
2972
2978
  optConfirm: f,
2973
2979
  getSnKey: h,
2974
2980
  channelLang: g
2975
2981
  } = n.useChannel(e);
2976
2982
  he(() => {
2977
- c(0), r(a.location.query?.show);
2983
+ i(0), c(a.location.query?.show);
2978
2984
  }), o[e.opt.channel].cmPageSize = H(() => Number(a.location.query?.ps) || o[e.opt.channel].cfg.config?.ps || 5);
2979
2985
  const { getPageList: _ } = n.usePage(e);
2980
2986
  return o[e.opt.channel].cmPageList = H(() => _(o[e.opt?.channel]?.cmPageSize)), ($, y) => {
@@ -2982,14 +2988,14 @@ const At = {
2982
2988
  return p(!0), m(E, null, ee(l(o)[e.opt.channel].contentList, (k, M) => D($.$slots, "default", {
2983
2989
  key: "list" + (k?.[l(h)()] || M),
2984
2990
  item: k,
2985
- option: { setShow: l(d), delItem: l(s), editItem: l(i), optConfirm: l(f) }
2991
+ option: { setShow: l(d), delItem: l(s), editItem: l(r), optConfirm: l(f) }
2986
2992
  }, () => [
2987
2993
  W(b, {
2988
2994
  ujt: t.ujt,
2989
2995
  opt: t.opt,
2990
2996
  pm: t.pm,
2991
2997
  item: k,
2992
- option: { setShow: l(d), delItem: l(s), editItem: l(i), optConfirm: l(f) }
2998
+ option: { setShow: l(d), delItem: l(s), editItem: l(r), optConfirm: l(f) }
2993
2999
  }, {
2994
3000
  btns: re(() => [
2995
3001
  3 < l(a).user?.info?.lv ? (p(), m("div", Bo, [
@@ -3008,7 +3014,7 @@ const At = {
3008
3014
  u("div", {
3009
3015
  onPointerdown: y[1] || (y[1] = V(() => {
3010
3016
  }, ["stop"])),
3011
- onPointerup: V((x) => l(i)(k?.[l(h)()]), ["stop"])
3017
+ onPointerup: V((x) => l(r)(k?.[l(h)()]), ["stop"])
3012
3018
  }, v(l(g)("ui.edit") || "Edit"), 41, Yo)
3013
3019
  ])) : F("", !0)
3014
3020
  ]),
@@ -3028,19 +3034,19 @@ const At = {
3028
3034
  },
3029
3035
  setup(t) {
3030
3036
  const e = t, { $db: n, $global: o } = e.ujt;
3031
- return (a, s) => l(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0), m(E, { key: 0 }, ee(l(n)[e.opt.channel].cmPageList, (i) => D(a.$slots, "default", {
3032
- key: "listpage" + (i || ""),
3033
- item: i,
3037
+ return (a, s) => l(n)[e.opt.channel].cmPageList.length > 1 ? (p(!0), m(E, { key: 0 }, ee(l(n)[e.opt.channel].cmPageList, (r) => D(a.$slots, "default", {
3038
+ key: "listpage" + (r || ""),
3039
+ item: r,
3034
3040
  option: {}
3035
3041
  }, () => [
3036
3042
  u("div", {
3037
3043
  onPointerdown: s[0] || (s[0] = V(() => {
3038
3044
  }, ["stop"])),
3039
- onPointerup: V((r) => l(n)[e.opt.channel]?.setpage(i), ["stop"]),
3045
+ onPointerup: V((c) => l(n)[e.opt.channel]?.setpage(r), ["stop"]),
3040
3046
  class: K(
3041
- i == l(o).location.query?.pg || i == 1 && !l(o).location.query?.pg ? "as-channel-active" : ""
3047
+ r == l(o).location.query?.pg || r == 1 && !l(o).location.query?.pg ? "as-channel-active" : ""
3042
3048
  )
3043
- }, v(i), 43, Jo)
3049
+ }, v(r), 43, Jo)
3044
3050
  ])), 128)) : F("", !0);
3045
3051
  }
3046
3052
  }), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3056,51 +3062,51 @@ const At = {
3056
3062
  opt: {}
3057
3063
  },
3058
3064
  setup(t) {
3059
- const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { searchSubmit: s, channelLang: i } = a.useChannel(e);
3060
- return (r, d) => D(r.$slots, "default", {
3065
+ const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { searchSubmit: s, channelLang: r } = a.useChannel(e);
3066
+ return (c, d) => D(c.$slots, "default", {
3061
3067
  item: l(o).location.query,
3062
3068
  option: { searchSubmit: l(s) }
3063
3069
  }, () => [
3064
3070
  e.opt?.channel && l(n)[e.opt.channel].cfg.sxs?.length ? (p(), m("div", Qo, [
3065
3071
  u("div", ea, [
3066
3072
  G(u("input", {
3067
- "onUpdate:modelValue": d[0] || (d[0] = (c) => l(o).location.query.ss = c),
3073
+ "onUpdate:modelValue": d[0] || (d[0] = (i) => l(o).location.query.ss = i),
3068
3074
  placeholder: l(a).lg("asai.searchtips")
3069
3075
  }, null, 8, ta), [
3070
3076
  [de, l(o).location.query.ss]
3071
3077
  ]),
3072
3078
  u("button", {
3073
- onPointerdown: d[1] || (d[1] = (c) => l(s)())
3079
+ onPointerdown: d[1] || (d[1] = (i) => l(s)())
3074
3080
  }, v(l(a).lg("asai.search")), 33)
3075
3081
  ]),
3076
3082
  u("div", na, [
3077
3083
  G(u("select", {
3078
- "onUpdate:modelValue": d[2] || (d[2] = (c) => l(o).location.query.ssty = c)
3084
+ "onUpdate:modelValue": d[2] || (d[2] = (i) => l(o).location.query.ssty = i)
3079
3085
  }, [
3080
- (p(!0), m(E, null, ee(l(n)[e.opt.channel].cfg.sss, (c) => (p(), m("option", {
3081
- key: c,
3082
- value: c === "asai" ? void 0 : c
3083
- }, v(c === "asai" ? l(i)("ui.sss") || "Table" : l(n)[e.opt.channel].rfdata?.lang?.[c]), 9, oa))), 128))
3086
+ (p(!0), m(E, null, ee(l(n)[e.opt.channel].cfg.sss, (i) => (p(), m("option", {
3087
+ key: i,
3088
+ value: i === "asai" ? void 0 : i
3089
+ }, v(i === "asai" ? l(r)("ui.sss") || "Table" : l(n)[e.opt.channel].rfdata?.lang?.[i]), 9, oa))), 128))
3084
3090
  ], 512), [
3085
3091
  [we, l(o).location.query.ssty]
3086
3092
  ]),
3087
3093
  G(u("select", {
3088
- "onUpdate:modelValue": d[3] || (d[3] = (c) => l(o).location.query.sx = c)
3094
+ "onUpdate:modelValue": d[3] || (d[3] = (i) => l(o).location.query.sx = i)
3089
3095
  }, [
3090
- (p(!0), m(E, null, ee(l(n)[e.opt.channel].cfg.sxs, (c) => (p(), m("option", {
3091
- key: c,
3092
- value: c === "asai" ? void 0 : c
3093
- }, v(c === "asai" ? l(i)("ui.sxs") || "Sort" : l(n)[e.opt.channel].rfdata?.lang?.[c]), 9, aa))), 128))
3096
+ (p(!0), m(E, null, ee(l(n)[e.opt.channel].cfg.sxs, (i) => (p(), m("option", {
3097
+ key: i,
3098
+ value: i === "asai" ? void 0 : i
3099
+ }, v(i === "asai" ? l(r)("ui.sxs") || "Sort" : l(n)[e.opt.channel].rfdata?.lang?.[i]), 9, aa))), 128))
3094
3100
  ], 512), [
3095
3101
  [we, l(o).location.query.sx]
3096
3102
  ]),
3097
3103
  G(u("select", {
3098
- "onUpdate:modelValue": d[4] || (d[4] = (c) => l(o).location.query.sxty = c)
3104
+ "onUpdate:modelValue": d[4] || (d[4] = (i) => l(o).location.query.sxty = i)
3099
3105
  }, [
3100
- (p(!0), m(E, null, ee(l(i)("ui.sxtys") || [], (c, f) => (p(), m("option", {
3106
+ (p(!0), m(E, null, ee(l(r)("ui.sxtys") || [], (i, f) => (p(), m("option", {
3101
3107
  key: "sxty" + f,
3102
3108
  value: f == 0 ? void 0 : f.toString()
3103
- }, v(c), 9, sa))), 128))
3109
+ }, v(i), 9, sa))), 128))
3104
3110
  ], 512), [
3105
3111
  [we, l(o).location.query.sxty]
3106
3112
  ])
@@ -3121,22 +3127,22 @@ const At = {
3121
3127
  setup(t) {
3122
3128
  const e = t, { $fn: n, $global: o } = e.ujt, a = me({
3123
3129
  list: []
3124
- }), { channelSelect: s, setShow: i } = n.useChannel(e);
3125
- return s(e.pm).then((r) => {
3126
- a.list = r.data;
3127
- }), (r, d) => {
3128
- const c = U("ChannelListType");
3129
- return p(!0), m(E, null, ee(a.list, (f, h) => D(r.$slots, "default", {
3130
- key: "list" + (f?.[r.getSnKey()] || h),
3130
+ }), { channelSelect: s, setShow: r } = n.useChannel(e);
3131
+ return s(e.pm).then((c) => {
3132
+ a.list = c.data;
3133
+ }), (c, d) => {
3134
+ const i = U("ChannelListType");
3135
+ return p(!0), m(E, null, ee(a.list, (f, h) => D(c.$slots, "default", {
3136
+ key: "list" + (f?.[c.getSnKey()] || h),
3131
3137
  item: f,
3132
- option: { setShow: l(i) }
3138
+ option: { setShow: l(r) }
3133
3139
  }, () => [
3134
- W(c, {
3140
+ W(i, {
3135
3141
  ujt: t.ujt,
3136
3142
  opt: t.opt,
3137
3143
  pm: t.pm,
3138
3144
  item: f,
3139
- option: { setShow: l(i) }
3145
+ option: { setShow: l(r) }
3140
3146
  }, null, 8, ["ujt", "opt", "pm", "item", "option"])
3141
3147
  ])), 128);
3142
3148
  };
@@ -3155,17 +3161,17 @@ const At = {
3155
3161
  },
3156
3162
  setup(t) {
3157
3163
  const e = t, { $global: n, $fn: o } = e.ujt, { getTitleKey: a, getSnKey: s } = o.useChannel(e);
3158
- return (i, r) => (p(), m("div", {
3164
+ return (r, c) => (p(), m("div", {
3159
3165
  class: K(`list${t.item?.[l(s)()] && l(n).location.query?.show === t.item?.[l(s)()] ? " cur" : ""}`)
3160
3166
  }, [
3161
3167
  u("div", {
3162
3168
  class: "li",
3163
3169
  title: t.item?.[l(a)()] || "",
3164
- onPointerdown: r[0] || (r[0] = V(() => {
3170
+ onPointerdown: c[0] || (c[0] = V(() => {
3165
3171
  }, ["stop"])),
3166
- onPointerup: r[1] || (r[1] = V((d) => t.option?.setShow(t.item), ["stop"]))
3172
+ onPointerup: c[1] || (c[1] = V((d) => t.option?.setShow(t.item), ["stop"]))
3167
3173
  }, v(t.item?.[l(a)()] || ""), 41, ua),
3168
- D(i.$slots, "btns")
3174
+ D(r.$slots, "btns")
3169
3175
  ], 2));
3170
3176
  }
3171
3177
  }), pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3182,13 +3188,13 @@ const At = {
3182
3188
  },
3183
3189
  setup(t) {
3184
3190
  const e = t, { $global: n, $fn: o } = e.ujt, { getTitleKey: a, getSnKey: s } = o.useChannel(e);
3185
- return (i, r) => (p(), m("div", {
3191
+ return (r, c) => (p(), m("div", {
3186
3192
  class: K(`pic${t.item?.[l(s)()] && l(n).location.query?.show === t.item?.[l(s)()] ? " cur" : ""}`)
3187
3193
  }, [
3188
3194
  u("div", {
3189
3195
  class: "li",
3190
3196
  title: t.item?.[l(a)()] || "",
3191
- onPointerup: r[0] || (r[0] = V((d) => t.option?.setShow(t.item), ["stop"]))
3197
+ onPointerup: c[0] || (c[0] = V((d) => t.option?.setShow(t.item), ["stop"]))
3192
3198
  }, [
3193
3199
  t.item?.img ? (p(), m("img", {
3194
3200
  key: 0,
@@ -3197,7 +3203,7 @@ const At = {
3197
3203
  }, null, 8, ma)) : F("", !0),
3198
3204
  se(" " + v(t.item?.[l(a)()] || ""), 1)
3199
3205
  ], 40, fa),
3200
- D(i.$slots, "btns")
3206
+ D(r.$slots, "btns")
3201
3207
  ], 2));
3202
3208
  }
3203
3209
  }), ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3218,15 +3224,15 @@ const At = {
3218
3224
  "./_comps/pic.vue": ga
3219
3225
  });
3220
3226
  function o(s) {
3221
- const i = s.match(/([^\\/]+)(?=\.vue$)/);
3222
- return i ? i[1] : null;
3227
+ const r = s.match(/([^\\/]+)(?=\.vue$)/);
3228
+ return r ? r[1] : null;
3223
3229
  }
3224
3230
  for (let s in n)
3225
3231
  n[o(s) || s] = n[s], delete n[s];
3226
3232
  function a(s) {
3227
3233
  return n[s]?.default ? n[s].default : null;
3228
3234
  }
3229
- return (s, i) => (p(), Y(pe(a(e.opt?.lity || "list")), {
3235
+ return (s, r) => (p(), Y(pe(a(e.opt?.lity || "list")), {
3230
3236
  ujt: t.ujt,
3231
3237
  opt: t.opt,
3232
3238
  pm: t.pm,
@@ -3250,9 +3256,9 @@ const At = {
3250
3256
  },
3251
3257
  setup(t) {
3252
3258
  const e = t, { $fn: n, $db: o } = e.ujt, { channelLogin: a, channelLang: s } = n.useChannel(e);
3253
- return (i, r) => {
3259
+ return (r, c) => {
3254
3260
  const d = U("AsaiForm");
3255
- return D(i.$slots, "default", {
3261
+ return D(r.$slots, "default", {
3256
3262
  item: l(o)[e.opt.channel],
3257
3263
  option: { channelLogin: l(a), channelLang: l(s) }
3258
3264
  }, () => [
@@ -3265,7 +3271,7 @@ const At = {
3265
3271
  u("div", _a, [
3266
3272
  u("div", {
3267
3273
  class: "li cur",
3268
- onPointerdown: r[0] || (r[0] = (c) => l(a)())
3274
+ onPointerdown: c[0] || (c[0] = (i) => l(a)())
3269
3275
  }, v(l(n).lg("channeluser.ui.login")), 33)
3270
3276
  ])
3271
3277
  ]);
@@ -3283,21 +3289,21 @@ const At = {
3283
3289
  setup(t) {
3284
3290
  const e = t, { $fn: n } = e.ujt, { channelLang: o } = n.useChannel(e);
3285
3291
  function a(s) {
3286
- document.querySelectorAll(s).forEach((i) => {
3287
- i.classList.contains("as-channel-nohidden") ? i.classList.remove("as-channel-nohidden") : i.classList.add("as-channel-nohidden"), console.log(i.classList);
3292
+ document.querySelectorAll(s).forEach((r) => {
3293
+ r.classList.contains("as-channel-nohidden") ? r.classList.remove("as-channel-nohidden") : r.classList.add("as-channel-nohidden"), console.log(r.classList);
3288
3294
  });
3289
3295
  }
3290
- return (s, i) => D(s.$slots, "default", {
3296
+ return (s, r) => D(s.$slots, "default", {
3291
3297
  item: {},
3292
3298
  option: { toggleShow: a }
3293
3299
  }, () => [
3294
3300
  u("div", {
3295
3301
  class: "as-channel-opt-class",
3296
- onPointerdown: i[0] || (i[0] = (r) => a(".as-channel-class"))
3302
+ onPointerdown: r[0] || (r[0] = (c) => a(".as-channel-class"))
3297
3303
  }, " ☰ " + v(l(o)("ui.class") || "Class"), 33),
3298
3304
  u("div", {
3299
3305
  class: "as-channel-opt-list",
3300
- onPointerdown: i[1] || (i[1] = (r) => a(".as-channel-list"))
3306
+ onPointerdown: r[1] || (r[1] = (c) => a(".as-channel-list"))
3301
3307
  }, " ☰ " + v(l(o)("ui.list") || "List"), 33)
3302
3308
  ]);
3303
3309
  }
@@ -3311,32 +3317,32 @@ const At = {
3311
3317
  opt: {}
3312
3318
  },
3313
3319
  setup(t) {
3314
- const e = t, { $global: n, $fn: o, $db: a } = e.ujt, { setChannelHash: s, channelLang: i } = o.useChannel(e);
3315
- return (r, d) => D(r.$slots, "default", {
3320
+ const e = t, { $global: n, $fn: o, $db: a } = e.ujt, { setChannelHash: s, channelLang: r } = o.useChannel(e);
3321
+ return (c, d) => D(c.$slots, "default", {
3316
3322
  item: l(n).location.query,
3317
3323
  option: { setChannelHash: l(s) }
3318
3324
  }, () => [
3319
3325
  u("div", xa, [
3320
3326
  u("div", {
3321
3327
  class: "as-channel-pos",
3322
- onPointerup: d[0] || (d[0] = V((c) => l(s)("class"), ["stop"]))
3323
- }, v(l(i)("ui.class") || "Class"), 33),
3328
+ onPointerup: d[0] || (d[0] = V((i) => l(s)("class"), ["stop"]))
3329
+ }, v(l(r)("ui.class") || "Class"), 33),
3324
3330
  u("div", {
3325
3331
  class: "as-channel-pos",
3326
- onPointerup: d[1] || (d[1] = V((c) => l(s)("list"), ["stop"]))
3327
- }, v(l(i)("ui.list") || "List"), 33),
3332
+ onPointerup: d[1] || (d[1] = V((i) => l(s)("list"), ["stop"]))
3333
+ }, v(l(r)("ui.list") || "List"), 33),
3328
3334
  u("div", {
3329
3335
  class: "as-channel-pos",
3330
- onPointerup: d[2] || (d[2] = V((c) => l(s)("add"), ["stop"]))
3331
- }, v(l(i)("ui.add") || "Add"), 33),
3336
+ onPointerup: d[2] || (d[2] = V((i) => l(s)("add"), ["stop"]))
3337
+ }, v(l(r)("ui.add") || "Add"), 33),
3332
3338
  l(a)[e.opt.channel]?.cfg?.url?.reg ? (p(), m(E, { key: 0 }, [
3333
3339
  u("div", {
3334
3340
  class: "as-channel-pos",
3335
- onPointerup: d[3] || (d[3] = V((c) => l(s)("reg"), ["stop"]))
3341
+ onPointerup: d[3] || (d[3] = V((i) => l(s)("reg"), ["stop"]))
3336
3342
  }, v(l(o).lg("channeluser.ui.reg")), 33),
3337
3343
  u("div", {
3338
3344
  class: "as-channel-pos",
3339
- onPointerup: d[4] || (d[4] = V((c) => l(s)("login"), ["stop"]))
3345
+ onPointerup: d[4] || (d[4] = V((i) => l(s)("login"), ["stop"]))
3340
3346
  }, v(l(o).lg("channeluser.ui.login")), 33)
3341
3347
  ], 64)) : F("", !0)
3342
3348
  ])
@@ -3352,15 +3358,15 @@ const At = {
3352
3358
  opt: {}
3353
3359
  },
3354
3360
  setup(t) {
3355
- const e = t, { $fn: n, $db: o } = e.ujt, { channelReg: a, initAddChannel: s, channelLang: i } = n.useChannel(e);
3356
- return s(), (r, d) => {
3357
- const c = U("AsaiForm");
3358
- return D(r.$slots, "default", {
3361
+ const e = t, { $fn: n, $db: o } = e.ujt, { channelReg: a, initAddChannel: s, channelLang: r } = n.useChannel(e);
3362
+ return s(), (c, d) => {
3363
+ const i = U("AsaiForm");
3364
+ return D(c.$slots, "default", {
3359
3365
  item: l(o)[e.opt.channel],
3360
- option: { channelReg: l(a), channelLang: l(i) }
3366
+ option: { channelReg: l(a), channelLang: l(r) }
3361
3367
  }, () => [
3362
3368
  u("div", Aa, [
3363
- W(c, {
3369
+ W(i, {
3364
3370
  ujt: t.ujt,
3365
3371
  asaidata: l(o)[e.opt.channel].rfdata
3366
3372
  }, null, 8, ["ujt", "asaidata"])
@@ -3411,20 +3417,20 @@ const At = {
3411
3417
  },
3412
3418
  setup(t) {
3413
3419
  const e = t, { $fn: n, $global: o } = e.ujt, { channelUpload: a, channelDownload: s } = n.useChannel(e);
3414
- function i(r) {
3415
- a(r);
3420
+ function r(c) {
3421
+ a(c);
3416
3422
  }
3417
- return (r, d) => {
3418
- const c = U("AsUploadTxt");
3419
- return D(r.$slots, "default", {
3423
+ return (c, d) => {
3424
+ const i = U("AsUploadTxt");
3425
+ return D(c.$slots, "default", {
3420
3426
  item: {},
3421
- option: { onUpload: i, channelUpload: l(a), channelDownload: l(s) }
3427
+ option: { onUpload: r, channelUpload: l(a), channelDownload: l(s) }
3422
3428
  }, () => [
3423
3429
  u("button", Ea, [
3424
- W(c, {
3430
+ W(i, {
3425
3431
  ujt: t.ujt,
3426
3432
  opt: { accept: ".txt" },
3427
- onOnUpload: i
3433
+ onOnUpload: r
3428
3434
  }, {
3429
3435
  default: re(() => [
3430
3436
  se(v(l(o).lang.asai.upload), 1)
@@ -3455,7 +3461,7 @@ const At = {
3455
3461
  room: {}
3456
3462
  },
3457
3463
  setup(t) {
3458
- const e = t, { $fn: n, $ws: o, $global: a } = e.ujt, { sendChatRoom: s } = n.useChatRoom(e), i = e?.room?.wsname || "web", r = e?.room?.roomname || "asai", d = N(null), c = N(null), f = me({
3464
+ const e = t, { $fn: n, $ws: o, $global: a } = e.ujt, { sendChatRoom: s } = n.useChatRoom(e), r = e?.room?.wsname || "web", c = e?.room?.roomname || "asai", d = N(null), i = N(null), f = me({
3459
3465
  mediaPress: null,
3460
3466
  mediaNew: null,
3461
3467
  mediaChunks: [],
@@ -3475,18 +3481,18 @@ const At = {
3475
3481
  }, f.optFn = () => {
3476
3482
  f.optty = f.optty > 0 ? 0 : 1, f.send.ty = f.optty ? f.optty : 0, f.send.ty || (f.send.msg = "");
3477
3483
  }, f.insertFn = ($) => {
3478
- c.value && (c.value.focus(), be(() => {
3484
+ i.value && (i.value.focus(), be(() => {
3479
3485
  try {
3480
- const y = c.value;
3486
+ const y = i.value;
3481
3487
  if (!y) return;
3482
3488
  const b = y.selectionStart !== null ? y.selectionStart : y.value.length, k = y.selectionEnd !== null ? y.selectionEnd : y.value.length, M = y.value, x = M.substring(0, b) + $ + M.substring(k);
3483
3489
  y.value = x;
3484
3490
  const L = b + $.length;
3485
3491
  y.setSelectionRange(L, L), y.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = x;
3486
3492
  } catch {
3487
- const k = c.value.value + $;
3488
- c.value.value = k, c.value.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = k, setTimeout(() => {
3489
- c.value && c.value.setSelectionRange(
3493
+ const k = i.value.value + $;
3494
+ i.value.value = k, i.value.dispatchEvent(new Event("input", { bubbles: !0 })), f.send.msg = k, setTimeout(() => {
3495
+ i.value && i.value.setSelectionRange(
3490
3496
  k.length,
3491
3497
  k.length
3492
3498
  );
@@ -3495,10 +3501,10 @@ const At = {
3495
3501
  }));
3496
3502
  };
3497
3503
  function h() {
3498
- s(r, i, f.send, "");
3504
+ s(c, r, f.send, "");
3499
3505
  }
3500
3506
  const g = Oe(
3501
- () => o.rooms?.[r]?.length,
3507
+ () => o.rooms?.[c]?.length,
3502
3508
  ($, y) => {
3503
3509
  $ != y && _();
3504
3510
  }
@@ -3516,7 +3522,7 @@ const At = {
3516
3522
  u("div", Fa, [
3517
3523
  D($.$slots, "chatheader", {
3518
3524
  opt: {
3519
- chatlist: l(o).rooms[l(r)],
3525
+ chatlist: l(o).rooms[l(c)],
3520
3526
  chatdata: f,
3521
3527
  room: t.room
3522
3528
  }
@@ -3531,13 +3537,13 @@ const At = {
3531
3537
  }, [
3532
3538
  D($.$slots, "chatbody", {
3533
3539
  opt: {
3534
- chatlist: l(o).rooms[l(r)],
3540
+ chatlist: l(o).rooms[l(c)],
3535
3541
  chatdata: f,
3536
3542
  room: t.room
3537
3543
  }
3538
3544
  }, () => [
3539
3545
  u("div", Ha, [
3540
- (p(!0), m(E, null, ee(l(o).rooms[l(r)], (k, M) => (p(), m("div", {
3546
+ (p(!0), m(E, null, ee(l(o).rooms[l(c)], (k, M) => (p(), m("div", {
3541
3547
  key: M,
3542
3548
  class: K(["chat-message", { self: f.send.us === k.us }])
3543
3549
  }, [
@@ -3575,7 +3581,7 @@ const At = {
3575
3581
  ]),
3576
3582
  D($.$slots, "chatfooter", {
3577
3583
  opt: {
3578
- chatlist: l(o).rooms[l(r)],
3584
+ chatlist: l(o).rooms[l(c)],
3579
3585
  chatdata: f,
3580
3586
  room: t.room
3581
3587
  }
@@ -3591,7 +3597,7 @@ const At = {
3591
3597
  f.send.ty < 3 ? G((p(), m("input", {
3592
3598
  key: 0,
3593
3599
  ref_key: "inputDom",
3594
- ref: c,
3600
+ ref: i,
3595
3601
  type: "text",
3596
3602
  "onUpdate:modelValue": y[1] || (y[1] = (k) => f.send.msg = k),
3597
3603
  placeholder: t.room?.lang?.placeholder || l(a).lang.sys.chat.placeholder,
@@ -3626,16 +3632,16 @@ const At = {
3626
3632
  const e = t, { $fn: n } = e.ujt, { mediaOnPress: o, mediaOnHold: a, mediaOnRelease: s } = n.useMediaWork(
3627
3633
  e.ujt,
3628
3634
  e.mediadata
3629
- ), i = N(null);
3630
- return e.mediadata.mediaView = i, (r, d) => {
3631
- const c = ve("longpress");
3635
+ ), r = N(null);
3636
+ return e.mediadata.mediaView = r, (c, d) => {
3637
+ const i = ve("longpress");
3632
3638
  return p(), m("div", ls, [
3633
3639
  u("div", is, [
3634
3640
  t.mediadata.mediaWorking ? (p(), m("audio", {
3635
3641
  key: 0,
3636
3642
  class: "as-media-working",
3637
3643
  ref_key: "mediaView",
3638
- ref: i,
3644
+ ref: r,
3639
3645
  autoplay: "",
3640
3646
  playsinline: "",
3641
3647
  muted: "",
@@ -3657,7 +3663,7 @@ const At = {
3657
3663
  qe('<div class="recording-indicator" data-v-18c80c90><div class="pulse" data-v-18c80c90></div><div class="pulse pulse-2" data-v-18c80c90></div><div class="pulse pulse-3" data-v-18c80c90></div></div><div class="audio-bars" data-v-18c80c90><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div><div class="bar" data-v-18c80c90></div></div>', 2)
3658
3664
  ])])) : F("", !0)
3659
3665
  ], 2)), [
3660
- [c, {
3666
+ [i, {
3661
3667
  press: l(o),
3662
3668
  hold: l(a),
3663
3669
  release: l(s)
@@ -3686,10 +3692,10 @@ const At = {
3686
3692
  class: "as-emoji-area",
3687
3693
  onPointerdown: o
3688
3694
  }, [
3689
- (p(!0), m(E, null, ee(n.value, (i, r) => (p(), m("i", {
3690
- key: "emoji_" + r,
3695
+ (p(!0), m(E, null, ee(n.value, (r, c) => (p(), m("i", {
3696
+ key: "emoji_" + c,
3691
3697
  class: "as-emoji-item"
3692
- }, v(i), 1))), 128))
3698
+ }, v(r), 1))), 128))
3693
3699
  ], 32));
3694
3700
  }
3695
3701
  }), hs = /* @__PURE__ */ q(ms, [["__scopeId", "data-v-ebb02e7c"]]), gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -3710,18 +3716,18 @@ const At = {
3710
3716
  e.ujt,
3711
3717
  e.mediadata,
3712
3718
  1
3713
- ), i = N(null);
3714
- return e.mediadata.mediaFnView = async (r) => {
3715
- i.value.srcObject = r, await i.value.play();
3716
- }, (r, d) => {
3717
- const c = ve("longpress");
3719
+ ), r = N(null);
3720
+ return e.mediadata.mediaFnView = async (c) => {
3721
+ r.value.srcObject = c, await r.value.play();
3722
+ }, (c, d) => {
3723
+ const i = ve("longpress");
3718
3724
  return p(), m("div", vs, [
3719
3725
  u("div", ys, [
3720
3726
  t.mediadata.mediaWorking ? (p(), m("video", {
3721
3727
  key: 0,
3722
3728
  class: "as-media-working",
3723
3729
  ref_key: "mediaView",
3724
- ref: i,
3730
+ ref: r,
3725
3731
  autoplay: "",
3726
3732
  playsinline: "",
3727
3733
  muted: ""
@@ -3742,7 +3748,7 @@ const At = {
3742
3748
  qe('<div class="recording-indicator" data-v-99ad2b76><div class="pulse" data-v-99ad2b76></div><div class="pulse pulse-2" data-v-99ad2b76></div><div class="pulse pulse-3" data-v-99ad2b76></div></div><div class="audio-bars" data-v-99ad2b76><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div><div class="bar" data-v-99ad2b76></div></div>', 2)
3743
3749
  ])])) : F("", !0)
3744
3750
  ], 2)), [
3745
- [c, {
3751
+ [i, {
3746
3752
  press: l(o),
3747
3753
  hold: l(a),
3748
3754
  release: l(s)
@@ -3774,21 +3780,21 @@ const At = {
3774
3780
  "./_comps/VedioRecorder.vue": js
3775
3781
  });
3776
3782
  function s(d) {
3777
- const c = d.match(/([^\\/]+)(?=\.vue$)/);
3778
- return c ? c[1] : null;
3783
+ const i = d.match(/([^\\/]+)(?=\.vue$)/);
3784
+ return i ? i[1] : null;
3779
3785
  }
3780
3786
  for (let d in a)
3781
3787
  a[s(d) || d] = a[d], delete a[d];
3782
- function i(d) {
3788
+ function r(d) {
3783
3789
  return d && a[d]?.default ? a[d].default : null;
3784
3790
  }
3785
- function r(d = null) {
3791
+ function c(d = null) {
3786
3792
  console.log(666.006, "setOptty", d), d ? (e.chatdata.optty = d[0], e.chatdata.optcomp = d[1]) : (e.chatdata.optty = 1, e.chatdata.optcomp = "");
3787
3793
  }
3788
- return (d, c) => (p(), m("div", xs, [
3794
+ return (d, i) => (p(), m("div", xs, [
3789
3795
  t.chatdata.optty == 1 ? (p(!0), m(E, { key: 0 }, ee(o.types, (f) => (p(), m("div", {
3790
3796
  class: "as-chatopt-li",
3791
- onPointerdown: (h) => r(f),
3797
+ onPointerdown: (h) => c(f),
3792
3798
  key: "li" + f[0]
3793
3799
  }, [
3794
3800
  u("div", Ps, v(f[2]), 1),
@@ -3797,14 +3803,14 @@ const At = {
3797
3803
  u("div", As, [
3798
3804
  u("div", {
3799
3805
  class: "as-chatopt-btn",
3800
- onPointerdown: c[0] || (c[0] = (f) => r())
3806
+ onPointerdown: i[0] || (i[0] = (f) => c())
3801
3807
  }, v(l(n).lang.sys.chat.optBack), 33),
3802
3808
  u("div", {
3803
3809
  class: "as-chatopt-btn",
3804
- onPointerdown: c[1] || (c[1] = (f) => t.chatdata.optFn())
3810
+ onPointerdown: i[1] || (i[1] = (f) => t.chatdata.optFn())
3805
3811
  }, v(l(n).lang.sys.chat.optClose), 33)
3806
3812
  ]),
3807
- t.chatdata.optcomp ? (p(), Y(pe(i(t.chatdata.optcomp)), {
3813
+ t.chatdata.optcomp ? (p(), Y(pe(r(t.chatdata.optcomp)), {
3808
3814
  key: 0,
3809
3815
  ujt: t.ujt,
3810
3816
  room: t.room,
@@ -3834,7 +3840,7 @@ const At = {
3834
3840
  }
3835
3841
  return { initKeyboard: n };
3836
3842
  }, Ls = (t, e) => {
3837
- const { $global: n, $fn: o, $model: a } = t, s = {}, i = (c, f, h, g = null, _ = null) => {
3843
+ const { $global: n, $fn: o, $model: a } = t, s = {}, r = (i, f, h, g = null, _ = null) => {
3838
3844
  if (e.keyMap.bd.Type == "Chinese" && g === "left") {
3839
3845
  e.keyMap.bd.zhindex < 1 ? e.keyMap.bd.zhindex = 0 : e.keyMap.bd.zhindex--;
3840
3846
  return;
@@ -3865,121 +3871,121 @@ const At = {
3865
3871
  return;
3866
3872
  }
3867
3873
  }
3868
- c.value = f, e.keyMap.bd.pos = h, c.dispatchEvent(new Event("input", { bubbles: !0 }));
3874
+ i.value = f, e.keyMap.bd.pos = h, i.dispatchEvent(new Event("input", { bubbles: !0 }));
3869
3875
  try {
3870
- c.focus(), c.setSelectionRange(h, h);
3876
+ i.focus(), i.setSelectionRange(h, h);
3871
3877
  } catch {
3872
3878
  n.keyboard.params?.ot?.fnnumcb?.();
3873
3879
  }
3874
- }, r = (c = {}) => {
3875
- c.char = c.char || (e.keyMap.bd.Shift ? c.key.toUpperCase() : c.key);
3876
- const f = c.elVal.slice(0, c.startPos) + c.char + c.elVal.slice(c.endPos);
3877
- return i(
3878
- c.elDom,
3880
+ }, c = (i = {}) => {
3881
+ i.char = i.char || (e.keyMap.bd.Shift ? i.key.toUpperCase() : i.key);
3882
+ const f = i.elVal.slice(0, i.startPos) + i.char + i.elVal.slice(i.endPos);
3883
+ return r(
3884
+ i.elDom,
3879
3885
  f,
3880
- c.startPos + c.char.length,
3881
- c.char,
3882
- c.onsuggest
3883
- ), c.elDom.focus(), f;
3886
+ i.startPos + i.char.length,
3887
+ i.char,
3888
+ i.onsuggest
3889
+ ), i.elDom.focus(), f;
3884
3890
  };
3885
- s.default = (c = {}) => {
3886
- n.keyboard.params.ot.isnumber && !/[0-9.-]/.test(c.key) || r(c);
3887
- }, s.Backspace = (c = {}) => {
3888
- const f = c.startPos === c.endPos ? c.startPos - 1 : c.startPos, h = c.elVal.slice(0, f) + c.elVal.slice(c.endPos);
3889
- i(c.elDom, h, f, 0);
3890
- }, s.Left = (c = {}) => {
3891
- i(
3892
- c.elDom,
3893
- c.elVal,
3894
- c.startPos - 1 > 0 ? c.startPos - 1 : 0,
3891
+ s.default = (i = {}) => {
3892
+ n.keyboard.params.ot.isnumber && !/[0-9.-]/.test(i.key) || c(i);
3893
+ }, s.Backspace = (i = {}) => {
3894
+ const f = i.startPos === i.endPos ? i.startPos - 1 : i.startPos, h = i.elVal.slice(0, f) + i.elVal.slice(i.endPos);
3895
+ r(i.elDom, h, f, 0);
3896
+ }, s.Left = (i = {}) => {
3897
+ r(
3898
+ i.elDom,
3899
+ i.elVal,
3900
+ i.startPos - 1 > 0 ? i.startPos - 1 : 0,
3895
3901
  "left"
3896
3902
  );
3897
- }, s.Right = (c = {}) => {
3898
- i(
3899
- c.elDom,
3900
- c.elVal,
3901
- c.endPos + 1 > c.elVal.length ? c.elVal.length : c.endPos + 1,
3903
+ }, s.Right = (i = {}) => {
3904
+ r(
3905
+ i.elDom,
3906
+ i.elVal,
3907
+ i.endPos + 1 > i.elVal.length ? i.elVal.length : i.endPos + 1,
3902
3908
  "right"
3903
3909
  );
3904
- }, s.Enter = (c = {}) => {
3905
- r({ ...c, char: `
3910
+ }, s.Enter = (i = {}) => {
3911
+ c({ ...i, char: `
3906
3912
  ` });
3907
- }, s.Shift = (c = {}) => {
3913
+ }, s.Shift = (i = {}) => {
3908
3914
  e.keyMap.bd.Shift = !e.keyMap.bd.Shift;
3909
- }, s.Ctrl = (c = {}) => {
3915
+ }, s.Ctrl = (i = {}) => {
3910
3916
  e.keyMap.bd.Ctrl = !e.keyMap.bd.Ctrl;
3911
- }, s.Hide = (c = {}) => {
3917
+ }, s.Hide = (i = {}) => {
3912
3918
  n.keyboard.params?.ot?.fndscb(), n.keyboard.showkeyboard = "", n.keyboard.params = null;
3913
- }, s.Drag = (c = {}) => {
3914
- }, s.Space = (c = {}) => {
3915
- e.keyMap.bd.Ctrl ? (n.keyboard.areastyle = {}, e.keyMap.bd.Shift = !1, e.keyMap.bd.Ctrl = !1) : r({ ...c, char: " " });
3916
- }, s.Cut = async (c = {}) => {
3919
+ }, s.Drag = (i = {}) => {
3920
+ }, s.Space = (i = {}) => {
3921
+ e.keyMap.bd.Ctrl ? (n.keyboard.areastyle = {}, e.keyMap.bd.Shift = !1, e.keyMap.bd.Ctrl = !1) : c({ ...i, char: " " });
3922
+ }, s.Cut = async (i = {}) => {
3917
3923
  try {
3918
3924
  if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.copyText && n.keyboard.opt?.backText) {
3919
3925
  n.keyboard.opt?.copyText() && n.keyboard.opt?.backText();
3920
3926
  return;
3921
3927
  }
3922
3928
  await o.As.copyToClipboard(
3923
- c.elVal.slice(c.startPos, c.endPos)
3924
- ), c.startPos != c.endPos && await s.Backspace(c);
3929
+ i.elVal.slice(i.startPos, i.endPos)
3930
+ ), i.startPos != i.endPos && await s.Backspace(i);
3925
3931
  } catch (f) {
3926
3932
  console.error("copy fail: ", f);
3927
3933
  }
3928
- }, s.x = async (c = {}) => {
3929
- e.keyMap.bd.Ctrl ? await s.Cut(c) : r(c);
3930
- }, s.Copy = async (c = {}) => {
3934
+ }, s.x = async (i = {}) => {
3935
+ e.keyMap.bd.Ctrl ? await s.Cut(i) : c(i);
3936
+ }, s.Copy = async (i = {}) => {
3931
3937
  try {
3932
3938
  if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.copyText) {
3933
3939
  n.keyboard.opt?.copyText();
3934
3940
  return;
3935
3941
  }
3936
3942
  await o.As.copyToClipboard(
3937
- c.elVal.slice(c.startPos, c.endPos)
3943
+ i.elVal.slice(i.startPos, i.endPos)
3938
3944
  );
3939
3945
  } catch (f) {
3940
3946
  console.error("copy fail: ", f);
3941
3947
  }
3942
- }, s.c = async (c = {}) => {
3943
- e.keyMap.bd.Ctrl ? await s.Copy(c) : r(c);
3944
- }, s.Paste = async (c = {}) => {
3948
+ }, s.c = async (i = {}) => {
3949
+ e.keyMap.bd.Ctrl ? await s.Copy(i) : c(i);
3950
+ }, s.Paste = async (i = {}) => {
3945
3951
  try {
3946
3952
  if (n.keyboard.params.type === "monaco" && n.keyboard.opt?.pasteText) {
3947
3953
  n.keyboard.opt?.pasteText();
3948
3954
  return;
3949
3955
  }
3950
3956
  const f = await o.As.readFromClipboard();
3951
- r({
3952
- ...c,
3957
+ c({
3958
+ ...i,
3953
3959
  char: f
3954
3960
  });
3955
3961
  } catch (f) {
3956
3962
  console.error("paste fail: ", f);
3957
3963
  }
3958
- }, s.v = async (c = {}) => {
3959
- e.keyMap.bd.Ctrl ? await s.Paste(c) : r(c);
3960
- }, s["▲"] = async (c = {}) => {
3961
- const h = c.elVal.split(".")[1]?.length || 0;
3962
- h ? c.elVal = (+c.elVal + 1 / Math.pow(10, h)).toFixed(h) : c.elVal++, i(c.elDom, c.elVal, c.startPos, 0);
3963
- }, s["▼"] = async (c = {}) => {
3964
- const h = c.elVal.split(".")[1]?.length || 0;
3965
- h ? c.elVal = (+c.elVal - 1 / Math.pow(10, h)).toFixed(h) : c.elVal--, i(c.elDom, c.elVal, c.startPos, 0);
3964
+ }, s.v = async (i = {}) => {
3965
+ e.keyMap.bd.Ctrl ? await s.Paste(i) : c(i);
3966
+ }, s["▲"] = async (i = {}) => {
3967
+ const h = i.elVal.split(".")[1]?.length || 0;
3968
+ h ? i.elVal = (+i.elVal + 1 / Math.pow(10, h)).toFixed(h) : i.elVal++, r(i.elDom, i.elVal, i.startPos, 0);
3969
+ }, s["▼"] = async (i = {}) => {
3970
+ const h = i.elVal.split(".")[1]?.length || 0;
3971
+ h ? i.elVal = (+i.elVal - 1 / Math.pow(10, h)).toFixed(h) : i.elVal--, r(i.elDom, i.elVal, i.startPos, 0);
3966
3972
  };
3967
- function d(c = {}) {
3968
- n.pop["popkeyboard" + c.key].stat = 1;
3973
+ function d(i = {}) {
3974
+ n.pop["popkeyboard" + i.key].stat = 1;
3969
3975
  }
3970
- return e.keyMap.popkeys.forEach((c) => {
3971
- c.startsWith("pop") ? s[c] = (f = {}) => {
3972
- d(f), n.pop["popkeyboard" + c].fn = (h) => {
3973
- s.default({ ...f, key: h }), n.pop["popkeyboard" + c].stat = 0;
3976
+ return e.keyMap.popkeys.forEach((i) => {
3977
+ i.startsWith("pop") ? s[i] = (f = {}) => {
3978
+ d(f), n.pop["popkeyboard" + i].fn = (h) => {
3979
+ s.default({ ...f, key: h }), n.pop["popkeyboard" + i].stat = 0;
3974
3980
  };
3975
- } : s[c] = (f = {}) => {
3976
- n.pop["popkeyboard" + c] = {
3981
+ } : s[i] = (f = {}) => {
3982
+ n.pop["popkeyboard" + i] = {
3977
3983
  fn: (h) => {
3978
3984
  s.default({ ...f, key: h });
3979
3985
  }
3980
3986
  };
3981
3987
  };
3982
- }), { keysFun: s, updateInputValue: i, handleInsertChar: r };
3988
+ }), { keysFun: s, updateInputValue: r, handleInsertChar: c };
3983
3989
  }, Us = { class: "keyboard-area" }, Es = { class: "keyboard-top" }, Is = { class: "keyboard-menu" }, Ds = ["onPointerdown"], Rs = { class: "keyboard-opt" }, Fs = {
3984
3990
  key: 1,
3985
3991
  class: "keyboard-list"
@@ -4013,23 +4019,23 @@ const At = {
4013
4019
  a3e79982: s.cfg.theme.bg3,
4014
4020
  v05498808: s.cfg.theme.fs
4015
4021
  }));
4016
- const e = t, { $model: n, $global: o } = e.ujt, { initKeyboard: a } = zs(e.ujt), s = me({ ...a() }), { keysFun: i } = Ls(e.ujt, { keyMap: s });
4022
+ const e = t, { $model: n, $global: o } = e.ujt, { initKeyboard: a } = zs(e.ujt), s = me({ ...a() }), { keysFun: r } = Ls(e.ujt, { keyMap: s });
4017
4023
  Oe(
4018
4024
  () => o.keyboard.showkeyboard,
4019
4025
  (y, b) => {
4020
4026
  y && y !== b && f();
4021
4027
  }
4022
4028
  );
4023
- const r = H(() => s.askeytypes[o.keyboard.showkeyboard || ".askey-default"] || s.askeytypes[".askey-default"]);
4029
+ const c = H(() => s.askeytypes[o.keyboard.showkeyboard || ".askey-default"] || s.askeytypes[".askey-default"]);
4024
4030
  function d(y) {
4025
4031
  return y?.default ? y.default : ke(y);
4026
4032
  }
4027
- const c = () => {
4033
+ const i = () => {
4028
4034
  o.keyboard.params?.el && (s.bd.pos = o.keyboard.params.el.selectionStart || 0);
4029
4035
  }, f = () => {
4030
4036
  be(() => {
4031
4037
  setTimeout(() => {
4032
- c(), s.bd.Type = r?.value?.[0];
4038
+ i(), s.bd.Type = c?.value?.[0];
4033
4039
  }, 10);
4034
4040
  });
4035
4041
  }, h = async (y) => {
@@ -4038,7 +4044,7 @@ const At = {
4038
4044
  return;
4039
4045
  const k = b.value;
4040
4046
  let M, x;
4041
- M = b.selectionStart, x = b.selectionEnd, M == null && (M = k.length, x = k.length), i[y] && typeof i[y] == "function" ? i[y]({ key: y, elDom: b, elVal: k, startPos: M, endPos: x }) : i.default({
4047
+ M = b.selectionStart, x = b.selectionEnd, M == null && (M = k.length, x = k.length), r[y] && typeof r[y] == "function" ? r[y]({ key: y, elDom: b, elVal: k, startPos: M, endPos: x }) : r.default({
4042
4048
  key: y,
4043
4049
  elDom: b,
4044
4050
  elVal: k,
@@ -4056,7 +4062,7 @@ const At = {
4056
4062
  return b;
4057
4063
  }, _ = (y, b) => {
4058
4064
  let k = !1;
4059
- s.bd.Type === "Chinese" && (y === "Backspace" ? (s.bd.zhs && (s.bd.zhs = s.bd.zhs.slice(0, -1), s.bd.zharr = g(s.bd.zhs), k = !0), s.bd.zhs || (s.bd.zharr = [], s.bd.zhindex = 0)) : ["Space", "Enter"].includes(y) ? s.bd.zharr?.length && (y = s.bd.zharr[s.bd.zhindex], s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []) : "qwertyuiopasdfghjklzxcvbnm".includes(y) ? (s.bd.zhs += y, s.bd.zharr = g(s.bd.zhs), s.bd.zhindex = 0, k = !0) : y?.length > 1 && i[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (b.classList.contains("zh-li") || (y = s.bd.zharr[0] + y), s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []))), !k && h(y);
4065
+ s.bd.Type === "Chinese" && (y === "Backspace" ? (s.bd.zhs && (s.bd.zhs = s.bd.zhs.slice(0, -1), s.bd.zharr = g(s.bd.zhs), k = !0), s.bd.zhs || (s.bd.zharr = [], s.bd.zhindex = 0)) : ["Space", "Enter"].includes(y) ? s.bd.zharr?.length && (y = s.bd.zharr[s.bd.zhindex], s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []) : "qwertyuiopasdfghjklzxcvbnm".includes(y) ? (s.bd.zhs += y, s.bd.zharr = g(s.bd.zhs), s.bd.zhindex = 0, k = !0) : y?.length > 1 && r[y] || (s.bd.zhs && (s.bd.zhs = ""), s.bd.zharr?.length && (b.classList.contains("zh-li") || (y = s.bd.zharr[0] + y), s.bd.zhs = "", s.bd.zhindex = 0, s.bd.zharr = []))), !k && h(y);
4060
4066
  }, $ = (y) => {
4061
4067
  const b = y.target;
4062
4068
  if (!b.classList.contains("askey")) return;
@@ -4085,7 +4091,7 @@ const At = {
4085
4091
  u("div", Us, [
4086
4092
  G((p(), m("div", Es, [
4087
4093
  u("div", Is, [
4088
- (p(!0), m(E, null, ee(r.value, (x) => (p(), m("div", {
4094
+ (p(!0), m(E, null, ee(c.value, (x) => (p(), m("div", {
4089
4095
  class: K(s.bd.Type == x ? "active" : ""),
4090
4096
  key: x,
4091
4097
  onPointerdown: V((L) => s.bd.Type = x, ["stop"])
@@ -4096,7 +4102,7 @@ const At = {
4096
4102
  u("div", {
4097
4103
  onPointerdown: b[0] || (b[0] = V(
4098
4104
  //@ts-ignore
4099
- (...x) => l(i).Hide && l(i).Hide(...x),
4105
+ (...x) => l(r).Hide && l(r).Hide(...x),
4100
4106
  ["stop"]
4101
4107
  ))
4102
4108
  }, v(l(o).lang.sys?.keyboard?.Hide || "Hide"), 33)
@@ -4226,30 +4232,30 @@ const At = {
4226
4232
  }), s = H(() => n.keyboard.params?.ot?.style?.area ? n.keyboard.params.ot.style.area : {
4227
4233
  width: a.value.width + "px",
4228
4234
  height: a.value.height + "px"
4229
- }), i = H(() => {
4235
+ }), r = H(() => {
4230
4236
  if (n.keyboard.params?.ot?.style?.main)
4231
4237
  return n.keyboard.params.ot.style.main;
4232
4238
  {
4233
- const r = {
4239
+ const c = {
4234
4240
  maxWidth: a.value.width,
4235
4241
  maxHeight: a.value.height
4236
4242
  };
4237
- return n.keyboard.areastyle?.w == null && (n.keyboard.areastyle.w = o.data.sys.keyboard.cfg?.size?.w), n.keyboard.areastyle?.h == null && (n.keyboard.areastyle.h = o.data.sys.keyboard.cfg?.size?.h), n.keyboard.areastyle?.x == null && (!e.opt?.pos?.auto || a.value.width) && (n.keyboard.areastyle.x = (r.maxWidth - n.keyboard.areastyle.w) / 2 + e.opt?.pos?.x), n.keyboard.areastyle?.y == null && (!e.opt?.pos?.auto || a.value.height) && (n.keyboard.areastyle.y = r.maxHeight - n.keyboard.areastyle.h + e.opt?.pos?.y), r.maxWidth += "px", r.maxHeight += "px", r.transform = `translate(${n.keyboard.areastyle.x}px, ${n.keyboard.areastyle.y}px)`, r.width = n.keyboard.areastyle.w + "px", r.height = n.keyboard.areastyle.h + "px", r;
4243
+ return n.keyboard.areastyle?.w == null && (n.keyboard.areastyle.w = o.data.sys.keyboard.cfg?.size?.w), n.keyboard.areastyle?.h == null && (n.keyboard.areastyle.h = o.data.sys.keyboard.cfg?.size?.h), n.keyboard.areastyle?.x == null && (!e.opt?.pos?.auto || a.value.width) && (n.keyboard.areastyle.x = (c.maxWidth - n.keyboard.areastyle.w) / 2 + e.opt?.pos?.x), n.keyboard.areastyle?.y == null && (!e.opt?.pos?.auto || a.value.height) && (n.keyboard.areastyle.y = c.maxHeight - n.keyboard.areastyle.h + e.opt?.pos?.y), c.maxWidth += "px", c.maxHeight += "px", c.transform = `translate(${n.keyboard.areastyle.x}px, ${n.keyboard.areastyle.y}px)`, c.width = n.keyboard.areastyle.w + "px", c.height = n.keyboard.areastyle.h + "px", c;
4238
4244
  }
4239
4245
  });
4240
4246
  return he(() => {
4241
4247
  e.opt?.pos?.auto && (n.wd.w = document?.documentElement?.clientWidth || document?.body?.clientWidth, n.wd.h = document?.documentElement?.clientHeight || document?.body?.clientHeight);
4242
- }), (r, d) => {
4243
- const c = U("AsKeyBoard"), f = ve("popresizezoom");
4248
+ }), (c, d) => {
4249
+ const i = U("AsKeyBoard"), f = ve("popresizezoom");
4244
4250
  return p(), m("div", {
4245
4251
  style: Z(s.value),
4246
4252
  id: "askeyboardmask"
4247
4253
  }, [
4248
4254
  G((p(), m("div", {
4249
4255
  id: "askeyboardarea",
4250
- style: Z(i.value)
4256
+ style: Z(r.value)
4251
4257
  }, [
4252
- W(c, {
4258
+ W(i, {
4253
4259
  ujt: t.ujt,
4254
4260
  opt: t.opt
4255
4261
  }, null, 8, ["ujt", "opt"])
@@ -4284,20 +4290,20 @@ const At = {
4284
4290
  const e = t, { $global: n, $fn: o, $ws: a } = e.ujt, s = me({
4285
4291
  link: null
4286
4292
  });
4287
- function i() {
4293
+ function r() {
4288
4294
  s.link = JSON.parse(JSON.stringify(n.link));
4289
4295
  }
4290
- function r() {
4296
+ function c() {
4291
4297
  o.saveLink(s.link);
4292
4298
  }
4293
4299
  function d() {
4294
- o.startLink().then((c) => {
4295
- i();
4300
+ o.startLink().then((i) => {
4301
+ r();
4296
4302
  });
4297
4303
  }
4298
4304
  return he(() => {
4299
- i();
4300
- }), (c, f) => s.link ? (p(), m("div", ll, [
4305
+ r();
4306
+ }), (i, f) => s.link ? (p(), m("div", ll, [
4301
4307
  u("div", il, [
4302
4308
  (p(!0), m(E, null, ee(s.link, (h, g) => (p(), m("div", {
4303
4309
  class: "as-link-type",
@@ -4325,7 +4331,7 @@ const At = {
4325
4331
  u("div", ml, [
4326
4332
  u("div", {
4327
4333
  class: "btn",
4328
- onPointerdown: f[0] || (f[0] = (h) => r())
4334
+ onPointerdown: f[0] || (f[0] = (h) => c())
4329
4335
  }, "确认修改", 32),
4330
4336
  u("div", {
4331
4337
  class: "btn",
@@ -4333,7 +4339,7 @@ const At = {
4333
4339
  }, "恢复默认", 32),
4334
4340
  u("div", {
4335
4341
  class: "btn",
4336
- onPointerdown: f[2] || (f[2] = (h) => i())
4342
+ onPointerdown: f[2] || (f[2] = (h) => r())
4337
4343
  }, "取消修改", 32)
4338
4344
  ])
4339
4345
  ])) : F("", !0);
@@ -4365,7 +4371,7 @@ const At = {
4365
4371
  wait: 300,
4366
4372
  immediate: !1
4367
4373
  }
4368
- }), i = N(!1), r = N(!1), d = N(!1), c = N(""), f = N(16), h = N([]), g = H(() => {
4374
+ }), r = N(!1), c = N(!1), d = N(!1), i = N(""), f = N(16), h = N([]), g = H(() => {
4369
4375
  let J = {};
4370
4376
  return J = $.value?.find(
4371
4377
  (oe) => oe.sn === n.location.query?.id
@@ -4373,16 +4379,16 @@ const At = {
4373
4379
  }), _ = N([]), $ = H(() => a.value[0].cc.flatMap((J) => J.cc)), y = H(() => $.value.findIndex(
4374
4380
  (J) => J.sn === g.value?.sn
4375
4381
  )), b = H(() => y.value > 0), k = H(() => y.value < $.value.length - 1), M = () => {
4376
- i.value = !i.value;
4382
+ r.value = !r.value;
4377
4383
  }, x = () => {
4378
- r.value = !r.value, r.value || (c.value = "", _.value = []);
4384
+ c.value = !c.value, c.value || (i.value = "", _.value = []);
4379
4385
  }, L = () => {
4380
- r.value = !1, c.value = "", _.value = [];
4386
+ c.value = !1, i.value = "", _.value = [];
4381
4387
  }, S = (J) => {
4382
4388
  const oe = h.value.indexOf(J);
4383
4389
  oe > -1 ? h.value.splice(oe, 1) : h.value.push(J);
4384
4390
  }, w = (J) => {
4385
- o.setquery({ id: J.sn }), i.value = !1;
4391
+ o.setquery({ id: J.sn }), r.value = !1;
4386
4392
  }, P = () => {
4387
4393
  y.value > 0 && o.setquery({
4388
4394
  id: $.value[y.value - 1].sn
@@ -4397,7 +4403,7 @@ const At = {
4397
4403
  f.value > 12 && (f.value -= 1);
4398
4404
  }, T = () => {
4399
4405
  o.As.debounce(() => {
4400
- const J = c.value.trim();
4406
+ const J = i.value.trim();
4401
4407
  if (!J) {
4402
4408
  _.value = [];
4403
4409
  return;
@@ -4416,7 +4422,7 @@ const At = {
4416
4422
  }, R = (J) => {
4417
4423
  J?.sn && (o.setquery({
4418
4424
  id: J.sn
4419
- }), r.value = !1, c.value = "", _.value = []);
4425
+ }), c.value = !1, i.value = "", _.value = []);
4420
4426
  }, B = () => {
4421
4427
  d.value = window.innerWidth <= 768;
4422
4428
  };
@@ -4465,18 +4471,18 @@ const At = {
4465
4471
  ])
4466
4472
  ]),
4467
4473
  u("div", {
4468
- class: K(["search-panel", { active: r.value }])
4474
+ class: K(["search-panel", { active: c.value }])
4469
4475
  }, [
4470
4476
  u("div", kl, [
4471
4477
  u("div", wl, [
4472
4478
  G(u("input", {
4473
4479
  type: "text",
4474
- "onUpdate:modelValue": oe[0] || (oe[0] = (ae) => c.value = ae),
4480
+ "onUpdate:modelValue": oe[0] || (oe[0] = (ae) => i.value = ae),
4475
4481
  placeholder: "搜索小说内容...",
4476
4482
  class: "search-input",
4477
4483
  onInput: T
4478
4484
  }, null, 544), [
4479
- [de, c.value]
4485
+ [de, i.value]
4480
4486
  ]),
4481
4487
  u("button", {
4482
4488
  class: "close-search",
@@ -4495,12 +4501,12 @@ const At = {
4495
4501
  innerHTML: ae.preview
4496
4502
  }, null, 8, Pl)
4497
4503
  ], 8, xl))), 128))
4498
- ])) : c.value && _.value.length === 0 ? (p(), m("div", Cl, " 未找到相关内容 ")) : F("", !0)
4504
+ ])) : i.value && _.value.length === 0 ? (p(), m("div", Cl, " 未找到相关内容 ")) : F("", !0)
4499
4505
  ])
4500
4506
  ], 2),
4501
4507
  u("div", Al, [
4502
4508
  u("aside", {
4503
- class: K(["sidebar", { active: i.value }])
4509
+ class: K(["sidebar", { active: r.value }])
4504
4510
  }, [
4505
4511
  u("div", Ol, [
4506
4512
  u("h2", Ml, v(l(a)[0].ch), 1),
@@ -4634,7 +4640,7 @@ const At = {
4634
4640
  }));
4635
4641
  const e = t, { $global: n } = e.ujt, o = H(() => n.pagebusy?.zindex || 9999);
4636
4642
  return (a, s) => {
4637
- const i = ve("dbpointerdown");
4643
+ const r = ve("dbpointerdown");
4638
4644
  return l(n).pagebusy ? G((p(), m("div", Ql, [
4639
4645
  u("div", {
4640
4646
  class: "as-pagebusy-spin",
@@ -4647,7 +4653,7 @@ const At = {
4647
4653
  u("div", ei, v(l(n).pagebusy?.v), 1)
4648
4654
  ])), [
4649
4655
  [
4650
- i,
4656
+ r,
4651
4657
  () => {
4652
4658
  l(n).pagebusy?.keep || (l(n).pagebusy = null);
4653
4659
  }
@@ -4705,7 +4711,7 @@ const At = {
4705
4711
  "-webkit-mask-image": `url('${o.value}')`
4706
4712
  };
4707
4713
  }
4708
- function i() {
4714
+ function r() {
4709
4715
  return e.width ? {
4710
4716
  transform: "translateX(-100%)",
4711
4717
  filter: `drop-shadow(${e.width} 0 ${e.color})`,
@@ -4716,12 +4722,12 @@ const At = {
4716
4722
  height: `${e.height}`
4717
4723
  };
4718
4724
  }
4719
- return (r, d) => (p(), m("i", ai, [
4725
+ return (c, d) => (p(), m("i", ai, [
4720
4726
  t.showtype === "filter" ? (p(), m("i", si, [
4721
4727
  u("img", {
4722
- style: Z(i()),
4728
+ style: Z(r()),
4723
4729
  src: o.value,
4724
- onError: d[0] || (d[0] = (c) => a())
4730
+ onError: d[0] || (d[0] = (i) => a())
4725
4731
  }, null, 44, li)
4726
4732
  ])) : (p(), m("i", {
4727
4733
  key: 1,
@@ -4742,23 +4748,23 @@ const At = {
4742
4748
  emits: ["onUpload"],
4743
4749
  setup(t, { emit: e }) {
4744
4750
  const n = t, { $fn: o } = n.ujt, a = e, s = N(null);
4745
- function i(d) {
4746
- const c = d.target.files[0];
4747
- !n.opt?.size || c.size <= n.opt?.size ? o.As.readFile(c).then((f) => {
4751
+ function r(d) {
4752
+ const i = d.target.files[0];
4753
+ !n.opt?.size || i.size <= n.opt?.size ? o.As.readFile(i).then((f) => {
4748
4754
  o.api.webserver.apiPost(
4749
4755
  `/api/asaifile/manage/upbase64/?path=${n.opt.path}`,
4750
4756
  f
4751
4757
  ).then((h) => {
4752
- a("onUpload", h?.data, c), s.value.value = "";
4758
+ a("onUpload", h?.data, i), s.value.value = "";
4753
4759
  });
4754
- }) : (a("onUpload", "", c), s.value.value = "");
4760
+ }) : (a("onUpload", "", i), s.value.value = "");
4755
4761
  }
4756
- function r() {
4762
+ function c() {
4757
4763
  s.value.click();
4758
4764
  }
4759
- return (d, c) => (p(), m("div", {
4765
+ return (d, i) => (p(), m("div", {
4760
4766
  class: "as-upload-file",
4761
- onPointerdown: c[0] || (c[0] = (f) => r())
4767
+ onPointerdown: i[0] || (i[0] = (f) => c())
4762
4768
  }, [
4763
4769
  u("input", {
4764
4770
  hidden: "",
@@ -4766,7 +4772,7 @@ const At = {
4766
4772
  ref: s,
4767
4773
  type: "file",
4768
4774
  accept: t.opt?.accept || ".zip",
4769
- onChange: i
4775
+ onChange: r
4770
4776
  }, null, 40, ui),
4771
4777
  D(d.$slots, "default", {}, () => [
4772
4778
  se(v(l(o).lg("asai.upload")), 1)
@@ -4785,24 +4791,24 @@ const At = {
4785
4791
  emits: ["onUpload"],
4786
4792
  setup(t, { emit: e }) {
4787
4793
  const n = t, { $fn: o } = n.ujt, a = e, s = N(null);
4788
- function i(d) {
4789
- const c = d.target.files[0];
4790
- if (c)
4791
- if (!n.opt?.size || c.size <= n.opt?.size) {
4794
+ function r(d) {
4795
+ const i = d.target.files[0];
4796
+ if (i)
4797
+ if (!n.opt?.size || i.size <= n.opt?.size) {
4792
4798
  const f = new FileReader();
4793
4799
  f.onload = (h) => {
4794
4800
  const g = h.target?.result;
4795
- a("onUpload", g, c), s.value.value = "";
4796
- }, f.readAsText(c);
4801
+ a("onUpload", g, i), s.value.value = "";
4802
+ }, f.readAsText(i);
4797
4803
  } else
4798
- a("onUpload", "", c), s.value.value = "";
4804
+ a("onUpload", "", i), s.value.value = "";
4799
4805
  }
4800
- function r() {
4806
+ function c() {
4801
4807
  s.value.click();
4802
4808
  }
4803
- return (d, c) => (p(), m("div", {
4809
+ return (d, i) => (p(), m("div", {
4804
4810
  class: "as-upload-txt",
4805
- onPointerdown: c[0] || (c[0] = (f) => r())
4811
+ onPointerdown: i[0] || (i[0] = (f) => c())
4806
4812
  }, [
4807
4813
  u("input", {
4808
4814
  hidden: "",
@@ -4810,7 +4816,7 @@ const At = {
4810
4816
  ref: s,
4811
4817
  type: "file",
4812
4818
  accept: t.opt?.accept || ".txt,.json",
4813
- onChange: i
4819
+ onChange: r
4814
4820
  }, null, 40, mi),
4815
4821
  D(d.$slots, "default", {}, () => [
4816
4822
  se(v(l(o).lg("asai.upload")), 1)
@@ -4876,7 +4882,7 @@ const At = {
4876
4882
  const e = t, { $fn: n, $global: o } = e.ujt;
4877
4883
  return (a, s) => (p(), m("div", {
4878
4884
  class: "as-theme",
4879
- onPointerdown: s[0] || (s[0] = (i) => l(n).changetheme("auto"))
4885
+ onPointerdown: s[0] || (s[0] = (r) => l(n).changetheme("auto"))
4880
4886
  }, [
4881
4887
  D(a.$slots, "default", {}, () => [
4882
4888
  se(v(l(n).lg(
@@ -4902,14 +4908,14 @@ const At = {
4902
4908
  },
4903
4909
  emits: ["update:modelValue"],
4904
4910
  setup(t, { emit: e }) {
4905
- const n = t, { $fn: o, $global: a } = n.ujt, s = e, i = H({
4911
+ const n = t, { $fn: o, $global: a } = n.ujt, s = e, r = H({
4906
4912
  get() {
4907
4913
  return n.modelValue;
4908
4914
  },
4909
4915
  set(C) {
4910
4916
  s("update:modelValue", C);
4911
4917
  }
4912
- }), r = N(""), d = N(""), c = N(null), f = N(null), h = N({
4918
+ }), c = N(""), d = N(""), i = N(null), f = N(null), h = N({
4913
4919
  x: 0,
4914
4920
  y: 0,
4915
4921
  width: 0,
@@ -4936,10 +4942,10 @@ const At = {
4936
4942
  if (!O) return;
4937
4943
  const j = new FileReader();
4938
4944
  j.onload = (T) => {
4939
- r.value = T.target.result, d.value = "";
4945
+ c.value = T.target.result, d.value = "";
4940
4946
  }, j.readAsDataURL(O);
4941
4947
  }, b = () => {
4942
- const C = c.value, O = f.value;
4948
+ const C = i.value, O = f.value;
4943
4949
  if (!C || !O)
4944
4950
  return;
4945
4951
  const j = Math.min(O.clientWidth, C.naturalWidth), T = Math.min(O.clientHeight, C.naturalHeight), R = Math.min(j * 0.8, C.naturalWidth), B = Math.min(T * 0.8, C.naturalHeight);
@@ -5020,7 +5026,7 @@ const At = {
5020
5026
  }, L = () => {
5021
5027
  g.value.type = null, window.removeEventListener("mousemove", M), window.removeEventListener("touchmove", M), window.removeEventListener("mousemove", x), window.removeEventListener("touchmove", x), window.removeEventListener("mouseup", L), window.removeEventListener("touchend", L);
5022
5028
  }, S = () => {
5023
- const C = c.value, O = C.naturalWidth / C.width, j = C.naturalHeight / C.height, T = Math.min(
5029
+ const C = i.value, O = C.naturalWidth / C.width, j = C.naturalHeight / C.height, T = Math.min(
5024
5030
  h.value.width * O,
5025
5031
  C.naturalWidth
5026
5032
  ), R = Math.min(
@@ -5047,7 +5053,7 @@ const At = {
5047
5053
  "/api/asaifile/manage/upbase64/?path=" + a.sys.path.updir + O + ".png",
5048
5054
  C
5049
5055
  ).then((j) => {
5050
- i.value = j.data;
5056
+ r.value = j.data;
5051
5057
  });
5052
5058
  };
5053
5059
  return (C, O) => (p(), m("div", Mi, [
@@ -5056,7 +5062,7 @@ const At = {
5056
5062
  accept: "image/*",
5057
5063
  onChange: y
5058
5064
  }, null, 32),
5059
- r.value ? (p(), m("div", Ti, [
5065
+ c.value ? (p(), m("div", Ti, [
5060
5066
  u("div", {
5061
5067
  class: "preview-container",
5062
5068
  ref_key: "previewContainer",
@@ -5064,8 +5070,8 @@ const At = {
5064
5070
  }, [
5065
5071
  u("img", {
5066
5072
  ref_key: "previewImage",
5067
- ref: c,
5068
- src: r.value,
5073
+ ref: i,
5074
+ src: c.value,
5069
5075
  onLoad: b
5070
5076
  }, null, 40, zi),
5071
5077
  G(u("div", {
@@ -5148,43 +5154,43 @@ const At = {
5148
5154
  const e = t, { $fn: n } = e.ujt;
5149
5155
  !e.asaidata?.data && e.asaidata.path && o(), e.asaidata.ty === "txt" && (e.asaidata.data = JSON.stringify(e.asaidata.data, null, 2));
5150
5156
  function o() {
5151
- e.fnapi?.apiGet("/api/asaijson/manage/select/?path=" + e.asaidata.path).then((i) => {
5152
- e.asaidata.data = i.data;
5157
+ e.fnapi?.apiGet("/api/asaijson/manage/select/?path=" + e.asaidata.path).then((r) => {
5158
+ e.asaidata.data = r.data;
5153
5159
  });
5154
5160
  }
5155
5161
  function a() {
5156
- e.fnapi?.apiGet("/api/asaijson/manage/delete/?path=" + e.asaidata.path).then((i) => {
5157
- console.log(666.703, i);
5162
+ e.fnapi?.apiGet("/api/asaijson/manage/delete/?path=" + e.asaidata.path).then((r) => {
5163
+ console.log(666.703, r);
5158
5164
  });
5159
5165
  }
5160
5166
  function s() {
5161
5167
  e.fnapi?.apiPost(
5162
5168
  "/api/asaijson/manage/update/?path=" + e.asaidata.path,
5163
5169
  e.asaidata.data
5164
- ).then((i) => {
5165
- console.log(666.702, i);
5170
+ ).then((r) => {
5171
+ console.log(666.702, r);
5166
5172
  });
5167
5173
  }
5168
- return (i, r) => {
5174
+ return (r, c) => {
5169
5175
  const d = U("AsaiForm");
5170
5176
  return p(), m("div", Fi, [
5171
5177
  t.asaidata.btn ? (p(), m("div", Wi, [
5172
5178
  u("button", {
5173
- onPointerdown: r[0] || (r[0] = (c) => o())
5179
+ onPointerdown: c[0] || (c[0] = (i) => o())
5174
5180
  }, v(l(n).lg("asai.read")), 33),
5175
5181
  G(u("input", {
5176
5182
  type: "text",
5177
- "onUpdate:modelValue": r[1] || (r[1] = (c) => t.asaidata.path = c)
5183
+ "onUpdate:modelValue": c[1] || (c[1] = (i) => t.asaidata.path = i)
5178
5184
  }, null, 512), [
5179
5185
  [de, t.asaidata.path]
5180
5186
  ]),
5181
5187
  t.asaidata.list?.length ? G((p(), m("select", {
5182
5188
  key: 0,
5183
- "onUpdate:modelValue": r[2] || (r[2] = (c) => t.asaidata.path = c)
5189
+ "onUpdate:modelValue": c[2] || (c[2] = (i) => t.asaidata.path = i)
5184
5190
  }, [
5185
- (p(!0), m(E, null, ee(t.asaidata.list, (c) => (p(), m("option", {
5186
- value: c.value
5187
- }, v(c.label), 9, Hi))), 256))
5191
+ (p(!0), m(E, null, ee(t.asaidata.list, (i) => (p(), m("option", {
5192
+ value: i.value
5193
+ }, v(i.label), 9, Hi))), 256))
5188
5194
  ], 512)), [
5189
5195
  [we, t.asaidata.path]
5190
5196
  ]) : F("", !0)
@@ -5193,7 +5199,7 @@ const At = {
5193
5199
  t.asaidata.ty == "txt" ? G((p(), m("textarea", {
5194
5200
  key: 0,
5195
5201
  class: "as-json-txt",
5196
- "onUpdate:modelValue": r[3] || (r[3] = (c) => t.asaidata.data = c)
5202
+ "onUpdate:modelValue": c[3] || (c[3] = (i) => t.asaidata.data = i)
5197
5203
  }, null, 512)), [
5198
5204
  [de, t.asaidata.data]
5199
5205
  ]) : (p(), m(E, { key: 1 }, [
@@ -5207,10 +5213,10 @@ const At = {
5207
5213
  ]),
5208
5214
  t.asaidata.btn ? (p(), m("div", qi, [
5209
5215
  u("button", {
5210
- onPointerdown: r[4] || (r[4] = (c) => s())
5216
+ onPointerdown: c[4] || (c[4] = (i) => s())
5211
5217
  }, v(l(n).lg("asai.submit")), 33),
5212
5218
  u("button", {
5213
- onPointerdown: r[5] || (r[5] = (c) => a())
5219
+ onPointerdown: c[5] || (c[5] = (i) => a())
5214
5220
  }, v(l(n).lg("asai.del")), 33)
5215
5221
  ])) : F("", !0)
5216
5222
  ]);
@@ -5240,12 +5246,12 @@ const At = {
5240
5246
  },
5241
5247
  setup(t) {
5242
5248
  const e = t, n = me({});
5243
- n.publishlist = !0, e?.ckey === "publishlist" && e?.cdata && e?.cdata[e?.ckey] && Object.keys(e?.cdata[e?.ckey]).forEach((i) => {
5244
- n[i] = !0;
5249
+ n.publishlist = !0, e?.ckey === "publishlist" && e?.cdata && e?.cdata[e?.ckey] && Object.keys(e?.cdata[e?.ckey]).forEach((r) => {
5250
+ n[r] = !0;
5245
5251
  });
5246
5252
  const o = H(() => {
5247
- let i = typeof e.cdata[e.ckey];
5248
- if (i === "object") {
5253
+ let r = typeof e.cdata[e.ckey];
5254
+ if (r === "object") {
5249
5255
  if (e.cdata[e.ckey] && e.cdata[e.ckey]["@path"])
5250
5256
  return "path";
5251
5257
  if (e.cdata[e.ckey]) {
@@ -5253,30 +5259,30 @@ const At = {
5253
5259
  return "array";
5254
5260
  } else return "null";
5255
5261
  }
5256
- return i;
5262
+ return r;
5257
5263
  });
5258
- function a(i) {
5259
- n[i] = !n[i];
5264
+ function a(r) {
5265
+ n[r] = !n[r];
5260
5266
  }
5261
5267
  function s() {
5262
5268
  if (e?.cdata[e.ckey]["@path"] && e?.cval?.apikeys) {
5263
- const i = e.cval.apikeys.findIndex(
5264
- (r) => r === e.cdata[e.ckey]["@path"]
5269
+ const r = e.cval.apikeys.findIndex(
5270
+ (c) => c === e.cdata[e.ckey]["@path"]
5265
5271
  );
5266
- i > -1 ? e.cval.apikeys.splice(i, 1) : e.cval.apikeys.push(e.cdata[e.ckey]["@path"]);
5272
+ r > -1 ? e.cval.apikeys.splice(r, 1) : e.cval.apikeys.push(e.cdata[e.ckey]["@path"]);
5267
5273
  }
5268
5274
  e.cval.setapikeys(e.cval.apikeys);
5269
5275
  }
5270
- return (i, r) => o.value === "object" ? (p(), m("div", Xi, [
5276
+ return (r, c) => o.value === "object" ? (p(), m("div", Xi, [
5271
5277
  t.ckey !== "publishlist" ? (p(), m(E, { key: 0 }, [
5272
5278
  n[t.ckey] ? (p(), m("div", {
5273
5279
  key: 1,
5274
5280
  class: "as-ed-mg",
5275
- onPointerdown: r[1] || (r[1] = (d) => a(t.ckey))
5281
+ onPointerdown: c[1] || (c[1] = (d) => a(t.ckey))
5276
5282
  }, " - " + v(t.ckey), 33)) : (p(), m("div", {
5277
5283
  key: 0,
5278
5284
  class: "as-ed-mg",
5279
- onPointerdown: r[0] || (r[0] = (d) => a(t.ckey))
5285
+ onPointerdown: c[0] || (c[0] = (d) => a(t.ckey))
5280
5286
  }, " + " + v(t.ckey), 33)),
5281
5287
  n[t.ckey] ? (p(), m("div", Ki, [
5282
5288
  (p(!0), m(E, null, ee(Object.keys(t.cdata[t.ckey]), (d) => (p(), m("div", {
@@ -5308,14 +5314,14 @@ const At = {
5308
5314
  onPointerdown: a
5309
5315
  }, "+ " + v(t.ckey), 33),
5310
5316
  u("div", Zi, [
5311
- (p(!0), m(E, null, ee(t.cdata[t.ckey], (d, c) => (p(), m("div", {
5317
+ (p(!0), m(E, null, ee(t.cdata[t.ckey], (d, i) => (p(), m("div", {
5312
5318
  class: "as-ed-for-item",
5313
- key: c
5319
+ key: i
5314
5320
  }, [
5315
5321
  u("div", Qi, [
5316
5322
  W(Ce, {
5317
5323
  cval: t.cval,
5318
- ckey: c,
5324
+ ckey: i,
5319
5325
  cdata: t.cdata[t.ckey]
5320
5326
  }, null, 8, ["cval", "ckey", "cdata"])
5321
5327
  ])
@@ -5326,7 +5332,7 @@ const At = {
5326
5332
  class: K(
5327
5333
  e.cval.apikeys.includes(e.cdata[e.ckey]["@path"]) ? "as-ed-path-cur" : "as-ed-path"
5328
5334
  ),
5329
- onPointerdown: r[2] || (r[2] = (d) => s())
5335
+ onPointerdown: c[2] || (c[2] = (d) => s())
5330
5336
  }, v(t.ckey), 35)) : (p(), m("span", er, v(t.ckey), 1));
5331
5337
  }
5332
5338
  }), Ce = /* @__PURE__ */ q(tr, [["__scopeId", "data-v-f916f007"]]), nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5343,7 +5349,7 @@ const At = {
5343
5349
  function s() {
5344
5350
  a.value = !a.value;
5345
5351
  }
5346
- const i = H(() => [
5352
+ const r = H(() => [
5347
5353
  { value: "/", label: n.lg("asai.home"), type: "module" },
5348
5354
  {
5349
5355
  fn: () => n.changetheme("auto"),
@@ -5357,7 +5363,7 @@ const At = {
5357
5363
  },
5358
5364
  ...e.menus || []
5359
5365
  ]);
5360
- return (r, d) => !l(o).sys || l(o).sys.devlevel > 1 ? (p(), Y(Ae, {
5366
+ return (c, d) => !l(o).sys || l(o).sys.devlevel > 1 ? (p(), Y(Ae, {
5361
5367
  key: 0,
5362
5368
  to: "#teleportpopbox"
5363
5369
  }, [
@@ -5371,11 +5377,11 @@ const At = {
5371
5377
  u("ul", {
5372
5378
  class: K(["as-floating-menus", { open: a.value }])
5373
5379
  }, [
5374
- (p(!0), m(E, null, ee(i.value, (c, f) => (p(), m("li", {
5380
+ (p(!0), m(E, null, ee(r.value, (i, f) => (p(), m("li", {
5375
5381
  key: "menu" + f,
5376
- class: K(`${c.type === "module" ? "module " : ""}${c.value && l(o).location.hash.includes(c.value) ? "active" : ""}`),
5377
- onPointerup: (h) => c.value ? l(n).sethash(c.value) : c?.fn?.()
5378
- }, v(f + 1) + ". " + v(c.label || c.value), 43, lr))), 128))
5382
+ class: K(`${i.type === "module" ? "module " : ""}${i.value && l(o).location.hash.includes(i.value) ? "active" : ""}`),
5383
+ onPointerup: (h) => i.value ? l(n).sethash(i.value) : i?.fn?.()
5384
+ }, v(f + 1) + ". " + v(i.label || i.value), 43, lr))), 128))
5379
5385
  ], 2)
5380
5386
  ])
5381
5387
  ])) : F("", !0);
@@ -5394,7 +5400,7 @@ const At = {
5394
5400
  return (o, a) => (p(), m("div", ur, [
5395
5401
  (p(!0), m(E, null, ee(t.menus, (s) => (p(), m("div", {
5396
5402
  class: "app-menu",
5397
- onPointerdown: a[0] || (a[0] = (i) => l(n).sethash("item.value"))
5403
+ onPointerdown: a[0] || (a[0] = (r) => l(n).sethash("item.value"))
5398
5404
  }, v(s.label), 33))), 256))
5399
5405
  ]));
5400
5406
  }
@@ -5409,29 +5415,29 @@ const At = {
5409
5415
  },
5410
5416
  setup(t) {
5411
5417
  const e = t, { $model: n, $fn: o, $global: a } = e.ujt, s = yt({ comp: null });
5412
- o.getcomp = (r) => {
5418
+ o.getcomp = (c) => {
5413
5419
  try {
5414
5420
  try {
5415
- return ke(n.comps[`./${r}.vue`]);
5421
+ return ke(n.comps[`./${c}.vue`]);
5416
5422
  } catch {
5417
- return r && r.endsWith("/default") ? ke(
5418
- n.comps[`./${r.slice(0, -8)}.vue`]
5423
+ return c && c.endsWith("/default") ? ke(
5424
+ n.comps[`./${c.slice(0, -8)}.vue`]
5419
5425
  ) : ke(() => Promise.resolve().then(() => Ue));
5420
5426
  }
5421
5427
  } catch {
5422
5428
  return ke(() => Promise.resolve().then(() => Ue));
5423
5429
  }
5424
5430
  };
5425
- const i = Oe(
5431
+ const r = Oe(
5426
5432
  () => a.location.comps[e.ty],
5427
- (r, d) => {
5428
- r && r !== d && (s.comp = o.getcomp(r));
5433
+ (c, d) => {
5434
+ c && c !== d && (s.comp = o.getcomp(c));
5429
5435
  },
5430
5436
  { immediate: !0 }
5431
5437
  );
5432
5438
  return je(() => {
5433
- i && i();
5434
- }), (r, d) => (p(), Y(pe(l(s).comp), { ujt: t.ujt }, null, 8, ["ujt"]));
5439
+ r && r();
5440
+ }), (c, d) => (p(), Y(pe(l(s).comp), { ujt: t.ujt }, null, 8, ["ujt"]));
5435
5441
  }
5436
5442
  }), hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5437
5443
  __proto__: null,
@@ -5453,11 +5459,11 @@ const At = {
5453
5459
  }
5454
5460
  },
5455
5461
  setup(t) {
5456
- const e = t, n = N(null), o = N(0), a = N(0), s = N(0), i = N(
5462
+ const e = t, n = N(null), o = N(0), a = N(0), s = N(0), r = N(
5457
5463
  new Array(e.items.length).fill(Math.round(e.itemHeight))
5458
- ), r = /* @__PURE__ */ new Map(), d = H(() => Math.round(
5459
- e.items.reduce(($, y, b) => $ + c(b), 0)
5460
- )), c = ($) => $ < 0 || $ >= e.items.length ? 0 : Math.round(i.value[$] ?? e.itemHeight), f = () => {
5464
+ ), c = /* @__PURE__ */ new Map(), d = H(() => Math.round(
5465
+ e.items.reduce(($, y, b) => $ + i(b), 0)
5466
+ )), i = ($) => $ < 0 || $ >= e.items.length ? 0 : Math.round(r.value[$] ?? e.itemHeight), f = () => {
5461
5467
  if (!n.value)
5462
5468
  return {
5463
5469
  start: 0,
@@ -5484,21 +5490,21 @@ const At = {
5484
5490
  });
5485
5491
  }), g = ($) => {
5486
5492
  if ($ <= 0) return 0;
5487
- if (r.has($)) return r.get($);
5493
+ if (c.has($)) return c.get($);
5488
5494
  let y = $ - 1;
5489
- for (; y > 0 && !r.has(y); )
5495
+ for (; y > 0 && !c.has(y); )
5490
5496
  y--;
5491
- let b = y > 0 ? r.get(y) : 0;
5497
+ let b = y > 0 ? c.get(y) : 0;
5492
5498
  for (let M = y; M < $; M++)
5493
- b += c(M);
5499
+ b += i(M);
5494
5500
  const k = Math.round(b);
5495
- return r.set($, k), k;
5501
+ return c.set($, k), k;
5496
5502
  }, _ = () => {
5497
5503
  a.value && cancelAnimationFrame(a.value), a.value = requestAnimationFrame(() => {
5498
5504
  n.value && (o.value = Math.round(n.value.scrollTop), s.value && clearTimeout(s.value), s.value = window.setTimeout(() => {
5499
5505
  const { start: $, end: y } = f(), b = e.buffer * 2;
5500
- for (const k of r.keys())
5501
- (k < $ - b || k > y + b) && r.delete(k);
5506
+ for (const k of c.keys())
5507
+ (k < $ - b || k > y + b) && c.delete(k);
5502
5508
  }, 150));
5503
5509
  });
5504
5510
  };
@@ -5506,12 +5512,12 @@ const At = {
5506
5512
  n.value && _(), Oe(
5507
5513
  () => e.items.length,
5508
5514
  ($) => {
5509
- $ > i.value.length ? i.value = [
5510
- ...i.value,
5511
- ...new Array($ - i.value.length).fill(
5515
+ $ > r.value.length ? r.value = [
5516
+ ...r.value,
5517
+ ...new Array($ - r.value.length).fill(
5512
5518
  Math.round(e.itemHeight)
5513
5519
  )
5514
- ] : $ < i.value.length && (i.value = i.value.slice(0, $)), r.clear();
5520
+ ] : $ < r.value.length && (r.value = r.value.slice(0, $)), c.clear();
5515
5521
  }
5516
5522
  );
5517
5523
  }), je(() => {
@@ -5557,16 +5563,16 @@ const At = {
5557
5563
  }
5558
5564
  },
5559
5565
  setup(t, { expose: e }) {
5560
- const n = t, o = N(null), a = N(0), s = N([]), i = N(10), r = H(() => n.items.reduce((b, k, M) => b + d(M), 0)), d = (b) => s.value[b] || n.itemHeight, c = H(
5566
+ const n = t, o = N(null), a = N(0), s = N([]), r = N(10), c = H(() => n.items.reduce((b, k, M) => b + d(M), 0)), d = (b) => s.value[b] || n.itemHeight, i = H(
5561
5567
  () => Math.max(0, _(a.value) - n.buffer)
5562
5568
  ), f = H(
5563
5569
  () => Math.min(
5564
5570
  n.items.length,
5565
- c.value + i.value + n.buffer * 2
5571
+ i.value + r.value + n.buffer * 2
5566
5572
  )
5567
5573
  ), h = H(
5568
- () => n.items.slice(c.value, f.value).map((b, k) => {
5569
- const M = c.value + k, x = g(M);
5574
+ () => n.items.slice(i.value, f.value).map((b, k) => {
5575
+ const M = i.value + k, x = g(M);
5570
5576
  return {
5571
5577
  index: M,
5572
5578
  id: b.id || M,
@@ -5587,12 +5593,12 @@ const At = {
5587
5593
  });
5588
5594
  }, y = () => {
5589
5595
  o.value.querySelectorAll(".virtual-list-item").forEach((k, M) => {
5590
- const x = c.value + M;
5596
+ const x = i.value + M;
5591
5597
  s.value[x] = k.offsetHeight;
5592
5598
  });
5593
5599
  };
5594
5600
  return he(() => {
5595
- i.value = Math.ceil(
5601
+ r.value = Math.ceil(
5596
5602
  o.value.clientHeight / n.itemHeight
5597
5603
  ), $();
5598
5604
  }), e({
@@ -5611,7 +5617,7 @@ const At = {
5611
5617
  }, [
5612
5618
  u("div", {
5613
5619
  class: "virtual-list-wrapper",
5614
- style: Z({ height: r.value + "px" })
5620
+ style: Z({ height: c.value + "px" })
5615
5621
  }, [
5616
5622
  (p(!0), m(E, null, ee(h.value, (M) => (p(), m("div", {
5617
5623
  class: "virtual-list-item",
@@ -5637,12 +5643,12 @@ const At = {
5637
5643
  const o = N(null);
5638
5644
  let a = null;
5639
5645
  const s = () => {
5640
- const r = Math.min(
5646
+ const c = Math.min(
5641
5647
  window.innerWidth / (n.sys?.zoomwidth || 1920),
5642
5648
  window.innerHeight / (n.sys?.zoomheight || 1080)
5643
5649
  );
5644
- n.scale = r.toFixed(2);
5645
- }, i = () => {
5650
+ n.scale = c.toFixed(2);
5651
+ }, r = () => {
5646
5652
  clearTimeout(a), a = setTimeout(() => {
5647
5653
  requestAnimationFrame(s);
5648
5654
  }, 150);
@@ -5652,17 +5658,17 @@ const At = {
5652
5658
  height: n.sys?.zoomheight ? n.sys.zoomheight + "px" : "1080px",
5653
5659
  transform: `scale(${n.scale}) translate(-50%,-50%)`
5654
5660
  })), he(() => {
5655
- be(s), window.addEventListener("resize", i);
5661
+ be(s), window.addEventListener("resize", r);
5656
5662
  }), $e(() => {
5657
- window.removeEventListener("resize", i), clearTimeout(a);
5658
- }), (r, d) => (p(), m("div", {
5663
+ window.removeEventListener("resize", r), clearTimeout(a);
5664
+ }), (c, d) => (p(), m("div", {
5659
5665
  ref_key: "containerRef",
5660
5666
  ref: o,
5661
5667
  class: "zoom-container",
5662
5668
  id: "asaizoomarea",
5663
5669
  style: Z(l(n).cmscale)
5664
5670
  }, [
5665
- D(r.$slots, "default")
5671
+ D(c.$slots, "default")
5666
5672
  ], 4));
5667
5673
  }
5668
5674
  }), wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -5721,33 +5727,33 @@ const At = {
5721
5727
  const e = t;
5722
5728
  return (n, o) => {
5723
5729
  const a = U("AsaiFormObject"), s = U("AsaiInput");
5724
- return p(!0), m(E, null, ee(e.formdata, (i, r) => (p(), m(E, null, [
5725
- t.asaidata?.cmComp && t.asaidata?.cmComp(r) ? (p(), Y(pe(t.asaidata.cmComp(r)), {
5730
+ return p(!0), m(E, null, ee(e.formdata, (r, c) => (p(), m(E, null, [
5731
+ t.asaidata?.cmComp && t.asaidata?.cmComp(c) ? (p(), Y(pe(t.asaidata.cmComp(c)), {
5726
5732
  key: 0,
5727
5733
  ujt: t.ujt,
5728
5734
  asaidata: t.asaidata,
5729
5735
  formdata: t.formdata,
5730
- formkey: r
5731
- }, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof i == "object" ? (p(), m(E, { key: 1 }, [
5736
+ formkey: c
5737
+ }, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : typeof r == "object" ? (p(), m(E, { key: 1 }, [
5732
5738
  t.asaidata?.cmComp && t.asaidata?.cmComp("object") ? (p(), Y(pe(t.asaidata.cmComp("object")), {
5733
5739
  key: 0,
5734
5740
  ujt: t.ujt,
5735
5741
  asaidata: t.asaidata,
5736
5742
  formdata: t.formdata,
5737
- formkey: r
5743
+ formkey: c
5738
5744
  }, null, 8, ["ujt", "asaidata", "formdata", "formkey"])) : (p(), Y(a, {
5739
5745
  key: 1,
5740
5746
  ujt: t.ujt,
5741
5747
  asaidata: t.asaidata,
5742
5748
  formdata: t.formdata,
5743
- formkey: r
5749
+ formkey: c
5744
5750
  }, null, 8, ["ujt", "asaidata", "formdata", "formkey"]))
5745
5751
  ], 64)) : (p(), Y(s, {
5746
5752
  key: 2,
5747
5753
  ujt: t.ujt,
5748
5754
  asaidata: t.asaidata,
5749
5755
  formdata: t.formdata,
5750
- formkey: r
5756
+ formkey: c
5751
5757
  }, null, 8, ["ujt", "asaidata", "formdata", "formkey"]))
5752
5758
  ], 64))), 256);
5753
5759
  };
@@ -5773,7 +5779,7 @@ const At = {
5773
5779
  }, [
5774
5780
  u("span", {
5775
5781
  class: K(`${t.asaidata.ic > 1 ? n.value ? "as-form-ico-close" : "as-form-ico-open" : ""}`),
5776
- onPointerdown: a[0] || (a[0] = (i) => n.value = !n.value)
5782
+ onPointerdown: a[0] || (a[0] = (r) => n.value = !n.value)
5777
5783
  }, v(t.asaidata.eq > 2 ? '"' : "") + v(e.asaidata?.lang && e.asaidata?.lang[t.formkey] || t.formkey) + v(t.asaidata.eq > 2 ? '"' : "") + v(t.asaidata.eq ? ":" : ""), 35),
5778
5784
  se(" " + v(t.asaidata.eq > 1 ? Array.isArray(e.formdata[t.formkey]) ? "[" : "{" : "") + " ", 1),
5779
5785
  n.value ? (p(), Y(s, {
@@ -5802,8 +5808,8 @@ const At = {
5802
5808
  setup(t) {
5803
5809
  const e = t;
5804
5810
  return (n, o) => {
5805
- const a = U("AsfCheck"), s = U("AsfInput"), i = U("AsaiFormLabel");
5806
- return p(), Y(i, {
5811
+ const a = U("AsfCheck"), s = U("AsfInput"), r = U("AsaiFormLabel");
5812
+ return p(), Y(r, {
5807
5813
  ujt: t.ujt,
5808
5814
  asaidata: t.asaidata,
5809
5815
  formdata: t.formdata,
@@ -5818,7 +5824,7 @@ const At = {
5818
5824
  checkdata: e.asaidata.rule?.[t.formkey]?.checkdata
5819
5825
  },
5820
5826
  modelValue: e.formdata[t.formkey],
5821
- "onUpdate:modelValue": o[0] || (o[0] = (r) => e.formdata[t.formkey] = r)
5827
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => e.formdata[t.formkey] = c)
5822
5828
  }, null, 8, ["ujt", "opt", "modelValue"])) : (p(), Y(s, {
5823
5829
  key: 1,
5824
5830
  ujt: t.ujt,
@@ -5828,7 +5834,7 @@ const At = {
5828
5834
  min: e.asaidata.rule?.[t.formkey]?.min
5829
5835
  },
5830
5836
  modelValue: e.formdata[t.formkey],
5831
- "onUpdate:modelValue": o[1] || (o[1] = (r) => e.formdata[t.formkey] = r)
5837
+ "onUpdate:modelValue": o[1] || (o[1] = (c) => e.formdata[t.formkey] = c)
5832
5838
  }, null, 8, ["ujt", "opt", "modelValue"])),
5833
5839
  se(" " + v(typeof e.formdata[t.formkey] == "string" && t.asaidata.eq > 2 ? '"' : ""), 1)
5834
5840
  ]),
@@ -5854,12 +5860,12 @@ const At = {
5854
5860
  quality: 0.8
5855
5861
  },
5856
5862
  imgurls: {}
5857
- }, a = N(null), s = N(null), i = N(null), r = N(e.asaidata?.rule?.[e.formkey]?.editorty || 2);
5863
+ }, a = N(null), s = N(null), r = N(null), c = N(e.asaidata?.rule?.[e.formkey]?.editorty || 2);
5858
5864
  he(d);
5859
5865
  function d() {
5860
5866
  s.value && (s.value.innerHTML = e.formdata[e.formkey]);
5861
5867
  }
5862
- function c(S, w = 0) {
5868
+ function i(S, w = 0) {
5863
5869
  const P = /* @__PURE__ */ new Set([
5864
5870
  "a",
5865
5871
  "figure",
@@ -6000,11 +6006,11 @@ const At = {
6000
6006
  }
6001
6007
  function k(S) {
6002
6008
  S.preventDefault();
6003
- const w = S.clipboardData?.getData("text/html") || "", P = c(w, 1) || S.clipboardData?.getData("text/plain") || "";
6009
+ const w = S.clipboardData?.getData("text/html") || "", P = i(w, 1) || S.clipboardData?.getData("text/plain") || "";
6004
6010
  x("insertHTML", P);
6005
6011
  }
6006
6012
  function M(S) {
6007
- s.value && (e.formdata[e.formkey] = c(
6013
+ s.value && (e.formdata[e.formkey] = i(
6008
6014
  s.value.innerHTML
6009
6015
  ));
6010
6016
  }
@@ -6012,7 +6018,7 @@ const At = {
6012
6018
  s.value && document.execCommand(S, !1, w);
6013
6019
  }
6014
6020
  function L() {
6015
- r.value++, r.value > 2 && (r.value = 0), be(d);
6021
+ c.value++, c.value > 2 && (c.value = 0), be(d);
6016
6022
  }
6017
6023
  return (S, w) => (p(), m("div", {
6018
6024
  class: "as-richtext-area",
@@ -6121,22 +6127,22 @@ const At = {
6121
6127
  }, "HTML", 32)
6122
6128
  ]),
6123
6129
  u("div", qr, [
6124
- r.value != 1 ? (p(), m("div", {
6130
+ c.value != 1 ? (p(), m("div", {
6125
6131
  key: 0,
6126
- style: Z({ width: r.value > 1 ? "50%" : "100%" }),
6132
+ style: Z({ width: c.value > 1 ? "50%" : "100%" }),
6127
6133
  ref_key: "rfRichEditor",
6128
6134
  ref: s,
6129
6135
  contenteditable: "true",
6130
6136
  onPaste: k,
6131
6137
  onInput: M
6132
6138
  }, null, 36)) : F("", !0),
6133
- r.value > 0 ? G((p(), m("textarea", {
6139
+ c.value > 0 ? G((p(), m("textarea", {
6134
6140
  key: 1,
6135
6141
  placeholder: e?.opt?.placeholder || "",
6136
6142
  ref_key: "rfRichCode",
6137
- ref: i,
6143
+ ref: r,
6138
6144
  "onUpdate:modelValue": w[21] || (w[21] = (P) => e.formdata[e.formkey] = P),
6139
- style: Z({ width: r.value > 1 ? "50%" : "100%" })
6145
+ style: Z({ width: c.value > 1 ? "50%" : "100%" })
6140
6146
  }, null, 12, Br)), [
6141
6147
  [de, e.formdata[e.formkey]]
6142
6148
  ]) : F("", !0)
@@ -6166,15 +6172,15 @@ const At = {
6166
6172
  e.asaidata?.lang && e.asaidata?.lang[e.formkey + "data"] || e.asaidata?.rule?.[e.formkey]?.[e.formkey + "data"] || n.lg(e.asaidata?.rule?.[e.formkey]?.data) || {}
6167
6173
  ));
6168
6174
  return (a, s) => {
6169
- const i = U("AsfSelect"), r = U("AsaiFormLabel");
6170
- return p(), Y(r, {
6175
+ const r = U("AsfSelect"), c = U("AsaiFormLabel");
6176
+ return p(), Y(c, {
6171
6177
  ujt: t.ujt,
6172
6178
  asaidata: t.asaidata,
6173
6179
  formdata: t.formdata,
6174
6180
  formkey: t.formkey
6175
6181
  }, {
6176
6182
  default: re(() => [
6177
- W(i, {
6183
+ W(r, {
6178
6184
  ujt: t.ujt,
6179
6185
  opt: { selectdata: o.value },
6180
6186
  modelValue: e.formdata[t.formkey],
@@ -6197,25 +6203,25 @@ const At = {
6197
6203
  formkey: {}
6198
6204
  },
6199
6205
  setup(t) {
6200
- const e = t, { $fn: n, $global: o, $model: a } = e.ujt, s = N(null), i = N(null), r = N("+"), d = async (f) => {
6206
+ const e = t, { $fn: n, $global: o, $model: a } = e.ujt, s = N(null), r = N(null), c = N("+"), d = async (f) => {
6201
6207
  if (s.value.value) {
6202
- if (i.value = f.target.files[0], s.value.value = "", !i.value) {
6203
- r.value = n.lg("asai.fail");
6208
+ if (r.value = f.target.files[0], s.value.value = "", !r.value) {
6209
+ c.value = n.lg("asai.fail");
6204
6210
  return;
6205
6211
  }
6206
6212
  try {
6207
6213
  n.api.webserver.apiUpload(
6208
- "/api/asaifile/manage/upbinary/?path=" + o.sys.path.updir + e.asaidata?.rule?.[e.formkey]?.filename || n.As.getName(i.value.name),
6209
- i.value
6214
+ "/api/asaifile/manage/upbinary/?path=" + o.sys.path.updir + e.asaidata?.rule?.[e.formkey]?.filename || n.As.getName(r.value.name),
6215
+ r.value
6210
6216
  ).then((h) => {
6211
- r.value = "", e.formdata[e.formkey] = h.data;
6217
+ c.value = "", e.formdata[e.formkey] = h.data;
6212
6218
  });
6213
6219
  } catch (h) {
6214
- r.value = n.lg("asai.fail") + " " + h.message;
6220
+ c.value = n.lg("asai.fail") + " " + h.message;
6215
6221
  }
6216
6222
  }
6217
6223
  };
6218
- function c() {
6224
+ function i() {
6219
6225
  s.value.click();
6220
6226
  }
6221
6227
  return (f, h) => {
@@ -6245,7 +6251,7 @@ const At = {
6245
6251
  }, null, 544)),
6246
6252
  u("div", {
6247
6253
  class: "as-upload-image",
6248
- onClickOnce: V(c, ["stop", "prevent"])
6254
+ onClickOnce: V(i, ["stop", "prevent"])
6249
6255
  }, [
6250
6256
  e.formdata[t.formkey] ? (p(), m("div", Jr, [
6251
6257
  t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), m("img", {
@@ -6260,9 +6266,9 @@ const At = {
6260
6266
  }, v(e.formdata[t.formkey]), 9, Zr))
6261
6267
  ])) : (p(), m("div", {
6262
6268
  key: 1,
6263
- class: K(r.value === "+" ? "" : "as-upload-tit"),
6264
- title: r.value
6265
- }, v(r.value), 11, Qr))
6269
+ class: K(c.value === "+" ? "" : "as-upload-tit"),
6270
+ title: c.value
6271
+ }, v(c.value), 11, Qr))
6266
6272
  ], 32)
6267
6273
  ]),
6268
6274
  _: 1
@@ -6281,10 +6287,10 @@ const At = {
6281
6287
  formkey: {}
6282
6288
  },
6283
6289
  setup(t) {
6284
- const e = t, { $fn: n, $global: o, $model: a } = e.ujt, s = N(null), i = N(null), r = N("+"), d = async (f) => {
6290
+ const e = t, { $fn: n, $global: o, $model: a } = e.ujt, s = N(null), r = N(null), c = N("+"), d = async (f) => {
6285
6291
  if (s.value.value) {
6286
- if (i.value = f.target.files[0], s.value.value = "", !i.value) {
6287
- r.value = n.lg("asai.fail");
6292
+ if (r.value = f.target.files[0], s.value.value = "", !r.value) {
6293
+ c.value = n.lg("asai.fail");
6288
6294
  return;
6289
6295
  }
6290
6296
  const h = new FileReader();
@@ -6292,7 +6298,7 @@ const At = {
6292
6298
  const g = h.result.split(",")[1];
6293
6299
  try {
6294
6300
  n.api.webserver.apiPost(
6295
- "/api/asaifile/manage/upbase64/?path=" + o.sys.path.updir + n.As.getName(i.value.name),
6301
+ "/api/asaifile/manage/upbase64/?path=" + o.sys.path.updir + n.As.getName(r.value.name),
6296
6302
  g,
6297
6303
  {
6298
6304
  headers: {
@@ -6300,15 +6306,15 @@ const At = {
6300
6306
  }
6301
6307
  }
6302
6308
  ).then((_) => {
6303
- r.value = "", e.formdata[e.formkey] = _.data;
6309
+ c.value = "", e.formdata[e.formkey] = _.data;
6304
6310
  });
6305
6311
  } catch (_) {
6306
- r.value = n.lg("asai.fail") + " " + _.message;
6312
+ c.value = n.lg("asai.fail") + " " + _.message;
6307
6313
  }
6308
- }, h.readAsDataURL(i.value);
6314
+ }, h.readAsDataURL(r.value);
6309
6315
  }
6310
6316
  };
6311
- function c() {
6317
+ function i() {
6312
6318
  s.value.click();
6313
6319
  }
6314
6320
  return (f, h) => {
@@ -6322,7 +6328,7 @@ const At = {
6322
6328
  default: re(() => [
6323
6329
  u("div", {
6324
6330
  class: "as-upload-image",
6325
- onPointerdown: V(c, ["prevent"])
6331
+ onPointerdown: V(i, ["prevent"])
6326
6332
  }, [
6327
6333
  e.formdata[t.formkey] ? (p(), m("div", nc, [
6328
6334
  t.asaidata?.rule?.[t.formkey]?.accept?.startsWith("image/") ? (p(), m("img", {
@@ -6337,9 +6343,9 @@ const At = {
6337
6343
  }, v(e.formdata[t.formkey]), 9, ac))
6338
6344
  ])) : (p(), m("div", {
6339
6345
  key: 1,
6340
- class: K(r.value === "+" ? "" : "as-upload-tit"),
6341
- title: r.value
6342
- }, v(r.value), 11, sc))
6346
+ class: K(c.value === "+" ? "" : "as-upload-tit"),
6347
+ title: c.value
6348
+ }, v(c.value), 11, sc))
6343
6349
  ], 32),
6344
6350
  t.asaidata?.rule?.[t.formkey]?.accept ? (p(), m("input", {
6345
6351
  key: 0,
@@ -6374,16 +6380,16 @@ const At = {
6374
6380
  formkey: {}
6375
6381
  },
6376
6382
  setup(t) {
6377
- const e = t, { $fn: n, $global: o } = e.ujt, a = N(null), s = N(null), i = N("+"), r = async (f) => {
6383
+ const e = t, { $fn: n, $global: o } = e.ujt, a = N(null), s = N(null), r = N("+"), c = async (f) => {
6378
6384
  if (a.value.value) {
6379
6385
  if (s.value = f.target.files[0], a.value.value = "", !s.value) {
6380
- i.value = n.lg("asai.fail");
6386
+ r.value = n.lg("asai.fail");
6381
6387
  return;
6382
6388
  }
6383
6389
  const h = new FileReader();
6384
6390
  h.onload = async () => {
6385
6391
  try {
6386
- c({
6392
+ i({
6387
6393
  base64Data: h.result,
6388
6394
  asaidata: e.asaidata,
6389
6395
  formdata: e.formdata,
@@ -6391,9 +6397,9 @@ const At = {
6391
6397
  fn: (g) => {
6392
6398
  e.formdata[e.formkey] = g, o.pop.popupload.stat = 0;
6393
6399
  }
6394
- }), i.value = "";
6400
+ }), r.value = "";
6395
6401
  } catch (g) {
6396
- i.value = n.lg("asai.fail") + " " + g.message;
6402
+ r.value = n.lg("asai.fail") + " " + g.message;
6397
6403
  }
6398
6404
  }, h.readAsDataURL(s.value);
6399
6405
  }
@@ -6401,7 +6407,7 @@ const At = {
6401
6407
  function d() {
6402
6408
  a.value.click();
6403
6409
  }
6404
- function c(f) {
6410
+ function i(f) {
6405
6411
  o.pop.popupload.stat = 1, o.pop.popupload.tit = n.lg("asai.upload"), o.pop.popupload.params = f;
6406
6412
  }
6407
6413
  return (f, h) => {
@@ -6425,9 +6431,9 @@ const At = {
6425
6431
  }, null, 8, uc)
6426
6432
  ])) : (p(), m("div", {
6427
6433
  key: 1,
6428
- class: K(i.value === "+" ? "" : "as-upload-tit"),
6429
- title: i.value
6430
- }, v(i.value), 11, dc))
6434
+ class: K(r.value === "+" ? "" : "as-upload-tit"),
6435
+ title: r.value
6436
+ }, v(r.value), 11, dc))
6431
6437
  ], 32),
6432
6438
  u("input", {
6433
6439
  accept: "image/*",
@@ -6435,7 +6441,7 @@ const At = {
6435
6441
  ref: a,
6436
6442
  type: "file",
6437
6443
  hidden: "",
6438
- onChange: r
6444
+ onChange: c
6439
6445
  }, null, 544)
6440
6446
  ]),
6441
6447
  _: 1
@@ -6456,7 +6462,7 @@ const At = {
6456
6462
  params: {}
6457
6463
  },
6458
6464
  setup(t) {
6459
- const e = t, { $fn: n } = e.ujt, o = N(""), a = N(null), s = N(null), i = N(null), r = N({
6465
+ const e = t, { $fn: n } = e.ujt, o = N(""), a = N(null), s = N(null), r = N(null), c = N({
6460
6466
  x: 0,
6461
6467
  y: 0,
6462
6468
  width: 0,
@@ -6472,27 +6478,27 @@ const At = {
6472
6478
  originalWidth: 0,
6473
6479
  originalHeight: 0,
6474
6480
  direction: null
6475
- }), c = H(() => ({
6476
- transform: `translate(${r.value.x}px, ${r.value.y}px)`,
6477
- width: `${r.value.width}px`,
6478
- height: `${r.value.height}px`
6481
+ }), i = H(() => ({
6482
+ transform: `translate(${c.value.x}px, ${c.value.y}px)`,
6483
+ width: `${c.value.width}px`,
6484
+ height: `${c.value.height}px`
6479
6485
  })), f = H(
6480
- () => r.value.width > 0 && r.value.height > 0
6486
+ () => c.value.width > 0 && c.value.height > 0
6481
6487
  ), h = () => {
6482
- const x = a.value, L = i.value;
6488
+ const x = a.value, L = r.value;
6483
6489
  if (!x || !L) {
6484
6490
  console.error("Image or container element not found.");
6485
6491
  return;
6486
6492
  }
6487
6493
  const S = Math.min(L.clientWidth, x.naturalWidth), w = Math.min(L.clientHeight, x.naturalHeight), P = Math.min(S * 0.8, x.naturalWidth), C = Math.min(w * 0.8, x.naturalHeight);
6488
- r.value = {
6494
+ c.value = {
6489
6495
  x: (S - P) / 2,
6490
6496
  y: (w - C) / 2,
6491
6497
  width: P,
6492
6498
  height: C,
6493
6499
  maxWidth: S,
6494
6500
  maxHeight: w
6495
- }, console.log("Initial crop params:", r.value);
6501
+ }, console.log("Initial crop params:", c.value);
6496
6502
  }, g = (x, L = null) => {
6497
6503
  console.log("Interaction started:", x, L);
6498
6504
  const S = window.event || S, w = S.touches ? S.touches[0] : S;
@@ -6500,10 +6506,10 @@ const At = {
6500
6506
  type: x,
6501
6507
  startX: w.clientX,
6502
6508
  startY: w.clientY,
6503
- originalX: r.value.x,
6504
- originalY: r.value.y,
6505
- originalWidth: r.value.width,
6506
- originalHeight: r.value.height,
6509
+ originalX: c.value.x,
6510
+ originalY: c.value.y,
6511
+ originalWidth: c.value.width,
6512
+ originalHeight: c.value.height,
6507
6513
  direction: L
6508
6514
  };
6509
6515
  const P = (C) => {
@@ -6519,16 +6525,16 @@ const At = {
6519
6525
  0,
6520
6526
  Math.min(
6521
6527
  d.value.originalX + w,
6522
- r.value.maxWidth - r.value.width
6528
+ c.value.maxWidth - c.value.width
6523
6529
  )
6524
6530
  ), O = Math.max(
6525
6531
  0,
6526
6532
  Math.min(
6527
6533
  d.value.originalY + P,
6528
- r.value.maxHeight - r.value.height
6534
+ c.value.maxHeight - c.value.height
6529
6535
  )
6530
6536
  );
6531
- Object.assign(r.value, { x: C, y: O });
6537
+ Object.assign(c.value, { x: C, y: O });
6532
6538
  }, $ = (x) => {
6533
6539
  const L = window.event || x, S = L.touches ? L.touches[0] : L;
6534
6540
  if (d.value.type !== "resize") return;
@@ -6540,7 +6546,7 @@ const At = {
6540
6546
  100,
6541
6547
  Math.min(
6542
6548
  d.value.originalWidth + w,
6543
- r.value.maxWidth - T
6549
+ c.value.maxWidth - T
6544
6550
  )
6545
6551
  ), j = Math.max(100, d.value.originalHeight - P), R = Math.max(0, d.value.originalY + P);
6546
6552
  break;
@@ -6554,26 +6560,26 @@ const At = {
6554
6560
  O = Math.max(100, d.value.originalWidth - w), j = Math.max(100, d.value.originalHeight + P), T = Math.max(0, d.value.originalX + w);
6555
6561
  break;
6556
6562
  }
6557
- O = Math.min(O, r.value.maxWidth - T), j = Math.min(j, r.value.maxHeight - R), Object.assign(r.value, {
6563
+ O = Math.min(O, c.value.maxWidth - T), j = Math.min(j, c.value.maxHeight - R), Object.assign(c.value, {
6558
6564
  x: T,
6559
6565
  y: R,
6560
6566
  width: O,
6561
6567
  height: j
6562
- }), console.log("Resized crop params:", r.value);
6568
+ }), console.log("Resized crop params:", c.value);
6563
6569
  }, y = () => {
6564
6570
  d.value.type = null, window.removeEventListener("mousemove", _), window.removeEventListener("touchmove", _), window.removeEventListener("mousemove", $), window.removeEventListener("touchmove", $), window.removeEventListener("mouseup", y), window.removeEventListener("touchend", y);
6565
6571
  }, b = () => {
6566
6572
  const x = a.value, L = x.naturalWidth / x.width, S = x.naturalHeight / x.height, w = Math.min(
6567
- r.value.width * L,
6573
+ c.value.width * L,
6568
6574
  x.naturalWidth
6569
6575
  ), P = Math.min(
6570
- r.value.height * S,
6576
+ c.value.height * S,
6571
6577
  x.naturalHeight
6572
6578
  ), C = document.createElement("canvas");
6573
6579
  C.width = w, C.height = P, C.getContext("2d").drawImage(
6574
6580
  x,
6575
- r.value.x * L,
6576
- r.value.y * S,
6581
+ c.value.x * L,
6582
+ c.value.y * S,
6577
6583
  w,
6578
6584
  P,
6579
6585
  0,
@@ -6605,7 +6611,7 @@ const At = {
6605
6611
  key: 1,
6606
6612
  class: "as-img-cut",
6607
6613
  ref_key: "previewContainer",
6608
- ref: i
6614
+ ref: r
6609
6615
  }, [
6610
6616
  u("img", {
6611
6617
  ref_key: "previewImage",
@@ -6615,7 +6621,7 @@ const At = {
6615
6621
  }, null, 40, vc),
6616
6622
  G(u("div", {
6617
6623
  class: "as-img-crop-box",
6618
- style: Z(c.value),
6624
+ style: Z(i.value),
6619
6625
  onMousedown: L[8] || (L[8] = V((S) => g("move"), ["prevent"])),
6620
6626
  onTouchstart: L[9] || (L[9] = V((S) => g("move"), ["prevent"]))
6621
6627
  }, [
@@ -6665,8 +6671,8 @@ const At = {
6665
6671
  setup(t) {
6666
6672
  const e = t, { $global: n } = e.ujt;
6667
6673
  return (o, a) => {
6668
- const s = U("AsaiUploadImgCut"), i = U("PopBox");
6669
- return p(), Y(i, {
6674
+ const s = U("AsaiUploadImgCut"), r = U("PopBox");
6675
+ return p(), Y(r, {
6670
6676
  ujt: t.ujt,
6671
6677
  id: "popupload"
6672
6678
  }, {
@@ -6707,21 +6713,21 @@ const At = {
6707
6713
  "./AsaiUploadImgCut.vue": at,
6708
6714
  "./AsaiUploadImgCutPop.vue": st
6709
6715
  });
6710
- function a(i) {
6711
- const r = i.match(/([^\\/]+)(?=\.vue$)/);
6712
- return r ? r[1] : null;
6716
+ function a(r) {
6717
+ const c = r.match(/([^\\/]+)(?=\.vue$)/);
6718
+ return c ? c[1] : null;
6713
6719
  }
6714
- for (let i in o)
6715
- o[a(i) || i] = o[i], delete o[i];
6720
+ for (let r in o)
6721
+ o[a(r) || r] = o[r], delete o[r];
6716
6722
  e.asaidata.comp ? Object.assign(e.asaidata.comp, o) : e.asaidata.comp = { ...o };
6717
- function s(i) {
6718
- return i?.default ? i.default : ke(i);
6723
+ function s(r) {
6724
+ return r?.default ? r.default : ke(r);
6719
6725
  }
6720
- return e.asaidata.cmComp = (i) => (n[i] || (e.asaidata?.rule?.[i]?.comp && e.asaidata.comp[e.asaidata.rule[i].comp] ? n[i] = s(
6721
- e.asaidata.comp[e.asaidata.rule[i].comp]
6722
- ) : e.asaidata.comp[i] ? n[i] = s(e.asaidata.comp[i]) : i === "object" && e.asaidata.comp && e.asaidata.comp.object && (n[i] = s(e.asaidata.comp.object))), n[i]), $e(() => {
6726
+ return e.asaidata.cmComp = (r) => (n[r] || (e.asaidata?.rule?.[r]?.comp && e.asaidata.comp[e.asaidata.rule[r].comp] ? n[r] = s(
6727
+ e.asaidata.comp[e.asaidata.rule[r].comp]
6728
+ ) : e.asaidata.comp[r] ? n[r] = s(e.asaidata.comp[r]) : r === "object" && e.asaidata.comp && e.asaidata.comp.object && (n[r] = s(e.asaidata.comp.object))), n[r]), $e(() => {
6723
6729
  n = null;
6724
- }), (i, r) => {
6730
+ }), (r, c) => {
6725
6731
  const d = U("AsaiFormLi");
6726
6732
  return p(), m("div", kc, [
6727
6733
  W(d, {
@@ -6741,26 +6747,26 @@ const At = {
6741
6747
  },
6742
6748
  emits: ["update:modelValue"],
6743
6749
  setup(t, { emit: e }) {
6744
- ge((c) => ({
6745
- v36b8c580: r.value
6750
+ ge((i) => ({
6751
+ v36b8c580: c.value
6746
6752
  }));
6747
6753
  const n = t, { $global: o } = n.ujt, a = e;
6748
6754
  let s = H({
6749
6755
  get() {
6750
6756
  return n.modelValue;
6751
6757
  },
6752
- set(c) {
6753
- a("update:modelValue", c);
6758
+ set(i) {
6759
+ a("update:modelValue", i);
6754
6760
  }
6755
6761
  });
6756
- const i = H(() => n.opt?.checkdata || [
6762
+ const r = H(() => n.opt?.checkdata || [
6757
6763
  o?.lang?.asai?.off || "off",
6758
6764
  o?.lang?.asai?.on || "on"
6759
- ]), r = H(() => n?.opt?.height || "var(--fs2)");
6760
- function d(c) {
6765
+ ]), c = H(() => n?.opt?.height || "var(--fs2)");
6766
+ function d(i) {
6761
6767
  s.value == !1 ? s.value = !0 : s.value = !1;
6762
6768
  }
6763
- return (c, f) => (p(), m("div", {
6769
+ return (i, f) => (p(), m("div", {
6764
6770
  class: K(`asf-check${l(s) ? "-ck" : ""}`),
6765
6771
  style: Z(n.opt?.style || {}),
6766
6772
  onClick: d
@@ -6770,7 +6776,7 @@ const At = {
6770
6776
  }, null, 2),
6771
6777
  u("div", {
6772
6778
  class: K(`asf-check-txt${l(s) ? "-ck" : ""}`)
6773
- }, v(l(s) ? i.value?.[1] : i.value?.[0]), 3)
6779
+ }, v(l(s) ? r.value?.[1] : r.value?.[0]), 3)
6774
6780
  ], 6));
6775
6781
  }
6776
6782
  }), xc = /* @__PURE__ */ q(jc, [["__scopeId", "data-v-702347fb"]]), Sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -6794,7 +6800,7 @@ const At = {
6794
6800
  },
6795
6801
  emits: ["update:modelValue"],
6796
6802
  setup(t, { emit: e }) {
6797
- ge((i) => ({
6803
+ ge((r) => ({
6798
6804
  v7800f5ef: s.value
6799
6805
  }));
6800
6806
  const n = t, o = e;
@@ -6802,18 +6808,18 @@ const At = {
6802
6808
  get() {
6803
6809
  return n.modelValue;
6804
6810
  },
6805
- set(i) {
6806
- o("update:modelValue", i);
6811
+ set(r) {
6812
+ o("update:modelValue", r);
6807
6813
  }
6808
6814
  });
6809
6815
  const s = H(() => n?.opt?.height || "var(--fs2)");
6810
- return (i, r) => t.opt?.max ? (p(), m("div", Pc, [
6816
+ return (r, c) => t.opt?.max ? (p(), m("div", Pc, [
6811
6817
  G(u("input", {
6812
6818
  style: Z(n.opt?.style || {}),
6813
6819
  type: t.opt?.type || "number",
6814
6820
  max: t.opt?.max,
6815
6821
  min: t.opt?.min || 0,
6816
- "onUpdate:modelValue": r[0] || (r[0] = (d) => Pe(a) ? a.value = d : a = d)
6822
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => Pe(a) ? a.value = d : a = d)
6817
6823
  }, null, 12, Cc), [
6818
6824
  [Te, l(a)]
6819
6825
  ])
@@ -6822,7 +6828,7 @@ const At = {
6822
6828
  style: Z(n.opt?.style || {}),
6823
6829
  type: t.opt?.type || "text",
6824
6830
  maxlength: t.opt?.maxlength,
6825
- "onUpdate:modelValue": r[1] || (r[1] = (d) => Pe(a) ? a.value = d : a = d)
6831
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => Pe(a) ? a.value = d : a = d)
6826
6832
  }, null, 12, Oc), [
6827
6833
  [Te, l(a)]
6828
6834
  ])
@@ -6830,7 +6836,7 @@ const At = {
6830
6836
  G(u("input", {
6831
6837
  style: Z(n.opt?.style || {}),
6832
6838
  type: t.opt?.type || "text",
6833
- "onUpdate:modelValue": r[2] || (r[2] = (d) => Pe(a) ? a.value = d : a = d)
6839
+ "onUpdate:modelValue": c[2] || (c[2] = (d) => Pe(a) ? a.value = d : a = d)
6834
6840
  }, null, 12, Tc), [
6835
6841
  [Te, l(a)]
6836
6842
  ])
@@ -6852,7 +6858,7 @@ const At = {
6852
6858
  emits: ["update:modelValue"],
6853
6859
  setup(t, { emit: e }) {
6854
6860
  ge((h) => ({
6855
- v4105d2e4: i.value
6861
+ v4105d2e4: r.value
6856
6862
  }));
6857
6863
  const n = t, { $global: o } = n.ujt, a = e;
6858
6864
  let s = H({
@@ -6863,10 +6869,10 @@ const At = {
6863
6869
  a("update:modelValue", h);
6864
6870
  }
6865
6871
  });
6866
- const i = H(() => n?.opt?.height || "var(--fs2)"), r = H(() => Array.isArray(n.opt?.selectdata) ? n.opt?.selectdata : typeof n.opt?.selectdata == "object" ? Object.entries(n.opt?.selectdata || {}) : []), d = me({
6872
+ const r = H(() => n?.opt?.height || "var(--fs2)"), c = H(() => Array.isArray(n.opt?.selectdata) ? n.opt?.selectdata : typeof n.opt?.selectdata == "object" ? Object.entries(n.opt?.selectdata || {}) : []), d = me({
6867
6873
  up: !1
6868
6874
  });
6869
- function c(h) {
6875
+ function i(h) {
6870
6876
  h.clientY > 299 ? d.up = !0 : d.up = !1;
6871
6877
  }
6872
6878
  function f(h) {
@@ -6877,21 +6883,21 @@ const At = {
6877
6883
  class: "asf-select-cur",
6878
6884
  tabindex: "0",
6879
6885
  style: Z(n.opt?.style || {}),
6880
- onPointerdown: c
6886
+ onPointerdown: i
6881
6887
  }, [
6882
- u("div", Ic, v(r.value?.find(
6888
+ u("div", Ic, v(c.value?.find(
6883
6889
  (_) => _[0] == l(s)
6884
6890
  )?.[1] || l(o).lang.asai.select || ""), 1),
6885
6891
  g[0] || (g[0] = u("div", { class: "asf-select-cur-ic" }, null, -1))
6886
6892
  ], 36),
6887
6893
  u("div", Dc, [
6888
- r.value?.length ? (p(), m("div", {
6894
+ c.value?.length ? (p(), m("div", {
6889
6895
  key: 1,
6890
- class: K(`asf-select-list${r.value?.length > 10 ? "2" : r.value?.length > 2 ? "1" : ""}${d.up ? " asf-select-up" : ""}`),
6896
+ class: K(`asf-select-list${c.value?.length > 10 ? "2" : c.value?.length > 2 ? "1" : ""}${d.up ? " asf-select-up" : ""}`),
6891
6897
  style: Z(n.opt?.stylelist || {}),
6892
6898
  onPointerdown: f
6893
6899
  }, [
6894
- (p(!0), m(E, null, ee(r.value, (_) => (p(), m("div", {
6900
+ (p(!0), m(E, null, ee(c.value, (_) => (p(), m("div", {
6895
6901
  class: K(`asf-select-li${l(s) == _[0] ? "-active" : ""}`),
6896
6902
  "data-val": _[0],
6897
6903
  key: "sel" + _[0]
@@ -6914,7 +6920,7 @@ const At = {
6914
6920
  },
6915
6921
  emits: ["update:modelValue"],
6916
6922
  setup(t, { emit: e }) {
6917
- ge((i) => ({
6923
+ ge((r) => ({
6918
6924
  v6d5ab1f9: s.value
6919
6925
  }));
6920
6926
  const n = t, o = e;
@@ -6922,15 +6928,15 @@ const At = {
6922
6928
  get() {
6923
6929
  return n.modelValue;
6924
6930
  },
6925
- set(i) {
6926
- o("update:modelValue", i);
6931
+ set(r) {
6932
+ o("update:modelValue", r);
6927
6933
  }
6928
6934
  });
6929
6935
  const s = H(() => n?.opt?.height || "var(--fs2)");
6930
- return (i, r) => (p(), m("div", Bc, [
6936
+ return (r, c) => (p(), m("div", Bc, [
6931
6937
  G(u("textarea", {
6932
6938
  style: Z(n.opt?.style || {}),
6933
- "onUpdate:modelValue": r[0] || (r[0] = (d) => Pe(a) ? a.value = d : a = d),
6939
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => Pe(a) ? a.value = d : a = d),
6934
6940
  placeholder: t.opt?.placeholder,
6935
6941
  readonly: !!t.opt?.readonly
6936
6942
  }, null, 12, Nc), [
@@ -7030,7 +7036,7 @@ const At = {
7030
7036
  setup(t) {
7031
7037
  const e = t, { $global: n } = e.ujt;
7032
7038
  return (o, a) => {
7033
- const s = U("AsSvg"), i = U("UserCard");
7039
+ const s = U("AsSvg"), r = U("UserCard");
7034
7040
  return p(), m("div", uu, [
7035
7041
  u("div", null, [
7036
7042
  u("div", null, [
@@ -7050,7 +7056,7 @@ const At = {
7050
7056
  u("div", mu, v(l(n).lang?.asai?.page?.loadws), 1)
7051
7057
  ]),
7052
7058
  u("h3", null, v(e.type), 1),
7053
- W(i, { ujt: t.ujt }, null, 8, ["ujt"])
7059
+ W(r, { ujt: t.ujt }, null, 8, ["ujt"])
7054
7060
  ])
7055
7061
  ]);
7056
7062
  };
@@ -7072,7 +7078,7 @@ const At = {
7072
7078
  setup(t) {
7073
7079
  const e = t, { $global: n } = e.ujt;
7074
7080
  return (o, a) => {
7075
- const s = U("AsSvg"), i = U("UserCard");
7081
+ const s = U("AsSvg"), r = U("UserCard");
7076
7082
  return p(), m("div", vu, [
7077
7083
  u("div", null, [
7078
7084
  u("div", null, [
@@ -7091,7 +7097,7 @@ const At = {
7091
7097
  ]),
7092
7098
  u("div", $u, v(l(n).lang.asai.page.loadserver), 1)
7093
7099
  ]),
7094
- W(i, { ujt: t.ujt }, null, 8, ["ujt"])
7100
+ W(r, { ujt: t.ujt }, null, 8, ["ujt"])
7095
7101
  ])
7096
7102
  ]);
7097
7103
  };
@@ -7113,7 +7119,7 @@ const At = {
7113
7119
  setup(t) {
7114
7120
  const e = t, { $global: n } = e.ujt;
7115
7121
  return (o, a) => {
7116
- const s = U("AsSvg"), i = U("UserCard");
7122
+ const s = U("AsSvg"), r = U("UserCard");
7117
7123
  return p(), m("div", ju, [
7118
7124
  u("div", null, [
7119
7125
  u("div", null, [
@@ -7132,7 +7138,7 @@ const At = {
7132
7138
  ]),
7133
7139
  u("div", Cu, v(l(n).lang.asai.page.loadusertoken), 1)
7134
7140
  ]),
7135
- W(i, { ujt: t.ujt }, null, 8, ["ujt"])
7141
+ W(r, { ujt: t.ujt }, null, 8, ["ujt"])
7136
7142
  ])
7137
7143
  ]);
7138
7144
  };
@@ -7154,7 +7160,7 @@ const At = {
7154
7160
  setup(t) {
7155
7161
  const e = t, { $global: n } = e.ujt;
7156
7162
  return (o, a) => {
7157
- const s = U("AsSvg"), i = U("UserCard");
7163
+ const s = U("AsSvg"), r = U("UserCard");
7158
7164
  return p(), m("div", Mu, [
7159
7165
  u("div", null, [
7160
7166
  u("div", null, [
@@ -7173,7 +7179,7 @@ const At = {
7173
7179
  ]),
7174
7180
  u("div", Uu, v(l(n).lang.asai.page.loaduseronline), 1)
7175
7181
  ]),
7176
- W(i, { ujt: t.ujt }, null, 8, ["ujt"])
7182
+ W(r, { ujt: t.ujt }, null, 8, ["ujt"])
7177
7183
  ])
7178
7184
  ]);
7179
7185
  };
@@ -7196,7 +7202,7 @@ const At = {
7196
7202
  setup(t) {
7197
7203
  const e = t, { $global: n } = e.ujt;
7198
7204
  return (o, a) => {
7199
- const s = U("AsSvg"), i = U("UserCard");
7205
+ const s = U("AsSvg"), r = U("UserCard");
7200
7206
  return p(), m("div", Du, [
7201
7207
  u("div", null, [
7202
7208
  u("div", null, [
@@ -7216,7 +7222,7 @@ const At = {
7216
7222
  u("div", Hu, v(l(n).lang?.asai?.page?.loadws), 1)
7217
7223
  ]),
7218
7224
  u("h3", null, v(e.type), 1),
7219
- W(i, { ujt: t.ujt }, null, 8, ["ujt"])
7225
+ W(r, { ujt: t.ujt }, null, 8, ["ujt"])
7220
7226
  ])
7221
7227
  ]);
7222
7228
  };
@@ -7231,7 +7237,7 @@ const At = {
7231
7237
  id: {}
7232
7238
  },
7233
7239
  setup(t) {
7234
- ge((i) => ({
7240
+ ge((r) => ({
7235
7241
  v3211e1b4: l(n).pop[e.id].zindex,
7236
7242
  v884bd0e2: a.value,
7237
7243
  v116fbd3c: l(n).scale
@@ -7241,20 +7247,20 @@ const At = {
7241
7247
  const a = H(() => n.pop[e.id]?.event ? n.pop[e.id]?.event : "auto");
7242
7248
  n.scale == null && (n.scale = 1);
7243
7249
  const s = H(() => {
7244
- let i = n.pop[e.id]?.maskstyle || {};
7245
- return n.pop[e.id].full == 2 ? i = {
7250
+ let r = n.pop[e.id]?.maskstyle || {};
7251
+ return n.pop[e.id].full == 2 ? r = {
7246
7252
  display: "block",
7247
- ...i
7248
- } : n.pop[e.id].full == 1 ? i = {
7253
+ ...r
7254
+ } : n.pop[e.id].full == 1 ? r = {
7249
7255
  width: n?.sys?.zoomwidth + "px",
7250
7256
  height: n?.sys?.zoomheight + "px",
7251
- ...i
7252
- } : i = {
7257
+ ...r
7258
+ } : r = {
7253
7259
  display: "block",
7254
- ...i
7255
- }, a.value === "auto" && (i["background-color"] = "rgba(0, 0, 0, 0.3)"), i;
7260
+ ...r
7261
+ }, a.value === "auto" && (r["background-color"] = "rgba(0, 0, 0, 0.3)"), r;
7256
7262
  });
7257
- return (i, r) => l(n).pop[e.id].full == 2 ? (p(), m(E, { key: 0 }, [
7263
+ return (r, c) => l(n).pop[e.id].full == 2 ? (p(), m(E, { key: 0 }, [
7258
7264
  l(n).pop[e.id].stat ? (p(), Y(Ae, {
7259
7265
  key: 0,
7260
7266
  to: "#teleportpopbox"
@@ -7264,7 +7270,7 @@ const At = {
7264
7270
  style: Z(s.value),
7265
7271
  id: "popmask" + t.id
7266
7272
  }, [
7267
- D(i.$slots, "default", {}, void 0, !0)
7273
+ D(r.$slots, "default", {}, void 0, !0)
7268
7274
  ], 12, Bu)
7269
7275
  ])) : F("", !0)
7270
7276
  ], 64)) : l(n).pop[e.id].full == 1 ? (p(), m(E, { key: 1 }, [
@@ -7280,7 +7286,7 @@ const At = {
7280
7286
  class: "as-pop-box-mask-zoom",
7281
7287
  style: Z(s.value)
7282
7288
  }, [
7283
- D(i.$slots, "default", {}, void 0, !0)
7289
+ D(r.$slots, "default", {}, void 0, !0)
7284
7290
  ], 4)
7285
7291
  ], 8, Nu)
7286
7292
  ])) : F("", !0)
@@ -7291,7 +7297,7 @@ const At = {
7291
7297
  style: Z(s.value),
7292
7298
  id: "popmask" + t.id
7293
7299
  }, [
7294
- D(i.$slots, "default", {}, void 0, !0)
7300
+ D(r.$slots, "default", {}, void 0, !0)
7295
7301
  ], 12, Yu)) : F("", !0)
7296
7302
  ], 64));
7297
7303
  }
@@ -7309,7 +7315,7 @@ const At = {
7309
7315
  const s = {};
7310
7316
  return n.pop[e.id]?.nooverflow || (s.overflow = n.pop[e.id]?.conoverflow || "auto"), s;
7311
7317
  });
7312
- return (s, i) => (p(), m(E, null, [
7318
+ return (s, r) => (p(), m(E, null, [
7313
7319
  u("div", {
7314
7320
  class: "as-pop-content",
7315
7321
  style: Z(a.value)
@@ -7319,27 +7325,27 @@ const At = {
7319
7325
  ], !0)
7320
7326
  ], 4),
7321
7327
  l(n).pop[e.id]?.btns?.length ? (p(), m("div", Gu, [
7322
- (p(!0), m(E, null, ee(l(n).pop[e.id].btns, (r, d) => (p(), m(E, null, [
7323
- r.fn ? (p(), m("div", {
7328
+ (p(!0), m(E, null, ee(l(n).pop[e.id].btns, (c, d) => (p(), m(E, null, [
7329
+ c.fn ? (p(), m("div", {
7324
7330
  key: 0,
7325
- onTouchstart: i[0] || (i[0] = V(
7331
+ onTouchstart: r[0] || (r[0] = V(
7326
7332
  //@ts-ignore
7327
- (...c) => l(o).As.eStop && l(o).As.eStop(...c),
7333
+ (...i) => l(o).As.eStop && l(o).As.eStop(...i),
7328
7334
  ["stop"]
7329
7335
  )),
7330
- onPointerdown: i[1] || (i[1] = V(
7336
+ onPointerdown: r[1] || (r[1] = V(
7331
7337
  //@ts-ignore
7332
- (...c) => l(o).As.eStop && l(o).As.eStop(...c),
7338
+ (...i) => l(o).As.eStop && l(o).As.eStop(...i),
7333
7339
  ["stop"]
7334
7340
  )),
7335
- onPointerup: V((c) => r.fn(), ["stop"]),
7341
+ onPointerup: V((i) => c.fn(), ["stop"]),
7336
7342
  class: K(d ? "" : "cur"),
7337
- style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
7338
- }, v(r.nm), 47, Zu)) : (p(), m("div", {
7343
+ style: Z(`${c.bg ? `background-color: ${c.bg};` : ""}`)
7344
+ }, v(c.nm), 47, Zu)) : (p(), m("div", {
7339
7345
  key: 1,
7340
7346
  class: K(d ? "nofn" : "cur nofn"),
7341
- style: Z(`${r.bg ? `background-color: ${r.bg};` : ""}`)
7342
- }, v(r.nm), 7))
7347
+ style: Z(`${c.bg ? `background-color: ${c.bg};` : ""}`)
7348
+ }, v(c.nm), 7))
7343
7349
  ], 64))), 256))
7344
7350
  ])) : F("", !0)
7345
7351
  ], 64));
@@ -7359,10 +7365,10 @@ const At = {
7359
7365
  n.pop[e.id]?.closepop && typeof n.pop[e.id].closepop == "function" ? n.pop[e.id].closepop() : n.pop[e.id].stat = 0;
7360
7366
  }
7361
7367
  return (a, s) => {
7362
- const i = U("AsSvg");
7368
+ const r = U("AsSvg");
7363
7369
  return p(), m(E, null, [
7364
7370
  u("div", td, [
7365
- l(n).pop[e.id].ico ? (p(), Y(i, {
7371
+ l(n).pop[e.id].ico ? (p(), Y(r, {
7366
7372
  key: 0,
7367
7373
  color: "var(--ch8)",
7368
7374
  height: "var(--fs4)",
@@ -7372,7 +7378,7 @@ const At = {
7372
7378
  ]),
7373
7379
  l(n).pop[e.id]?.noclose ? F("", !0) : (p(), m("div", nd, [
7374
7380
  u("div", {
7375
- onPointerdown: s[0] || (s[0] = V((r) => o(), ["stop", "prevent"]))
7381
+ onPointerdown: s[0] || (s[0] = V((c) => o(), ["stop", "prevent"]))
7376
7382
  }, "×", 32)
7377
7383
  ]))
7378
7384
  ], 64);
@@ -7390,32 +7396,32 @@ const At = {
7390
7396
  const a = me({ w: 0, h: 0 });
7391
7397
  he(() => {
7392
7398
  if (!n.pop[e.id].full) {
7393
- const i = document.getElementById("poparea" + e.id) || document.getElementById("popmask" + e.id) || document.getElementById(n.sys.zoomid) || document.getElementById("asaizoomarea");
7394
- i && (a.w = i?.offsetWidth, a.h = i?.offsetHeight);
7399
+ const r = document.getElementById("poparea" + e.id) || document.getElementById("popmask" + e.id) || document.getElementById(n.sys.zoomid) || document.getElementById("asaizoomarea");
7400
+ r && (a.w = r?.offsetWidth, a.h = r?.offsetHeight);
7395
7401
  }
7396
7402
  });
7397
7403
  const s = H(() => {
7398
- let i = n.pop[e.id]?.popstyle || {};
7399
- return i = {
7404
+ let r = n.pop[e.id]?.popstyle || {};
7405
+ return r = {
7400
7406
  width: n.pop[e.id]?.width || "380px",
7401
7407
  height: n.pop[e.id]?.height || "auto",
7402
7408
  zIndex: n.pop[e.id].zindex + 1,
7403
- ...i
7404
- }, n.pop[e.id]?.nooverflow || (i.overflow = n.pop[e.id]?.boxoverflow || "hidden"), n.pop[e.id].full == 2 ? i = {
7409
+ ...r
7410
+ }, n.pop[e.id]?.nooverflow || (r.overflow = n.pop[e.id]?.boxoverflow || "hidden"), n.pop[e.id].full == 2 ? r = {
7405
7411
  transform: `translate(calc(-50% + ${window.innerWidth / 2}px),calc(-50% + ${window.innerHeight / 2}px))`,
7406
- ...i
7407
- } : n.pop[e.id].full == 1 ? i = {
7412
+ ...r
7413
+ } : n.pop[e.id].full == 1 ? r = {
7408
7414
  transform: `translate(calc(-50% + ${n?.sys?.zoomwidth / 2}px),calc(-50% + ${n?.sys?.zoomheight / 2}px))`,
7409
- ...i
7410
- } : a.w && a.h ? i = {
7415
+ ...r
7416
+ } : a.w && a.h ? r = {
7411
7417
  transform: `translate(calc(-50% + ${a.w / 2}px),calc(-50% + ${a.h / 2}px))`,
7412
- ...i
7413
- } : i = {
7418
+ ...r
7419
+ } : r = {
7414
7420
  transform: `translate(calc(-50% + ${window.innerWidth / 2}px),calc(-50% + ${window.innerHeight / 2}px))`,
7415
- ...i
7416
- }, i;
7421
+ ...r
7422
+ }, r;
7417
7423
  });
7418
- return (i, r) => {
7424
+ return (r, c) => {
7419
7425
  const d = ve("popresizezoom");
7420
7426
  return l(n).pop[e.id].noresize ? (p(), m("div", {
7421
7427
  key: 0,
@@ -7423,14 +7429,14 @@ const At = {
7423
7429
  style: Z(s.value),
7424
7430
  id: "pop" + t.id
7425
7431
  }, [
7426
- D(i.$slots, "default", {}, void 0, !0)
7432
+ D(r.$slots, "default", {}, void 0, !0)
7427
7433
  ], 12, sd)) : l(n).pop[e.id].full == 2 ? G((p(), m("div", {
7428
7434
  key: 1,
7429
7435
  class: "as-pop-area",
7430
7436
  style: Z(s.value),
7431
7437
  id: "pop" + t.id
7432
7438
  }, [
7433
- D(i.$slots, "default", {}, void 0, !0)
7439
+ D(r.$slots, "default", {}, void 0, !0)
7434
7440
  ], 12, ld)), [
7435
7441
  [d, { ujt: t.ujt, scale: 1 }]
7436
7442
  ]) : G((p(), m("div", {
@@ -7439,7 +7445,7 @@ const At = {
7439
7445
  style: Z(s.value),
7440
7446
  id: "pop" + t.id
7441
7447
  }, [
7442
- D(i.$slots, "default", {}, void 0, !0)
7448
+ D(r.$slots, "default", {}, void 0, !0)
7443
7449
  ], 12, id)), [
7444
7450
  [d, { ujt: t.ujt }]
7445
7451
  ]);
@@ -7454,7 +7460,7 @@ const At = {
7454
7460
  setup(t) {
7455
7461
  const e = t, { $global: n } = e.ujt;
7456
7462
  return (o, a) => {
7457
- const s = ve("drag"), i = ve("dragzoom");
7463
+ const s = ve("drag"), r = ve("dragzoom");
7458
7464
  return l(n).pop[e.id].notit ? (p(), m(E, { key: 0 }, [], 64)) : l(n).pop[e.id].nodrag ? (p(), m("div", {
7459
7465
  key: 1,
7460
7466
  class: "as-pop-drag-bar",
@@ -7479,7 +7485,7 @@ const At = {
7479
7485
  }, [
7480
7486
  D(o.$slots, "default", {}, void 0, !0)
7481
7487
  ], 8, pd)), [
7482
- [i, {
7488
+ [r, {
7483
7489
  ujt: t.ujt,
7484
7490
  dom: "popbar" + t.id,
7485
7491
  domarea: "pop" + t.id
@@ -7495,7 +7501,7 @@ const At = {
7495
7501
  }, [
7496
7502
  D(o.$slots, "default", {}, void 0, !0)
7497
7503
  ], 8, fd)), [
7498
- [i, {
7504
+ [r, {
7499
7505
  ujt: t.ujt,
7500
7506
  dom: "popbar" + t.id,
7501
7507
  domarea: "pop" + t.id
@@ -7631,8 +7637,8 @@ const At = {
7631
7637
  }
7632
7638
  }
7633
7639
  ]), (a, s) => {
7634
- const i = U("PopBox");
7635
- return p(), Y(i, {
7640
+ const r = U("PopBox");
7641
+ return p(), Y(r, {
7636
7642
  ujt: t.ujt,
7637
7643
  id: t.id,
7638
7644
  full: t.full,
@@ -7647,7 +7653,7 @@ const At = {
7647
7653
  G(u("input", {
7648
7654
  type: "password",
7649
7655
  "show-password": "",
7650
- "onUpdate:modelValue": s[0] || (s[0] = (r) => l(n).pop[e.id].pass = r)
7656
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => l(n).pop[e.id].pass = c)
7651
7657
  }, null, 512), [
7652
7658
  [de, l(n).pop[e.id].pass]
7653
7659
  ])
@@ -7797,30 +7803,30 @@ const At = {
7797
7803
  bak: [],
7798
7804
  fn: a
7799
7805
  });
7800
- function a(i) {
7801
- let r = null;
7802
- if (i === 1 ? n?.msg?.data?.length && (r = n.msg.data.shift(), r?.tmout && (clearTimeout(r.tmout), delete r.tmout), n.msg.bak.push(r), n.msg.bak.length > 100 && n.msg.bak.splice(80)) : (!n?.msg?.data?.length || !n?.msg?.data?.find(
7803
- (d) => d.con === i.con && d.tit === i.tit
7804
- )) && (i.tm = o.As.getTime(), n.msg.data.push(i), i.tmout = setTimeout(() => {
7806
+ function a(r) {
7807
+ let c = null;
7808
+ if (r === 1 ? n?.msg?.data?.length && (c = n.msg.data.shift(), c?.tmout && (clearTimeout(c.tmout), delete c.tmout), n.msg.bak.push(c), n.msg.bak.length > 100 && n.msg.bak.splice(80)) : (!n?.msg?.data?.length || !n?.msg?.data?.find(
7809
+ (d) => d.con === r.con && d.tit === r.tit
7810
+ )) && (r.tm = o.As.getTime(), n.msg.data.push(r), r.tmout = setTimeout(() => {
7805
7811
  n.msg.fn(1);
7806
- }, i?.time || 3e3)), r)
7807
- return r;
7812
+ }, r?.time || 3e3)), c)
7813
+ return c;
7808
7814
  }
7809
7815
  function s() {
7810
- let i = n.msg.data.length;
7811
- for (; i--; )
7816
+ let r = n.msg.data.length;
7817
+ for (; r--; )
7812
7818
  a(1);
7813
7819
  }
7814
7820
  return je(() => {
7815
7821
  s();
7816
- }), (i, r) => l(n).msg.data?.length ? (p(), m("div", {
7822
+ }), (r, c) => l(n).msg.data?.length ? (p(), m("div", {
7817
7823
  key: 0,
7818
7824
  class: "as-pop-msg-area",
7819
7825
  style: Z(l(n).msg.data?.maskstyle || {}),
7820
- onPointerdown: r[0] || (r[0] = V(() => {
7826
+ onPointerdown: c[0] || (c[0] = V(() => {
7821
7827
  }, ["stop"])),
7822
- onPointerup: r[1] || (r[1] = V((d) => s(), ["stop"])),
7823
- onTouchstart: r[2] || (r[2] = //@ts-ignore
7828
+ onPointerup: c[1] || (c[1] = V((d) => s(), ["stop"])),
7829
+ onTouchstart: c[2] || (c[2] = //@ts-ignore
7824
7830
  (...d) => l(o).As.eStop && l(o).As.eStop(...d))
7825
7831
  }, [
7826
7832
  u("div", Td, [
@@ -7860,11 +7866,11 @@ const At = {
7860
7866
  setup(t) {
7861
7867
  const e = t, { $global: n, $fn: o } = e.ujt;
7862
7868
  if (!n.msg) {
7863
- let i = function(r) {
7869
+ let r = function(c) {
7864
7870
  let d = null;
7865
- if (r === 1 ? n?.msg?.data?.length && (d = n.msg.data.shift()) : (!n?.msg?.data?.length || !n?.msg?.data?.find(
7866
- (c) => c.con === r.con && c.tit === r.tit
7867
- )) && (r.tm = o.As.getTime(), n.msg.data.push(r)), o.As.localSet(n.msg.key, n.msg.data), d)
7871
+ if (c === 1 ? n?.msg?.data?.length && (d = n.msg.data.shift()) : (!n?.msg?.data?.length || !n?.msg?.data?.find(
7872
+ (i) => i.con === c.con && i.tit === c.tit
7873
+ )) && (c.tm = o.As.getTime(), n.msg.data.push(c)), o.As.localSet(n.msg.key, n.msg.data), d)
7868
7874
  return d;
7869
7875
  };
7870
7876
  n.msg = {
@@ -7874,7 +7880,7 @@ const At = {
7874
7880
  data: [],
7875
7881
  bak: [],
7876
7882
  cur: {},
7877
- fn: i
7883
+ fn: r
7878
7884
  };
7879
7885
  }
7880
7886
  function a() {
@@ -7884,14 +7890,14 @@ const At = {
7884
7890
  a();
7885
7891
  }, n.msg.cur?.time || 3e3)), n.msg.cur) : null);
7886
7892
  if (!n.msg?.data?.length) {
7887
- const i = o.As.toObj(o.As.localGet(n.msg.key));
7888
- i && (n.msg.data = i);
7893
+ const r = o.As.toObj(o.As.localGet(n.msg.key));
7894
+ r && (n.msg.data = r);
7889
7895
  }
7890
- return (i, r) => s.value ? (p(), m("div", {
7896
+ return (r, c) => s.value ? (p(), m("div", {
7891
7897
  key: 0,
7892
7898
  class: "as-pop-msg-area",
7893
- onPointerdown: r[0] || (r[0] = (d) => a()),
7894
- onTouchstart: r[1] || (r[1] = //@ts-ignore
7899
+ onPointerdown: c[0] || (c[0] = (d) => a()),
7900
+ onTouchstart: c[1] || (c[1] = //@ts-ignore
7895
7901
  (...d) => l(o).As.eStop && l(o).As.eStop(...d)),
7896
7902
  style: Z(s.value?.maskstyle || {})
7897
7903
  }, [
@@ -7916,7 +7922,7 @@ const At = {
7916
7922
  maskstyle: {}
7917
7923
  },
7918
7924
  setup(t) {
7919
- ge((i) => ({
7925
+ ge((r) => ({
7920
7926
  v6952d5a2: l(n).pop[e.id].zindex,
7921
7927
  v66a99e8d: l(n).pop[e.id].zindex - 1
7922
7928
  }));
@@ -7925,22 +7931,22 @@ const At = {
7925
7931
  width: "auto",
7926
7932
  height: "auto"
7927
7933
  }), n.pop[e.id]?.maskstyle || (e?.maskstyle ? n.pop[e.id].maskstyle = e.maskstyle : n.pop[e.id].maskstyle = {});
7928
- function a(i) {
7929
- n.pop[e.id].popstyle.top = i.clientY + "px", n.pop[e.id].popstyle.left = i.clientX + "px", n.pop[e.id].popstyle.transform = `scale(${n.scale})`, n.pop[e.id].stat = n.pop[e.id].stat ? 0 : 1;
7934
+ function a(r) {
7935
+ n.pop[e.id].popstyle.top = r.clientY + "px", n.pop[e.id].popstyle.left = r.clientX + "px", n.pop[e.id].popstyle.transform = `scale(${n.scale})`, n.pop[e.id].stat = n.pop[e.id].stat ? 0 : 1;
7930
7936
  }
7931
7937
  function s() {
7932
7938
  n.pop[e.id].stat = 0;
7933
7939
  }
7934
7940
  return $e(() => {
7935
7941
  n.pop[e.id] = {};
7936
- }), (i, r) => (p(), m("div", {
7942
+ }), (r, c) => (p(), m("div", {
7937
7943
  class: K(l(n).pop[e.id]?.css + " as-pop-tip")
7938
7944
  }, [
7939
7945
  u("div", {
7940
7946
  class: "as-pop-tip-des",
7941
7947
  onPointerdown: V(a, ["stop"])
7942
7948
  }, [
7943
- D(i.$slots, "des", {}, () => [
7949
+ D(r.$slots, "des", {}, () => [
7944
7950
  se(v(l(n).pop[e.id].des || ""), 1)
7945
7951
  ], !0)
7946
7952
  ], 32),
@@ -7951,18 +7957,18 @@ const At = {
7951
7957
  u("div", {
7952
7958
  class: "as-pop-tip-mask",
7953
7959
  style: Z(l(n).pop[e.id].maskstyle),
7954
- onPointerdown: r[1] || (r[1] = V((d) => s(), ["stop"])),
7955
- onTouchstart: r[2] || (r[2] = //@ts-ignore
7960
+ onPointerdown: c[1] || (c[1] = V((d) => s(), ["stop"])),
7961
+ onTouchstart: c[2] || (c[2] = //@ts-ignore
7956
7962
  (...d) => l(o).As.eStop && l(o).As.eStop(...d))
7957
7963
  }, [
7958
7964
  u("div", {
7959
7965
  class: "as-pop-tip-pop",
7960
7966
  id: "pop" + t.id,
7961
7967
  style: Z(l(n).pop[e.id].popstyle),
7962
- onPointerdown: r[0] || (r[0] = V(() => {
7968
+ onPointerdown: c[0] || (c[0] = V(() => {
7963
7969
  }, ["stop"]))
7964
7970
  }, [
7965
- D(i.$slots, "pop", {}, () => [
7971
+ D(r.$slots, "pop", {}, () => [
7966
7972
  se(v(l(n).pop[e.id].con || ""), 1)
7967
7973
  ], !0)
7968
7974
  ], 44, Yd)
@@ -8004,10 +8010,10 @@ const At = {
8004
8010
  u("div", Qd, [
8005
8011
  e.fn ? (p(), m("div", {
8006
8012
  key: 0,
8007
- onPointerdown: a[0] || (a[0] = (i) => e.fn())
8013
+ onPointerdown: a[0] || (a[0] = (r) => e.fn())
8008
8014
  }, v(l(n)?.lang?.asai?.confirm), 33)) : F("", !0),
8009
8015
  u("div", {
8010
- onPointerdown: a[1] || (a[1] = (i) => l(n).pop[t.id].stat = 0),
8016
+ onPointerdown: a[1] || (a[1] = (r) => l(n).pop[t.id].stat = 0),
8011
8017
  class: "cur"
8012
8018
  }, v(l(n)?.lang?.asai?.cancel), 33)
8013
8019
  ])
@@ -8032,12 +8038,12 @@ const At = {
8032
8038
  setup(t) {
8033
8039
  const e = t, { $fn: n, $global: o } = e.ujt;
8034
8040
  return (a, s) => {
8035
- const i = U("AsSvg");
8041
+ const r = U("AsSvg");
8036
8042
  return l(o).lang?.asai?.usercard ? (p(), m("div", op, [
8037
8043
  u("div", {
8038
- onPointerdown: s[0] || (s[0] = (r) => l(n).sethash(l(o).sys?.router?.config?.login || "user/login"))
8044
+ onPointerdown: s[0] || (s[0] = (c) => l(n).sethash(l(o).sys?.router?.config?.login || "user/login"))
8039
8045
  }, [
8040
- W(i, {
8046
+ W(r, {
8041
8047
  color: "var(--cm8)",
8042
8048
  height: "26px",
8043
8049
  src: "asai/login"
@@ -8046,10 +8052,10 @@ const At = {
8046
8052
  ], 32),
8047
8053
  u("div", {
8048
8054
  class: "cur",
8049
- onPointerdown: s[1] || (s[1] = (r) => l(n).As.localInit()),
8055
+ onPointerdown: s[1] || (s[1] = (c) => l(n).As.localInit()),
8050
8056
  title: "ctrl+shift+r"
8051
8057
  }, [
8052
- W(i, {
8058
+ W(r, {
8053
8059
  color: "var(--cm0)",
8054
8060
  height: "26px",
8055
8061
  src: "asai/reset"
@@ -8069,13 +8075,13 @@ const At = {
8069
8075
  },
8070
8076
  setup(t) {
8071
8077
  const e = t, { $db: n, $fn: o } = e.ujt, { delUser: a } = o.useUser(e);
8072
- return a(), (s, i) => (p(), m("div", ip, [
8078
+ return a(), (s, r) => (p(), m("div", ip, [
8073
8079
  u("div", rp, [
8074
8080
  l(n).channeluser.cur.msg ? (p(), m("h1", cp, v(l(n).channeluser.cur.msg), 1)) : (p(), m("h1", up, v(l(o).lg("channeluser.ui.delok")), 1)),
8075
8081
  u("div", dp, [
8076
8082
  u("div", {
8077
8083
  class: "cur",
8078
- onPointerdown: i[0] || (i[0] = (r) => l(o).sethash("user/manage/list/"))
8084
+ onPointerdown: r[0] || (r[0] = (c) => l(o).sethash("user/manage/list/"))
8079
8085
  }, v(l(o).lg("channeluser.ui.list")), 33)
8080
8086
  ])
8081
8087
  ])
@@ -8091,14 +8097,14 @@ const At = {
8091
8097
  },
8092
8098
  setup(t) {
8093
8099
  const e = t, { $db: n, $fn: o } = e.ujt, { userEdit: a } = o.useUser(e);
8094
- return (s, i) => (p(), m("div", mp, [
8100
+ return (s, r) => (p(), m("div", mp, [
8095
8101
  u("div", hp, [
8096
8102
  D(s.$slots, "tit"),
8097
8103
  u("label", null, [
8098
8104
  u("div", null, v(l(o).lg("channeluser.ui.pw")) + ":", 1),
8099
8105
  G(u("input", {
8100
8106
  type: "password",
8101
- "onUpdate:modelValue": i[0] || (i[0] = (r) => l(n).channeluser.cur.pw = r)
8107
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => l(n).channeluser.cur.pw = c)
8102
8108
  }, null, 512), [
8103
8109
  [de, l(n).channeluser.cur.pw]
8104
8110
  ])
@@ -8107,7 +8113,7 @@ const At = {
8107
8113
  u("div", null, v(l(o).lg("channeluser.ui.pwn")) + ":", 1),
8108
8114
  G(u("input", {
8109
8115
  type: "password",
8110
- "onUpdate:modelValue": i[1] || (i[1] = (r) => l(n).channeluser.cur.pwn = r)
8116
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => l(n).channeluser.cur.pwn = c)
8111
8117
  }, null, 512), [
8112
8118
  [de, l(n).channeluser.cur.pwn]
8113
8119
  ])
@@ -8116,7 +8122,7 @@ const At = {
8116
8122
  u("div", null, v(l(o).lg("channeluser.ui.pwnn")) + ":", 1),
8117
8123
  G(u("input", {
8118
8124
  type: "password",
8119
- "onUpdate:modelValue": i[2] || (i[2] = (r) => l(n).channeluser.cur.pwnn = r)
8125
+ "onUpdate:modelValue": r[2] || (r[2] = (c) => l(n).channeluser.cur.pwnn = c)
8120
8126
  }, null, 512), [
8121
8127
  [de, l(n).channeluser.cur.pwnn]
8122
8128
  ])
@@ -8124,7 +8130,7 @@ const At = {
8124
8130
  u("div", gp, [
8125
8131
  u("div", {
8126
8132
  class: "cur",
8127
- onPointerdown: i[3] || (i[3] = (r) => l(a)())
8133
+ onPointerdown: r[3] || (r[3] = (c) => l(a)())
8128
8134
  }, v(l(o).lg("channeluser.ui.edit")), 33),
8129
8135
  D(s.$slots, "btn")
8130
8136
  ])
@@ -8140,8 +8146,8 @@ const At = {
8140
8146
  ujt: {}
8141
8147
  },
8142
8148
  setup(t) {
8143
- const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { editUser: s, initUser: i, cmLvList: r } = a.useUser(e);
8144
- return i(), (d, c) => (p(), m("div", bp, [
8149
+ const e = t, { $db: n, $global: o, $fn: a } = e.ujt, { editUser: s, initUser: r, cmLvList: c } = a.useUser(e);
8150
+ return r(), (d, i) => (p(), m("div", bp, [
8145
8151
  u("div", _p, [
8146
8152
  D(d.$slots, "tit"),
8147
8153
  u("label", null, [
@@ -8153,7 +8159,7 @@ const At = {
8153
8159
  u("div", null, v(l(a).lg("channeluser.data.pw")) + ":", 1),
8154
8160
  G(u("input", {
8155
8161
  type: "password",
8156
- "onUpdate:modelValue": c[0] || (c[0] = (f) => l(n).channeluser.cur.pw = f)
8162
+ "onUpdate:modelValue": i[0] || (i[0] = (f) => l(n).channeluser.cur.pw = f)
8157
8163
  }, null, 512), [
8158
8164
  [de, l(n).channeluser.cur.pw]
8159
8165
  ])
@@ -8161,9 +8167,9 @@ const At = {
8161
8167
  l(n).channeluser.cur.us !== l(o).user?.info?.us ? (p(), m("label", $p, [
8162
8168
  u("div", null, v(l(a).lg("channeluser.data.lv")) + ":", 1),
8163
8169
  G(u("select", {
8164
- "onUpdate:modelValue": c[1] || (c[1] = (f) => l(n).channeluser.cur.lv = f)
8170
+ "onUpdate:modelValue": i[1] || (i[1] = (f) => l(n).channeluser.cur.lv = f)
8165
8171
  }, [
8166
- (p(!0), m(E, null, ee(l(r), (f) => (p(), m("option", {
8172
+ (p(!0), m(E, null, ee(l(c), (f) => (p(), m("option", {
8167
8173
  key: "lv" + f[0],
8168
8174
  value: +f[0]
8169
8175
  }, v(f[1]), 9, kp))), 128))
@@ -8174,7 +8180,7 @@ const At = {
8174
8180
  u("div", wp, [
8175
8181
  u("div", {
8176
8182
  class: "cur",
8177
- onPointerdown: c[2] || (c[2] = (f) => l(s)())
8183
+ onPointerdown: i[2] || (i[2] = (f) => l(s)())
8178
8184
  }, v(l(a).lg("channeluser.ui.edit")), 33),
8179
8185
  D(d.$slots, "btn")
8180
8186
  ])
@@ -8197,13 +8203,13 @@ const At = {
8197
8203
  },
8198
8204
  setup(t) {
8199
8205
  const e = t, { $fn: n, $global: o } = e.ujt, { userExit: a } = n.useUser(e);
8200
- return a(), (s, i) => (p(), m("div", Cp, [
8206
+ return a(), (s, r) => (p(), m("div", Cp, [
8201
8207
  u("div", Ap, [
8202
8208
  D(s.$slots, "tit"),
8203
8209
  u("div", Op, [
8204
8210
  u("div", {
8205
8211
  class: "cur",
8206
- onPointerdown: i[0] || (i[0] = (r) => l(n).sethash(
8212
+ onPointerdown: r[0] || (r[0] = (c) => l(n).sethash(
8207
8213
  l(o).sys?.router?.config?.login || "user/login"
8208
8214
  ))
8209
8215
  }, v(l(n).lg("channeluser.ui.login")), 33),
@@ -8231,14 +8237,14 @@ const At = {
8231
8237
  showtype: {}
8232
8238
  },
8233
8239
  setup(t) {
8234
- const e = t, { $fn: n, $db: o, $global: a } = e.ujt, { fetchContent: s, setPage: i, delUser: r } = n.useUser(e);
8235
- o.channeluser.fetch = s, o.channeluser.setpage = i, he(() => {
8240
+ const e = t, { $fn: n, $db: o, $global: a } = e.ujt, { fetchContent: s, setPage: r, delUser: c } = n.useUser(e);
8241
+ o.channeluser.fetch = s, o.channeluser.setpage = r, he(() => {
8236
8242
  s(0);
8237
8243
  }), o.channeluser.cmPageSize = H(() => Number(a.location.query?.ps) || o.channeluser.config?.ps || 5);
8238
8244
  function d(h) {
8239
- o.channeluser.cur.us = "", o.channeluser.cur.pw = "", o.channeluser.cur.lv = 0, a.pop.popdefaultconfirm.stat = 1, a.pop.popdefaultconfirm.full = 1, a.pop.popdefaultconfirm.con = a.lang.channeluser.ui.del + " " + h.us, a.pop.popdefaultconfirm.fn = () => r(h.us);
8245
+ o.channeluser.cur.us = "", o.channeluser.cur.pw = "", o.channeluser.cur.lv = 0, a.pop.popdefaultconfirm.stat = 1, a.pop.popdefaultconfirm.full = 1, a.pop.popdefaultconfirm.con = a.lang.channeluser.ui.del + " " + h.us, a.pop.popdefaultconfirm.fn = () => c(h.us);
8240
8246
  }
8241
- function c(h) {
8247
+ function i(h) {
8242
8248
  n.setquery({ us: h.us }, 1), o.channeluser.cur.us = h.us, o.channeluser.cur.pw = h.pw, o.channeluser.cur.lv = h.lv, a.pop.popedituser.stat = 1, a.pop.popedituser.tit = a.lang.channeluser.ui.edit + " " + h.us;
8243
8249
  }
8244
8250
  const f = H(() => (o?.channeluser?.list || []).filter((h) => +h?.lv <= +a.user?.info?.lv));
@@ -8285,7 +8291,7 @@ const At = {
8285
8291
  u("div", Wp, v(l(a).lang.channeluser.lv[k.lv]), 1),
8286
8292
  +k.lv < l(a).user?.info?.lv ? (p(), m("div", Hp, [
8287
8293
  u("div", {
8288
- onPointerdown: (M) => c(k)
8294
+ onPointerdown: (M) => i(k)
8289
8295
  }, v(l(n).lg("channeluser.ui.edit")), 41, Vp),
8290
8296
  u("div", {
8291
8297
  onPointerdown: (M) => d(k)
@@ -8314,16 +8320,16 @@ const At = {
8314
8320
  },
8315
8321
  setup(t) {
8316
8322
  const e = t, { $db: n, $fn: o, $global: a } = e.ujt, { userLogin: s } = o.useUser(e);
8317
- return (i, r) => (p(), m("div", Kp, [
8323
+ return (r, c) => (p(), m("div", Kp, [
8318
8324
  u("div", Jp, [
8319
- D(i.$slots, "tit"),
8320
- D(i.$slots, "form", {
8325
+ D(r.$slots, "tit"),
8326
+ D(r.$slots, "form", {
8321
8327
  opt: { userLogin: l(s) }
8322
8328
  }, () => [
8323
8329
  u("label", null, [
8324
8330
  u("div", null, v(l(a).lang.channeluser.data.us) + ":", 1),
8325
8331
  G(u("input", {
8326
- "onUpdate:modelValue": r[0] || (r[0] = (d) => l(n).channeluser.cur.us = d)
8332
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => l(n).channeluser.cur.us = d)
8327
8333
  }, null, 512), [
8328
8334
  [de, l(n).channeluser.cur.us]
8329
8335
  ])
@@ -8332,7 +8338,7 @@ const At = {
8332
8338
  u("div", null, v(l(a).lang.channeluser.data.pw) + ":", 1),
8333
8339
  G(u("input", {
8334
8340
  type: "password",
8335
- "onUpdate:modelValue": r[1] || (r[1] = (d) => l(n).channeluser.cur.pw = d)
8341
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => l(n).channeluser.cur.pw = d)
8336
8342
  }, null, 512), [
8337
8343
  [de, l(n).channeluser.cur.pw]
8338
8344
  ])
@@ -8340,9 +8346,9 @@ const At = {
8340
8346
  u("div", Gp, [
8341
8347
  u("div", {
8342
8348
  class: "cur",
8343
- onPointerdown: r[2] || (r[2] = (d) => l(s)())
8349
+ onPointerdown: c[2] || (c[2] = (d) => l(s)())
8344
8350
  }, v(l(a).lang.channeluser.ui.login), 33),
8345
- D(i.$slots, "btn")
8351
+ D(r.$slots, "btn")
8346
8352
  ])
8347
8353
  ])
8348
8354
  ])
@@ -8360,11 +8366,11 @@ const At = {
8360
8366
  setup(t) {
8361
8367
  const e = t, { $fn: n, $db: o, $global: a } = e.ujt, { initUserChannel: s } = n.useUser(e);
8362
8368
  s();
8363
- function i() {
8369
+ function r() {
8364
8370
  o.channeluser.cur.us = "", o.channeluser.cur.pw = "", o.channeluser.cur.lv = 0, a.pop.popadduser.stat = 1, a.pop.popadduser.tit = a.lang.channeluser.ui.add;
8365
8371
  }
8366
- return (r, d) => {
8367
- const c = U("UserRegManage"), f = U("PopBox"), h = U("UserListManage");
8372
+ return (c, d) => {
8373
+ const i = U("UserRegManage"), f = U("PopBox"), h = U("UserListManage");
8368
8374
  return p(), m(E, null, [
8369
8375
  W(f, {
8370
8376
  ujt: t.ujt,
@@ -8372,7 +8378,7 @@ const At = {
8372
8378
  full: 1
8373
8379
  }, {
8374
8380
  default: re(() => [
8375
- l(a).pop.popadduser?.stat ? (p(), Y(c, {
8381
+ l(a).pop.popadduser?.stat ? (p(), Y(i, {
8376
8382
  key: 0,
8377
8383
  ujt: t.ujt
8378
8384
  }, {
@@ -8395,7 +8401,7 @@ const At = {
8395
8401
  u("div", ef, [
8396
8402
  u("div", {
8397
8403
  class: "cur",
8398
- onPointerdown: d[1] || (d[1] = (g) => i())
8404
+ onPointerdown: d[1] || (d[1] = (g) => r())
8399
8405
  }, v(l(n).lg("channeluser.ui.add")), 33),
8400
8406
  t.showtype ? F("", !0) : (p(), m("div", {
8401
8407
  key: 0,
@@ -8430,13 +8436,13 @@ const At = {
8430
8436
  },
8431
8437
  setup(t) {
8432
8438
  const e = t, { $db: n, $fn: o } = e.ujt, { userReg: a } = o.useUser(e);
8433
- return (s, i) => (p(), m("div", of, [
8439
+ return (s, r) => (p(), m("div", of, [
8434
8440
  u("div", af, [
8435
8441
  D(s.$slots, "tit"),
8436
8442
  u("label", null, [
8437
8443
  u("div", null, v(l(o).lg("channeluser.data.us")) + ":", 1),
8438
8444
  G(u("input", {
8439
- "onUpdate:modelValue": i[0] || (i[0] = (r) => l(n).channeluser.cur.us = r)
8445
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => l(n).channeluser.cur.us = c)
8440
8446
  }, null, 512), [
8441
8447
  [de, l(n).channeluser.cur.us]
8442
8448
  ])
@@ -8445,7 +8451,7 @@ const At = {
8445
8451
  u("div", null, v(l(o).lg("channeluser.data.pw")) + ":", 1),
8446
8452
  G(u("input", {
8447
8453
  type: "password",
8448
- "onUpdate:modelValue": i[1] || (i[1] = (r) => l(n).channeluser.cur.pw = r)
8454
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => l(n).channeluser.cur.pw = c)
8449
8455
  }, null, 512), [
8450
8456
  [de, l(n).channeluser.cur.pw]
8451
8457
  ])
@@ -8453,7 +8459,7 @@ const At = {
8453
8459
  u("div", sf, [
8454
8460
  u("div", {
8455
8461
  class: "cur",
8456
- onPointerdown: i[2] || (i[2] = (r) => l(a)())
8462
+ onPointerdown: r[2] || (r[2] = (c) => l(a)())
8457
8463
  }, v(l(o).lg("channeluser.ui.reg")), 33),
8458
8464
  D(s.$slots, "btn")
8459
8465
  ])
@@ -8470,14 +8476,14 @@ const At = {
8470
8476
  },
8471
8477
  setup(t) {
8472
8478
  const e = t, { $db: n, $fn: o } = e.ujt, { addUser: a, cmLvList: s } = o.useUser(e);
8473
- return n.channeluser.cur.us = "", n.channeluser.cur.pw = "", n.channeluser.cur.lv = 3, (i, r) => (p(), m("div", cf, [
8479
+ return n.channeluser.cur.us = "", n.channeluser.cur.pw = "", n.channeluser.cur.lv = 3, (r, c) => (p(), m("div", cf, [
8474
8480
  u("div", uf, [
8475
- D(i.$slots, "tit"),
8481
+ D(r.$slots, "tit"),
8476
8482
  u("label", null, [
8477
8483
  u("div", null, v(l(o).lg("channeluser.data.us")) + ":", 1),
8478
8484
  G(u("input", {
8479
8485
  autocomplete: "off",
8480
- "onUpdate:modelValue": r[0] || (r[0] = (d) => l(n).channeluser.cur.us = d)
8486
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => l(n).channeluser.cur.us = d)
8481
8487
  }, null, 512), [
8482
8488
  [de, l(n).channeluser.cur.us]
8483
8489
  ])
@@ -8487,7 +8493,7 @@ const At = {
8487
8493
  G(u("input", {
8488
8494
  autocomplete: "off",
8489
8495
  type: "password",
8490
- "onUpdate:modelValue": r[1] || (r[1] = (d) => l(n).channeluser.cur.pw = d)
8496
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => l(n).channeluser.cur.pw = d)
8491
8497
  }, null, 512), [
8492
8498
  [de, l(n).channeluser.cur.pw]
8493
8499
  ])
@@ -8495,7 +8501,7 @@ const At = {
8495
8501
  u("label", null, [
8496
8502
  u("div", null, v(l(o).lg("channeluser.data.lv")) + ":", 1),
8497
8503
  G(u("select", {
8498
- "onUpdate:modelValue": r[2] || (r[2] = (d) => l(n).channeluser.cur.lv = d)
8504
+ "onUpdate:modelValue": c[2] || (c[2] = (d) => l(n).channeluser.cur.lv = d)
8499
8505
  }, [
8500
8506
  (p(!0), m(E, null, ee(l(s), (d) => (p(), m("option", {
8501
8507
  key: "lv" + d[0],
@@ -8508,9 +8514,9 @@ const At = {
8508
8514
  u("div", pf, [
8509
8515
  u("div", {
8510
8516
  class: "cur",
8511
- onPointerdown: r[3] || (r[3] = (d) => l(a)())
8517
+ onPointerdown: c[3] || (c[3] = (d) => l(a)())
8512
8518
  }, v(l(o).lg("channeluser.ui.add")), 33),
8513
- D(i.$slots, "btn")
8519
+ D(r.$slots, "btn")
8514
8520
  ])
8515
8521
  ])
8516
8522
  ]));