frame-editor-preview 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var fo = Object.defineProperty;
2
- var vo = (a, t, l) => t in a ? fo(a, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[t] = l;
3
- var ke = (a, t, l) => vo(a, typeof t != "symbol" ? t + "" : t, l);
4
- import { ref as G, shallowRef as Ce, onMounted as it, onBeforeUnmount as We, computed as N, onUnmounted as Ge, inject as ut, provide as ct, readonly as bl, toRaw as je, watch as _e, shallowReadonly as yo, defineComponent as X, mergeModels as re, useModel as ue, createElementBlock as O, openBlock as $, normalizeStyle as J, createElementVNode as D, unref as F, toDisplayString as de, createBlock as j, createCommentVNode as ce, createVNode as I, resolveComponent as U, withCtx as A, Fragment as le, renderList as fe, resolveDynamicComponent as $e, defineAsyncComponent as mo, h as bt, resolveDirective as ho, withDirectives as ze, pushScopeId as Ze, popScopeId as Je, normalizeClass as xe, createTextVNode as Q, nextTick as go, Transition as bo, withModifiers as Rt, vShow as Ne, mergeProps as rt, renderSlot as Ee, createSlots as Xt, watchEffect as _o } from "vue";
5
- import { ElMessage as ge, ElMessageBox as wo } from "element-plus";
6
- import { Splitpanes as ko, Pane as Lt } from "splitpanes";
7
- import { v4 as To } from "uuid";
8
- import { Solar as _l } from "lunar-javascript";
9
- import So from "@vue-office/docx/lib/v3";
10
- import $o from "@vue-office/pptx/lib/v3";
1
+ var co = Object.defineProperty;
2
+ var po = (a, t, l) => t in a ? co(a, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[t] = l;
3
+ var ke = (a, t, l) => po(a, typeof t != "symbol" ? t + "" : t, l);
4
+ import { ref as G, shallowRef as Ce, onMounted as rt, onBeforeUnmount as We, computed as N, onUnmounted as Xe, inject as it, provide as ut, readonly as hl, toRaw as je, watch as _e, shallowReadonly as fo, defineComponent as X, mergeModels as re, useModel as ue, createElementBlock as O, openBlock as $, normalizeStyle as J, createElementVNode as D, unref as F, toDisplayString as de, createBlock as j, createCommentVNode as ce, createVNode as I, resolveComponent as U, withCtx as A, Fragment as le, renderList as fe, resolveDynamicComponent as $e, defineAsyncComponent as vo, h as gt, resolveDirective as yo, withDirectives as ze, pushScopeId as Ge, popScopeId as Ze, normalizeClass as xe, createTextVNode as Q, nextTick as mo, Transition as ho, withModifiers as Rt, vShow as Ne, mergeProps as st, renderSlot as Ee, createSlots as Xt, watchEffect as go } from "vue";
5
+ import { ElMessage as ge, ElMessageBox as bo } from "element-plus";
6
+ import { Splitpanes as _o, Pane as Lt } from "splitpanes";
7
+ import { v4 as wo } from "uuid";
8
+ import { Solar as gl } from "lunar-javascript";
9
+ import ko from "@vue-office/docx/lib/v3";
10
+ import To from "@vue-office/pptx/lib/v3";
11
11
  import "@vue-office/docx/lib/v3/index.css";
12
- import wl from "sortablejs";
13
- const st = "PASTE_FRAME_DATA", Le = (a) => {
12
+ import bl from "sortablejs";
13
+ const nt = "PASTE_FRAME_DATA", Le = (a) => {
14
14
  let t = 1 / 0, l = 1 / 0, o = -1 / 0, n = -1 / 0;
15
15
  return a.forEach((c) => {
16
16
  const { x: p, y: s, width: v, height: r } = c;
@@ -21,7 +21,7 @@ const st = "PASTE_FRAME_DATA", Le = (a) => {
21
21
  width: o - t,
22
22
  height: n - l
23
23
  };
24
- }, kl = ([a, t], l) => a <= l.x + l.width && a >= l.x && t <= l.y + l.height && t >= l.y, xo = ({ x: a, y: t, width: l, height: o }, { x: n, y: c, width: p, height: s }) => c + s >= t && c <= t + o && n + p >= a && n <= a + l, Gt = ([a, t], [l, o]) => typeof a == "number" && typeof l == "number" && typeof t == "number" && typeof o == "number" ? Math.atan2(o - t, l - a) * 180 / Math.PI : 0, Tl = ([a, t], [l, o]) => typeof a == "number" && typeof l == "number" && typeof t == "number" && typeof o == "number" ? Math.sqrt(Math.pow(l - a, 2) + Math.pow(o - t, 2)) : 0, ve = () => To().replace(/-/g, ""), K = (a, t) => typeof a == "number" ? `${a}px` : t ?? "0px", ye = (a, t, l) => Math.min(Math.max(a, t), l), Ie = (a, t = 0) => {
24
+ }, _l = ([a, t], l) => a <= l.x + l.width && a >= l.x && t <= l.y + l.height && t >= l.y, So = ({ x: a, y: t, width: l, height: o }, { x: n, y: c, width: p, height: s }) => c + s >= t && c <= t + o && n + p >= a && n <= a + l, Gt = ([a, t], [l, o]) => typeof a == "number" && typeof l == "number" && typeof t == "number" && typeof o == "number" ? Math.atan2(o - t, l - a) * 180 / Math.PI : 0, wl = ([a, t], [l, o]) => typeof a == "number" && typeof l == "number" && typeof t == "number" && typeof o == "number" ? Math.sqrt(Math.pow(l - a, 2) + Math.pow(o - t, 2)) : 0, ve = () => wo().replace(/-/g, ""), K = (a, t) => typeof a == "number" ? `${a}px` : t ?? "0px", ye = (a, t, l) => Math.min(Math.max(a, t), l), Ie = (a, t = 0) => {
25
25
  const l = Math.pow(10, t);
26
26
  return Math.round(a * l) / l;
27
27
  }, ie = (a) => {
@@ -86,7 +86,7 @@ const st = "PASTE_FRAME_DATA", Le = (a) => {
86
86
  v = t[a] - s + i, r = t[p] - i;
87
87
  } else s < 0 && (v = Math.max(t[a], o), r = t[p] - s + Math.min(t[a] - o, 0));
88
88
  return t.map((i, d) => d === a ? v : d === p ? r : i);
89
- }, Co = (a = "", t, l) => {
89
+ }, $o = (a = "", t, l) => {
90
90
  if (a) {
91
91
  const n = document.createElement("canvas").getContext("2d");
92
92
  if (n) {
@@ -102,7 +102,7 @@ const st = "PASTE_FRAME_DATA", Le = (a) => {
102
102
  width: 0,
103
103
  height: 0
104
104
  };
105
- }, Mo = /* @__PURE__ */ (() => {
105
+ }, xo = /* @__PURE__ */ (() => {
106
106
  let a = 0;
107
107
  return () => {
108
108
  if (a > 0)
@@ -110,17 +110,17 @@ const st = "PASTE_FRAME_DATA", Le = (a) => {
110
110
  const t = document.createElement("div");
111
111
  return t.style.overflow = "scroll", t.style.width = "100px", t.style.height = "100px", t.style.position = "absolute", t.style.top = "-100px", t.style.left = "0px", document.body.appendChild(t), a = t.offsetWidth - t.clientWidth, document.body.removeChild(t), a;
112
112
  };
113
- })(), Sl = (a) => {
113
+ })(), kl = (a) => {
114
114
  const t = Ie(a.reduce((p, s) => p + s, 0)), l = a.map((p) => Ie(p)), n = l.reduce((p, s) => p + s, 0) - t, c = l.length;
115
115
  return l.map((p, s) => n > 0 && c - s <= n ? p - 1 : n < 0 && s < -n ? p + 1 : p);
116
- }, Eo = (a) => /^C\d+$/.test(a), C = (a, t, l, o) => {
116
+ }, Co = (a) => /^C\d+$/.test(a), C = (a, t, l, o) => {
117
117
  const n = a instanceof Element ? a : o.createElement(a);
118
118
  n.appendChild(t instanceof Element ? t : o.createTextNode(t.toString())), l.appendChild(n);
119
119
  }, q = (a, t) => `:scope > ${t ? a.toUpperCase() : a}`;
120
- function dt() {
120
+ function ct() {
121
121
  const a = G(0), t = G(0), l = Ce();
122
122
  let o = null;
123
- return it(() => {
123
+ return rt(() => {
124
124
  l.value && (o = new ResizeObserver((n) => {
125
125
  for (const c of n)
126
126
  a.value = c.contentRect.width, t.value = c.contentRect.height;
@@ -174,7 +174,7 @@ const ll = [
174
174
  justifyContent: al(l >= n ? a : void 0),
175
175
  alignItems: al(o >= c ? t : void 0)
176
176
  });
177
- function $l(a, t, l) {
177
+ function Tl(a, t, l) {
178
178
  return N(() => {
179
179
  const { align: o, valign: n, rect: c } = a;
180
180
  return Ft({
@@ -187,7 +187,7 @@ function $l(a, t, l) {
187
187
  });
188
188
  });
189
189
  }
190
- const Vo = [
190
+ const Mo = [
191
191
  {
192
192
  label: "宋体",
193
193
  value: "SimSun"
@@ -244,13 +244,13 @@ const Vo = [
244
244
  fontFamily: o || "SimSun"
245
245
  /* SimSun */
246
246
  });
247
- function xl(a) {
247
+ function Sl(a) {
248
248
  return N(() => {
249
249
  const { bgcolor: t, color: l, fontSize: o, fontFamily: n, fontStyle: c } = a;
250
250
  return He({ bgcolor: t, color: l, fontSize: o, fontFamily: n, fontStyle: c });
251
251
  });
252
252
  }
253
- var Cl = /* @__PURE__ */ ((a) => (a[a.solid = 1] = "solid", a[a.dashed = 2] = "dashed", a[a.dotted = 3] = "dotted", a))(Cl || {});
253
+ var $l = /* @__PURE__ */ ((a) => (a[a.solid = 1] = "solid", a[a.dashed = 2] = "dashed", a[a.dotted = 3] = "dotted", a))($l || {});
254
254
  const sl = [
255
255
  {
256
256
  label: "实线",
@@ -267,21 +267,21 @@ const sl = [
267
267
  value: 3
268
268
  /* dotted */
269
269
  }
270
- ], Io = ({ lineWidth: a, lineColor: t, lineStyle: l }, o = "border") => ({
270
+ ], Eo = ({ lineWidth: a, lineColor: t, lineStyle: l }, o = "border") => ({
271
271
  [`${o}Width`]: K(a),
272
272
  [`${o}Color`]: t,
273
- [`${o}Style`]: Cl[
273
+ [`${o}Style`]: $l[
274
274
  l ?? 1
275
275
  /* solid */
276
276
  ].toLowerCase()
277
277
  });
278
- function Qe(a, t = "border") {
278
+ function Je(a, t = "border") {
279
279
  return N(() => {
280
280
  const { lineWidth: l, lineColor: o, lineStyle: n, selected: c, preview: p } = a, s = { lineWidth: l, lineColor: o, lineStyle: n };
281
- return !p && !c && (l === 0 || Kt(o)[3] === 0) && (s.lineWidth = 1, s.lineColor = `#ff0000${Me(128)}`, s.lineStyle = 2), Io(s, t);
281
+ return !p && !c && (l === 0 || Kt(o)[3] === 0) && (s.lineWidth = 1, s.lineColor = `#ff0000${Me(128)}`, s.lineStyle = 2), Eo(s, t);
282
282
  });
283
283
  }
284
- var Ml = /* @__PURE__ */ ((a) => (a[a.always = 0] = "always", a[a.left = 1] = "left", a[a.right = 2] = "right", a[a.up = 3] = "up", a[a.down = 4] = "down", a[a.shine = 5] = "shine", a[a["auto-left"] = 6] = "auto-left", a[a["auto-up"] = 7] = "auto-up", a))(Ml || {});
284
+ var xl = /* @__PURE__ */ ((a) => (a[a.always = 0] = "always", a[a.left = 1] = "left", a[a.right = 2] = "right", a[a.up = 3] = "up", a[a.down = 4] = "down", a[a.shine = 5] = "shine", a[a["auto-left"] = 6] = "auto-left", a[a["auto-up"] = 7] = "auto-up", a))(xl || {});
285
285
  const Ut = [
286
286
  {
287
287
  label: "一直显示",
@@ -328,7 +328,7 @@ const Ut = [
328
328
  ""
329
329
  ), t && l.appendChild(document.createTextNode(`@keyframes ${a} {${t}}
330
330
  `));
331
- }, Ao = (a, t, l, o, n, c, p, s) => {
331
+ }, Vo = (a, t, l, o, n, c, p, s) => {
332
332
  let v = "", r = 0, i = 0;
333
333
  t === 1 || t === 2 || // 此种方式,只有文字宽度超出 rect 宽度,才进行左滚,否则不滚动
334
334
  t === 6 && p > n ? (r = p > n || l === Be.left ? n : l === Be.right ? p : (n + p) / 2, i = p > n || l === Be.left ? -p : l === Be.right ? -n : -(n + p) / 2, v = `
@@ -342,9 +342,9 @@ const Ut = [
342
342
  0%, 100% { opacity: 1; }
343
343
  50% { opacity: 0; }
344
344
  ` : v = "", Zt(a, v);
345
- }, Po = (a) => {
345
+ }, Io = (a) => {
346
346
  Zt(a);
347
- }, El = (a, {
347
+ }, Cl = (a, {
348
348
  align: t = Be.left,
349
349
  valign: l = Ye.top,
350
350
  animationSpeed: o = 0,
@@ -355,7 +355,7 @@ const Ut = [
355
355
  textHeight: v
356
356
  }) => {
357
357
  let r = 0;
358
- return o > 0 && (n === 1 || n === 2 || n === 6 ? r = (c + s) / o : n === 3 || n === 4 || n === 7 ? r = (p + v) / o : n === 5 && (r = 1 / o)), Ao(a, n, t, l, c, p, s, v), {
358
+ return o > 0 && (n === 1 || n === 2 || n === 6 ? r = (c + s) / o : n === 3 || n === 4 || n === 7 ? r = (p + v) / o : n === 5 && (r = 1 / o)), Vo(a, n, t, l, c, p, s, v), {
359
359
  animationName: a,
360
360
  animationDelay: `-${r / 2}s`,
361
361
  animationDuration: `${r}s`,
@@ -366,7 +366,7 @@ const Ut = [
366
366
  function Jt(a, t, l) {
367
367
  const o = Date.now(), n = N(() => {
368
368
  const { id: c, animationStyle: p, animationSpeed: s, align: v, valign: r, rect: i } = a, d = `widget-${c}-${o}-roll`;
369
- return El(d, {
369
+ return Cl(d, {
370
370
  animationStyle: p,
371
371
  animationSpeed: s,
372
372
  align: v,
@@ -377,69 +377,69 @@ function Jt(a, t, l) {
377
377
  textHeight: l.value
378
378
  });
379
379
  });
380
- return Ge(() => {
380
+ return Xe(() => {
381
381
  Zt(`widget-${a.id}-${o}-roll`);
382
382
  }), n;
383
383
  }
384
- const Vl = Symbol("frameInfo"), Oo = () => ut(
385
- Vl,
384
+ const Ml = Symbol("frameInfo"), Ao = () => it(
385
+ Ml,
386
386
  N(() => ({ frameName: "", screenTypeID: "", duration: 60 }))
387
- ), Do = (a) => {
387
+ ), Po = (a) => {
388
388
  const t = N(() => ({
389
389
  frameName: a.frameName || "",
390
390
  screenTypeID: a.screenTypeID || "",
391
391
  duration: a.duration || 60
392
392
  }));
393
- return ct(Vl, t), t;
394
- }, Il = G(1), zo = (a) => {
395
- Il.value = a;
393
+ return ut(Ml, t), t;
394
+ }, El = G(1), Oo = (a) => {
395
+ El.value = a;
396
396
  };
397
397
  function Vt() {
398
- return [bl(Il), zo];
398
+ return [hl(El), Oo];
399
399
  }
400
- const Al = Symbol("stageRect"), Re = () => ut(
401
- Al,
400
+ const Vl = Symbol("stageRect"), Re = () => it(
401
+ Vl,
402
402
  N(() => ({ x: 0, y: 0, width: 0, height: 0 }))
403
- ), Lo = (a) => {
403
+ ), Do = (a) => {
404
404
  const t = N(() => ({
405
405
  x: 0,
406
406
  y: 0,
407
407
  width: a.width || 0,
408
408
  height: a.height || 0
409
409
  }));
410
- return ct(Al, t), t;
411
- }, Pl = Symbol("optionSource"), Ke = () => ut(
412
- Pl,
410
+ return ut(Vl, t), t;
411
+ }, Il = Symbol("optionSource"), Ke = () => it(
412
+ Il,
413
413
  N(() => ({}))
414
- ), Wo = (a) => {
414
+ ), zo = (a) => {
415
415
  const t = N(() => a.dataSource || {});
416
- return ct(Pl, t), t;
417
- }, Ol = Symbol("fileSource"), Ho = () => ut(
418
- Ol,
416
+ return ut(Il, t), t;
417
+ }, Al = Symbol("fileSource"), Lo = () => it(
418
+ Al,
419
419
  N(() => ({}))
420
- ), Ro = (a) => {
420
+ ), Wo = (a) => {
421
421
  const t = N(() => a.fileSource || {});
422
- return ct(Ol, t), t;
423
- }, Dl = Symbol("fileBuffer"), Qt = () => ut(Dl), zl = (a) => {
422
+ return ut(Al, t), t;
423
+ }, Pl = Symbol("fileBuffer"), Qt = () => it(Pl), Ol = (a) => {
424
424
  const t = N(() => a.fileBuffer);
425
- return ct(Dl, t), t;
426
- }, St = /* @__PURE__ */ new Map();
427
- function pt(a, t) {
425
+ return ut(Pl, t), t;
426
+ }, Tt = /* @__PURE__ */ new Map();
427
+ function dt(a, t) {
428
428
  if (!a)
429
429
  return () => {
430
430
  };
431
- let l = St.get(a);
432
- return l || (l = /* @__PURE__ */ new Set(), St.set(a, l)), l.add(t), () => {
433
- l.delete(t), l.size === 0 && St.delete(a);
431
+ let l = Tt.get(a);
432
+ return l || (l = /* @__PURE__ */ new Set(), Tt.set(a, l)), l.add(t), () => {
433
+ l.delete(t), l.size === 0 && Tt.delete(a);
434
434
  };
435
435
  }
436
436
  function Et(a, t) {
437
- const l = St.get(a);
437
+ const l = Tt.get(a);
438
438
  l && [...l].forEach((o) => o(t));
439
439
  }
440
440
  const Wt = G();
441
- function ft(a) {
442
- const t = Oo(), l = Re(), o = () => a.value.filter(({ selected: m }) => !!m);
441
+ function pt(a) {
442
+ const t = Ao(), l = Re(), o = () => a.value.filter(({ selected: m }) => !!m);
443
443
  return {
444
444
  handleImport: () => {
445
445
  const m = document.createElement("input");
@@ -452,12 +452,12 @@ function ft(a) {
452
452
  var T;
453
453
  const S = () => {
454
454
  const x = jt(_);
455
- x.length === 0 && ge.warning("导入的 XML 是空白帧,内部不含任何元素"), a.value = uo(x, l.value);
455
+ x.length === 0 && ge.warning("导入的 XML 是空白帧,内部不含任何元素"), a.value = ro(x, l.value);
456
456
  }, _ = ((T = y.target) == null ? void 0 : T.result) ?? "";
457
457
  if (_ && typeof _ == "string")
458
458
  try {
459
- const { frameName: x, screenTypeID: E, width: M, height: V } = io(_);
460
- M > 0 && l.value.width !== M || V > 0 && l.value.height !== V ? wo.confirm(
459
+ const { frameName: x, screenTypeID: E, width: M, height: V } = so(_);
460
+ M > 0 && l.value.width !== M || V > 0 && l.value.height !== V ? bo.confirm(
461
461
  `导入的 XML 屏幕信息(${E}: ${x})与当前屏幕不匹配,导入后内部元素尺寸位置可能会被裁剪,确定导入?`,
462
462
  "提示",
463
463
  {
@@ -475,7 +475,7 @@ function ft(a) {
475
475
  },
476
476
  handleExport: () => {
477
477
  try {
478
- const m = nt(je(a.value), { ...t.value, ...l.value }), h = new Blob([m], { type: "application/xml" }), w = URL.createObjectURL(h), k = document.createElement("a");
478
+ const m = at(je(a.value), { ...t.value, ...l.value }), h = new Blob([m], { type: "application/xml" }), w = URL.createObjectURL(h), k = document.createElement("a");
479
479
  k.href = w, k.download = `${t.value.frameName || "新建帧"}.xml`, document.body.appendChild(k), k.click(), document.body.removeChild(k), URL.revokeObjectURL(w);
480
480
  } catch (m) {
481
481
  ge.error(m.message ?? "导出失败");
@@ -491,10 +491,10 @@ function ft(a) {
491
491
  Array.isArray(m) ? m : a.value.filter(({ selected: k }) => !!k)
492
492
  ), w = JSON.stringify(h);
493
493
  try {
494
- const k = JSON.parse(sessionStorage.getItem(st) ?? "[]");
495
- k.push(h), sessionStorage.setItem(st, JSON.stringify(k));
494
+ const k = JSON.parse(sessionStorage.getItem(nt) ?? "[]");
495
+ k.push(h), sessionStorage.setItem(nt, JSON.stringify(k));
496
496
  } catch {
497
- sessionStorage.setItem(st, w);
497
+ sessionStorage.setItem(nt, w);
498
498
  }
499
499
  Wt.value = w;
500
500
  try {
@@ -642,18 +642,18 @@ function ft(a) {
642
642
  }
643
643
  }
644
644
  },
645
- globalCopy: bl(Wt)
645
+ globalCopy: hl(Wt)
646
646
  };
647
647
  }
648
- const _t = (a) => typeof a == "number";
649
- class Ll {
648
+ const bt = (a) => typeof a == "number";
649
+ class Dl {
650
650
  constructor(t, { min: l, max: o }) {
651
651
  ke(this, "timer");
652
652
  ke(this, "index");
653
653
  ke(this, "min");
654
654
  ke(this, "max");
655
655
  ke(this, "action");
656
- this.min = !_t(l) || _t(o) && l > o ? 0 : l, this.max = !_t(o) || _t(l) && l > o ? 1 / 0 : o, this.action = t, this.index = this.min, this.timer = null;
656
+ this.min = !bt(l) || bt(o) && l > o ? 0 : l, this.max = !bt(o) || bt(l) && l > o ? 1 / 0 : o, this.action = t, this.index = this.min, this.timer = null;
657
657
  }
658
658
  computed(t) {
659
659
  t === 1 && this.index === this.max ? this.index = this.min : t === -1 && this.index === this.min ? this.index = this.max : this.index += t;
@@ -698,7 +698,7 @@ function Fe(a) {
698
698
  ([n, c]) => {
699
699
  if (o(), n) {
700
700
  const p = typeof c > "u" || c < 0, s = n.length;
701
- s === 0 ? t.value = { duration: 0 } : s === 1 || !p ? t.value = n[p ? 0 : c % s] : (l = new Ll(
701
+ s === 0 ? t.value = { duration: 0 } : s === 1 || !p ? t.value = n[p ? 0 : c % s] : (l = new Dl(
702
702
  (v) => {
703
703
  const r = n[v];
704
704
  return t.value = r, r.duration;
@@ -710,7 +710,7 @@ function Fe(a) {
710
710
  { immediate: !0 }
711
711
  ), t;
712
712
  }
713
- function Wl({
713
+ function zl({
714
714
  moveStart: a,
715
715
  moveFirst: t,
716
716
  moveTravel: l,
@@ -840,7 +840,7 @@ function Wl({
840
840
  keydown: b
841
841
  };
842
842
  }
843
- function Hl(a) {
843
+ function Ll(a) {
844
844
  const t = el(), l = (s, v) => {
845
845
  const r = Ae.get(s);
846
846
  if (r) {
@@ -873,8 +873,8 @@ function Hl(a) {
873
873
  }
874
874
  };
875
875
  }
876
- const Nt = Ce(), Ko = () => [
877
- yo(Nt),
876
+ const Nt = Ce(), Ho = () => [
877
+ fo(Nt),
878
878
  (a) => {
879
879
  Nt.value = a;
880
880
  }
@@ -885,7 +885,7 @@ const Nt = Ce(), Ko = () => [
885
885
  const l = a.value ?? 1, o = (p = Nt.value) == null ? void 0 : p.getBoundingClientRect(), n = (o == null ? void 0 : o.left) ?? 0, c = (o == null ? void 0 : o.top) ?? 0;
886
886
  return [(t.clientX - n) / l, (t.clientY - c) / l];
887
887
  };
888
- }, Fo = { class: "arrow-line-widget-inner" }, Uo = /* @__PURE__ */ X({
888
+ }, Ro = { class: "arrow-line-widget-inner" }, Ko = /* @__PURE__ */ X({
889
889
  name: "ArrowLineWidget",
890
890
  inheritAttrs: !1,
891
891
  __name: "index",
@@ -906,12 +906,12 @@ const Nt = Ce(), Ko = () => [
906
906
  emits: ["update:item"],
907
907
  setup(a) {
908
908
  const t = a, l = N(() => {
909
- const { x0: v, y0: r, x1: i, y1: d, rect: f } = t, e = Tl([v, r], [i, d]), u = Gt([v, r], [i, d]);
909
+ const { x0: v, y0: r, x1: i, y1: d, rect: f } = t, e = wl([v, r], [i, d]), u = Gt([v, r], [i, d]);
910
910
  return {
911
911
  width: K(e),
912
912
  transform: `translate(${K(v - f.x)},${K(r - f.y)}) rotate(${u}deg)`
913
913
  };
914
- }), o = Qe(t), n = N(() => {
914
+ }), o = Je(t), n = N(() => {
915
915
  const { lineColor: v, lineWidth: r } = t;
916
916
  return {
917
917
  borderColor: v,
@@ -919,7 +919,7 @@ const Nt = Ce(), Ko = () => [
919
919
  borderTopWidth: K(6 + (r ?? 0)),
920
920
  borderBottomWidth: K(6 + (r ?? 0))
921
921
  };
922
- }), c = Re(), p = ue(a, "item"), s = pt(
922
+ }), c = Re(), p = ue(a, "item"), s = dt(
923
923
  p.value ? `${p.value.type}-${p.value.id}` : "",
924
924
  ({ value: v, property: r }) => {
925
925
  const { bindKey: i } = r;
@@ -935,13 +935,13 @@ const Nt = Ce(), Ko = () => [
935
935
  }
936
936
  }
937
937
  );
938
- return Ge(() => {
938
+ return Xe(() => {
939
939
  s();
940
940
  }), (v, r) => ($(), O("div", {
941
941
  class: "arrow-line-widget",
942
942
  style: J(l.value)
943
943
  }, [
944
- D("div", Fo, [
944
+ D("div", Ro, [
945
945
  D("div", {
946
946
  class: "line",
947
947
  style: J(F(o))
@@ -958,13 +958,13 @@ const Nt = Ce(), Ko = () => [
958
958
  for (const [o, n] of t)
959
959
  l[o] = n;
960
960
  return l;
961
- }, No = /* @__PURE__ */ ae(Uo, [["__scopeId", "data-v-f6688de1"]]), Bo = { viewBox: "0 0 1024 1024" }, Yo = /* @__PURE__ */ D("path", { d: "M833.058133 247.978667a34.133333 34.133333 0 0 1 0 21.572266l-74.752 224.187734a34.133333 34.133333 0 0 1-56.490666 13.346133l-52.3264-52.292267-418.474667 418.474667a25.6 25.6 0 0 1-36.181333-36.181333l418.474666-418.5088-60.962133-60.962134a34.133333 34.133333 0 0 1 13.346133-56.490666l224.187734-74.752a34.133333 34.133333 0 0 1 43.178666 21.6064z" }, null, -1), qo = [
962
- Yo
963
- ], jo = /* @__PURE__ */ X({
961
+ }, Fo = /* @__PURE__ */ ae(Ko, [["__scopeId", "data-v-f6688de1"]]), Uo = { viewBox: "0 0 1024 1024" }, No = /* @__PURE__ */ D("path", { d: "M833.058133 247.978667a34.133333 34.133333 0 0 1 0 21.572266l-74.752 224.187734a34.133333 34.133333 0 0 1-56.490666 13.346133l-52.3264-52.292267-418.474667 418.474667a25.6 25.6 0 0 1-36.181333-36.181333l418.474666-418.5088-60.962133-60.962134a34.133333 34.133333 0 0 1 13.346133-56.490666l224.187734-74.752a34.133333 34.133333 0 0 1 43.178666 21.6064z" }, null, -1), Bo = [
962
+ No
963
+ ], Yo = /* @__PURE__ */ X({
964
964
  name: "ArrowLineIcon",
965
965
  __name: "icon",
966
966
  setup(a) {
967
- return (t, l) => ($(), O("svg", Bo, qo));
967
+ return (t, l) => ($(), O("svg", Uo, Bo));
968
968
  }
969
969
  }), Ve = [
970
970
  {
@@ -1029,7 +1029,7 @@ const Nt = Ce(), Ko = () => [
1029
1029
  key: "TT",
1030
1030
  bindKey: "fontFamily",
1031
1031
  valueType: "string",
1032
- defaultValue: Vo[0].value,
1032
+ defaultValue: Mo[0].value,
1033
1033
  options: "FontFamily"
1034
1034
  },
1035
1035
  {
@@ -1077,7 +1077,7 @@ const Nt = Ce(), Ko = () => [
1077
1077
  defaultValue: sl[0].value,
1078
1078
  options: sl
1079
1079
  }
1080
- ], Xo = [
1080
+ ], qo = [
1081
1081
  {
1082
1082
  type: "input-number",
1083
1083
  label: "X坐标",
@@ -1120,7 +1120,7 @@ class Te {
1120
1120
  ke(this, "view");
1121
1121
  ke(this, "rectangles");
1122
1122
  ke(this, "properties");
1123
- this.key = t.key, this.seq = t.seq, this.title = t.title, this.icon = t.icon, this.view = t.view, this.properties = t.properties ?? [], this.rectangles = Xo.map((l) => {
1123
+ this.key = t.key, this.seq = t.seq, this.title = t.title, this.icon = t.icon, this.view = t.view, this.properties = t.properties ?? [], this.rectangles = qo.map((l) => {
1124
1124
  var o;
1125
1125
  return {
1126
1126
  ...l,
@@ -1177,7 +1177,7 @@ class Te {
1177
1177
  else if (n === "number")
1178
1178
  c = Ie(t).toString();
1179
1179
  else if (n === "number[]")
1180
- c = Sl(t).join(",");
1180
+ c = kl(t).join(",");
1181
1181
  else if (n === "boolean")
1182
1182
  c = t ? "1" : "0";
1183
1183
  else if (n === "boolean[]")
@@ -1198,7 +1198,7 @@ class Te {
1198
1198
  });
1199
1199
  }
1200
1200
  }
1201
- const Go = [
1201
+ const jo = [
1202
1202
  {
1203
1203
  type: "input-number",
1204
1204
  label: "X0坐标",
@@ -1233,15 +1233,15 @@ const Go = [
1233
1233
  },
1234
1234
  ...Oe
1235
1235
  ];
1236
- class Rl extends Te {
1236
+ class Wl extends Te {
1237
1237
  constructor() {
1238
1238
  super({
1239
1239
  key: "AR",
1240
1240
  seq: 11,
1241
1241
  title: "箭头线",
1242
- icon: jo,
1243
- view: No,
1244
- properties: Go,
1242
+ icon: Yo,
1243
+ view: Fo,
1244
+ properties: jo,
1245
1245
  rectangles: {
1246
1246
  x: { display: !1 },
1247
1247
  y: { display: !1 },
@@ -1289,11 +1289,11 @@ class Rl extends Te {
1289
1289
  }), o;
1290
1290
  }
1291
1291
  }
1292
- const Zo = new Rl(), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1292
+ const Xo = new Wl(), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1293
1293
  __proto__: null,
1294
- ArrowLineWidget: Rl,
1295
- default: Zo
1296
- }, Symbol.toStringTag, { value: "Module" })), Qo = /* @__PURE__ */ X({
1294
+ ArrowLineWidget: Wl,
1295
+ default: Xo
1296
+ }, Symbol.toStringTag, { value: "Module" })), Zo = /* @__PURE__ */ X({
1297
1297
  name: "CircleWidget",
1298
1298
  inheritAttrs: !1,
1299
1299
  __name: "index",
@@ -1305,31 +1305,31 @@ const Zo = new Rl(), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1305
1305
  preview: { type: Boolean }
1306
1306
  },
1307
1307
  setup(a) {
1308
- const l = Qe(a);
1308
+ const l = Je(a);
1309
1309
  return (o, n) => ($(), O("div", {
1310
1310
  class: "circle-widget",
1311
1311
  style: J(F(l))
1312
1312
  }, null, 4));
1313
1313
  }
1314
- }), ea = /* @__PURE__ */ ae(Qo, [["__scopeId", "data-v-f634a654"]]), ta = { viewBox: "0 0 1170 1024" }, la = /* @__PURE__ */ D("path", { d: "M585.142857 1024c322.121143 0 585.142857-227.986286 585.142857-512s-263.021714-512-585.142857-512-585.142857 227.986286-585.142857 512 263.021714 512 585.142857 512z m0-73.142857c-283.794286 0-512-197.705143-512-438.857143s228.205714-438.857143 512-438.857143 512 197.705143 512 438.857143-228.205714 438.857143-512 438.857143z" }, null, -1), oa = [
1315
- la
1316
- ], aa = /* @__PURE__ */ X({
1314
+ }), Jo = /* @__PURE__ */ ae(Zo, [["__scopeId", "data-v-f634a654"]]), Qo = { viewBox: "0 0 1170 1024" }, ea = /* @__PURE__ */ D("path", { d: "M585.142857 1024c322.121143 0 585.142857-227.986286 585.142857-512s-263.021714-512-585.142857-512-585.142857 227.986286-585.142857 512 263.021714 512 585.142857 512z m0-73.142857c-283.794286 0-512-197.705143-512-438.857143s228.205714-438.857143 512-438.857143 512 197.705143 512 438.857143-228.205714 438.857143-512 438.857143z" }, null, -1), ta = [
1315
+ ea
1316
+ ], la = /* @__PURE__ */ X({
1317
1317
  name: "CircleIcon",
1318
1318
  __name: "icon",
1319
1319
  setup(a) {
1320
- return (t, l) => ($(), O("svg", ta, oa));
1320
+ return (t, l) => ($(), O("svg", Qo, ta));
1321
1321
  }
1322
- }), na = [...Oe];
1323
- class Kl extends Te {
1322
+ }), oa = [...Oe];
1323
+ class Hl extends Te {
1324
1324
  constructor() {
1325
- super({ key: "CR", seq: 10, title: "椭圆", icon: aa, view: ea, properties: na });
1325
+ super({ key: "CR", seq: 10, title: "椭圆", icon: la, view: Jo, properties: oa });
1326
1326
  }
1327
1327
  }
1328
- const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1328
+ const aa = new Hl(), na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1329
1329
  __proto__: null,
1330
- CircleWidget: Kl,
1331
- default: sa
1332
- }, Symbol.toStringTag, { value: "Module" })), ia = /* @__PURE__ */ Object.assign({
1330
+ CircleWidget: Hl,
1331
+ default: aa
1332
+ }, Symbol.toStringTag, { value: "Module" })), sa = /* @__PURE__ */ Object.assign({
1333
1333
  name: "clock-digital",
1334
1334
  inheritAttrs: !1
1335
1335
  }, {
@@ -1342,7 +1342,7 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1342
1342
  setup(a) {
1343
1343
  const t = a, l = G(/* @__PURE__ */ new Date()), o = G(/* @__PURE__ */ new Date()), n = (r, i) => {
1344
1344
  let d = r;
1345
- const f = _l.fromDate(i).getLunar();
1345
+ const f = gl.fromDate(i).getLunar();
1346
1346
  d = d.replace(/YYYY/g, i.getFullYear()), d = d.replace(/yyyy/g, i.getFullYear()), d = d.replace(/MM/g, String(i.getMonth() + 1).padStart(2, "0")), d = d.replace(/DD/g, String(i.getDate()).padStart(2, "0")), d = d.replace(/dd/g, String(i.getDate()).padStart(2, "0")), d = d.replace(/HH/g, String(i.getHours()).padStart(2, "0")), d = d.replace(/mm/g, String(i.getMinutes()).padStart(2, "0")), d = d.replace(/ss/g, String(i.getSeconds()).padStart(2, "0"));
1347
1347
  const e = ["日", "一", "二", "三", "四", "五", "六"];
1348
1348
  return d = d.replace(/W/g, e[i.getDay()]), d = d.replace(/CHY/g, f.getYearInChinese()), d = d.replace(/CHM/g, f.getMonthInChinese()), d = d.replace(/CHD/g, f.getDayInChinese()), d = d.replace(/SXY/g, f.getYearShengXiaoExact()), d = d.replace(/GZY/g, f.getYearInGanZhiExact()), d;
@@ -1361,13 +1361,13 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1361
1361
  const v = () => {
1362
1362
  p(), s = requestAnimationFrame(v);
1363
1363
  };
1364
- return it(() => {
1364
+ return rt(() => {
1365
1365
  v();
1366
1366
  }), We(() => {
1367
1367
  s && cancelAnimationFrame(s);
1368
1368
  }), (r, i) => ($(), O("span", null, de(o.value), 1));
1369
1369
  }
1370
- }), ua = { class: "clock-container" }, ca = ["width", "height"], da = /* @__PURE__ */ Object.assign({
1370
+ }), ra = { class: "clock-container" }, ia = ["width", "height"], ua = /* @__PURE__ */ Object.assign({
1371
1371
  name: "clock-analog",
1372
1372
  inheritAttrs: !1
1373
1373
  }, {
@@ -1521,20 +1521,20 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1521
1521
  }, z = () => {
1522
1522
  V.value && (clearTimeout(V.value), V.value = null);
1523
1523
  };
1524
- return it(() => {
1524
+ return rt(() => {
1525
1525
  s.value.dialBackgroundPic && m(s.value.dialBackgroundPic, "dialBackgroundPic"), s.value.hourHandPic && m(s.value.hourHandPic, "hourHandPic"), s.value.minuteHandPic && m(s.value.minuteHandPic, "minuteHandPic"), s.value.secondHandPic && m(s.value.secondHandPic, "secondHandPic"), v(), H();
1526
1526
  }), We(() => {
1527
1527
  z();
1528
- }), (P, L) => ($(), O("div", ua, [
1528
+ }), (P, L) => ($(), O("div", ra, [
1529
1529
  D("canvas", {
1530
1530
  ref_key: "canvas",
1531
1531
  ref: o,
1532
1532
  width: t.analogOptions.width,
1533
1533
  height: t.analogOptions.height
1534
- }, null, 8, ca)
1534
+ }, null, 8, ia)
1535
1535
  ]));
1536
1536
  }
1537
- }), pa = { class: "clock-widget" }, fa = /* @__PURE__ */ Object.assign({
1537
+ }), ca = { class: "clock-widget" }, da = /* @__PURE__ */ Object.assign({
1538
1538
  name: "ClockWidget",
1539
1539
  inheritAttrs: !1
1540
1540
  }, {
@@ -1574,9 +1574,9 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1574
1574
  }),
1575
1575
  emits: ["update:item"],
1576
1576
  setup(a) {
1577
- const t = a, { elRef: l, width: o, height: n } = dt(), c = N(() => !t.preview && !t.selected && !t.txtFormat ? {
1577
+ const t = a, { elRef: l, width: o, height: n } = ct(), c = N(() => !t.preview && !t.selected && !t.txtFormat ? {
1578
1578
  backdropFilter: "blur(2px)"
1579
- } : {}), p = xl(t), s = $l(t, o, n), v = Jt(t, o, n), r = N(() => {
1579
+ } : {}), p = Sl(t), s = Tl(t, o, n), v = Jt(t, o, n), r = N(() => {
1580
1580
  const {
1581
1581
  rect: f,
1582
1582
  timeOffset: e,
@@ -1639,7 +1639,7 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1639
1639
  ([f, e, u], [g, m, h]) => {
1640
1640
  d.value && f === 1 && (e !== m && u === h ? (d.value.rect.width = e, d.value.rect.height = e) : e === m && u !== h ? (d.value.rect.width = u, d.value.rect.height = u) : e !== m && u !== h ? (d.value.rect.width = (e + u) / 2, d.value.rect.height = (e + u) / 2) : e !== u && (d.value.rect.width = Math.min(e, u), d.value.rect.height = Math.min(e, u)));
1641
1641
  }
1642
- ), (f, e) => ($(), O("div", pa, [
1642
+ ), (f, e) => ($(), O("div", ca, [
1643
1643
  a.clockType === 0 ? ($(), O("div", {
1644
1644
  key: 0,
1645
1645
  class: "digital-clock-container",
@@ -1654,21 +1654,21 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1654
1654
  ref: l,
1655
1655
  style: J(F(v))
1656
1656
  }, [
1657
- I(ia, { digitalOptions: i.value }, null, 8, ["digitalOptions"])
1657
+ I(sa, { digitalOptions: i.value }, null, 8, ["digitalOptions"])
1658
1658
  ], 4)
1659
- ], 4)) : a.clockType === 1 ? ($(), j(da, {
1659
+ ], 4)) : a.clockType === 1 ? ($(), j(ua, {
1660
1660
  key: 1,
1661
1661
  analogOptions: r.value
1662
1662
  }, null, 8, ["analogOptions"])) : ce("", !0)
1663
1663
  ]));
1664
1664
  }
1665
- }), va = /* @__PURE__ */ ae(fa, [["__scopeId", "data-v-c8e615f1"]]), ya = { viewBox: "0 0 1024 1024" }, ma = /* @__PURE__ */ D("path", { d: "M511.3 64c-247 0-448 201-448 448s201 448 448 448 448-201 448-448-200.9-448-448-448z m223.8 772.1c-8.9-6.2-20.9-7.2-30.9-1.4-10.3 5.9-15.5 17.2-14.2 28.3-45.5 23.3-96 37.9-149.6 41.9-4-11.1-14.5-19-27-19-12.6 0-23.1 8.1-27.1 19.3-49.2-3.1-95.9-15.2-138.5-34.7 3.3-12.3-1.7-25.8-13.3-32.4-12-6.9-26.8-4.2-35.7 5.6-42.2-27.1-78.9-62-108-102.7 11.1-8.7 14.5-24.4 7.3-37-7.5-13-23.6-17.8-37-11.6-23.2-44.8-38-94.7-42.4-147.4 15.6-0.3 28.2-13 28.2-28.7 0-15.9-12.9-28.8-28.8-28.8h-0.1c3.1-50.9 16-99.2 36.7-143.1 0.3 0.2 0.5 0.4 0.7 0.5 13.8 7.9 31.4 3.2 39.3-10.5 7.9-13.8 3.2-31.4-10.5-39.3-0.4-0.3-0.9-0.4-1.3-0.6 28.2-42.4 64.3-79.1 106.3-107.8 0.1 0.2 0.2 0.5 0.3 0.7 7.9 13.8 25.6 18.5 39.3 10.5 13.8-7.9 18.5-25.6 10.5-39.3-0.2-0.3-0.4-0.5-0.6-0.8 44.6-21.8 94-35.4 146.1-38.9 0.5 15.4 13.1 27.8 28.7 27.8 15.4 0 27.9-12.2 28.6-27.5 51.4 4 100 17.9 144 39.7-5.2 13.1-0.3 28.3 12.2 35.5 12.4 7.1 27.8 4 36.6-6.7 41.2 28.5 76.7 64.6 104.4 106.3-8.9 9-11.1 23-4.5 34.5 6.6 11.4 19.7 16.4 31.8 13.4 21.7 45.1 34.9 94.9 37.9 147.5-10.8 4.1-18.6 14.5-18.6 26.8 0 12 7.4 22.3 17.9 26.6-3.9 50.2-17.2 97.8-38.2 141-10.8-1-21.7 4.2-27.5 14.2-5.8 10.1-4.8 22.2 1.6 31.1-27.6 42.1-63.2 78.4-104.6 107z" }, null, -1), ha = /* @__PURE__ */ D("path", { d: "M728.2 605.4l-189.9-109V251.3c0-14.9-12.1-27-27-27s-27 12.1-27 27V512c0 0.3 0.1 0.6 0.1 0.9 0 1 0.2 1.9 0.3 2.9 0.1 0.8 0.2 1.6 0.4 2.5 0.2 0.9 0.5 1.7 0.8 2.5 0.3 0.8 0.6 1.7 0.9 2.4 0.4 0.8 0.8 1.5 1.2 2.3 0.4 0.7 0.8 1.5 1.3 2.2 0.5 0.7 1.1 1.4 1.7 2 0.6 0.7 1.1 1.3 1.8 1.9 0.6 0.6 1.3 1.1 1.9 1.6 0.8 0.6 1.5 1.2 2.3 1.7 0.3 0.2 0.5 0.4 0.7 0.5l203.4 116.7c4.2 2.5 8.9 3.6 13.5 3.6 9.3 0 18.4-4.8 23.4-13.5 7.5-12.9 3.1-29.4-9.8-36.8z" }, null, -1), ga = [
1666
- ma,
1667
- ha
1668
- ], ba = /* @__PURE__ */ Object.assign({ name: "ClockIcon" }, {
1665
+ }), pa = /* @__PURE__ */ ae(da, [["__scopeId", "data-v-c8e615f1"]]), fa = { viewBox: "0 0 1024 1024" }, va = /* @__PURE__ */ D("path", { d: "M511.3 64c-247 0-448 201-448 448s201 448 448 448 448-201 448-448-200.9-448-448-448z m223.8 772.1c-8.9-6.2-20.9-7.2-30.9-1.4-10.3 5.9-15.5 17.2-14.2 28.3-45.5 23.3-96 37.9-149.6 41.9-4-11.1-14.5-19-27-19-12.6 0-23.1 8.1-27.1 19.3-49.2-3.1-95.9-15.2-138.5-34.7 3.3-12.3-1.7-25.8-13.3-32.4-12-6.9-26.8-4.2-35.7 5.6-42.2-27.1-78.9-62-108-102.7 11.1-8.7 14.5-24.4 7.3-37-7.5-13-23.6-17.8-37-11.6-23.2-44.8-38-94.7-42.4-147.4 15.6-0.3 28.2-13 28.2-28.7 0-15.9-12.9-28.8-28.8-28.8h-0.1c3.1-50.9 16-99.2 36.7-143.1 0.3 0.2 0.5 0.4 0.7 0.5 13.8 7.9 31.4 3.2 39.3-10.5 7.9-13.8 3.2-31.4-10.5-39.3-0.4-0.3-0.9-0.4-1.3-0.6 28.2-42.4 64.3-79.1 106.3-107.8 0.1 0.2 0.2 0.5 0.3 0.7 7.9 13.8 25.6 18.5 39.3 10.5 13.8-7.9 18.5-25.6 10.5-39.3-0.2-0.3-0.4-0.5-0.6-0.8 44.6-21.8 94-35.4 146.1-38.9 0.5 15.4 13.1 27.8 28.7 27.8 15.4 0 27.9-12.2 28.6-27.5 51.4 4 100 17.9 144 39.7-5.2 13.1-0.3 28.3 12.2 35.5 12.4 7.1 27.8 4 36.6-6.7 41.2 28.5 76.7 64.6 104.4 106.3-8.9 9-11.1 23-4.5 34.5 6.6 11.4 19.7 16.4 31.8 13.4 21.7 45.1 34.9 94.9 37.9 147.5-10.8 4.1-18.6 14.5-18.6 26.8 0 12 7.4 22.3 17.9 26.6-3.9 50.2-17.2 97.8-38.2 141-10.8-1-21.7 4.2-27.5 14.2-5.8 10.1-4.8 22.2 1.6 31.1-27.6 42.1-63.2 78.4-104.6 107z" }, null, -1), ya = /* @__PURE__ */ D("path", { d: "M728.2 605.4l-189.9-109V251.3c0-14.9-12.1-27-27-27s-27 12.1-27 27V512c0 0.3 0.1 0.6 0.1 0.9 0 1 0.2 1.9 0.3 2.9 0.1 0.8 0.2 1.6 0.4 2.5 0.2 0.9 0.5 1.7 0.8 2.5 0.3 0.8 0.6 1.7 0.9 2.4 0.4 0.8 0.8 1.5 1.2 2.3 0.4 0.7 0.8 1.5 1.3 2.2 0.5 0.7 1.1 1.4 1.7 2 0.6 0.7 1.1 1.3 1.8 1.9 0.6 0.6 1.3 1.1 1.9 1.6 0.8 0.6 1.5 1.2 2.3 1.7 0.3 0.2 0.5 0.4 0.7 0.5l203.4 116.7c4.2 2.5 8.9 3.6 13.5 3.6 9.3 0 18.4-4.8 23.4-13.5 7.5-12.9 3.1-29.4-9.8-36.8z" }, null, -1), ma = [
1666
+ va,
1667
+ ya
1668
+ ], ha = /* @__PURE__ */ Object.assign({ name: "ClockIcon" }, {
1669
1669
  __name: "icon",
1670
1670
  setup(a) {
1671
- return (t, l) => ($(), O("svg", ya, ga));
1671
+ return (t, l) => ($(), O("svg", fa, ma));
1672
1672
  }
1673
1673
  }), rl = [
1674
1674
  { value: 0, label: "文字显示" },
@@ -1684,7 +1684,7 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1684
1684
  { value: "minute", label: "分" },
1685
1685
  { value: "second", label: "秒" },
1686
1686
  { value: "millisecond", label: "毫秒" }
1687
- ], _a = [
1687
+ ], ga = [
1688
1688
  {
1689
1689
  type: "radio-default",
1690
1690
  label: "时钟类型",
@@ -1851,15 +1851,15 @@ const sa = new Kl(), ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
1851
1851
  display: ({ props: a }) => a.clockType === 1 && (a.bgPic == null || a.bgPic == null || a.bgPic == "")
1852
1852
  }
1853
1853
  ];
1854
- class Fl extends Te {
1854
+ class Rl extends Te {
1855
1855
  constructor() {
1856
1856
  super({
1857
1857
  key: "CL",
1858
1858
  seq: 1,
1859
1859
  title: "时钟",
1860
- icon: ba,
1861
- view: va,
1862
- properties: _a
1860
+ icon: ha,
1861
+ view: pa,
1862
+ properties: ga
1863
1863
  });
1864
1864
  }
1865
1865
  valueFormat(t, l, o) {
@@ -1867,13 +1867,13 @@ class Fl extends Te {
1867
1867
  return n === "boolean" ? t !== "0" : super.valueFormat(t, l, o);
1868
1868
  }
1869
1869
  }
1870
- const wa = new Fl(), ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1870
+ const ba = new Rl(), _a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1871
1871
  __proto__: null,
1872
- ClockWidget: Fl,
1873
- default: wa
1872
+ ClockWidget: Rl,
1873
+ default: ba
1874
1874
  }, Symbol.toStringTag, { value: "Module" }));
1875
1875
  var qe = /* @__PURE__ */ ((a) => (a[a.initial = 0] = "initial", a[a.fill = 1] = "fill", a[a.contain = 2] = "contain", a[a.cover = 3] = "cover", a[a.none = 4] = "none", a))(qe || {}), Bt = /* @__PURE__ */ ((a) => (a[a.no = 1] = "no", a[a.yes = 2] = "yes", a))(Bt || {});
1876
- const wt = /* @__PURE__ */ X({
1876
+ const _t = /* @__PURE__ */ X({
1877
1877
  name: "ExtraDefault",
1878
1878
  inheritAttrs: !1,
1879
1879
  __name: "extra",
@@ -1926,11 +1926,11 @@ const wt = /* @__PURE__ */ X({
1926
1926
  }, 8, ["content"]);
1927
1927
  };
1928
1928
  }
1929
- }), Ta = {}, Sa = { class: "tip" };
1930
- function $a(a, t) {
1931
- return $(), O("span", Sa, " 行模式已开启 ");
1929
+ }), wa = {}, ka = { class: "tip" };
1930
+ function Ta(a, t) {
1931
+ return $(), O("span", ka, " 行模式已开启 ");
1932
1932
  }
1933
- const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb404351"]]), Ht = [
1933
+ const Sa = /* @__PURE__ */ ae(wa, [["render", Ta], ["__scopeId", "data-v-eb404351"]]), Ht = [
1934
1934
  {
1935
1935
  label: "是",
1936
1936
  value: Bt.yes
@@ -1965,7 +1965,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
1965
1965
  label: "无-none",
1966
1966
  value: qe.none
1967
1967
  }
1968
- ], Pe = "zh|C", Ul = [
1968
+ ], Pe = "zh|C", Kl = [
1969
1969
  {
1970
1970
  type: "input-number",
1971
1971
  label: "行数",
@@ -2249,7 +2249,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2249
2249
  valueType: "boolean",
2250
2250
  defaultValue: !1,
2251
2251
  display: (a, t) => t.rowMode,
2252
- extra: xa
2252
+ extra: Sa
2253
2253
  },
2254
2254
  {
2255
2255
  ...te[0],
@@ -2267,15 +2267,15 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2267
2267
  },
2268
2268
  ...te.map((a) => ({
2269
2269
  ...a,
2270
- extra: wt
2270
+ extra: _t
2271
2271
  })),
2272
- { ...Se[0], extra: wt },
2273
- { ...Se[1], key: "CA", extra: wt },
2272
+ { ...Se[0], extra: _t },
2273
+ { ...Se[1], key: "CA", extra: _t },
2274
2274
  ...Ve.map((a) => ({
2275
2275
  ...a,
2276
- extra: wt
2276
+ extra: _t
2277
2277
  }))
2278
- ], Ca = ["onMousedown"], Ma = ["onMousedown"], Ea = /* @__PURE__ */ X({
2278
+ ], $a = ["onMousedown"], xa = ["onMousedown"], Ca = /* @__PURE__ */ X({
2279
2279
  name: "resizable-table",
2280
2280
  inheritAttrs: !1,
2281
2281
  __name: "index",
@@ -2295,7 +2295,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2295
2295
  return [(r - 1) * i / r, (v - 1) * i / v];
2296
2296
  });
2297
2297
  let c = [], p = [];
2298
- const { mousedown: s } = Wl({
2298
+ const { mousedown: s } = zl({
2299
2299
  moveFirst: () => {
2300
2300
  const { rowHeight: v, colWidth: r } = l;
2301
2301
  c = [...r], p = [...v];
@@ -2335,7 +2335,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2335
2335
  marginTop: F(K)(-v.lineWidth / 2)
2336
2336
  }),
2337
2337
  onMousedown: (u) => F(s)(u, { type: "row", index: d - 1 })
2338
- }, null, 44, Ca)) : ce("", !0),
2338
+ }, null, 44, $a)) : ce("", !0),
2339
2339
  v.resizable && e > 0 ? ($(), O("span", {
2340
2340
  key: 1,
2341
2341
  class: "resize-handle-col",
@@ -2344,7 +2344,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2344
2344
  marginLeft: F(K)(-v.lineWidth / 2)
2345
2345
  }),
2346
2346
  onMousedown: (u) => F(s)(u, { type: "col", index: e - 1 })
2347
- }, null, 44, Ma)) : ce("", !0),
2347
+ }, null, 44, xa)) : ce("", !0),
2348
2348
  D("div", {
2349
2349
  class: "text-image",
2350
2350
  style: J({
@@ -2364,7 +2364,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2364
2364
  ]))), 128))
2365
2365
  ], 4));
2366
2366
  }
2367
- }), Nl = /* @__PURE__ */ ae(Ea, [["__scopeId", "data-v-5c70c8e3"]]), Va = { class: "data-table-widget" }, Ia = /* @__PURE__ */ X({
2367
+ }), Fl = /* @__PURE__ */ ae(Ca, [["__scopeId", "data-v-5c70c8e3"]]), Ma = { class: "data-table-widget" }, Ea = /* @__PURE__ */ X({
2368
2368
  name: "DataTableWidget",
2369
2369
  inheritAttrs: !1,
2370
2370
  __name: "index",
@@ -2418,7 +2418,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2418
2418
  return {
2419
2419
  backgroundColor: g
2420
2420
  };
2421
- }), c = Qe(t), p = N(() => Number.parseInt(String(c.value.borderWidth), 10)), s = (g, m) => {
2421
+ }), c = Je(t), p = N(() => Number.parseInt(String(c.value.borderWidth), 10)), s = (g, m) => {
2422
2422
  for (let h = 0; h < m.length; h++) {
2423
2423
  const w = m[h], { domainVal: k } = w;
2424
2424
  if (g.match(new RegExp(`^${(k ?? "").replace(/(\*+)/g, ".*")}$`)))
@@ -2436,7 +2436,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2436
2436
  };
2437
2437
  const L = t.colWidth[m], R = t.rowHeight[g];
2438
2438
  if (typeof h == "string") {
2439
- const B = He({ color: x, bgcolor: T, fontFamily: E, fontSize: M, fontStyle: V }), { width: Y, height: oe } = Co(
2439
+ const B = He({ color: x, bgcolor: T, fontFamily: E, fontSize: M, fontStyle: V }), { width: Y, height: oe } = $o(
2440
2440
  h,
2441
2441
  B.fontSize,
2442
2442
  B.fontFamily
@@ -2447,7 +2447,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2447
2447
  height: R,
2448
2448
  textWidth: Y,
2449
2449
  textHeight: oe
2450
- }), ne = El(
2450
+ }), ne = Cl(
2451
2451
  `widget-${k}-${g}-${m}-roll`,
2452
2452
  {
2453
2453
  animationSpeed: z,
@@ -2506,24 +2506,24 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2506
2506
  T = o(g[_].field);
2507
2507
  else if (t.preview && (T = (b == null ? void 0 : b[_]) ?? "", T && g[_].colMode === 1)) {
2508
2508
  const x = T;
2509
- T = mo(() => new Promise((E) => {
2509
+ T = vo(() => new Promise((E) => {
2510
2510
  try {
2511
- typeof (r == null ? void 0 : r.value) != "function" ? E(bt("img", { title: "没有提供获取图片流的接口" })) : r.value(x).then((M) => {
2511
+ typeof (r == null ? void 0 : r.value) != "function" ? E(gt("img", { title: "没有提供获取图片流的接口" })) : r.value(x).then((M) => {
2512
2512
  const V = new Blob([M], {
2513
2513
  type: `image/${x.split(".").pop()}`
2514
2514
  }), W = URL.createObjectURL(V), H = () => URL.revokeObjectURL(W);
2515
2515
  E(
2516
- bt("img", {
2516
+ gt("img", {
2517
2517
  src: W,
2518
2518
  onError: H,
2519
2519
  onLoad: H
2520
2520
  })
2521
2521
  );
2522
2522
  }).catch(() => {
2523
- E(bt("img", { title: "请求图片流出错" }));
2523
+ E(gt("img", { title: "请求图片流出错" }));
2524
2524
  });
2525
2525
  } catch {
2526
- E(bt("img", { title: "请求图片流出错" }));
2526
+ E(gt("img", { title: "请求图片流出错" }));
2527
2527
  }
2528
2528
  }));
2529
2529
  }
@@ -2566,7 +2566,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2566
2566
  (h.lineWidth ?? 0) * _ / (_ - 1)
2567
2567
  );
2568
2568
  }
2569
- }, e = ue(a, "item"), u = pt(
2569
+ }, e = ue(a, "item"), u = dt(
2570
2570
  e.value ? `${e.value.type}-${e.value.id}` : "",
2571
2571
  ({ value: g, property: m }) => {
2572
2572
  var h;
@@ -2581,7 +2581,7 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2581
2581
  })), typeof g == "number" && (b === "row" || b === "col" || b === "rowConfs" || b === "colConfs")) {
2582
2582
  const y = b === "row" || b === "rowConfs" ? "row" : "col", S = y === "row" ? "rowHeight" : "colWidth", _ = y === "row" ? "rowConfs" : "colConfs", T = y === "row" ? w.height : w.width, x = k[S].length;
2583
2583
  if (g - x > 0) {
2584
- const E = b === "colConfs" || b === "rowConfs" ? m.children : (h = Ul.find((W) => W.bindKey === _)) == null ? void 0 : h.children, M = new Array(g - x).fill(0).map(() => {
2584
+ const E = b === "colConfs" || b === "rowConfs" ? m.children : (h = Kl.find((W) => W.bindKey === _)) == null ? void 0 : h.children, M = new Array(g - x).fill(0).map(() => {
2585
2585
  const W = { id: ve() };
2586
2586
  return E == null || E.forEach((H) => {
2587
2587
  W[H.bindKey] = ie(k[H.bindKey] ?? H.defaultValue);
@@ -2611,10 +2611,10 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2611
2611
  }
2612
2612
  }
2613
2613
  );
2614
- return Ge(() => {
2615
- Po(`widget-${t.id}-\\d-\\d-roll`), u();
2616
- }), (g, m) => ($(), O("div", Va, [
2617
- I(Nl, {
2614
+ return Xe(() => {
2615
+ Io(`widget-${t.id}-\\d-\\d-roll`), u();
2616
+ }), (g, m) => ($(), O("div", Ma, [
2617
+ I(Fl, {
2618
2618
  style: J(n.value),
2619
2619
  lineWidth: p.value,
2620
2620
  rowHeight: g.rowHeight,
@@ -2625,27 +2625,27 @@ const xa = /* @__PURE__ */ ae(Ta, [["render", $a], ["__scopeId", "data-v-eb40435
2625
2625
  }, null, 8, ["style", "lineWidth", "rowHeight", "colWidth", "dataSource", "resizable"])
2626
2626
  ]));
2627
2627
  }
2628
- }), Aa = /* @__PURE__ */ ae(Ia, [["__scopeId", "data-v-06b452c4"]]), Pa = { viewBox: "0 0 1024 1024" }, Oa = /* @__PURE__ */ D("path", { d: "M960 64H64c-25.6 0-44.8 19.2-44.8 38.4v812.8c0 25.6 19.2 44.8 44.8 44.8h896c25.6 0 44.8-19.2 44.8-38.4V102.4c0-19.2-19.2-38.4-44.8-38.4zM108.8 288c0-6.4 6.4-12.8 12.8-12.8H448c6.4 0 12.8 6.4 12.8 12.8v108.8c0 6.4-6.4 12.8-12.8 12.8H128c-6.4 0-12.8-6.4-12.8-12.8V288z m806.4 281.6v281.6c0 6.4-6.4 12.8-12.8 12.8H128c-6.4 0-12.8-6.4-12.8-12.8V518.4c0-6.4 6.4-12.8 12.8-12.8h768c6.4 0 12.8 6.4 12.8 12.8v51.2z m0-172.8c0 6.4-6.4 12.8-12.8 12.8H569.6c-6.4 0-12.8-6.4-12.8-12.8V288c0-6.4 6.4-12.8 12.8-12.8H896c6.4 0 12.8 6.4 12.8 12.8v108.8z" }, null, -1), Da = /* @__PURE__ */ D("path", { d: "M230.4 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h89.6v-19.2h-32zM326.4 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-12.8-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 0 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2zM460.8 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h83.2v-19.2h-25.6zM556.8 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-19.2-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 6.4 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2zM691.2 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h83.2v-19.2h-25.6zM787.2 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-19.2-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 0 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2z" }, null, -1), za = [
2629
- Oa,
2630
- Da
2631
- ], La = /* @__PURE__ */ X({
2628
+ }), Va = /* @__PURE__ */ ae(Ea, [["__scopeId", "data-v-06b452c4"]]), Ia = { viewBox: "0 0 1024 1024" }, Aa = /* @__PURE__ */ D("path", { d: "M960 64H64c-25.6 0-44.8 19.2-44.8 38.4v812.8c0 25.6 19.2 44.8 44.8 44.8h896c25.6 0 44.8-19.2 44.8-38.4V102.4c0-19.2-19.2-38.4-44.8-38.4zM108.8 288c0-6.4 6.4-12.8 12.8-12.8H448c6.4 0 12.8 6.4 12.8 12.8v108.8c0 6.4-6.4 12.8-12.8 12.8H128c-6.4 0-12.8-6.4-12.8-12.8V288z m806.4 281.6v281.6c0 6.4-6.4 12.8-12.8 12.8H128c-6.4 0-12.8-6.4-12.8-12.8V518.4c0-6.4 6.4-12.8 12.8-12.8h768c6.4 0 12.8 6.4 12.8 12.8v51.2z m0-172.8c0 6.4-6.4 12.8-12.8 12.8H569.6c-6.4 0-12.8-6.4-12.8-12.8V288c0-6.4 6.4-12.8 12.8-12.8H896c6.4 0 12.8 6.4 12.8 12.8v108.8z" }, null, -1), Pa = /* @__PURE__ */ D("path", { d: "M230.4 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h89.6v-19.2h-32zM326.4 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-12.8-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 0 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2zM460.8 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h83.2v-19.2h-25.6zM556.8 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-19.2-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 6.4 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2zM691.2 614.4l-57.6 12.8v25.6l25.6-6.4v89.6h-25.6v19.2h83.2v-19.2h-25.6zM787.2 614.4c-19.2 0-32 6.4-38.4 19.2-6.4 12.8-12.8 32-12.8 57.6 0 44.8 19.2 70.4 51.2 70.4 19.2 0 32-6.4 38.4-19.2s12.8-32 12.8-57.6c0-44.8-19.2-70.4-51.2-70.4z m0 121.6c-12.8 0-19.2-19.2-19.2-51.2s6.4-51.2 19.2-51.2c12.8 0 19.2 19.2 19.2 51.2 0 38.4-6.4 51.2-19.2 51.2z" }, null, -1), Oa = [
2629
+ Aa,
2630
+ Pa
2631
+ ], Da = /* @__PURE__ */ X({
2632
2632
  name: "DataTableIcon",
2633
2633
  __name: "icon",
2634
2634
  setup(a) {
2635
- return (t, l) => ($(), O("svg", Pa, za));
2635
+ return (t, l) => ($(), O("svg", Ia, Oa));
2636
2636
  }
2637
2637
  }), pl = [...te, ...Se, ...Ve].map(
2638
2638
  ({ bindKey: a }) => a
2639
2639
  );
2640
- class Bl extends Te {
2640
+ class Ul extends Te {
2641
2641
  constructor() {
2642
2642
  super({
2643
2643
  key: "DT",
2644
2644
  seq: 6,
2645
2645
  title: "数据表格",
2646
- icon: La,
2647
- view: Aa,
2648
- properties: Ul,
2646
+ icon: Da,
2647
+ view: Va,
2648
+ properties: Kl,
2649
2649
  rectangles: {
2650
2650
  // 该默认值设置为 properties 下 colWidth 数组 之和
2651
2651
  width: { defaultValue: 60 },
@@ -2891,7 +2891,7 @@ class Bl extends Te {
2891
2891
  const k = [];
2892
2892
  w.forEach((y, S) => {
2893
2893
  (h ? [i[S]] : i).forEach((T) => {
2894
- k.push(y && Eo(T) ? T.replace(/^C/, y.replace(/.+\|/, "")) : T);
2894
+ k.push(y && Co(T) ? T.replace(/^C/, y.replace(/.+\|/, "")) : T);
2895
2895
  });
2896
2896
  });
2897
2897
  const b = [
@@ -2948,11 +2948,11 @@ class Bl extends Te {
2948
2948
  };
2949
2949
  }
2950
2950
  }
2951
- const Wa = new Bl(), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2951
+ const za = new Ul(), La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2952
2952
  __proto__: null,
2953
- DataTableWidget: Bl,
2954
- default: Wa
2955
- }, Symbol.toStringTag, { value: "Module" })), Yl = [
2953
+ DataTableWidget: Ul,
2954
+ default: za
2955
+ }, Symbol.toStringTag, { value: "Module" })), Nl = [
2956
2956
  {
2957
2957
  type: "single-select",
2958
2958
  label: "数据源",
@@ -2968,7 +2968,7 @@ const Wa = new Bl(), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
2968
2968
  bindKey: "url",
2969
2969
  files: "Image"
2970
2970
  }
2971
- ], Ra = ["title"], Ka = /* @__PURE__ */ X({
2971
+ ], Wa = ["title"], Ha = /* @__PURE__ */ X({
2972
2972
  name: "source-label",
2973
2973
  inheritAttrs: !1,
2974
2974
  __name: "index",
@@ -2986,13 +2986,13 @@ const Wa = new Bl(), Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
2986
2986
  key: 0,
2987
2987
  class: "source-label",
2988
2988
  title: o.value
2989
- }, de(o.value), 9, Ra)) : ce("", !0);
2989
+ }, de(o.value), 9, Wa)) : ce("", !0);
2990
2990
  }
2991
- }), It = /* @__PURE__ */ ae(Ka, [["__scopeId", "data-v-f4e0b6c9"]]), Fa = "__FILE_CACHE__";
2991
+ }), It = /* @__PURE__ */ ae(Ha, [["__scopeId", "data-v-f4e0b6c9"]]), Ra = "__FILE_CACHE__";
2992
2992
  function fl(a) {
2993
- return `${Fa}_${a}`;
2993
+ return `${Ra}_${a}`;
2994
2994
  }
2995
- function ql() {
2995
+ function Bl() {
2996
2996
  return new Promise((a, t) => {
2997
2997
  if (!("indexedDB" in window)) {
2998
2998
  t(new Error("IndexedDB not supported"));
@@ -3005,8 +3005,8 @@ function ql() {
3005
3005
  }, l.onsuccess = () => a(l.result), l.onerror = () => t(l.error);
3006
3006
  });
3007
3007
  }
3008
- function Ua(a, t) {
3009
- return ql().then(
3008
+ function Ka(a, t) {
3009
+ return Bl().then(
3010
3010
  (l) => new Promise((o, n) => {
3011
3011
  const s = l.transaction("files", "readwrite").objectStore("files").put(t, a);
3012
3012
  s.onsuccess = () => {
@@ -3017,8 +3017,8 @@ function Ua(a, t) {
3017
3017
  })
3018
3018
  );
3019
3019
  }
3020
- function Na(a) {
3021
- return ql().then(
3020
+ function Fa(a) {
3021
+ return Bl().then(
3022
3022
  (t) => new Promise((l, o) => {
3023
3023
  const p = t.transaction("files", "readonly").objectStore("files").get(a);
3024
3024
  p.onsuccess = () => {
@@ -3032,18 +3032,18 @@ function Na(a) {
3032
3032
  class vl {
3033
3033
  static async set(t, l) {
3034
3034
  try {
3035
- await Ua(fl(t), l);
3035
+ await Ka(fl(t), l);
3036
3036
  } catch {
3037
3037
  }
3038
3038
  }
3039
3039
  static async get(t) {
3040
3040
  try {
3041
- return await Na(fl(t));
3041
+ return await Fa(fl(t));
3042
3042
  } catch {
3043
3043
  }
3044
3044
  }
3045
3045
  }
3046
- const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__PURE__ */ X({
3046
+ const Ua = { key: 0 }, Na = { key: 1 }, Ba = ["src"], Ya = ["src"], qa = /* @__PURE__ */ X({
3047
3047
  name: "file-preview",
3048
3048
  inheritAttrs: !1,
3049
3049
  __name: "index",
@@ -3101,21 +3101,21 @@ const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__P
3101
3101
  },
3102
3102
  { immediate: !0 }
3103
3103
  );
3104
- const d = G(), { elRef: f, width: e } = dt(), u = N(() => d.value ? (e.value - Mo()) / d.value : t.type === "WORD" ? 854 : 960);
3104
+ const d = G(), { elRef: f, width: e } = ct(), u = N(() => d.value ? (e.value - xo()) / d.value : t.type === "WORD" ? 854 : 960);
3105
3105
  return (g, m) => {
3106
- const h = ho("loading");
3106
+ const h = yo("loading");
3107
3107
  return ze(($(), O("div", {
3108
3108
  ref_key: "elRef",
3109
3109
  ref: f,
3110
3110
  class: "flex",
3111
3111
  style: J({ ...g.style, "--scale": u.value })
3112
3112
  }, [
3113
- n.value && g.preview ? ($(), O("span", Ba)) : p.value ? ($(), O("span", Ya, de(c.value), 1)) : g.type === "WORD" ? ($(), j(F(So), {
3113
+ n.value && g.preview ? ($(), O("span", Ua)) : p.value ? ($(), O("span", Na, de(c.value), 1)) : g.type === "WORD" ? ($(), j(F(ko), {
3114
3114
  key: 2,
3115
3115
  src: c.value,
3116
3116
  onRendered: v,
3117
3117
  onError: r
3118
- }, null, 8, ["src"])) : g.type === "PPT" ? ($(), j(F($o), {
3118
+ }, null, 8, ["src"])) : g.type === "PPT" ? ($(), j(F(To), {
3119
3119
  key: 3,
3120
3120
  src: c.value,
3121
3121
  onRendered: v,
@@ -3126,7 +3126,7 @@ const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__P
3126
3126
  draggable: "false",
3127
3127
  onError: r,
3128
3128
  onLoad: v
3129
- }, null, 40, qa)) : typeof c.value == "string" && g.type === "Video" ? ($(), O("video", {
3129
+ }, null, 40, Ba)) : typeof c.value == "string" && g.type === "Video" ? ($(), O("video", {
3130
3130
  key: 5,
3131
3131
  src: c.value,
3132
3132
  draggable: "false",
@@ -3135,13 +3135,13 @@ const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__P
3135
3135
  onError: r,
3136
3136
  onLoadeddata: v,
3137
3137
  onEnded: s
3138
- }, null, 40, ja)) : ce("", !0)
3138
+ }, null, 40, Ya)) : ce("", !0)
3139
3139
  ], 4)), [
3140
3140
  [h, o.value]
3141
3141
  ]);
3142
3142
  };
3143
3143
  }
3144
- }), vt = /* @__PURE__ */ ae(Xa, [["__scopeId", "data-v-6dc73490"]]), Ga = { class: "image-widget" }, Za = /* @__PURE__ */ X({
3144
+ }), ft = /* @__PURE__ */ ae(qa, [["__scopeId", "data-v-6dc73490"]]), ja = { class: "image-widget" }, Xa = /* @__PURE__ */ X({
3145
3145
  name: "ImageWidget",
3146
3146
  inheritAttrs: !1,
3147
3147
  __name: "index",
@@ -3160,13 +3160,13 @@ const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__P
3160
3160
  fontSize: te[3].defaultValue,
3161
3161
  fontStyle: te[4].defaultValue
3162
3162
  }), o = Fe(t), n = N(() => o.value ? o.value.name ?? "" : t.url);
3163
- return (c, p) => ($(), O("div", Ga, [
3163
+ return (c, p) => ($(), O("div", ja, [
3164
3164
  c.preview ? ce("", !0) : ($(), j(It, {
3165
3165
  key: 0,
3166
- properties: F(Yl),
3166
+ properties: F(Nl),
3167
3167
  source: c.source
3168
3168
  }, null, 8, ["properties", "source"])),
3169
- I(vt, {
3169
+ I(ft, {
3170
3170
  style: J(F(l)),
3171
3171
  preview: c.preview,
3172
3172
  type: "Image",
@@ -3174,16 +3174,16 @@ const Ba = { key: 0 }, Ya = { key: 1 }, qa = ["src"], ja = ["src"], Xa = /* @__P
3174
3174
  }, null, 8, ["style", "preview", "file"])
3175
3175
  ]));
3176
3176
  }
3177
- }), Ja = /* @__PURE__ */ ae(Za, [["__scopeId", "data-v-d1242b50"]]);
3178
- class jl extends Te {
3177
+ }), Ga = /* @__PURE__ */ ae(Xa, [["__scopeId", "data-v-d1242b50"]]);
3178
+ class Yl extends Te {
3179
3179
  constructor() {
3180
3180
  super({
3181
3181
  key: "PT",
3182
3182
  seq: 7,
3183
3183
  title: "图片",
3184
3184
  icon: "Picture",
3185
- view: Ja,
3186
- properties: Yl
3185
+ view: Ga,
3186
+ properties: Nl
3187
3187
  });
3188
3188
  }
3189
3189
  extraToXML(t, l, o, n, c) {
@@ -3214,11 +3214,11 @@ class jl extends Te {
3214
3214
  };
3215
3215
  }
3216
3216
  }
3217
- const Qa = new jl(), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3217
+ const Za = new Yl(), Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3218
3218
  __proto__: null,
3219
- ImageWidget: jl,
3220
- default: Qa
3221
- }, Symbol.toStringTag, { value: "Module" })), tn = { class: "line-widget-inner" }, ln = /* @__PURE__ */ X({
3219
+ ImageWidget: Yl,
3220
+ default: Za
3221
+ }, Symbol.toStringTag, { value: "Module" })), Qa = { class: "line-widget-inner" }, en = /* @__PURE__ */ X({
3222
3222
  name: "LineWidget",
3223
3223
  inheritAttrs: !1,
3224
3224
  __name: "index",
@@ -3239,12 +3239,12 @@ const Qa = new jl(), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3239
3239
  emits: ["update:item"],
3240
3240
  setup(a) {
3241
3241
  const t = a, l = N(() => {
3242
- const { x0: s, y0: v, x1: r, y1: i, rect: d } = t, f = Tl([s, v], [r, i]), e = Gt([s, v], [r, i]);
3242
+ const { x0: s, y0: v, x1: r, y1: i, rect: d } = t, f = wl([s, v], [r, i]), e = Gt([s, v], [r, i]);
3243
3243
  return {
3244
3244
  width: K(f),
3245
3245
  transform: `translate(${K(s - d.x)},${K(v - d.y)}) rotate(${e}deg)`
3246
3246
  };
3247
- }), o = Qe(t), n = Re(), c = ue(a, "item"), p = pt(
3247
+ }), o = Je(t), n = Re(), c = ue(a, "item"), p = dt(
3248
3248
  c.value ? `${c.value.type}-${c.value.id}` : "",
3249
3249
  ({ value: s, property: v }) => {
3250
3250
  const { bindKey: r } = v;
@@ -3260,13 +3260,13 @@ const Qa = new jl(), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3260
3260
  }
3261
3261
  }
3262
3262
  );
3263
- return Ge(() => {
3263
+ return Xe(() => {
3264
3264
  p();
3265
3265
  }), (s, v) => ($(), O("div", {
3266
3266
  class: "line-widget",
3267
3267
  style: J(l.value)
3268
3268
  }, [
3269
- D("div", tn, [
3269
+ D("div", Qa, [
3270
3270
  D("div", {
3271
3271
  class: "line",
3272
3272
  style: J(F(o))
@@ -3274,15 +3274,15 @@ const Qa = new jl(), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3274
3274
  ])
3275
3275
  ], 4));
3276
3276
  }
3277
- }), on = /* @__PURE__ */ ae(ln, [["__scopeId", "data-v-c724f697"]]), an = { viewBox: "0 0 1024 1024" }, nn = /* @__PURE__ */ D("path", { d: "M191.488 864.768c-8.192 0-16.384-3.072-22.528-9.216-12.288-12.288-12.288-32.768 0-45.056L809.472 168.96c12.288-12.288 32.768-12.288 45.056 0s12.288 32.768 0 45.056L214.016 855.04c-6.144 6.144-14.336 9.728-22.528 9.728z" }, null, -1), sn = [
3278
- nn
3279
- ], rn = /* @__PURE__ */ X({
3277
+ }), tn = /* @__PURE__ */ ae(en, [["__scopeId", "data-v-c724f697"]]), ln = { viewBox: "0 0 1024 1024" }, on = /* @__PURE__ */ D("path", { d: "M191.488 864.768c-8.192 0-16.384-3.072-22.528-9.216-12.288-12.288-12.288-32.768 0-45.056L809.472 168.96c12.288-12.288 32.768-12.288 45.056 0s12.288 32.768 0 45.056L214.016 855.04c-6.144 6.144-14.336 9.728-22.528 9.728z" }, null, -1), an = [
3278
+ on
3279
+ ], nn = /* @__PURE__ */ X({
3280
3280
  name: "LineIcon",
3281
3281
  __name: "icon",
3282
3282
  setup(a) {
3283
- return (t, l) => ($(), O("svg", an, sn));
3283
+ return (t, l) => ($(), O("svg", ln, an));
3284
3284
  }
3285
- }), un = [
3285
+ }), sn = [
3286
3286
  {
3287
3287
  type: "input-number",
3288
3288
  label: "X0坐标",
@@ -3317,15 +3317,15 @@ const Qa = new jl(), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3317
3317
  },
3318
3318
  ...Oe
3319
3319
  ];
3320
- class Xl extends Te {
3320
+ class ql extends Te {
3321
3321
  constructor() {
3322
3322
  super({
3323
3323
  key: "LN",
3324
3324
  seq: 2,
3325
3325
  title: "直线",
3326
- icon: rn,
3327
- view: on,
3328
- properties: un,
3326
+ icon: nn,
3327
+ view: tn,
3328
+ properties: sn,
3329
3329
  rectangles: {
3330
3330
  x: { display: !1 },
3331
3331
  y: { display: !1 },
@@ -3373,11 +3373,11 @@ class Xl extends Te {
3373
3373
  }), o;
3374
3374
  }
3375
3375
  }
3376
- const cn = new Xl(), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3376
+ const rn = new ql(), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3377
3377
  __proto__: null,
3378
- LineWidget: Xl,
3379
- default: cn
3380
- }, Symbol.toStringTag, { value: "Module" })), Gl = [
3378
+ LineWidget: ql,
3379
+ default: rn
3380
+ }, Symbol.toStringTag, { value: "Module" })), jl = [
3381
3381
  {
3382
3382
  type: "single-select",
3383
3383
  label: "数据源",
@@ -3392,7 +3392,7 @@ const cn = new Xl(), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3392
3392
  bindKey: "url",
3393
3393
  files: "PPT"
3394
3394
  }
3395
- ], pn = { class: "ppt-widget" }, fn = /* @__PURE__ */ X({
3395
+ ], cn = { class: "ppt-widget" }, dn = /* @__PURE__ */ X({
3396
3396
  name: "PPTWidget",
3397
3397
  inheritAttrs: !1,
3398
3398
  __name: "index",
@@ -3411,13 +3411,13 @@ const cn = new Xl(), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3411
3411
  fontSize: te[3].defaultValue,
3412
3412
  fontStyle: te[4].defaultValue
3413
3413
  }), o = Fe(t), n = N(() => o.value ? o.value.name ?? "" : t.url);
3414
- return (c, p) => ($(), O("div", pn, [
3414
+ return (c, p) => ($(), O("div", cn, [
3415
3415
  c.preview ? ce("", !0) : ($(), j(It, {
3416
3416
  key: 0,
3417
- properties: F(Gl),
3417
+ properties: F(jl),
3418
3418
  source: c.source
3419
3419
  }, null, 8, ["properties", "source"])),
3420
- I(vt, {
3420
+ I(ft, {
3421
3421
  style: J(F(l)),
3422
3422
  preview: c.preview,
3423
3423
  type: "PPT",
@@ -3425,25 +3425,25 @@ const cn = new Xl(), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3425
3425
  }, null, 8, ["style", "preview", "file"])
3426
3426
  ]));
3427
3427
  }
3428
- }), vn = /* @__PURE__ */ ae(fn, [["__scopeId", "data-v-187900d9"]]), yn = { viewBox: "0 0 1024 1024" }, mn = /* @__PURE__ */ D("path", { d: "M357.47 394.33h-57.82v96.29h56.28c34.13 0 58.25-13.13 58.25-47.96-0.01-35.18-25.45-48.33-56.71-48.33z" }, null, -1), hn = /* @__PURE__ */ D("path", { d: "M920.64 216.07a32.37 32.37 0 0 0-35.94-36.41c-99.41-1.93-198.92 0-298.53-0.87v-76.2H530.5c-142.67 26.01-285.43 50.86-428.1 76.39V845.6c141.99 25.43 283.98 49.7 425.98 75.81h57.8v-74.85h279.36c15.89-0.96 33.43 0 47.01-9.63 10.89-17.24 8.09-38.53 9.05-57.8-0.96-187.37 0.68-375.4-0.96-563.06zM365.21 549.32h-65.57v127.36h-73.8V335.63h141.09c72.47 0 121.66 40.78 121.66 105.61 0 74.09-56.1 108.08-123.38 108.08z m528.07 267.66H586.17v-76.2h241.98v-38.53H586.17v-47.2h241.98v-38.54H586.17v-47.2h241.98v-38.53H586.17v-48.16h241.98v-37.09H586.17v-48.16h241.98V359.8H586.17v-47.68h241.98v-38.05H586.17V207.4h307.11v609.58z" }, null, -1), gn = [
3429
- mn,
3430
- hn
3431
- ], bn = /* @__PURE__ */ X({
3428
+ }), pn = /* @__PURE__ */ ae(dn, [["__scopeId", "data-v-187900d9"]]), fn = { viewBox: "0 0 1024 1024" }, vn = /* @__PURE__ */ D("path", { d: "M357.47 394.33h-57.82v96.29h56.28c34.13 0 58.25-13.13 58.25-47.96-0.01-35.18-25.45-48.33-56.71-48.33z" }, null, -1), yn = /* @__PURE__ */ D("path", { d: "M920.64 216.07a32.37 32.37 0 0 0-35.94-36.41c-99.41-1.93-198.92 0-298.53-0.87v-76.2H530.5c-142.67 26.01-285.43 50.86-428.1 76.39V845.6c141.99 25.43 283.98 49.7 425.98 75.81h57.8v-74.85h279.36c15.89-0.96 33.43 0 47.01-9.63 10.89-17.24 8.09-38.53 9.05-57.8-0.96-187.37 0.68-375.4-0.96-563.06zM365.21 549.32h-65.57v127.36h-73.8V335.63h141.09c72.47 0 121.66 40.78 121.66 105.61 0 74.09-56.1 108.08-123.38 108.08z m528.07 267.66H586.17v-76.2h241.98v-38.53H586.17v-47.2h241.98v-38.54H586.17v-47.2h241.98v-38.53H586.17v-48.16h241.98v-37.09H586.17v-48.16h241.98V359.8H586.17v-47.68h241.98v-38.05H586.17V207.4h307.11v609.58z" }, null, -1), mn = [
3429
+ vn,
3430
+ yn
3431
+ ], hn = /* @__PURE__ */ X({
3432
3432
  name: "PPTIcon",
3433
3433
  __name: "icon",
3434
3434
  setup(a) {
3435
- return (t, l) => ($(), O("svg", yn, gn));
3435
+ return (t, l) => ($(), O("svg", fn, mn));
3436
3436
  }
3437
3437
  });
3438
- class Zl extends Te {
3438
+ class Xl extends Te {
3439
3439
  constructor() {
3440
3440
  super({
3441
3441
  key: "OFP",
3442
3442
  seq: 12,
3443
3443
  title: "PPT",
3444
- icon: bn,
3445
- view: vn,
3446
- properties: Gl,
3444
+ icon: hn,
3445
+ view: pn,
3446
+ properties: jl,
3447
3447
  rectangles: { width: { defaultValue: 80 } }
3448
3448
  });
3449
3449
  }
@@ -3477,11 +3477,11 @@ class Zl extends Te {
3477
3477
  };
3478
3478
  }
3479
3479
  }
3480
- const _n = new Zl(), wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3480
+ const gn = new Xl(), bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3481
3481
  __proto__: null,
3482
- PPTWidget: Zl,
3483
- default: _n
3484
- }, Symbol.toStringTag, { value: "Module" })), kn = /* @__PURE__ */ X({
3482
+ PPTWidget: Xl,
3483
+ default: gn
3484
+ }, Symbol.toStringTag, { value: "Module" })), _n = /* @__PURE__ */ X({
3485
3485
  name: "RectangleWidget",
3486
3486
  inheritAttrs: !1,
3487
3487
  __name: "index",
@@ -3493,30 +3493,30 @@ const _n = new Zl(), wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3493
3493
  preview: { type: Boolean }
3494
3494
  },
3495
3495
  setup(a) {
3496
- const l = Qe(a);
3496
+ const l = Je(a);
3497
3497
  return (o, n) => ($(), O("div", {
3498
3498
  class: "rectangle-widget",
3499
3499
  style: J(F(l))
3500
3500
  }, null, 4));
3501
3501
  }
3502
- }), Tn = /* @__PURE__ */ ae(kn, [["__scopeId", "data-v-41a4fad0"]]), Sn = { viewBox: "0 0 1024 1024" }, $n = /* @__PURE__ */ D("path", { d: "M102.4 102.4h768v768H102.4V102.4z m51.2 51.2v665.6h665.6V153.6H153.6z" }, null, -1), xn = [
3503
- $n
3504
- ], Cn = /* @__PURE__ */ X({
3502
+ }), wn = /* @__PURE__ */ ae(_n, [["__scopeId", "data-v-41a4fad0"]]), kn = { viewBox: "0 0 1024 1024" }, Tn = /* @__PURE__ */ D("path", { d: "M102.4 102.4h768v768H102.4V102.4z m51.2 51.2v665.6h665.6V153.6H153.6z" }, null, -1), Sn = [
3503
+ Tn
3504
+ ], $n = /* @__PURE__ */ X({
3505
3505
  name: "RectangleIcon",
3506
3506
  __name: "icon",
3507
3507
  setup(a) {
3508
- return (t, l) => ($(), O("svg", Sn, xn));
3508
+ return (t, l) => ($(), O("svg", kn, Sn));
3509
3509
  }
3510
- }), Mn = [...Oe];
3511
- class Jl extends Te {
3510
+ }), xn = [...Oe];
3511
+ class Gl extends Te {
3512
3512
  constructor() {
3513
- super({ key: "RT", seq: 9, title: "矩形", icon: Cn, view: Tn, properties: Mn });
3513
+ super({ key: "RT", seq: 9, title: "矩形", icon: $n, view: wn, properties: xn });
3514
3514
  }
3515
3515
  }
3516
- const En = new Jl(), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3516
+ const Cn = new Gl(), Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3517
3517
  __proto__: null,
3518
- RectangleWidget: Jl,
3519
- default: En
3518
+ RectangleWidget: Gl,
3519
+ default: Cn
3520
3520
  }, Symbol.toStringTag, { value: "Module" })), Yt = [
3521
3521
  {
3522
3522
  type: "input-textarea",
@@ -3565,14 +3565,14 @@ const En = new Jl(), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3565
3565
  ...Ut,
3566
3566
  {
3567
3567
  label: "自动上滚",
3568
- value: Ml["auto-up"]
3568
+ value: xl["auto-up"]
3569
3569
  }
3570
3570
  ]
3571
3571
  },
3572
3572
  {
3573
3573
  ...Ve[1]
3574
3574
  }
3575
- ], In = ["innerHTML"], An = /* @__PURE__ */ X({
3575
+ ], En = ["innerHTML"], Vn = /* @__PURE__ */ X({
3576
3576
  name: "RichTextWidget",
3577
3577
  inheritAttrs: !1,
3578
3578
  __name: "index",
@@ -3600,7 +3600,7 @@ const En = new Jl(), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3600
3600
  var h, w;
3601
3601
  const m = (h = Yt.find(({ bindKey: k }) => k === "source")) == null ? void 0 : h.options;
3602
3602
  return (w = (l.value[m] ?? []).find(({ value: k }) => k === t.source)) == null ? void 0 : w.label;
3603
- }, { elRef: n, width: c, height: p } = dt(), s = N(() => ({
3603
+ }, { elRef: n, width: c, height: p } = ct(), s = N(() => ({
3604
3604
  ...He({
3605
3605
  color: te[1].defaultValue,
3606
3606
  fontFamily: te[2].defaultValue,
@@ -3638,26 +3638,26 @@ const En = new Jl(), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3638
3638
  ref: n,
3639
3639
  style: J(F(v)),
3640
3640
  innerHTML: i.value
3641
- }, null, 12, In)
3641
+ }, null, 12, En)
3642
3642
  ], 4));
3643
3643
  }
3644
- }), Pn = /* @__PURE__ */ ae(An, [["__scopeId", "data-v-abb83169"]]), On = { viewBox: "0 0 1024 1024" }, Dn = /* @__PURE__ */ D("path", { d: "M934.4 851.2c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6H89.6a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h844.8zM562.56 96a25.6 25.6 0 0 1 25.088 20.48l0.512 5.12v35.968a25.6 25.6 0 0 1-20.48 25.088l-5.12 0.512H374.912v541.056a25.6 25.6 0 0 1-20.48 25.088l-5.12 0.512h-45.568a25.6 25.6 0 0 1-25.088-20.48l-0.512-5.12V183.168H89.6a25.6 25.6 0 0 1-25.088-20.416L64 157.632V121.6a25.6 25.6 0 0 1 20.48-25.088L89.6 96h472.96z m371.84 512c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z m0-256c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z m0-256c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z" }, null, -1), zn = [
3645
- Dn
3646
- ], Ln = /* @__PURE__ */ X({
3644
+ }), In = /* @__PURE__ */ ae(Vn, [["__scopeId", "data-v-abb83169"]]), An = { viewBox: "0 0 1024 1024" }, Pn = /* @__PURE__ */ D("path", { d: "M934.4 851.2c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6H89.6a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h844.8zM562.56 96a25.6 25.6 0 0 1 25.088 20.48l0.512 5.12v35.968a25.6 25.6 0 0 1-20.48 25.088l-5.12 0.512H374.912v541.056a25.6 25.6 0 0 1-20.48 25.088l-5.12 0.512h-45.568a25.6 25.6 0 0 1-25.088-20.48l-0.512-5.12V183.168H89.6a25.6 25.6 0 0 1-25.088-20.416L64 157.632V121.6a25.6 25.6 0 0 1 20.48-25.088L89.6 96h472.96z m371.84 512c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z m0-256c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z m0-256c14.08 0 25.6 11.52 25.6 25.6v25.6a25.6 25.6 0 0 1-25.6 25.6h-204.8a25.6 25.6 0 0 1-25.6-25.6v-25.6c0-14.08 11.52-25.6 25.6-25.6h204.8z" }, null, -1), On = [
3645
+ Pn
3646
+ ], Dn = /* @__PURE__ */ X({
3647
3647
  name: "RichTextIcon",
3648
3648
  __name: "icon",
3649
3649
  setup(a) {
3650
- return (t, l) => ($(), O("svg", On, zn));
3650
+ return (t, l) => ($(), O("svg", An, On));
3651
3651
  }
3652
3652
  });
3653
- class Ql extends Te {
3653
+ class Zl extends Te {
3654
3654
  constructor() {
3655
3655
  super({
3656
3656
  key: "SN",
3657
3657
  seq: 5,
3658
3658
  title: "富文本",
3659
- icon: Ln,
3660
- view: Pn,
3659
+ icon: Dn,
3660
+ view: In,
3661
3661
  properties: Yt
3662
3662
  });
3663
3663
  }
@@ -3691,11 +3691,11 @@ class Ql extends Te {
3691
3691
  };
3692
3692
  }
3693
3693
  }
3694
- const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3694
+ const zn = new Zl(), Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3695
3695
  __proto__: null,
3696
- RichTextWidget: Ql,
3697
- default: Wn
3698
- }, Symbol.toStringTag, { value: "Module" })), Rn = { class: "table-widget" }, Kn = /* @__PURE__ */ X({
3696
+ RichTextWidget: Zl,
3697
+ default: zn
3698
+ }, Symbol.toStringTag, { value: "Module" })), Wn = { class: "table-widget" }, Hn = /* @__PURE__ */ X({
3699
3699
  name: "TableWidget",
3700
3700
  inheritAttrs: !1,
3701
3701
  __name: "index",
@@ -3716,7 +3716,7 @@ const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3716
3716
  }),
3717
3717
  emits: ["update:item"],
3718
3718
  setup(a) {
3719
- const t = a, l = Qe(t), o = N(() => Number.parseInt(String(l.value.borderWidth), 10)), n = N(() => {
3719
+ const t = a, l = Je(t), o = N(() => Number.parseInt(String(l.value.borderWidth), 10)), n = N(() => {
3720
3720
  const { fillColor: r } = t;
3721
3721
  return {
3722
3722
  backgroundColor: r
@@ -3754,7 +3754,7 @@ const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3754
3754
  (d.lineWidth ?? 0) * h / (h - 1)
3755
3755
  );
3756
3756
  }
3757
- }, v = pt(
3757
+ }, v = dt(
3758
3758
  p.value ? `${p.value.type}-${p.value.id}` : "",
3759
3759
  ({ value: r, property: i }) => {
3760
3760
  if (p.value) {
@@ -3777,10 +3777,10 @@ const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3777
3777
  }
3778
3778
  }
3779
3779
  );
3780
- return Ge(() => {
3780
+ return Xe(() => {
3781
3781
  v();
3782
- }), (r, i) => ($(), O("div", Rn, [
3783
- I(Nl, {
3782
+ }), (r, i) => ($(), O("div", Wn, [
3783
+ I(Fl, {
3784
3784
  style: J(n.value),
3785
3785
  lineWidth: o.value,
3786
3786
  rowHeight: r.rowHeight,
@@ -3791,15 +3791,15 @@ const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3791
3791
  }, null, 8, ["style", "lineWidth", "rowHeight", "colWidth", "dataSource", "resizable"])
3792
3792
  ]));
3793
3793
  }
3794
- }), Fn = /* @__PURE__ */ ae(Kn, [["__scopeId", "data-v-b7b5d60e"]]), Un = { viewBox: "0 0 1024 1024" }, Nn = /* @__PURE__ */ D("path", { d: "M66.56 67.072h74.24v890.88H66.56zM883.2 67.072H957.44v890.88h-74.24zM364.544 286.72h74.24v671.232H364.544zM585.728 286.72h74.24v671.232h-74.24zM957.2864 883.61984v74.24h-890.88v-74.24zM957.17888 66.3552v74.24h-890.88v-74.24zM957.17888 286.5152v74.24h-890.88v-74.24zM957.2352 585.06752v74.24h-890.88v-74.24z" }, null, -1), Bn = [
3795
- Nn
3796
- ], Yn = /* @__PURE__ */ X({
3794
+ }), Rn = /* @__PURE__ */ ae(Hn, [["__scopeId", "data-v-b7b5d60e"]]), Kn = { viewBox: "0 0 1024 1024" }, Fn = /* @__PURE__ */ D("path", { d: "M66.56 67.072h74.24v890.88H66.56zM883.2 67.072H957.44v890.88h-74.24zM364.544 286.72h74.24v671.232H364.544zM585.728 286.72h74.24v671.232h-74.24zM957.2864 883.61984v74.24h-890.88v-74.24zM957.17888 66.3552v74.24h-890.88v-74.24zM957.17888 286.5152v74.24h-890.88v-74.24zM957.2352 585.06752v74.24h-890.88v-74.24z" }, null, -1), Un = [
3795
+ Fn
3796
+ ], Nn = /* @__PURE__ */ X({
3797
3797
  name: "TableIcon",
3798
3798
  __name: "icon",
3799
3799
  setup(a) {
3800
- return (t, l) => ($(), O("svg", Un, Bn));
3800
+ return (t, l) => ($(), O("svg", Kn, Un));
3801
3801
  }
3802
- }), qn = [
3802
+ }), Bn = [
3803
3803
  {
3804
3804
  type: "input-number",
3805
3805
  label: "行数",
@@ -3853,15 +3853,15 @@ const Wn = new Ql(), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
3853
3853
  { ...Oe[0] },
3854
3854
  { ...Oe[1] }
3855
3855
  ];
3856
- class eo extends Te {
3856
+ class Jl extends Te {
3857
3857
  constructor() {
3858
3858
  super({
3859
3859
  key: "ST",
3860
3860
  seq: 3,
3861
3861
  title: "表格",
3862
- icon: Yn,
3863
- view: Fn,
3864
- properties: qn,
3862
+ icon: Nn,
3863
+ view: Rn,
3864
+ properties: Bn,
3865
3865
  rectangles: {
3866
3866
  // 该默认值设置为 properties 下 colWidth 数组 之和
3867
3867
  width: { defaultValue: 60 },
@@ -3871,31 +3871,13 @@ class eo extends Te {
3871
3871
  });
3872
3872
  }
3873
3873
  }
3874
- const jn = new eo(), Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3874
+ const Yn = new Jl(), qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3875
3875
  __proto__: null,
3876
- TableWidget: eo,
3877
- default: jn
3876
+ TableWidget: Jl,
3877
+ default: Yn
3878
3878
  }, Symbol.toStringTag, { value: "Module" }));
3879
- var Xe = /* @__PURE__ */ ((a) => (a.combine = "combine", a.paging = "paging", a.cover = "cover", a.append = "append", a))(Xe || {});
3880
- const yl = [
3881
- {
3882
- label: "翻页",
3883
- value: Xe.paging
3884
- },
3885
- {
3886
- label: "合并",
3887
- value: Xe.combine
3888
- }
3889
- ], ml = [
3890
- {
3891
- label: "覆盖",
3892
- value: Xe.cover
3893
- },
3894
- {
3895
- label: "追加",
3896
- value: Xe.append
3897
- }
3898
- ], to = [
3879
+ var St = /* @__PURE__ */ ((a) => (a.combine = "hb", a.paging = "fy", a.cover = "fg", a.append = "zj", a))(St || {});
3880
+ const Ql = [
3899
3881
  {
3900
3882
  type: "input-textarea",
3901
3883
  label: "文本",
@@ -3918,8 +3900,8 @@ const yl = [
3918
3900
  key: "CONTENTMODE",
3919
3901
  bindKey: "contentMode",
3920
3902
  tip: "数据源覆盖默认文本,或追加到默认文本后显示",
3921
- options: ml,
3922
- defaultValue: ml[0].value,
3903
+ options: "ContentMode",
3904
+ defaultValue: St.cover,
3923
3905
  display: ({ props: a }) => !!a.source
3924
3906
  },
3925
3907
  {
@@ -3928,8 +3910,8 @@ const yl = [
3928
3910
  key: "SHOWMODE",
3929
3911
  bindKey: "showMode",
3930
3912
  tip: "多条文本合并为一条,或分为多条翻页显示",
3931
- options: yl,
3932
- defaultValue: yl[0].value,
3913
+ options: "ShowMode",
3914
+ defaultValue: St.paging,
3933
3915
  display: ({ props: a }) => !!a.source
3934
3916
  },
3935
3917
  {
@@ -3940,12 +3922,12 @@ const yl = [
3940
3922
  valueType: "number",
3941
3923
  min: 1,
3942
3924
  defaultValue: 6,
3943
- display: ({ props: a }) => !!a.source && a.showMode === Xe.paging
3925
+ display: ({ props: a }) => !!a.source && a.showMode === St.paging
3944
3926
  },
3945
3927
  ...te,
3946
3928
  ...Se,
3947
3929
  ...Ve
3948
- ], Gn = /* @__PURE__ */ X({
3930
+ ], jn = /* @__PURE__ */ X({
3949
3931
  name: "TextWidget",
3950
3932
  inheritAttrs: !1,
3951
3933
  __name: "index",
@@ -3978,11 +3960,11 @@ const yl = [
3978
3960
  setup(a) {
3979
3961
  const t = a, l = Ke(), o = (u, g) => {
3980
3962
  var w;
3981
- const m = (w = to.find(({ bindKey: k }) => k === "source")) == null ? void 0 : w.options, h = (l.value[m] ?? []).find(({ value: k }) => k === u);
3963
+ const m = (w = Ql.find(({ bindKey: k }) => k === "source")) == null ? void 0 : w.options, h = (l.value[m] ?? []).find(({ value: k }) => k === u);
3982
3964
  return String((g === "label" ? h == null ? void 0 : h.label : h == null ? void 0 : h.innerType) || "");
3983
- }, { elRef: n, width: c, height: p } = dt(), s = N(() => !t.preview && !t.selected && !t.text ? {
3965
+ }, { elRef: n, width: c, height: p } = ct(), s = N(() => !t.preview && !t.selected && !t.text ? {
3984
3966
  backdropFilter: "blur(2px)"
3985
- } : {}), v = xl(t), r = $l(t, c, p), i = Jt(t, c, p), d = Fe(t), f = N(() => d.value ? d.value.text ?? "" : !t.preview && t.source ? o(t.source, "label") : t.text), e = ue(a, "item");
3967
+ } : {}), v = Sl(t), r = Tl(t, c, p), i = Jt(t, c, p), d = Fe(t), f = N(() => d.value ? d.value.text ?? "" : !t.preview && t.source ? o(t.source, "label") : t.text), e = ue(a, "item");
3986
3968
  return _e(
3987
3969
  () => t.source,
3988
3970
  (u) => {
@@ -4004,24 +3986,24 @@ const yl = [
4004
3986
  }, de(f.value), 5)
4005
3987
  ], 4));
4006
3988
  }
4007
- }), Zn = /* @__PURE__ */ ae(Gn, [["__scopeId", "data-v-2eed785a"]]), Jn = { viewBox: "0 0 1024 1024" }, Qn = /* @__PURE__ */ D("path", { d: "M554.666667 256v640h-85.333334V256H213.333333V170.666667h597.333334v85.333333h-256z" }, null, -1), es = [
4008
- Qn
4009
- ], ts = /* @__PURE__ */ X({
3989
+ }), Xn = /* @__PURE__ */ ae(jn, [["__scopeId", "data-v-2eed785a"]]), Gn = { viewBox: "0 0 1024 1024" }, Zn = /* @__PURE__ */ D("path", { d: "M554.666667 256v640h-85.333334V256H213.333333V170.666667h597.333334v85.333333h-256z" }, null, -1), Jn = [
3990
+ Zn
3991
+ ], Qn = /* @__PURE__ */ X({
4010
3992
  name: "TextIcon",
4011
3993
  __name: "icon",
4012
3994
  setup(a) {
4013
- return (t, l) => ($(), O("svg", Jn, es));
3995
+ return (t, l) => ($(), O("svg", Gn, Jn));
4014
3996
  }
4015
3997
  });
4016
- class lo extends Te {
3998
+ class eo extends Te {
4017
3999
  constructor() {
4018
4000
  super({
4019
4001
  key: "SW",
4020
4002
  seq: 4,
4021
4003
  title: "文本",
4022
- icon: ts,
4023
- view: Zn,
4024
- properties: to
4004
+ icon: Qn,
4005
+ view: Xn,
4006
+ properties: Ql
4025
4007
  });
4026
4008
  }
4027
4009
  extraToData(t, l) {
@@ -4073,11 +4055,11 @@ class lo extends Te {
4073
4055
  };
4074
4056
  }
4075
4057
  }
4076
- const ls = new lo(), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4058
+ const es = new eo(), ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4077
4059
  __proto__: null,
4078
- TextWidget: lo,
4079
- default: ls
4080
- }, Symbol.toStringTag, { value: "Module" })), oo = [
4060
+ TextWidget: eo,
4061
+ default: es
4062
+ }, Symbol.toStringTag, { value: "Module" })), to = [
4081
4063
  {
4082
4064
  type: "single-select",
4083
4065
  label: "数据源",
@@ -4092,7 +4074,7 @@ const ls = new lo(), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4092
4074
  bindKey: "url",
4093
4075
  files: "Video"
4094
4076
  }
4095
- ], as = { class: "video-widget" }, ns = /* @__PURE__ */ X({
4077
+ ], ls = { class: "video-widget" }, os = /* @__PURE__ */ X({
4096
4078
  name: "VideoWidget",
4097
4079
  inheritAttrs: !1,
4098
4080
  __name: "index",
@@ -4111,13 +4093,13 @@ const ls = new lo(), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4111
4093
  fontSize: te[3].defaultValue,
4112
4094
  fontStyle: te[4].defaultValue
4113
4095
  }), o = Fe(t), n = N(() => o.value ? o.value.name ?? "" : t.url);
4114
- return (c, p) => ($(), O("div", as, [
4096
+ return (c, p) => ($(), O("div", ls, [
4115
4097
  c.preview ? ce("", !0) : ($(), j(It, {
4116
4098
  key: 0,
4117
- properties: F(oo),
4099
+ properties: F(to),
4118
4100
  source: c.source
4119
4101
  }, null, 8, ["properties", "source"])),
4120
- I(vt, {
4102
+ I(ft, {
4121
4103
  style: J(F(l)),
4122
4104
  preview: c.preview,
4123
4105
  type: "Video",
@@ -4125,16 +4107,16 @@ const ls = new lo(), os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4125
4107
  }, null, 8, ["style", "preview", "file"])
4126
4108
  ]));
4127
4109
  }
4128
- }), ss = /* @__PURE__ */ ae(ns, [["__scopeId", "data-v-6cc7fa30"]]);
4129
- class ao extends Te {
4110
+ }), as = /* @__PURE__ */ ae(os, [["__scopeId", "data-v-6cc7fa30"]]);
4111
+ class lo extends Te {
4130
4112
  constructor() {
4131
4113
  super({
4132
4114
  key: "VD",
4133
4115
  seq: 8,
4134
4116
  title: "视频",
4135
4117
  icon: "VideoPlay",
4136
- view: ss,
4137
- properties: oo
4118
+ view: as,
4119
+ properties: to
4138
4120
  });
4139
4121
  }
4140
4122
  extraToXML(t, l, o, n, c) {
@@ -4169,11 +4151,11 @@ class ao extends Te {
4169
4151
  };
4170
4152
  }
4171
4153
  }
4172
- const rs = new ao(), is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4154
+ const ns = new lo(), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4173
4155
  __proto__: null,
4174
- VideoWidget: ao,
4175
- default: rs
4176
- }, Symbol.toStringTag, { value: "Module" })), no = [
4156
+ VideoWidget: lo,
4157
+ default: ns
4158
+ }, Symbol.toStringTag, { value: "Module" })), oo = [
4177
4159
  {
4178
4160
  type: "single-select",
4179
4161
  label: "数据源",
@@ -4188,7 +4170,7 @@ const rs = new ao(), is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4188
4170
  bindKey: "url",
4189
4171
  files: "WORD"
4190
4172
  }
4191
- ], us = { class: "word-widget" }, cs = /* @__PURE__ */ X({
4173
+ ], rs = { class: "word-widget" }, is = /* @__PURE__ */ X({
4192
4174
  name: "WORDWidget",
4193
4175
  inheritAttrs: !1,
4194
4176
  __name: "index",
@@ -4207,13 +4189,13 @@ const rs = new ao(), is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4207
4189
  fontSize: te[3].defaultValue,
4208
4190
  fontStyle: te[4].defaultValue
4209
4191
  }), o = Fe(t), n = N(() => o.value ? o.value.name ?? "" : t.url);
4210
- return (c, p) => ($(), O("div", us, [
4192
+ return (c, p) => ($(), O("div", rs, [
4211
4193
  c.preview ? ce("", !0) : ($(), j(It, {
4212
4194
  key: 0,
4213
- properties: F(no),
4195
+ properties: F(oo),
4214
4196
  source: c.source
4215
4197
  }, null, 8, ["properties", "source"])),
4216
- I(vt, {
4198
+ I(ft, {
4217
4199
  style: J(F(l)),
4218
4200
  preview: c.preview,
4219
4201
  type: "WORD",
@@ -4221,24 +4203,24 @@ const rs = new ao(), is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
4221
4203
  }, null, 8, ["style", "preview", "file"])
4222
4204
  ]));
4223
4205
  }
4224
- }), ds = /* @__PURE__ */ ae(cs, [["__scopeId", "data-v-f433cbf4"]]), ps = { viewBox: "0 0 1024 1024" }, fs = /* @__PURE__ */ D("path", { d: "M959 195.2c2.1-23.2-16.1-41.2-39.3-38.9-108.8-1.7-217.6 0-326.5-0.6V74.3h-60.9c-156 27.8-312.2 54.4-468.2 81.6 0 237.4-0.1 474.9 0 712.3 155.2 27.2 310.6 53.1 465.5 81.4h63.6v-81.4c101.9 0 203.7-0.2 305.6 0.3 17.3-0.8 36.5 0.5 51.4-10.1 11.9-18.2 8.9-41 9.9-61.6-1.5-200.4 0.6-401-1.1-601.6zM403.6 650.3c-17 8.9-42.4-0.4-62.6 1-13.5-67.4-29.3-134.4-41.4-202-11.9 65.8-27.4 130.9-41 196.3-19.5-1-39.2-2.2-58.8-3.6-16.9-89.6-36.7-178.5-52.5-268.3 17.4-0.8 34.9-1.5 52.3-2.1 10.5 64.8 22.4 129.4 31.6 194.3 14.4-66.6 29-133.1 43.3-199.7 19.3-1.1 38.7-1.9 58-3 13.5 68.7 27.4 137.3 42 205.7 11.5-70.6 24.2-141.1 36.5-211.6 20.4-0.7 40.7-1.8 61-3.1-23.1 98.7-43.2 198.1-68.4 296.1z m525.5 187.4H593.2v-81.4h264.7v-40.7H593.2v-50.9h264.7V624H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-71.3h335.9v651.4z" }, null, -1), vs = [
4225
- fs
4226
- ], ys = /* @__PURE__ */ X({
4206
+ }), us = /* @__PURE__ */ ae(is, [["__scopeId", "data-v-f433cbf4"]]), cs = { viewBox: "0 0 1024 1024" }, ds = /* @__PURE__ */ D("path", { d: "M959 195.2c2.1-23.2-16.1-41.2-39.3-38.9-108.8-1.7-217.6 0-326.5-0.6V74.3h-60.9c-156 27.8-312.2 54.4-468.2 81.6 0 237.4-0.1 474.9 0 712.3 155.2 27.2 310.6 53.1 465.5 81.4h63.6v-81.4c101.9 0 203.7-0.2 305.6 0.3 17.3-0.8 36.5 0.5 51.4-10.1 11.9-18.2 8.9-41 9.9-61.6-1.5-200.4 0.6-401-1.1-601.6zM403.6 650.3c-17 8.9-42.4-0.4-62.6 1-13.5-67.4-29.3-134.4-41.4-202-11.9 65.8-27.4 130.9-41 196.3-19.5-1-39.2-2.2-58.8-3.6-16.9-89.6-36.7-178.5-52.5-268.3 17.4-0.8 34.9-1.5 52.3-2.1 10.5 64.8 22.4 129.4 31.6 194.3 14.4-66.6 29-133.1 43.3-199.7 19.3-1.1 38.7-1.9 58-3 13.5 68.7 27.4 137.3 42 205.7 11.5-70.6 24.2-141.1 36.5-211.6 20.4-0.7 40.7-1.8 61-3.1-23.1 98.7-43.2 198.1-68.4 296.1z m525.5 187.4H593.2v-81.4h264.7v-40.7H593.2v-50.9h264.7V624H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-50.9h264.7v-40.7H593.2v-71.3h335.9v651.4z" }, null, -1), ps = [
4207
+ ds
4208
+ ], fs = /* @__PURE__ */ X({
4227
4209
  name: "WORDIcon",
4228
4210
  __name: "icon",
4229
4211
  setup(a) {
4230
- return (t, l) => ($(), O("svg", ps, vs));
4212
+ return (t, l) => ($(), O("svg", cs, ps));
4231
4213
  }
4232
4214
  });
4233
- class so extends Te {
4215
+ class ao extends Te {
4234
4216
  constructor() {
4235
4217
  super({
4236
4218
  key: "OFW",
4237
4219
  seq: 13,
4238
4220
  title: "WORD",
4239
- icon: ys,
4240
- view: ds,
4241
- properties: no,
4221
+ icon: fs,
4222
+ view: us,
4223
+ properties: oo,
4242
4224
  rectangles: { width: { defaultValue: 90 } }
4243
4225
  });
4244
4226
  }
@@ -4272,34 +4254,34 @@ class so extends Te {
4272
4254
  };
4273
4255
  }
4274
4256
  }
4275
- const ms = new so(), hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4257
+ const vs = new ao(), ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4276
4258
  __proto__: null,
4277
- WORDWidget: so,
4278
- default: ms
4259
+ WORDWidget: ao,
4260
+ default: vs
4279
4261
  }, Symbol.toStringTag, { value: "Module" })), Ae = (() => {
4280
4262
  const a = /* @__PURE__ */ Object.assign({
4281
- "/src/widgets/arrowLine/index.ts": Jo,
4282
- "/src/widgets/circle/index.ts": ra,
4283
- "/src/widgets/clock/index.js": ka,
4284
- "/src/widgets/dataTable/index.ts": Ha,
4285
- "/src/widgets/image/index.ts": en,
4286
- "/src/widgets/line/index.ts": dn,
4287
- "/src/widgets/ppt/index.ts": wn,
4288
- "/src/widgets/rectangle/index.ts": Vn,
4289
- "/src/widgets/richText/index.ts": Hn,
4290
- "/src/widgets/table/index.ts": Xn,
4291
- "/src/widgets/text/index.ts": os,
4292
- "/src/widgets/video/index.ts": is,
4293
- "/src/widgets/word/index.ts": hs
4263
+ "/src/widgets/arrowLine/index.ts": Go,
4264
+ "/src/widgets/circle/index.ts": na,
4265
+ "/src/widgets/clock/index.js": _a,
4266
+ "/src/widgets/dataTable/index.ts": La,
4267
+ "/src/widgets/image/index.ts": Ja,
4268
+ "/src/widgets/line/index.ts": un,
4269
+ "/src/widgets/ppt/index.ts": bn,
4270
+ "/src/widgets/rectangle/index.ts": Mn,
4271
+ "/src/widgets/richText/index.ts": Ln,
4272
+ "/src/widgets/table/index.ts": qn,
4273
+ "/src/widgets/text/index.ts": ts,
4274
+ "/src/widgets/video/index.ts": ss,
4275
+ "/src/widgets/word/index.ts": ys
4294
4276
  }), t = /* @__PURE__ */ new Map();
4295
4277
  return Object.keys(a).forEach((l) => {
4296
4278
  var n;
4297
4279
  const o = (n = l.match(/widgets\/(.+)\/index\.(t|j)s/)) == null ? void 0 : n[1];
4298
4280
  o && t.set(o, a[l].default);
4299
4281
  }), t;
4300
- })(), At = new DOMParser(), ro = {};
4282
+ })(), At = new DOMParser(), no = {};
4301
4283
  for (const [a, t] of Ae.entries())
4302
- ro[t.key.toUpperCase()] = {
4284
+ no[t.key.toUpperCase()] = {
4303
4285
  type: a,
4304
4286
  widget: t
4305
4287
  };
@@ -4307,7 +4289,7 @@ const qt = (a, t, l) => {
4307
4289
  const o = [], n = Array.from((a == null ? void 0 : a.children) ?? []), c = Array.from((t == null ? void 0 : t.children) ?? []);
4308
4290
  return n.forEach((p) => {
4309
4291
  var i, d;
4310
- const { type: s, widget: v } = ro[p.tagName.toUpperCase()] ?? {}, r = ((i = p.querySelector(q("ID"))) == null ? void 0 : i.textContent) ?? "";
4292
+ const { type: s, widget: v } = no[p.tagName.toUpperCase()] ?? {}, r = ((i = p.querySelector(q("ID"))) == null ? void 0 : i.textContent) ?? "";
4311
4293
  if (v && r !== "-1") {
4312
4294
  const f = l ? r : ve(), e = `${v.title}-${f.substring(0, 8)}`;
4313
4295
  let u, g;
@@ -4325,7 +4307,7 @@ const qt = (a, t, l) => {
4325
4307
  }
4326
4308
  }
4327
4309
  }), o;
4328
- }, gs = (a) => {
4310
+ }, ms = (a) => {
4329
4311
  var l, o, n, c, p, s;
4330
4312
  const t = At.parseFromString(a, "text/xml").documentElement;
4331
4313
  if (t.tagName === "Screens") {
@@ -4370,7 +4352,7 @@ const qt = (a, t, l) => {
4370
4352
  };
4371
4353
  }
4372
4354
  return null;
4373
- }, io = (a) => {
4355
+ }, so = (a) => {
4374
4356
  var o, n, c, p, s;
4375
4357
  const t = At.parseFromString(a, "text/xml").documentElement, l = {
4376
4358
  frameName: "",
@@ -4394,7 +4376,7 @@ const qt = (a, t, l) => {
4394
4376
  o && l.push(...qt(o, n));
4395
4377
  }
4396
4378
  return l;
4397
- }, nt = (a, t) => {
4379
+ }, at = (a, t) => {
4398
4380
  const { frameName: l, screenTypeID: o, duration: n, width: c, height: p } = t, s = At.parseFromString("<Frame />", "text/xml"), v = s.documentElement;
4399
4381
  C("Name", l, v, s), C("Width", c, v, s), C("Height", p, v, s), C("ScreeTypeID", o, v, s);
4400
4382
  const r = s.createElement("FR");
@@ -4414,7 +4396,7 @@ const qt = (a, t, l) => {
4414
4396
  k != null && k[0] && i.appendChild(k[0]), k != null && k[1] && r.appendChild(k[1]);
4415
4397
  }
4416
4398
  }), new XMLSerializer().serializeToString(s);
4417
- }, uo = (a, t) => a.map((l) => {
4399
+ }, ro = (a, t) => a.map((l) => {
4418
4400
  const o = { ...l.rect }, n = Math.max(0, o.x), c = Math.max(0, o.y), p = Math.max(0, o.width), s = Math.max(0, o.height), { x: v, y: r, width: i, height: d } = t, f = v + i - (n + p);
4419
4401
  o.x = f < 0 ? Math.max(0, n + f) : n, o.width = f < 0 ? Math.min(p, i) : p;
4420
4402
  const e = r + d - (c + s);
@@ -4425,10 +4407,10 @@ const qt = (a, t, l) => {
4425
4407
  rect: o,
4426
4408
  props: u
4427
4409
  };
4428
- }), bs = (a) => (Ze("data-v-85483ddd"), a = a(), Je(), a), _s = {
4410
+ }), hs = (a) => (Ge("data-v-85483ddd"), a = a(), Ze(), a), gs = {
4429
4411
  class: "frame-widget",
4430
4412
  ref: "sortEl"
4431
- }, ws = { class: "widget-group" }, ks = /* @__PURE__ */ bs(() => /* @__PURE__ */ D("h4", { class: "widget-title" }, "基础组件", -1)), Ts = { class: "widget-list" }, Ss = ["onDragstart", "onDblclick"], $s = { class: "widget-name" }, xs = /* @__PURE__ */ X({
4413
+ }, bs = { class: "widget-group" }, _s = /* @__PURE__ */ hs(() => /* @__PURE__ */ D("h4", { class: "widget-title" }, "基础组件", -1)), ws = { class: "widget-list" }, ks = ["onDragstart", "onDblclick"], Ts = { class: "widget-name" }, Ss = /* @__PURE__ */ X({
4432
4414
  name: "frame-widget",
4433
4415
  inheritAttrs: !1,
4434
4416
  __name: "index",
@@ -4437,18 +4419,18 @@ const qt = (a, t, l) => {
4437
4419
  },
4438
4420
  emits: ["update:data"],
4439
4421
  setup(a) {
4440
- const t = ue(a, "data"), l = Ce([]), { dblclick: o, dragstart: n } = Hl(t);
4441
- return it(() => {
4422
+ const t = ue(a, "data"), l = Ce([]), { dblclick: o, dragstart: n } = Ll(t);
4423
+ return rt(() => {
4442
4424
  const c = [];
4443
4425
  for (const [p, s] of Ae.entries())
4444
4426
  c.push([p, s]);
4445
4427
  l.value = c.sort((p, s) => p[1].seq - s[1].seq);
4446
4428
  }), (c, p) => {
4447
4429
  const s = U("el-icon");
4448
- return $(), O("div", _s, [
4449
- D("div", ws, [
4450
- ks,
4451
- D("div", Ts, [
4430
+ return $(), O("div", gs, [
4431
+ D("div", bs, [
4432
+ _s,
4433
+ D("div", ws, [
4452
4434
  ($(!0), O(le, null, fe(l.value, ([v, r]) => ($(), O("div", {
4453
4435
  class: "widget-item",
4454
4436
  key: v,
@@ -4462,22 +4444,22 @@ const qt = (a, t, l) => {
4462
4444
  ]),
4463
4445
  _: 2
4464
4446
  }, 1024),
4465
- D("span", $s, de(r.title), 1)
4466
- ], 40, Ss))), 128))
4447
+ D("span", Ts, de(r.title), 1)
4448
+ ], 40, ks))), 128))
4467
4449
  ])
4468
4450
  ])
4469
4451
  ], 512);
4470
4452
  };
4471
4453
  }
4472
- }), Cs = /* @__PURE__ */ ae(xs, [["__scopeId", "data-v-85483ddd"]]), Ms = { viewBox: "0 0 1024 1024" }, Es = /* @__PURE__ */ D("path", { d: "M167.36 192h376.192a38.4 38.4 0 1 1 0 76.8H167.36a38.4 38.4 0 1 1 0-76.8z m0 281.6h376.192a38.4 38.4 0 1 1 0 76.8H167.36a38.4 38.4 0 1 1 0-76.8z m0 281.6h376.192a38.4 38.4 0 0 1 0 76.8H167.36a38.4 38.4 0 0 1 0-76.8z m644.032-618.368l106.24 106.304a32 32 0 1 1-45.248 45.248l-51.712-51.648v547.456l51.712-51.648a32 32 0 0 1 40.832-3.648l4.48 3.648a32 32 0 0 1 0 45.312l-106.304 106.24a32 32 0 0 1-45.312 0l-106.24-106.24a32 32 0 1 1 45.248-45.312l51.584 51.648V236.736l-51.584 51.648a32 32 0 0 1-40.832 3.712l-4.48-3.712a32 32 0 0 1 0-45.248l106.304-106.24a32 32 0 0 1 45.312 0z" }, null, -1), Vs = [
4473
- Es
4474
- ], co = /* @__PURE__ */ X({
4454
+ }), $s = /* @__PURE__ */ ae(Ss, [["__scopeId", "data-v-85483ddd"]]), xs = { viewBox: "0 0 1024 1024" }, Cs = /* @__PURE__ */ D("path", { d: "M167.36 192h376.192a38.4 38.4 0 1 1 0 76.8H167.36a38.4 38.4 0 1 1 0-76.8z m0 281.6h376.192a38.4 38.4 0 1 1 0 76.8H167.36a38.4 38.4 0 1 1 0-76.8z m0 281.6h376.192a38.4 38.4 0 0 1 0 76.8H167.36a38.4 38.4 0 0 1 0-76.8z m644.032-618.368l106.24 106.304a32 32 0 1 1-45.248 45.248l-51.712-51.648v547.456l51.712-51.648a32 32 0 0 1 40.832-3.648l4.48 3.648a32 32 0 0 1 0 45.312l-106.304 106.24a32 32 0 0 1-45.312 0l-106.24-106.24a32 32 0 1 1 45.248-45.312l51.584 51.648V236.736l-51.584 51.648a32 32 0 0 1-40.832 3.712l-4.48-3.712a32 32 0 0 1 0-45.248l106.304-106.24a32 32 0 0 1 45.312 0z" }, null, -1), Ms = [
4455
+ Cs
4456
+ ], io = /* @__PURE__ */ X({
4475
4457
  name: "DragSort",
4476
4458
  __name: "icon",
4477
4459
  setup(a) {
4478
- return (t, l) => ($(), O("svg", Ms, Vs));
4460
+ return (t, l) => ($(), O("svg", xs, Ms));
4479
4461
  }
4480
- }), Is = { class: "frame-structure" }, As = { class: "item-drag" }, Ps = { class: "item-content" }, Os = ["onClick", "title"], Ds = /* @__PURE__ */ X({
4462
+ }), Es = { class: "frame-structure" }, Vs = { class: "item-drag" }, Is = { class: "item-content" }, As = ["onClick", "title"], Ps = /* @__PURE__ */ X({
4481
4463
  name: "frame-structure",
4482
4464
  inheritAttrs: !1,
4483
4465
  __name: "index",
@@ -4490,7 +4472,7 @@ const qt = (a, t, l) => {
4490
4472
  _e(
4491
4473
  () => o.value,
4492
4474
  (i) => {
4493
- i && new wl(i, {
4475
+ i && new bl(i, {
4494
4476
  animation: 200,
4495
4477
  handle: ".item-drag",
4496
4478
  onUpdate: (d) => {
@@ -4512,7 +4494,7 @@ const qt = (a, t, l) => {
4512
4494
  const e = t.value.find((u) => u.id === d);
4513
4495
  e && (e.selected = !e.selected);
4514
4496
  }
4515
- }, { handleCopy: c, handleLock: p, handleUnlock: s, handleDelete: v } = ft(t), r = (i, d) => {
4497
+ }, { handleCopy: c, handleLock: p, handleUnlock: s, handleDelete: v } = pt(t), r = (i, d) => {
4516
4498
  const f = t.value.findIndex((e) => e.id === d);
4517
4499
  if (f !== -1) {
4518
4500
  const e = t.value[f];
@@ -4521,7 +4503,7 @@ const qt = (a, t, l) => {
4521
4503
  };
4522
4504
  return (i, d) => {
4523
4505
  const f = U("el-icon"), e = U("MoreFilled"), u = U("el-dropdown-item"), g = U("el-dropdown-menu"), m = U("el-dropdown");
4524
- return $(), O("div", Is, [
4506
+ return $(), O("div", Es, [
4525
4507
  D("div", {
4526
4508
  class: "structure-list",
4527
4509
  ref_key: "sortEl",
@@ -4531,20 +4513,20 @@ const qt = (a, t, l) => {
4531
4513
  key: h.id,
4532
4514
  class: xe(["list-item", h.selected ? "selected" : ""])
4533
4515
  }, [
4534
- D("span", As, [
4516
+ D("span", Vs, [
4535
4517
  I(f, null, {
4536
4518
  default: A(() => [
4537
- I(co)
4519
+ I(io)
4538
4520
  ]),
4539
4521
  _: 1
4540
4522
  })
4541
4523
  ]),
4542
- D("div", Ps, [
4524
+ D("div", Is, [
4543
4525
  D("span", {
4544
4526
  class: "item-name",
4545
4527
  onClick: (w) => n(w, h.id),
4546
4528
  title: h.name
4547
- }, de(h.name), 9, Os),
4529
+ }, de(h.name), 9, As),
4548
4530
  I(m, {
4549
4531
  onCommand: (w) => r(w, h.id),
4550
4532
  trigger: "click"
@@ -4601,9 +4583,9 @@ const qt = (a, t, l) => {
4601
4583
  ]);
4602
4584
  };
4603
4585
  }
4604
- }), zs = /* @__PURE__ */ ae(Ds, [["__scopeId", "data-v-b4aee5d3"]]), Ls = (a) => (Ze("data-v-d94b2344"), a = a(), Je(), a), Ws = { class: "frame-toolbar" }, Hs = { class: "tool-left" }, Rs = { class: "tool-right" }, Ks = /* @__PURE__ */ Ls(() => /* @__PURE__ */ D("svg", { viewBox: "0 0 1027 1024" }, [
4586
+ }), Os = /* @__PURE__ */ ae(Ps, [["__scopeId", "data-v-b4aee5d3"]]), Ds = (a) => (Ge("data-v-d94b2344"), a = a(), Ze(), a), zs = { class: "frame-toolbar" }, Ls = { class: "tool-left" }, Ws = { class: "tool-right" }, Hs = /* @__PURE__ */ Ds(() => /* @__PURE__ */ D("svg", { viewBox: "0 0 1027 1024" }, [
4605
4587
  /* @__PURE__ */ D("path", { d: "M1024 512l-241.365333 241.365333-60.330667-60.330666L903.338667 512l-181.034667-181.034667 60.330667-60.330666L1024 512zM120.661333 512l181.034667 181.034667-60.330667 60.330666L0 512l241.365333-241.365333L301.653333 330.965333 120.661333 512z m296.96 384H326.826667l279.552-768h90.794666L417.621333 896z" })
4606
- ], -1)), Fs = /* @__PURE__ */ X({
4588
+ ], -1)), Rs = /* @__PURE__ */ X({
4607
4589
  name: "frame-toolbar",
4608
4590
  inheritAttrs: !1,
4609
4591
  __name: "index",
@@ -4629,15 +4611,15 @@ const qt = (a, t, l) => {
4629
4611
  handleUnlock: s,
4630
4612
  handleClear: v,
4631
4613
  handleAlign: r
4632
- } = ft(t), [i, d] = Vt(), f = (e) => {
4614
+ } = pt(t), [i, d] = Vt(), f = (e) => {
4633
4615
  d(Math.max(e ? i.value + e : 1, 0.1));
4634
4616
  };
4635
4617
  return (e, u) => {
4636
4618
  const g = U("el-button"), m = U("ArrowDown"), h = U("el-icon"), w = U("el-dropdown-item"), k = U("el-dropdown-menu"), b = U("el-dropdown"), y = U("el-text"), S = U("el-scrollbar");
4637
4619
  return $(), j(S, { class: "frame-toolbar-scroll" }, {
4638
4620
  default: A(() => [
4639
- D("div", Ws, [
4640
- D("div", Hs, [
4621
+ D("div", zs, [
4622
+ D("div", Ls, [
4641
4623
  I(g, {
4642
4624
  type: "primary",
4643
4625
  size: "small",
@@ -4827,7 +4809,7 @@ const qt = (a, t, l) => {
4827
4809
  _: 1
4828
4810
  }, 8, ["onCommand"])) : ce("", !0)
4829
4811
  ]),
4830
- D("div", Rs, [
4812
+ D("div", Ws, [
4831
4813
  I(y, null, {
4832
4814
  default: A(() => [
4833
4815
  Q("显示比例:")
@@ -4869,7 +4851,7 @@ const qt = (a, t, l) => {
4869
4851
  icon: A(() => [
4870
4852
  I(h, null, {
4871
4853
  default: A(() => [
4872
- Ks
4854
+ Hs
4873
4855
  ]),
4874
4856
  _: 1
4875
4857
  })
@@ -4883,12 +4865,12 @@ const qt = (a, t, l) => {
4883
4865
  });
4884
4866
  };
4885
4867
  }
4886
- }), Us = /* @__PURE__ */ ae(Fs, [["__scopeId", "data-v-d94b2344"]]), at = (a) => a.value.filter(({ selected: t }) => !!t), kt = (a) => a.map(({ rect: t }) => ({ ...t })), hl = (a) => a.map(({ props: t }) => [
4868
+ }), Ks = /* @__PURE__ */ ae(Rs, [["__scopeId", "data-v-d94b2344"]]), ot = (a) => a.value.filter(({ selected: t }) => !!t), wt = (a) => a.map(({ rect: t }) => ({ ...t })), yl = (a) => a.map(({ props: t }) => [
4887
4869
  +(t.x0 ?? 0),
4888
4870
  +(t.y0 ?? 0),
4889
4871
  +(t.x1 ?? 0),
4890
4872
  +(t.y1 ?? 0)
4891
- ]), Ns = (a) => a.map(({ props: t }) => {
4873
+ ]), Fs = (a) => a.map(({ props: t }) => {
4892
4874
  var l, o;
4893
4875
  return {
4894
4876
  fontSize: +(t.fontSize ?? 0),
@@ -4905,31 +4887,31 @@ const qt = (a, t, l) => {
4905
4887
  };
4906
4888
  })
4907
4889
  };
4908
- }), Tt = (a, t, l, o, n, c) => {
4890
+ }), kt = (a, t, l, o, n, c) => {
4909
4891
  const p = c + a * t, s = p === 0 ? 0 : p / Math.abs(p);
4910
4892
  let v = t > 0 ? l + o - n : t < 0 ? n + c - l : c, r = 0;
4911
4893
  (s < 0 || s === 0 && t < 0) && (v = t > 0 ? n - l : t < 0 ? l + o - n - c : c, r = -c * t);
4912
4894
  const i = n + (s * t >= 0 ? 0 : c), d = ye(Math.abs(p), 0, v);
4913
4895
  let f = d / c, e = 0;
4914
4896
  return c === 0 && (e = d, r = s * t >= 0 ? 0 : -e, f = 1), { xyk: f, cxy: i, oxy: r, owh: e, xyRat: s };
4915
- }, gl = (a, t, l, o, n, c, p, s, v, r, i, d, f) => {
4897
+ }, ml = (a, t, l, o, n, c, p, s, v, r, i, d, f) => {
4916
4898
  const { props: e } = a, u = Gt([c, p], [s, v]);
4917
4899
  t > 0 && l > 0 || t > 0 && l < 0 || t < 0 && l < 0 || t < 0 && l > 0 ? o > 0 && n > 0 ? u > 0 && u <= 90 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > 90 && u <= 180 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > -180 && u <= -90 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > -90 && u <= 0 && (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : o <= 0 && n > 0 ? u > 0 && u <= 90 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > 90 && u <= 180 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > -180 && u <= -90 ? (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : u > -90 && u <= 0 && (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : o > 0 && n <= 0 ? u > 0 && u <= 90 ? (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : u > 90 && u <= 180 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > -180 && u <= -90 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > -90 && u <= 0 && (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : o <= 0 && n <= 0 && (u > 0 && u <= 90 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > 90 && u <= 180 ? (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : u > -180 && u <= -90 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > -90 && u <= 0 && (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f)) : t > 0 && l === 0 || t < 0 && l === 0 ? o > 0 ? u > 0 && u <= 90 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > 90 && u <= 180 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > -180 && u <= -90 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > -90 && u <= 0 && (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : o <= 0 && (u > 0 && u <= 90 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > 90 && u <= 180 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > -180 && u <= -90 ? (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : u > -90 && u <= 0 && (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i)) : (t === 0 && l > 0 || t === 0 && l < 0) && (n > 0 ? u > 0 && u <= 90 ? (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f) : u > 90 && u <= 180 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > -180 && u <= -90 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > -90 && u <= 0 && (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : n <= 0 && (u > 0 && u <= 90 ? (e.x0 = r, e.y0 = i + f, e.x1 = r + d, e.y1 = i) : u > 90 && u <= 180 ? (e.x0 = r + d, e.y0 = i + f, e.x1 = r, e.y1 = i) : u > -180 && u <= -90 ? (e.x0 = r + d, e.y0 = i, e.x1 = r, e.y1 = i + f) : u > -90 && u <= 0 && (e.x0 = r, e.y0 = i, e.x1 = r + d, e.y1 = i + f)));
4918
4900
  };
4919
- function Bs(a, t, l) {
4920
- const o = ft(a), [n, c] = Vt(), p = Re(), s = G(), v = (S) => {
4901
+ function Us(a, t, l) {
4902
+ const o = pt(a), [n, c] = Vt(), p = Re(), s = G(), v = (S) => {
4921
4903
  a.value.forEach((_) => {
4922
4904
  _.id !== S && (_.selected = !1);
4923
4905
  });
4924
4906
  };
4925
4907
  let r = [], i = [], d = [], f = [], e = "", u = [], g = !1, m = { x: 0, y: 0, width: 0, height: 0 }, h = 0, w = 0;
4926
- const { mousedown: k, mousewheel: b, keydown: y } = Wl({
4908
+ const { mousedown: k, mousewheel: b, keydown: y } = zl({
4927
4909
  moveStart: ({ startPoint: S, event: _ }) => {
4928
4910
  l == null || l();
4929
4911
  const T = _.ctrlKey || _.metaKey;
4930
- if (g = kl(
4912
+ if (g = _l(
4931
4913
  S,
4932
- Le(kt(at(a)))
4914
+ Le(wt(ot(a)))
4933
4915
  ), e = t(_.target), e && !e.startsWith("stick-")) {
4934
4916
  const x = a.value.find((E) => E.id === e);
4935
4917
  x && x.selected && T ? x.selected = !1 : x && !x.selected && (T || v(), x.selected = !0);
@@ -4938,13 +4920,13 @@ function Bs(a, t, l) {
4938
4920
  moveFirst: ({ event: S }) => {
4939
4921
  const _ = S.ctrlKey || S.metaKey;
4940
4922
  if (!e && !g)
4941
- _ ? u = at(a) : v();
4923
+ _ ? u = ot(a) : v();
4942
4924
  else {
4943
4925
  if (e && !e.startsWith("stick-")) {
4944
4926
  const T = a.value.find((x) => x.id === e);
4945
4927
  T && !T.selected && (T.selected = !0);
4946
4928
  }
4947
- r = at(a), i = kt(r), d = hl(r), m = Le(i);
4929
+ r = ot(a), i = wt(r), d = yl(r), m = Le(i);
4948
4930
  }
4949
4931
  },
4950
4932
  moveTravel: ({ startPoint: S, endPoint: _, deltaX: T, deltaY: x }) => {
@@ -4958,19 +4940,19 @@ function Bs(a, t, l) {
4958
4940
  oxy: oe,
4959
4941
  owh: ee,
4960
4942
  xyRat: ne
4961
- } = Tt(T, R, E, V, H, P), se = e.indexOf("bottom") !== -1 ? 1 : e.indexOf("top") !== -1 ? -1 : 0, {
4943
+ } = kt(T, R, E, V, H, P), se = e.indexOf("bottom") !== -1 ? 1 : e.indexOf("top") !== -1 ? -1 : 0, {
4962
4944
  xyk: Z,
4963
4945
  cxy: pe,
4964
4946
  oxy: me,
4965
4947
  owh: we,
4966
4948
  xyRat: be
4967
- } = Tt(x, se, M, W, z, L);
4949
+ } = kt(x, se, M, W, z, L);
4968
4950
  r.forEach((he, De) => {
4969
4951
  if (!he.locked) {
4970
- const { x: Ue, y: Dt, width: zt, height: yt } = i[De], et = Ue * B + Y * (1 - B) + oe, tt = Dt * Z + pe * (1 - Z) + me, lt = zt * B + ee, ot = yt * Z + we;
4971
- if (he.rect = { x: et, y: tt, width: lt, height: ot }, typeof he.props.x0 == "number" && typeof he.props.y0 == "number" && typeof he.props.x1 == "number" && typeof he.props.y1 == "number") {
4972
- const [mt, ht, gt, po] = d[De];
4973
- gl(he, R, se, ne, be, mt, ht, gt, po, et, tt, lt, ot);
4952
+ const { x: Ue, y: Dt, width: zt, height: vt } = i[De], Qe = Ue * B + Y * (1 - B) + oe, et = Dt * Z + pe * (1 - Z) + me, tt = zt * B + ee, lt = vt * Z + we;
4953
+ if (he.rect = { x: Qe, y: et, width: tt, height: lt }, typeof he.props.x0 == "number" && typeof he.props.y0 == "number" && typeof he.props.x1 == "number" && typeof he.props.y1 == "number") {
4954
+ const [yt, mt, ht, uo] = d[De];
4955
+ ml(he, R, se, ne, be, yt, mt, ht, uo, Qe, et, tt, lt);
4974
4956
  }
4975
4957
  }
4976
4958
  });
@@ -4994,7 +4976,7 @@ function Bs(a, t, l) {
4994
4976
  moveEnd: ({ isMoved: S, event: _ }) => {
4995
4977
  if (S && !e && !g) {
4996
4978
  const x = s.value ?? { x: 0, y: 0, width: 0, height: 0 }, E = new Set(
4997
- a.value.filter(({ rect: M }) => xo(x, M)).map((M) => M.id)
4979
+ a.value.filter(({ rect: M }) => So(x, M)).map((M) => M.id)
4998
4980
  );
4999
4981
  a.value.forEach((M) => {
5000
4982
  M.selected = E.has(M.id) ? !u.includes(M) : u.includes(M);
@@ -5012,8 +4994,8 @@ function Bs(a, t, l) {
5012
4994
  s.value = void 0, r = [], i = [], d = [], e = "", u = [], g = !1, m = { x: 0, y: 0, width: 0, height: 0 };
5013
4995
  },
5014
4996
  wheelStart: ({ startPoint: S }) => {
5015
- if (l == null || l(), r = at(a), r.length > 0) {
5016
- i = kt(r), d = hl(r), f = Ns(r);
4997
+ if (l == null || l(), r = ot(a), r.length > 0) {
4998
+ i = wt(r), d = yl(r), f = Fs(r);
5017
4999
  const { x: _, y: T, width: x, height: E } = Le(i), { x: M, y: V, width: W, height: H } = p.value, [z, P] = S, L = Math.max(x === 0 ? 1 : W, E === 0 ? 1 : H), R = [
5018
5000
  (z - M) / (z - _),
5019
5001
  (P - V) / (P - T),
@@ -5067,9 +5049,9 @@ function Bs(a, t, l) {
5067
5049
  l == null || l();
5068
5050
  const _ = S.key.toLocaleUpperCase(), T = S.ctrlKey || S.metaKey;
5069
5051
  if (_ === "ARROWUP" || _ === "ARROWDOWN" || _ === "ARROWLEFT" || _ === "ARROWRIGHT") {
5070
- if (r = at(a), !r.length)
5052
+ if (r = ot(a), !r.length)
5071
5053
  return;
5072
- const { x, y: E, width: M, height: V } = Le(kt(r)), { x: W, y: H, width: z, height: P } = p.value, L = S.altKey, R = _ === "ARROWRIGHT" ? 1 : _ === "ARROWLEFT" ? -1 : 0, B = _ === "ARROWDOWN" ? 1 : _ === "ARROWUP" ? -1 : 0;
5054
+ const { x, y: E, width: M, height: V } = Le(wt(r)), { x: W, y: H, width: z, height: P } = p.value, L = S.altKey, R = _ === "ARROWRIGHT" ? 1 : _ === "ARROWLEFT" ? -1 : 0, B = _ === "ARROWDOWN" ? 1 : _ === "ARROWUP" ? -1 : 0;
5073
5055
  if (T || L) {
5074
5056
  const {
5075
5057
  xyk: Y,
@@ -5077,19 +5059,19 @@ function Bs(a, t, l) {
5077
5059
  oxy: ee,
5078
5060
  owh: ne,
5079
5061
  xyRat: se
5080
- } = Tt((L ? -1 : 1) * R, R, W, z, x, M), {
5062
+ } = kt((L ? -1 : 1) * R, R, W, z, x, M), {
5081
5063
  xyk: Z,
5082
5064
  cxy: pe,
5083
5065
  oxy: me,
5084
5066
  owh: we,
5085
5067
  xyRat: be
5086
- } = Tt((L ? -1 : 1) * B, B, H, P, E, V);
5068
+ } = kt((L ? -1 : 1) * B, B, H, P, E, V);
5087
5069
  r.forEach((he) => {
5088
5070
  if (!he.locked) {
5089
- const { x: De, y: Ue, width: Dt, height: zt } = he.rect, yt = De * Y + oe * (1 - Y) + ee, et = Ue * Z + pe * (1 - Z) + me, tt = Dt * Y + ne, lt = zt * Z + we;
5090
- he.rect = { x: yt, y: et, width: tt, height: lt };
5091
- const { x0: ot, y0: mt, x1: ht, y1: gt } = he.props;
5092
- typeof ot == "number" && typeof mt == "number" && typeof ht == "number" && typeof gt == "number" && gl(he, R, B, se, be, ot, mt, ht, gt, yt, et, tt, lt);
5071
+ const { x: De, y: Ue, width: Dt, height: zt } = he.rect, vt = De * Y + oe * (1 - Y) + ee, Qe = Ue * Z + pe * (1 - Z) + me, et = Dt * Y + ne, tt = zt * Z + we;
5072
+ he.rect = { x: vt, y: Qe, width: et, height: tt };
5073
+ const { x0: lt, y0: yt, x1: mt, y1: ht } = he.props;
5074
+ typeof lt == "number" && typeof yt == "number" && typeof mt == "number" && typeof ht == "number" && ml(he, R, B, se, be, lt, yt, mt, ht, vt, Qe, et, tt);
5093
5075
  }
5094
5076
  });
5095
5077
  } else
@@ -5121,8 +5103,8 @@ function Bs(a, t, l) {
5121
5103
  moveRect: s
5122
5104
  };
5123
5105
  }
5124
- function Ys(a, t) {
5125
- const l = ft(a), o = G(!1), n = Ce({ x: 0, y: 0 }), c = Ce([]), p = (d, f) => {
5106
+ function Ns(a, t) {
5107
+ const l = pt(a), o = G(!1), n = Ce({ x: 0, y: 0 }), c = Ce([]), p = (d, f) => {
5126
5108
  if (!d && !f) {
5127
5109
  const u = [
5128
5110
  { key: "import", label: "导入帧" },
@@ -5159,11 +5141,11 @@ function Ys(a, t) {
5159
5141
  return [];
5160
5142
  }, s = el(), v = (d) => {
5161
5143
  d.preventDefault(), d.stopImmediatePropagation();
5162
- const f = s(d), e = t(d.target), u = kl(
5144
+ const f = s(d), e = t(d.target), u = _l(
5163
5145
  f,
5164
5146
  Le(a.value.filter(({ selected: g }) => !!g).map(({ rect: g }) => g))
5165
5147
  );
5166
- o.value = !1, c.value = p(e, u), go().then(() => {
5148
+ o.value = !1, c.value = p(e, u), mo().then(() => {
5167
5149
  n.value = { x: d.pageX, y: d.pageY }, o.value = !0;
5168
5150
  });
5169
5151
  }, r = () => {
@@ -5223,7 +5205,7 @@ function Ys(a, t) {
5223
5205
  break;
5224
5206
  }
5225
5207
  };
5226
- return it(() => {
5208
+ return rt(() => {
5227
5209
  document.addEventListener("mousedown", r);
5228
5210
  }), We(() => {
5229
5211
  document.removeEventListener("mousedown", r);
@@ -5236,7 +5218,7 @@ function Ys(a, t) {
5236
5218
  contextMenuMenus: c
5237
5219
  };
5238
5220
  }
5239
- const qs = ["onClick"], js = /* @__PURE__ */ X({
5221
+ const Bs = ["onClick"], Ys = /* @__PURE__ */ X({
5240
5222
  __name: "ContextMenu",
5241
5223
  props: {
5242
5224
  open: { type: Boolean },
@@ -5251,7 +5233,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5251
5233
  }));
5252
5234
  return (o, n) => {
5253
5235
  const c = U("el-icon");
5254
- return $(), j(bo, { name: "contextmenu" }, {
5236
+ return $(), j(ho, { name: "contextmenu" }, {
5255
5237
  default: A(() => [
5256
5238
  ze(D("ul", {
5257
5239
  class: "contextmenu el-dropdown__popper",
@@ -5270,7 +5252,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5270
5252
  _: 2
5271
5253
  }, 1024)) : ce("", !0),
5272
5254
  D("span", null, de(p.label), 1)
5273
- ], 8, qs))), 128))
5255
+ ], 8, Bs))), 128))
5274
5256
  ], 36), [
5275
5257
  [Ne, o.open]
5276
5258
  ])
@@ -5279,7 +5261,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5279
5261
  });
5280
5262
  };
5281
5263
  }
5282
- }), Xs = /* @__PURE__ */ ae(js, [["__scopeId", "data-v-2b6c3473"]]), Gs = { class: "frame-canvas" }, Zs = ["data-id"], Js = ["data-id"], Qs = /* @__PURE__ */ X({
5264
+ }), qs = /* @__PURE__ */ ae(Ys, [["__scopeId", "data-v-2b6c3473"]]), js = { class: "frame-canvas" }, Xs = ["data-id"], Gs = ["data-id"], Zs = /* @__PURE__ */ X({
5283
5265
  name: "frame-canvas",
5284
5266
  inheritAttrs: !1,
5285
5267
  __name: "index",
@@ -5296,7 +5278,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5296
5278
  "right-top",
5297
5279
  "left-bottom",
5298
5280
  "right-bottom"
5299
- ], o = a, n = ue(a, "data"), [c] = Vt(), p = Re(), [s, v] = Ko(), r = N(() => ({
5281
+ ], o = a, n = ue(a, "data"), [c] = Vt(), p = Re(), [s, v] = Ho(), r = N(() => ({
5300
5282
  width: K(p.value.width),
5301
5283
  height: K(p.value.height),
5302
5284
  backgroundColor: o.bgcolor,
@@ -5315,11 +5297,11 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5315
5297
  contextMenuOpen: g,
5316
5298
  contextMenuPosition: m,
5317
5299
  contextMenuMenus: h
5318
- } = Ys(n, d), { mousedown: w, mousewheel: k, keydown: b, moveRect: y } = Bs(
5300
+ } = Ns(n, d), { mousedown: w, mousewheel: k, keydown: b, moveRect: y } = Us(
5319
5301
  n,
5320
5302
  d,
5321
5303
  e
5322
- ), { dragover: S, drop: _ } = Hl(n), T = N(() => {
5304
+ ), { dragover: S, drop: _ } = Ll(n), T = N(() => {
5323
5305
  var E, M;
5324
5306
  return !y.value || ((E = y.value) == null ? void 0 : E.width) === 0 && ((M = y.value) == null ? void 0 : M.height) === 0 ? null : {
5325
5307
  // left: px(moveRect.value.x),
@@ -5422,7 +5404,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5422
5404
  ]
5423
5405
  ];
5424
5406
  });
5425
- return (E, M) => ($(), O("div", Gs, [
5407
+ return (E, M) => ($(), O("div", js, [
5426
5408
  D("div", {
5427
5409
  ref: F(v),
5428
5410
  class: "frame-stage",
@@ -5449,7 +5431,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5449
5431
  "data-id": V.id,
5450
5432
  style: J(i(V.rect))
5451
5433
  }, [
5452
- ($(), j($e((H = F(Ae).get(V.type)) == null ? void 0 : H.view), rt({
5434
+ ($(), j($e((H = F(Ae).get(V.type)) == null ? void 0 : H.view), st({
5453
5435
  id: V.id,
5454
5436
  rect: V.rect,
5455
5437
  selected: V.selected
@@ -5457,7 +5439,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5457
5439
  item: n.value[W],
5458
5440
  "onUpdate:item": (z) => n.value[W] = z
5459
5441
  }), null, 16, ["id", "rect", "selected", "item", "onUpdate:item"]))
5460
- ], 14, Zs);
5442
+ ], 14, Xs);
5461
5443
  }), 128)),
5462
5444
  ze(D("div", {
5463
5445
  class: "box-selector",
@@ -5477,7 +5459,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5477
5459
  class: xe(["stick-point", `stick-point-${V}`]),
5478
5460
  style: J(x.value[1][W + 4]),
5479
5461
  "data-id": `stick-${V}`
5480
- }, null, 14, Js), [
5462
+ }, null, 14, Gs), [
5481
5463
  [Ne, !!x.value[1][W + 4]]
5482
5464
  ])), 64)),
5483
5465
  ($(), O(le, null, fe(t, (V, W) => ze(D("div", {
@@ -5488,7 +5470,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5488
5470
  [Ne, !!x.value[0][W]]
5489
5471
  ])), 64))
5490
5472
  ], 36),
5491
- I(Xs, {
5473
+ I(qs, {
5492
5474
  open: F(g),
5493
5475
  menus: F(h),
5494
5476
  position: F(m),
@@ -5496,7 +5478,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5496
5478
  }, null, 8, ["open", "menus", "position", "onAction"])
5497
5479
  ]));
5498
5480
  }
5499
- }), er = /* @__PURE__ */ ae(Qs, [["__scopeId", "data-v-2f90716e"]]), tr = /* @__PURE__ */ X({
5481
+ }), Js = /* @__PURE__ */ ae(Zs, [["__scopeId", "data-v-2f90716e"]]), Qs = /* @__PURE__ */ X({
5500
5482
  name: "radio-default",
5501
5483
  inheritAttrs: !1,
5502
5484
  __name: "index",
@@ -5520,10 +5502,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5520
5502
  ], 64);
5521
5503
  };
5522
5504
  }
5523
- }), lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5505
+ }), er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5524
5506
  __proto__: null,
5525
- default: tr
5526
- }, Symbol.toStringTag, { value: "Module" })), or = /* @__PURE__ */ X({
5507
+ default: Qs
5508
+ }, Symbol.toStringTag, { value: "Module" })), tr = /* @__PURE__ */ X({
5527
5509
  name: "color-picker",
5528
5510
  inheritAttrs: !1,
5529
5511
  __name: "index",
@@ -5570,9 +5552,9 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5570
5552
  ], 64);
5571
5553
  };
5572
5554
  }
5573
- }), ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5555
+ }), lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5574
5556
  __proto__: null,
5575
- default: or
5557
+ default: tr
5576
5558
  }, Symbol.toStringTag, { value: "Module" })), Pt = /* @__PURE__ */ X({
5577
5559
  name: "popup-provider",
5578
5560
  inheritAttrs: !1,
@@ -5646,7 +5628,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5646
5628
  ], 64);
5647
5629
  };
5648
5630
  }
5649
- }), nr = ["title"], sr = /* @__PURE__ */ X({
5631
+ }), or = ["title"], ar = /* @__PURE__ */ X({
5650
5632
  name: "file-list",
5651
5633
  inheritAttrs: !1,
5652
5634
  __name: "index",
@@ -5733,7 +5715,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5733
5715
  onClick: (m) => r(g)
5734
5716
  }, {
5735
5717
  default: A(() => [
5736
- I(vt, {
5718
+ I(ft, {
5737
5719
  style: { background: "#ddd" },
5738
5720
  preview: !1,
5739
5721
  type: i.fileType,
@@ -5741,7 +5723,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5741
5723
  }, null, 8, ["type", "file"]),
5742
5724
  D("span", {
5743
5725
  title: g.name
5744
- }, de(g.name), 9, nr)
5726
+ }, de(g.name), 9, or)
5745
5727
  ]),
5746
5728
  _: 2
5747
5729
  }, 1032, ["class", "style", "span", "onClick"]))), 128))
@@ -5754,10 +5736,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5754
5736
  ], 64);
5755
5737
  };
5756
5738
  }
5757
- }), rr = /* @__PURE__ */ ae(sr, [["__scopeId", "data-v-d8a26f80"]]), ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5739
+ }), nr = /* @__PURE__ */ ae(ar, [["__scopeId", "data-v-d8a26f80"]]), sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5758
5740
  __proto__: null,
5759
- default: rr
5760
- }, Symbol.toStringTag, { value: "Module" })), tl = (a) => (Ze("data-v-b75b0d63"), a = a(), Je(), a), ur = { class: "setting-row" }, cr = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "字段:", -1)), dr = { class: "row-editor" }, pr = { class: "setting-row" }, fr = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "日期:", -1)), vr = { class: "row-editor" }, yr = { class: "setting-row" }, mr = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "结果:", -1)), hr = { class: "row-editor" }, gr = { class: "dialog-footer" }, br = /* @__PURE__ */ X({
5741
+ default: nr
5742
+ }, Symbol.toStringTag, { value: "Module" })), tl = (a) => (Ge("data-v-b75b0d63"), a = a(), Ze(), a), rr = { class: "setting-row" }, ir = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "字段:", -1)), ur = { class: "row-editor" }, cr = { class: "setting-row" }, dr = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "日期:", -1)), pr = { class: "row-editor" }, fr = { class: "setting-row" }, vr = /* @__PURE__ */ tl(() => /* @__PURE__ */ D("div", { class: "row-label" }, "结果:", -1)), yr = { class: "row-editor" }, mr = { class: "dialog-footer" }, hr = /* @__PURE__ */ X({
5761
5743
  name: "filter-setting",
5762
5744
  inheritAttrs: !1,
5763
5745
  __name: "index",
@@ -5849,7 +5831,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5849
5831
  onOpen: r
5850
5832
  }, {
5851
5833
  footer: A(() => [
5852
- D("div", gr, [
5834
+ D("div", mr, [
5853
5835
  I(V, {
5854
5836
  type: "primary",
5855
5837
  plain: "",
@@ -5874,9 +5856,9 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5874
5856
  ])
5875
5857
  ]),
5876
5858
  default: A(() => [
5877
- D("div", ur, [
5878
- cr,
5879
- D("div", dr, [
5859
+ D("div", rr, [
5860
+ ir,
5861
+ D("div", ur, [
5880
5862
  I(M, {
5881
5863
  modelValue: f.value,
5882
5864
  "onUpdate:modelValue": T[1] || (T[1] = (z) => f.value = z),
@@ -5930,9 +5912,9 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5930
5912
  })
5931
5913
  ])
5932
5914
  ]),
5933
- ze(D("div", pr, [
5934
- fr,
5935
- D("div", vr, [
5915
+ ze(D("div", cr, [
5916
+ dr,
5917
+ D("div", pr, [
5936
5918
  I(M, {
5937
5919
  modelValue: g.value,
5938
5920
  "onUpdate:modelValue": T[5] || (T[5] = (z) => g.value = z),
@@ -5988,9 +5970,9 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
5988
5970
  ], 512), [
5989
5971
  [Ne, !1]
5990
5972
  ]),
5991
- D("div", yr, [
5992
- mr,
5993
- D("div", hr, [
5973
+ D("div", fr, [
5974
+ vr,
5975
+ D("div", yr, [
5994
5976
  I(x, {
5995
5977
  ref_key: "textareaRef",
5996
5978
  ref: l,
@@ -6035,10 +6017,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6035
6017
  ], 64);
6036
6018
  };
6037
6019
  }
6038
- }), _r = /* @__PURE__ */ ae(br, [["__scopeId", "data-v-b75b0d63"]]), wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6020
+ }), gr = /* @__PURE__ */ ae(hr, [["__scopeId", "data-v-b75b0d63"]]), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6039
6021
  __proto__: null,
6040
- default: _r
6041
- }, Symbol.toStringTag, { value: "Module" })), kr = (a) => (Ze("data-v-daa125a3"), a = a(), Je(), a), Tr = { style: { "margin-right": "8px", width: "calc(50% - 8px)" } }, Sr = { class: "format-description" }, $r = { style: { "margin-left": "8px", width: "calc(50% - 8px)" } }, xr = { class: "format-description" }, Cr = { class: "preview" }, Mr = /* @__PURE__ */ kr(() => /* @__PURE__ */ D("h3", null, "预览:", -1)), Er = "时钟属性格式", Vr = /* @__PURE__ */ Object.assign({
6022
+ default: gr
6023
+ }, Symbol.toStringTag, { value: "Module" })), _r = (a) => (Ge("data-v-daa125a3"), a = a(), Ze(), a), wr = { style: { "margin-right": "8px", width: "calc(50% - 8px)" } }, kr = { class: "format-description" }, Tr = { style: { "margin-left": "8px", width: "calc(50% - 8px)" } }, Sr = { class: "format-description" }, $r = { class: "preview" }, xr = /* @__PURE__ */ _r(() => /* @__PURE__ */ D("h3", null, "预览:", -1)), Cr = "时钟属性格式", Mr = /* @__PURE__ */ Object.assign({
6042
6024
  name: "format-date",
6043
6025
  inheritAttrs: !1
6044
6026
  }, {
@@ -6075,7 +6057,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6075
6057
  t.locked || (c.value = !0);
6076
6058
  }, e = (w, k) => {
6077
6059
  let b = w;
6078
- const y = _l.fromDate(k).getLunar();
6060
+ const y = gl.fromDate(k).getLunar();
6079
6061
  b = b.replace(/YYYY/g, k.getFullYear()), b = b.replace(/yyyy/g, k.getFullYear()), b = b.replace(/MM/g, String(k.getMonth() + 1).padStart(2, "0")), b = b.replace(/DD/g, String(k.getDate()).padStart(2, "0")), b = b.replace(/dd/g, String(k.getDate()).padStart(2, "0")), b = b.replace(/HH/g, String(k.getHours()).padStart(2, "0")), b = b.replace(/mm/g, String(k.getMinutes()).padStart(2, "0")), b = b.replace(/ss/g, String(k.getSeconds()).padStart(2, "0"));
6080
6062
  const S = ["日", "一", "二", "三", "四", "五", "六"];
6081
6063
  return b = b.replace(/W/g, S[k.getDay()]), b = b.replace(/CHY/g, y.getYearInChinese()), b = b.replace(/CHM/g, y.getMonthInChinese()), b = b.replace(/CHD/g, y.getDayInChinese()), b = b.replace(/SXY/g, y.getYearShengXiaoExact()), b = b.replace(/GZY/g, y.getYearInGanZhiExact()), b;
@@ -6108,7 +6090,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6108
6090
  I(Pt, {
6109
6091
  modelValue: c.value,
6110
6092
  "onUpdate:modelValue": k[6] || (k[6] = (E) => c.value = E),
6111
- title: Er
6093
+ title: Cr
6112
6094
  }, {
6113
6095
  default: A(() => [
6114
6096
  D("div", null, [
@@ -6134,7 +6116,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6134
6116
  }),
6135
6117
  I(y, null, {
6136
6118
  default: A(() => [
6137
- D("div", Tr, [
6119
+ D("div", wr, [
6138
6120
  I(_, {
6139
6121
  disabled: t.props.timeType === 1,
6140
6122
  modelValue: s.value,
@@ -6153,9 +6135,9 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6153
6135
  ]),
6154
6136
  _: 1
6155
6137
  }, 8, ["disabled", "modelValue"]),
6156
- D("div", Sr, de(r.value), 1)
6138
+ D("div", kr, de(r.value), 1)
6157
6139
  ]),
6158
- D("div", $r, [
6140
+ D("div", Tr, [
6159
6141
  I(_, {
6160
6142
  disabled: t.props.timeType === 0,
6161
6143
  modelValue: v.value,
@@ -6174,7 +6156,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6174
6156
  ]),
6175
6157
  _: 1
6176
6158
  }, 8, ["disabled", "modelValue"]),
6177
- D("div", xr, de(i.value), 1)
6159
+ D("div", Sr, de(i.value), 1)
6178
6160
  ])
6179
6161
  ]),
6180
6162
  _: 1
@@ -6211,8 +6193,8 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6211
6193
  ]),
6212
6194
  _: 1
6213
6195
  }),
6214
- D("div", Cr, [
6215
- Mr,
6196
+ D("div", $r, [
6197
+ xr,
6216
6198
  D("div", null, de(d.value), 1)
6217
6199
  ]),
6218
6200
  D("div", null, [
@@ -6234,10 +6216,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6234
6216
  ], 64);
6235
6217
  };
6236
6218
  }
6237
- }), Ir = /* @__PURE__ */ ae(Vr, [["__scopeId", "data-v-daa125a3"]]), Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6219
+ }), Er = /* @__PURE__ */ ae(Mr, [["__scopeId", "data-v-daa125a3"]]), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6238
6220
  __proto__: null,
6239
- default: Ir
6240
- }, Symbol.toStringTag, { value: "Module" })), Pr = /* @__PURE__ */ X({
6221
+ default: Er
6222
+ }, Symbol.toStringTag, { value: "Module" })), Ir = /* @__PURE__ */ X({
6241
6223
  name: "input-number",
6242
6224
  inheritAttrs: !1,
6243
6225
  __name: "index",
@@ -6275,10 +6257,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6275
6257
  ], 64);
6276
6258
  };
6277
6259
  }
6278
- }), Or = /* @__PURE__ */ ae(Pr, [["__scopeId", "data-v-28c9d5a9"]]), Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6260
+ }), Ar = /* @__PURE__ */ ae(Ir, [["__scopeId", "data-v-28c9d5a9"]]), Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6279
6261
  __proto__: null,
6280
- default: Or
6281
- }, Symbol.toStringTag, { value: "Module" })), zr = /* @__PURE__ */ X({
6262
+ default: Ar
6263
+ }, Symbol.toStringTag, { value: "Module" })), Or = /* @__PURE__ */ X({
6282
6264
  name: "input-text",
6283
6265
  inheritAttrs: !1,
6284
6266
  __name: "index",
@@ -6300,10 +6282,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6300
6282
  }, null, 8, ["modelValue", "disabled"]);
6301
6283
  };
6302
6284
  }
6303
- }), Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6285
+ }), Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6304
6286
  __proto__: null,
6305
- default: zr
6306
- }, Symbol.toStringTag, { value: "Module" })), Wr = /* @__PURE__ */ X({
6287
+ default: Or
6288
+ }, Symbol.toStringTag, { value: "Module" })), zr = /* @__PURE__ */ X({
6307
6289
  name: "input-textarea",
6308
6290
  inheritAttrs: !1,
6309
6291
  __name: "index",
@@ -6328,10 +6310,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6328
6310
  }, null, 8, ["modelValue", "rows", "disabled"]);
6329
6311
  };
6330
6312
  }
6331
- }), Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6313
+ }), Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6332
6314
  __proto__: null,
6333
- default: Wr
6334
- }, Symbol.toStringTag, { value: "Module" })), Rr = { class: "number-popover" }, Kr = /* @__PURE__ */ X({
6315
+ default: zr
6316
+ }, Symbol.toStringTag, { value: "Module" })), Wr = { class: "number-popover" }, Hr = /* @__PURE__ */ X({
6335
6317
  name: "multiple-number",
6336
6318
  inheritAttrs: !1,
6337
6319
  __name: "index",
@@ -6347,7 +6329,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6347
6329
  }),
6348
6330
  emits: re(["change"], ["update:modelValue"]),
6349
6331
  setup(a, { emit: t }) {
6350
- const l = a, o = t, n = ue(a, "modelValue"), c = N(() => n.value ? Sl(n.value) : []), p = N(() => c.value.map((i) => ({ id: ve(), val: i }))), s = G(!1), v = () => {
6332
+ const l = a, o = t, n = ue(a, "modelValue"), c = N(() => n.value ? kl(n.value) : []), p = N(() => c.value.map((i) => ({ id: ve(), val: i }))), s = G(!1), v = () => {
6351
6333
  l.locked || (s.value = !0);
6352
6334
  }, r = (i, d) => {
6353
6335
  o("change", { value: i, index: d });
@@ -6373,7 +6355,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6373
6355
  n.value ? {
6374
6356
  name: "default",
6375
6357
  fn: A(() => [
6376
- D("div", Rr, [
6358
+ D("div", Wr, [
6377
6359
  ($(!0), O(le, null, fe(p.value, (g, m) => ($(), O("div", {
6378
6360
  key: g.id,
6379
6361
  class: "item"
@@ -6399,10 +6381,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6399
6381
  ]), 1024);
6400
6382
  };
6401
6383
  }
6402
- }), Fr = /* @__PURE__ */ ae(Kr, [["__scopeId", "data-v-fb1101e1"]]), Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6384
+ }), Rr = /* @__PURE__ */ ae(Hr, [["__scopeId", "data-v-fb1101e1"]]), Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6403
6385
  __proto__: null,
6404
- default: Fr
6405
- }, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ X({
6386
+ default: Rr
6387
+ }, Symbol.toStringTag, { value: "Module" })), Fr = /* @__PURE__ */ X({
6406
6388
  name: "radio-button",
6407
6389
  inheritAttrs: !1,
6408
6390
  __name: "index",
@@ -6440,10 +6422,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6440
6422
  ], 64);
6441
6423
  };
6442
6424
  }
6443
- }), Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6425
+ }), Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6444
6426
  __proto__: null,
6445
- default: Nr
6446
- }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ X({
6427
+ default: Fr
6428
+ }, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ X({
6447
6429
  name: "radio-default",
6448
6430
  inheritAttrs: !1,
6449
6431
  __name: "index",
@@ -6478,10 +6460,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6478
6460
  }, 8, ["modelValue", "disabled"]);
6479
6461
  };
6480
6462
  }
6481
- }), qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6463
+ }), Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6482
6464
  __proto__: null,
6483
- default: Yr
6484
- }, Symbol.toStringTag, { value: "Module" })), jr = /* @__PURE__ */ X({
6465
+ default: Nr
6466
+ }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ X({
6485
6467
  name: "single-select",
6486
6468
  inheritAttrs: !1,
6487
6469
  __name: "index",
@@ -6525,10 +6507,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6525
6507
  ], 64);
6526
6508
  };
6527
6509
  }
6528
- }), Xr = /* @__PURE__ */ ae(jr, [["__scopeId", "data-v-58a90895"]]), Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6510
+ }), qr = /* @__PURE__ */ ae(Yr, [["__scopeId", "data-v-58a90895"]]), jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6529
6511
  __proto__: null,
6530
- default: Xr
6531
- }, Symbol.toStringTag, { value: "Module" })), Zr = /* @__PURE__ */ X({
6512
+ default: qr
6513
+ }, Symbol.toStringTag, { value: "Module" })), Xr = /* @__PURE__ */ X({
6532
6514
  name: "radio-default",
6533
6515
  inheritAttrs: !1,
6534
6516
  __name: "index",
@@ -6549,13 +6531,13 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6549
6531
  }, null, 8, ["modelValue", "disabled"]);
6550
6532
  };
6551
6533
  }
6552
- }), Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6534
+ }), Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6553
6535
  __proto__: null,
6554
- default: Zr
6555
- }, Symbol.toStringTag, { value: "Module" })), Qr = (a) => (Ze("data-v-76958dce"), a = a(), Je(), a), ei = { class: "table-col" }, ti = { class: "setting-add" }, li = { class: "item-drag" }, oi = ["onClick"], ai = ["title"], ni = { class: "table-col" }, si = {
6536
+ default: Xr
6537
+ }, Symbol.toStringTag, { value: "Module" })), Zr = (a) => (Ge("data-v-76958dce"), a = a(), Ze(), a), Jr = { class: "table-col" }, Qr = { class: "setting-add" }, ei = { class: "item-drag" }, ti = ["onClick"], li = ["title"], oi = { class: "table-col" }, ai = {
6556
6538
  key: 0,
6557
6539
  class: "setting-row"
6558
- }, ri = { class: "row-label" }, ii = { key: 0 }, ui = /* @__PURE__ */ Qr(() => /* @__PURE__ */ D("span", null, ":", -1)), ci = { class: "row-editor" }, di = { class: "dialog-footer" }, pi = /* @__PURE__ */ X({
6540
+ }, ni = { class: "row-label" }, si = { key: 0 }, ri = /* @__PURE__ */ Zr(() => /* @__PURE__ */ D("span", null, ":", -1)), ii = { class: "row-editor" }, ui = { class: "dialog-footer" }, ci = /* @__PURE__ */ X({
6559
6541
  name: "table-settting",
6560
6542
  inheritAttrs: !1,
6561
6543
  __name: "index",
@@ -6616,7 +6598,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6616
6598
  return _e(
6617
6599
  () => k.value,
6618
6600
  (b) => {
6619
- b && new wl(b, {
6601
+ b && new bl(b, {
6620
6602
  animation: 200,
6621
6603
  handle: ".item-drag",
6622
6604
  onUpdate: (y) => {
@@ -6657,7 +6639,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6657
6639
  size: "42%"
6658
6640
  }, {
6659
6641
  footer: A(() => [
6660
- D("div", di, [
6642
+ D("div", ui, [
6661
6643
  I(T, {
6662
6644
  onClick: y[1] || (y[1] = (L) => p.value = !1)
6663
6645
  }, {
@@ -6679,8 +6661,8 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6679
6661
  class: "setting-col"
6680
6662
  }, {
6681
6663
  default: A(() => [
6682
- D("div", ei, [
6683
- D("div", ti, [
6664
+ D("div", Jr, [
6665
+ D("div", Qr, [
6684
6666
  I(T, {
6685
6667
  type: "primary",
6686
6668
  plain: "",
@@ -6702,10 +6684,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6702
6684
  key: L.id,
6703
6685
  class: xe(["list-item", r.value === R ? "selected" : ""])
6704
6686
  }, [
6705
- D("span", li, [
6687
+ D("span", ei, [
6706
6688
  I(x, null, {
6707
6689
  default: A(() => [
6708
- I(co)
6690
+ I(io)
6709
6691
  ]),
6710
6692
  _: 1
6711
6693
  })
@@ -6717,7 +6699,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6717
6699
  D("span", {
6718
6700
  class: "item-name",
6719
6701
  title: g(R, b.bindKey || "", L)
6720
- }, de(g(R, b.bindKey || "", L)), 9, ai),
6702
+ }, de(g(R, b.bindKey || "", L)), 9, li),
6721
6703
  b.bindKey === "colDomains" || c.value.length > 1 ? ($(), j(x, {
6722
6704
  key: 0,
6723
6705
  class: "item-icon",
@@ -6728,7 +6710,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6728
6710
  ]),
6729
6711
  _: 2
6730
6712
  }, 1032, ["onClick"])) : ce("", !0)
6731
- ], 8, oi)
6713
+ ], 8, ti)
6732
6714
  ], 2))), 128))
6733
6715
  ], 512)
6734
6716
  ])
@@ -6740,17 +6722,17 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6740
6722
  class: "setting-col"
6741
6723
  }, {
6742
6724
  default: A(() => [
6743
- D("div", ni, [
6725
+ D("div", oi, [
6744
6726
  c.value.length > 0 ? ($(!0), O(le, { key: 0 }, fe(b.children, ({ label: L, type: R, bindKey: B, options: Y, display: oe, tip: ee, extra: ne, ...se }, Z) => ($(), O(le, { key: B }, [
6745
- u(c.value[r.value], oe) ? ($(), O("div", si, [
6746
- D("div", ri, [
6727
+ u(c.value[r.value], oe) ? ($(), O("div", ai, [
6728
+ D("div", ni, [
6747
6729
  D("span", null, de(L), 1),
6748
6730
  ee ? ($(), j(W, {
6749
6731
  key: 0,
6750
6732
  placement: "top"
6751
6733
  }, {
6752
6734
  content: A(() => [
6753
- typeof ee == "string" ? ($(), O("span", ii, de(ee), 1)) : ($(), j($e(ee), { key: 1 }))
6735
+ typeof ee == "string" ? ($(), O("span", si, de(ee), 1)) : ($(), j($e(ee), { key: 1 }))
6754
6736
  ]),
6755
6737
  default: A(() => [
6756
6738
  I(x, { class: "tip-icon" }, {
@@ -6762,10 +6744,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6762
6744
  ]),
6763
6745
  _: 2
6764
6746
  }, 1024)) : ce("", !0),
6765
- ui
6747
+ ri
6766
6748
  ]),
6767
- D("div", ci, [
6768
- ($(), j($e(F($t).get(R)), rt({
6749
+ D("div", ii, [
6750
+ ($(), j($e(F($t).get(R)), st({
6769
6751
  label: L,
6770
6752
  bindKey: B,
6771
6753
  optionType: Y,
@@ -6804,44 +6786,44 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6804
6786
  ], 64);
6805
6787
  };
6806
6788
  }
6807
- }), fi = /* @__PURE__ */ ae(pi, [["__scopeId", "data-v-76958dce"]]), vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6789
+ }), di = /* @__PURE__ */ ae(ci, [["__scopeId", "data-v-76958dce"]]), pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6808
6790
  __proto__: null,
6809
- default: fi
6791
+ default: di
6810
6792
  }, Symbol.toStringTag, { value: "Module" })), $t = (() => {
6811
6793
  const a = /* @__PURE__ */ Object.assign({
6812
- "/src/editors/checkbox-default/index.vue": lr,
6813
- "/src/editors/color-picker/index.vue": ar,
6814
- "/src/editors/file-list/index.vue": ir,
6815
- "/src/editors/filter-setting/index.vue": wr,
6816
- "/src/editors/format-date/index.vue": Ar,
6817
- "/src/editors/input-number/index.vue": Dr,
6818
- "/src/editors/input-text/index.vue": Lr,
6819
- "/src/editors/input-textarea/index.vue": Hr,
6820
- "/src/editors/multiple-number/index.vue": Ur,
6821
- "/src/editors/radio-button/index.vue": Br,
6822
- "/src/editors/radio-default/index.vue": qr,
6823
- "/src/editors/single-select/index.vue": Gr,
6824
- "/src/editors/switch-default/index.vue": Jr,
6825
- "/src/editors/table-setting/index.vue": vi
6794
+ "/src/editors/checkbox-default/index.vue": er,
6795
+ "/src/editors/color-picker/index.vue": lr,
6796
+ "/src/editors/file-list/index.vue": sr,
6797
+ "/src/editors/filter-setting/index.vue": br,
6798
+ "/src/editors/format-date/index.vue": Vr,
6799
+ "/src/editors/input-number/index.vue": Pr,
6800
+ "/src/editors/input-text/index.vue": Dr,
6801
+ "/src/editors/input-textarea/index.vue": Lr,
6802
+ "/src/editors/multiple-number/index.vue": Kr,
6803
+ "/src/editors/radio-button/index.vue": Ur,
6804
+ "/src/editors/radio-default/index.vue": Br,
6805
+ "/src/editors/single-select/index.vue": jr,
6806
+ "/src/editors/switch-default/index.vue": Gr,
6807
+ "/src/editors/table-setting/index.vue": pi
6826
6808
  }), t = /* @__PURE__ */ new Map();
6827
6809
  return Object.keys(a).forEach((l) => {
6828
6810
  var n;
6829
6811
  const o = (n = l.match(/editors\/(.+)\/index\.vue/)) == null ? void 0 : n[1];
6830
6812
  o && t.set(o, a[l].default);
6831
6813
  }), t;
6832
- })(), Ot = (a) => (Ze("data-v-46ebd3ac"), a = a(), Je(), a), yi = {
6814
+ })(), Ot = (a) => (Ge("data-v-46ebd3ac"), a = a(), Ze(), a), fi = {
6833
6815
  key: 0,
6834
6816
  class: "frame-setting"
6835
- }, mi = { class: "setting-row" }, hi = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素类型:", -1)), gi = { class: "row-editor" }, bi = { class: "setting-row" }, _i = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素层级:", -1)), wi = { class: "row-editor" }, ki = { class: "setting-row" }, Ti = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素名称:", -1)), Si = { class: "row-editor" }, $i = {
6817
+ }, vi = { class: "setting-row" }, yi = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素类型:", -1)), mi = { class: "row-editor" }, hi = { class: "setting-row" }, gi = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素层级:", -1)), bi = { class: "row-editor" }, _i = { class: "setting-row" }, wi = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("div", { class: "row-label" }, "元素名称:", -1)), ki = { class: "row-editor" }, Ti = {
6836
6818
  key: 0,
6837
6819
  class: "setting-row"
6838
- }, xi = { class: "row-label" }, Ci = { class: "row-editor" }, Mi = {
6820
+ }, Si = { class: "row-label" }, $i = { class: "row-editor" }, xi = {
6839
6821
  key: 0,
6840
6822
  class: "setting-row"
6841
- }, Ei = { class: "row-label" }, Vi = { key: 0 }, Ii = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("span", null, ":", -1)), Ai = { class: "row-editor" }, Pi = {
6823
+ }, Ci = { class: "row-label" }, Mi = { key: 0 }, Ei = /* @__PURE__ */ Ot(() => /* @__PURE__ */ D("span", null, ":", -1)), Vi = { class: "row-editor" }, Ii = {
6842
6824
  key: 1,
6843
6825
  class: "frame-empty"
6844
- }, Oi = /* @__PURE__ */ X({
6826
+ }, Ai = /* @__PURE__ */ X({
6845
6827
  name: "property-setting",
6846
6828
  inheritAttrs: !1,
6847
6829
  __name: "index",
@@ -6850,7 +6832,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6850
6832
  },
6851
6833
  emits: ["update:data"],
6852
6834
  setup(a) {
6853
- const t = Re(), l = Ke(), o = Ho(), n = ue(a, "data"), c = N(() => {
6835
+ const t = Re(), l = Ke(), o = Lo(), n = ue(a, "data"), c = N(() => {
6854
6836
  const f = n.value.filter(({ selected: e }) => !!e);
6855
6837
  return n.value.findIndex(({ id: e }) => {
6856
6838
  var u;
@@ -6865,18 +6847,18 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6865
6847
  }, r = (f, e) => typeof e == "boolean" ? e : typeof e == "function" ? e(f) : !0, i = (f) => typeof f == "string" ? l.value[f] ?? [] : f, d = (f) => typeof f == "string" ? o.value[f] ?? [] : [];
6866
6848
  return (f, e) => {
6867
6849
  const u = U("InfoFilled"), g = U("el-icon"), m = U("el-tooltip");
6868
- return c.value >= 0 && p.value ? ($(), O("div", yi, [
6869
- D("div", mi, [
6870
- hi,
6871
- D("div", gi, de(`${p.value.title}-${p.value.seq}`), 1)
6850
+ return c.value >= 0 && p.value ? ($(), O("div", fi, [
6851
+ D("div", vi, [
6852
+ yi,
6853
+ D("div", mi, de(`${p.value.title}-${p.value.seq}`), 1)
6872
6854
  ]),
6873
- D("div", bi, [
6874
- _i,
6875
- D("div", wi, de(c.value + 1), 1)
6855
+ D("div", hi, [
6856
+ gi,
6857
+ D("div", bi, de(c.value + 1), 1)
6876
6858
  ]),
6877
- D("div", ki, [
6878
- Ti,
6879
- D("div", Si, [
6859
+ D("div", _i, [
6860
+ wi,
6861
+ D("div", ki, [
6880
6862
  ($(), j($e(F($t).get("input-text")), {
6881
6863
  locked: n.value[c.value].locked,
6882
6864
  modelValue: n.value[c.value].name,
@@ -6885,10 +6867,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6885
6867
  ])
6886
6868
  ]),
6887
6869
  ($(!0), O(le, null, fe(p.value.rectangles, ({ label: h, type: w, bindKey: k, display: b, ...y }, S) => ($(), O(le, { key: k }, [
6888
- r(n.value[c.value], b) ? ($(), O("div", $i, [
6889
- D("div", xi, de(h) + ":", 1),
6890
- D("div", Ci, [
6891
- ($(), j($e(F($t).get(w)), rt({
6870
+ r(n.value[c.value], b) ? ($(), O("div", Ti, [
6871
+ D("div", Si, de(h) + ":", 1),
6872
+ D("div", $i, [
6873
+ ($(), j($e(F($t).get(w)), st({
6892
6874
  locked: n.value[c.value].locked,
6893
6875
  min: s(k, n.value[c.value]),
6894
6876
  max: v(k, n.value[c.value]),
@@ -6907,15 +6889,15 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6907
6889
  ])) : ce("", !0)
6908
6890
  ], 64))), 128)),
6909
6891
  ($(!0), O(le, null, fe(p.value.properties, ({ label: h, type: w, bindKey: k, options: b, files: y, display: S, min: _, max: T, tip: x, extra: E, ...M }, V) => ($(), O(le, { key: k }, [
6910
- r(n.value[c.value], S) ? ($(), O("div", Mi, [
6911
- D("div", Ei, [
6892
+ r(n.value[c.value], S) ? ($(), O("div", xi, [
6893
+ D("div", Ci, [
6912
6894
  D("span", null, de(h), 1),
6913
6895
  x ? ($(), j(m, {
6914
6896
  key: 0,
6915
6897
  placement: "top"
6916
6898
  }, {
6917
6899
  content: A(() => [
6918
- typeof x == "string" ? ($(), O("span", Vi, de(x), 1)) : ($(), j($e(x), { key: 1 }))
6900
+ typeof x == "string" ? ($(), O("span", Mi, de(x), 1)) : ($(), j($e(x), { key: 1 }))
6919
6901
  ]),
6920
6902
  default: A(() => [
6921
6903
  I(g, { class: "tip-icon" }, {
@@ -6927,10 +6909,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6927
6909
  ]),
6928
6910
  _: 2
6929
6911
  }, 1024)) : ce("", !0),
6930
- Ii
6912
+ Ei
6931
6913
  ]),
6932
- D("div", Ai, [
6933
- ($(), j($e(F($t).get(w)), rt({
6914
+ D("div", Vi, [
6915
+ ($(), j($e(F($t).get(w)), st({
6934
6916
  label: h,
6935
6917
  bindKey: k,
6936
6918
  optionType: b,
@@ -6971,10 +6953,10 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6971
6953
  ])
6972
6954
  ])) : ce("", !0)
6973
6955
  ], 64))), 128))
6974
- ])) : ($(), O("div", Pi, "请选择一个元素"));
6956
+ ])) : ($(), O("div", Ii, "请选择一个元素"));
6975
6957
  };
6976
6958
  }
6977
- }), Di = /* @__PURE__ */ ae(Oi, [["__scopeId", "data-v-46ebd3ac"]]), zi = { class: "frame-paste" }, Li = /* @__PURE__ */ X({
6959
+ }), Pi = /* @__PURE__ */ ae(Ai, [["__scopeId", "data-v-46ebd3ac"]]), Oi = { class: "frame-paste" }, Di = /* @__PURE__ */ X({
6978
6960
  name: "paste-board",
6979
6961
  inheritAttrs: !1,
6980
6962
  __name: "index",
@@ -6983,12 +6965,12 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
6983
6965
  },
6984
6966
  emits: ["update:data"],
6985
6967
  setup(a) {
6986
- const t = Ce([]), l = ue(a, "data"), o = ft(l);
6968
+ const t = Ce([]), l = ue(a, "data"), o = pt(l);
6987
6969
  _e(
6988
6970
  () => o.globalCopy.value,
6989
6971
  () => {
6990
6972
  try {
6991
- t.value = JSON.parse(sessionStorage.getItem(st) ?? "[]");
6973
+ t.value = JSON.parse(sessionStorage.getItem(nt) ?? "[]");
6992
6974
  } catch {
6993
6975
  t.value = [];
6994
6976
  }
@@ -7001,11 +6983,11 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7001
6983
  o.handlePaste(je(p));
7002
6984
  }, c = (p) => {
7003
6985
  const s = [...t.value];
7004
- s.splice(p, 1), t.value = s, sessionStorage.setItem(st, JSON.stringify(s));
6986
+ s.splice(p, 1), t.value = s, sessionStorage.setItem(nt, JSON.stringify(s));
7005
6987
  };
7006
6988
  return (p, s) => {
7007
6989
  const v = U("el-table-column"), r = U("el-tag"), i = U("el-space"), d = U("el-link"), f = U("el-table");
7008
- return $(), O("div", zi, [
6990
+ return $(), O("div", Oi, [
7009
6991
  I(f, {
7010
6992
  size: "small",
7011
6993
  "empty-text": "暂无数据",
@@ -7081,7 +7063,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7081
7063
  ]);
7082
7064
  };
7083
7065
  }
7084
- }), Wi = /* @__PURE__ */ ae(Li, [["__scopeId", "data-v-07274a24"]]), Hi = /* @__PURE__ */ X({
7066
+ }), zi = /* @__PURE__ */ ae(Di, [["__scopeId", "data-v-07274a24"]]), Li = /* @__PURE__ */ X({
7085
7067
  name: "frame-editor",
7086
7068
  inheritAttrs: !1,
7087
7069
  __name: "index",
@@ -7106,21 +7088,21 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7106
7088
  clone: (b) => {
7107
7089
  try {
7108
7090
  if (b && typeof b == "string")
7109
- return nt(jt(b), io(b));
7091
+ return at(jt(b), so(b));
7110
7092
  } catch (y) {
7111
7093
  ge.error(y.message ?? "解析失败");
7112
7094
  }
7113
7095
  return b;
7114
7096
  }
7115
7097
  });
7116
- const c = Do(n), p = Lo(n);
7117
- Wo(n), Ro(n), zl(n);
7098
+ const c = Po(n), p = Do(n);
7099
+ zo(n), Wo(n), Ol(n);
7118
7100
  const s = G([]);
7119
- _o(() => {
7101
+ go(() => {
7120
7102
  try {
7121
7103
  if (n.xmlString && typeof n.xmlString == "string") {
7122
7104
  const b = jt(n.xmlString);
7123
- b.length === 0 && ge.warning("解析 XML 是空白帧,内部不含任何元素"), s.value = uo(b, p.value);
7105
+ b.length === 0 && ge.warning("解析 XML 是空白帧,内部不含任何元素"), s.value = ro(b, p.value);
7124
7106
  return;
7125
7107
  }
7126
7108
  } catch (b) {
@@ -7130,21 +7112,21 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7130
7112
  });
7131
7113
  const v = () => {
7132
7114
  try {
7133
- const b = nt(je(s.value), { ...c.value, ...p.value });
7115
+ const b = at(je(s.value), { ...c.value, ...p.value });
7134
7116
  o("code", b);
7135
7117
  } catch (b) {
7136
7118
  ge.error(b.message ?? "查看XML失败");
7137
7119
  }
7138
7120
  }, r = () => {
7139
7121
  try {
7140
- const b = nt(je(s.value), { ...c.value, ...p.value });
7122
+ const b = at(je(s.value), { ...c.value, ...p.value });
7141
7123
  o("preview", b);
7142
7124
  } catch (b) {
7143
7125
  ge.error(b.message ?? "预览失败");
7144
7126
  }
7145
7127
  }, i = () => {
7146
7128
  try {
7147
- const b = nt(je(s.value), { ...c.value, ...p.value });
7129
+ const b = at(je(s.value), { ...c.value, ...p.value });
7148
7130
  o("save", b);
7149
7131
  } catch (b) {
7150
7132
  ge.error(b.message ?? "保存失败");
@@ -7155,8 +7137,8 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7155
7137
  b < 0 ? u.value === 0 ? (m.value -= 15, u.value = 15) : (m.value += u.value, u.value = 0) : g.value === 0 ? (m.value -= 25, g.value = 25) : (m.value += g.value, g.value = 0);
7156
7138
  }, w = ({ panes: b }) => {
7157
7139
  u.value = b[0].size, m.value = b[1].size, g.value = b[2].size;
7158
- }, k = pt("frame-editor-global", (b) => o("global", b));
7159
- return Ge(() => {
7140
+ }, k = dt("frame-editor-global", (b) => o("global", b));
7141
+ return Xe(() => {
7160
7142
  k();
7161
7143
  }), (b, y) => {
7162
7144
  const S = U("el-tab-pane"), _ = U("el-tabs"), T = U("el-button");
@@ -7164,7 +7146,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7164
7146
  class: xe(["frame-editor", b.className]),
7165
7147
  style: J(b.style)
7166
7148
  }, [
7167
- I(F(ko), {
7149
+ I(F(_o), {
7168
7150
  class: "default-theme",
7169
7151
  onResize: w
7170
7152
  }, {
@@ -7181,7 +7163,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7181
7163
  name: "widget"
7182
7164
  }, {
7183
7165
  default: A(() => [
7184
- I(Cs, {
7166
+ I($s, {
7185
7167
  data: s.value,
7186
7168
  "onUpdate:data": y[0] || (y[0] = (x) => s.value = x)
7187
7169
  }, null, 8, ["data"])
@@ -7193,7 +7175,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7193
7175
  name: "structure"
7194
7176
  }, {
7195
7177
  default: A(() => [
7196
- I(zs, {
7178
+ I(Os, {
7197
7179
  data: s.value,
7198
7180
  "onUpdate:data": y[1] || (y[1] = (x) => s.value = x)
7199
7181
  }, null, 8, ["data"])
@@ -7214,7 +7196,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7214
7196
  icon: u.value === 0 ? "ArrowRight" : "ArrowLeft",
7215
7197
  onClick: y[3] || (y[3] = (x) => h(-1))
7216
7198
  }, null, 8, ["style", "icon"]),
7217
- I(Us, {
7199
+ I(Ks, {
7218
7200
  data: s.value,
7219
7201
  "onUpdate:data": y[4] || (y[4] = (x) => s.value = x),
7220
7202
  onSave: i,
@@ -7222,7 +7204,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7222
7204
  onPreview: r,
7223
7205
  onCode: v
7224
7206
  }, null, 8, ["data"]),
7225
- I(er, {
7207
+ I(Js, {
7226
7208
  data: s.value,
7227
7209
  "onUpdate:data": y[5] || (y[5] = (x) => s.value = x),
7228
7210
  bgcolor: b.bgcolor
@@ -7248,7 +7230,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7248
7230
  name: "property"
7249
7231
  }, {
7250
7232
  default: A(() => [
7251
- I(Di, {
7233
+ I(Pi, {
7252
7234
  data: s.value,
7253
7235
  "onUpdate:data": y[7] || (y[7] = (x) => s.value = x)
7254
7236
  }, null, 8, ["data"])
@@ -7260,7 +7242,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7260
7242
  name: "clipboard"
7261
7243
  }, {
7262
7244
  default: A(() => [
7263
- I(Wi, {
7245
+ I(zi, {
7264
7246
  data: s.value,
7265
7247
  "onUpdate:data": y[8] || (y[8] = (x) => s.value = x)
7266
7248
  }, null, 8, ["data"])
@@ -7279,7 +7261,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7279
7261
  ], 6);
7280
7262
  };
7281
7263
  }
7282
- }), xt = /* @__PURE__ */ ae(Hi, [["__scopeId", "data-v-e303ba54"]]), Ri = { class: "frame-view" }, Ki = ["onClick", "onDblclick"], Fi = /* @__PURE__ */ X({
7264
+ }), xt = /* @__PURE__ */ ae(Li, [["__scopeId", "data-v-e303ba54"]]), Wi = { class: "frame-view" }, Hi = ["onClick", "onDblclick"], Ri = /* @__PURE__ */ X({
7283
7265
  name: "frame-view",
7284
7266
  inheritAttrs: !1,
7285
7267
  __name: "index",
@@ -7316,7 +7298,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7316
7298
  o("action", s, d);
7317
7299
  }
7318
7300
  };
7319
- return (s, v) => ($(), O("div", Ri, [
7301
+ return (s, v) => ($(), O("div", Wi, [
7320
7302
  ($(!0), O(le, null, fe(s.frameDatas, (r) => {
7321
7303
  var i, d;
7322
7304
  return $(), O("div", {
@@ -7326,21 +7308,21 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7326
7308
  onClick: (f) => p("click", r),
7327
7309
  onDblclick: (f) => p("dblclick", r)
7328
7310
  }, [
7329
- ($(), j($e((i = F(Ae).get(r.type)) == null ? void 0 : i.view), rt({
7311
+ ($(), j($e((i = F(Ae).get(r.type)) == null ? void 0 : i.view), st({
7330
7312
  id: r.id,
7331
7313
  rect: r.rect,
7332
7314
  liveDatas: (d = s.liveDatas) == null ? void 0 : d[r.id],
7333
7315
  playIndex: s.playIndex,
7334
7316
  preview: ""
7335
7317
  }, r.props), null, 16, ["id", "rect", "liveDatas", "playIndex"]))
7336
- ], 46, Ki);
7318
+ ], 46, Hi);
7337
7319
  }), 128))
7338
7320
  ]));
7339
7321
  }
7340
- }), Ui = /* @__PURE__ */ ae(Fi, [["__scopeId", "data-v-b89d4c7c"]]), Ni = {
7322
+ }), Ki = /* @__PURE__ */ ae(Ri, [["__scopeId", "data-v-b89d4c7c"]]), Fi = {
7341
7323
  key: 1,
7342
7324
  style: { color: "red" }
7343
- }, Bi = /* @__PURE__ */ X({
7325
+ }, Ui = /* @__PURE__ */ X({
7344
7326
  name: "frame-preview",
7345
7327
  inheritAttrs: !1,
7346
7328
  __name: "preview",
@@ -7359,11 +7341,11 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7359
7341
  emits: ["action", "change"],
7360
7342
  setup(a, { emit: t }) {
7361
7343
  const l = t, o = a;
7362
- zl(o);
7344
+ Ol(o);
7363
7345
  const n = N(() => {
7364
7346
  try {
7365
7347
  if (o.xmlString && typeof o.xmlString == "string") {
7366
- const y = gs(o.xmlString);
7348
+ const y = ms(o.xmlString);
7367
7349
  return y || ge.warning("预览的是空白帧,内部不含任何元素"), y;
7368
7350
  }
7369
7351
  } catch (y) {
@@ -7399,7 +7381,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7399
7381
  ([y, S]) => {
7400
7382
  if (d(), y) {
7401
7383
  const { frames: _, durations: T } = y, x = _.length;
7402
- x === 0 ? r.value = null : x === 1 || !S ? (r.value = _[0], s.value = S ? -1 : 0, v.value = S ? -1 : 0) : (i = new Ll(
7384
+ x === 0 ? r.value = null : x === 1 || !S ? (r.value = _[0], s.value = S ? -1 : 0, v.value = S ? -1 : 0) : (i = new Dl(
7403
7385
  (E) => {
7404
7386
  const M = r.value = _[E];
7405
7387
  return l("change", E, M), T[E];
@@ -7443,7 +7425,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7443
7425
  }
7444
7426
  }, m = (y, S) => {
7445
7427
  l("action", y, S);
7446
- }, { elRef: h, width: w, height: k } = dt(), b = N(() => {
7428
+ }, { elRef: h, width: w, height: k } = ct(), b = N(() => {
7447
7429
  if (o.autoScale && n.value) {
7448
7430
  const y = Math.min(
7449
7431
  w.value / n.value.width,
@@ -7486,7 +7468,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7486
7468
  ...y.bgcolor ? { background: y.bgcolor, boxShadow: "none" } : {}
7487
7469
  })
7488
7470
  }, [
7489
- r.value ? ($(), j(Ui, {
7471
+ r.value ? ($(), j(Ki, {
7490
7472
  key: 0,
7491
7473
  frameDatas: r.value,
7492
7474
  liveDatas: p.value,
@@ -7494,7 +7476,7 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7494
7476
  selectedData: y.selectedData,
7495
7477
  showElBorder: y.showElBorder,
7496
7478
  onAction: m
7497
- }, null, 8, ["frameDatas", "liveDatas", "playIndex", "selectedData", "showElBorder"])) : ($(), O("div", Ni, "当前没有任何帧"))
7479
+ }, null, 8, ["frameDatas", "liveDatas", "playIndex", "selectedData", "showElBorder"])) : ($(), O("div", Fi, "当前没有任何帧"))
7498
7480
  ], 4)
7499
7481
  ], 4),
7500
7482
  !y.autoPlay && y.useLiveData && n.value ? ($(), j(_, {
@@ -7510,16 +7492,16 @@ const qs = ["onClick"], js = /* @__PURE__ */ X({
7510
7492
  ], 6);
7511
7493
  };
7512
7494
  }
7513
- }), Ct = /* @__PURE__ */ ae(Bi, [["__scopeId", "data-v-220c7a08"]]);
7495
+ }), Ct = /* @__PURE__ */ ae(Ui, [["__scopeId", "data-v-220c7a08"]]);
7514
7496
  xt.install = (a) => {
7515
7497
  a.component(xt.name || "FrameEditor", xt);
7516
7498
  };
7517
7499
  Ct.install = (a) => {
7518
7500
  a.component(Ct.name || "FramePreview", Ct);
7519
7501
  };
7520
- const lu = xt, ou = Ct, au = "1.0.0";
7502
+ const eu = xt, tu = Ct, lu = "1.0.0";
7521
7503
  export {
7522
- lu as FrameEditor,
7523
- ou as FramePreview,
7524
- au as version
7504
+ eu as FrameEditor,
7505
+ tu as FramePreview,
7506
+ lu as version
7525
7507
  };