gp-designer 1.0.93 → 1.0.95
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/gp-designer.es.js +756 -743
- package/dist/gp-designer.umd.js +9 -9
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/gp-designer.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as De, ref as z, computed as Ke, openBlock as
|
1
|
+
import { defineComponent as De, ref as z, computed as Ke, openBlock as M, createBlock as Ve, Transition as y0, withCtx as kr, createElementBlock as V, createElementVNode as b, normalizeClass as ui, renderSlot as vr, createCommentVNode as q, toDisplayString as IA, reactive as x0, createApp as _0, h as Vi, watch as ne, resolveComponent as S0, Fragment as Yt, unref as CA, resolveDynamicComponent as Yi, mergeProps as Xi, withModifiers as PA, createTextVNode as ds, renderList as kn, toRaw as Go, withDirectives as pe, vModelSelect as La, vModelText as ze, createVNode as xe, toRefs as L0, onMounted as H0, nextTick as Wi, normalizeStyle as gs, vModelCheckbox as N0 } from "vue";
|
2
2
|
var cA;
|
3
3
|
(function(A) {
|
4
4
|
A.Root = "root", A.Text = "text", A.Directive = "directive", A.Comment = "comment", A.Script = "script", A.Style = "style", A.Tag = "tag", A.CDATA = "cdata", A.Doctype = "doctype";
|
@@ -350,42 +350,42 @@ function J0(A) {
|
|
350
350
|
var e;
|
351
351
|
return A >= 55296 && A <= 57343 || A > 1114111 ? 65533 : (e = W0.get(A)) !== null && e !== void 0 ? e : A;
|
352
352
|
}
|
353
|
-
var
|
353
|
+
var GA;
|
354
354
|
(function(A) {
|
355
355
|
A[A.NUM = 35] = "NUM", A[A.SEMI = 59] = "SEMI", A[A.EQUALS = 61] = "EQUALS", A[A.ZERO = 48] = "ZERO", A[A.NINE = 57] = "NINE", A[A.LOWER_A = 97] = "LOWER_A", A[A.LOWER_F = 102] = "LOWER_F", A[A.LOWER_X = 120] = "LOWER_X", A[A.LOWER_Z = 122] = "LOWER_Z", A[A.UPPER_A = 65] = "UPPER_A", A[A.UPPER_F = 70] = "UPPER_F", A[A.UPPER_Z = 90] = "UPPER_Z";
|
356
|
-
})(
|
356
|
+
})(GA || (GA = {}));
|
357
357
|
const q0 = 32;
|
358
358
|
var rt;
|
359
359
|
(function(A) {
|
360
360
|
A[A.VALUE_LENGTH = 49152] = "VALUE_LENGTH", A[A.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", A[A.JUMP_TABLE = 127] = "JUMP_TABLE";
|
361
361
|
})(rt || (rt = {}));
|
362
362
|
function Es(A) {
|
363
|
-
return A >=
|
363
|
+
return A >= GA.ZERO && A <= GA.NINE;
|
364
364
|
}
|
365
365
|
function j0(A) {
|
366
|
-
return A >=
|
366
|
+
return A >= GA.UPPER_A && A <= GA.UPPER_F || A >= GA.LOWER_A && A <= GA.LOWER_F;
|
367
367
|
}
|
368
368
|
function z0(A) {
|
369
|
-
return A >=
|
369
|
+
return A >= GA.UPPER_A && A <= GA.UPPER_Z || A >= GA.LOWER_A && A <= GA.LOWER_Z || Es(A);
|
370
370
|
}
|
371
371
|
function $0(A) {
|
372
|
-
return A ===
|
372
|
+
return A === GA.EQUALS || z0(A);
|
373
373
|
}
|
374
|
-
var
|
374
|
+
var kA;
|
375
375
|
(function(A) {
|
376
376
|
A[A.EntityStart = 0] = "EntityStart", A[A.NumericStart = 1] = "NumericStart", A[A.NumericDecimal = 2] = "NumericDecimal", A[A.NumericHex = 3] = "NumericHex", A[A.NamedEntity = 4] = "NamedEntity";
|
377
|
-
})(
|
378
|
-
var
|
377
|
+
})(kA || (kA = {}));
|
378
|
+
var we;
|
379
379
|
(function(A) {
|
380
380
|
A[A.Legacy = 0] = "Legacy", A[A.Strict = 1] = "Strict", A[A.Attribute = 2] = "Attribute";
|
381
|
-
})(
|
381
|
+
})(we || (we = {}));
|
382
382
|
class gi {
|
383
383
|
constructor(e, t, r) {
|
384
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = r, this.state =
|
384
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = r, this.state = kA.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = we.Strict;
|
385
385
|
}
|
386
386
|
/** Resets the instance to make it reusable. */
|
387
387
|
startEntity(e) {
|
388
|
-
this.decodeMode = e, this.state =
|
388
|
+
this.decodeMode = e, this.state = kA.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
389
389
|
}
|
390
390
|
/**
|
391
391
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
@@ -400,15 +400,15 @@ class gi {
|
|
400
400
|
*/
|
401
401
|
write(e, t) {
|
402
402
|
switch (this.state) {
|
403
|
-
case
|
404
|
-
return e.charCodeAt(t) ===
|
405
|
-
case
|
403
|
+
case kA.EntityStart:
|
404
|
+
return e.charCodeAt(t) === GA.NUM ? (this.state = kA.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = kA.NamedEntity, this.stateNamedEntity(e, t));
|
405
|
+
case kA.NumericStart:
|
406
406
|
return this.stateNumericStart(e, t);
|
407
|
-
case
|
407
|
+
case kA.NumericDecimal:
|
408
408
|
return this.stateNumericDecimal(e, t);
|
409
|
-
case
|
409
|
+
case kA.NumericHex:
|
410
410
|
return this.stateNumericHex(e, t);
|
411
|
-
case
|
411
|
+
case kA.NamedEntity:
|
412
412
|
return this.stateNamedEntity(e, t);
|
413
413
|
}
|
414
414
|
}
|
@@ -422,7 +422,7 @@ class gi {
|
|
422
422
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
423
423
|
*/
|
424
424
|
stateNumericStart(e, t) {
|
425
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) | q0) ===
|
425
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | q0) === GA.LOWER_X ? (this.state = kA.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = kA.NumericDecimal, this.stateNumericDecimal(e, t));
|
426
426
|
}
|
427
427
|
addToNumericResult(e, t, r, n) {
|
428
428
|
if (t !== r) {
|
@@ -487,11 +487,11 @@ class gi {
|
|
487
487
|
var r;
|
488
488
|
if (this.consumed <= t)
|
489
489
|
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
490
|
-
if (e ===
|
490
|
+
if (e === GA.SEMI)
|
491
491
|
this.consumed += 1;
|
492
|
-
else if (this.decodeMode ===
|
492
|
+
else if (this.decodeMode === we.Strict)
|
493
493
|
return 0;
|
494
|
-
return this.emitCodePoint(J0(this.result), this.consumed), this.errors && (e !==
|
494
|
+
return this.emitCodePoint(J0(this.result), this.consumed), this.errors && (e !== GA.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
495
495
|
}
|
496
496
|
/**
|
497
497
|
* Parses a named entity.
|
@@ -509,13 +509,13 @@ class gi {
|
|
509
509
|
const s = e.charCodeAt(t);
|
510
510
|
if (this.treeIndex = Z0(r, n, this.treeIndex + Math.max(1, a), s), this.treeIndex < 0)
|
511
511
|
return this.result === 0 || // If we are parsing an attribute
|
512
|
-
this.decodeMode ===
|
512
|
+
this.decodeMode === we.Attribute && // We shouldn't have consumed any characters after the entity,
|
513
513
|
(a === 0 || // And there should be no invalid characters.
|
514
514
|
$0(s)) ? 0 : this.emitNotTerminatedNamedEntity();
|
515
515
|
if (n = r[this.treeIndex], a = (n & rt.VALUE_LENGTH) >> 14, a !== 0) {
|
516
|
-
if (s ===
|
516
|
+
if (s === GA.SEMI)
|
517
517
|
return this.emitNamedEntityData(this.treeIndex, a, this.consumed + this.excess);
|
518
|
-
this.decodeMode !==
|
518
|
+
this.decodeMode !== we.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
519
519
|
}
|
520
520
|
}
|
521
521
|
return -1;
|
@@ -553,15 +553,15 @@ class gi {
|
|
553
553
|
end() {
|
554
554
|
var e;
|
555
555
|
switch (this.state) {
|
556
|
-
case
|
557
|
-
return this.result !== 0 && (this.decodeMode !==
|
558
|
-
case
|
556
|
+
case kA.NamedEntity:
|
557
|
+
return this.result !== 0 && (this.decodeMode !== we.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
558
|
+
case kA.NumericDecimal:
|
559
559
|
return this.emitNumericEntity(0, 2);
|
560
|
-
case
|
560
|
+
case kA.NumericHex:
|
561
561
|
return this.emitNumericEntity(0, 3);
|
562
|
-
case
|
562
|
+
case kA.NumericStart:
|
563
563
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
564
|
-
case
|
564
|
+
case kA.EntityStart:
|
565
565
|
return 0;
|
566
566
|
}
|
567
567
|
}
|
@@ -1066,10 +1066,10 @@ function Sf(A) {
|
|
1066
1066
|
}
|
1067
1067
|
return A;
|
1068
1068
|
}
|
1069
|
-
var
|
1069
|
+
var me;
|
1070
1070
|
(function(A) {
|
1071
1071
|
A[A.DISCONNECTED = 1] = "DISCONNECTED", A[A.PRECEDING = 2] = "PRECEDING", A[A.FOLLOWING = 4] = "FOLLOWING", A[A.CONTAINS = 8] = "CONTAINS", A[A.CONTAINED_BY = 16] = "CONTAINED_BY";
|
1072
|
-
})(
|
1072
|
+
})(me || (me = {}));
|
1073
1073
|
function nc(A, e) {
|
1074
1074
|
const t = [], r = [];
|
1075
1075
|
if (A === e)
|
@@ -1084,14 +1084,14 @@ function nc(A, e) {
|
|
1084
1084
|
for (; s < a && t[s] === r[s]; )
|
1085
1085
|
s++;
|
1086
1086
|
if (s === 0)
|
1087
|
-
return
|
1087
|
+
return me.DISCONNECTED;
|
1088
1088
|
const u = t[s - 1], o = u.children, c = t[s], l = r[s];
|
1089
|
-
return o.indexOf(c) > o.indexOf(l) ? u === e ?
|
1089
|
+
return o.indexOf(c) > o.indexOf(l) ? u === e ? me.FOLLOWING | me.CONTAINED_BY : me.FOLLOWING : u === A ? me.PRECEDING | me.CONTAINS : me.PRECEDING;
|
1090
1090
|
}
|
1091
1091
|
function nr(A) {
|
1092
1092
|
return A = A.filter((e, t, r) => !r.includes(e, t + 1)), A.sort((e, t) => {
|
1093
1093
|
const r = nc(e, t);
|
1094
|
-
return r &
|
1094
|
+
return r & me.PRECEDING ? -1 : r & me.FOLLOWING ? 1 : 0;
|
1095
1095
|
}), A;
|
1096
1096
|
}
|
1097
1097
|
function Lf(A) {
|
@@ -1175,7 +1175,7 @@ function Rf(A) {
|
|
1175
1175
|
const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1176
1176
|
__proto__: null,
|
1177
1177
|
get DocumentPosition() {
|
1178
|
-
return
|
1178
|
+
return me;
|
1179
1179
|
},
|
1180
1180
|
append: bf,
|
1181
1181
|
appendChild: wf,
|
@@ -1315,7 +1315,7 @@ function Jf(A) {
|
|
1315
1315
|
function qf(A) {
|
1316
1316
|
return A.replace(/[A-Z]/g, "-$&").toLowerCase();
|
1317
1317
|
}
|
1318
|
-
function
|
1318
|
+
function yA(A, e) {
|
1319
1319
|
const t = A.length;
|
1320
1320
|
for (let r = 0; r < t; r++)
|
1321
1321
|
e(A[r], r);
|
@@ -1354,11 +1354,11 @@ function zf(A, e) {
|
|
1354
1354
|
if (typeof e == "function") {
|
1355
1355
|
if (typeof A != "string")
|
1356
1356
|
throw new Error("Bad combination of arguments.");
|
1357
|
-
return
|
1357
|
+
return yA(this, (t, r) => {
|
1358
1358
|
$(t) && qt(t, A, e.call(t, r, t.attribs[A]));
|
1359
1359
|
});
|
1360
1360
|
}
|
1361
|
-
return
|
1361
|
+
return yA(this, (t) => {
|
1362
1362
|
if ($(t))
|
1363
1363
|
if (typeof A == "object")
|
1364
1364
|
for (const r of Object.keys(A)) {
|
@@ -1417,11 +1417,11 @@ function $f(A, e) {
|
|
1417
1417
|
if (typeof e == "function") {
|
1418
1418
|
if (typeof A == "object")
|
1419
1419
|
throw new TypeError("Bad combination of arguments.");
|
1420
|
-
return
|
1420
|
+
return yA(this, (r, n) => {
|
1421
1421
|
$(r) && Da(r, A, e.call(r, n, $i(r, A, this.options.xmlMode)), this.options.xmlMode);
|
1422
1422
|
});
|
1423
1423
|
}
|
1424
|
-
return
|
1424
|
+
return yA(this, (r) => {
|
1425
1425
|
if ($(r))
|
1426
1426
|
if (typeof A == "object")
|
1427
1427
|
for (const n of Object.keys(A)) {
|
@@ -1476,7 +1476,7 @@ function eh(A, e) {
|
|
1476
1476
|
if (!r || !$(r))
|
1477
1477
|
return;
|
1478
1478
|
const n = r;
|
1479
|
-
return (t = n.data) !== null && t !== void 0 || (n.data = {}), A == null ? Zf(n) : typeof A == "object" || e !== void 0 ? (
|
1479
|
+
return (t = n.data) !== null && t !== void 0 || (n.data = {}), A == null ? Zf(n) : typeof A == "object" || e !== void 0 ? (yA(this, (a) => {
|
1480
1480
|
$(a) && (typeof A == "object" ? Zi(a, A) : Zi(a, A, e));
|
1481
1481
|
}), this) : Ah(n, A);
|
1482
1482
|
}
|
@@ -1514,7 +1514,7 @@ function Yn(A) {
|
|
1514
1514
|
function rh(A) {
|
1515
1515
|
const e = Yn(A);
|
1516
1516
|
for (const t of e)
|
1517
|
-
|
1517
|
+
yA(this, (r) => {
|
1518
1518
|
$(r) && oc(r, t);
|
1519
1519
|
});
|
1520
1520
|
return this;
|
@@ -1534,7 +1534,7 @@ function nh(A) {
|
|
1534
1534
|
}
|
1535
1535
|
function cc(A) {
|
1536
1536
|
if (typeof A == "function")
|
1537
|
-
return
|
1537
|
+
return yA(this, (r, n) => {
|
1538
1538
|
if ($(r)) {
|
1539
1539
|
const a = r.attribs.class || "";
|
1540
1540
|
cc.call([r], A.call(r, n, a));
|
@@ -1562,11 +1562,11 @@ function cc(A) {
|
|
1562
1562
|
}
|
1563
1563
|
function lc(A) {
|
1564
1564
|
if (typeof A == "function")
|
1565
|
-
return
|
1565
|
+
return yA(this, (n, a) => {
|
1566
1566
|
$(n) && lc.call([n], A.call(n, a, n.attribs.class || ""));
|
1567
1567
|
});
|
1568
1568
|
const e = Yn(A), t = e.length, r = arguments.length === 0;
|
1569
|
-
return
|
1569
|
+
return yA(this, (n) => {
|
1570
1570
|
if ($(n))
|
1571
1571
|
if (r)
|
1572
1572
|
n.attribs.class = "";
|
@@ -1583,7 +1583,7 @@ function lc(A) {
|
|
1583
1583
|
}
|
1584
1584
|
function fc(A, e) {
|
1585
1585
|
if (typeof A == "function")
|
1586
|
-
return
|
1586
|
+
return yA(this, (s, u) => {
|
1587
1587
|
$(s) && fc.call([s], A.call(s, u, s.attribs.class || "", e), e);
|
1588
1588
|
});
|
1589
1589
|
if (!A || typeof A != "string")
|
@@ -1618,17 +1618,17 @@ var W;
|
|
1618
1618
|
(function(A) {
|
1619
1619
|
A.Attribute = "attribute", A.Pseudo = "pseudo", A.PseudoElement = "pseudo-element", A.Tag = "tag", A.Universal = "universal", A.Adjacent = "adjacent", A.Child = "child", A.Descendant = "descendant", A.Parent = "parent", A.Sibling = "sibling", A.ColumnCombinator = "column-combinator";
|
1620
1620
|
})(W || (W = {}));
|
1621
|
-
var
|
1621
|
+
var DA;
|
1622
1622
|
(function(A) {
|
1623
1623
|
A.Any = "any", A.Element = "element", A.End = "end", A.Equals = "equals", A.Exists = "exists", A.Hyphen = "hyphen", A.Not = "not", A.Start = "start";
|
1624
|
-
})(
|
1624
|
+
})(DA || (DA = {}));
|
1625
1625
|
const Au = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/, sh = /\\([\da-f]{1,6}\s?|(\s)|.)/gi, ih = /* @__PURE__ */ new Map([
|
1626
|
-
[126,
|
1627
|
-
[94,
|
1628
|
-
[36,
|
1629
|
-
[42,
|
1630
|
-
[33,
|
1631
|
-
[124,
|
1626
|
+
[126, DA.Element],
|
1627
|
+
[94, DA.Start],
|
1628
|
+
[36, DA.End],
|
1629
|
+
[42, DA.Any],
|
1630
|
+
[33, DA.Not],
|
1631
|
+
[124, DA.Hyphen]
|
1632
1632
|
]), uh = /* @__PURE__ */ new Set([
|
1633
1633
|
"has",
|
1634
1634
|
"not",
|
@@ -1762,25 +1762,25 @@ function hc(A, e, t) {
|
|
1762
1762
|
break;
|
1763
1763
|
}
|
1764
1764
|
case 46: {
|
1765
|
-
l("class",
|
1765
|
+
l("class", DA.Element);
|
1766
1766
|
break;
|
1767
1767
|
}
|
1768
1768
|
case 35: {
|
1769
|
-
l("id",
|
1769
|
+
l("id", DA.Equals);
|
1770
1770
|
break;
|
1771
1771
|
}
|
1772
1772
|
case 91: {
|
1773
1773
|
a(1);
|
1774
1774
|
let m, E = null;
|
1775
1775
|
e.charCodeAt(t) === 124 ? m = n(1) : e.startsWith("*|", t) ? (E = "*", m = n(2)) : (m = n(0), e.charCodeAt(t) === 124 && e.charCodeAt(t + 1) !== 61 && (E = m, m = n(1))), a(0);
|
1776
|
-
let T =
|
1776
|
+
let T = DA.Exists;
|
1777
1777
|
const Q = ih.get(e.charCodeAt(t));
|
1778
1778
|
if (Q) {
|
1779
1779
|
if (T = Q, e.charCodeAt(t + 1) !== 61)
|
1780
1780
|
throw new Error("Expected `=`");
|
1781
1781
|
a(2);
|
1782
|
-
} else e.charCodeAt(t) === 61 && (T =
|
1783
|
-
let
|
1782
|
+
} else e.charCodeAt(t) === 61 && (T = DA.Equals, a(1));
|
1783
|
+
let w = "", x = null;
|
1784
1784
|
if (T !== "exists") {
|
1785
1785
|
if (Oa(e.charCodeAt(t))) {
|
1786
1786
|
const H = e.charCodeAt(t);
|
@@ -1789,12 +1789,12 @@ function hc(A, e, t) {
|
|
1789
1789
|
p += 1;
|
1790
1790
|
if (e.charCodeAt(p) !== H)
|
1791
1791
|
throw new Error("Attribute value didn't end");
|
1792
|
-
|
1792
|
+
w = ur(e.slice(t + 1, p)), t = p + 1;
|
1793
1793
|
} else {
|
1794
1794
|
const H = t;
|
1795
1795
|
for (; t < e.length && (!eu(e.charCodeAt(t)) && e.charCodeAt(t) !== 93 || u(t)); )
|
1796
1796
|
t += 1;
|
1797
|
-
|
1797
|
+
w = ur(e.slice(H, t));
|
1798
1798
|
}
|
1799
1799
|
a(0);
|
1800
1800
|
const K = e.charCodeAt(t) | 32;
|
@@ -1807,7 +1807,7 @@ function hc(A, e, t) {
|
|
1807
1807
|
type: W.Attribute,
|
1808
1808
|
name: m,
|
1809
1809
|
action: T,
|
1810
|
-
value:
|
1810
|
+
value: w,
|
1811
1811
|
namespace: E,
|
1812
1812
|
ignoreCase: x
|
1813
1813
|
};
|
@@ -1893,12 +1893,12 @@ function wi(A) {
|
|
1893
1893
|
return !dc.has(A.type);
|
1894
1894
|
}
|
1895
1895
|
const fh = /* @__PURE__ */ new Map([
|
1896
|
-
[
|
1897
|
-
[
|
1898
|
-
[
|
1899
|
-
[
|
1900
|
-
[
|
1901
|
-
[
|
1896
|
+
[DA.Exists, 10],
|
1897
|
+
[DA.Equals, 8],
|
1898
|
+
[DA.Not, 7],
|
1899
|
+
[DA.Start, 6],
|
1900
|
+
[DA.End, 6],
|
1901
|
+
[DA.Any, 5]
|
1902
1902
|
]);
|
1903
1903
|
function hh(A) {
|
1904
1904
|
const e = A.map(gc);
|
@@ -1914,7 +1914,7 @@ function hh(A) {
|
|
1914
1914
|
function gc(A) {
|
1915
1915
|
var e, t;
|
1916
1916
|
let r = (e = dc.get(A.type)) !== null && e !== void 0 ? e : -1;
|
1917
|
-
return A.type === W.Attribute ? (r = (t = fh.get(A.action)) !== null && t !== void 0 ? t : 4, A.action ===
|
1917
|
+
return A.type === W.Attribute ? (r = (t = fh.get(A.action)) !== null && t !== void 0 ? t : 4, A.action === DA.Equals && A.name === "id" && (r = 9), A.ignoreCase && (r >>= 1)) : A.type === W.Pseudo && (A.data ? A.name === "has" || A.name === "contains" ? r = 0 : Array.isArray(A.data) ? (r = Math.min(...A.data.map((n) => Math.min(...n.map(gc)))), r < 0 && (r = 0)) : r = 2 : r = 3), r;
|
1918
1918
|
}
|
1919
1919
|
const dh = /[-[\]{}()*+?.,\\^$|#\s]/g;
|
1920
1920
|
function tu(A) {
|
@@ -2770,7 +2770,7 @@ function Fi(A, ...e) {
|
|
2770
2770
|
let t = null;
|
2771
2771
|
const r = Ui((n, a) => {
|
2772
2772
|
const s = [];
|
2773
|
-
return
|
2773
|
+
return yA(a, (u) => {
|
2774
2774
|
for (let o; (o = n(u)) && !(t != null && t(o, s.length)); u = o)
|
2775
2775
|
s.push(o);
|
2776
2776
|
}), s;
|
@@ -2799,7 +2799,7 @@ function Jh(A) {
|
|
2799
2799
|
xmlMode: this.options.xmlMode,
|
2800
2800
|
root: (e = this._root) === null || e === void 0 ? void 0 : e[0]
|
2801
2801
|
}, n = typeof A == "string" ? (a) => bc(a, A, r) : Zr(A);
|
2802
|
-
return
|
2802
|
+
return yA(this, (a) => {
|
2803
2803
|
for (a && !ht(a) && !$(a) && (a = a.parent); a && $(a); ) {
|
2804
2804
|
if (n(a, 0)) {
|
2805
2805
|
t.includes(a) || t.push(a);
|
@@ -2989,7 +2989,7 @@ function bd(A, e) {
|
|
2989
2989
|
function Ic(A) {
|
2990
2990
|
return function(...e) {
|
2991
2991
|
const t = this.length - 1;
|
2992
|
-
return
|
2992
|
+
return yA(this, (r, n) => {
|
2993
2993
|
if (!VA(r))
|
2994
2994
|
return;
|
2995
2995
|
const a = typeof e[0] == "function" ? e[0].call(r, n, this._render(r.children)) : e, s = this._makeDomArray(a, n < t);
|
@@ -3074,7 +3074,7 @@ function xd(A) {
|
|
3074
3074
|
}
|
3075
3075
|
function _d(...A) {
|
3076
3076
|
const e = this.length - 1;
|
3077
|
-
return
|
3077
|
+
return yA(this, (t, r) => {
|
3078
3078
|
if (!VA(t) || !t.parent)
|
3079
3079
|
return;
|
3080
3080
|
const n = t.parent.children, a = n.indexOf(t);
|
@@ -3098,7 +3098,7 @@ function Sd(A) {
|
|
3098
3098
|
}
|
3099
3099
|
function Ld(...A) {
|
3100
3100
|
const e = this.length - 1;
|
3101
|
-
return
|
3101
|
+
return yA(this, (t, r) => {
|
3102
3102
|
if (!VA(t) || !t.parent)
|
3103
3103
|
return;
|
3104
3104
|
const n = t.parent.children, a = n.indexOf(t);
|
@@ -3112,7 +3112,7 @@ function Hd(A) {
|
|
3112
3112
|
const e = this._make(A);
|
3113
3113
|
this.remove();
|
3114
3114
|
const t = [];
|
3115
|
-
return
|
3115
|
+
return yA(e, (r) => {
|
3116
3116
|
const n = this.clone().toArray(), { parent: a } = r;
|
3117
3117
|
if (!a)
|
3118
3118
|
return;
|
@@ -3122,12 +3122,12 @@ function Hd(A) {
|
|
3122
3122
|
}
|
3123
3123
|
function Nd(A) {
|
3124
3124
|
const e = A ? this.filter(A) : this;
|
3125
|
-
return
|
3125
|
+
return yA(e, (t) => {
|
3126
3126
|
yt(t), t.prev = t.next = t.parent = null;
|
3127
3127
|
}), this;
|
3128
3128
|
}
|
3129
3129
|
function Dd(A) {
|
3130
|
-
return
|
3130
|
+
return yA(this, (e, t) => {
|
3131
3131
|
const { parent: r } = e;
|
3132
3132
|
if (!r)
|
3133
3133
|
return;
|
@@ -3138,7 +3138,7 @@ function Dd(A) {
|
|
3138
3138
|
});
|
3139
3139
|
}
|
3140
3140
|
function Od() {
|
3141
|
-
return
|
3141
|
+
return yA(this, (A) => {
|
3142
3142
|
if (VA(A)) {
|
3143
3143
|
for (const e of A.children)
|
3144
3144
|
e.next = e.prev = e.parent = null;
|
@@ -3151,7 +3151,7 @@ function Rd(A) {
|
|
3151
3151
|
const e = this[0];
|
3152
3152
|
return !e || !VA(e) ? null : this._render(e.children);
|
3153
3153
|
}
|
3154
|
-
return
|
3154
|
+
return yA(this, (e) => {
|
3155
3155
|
if (!VA(e))
|
3156
3156
|
return;
|
3157
3157
|
for (const r of e.children)
|
@@ -3164,7 +3164,7 @@ function Md() {
|
|
3164
3164
|
return this._render(this);
|
3165
3165
|
}
|
3166
3166
|
function kd(A) {
|
3167
|
-
return A === void 0 ? Gr(this) : typeof A == "function" ?
|
3167
|
+
return A === void 0 ? Gr(this) : typeof A == "function" ? yA(this, (e, t) => this._make(e).text(A.call(e, t, Gr([e])))) : yA(this, (e) => {
|
3168
3168
|
if (!VA(e))
|
3169
3169
|
return;
|
3170
3170
|
for (const r of e.children)
|
@@ -3205,7 +3205,7 @@ const Kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3205
3205
|
function Gd(A, e) {
|
3206
3206
|
if (A != null && e != null || // When `prop` is a "plain" object
|
3207
3207
|
typeof A == "object" && !Array.isArray(A))
|
3208
|
-
return
|
3208
|
+
return yA(this, (t, r) => {
|
3209
3209
|
$(t) && xc(t, A, e, r);
|
3210
3210
|
});
|
3211
3211
|
if (this.length !== 0)
|
@@ -3357,7 +3357,7 @@ function Ag(A, e) {
|
|
3357
3357
|
const E = ms(m, s), T = typeof h == "string" ? [A(h, E, !1, null)] : "length" in h ? h : [h], Q = Ye(T) ? T : new o(T, null, E);
|
3358
3358
|
if (Q._root = Q, !l)
|
3359
3359
|
return new o(void 0, Q, E);
|
3360
|
-
const
|
3360
|
+
const w = typeof l == "string" && Cs(l) ? (
|
3361
3361
|
// $(<html>)
|
3362
3362
|
A(l, E, !1, null).children
|
3363
3363
|
) : eg(l) ? (
|
@@ -3366,8 +3366,8 @@ function Ag(A, e) {
|
|
3366
3366
|
) : Array.isArray(l) ? (
|
3367
3367
|
// $([dom])
|
3368
3368
|
l
|
3369
|
-
) : void 0, x = new o(
|
3370
|
-
if (
|
3369
|
+
) : void 0, x = new o(w, Q, E);
|
3370
|
+
if (w)
|
3371
3371
|
return x;
|
3372
3372
|
if (typeof l != "string")
|
3373
3373
|
throw new TypeError("Unexpected type of selector");
|
@@ -4062,7 +4062,7 @@ let dg = class {
|
|
4062
4062
|
}
|
4063
4063
|
// Character reference helpers
|
4064
4064
|
_startCharacterReference() {
|
4065
|
-
this.returnState = this.state, this.state = g.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ?
|
4065
|
+
this.returnState = this.state, this.state = g.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? we.Attribute : we.Legacy);
|
4066
4066
|
}
|
4067
4067
|
_isCharacterReferenceInAttribute() {
|
4068
4068
|
return this.returnState === g.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === g.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === g.ATTRIBUTE_VALUE_UNQUOTED;
|
@@ -9223,7 +9223,7 @@ let kp = class {
|
|
9223
9223
|
t === JA.TitleEnd[3] ? this.startSpecial(JA.TitleEnd, 4) : t === JA.TextareaEnd[3] ? this.startSpecial(JA.TextareaEnd, 4) : (this.state = S.InTagName, this.stateInTagName(e));
|
9224
9224
|
}
|
9225
9225
|
startEntity() {
|
9226
|
-
this.baseState = this.state, this.state = S.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ?
|
9226
|
+
this.baseState = this.state, this.state = S.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? we.Strict : this.baseState === S.Text || this.baseState === S.InSpecialTag ? we.Legacy : we.Attribute);
|
9227
9227
|
}
|
9228
9228
|
stateInEntity() {
|
9229
9229
|
const e = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
@@ -9764,22 +9764,22 @@ const Wp = De({
|
|
9764
9764
|
class: "text-yellow-500"
|
9765
9765
|
};
|
9766
9766
|
function AE(A, e, t, r, n, a) {
|
9767
|
-
return
|
9767
|
+
return M(), Ve(y0, { name: "fade" }, {
|
9768
9768
|
default: kr(() => [
|
9769
|
-
A.visible ? (
|
9770
|
-
|
9769
|
+
A.visible ? (M(), V("div", Jp, [
|
9770
|
+
b("div", {
|
9771
9771
|
class: ui([A.typeClass, "message-content"])
|
9772
9772
|
}, [
|
9773
|
-
A.icon ? (
|
9773
|
+
A.icon ? (M(), V("span", qp, [
|
9774
9774
|
vr(A.$slots, "icon", {}, () => [
|
9775
|
-
A.type === "success" ? (
|
9776
|
-
A.type === "error" ? (
|
9777
|
-
A.type === "info" ? (
|
9778
|
-
A.type === "warning" ? (
|
9775
|
+
A.type === "success" ? (M(), V("span", jp, "✔")) : q("", !0),
|
9776
|
+
A.type === "error" ? (M(), V("span", zp, "✖")) : q("", !0),
|
9777
|
+
A.type === "info" ? (M(), V("span", $p, "ℹ")) : q("", !0),
|
9778
|
+
A.type === "warning" ? (M(), V("span", Zp, "⚠")) : q("", !0)
|
9779
9779
|
], !0)
|
9780
9780
|
])) : q("", !0),
|
9781
|
-
|
9782
|
-
|
9781
|
+
b("span", null, IA(A.message), 1),
|
9782
|
+
b("button", {
|
9783
9783
|
class: "close-btn hover:text-gray-800 font-bold",
|
9784
9784
|
onClick: e[0] || (e[0] = (...s) => A.closeMessage && A.closeMessage(...s))
|
9785
9785
|
}, " × ")
|
@@ -10007,7 +10007,7 @@ const aE = ["onClick"], sE = {
|
|
10007
10007
|
function Q(I) {
|
10008
10008
|
r("hoverElement", I);
|
10009
10009
|
}
|
10010
|
-
function
|
10010
|
+
function w(I) {
|
10011
10011
|
I.currentTarget.contains(I.relatedTarget) ? r("hoverElement", null) : t.hoveredElement ? r("hoverElement", null, t.hoveredElement.parentxpath) : r("hoverElement", null);
|
10012
10012
|
}
|
10013
10013
|
function x() {
|
@@ -10034,10 +10034,10 @@ const aE = ["onClick"], sE = {
|
|
10034
10034
|
let _t = Object.entries(sA.attrs || {}).filter(([oA, mA]) => oA !== "class").map(([oA, mA]) => `${oA}="${mA}"`).join(" ");
|
10035
10035
|
const St = Object.entries(Je || {}).map(([oA, mA]) => `${oA}="${mA.trim()}"`).join(" ");
|
10036
10036
|
_t += St;
|
10037
|
-
const
|
10037
|
+
const de = `<${sA.tag}${_t ? " " + _t : ""}>`, Sa = `</${sA.tag}>`, F = (sA.children || []).map((oA) => I(oA)).join("");
|
10038
10038
|
let y = sA.editText || sA.text || "";
|
10039
10039
|
return y = y.replace(/\r\n/g, `
|
10040
|
-
`).replace(/\n/g, "<br>"), `${
|
10040
|
+
`).replace(/\n/g, "<br>"), `${de}${y}${F}${Sa}`;
|
10041
10041
|
}
|
10042
10042
|
return I(t.element);
|
10043
10043
|
}
|
@@ -10047,7 +10047,7 @@ const aE = ["onClick"], sE = {
|
|
10047
10047
|
let _ = ((wA = I.clipboardData) == null ? void 0 : wA.getData("text/plain")) || "";
|
10048
10048
|
(Je = t.element.rule) != null && Je.allowWrap ? (_ = _ == null ? void 0 : _.replace(/\n/g, "<br>"), document.execCommand("insertHTML", !1, _)) : (_ = _ == null ? void 0 : _.replace(/\n/g, " "), document.execCommand("insertText", !1, _));
|
10049
10049
|
const sA = I.target, AA = sA.innerText || sA.textContent || "";
|
10050
|
-
|
10050
|
+
O(AA);
|
10051
10051
|
}
|
10052
10052
|
function H(I) {
|
10053
10053
|
var _;
|
@@ -10056,9 +10056,9 @@ const aE = ["onClick"], sE = {
|
|
10056
10056
|
function p(I) {
|
10057
10057
|
I.stopPropagation();
|
10058
10058
|
const _ = I.target, sA = _.innerText || _.textContent || "";
|
10059
|
-
|
10059
|
+
O(sA);
|
10060
10060
|
}
|
10061
|
-
function
|
10061
|
+
function O(I) {
|
10062
10062
|
if (I.length < l.value) {
|
10063
10063
|
o.value = !0, c.value = `最少输入 ${l.value} 个字符`;
|
10064
10064
|
return;
|
@@ -10074,7 +10074,7 @@ const aE = ["onClick"], sE = {
|
|
10074
10074
|
function R(I) {
|
10075
10075
|
r("updateText", I), r("contentUpdated", N());
|
10076
10076
|
}
|
10077
|
-
function
|
10077
|
+
function P() {
|
10078
10078
|
const I = { ...t.element };
|
10079
10079
|
r("blockAction", { action: "add", element: t.element, newBlock: I });
|
10080
10080
|
}
|
@@ -10096,7 +10096,7 @@ const aE = ["onClick"], sE = {
|
|
10096
10096
|
r("blockAction", I), r("contentUpdated", N());
|
10097
10097
|
}
|
10098
10098
|
function gA(I) {
|
10099
|
-
|
10099
|
+
NA.value.openModal(I);
|
10100
10100
|
}
|
10101
10101
|
function BA(I) {
|
10102
10102
|
zA.value.openModal(I);
|
@@ -10107,11 +10107,11 @@ const aE = ["onClick"], sE = {
|
|
10107
10107
|
function ee(I) {
|
10108
10108
|
r("updateElementRule", I);
|
10109
10109
|
}
|
10110
|
-
const
|
10110
|
+
const NA = z(t.icon);
|
10111
10111
|
ne(
|
10112
10112
|
() => t.icon,
|
10113
10113
|
(I) => {
|
10114
|
-
|
10114
|
+
NA.value = I;
|
10115
10115
|
},
|
10116
10116
|
{ immediate: !0 }
|
10117
10117
|
);
|
@@ -10126,7 +10126,7 @@ const aE = ["onClick"], sE = {
|
|
10126
10126
|
const te = Ke(() => {
|
10127
10127
|
const I = h(t.element);
|
10128
10128
|
return t.element.css = I, I;
|
10129
|
-
}),
|
10129
|
+
}), RA = (I, _) => {
|
10130
10130
|
_.children && _.children.length && _.children[0].type === X.Block && _.children.map((sA) => {
|
10131
10131
|
sA.rule.flexColumn = I;
|
10132
10132
|
}), r("updateElementRule", _);
|
@@ -10143,8 +10143,8 @@ const aE = ["onClick"], sE = {
|
|
10143
10143
|
}), XA = z(null);
|
10144
10144
|
return (I, _) => {
|
10145
10145
|
const sA = S0("ElementRenderer", !0);
|
10146
|
-
return
|
10147
|
-
t.element.type == CA(X).Text ? (
|
10146
|
+
return M(), V(Yt, null, [
|
10147
|
+
t.element.type == CA(X).Text ? (M(), Ve(Yi(t.element.tag), Xi({
|
10148
10148
|
key: 0,
|
10149
10149
|
class: [
|
10150
10150
|
"relative",
|
@@ -10166,17 +10166,17 @@ const aE = ["onClick"], sE = {
|
|
10166
10166
|
style: YA.value
|
10167
10167
|
}, t.element.attrs, {
|
10168
10168
|
contenteditable: u.value && t.element.type == CA(X).Text && a.value && !t.element.rule.isReadOnly && !t.element.rule.allowWrap,
|
10169
|
-
onClick: _[0] || (_[0] =
|
10169
|
+
onClick: _[0] || (_[0] = PA(() => m(t.element), ["stop"])),
|
10170
10170
|
onMouseenter: _[1] || (_[1] = () => Q(t.element)),
|
10171
|
-
onMouseleave:
|
10171
|
+
onMouseleave: w,
|
10172
10172
|
onBlur: x,
|
10173
10173
|
onInput: p,
|
10174
10174
|
onPaste: K,
|
10175
|
-
onKeydown:
|
10175
|
+
onKeydown: PA(H, ["stop"]),
|
10176
10176
|
ref_key: "elementRef",
|
10177
10177
|
ref: XA,
|
10178
10178
|
innerHTML: n.value
|
10179
|
-
}), null, 16, ["class", "style", "contenteditable", "innerHTML"])) : (
|
10179
|
+
}), null, 16, ["class", "style", "contenteditable", "innerHTML"])) : (M(), Ve(Yi(t.element.tag), Xi({
|
10180
10180
|
key: 1,
|
10181
10181
|
class: [
|
10182
10182
|
"relative",
|
@@ -10198,20 +10198,20 @@ const aE = ["onClick"], sE = {
|
|
10198
10198
|
style: YA.value
|
10199
10199
|
}, t.element.attrs, {
|
10200
10200
|
contenteditable: !1,
|
10201
|
-
onClick: _[5] || (_[5] =
|
10201
|
+
onClick: _[5] || (_[5] = PA(() => m(t.element), ["stop"])),
|
10202
10202
|
onMouseenter: _[6] || (_[6] = () => Q(t.element)),
|
10203
|
-
onMouseleave:
|
10203
|
+
onMouseleave: w,
|
10204
10204
|
onBlur: x,
|
10205
10205
|
onInput: p,
|
10206
10206
|
onPaste: K,
|
10207
|
-
onKeydown:
|
10207
|
+
onKeydown: PA(H, ["stop"]),
|
10208
10208
|
ref_key: "elementRef",
|
10209
10209
|
ref: XA
|
10210
10210
|
}), {
|
10211
10211
|
default: kr(() => [
|
10212
|
-
ds(
|
10213
|
-
t.element.children && t.element.children.length ? (
|
10214
|
-
(
|
10212
|
+
ds(IA(n.value) + " ", 1),
|
10213
|
+
t.element.children && t.element.children.length ? (M(), V(Yt, { key: 0 }, [
|
10214
|
+
(M(!0), V(Yt, null, kn(t.element.children, (AA, wA) => (M(), Ve(sA, {
|
10215
10215
|
"show-margin": A.showMargin,
|
10216
10216
|
key: wA,
|
10217
10217
|
r: A.r,
|
@@ -10231,25 +10231,25 @@ const aE = ["onClick"], sE = {
|
|
10231
10231
|
onAddIcon: vA,
|
10232
10232
|
onUpdateElementRule: () => ee(AA)
|
10233
10233
|
}, null, 8, ["show-margin", "r", "mode", "icons", "element", "selectedElement", "hoveredElement", "cropper", "icon", "upload", "upload-by-file", "onUpdateElementRule"]))), 128)),
|
10234
|
-
t.element.type === CA(X).Block ? (
|
10234
|
+
t.element.type === CA(X).Block ? (M(), V("div", {
|
10235
10235
|
key: 0,
|
10236
10236
|
"date-action": "1",
|
10237
10237
|
contenteditable: "false",
|
10238
|
-
onClick: _[2] || (_[2] =
|
10238
|
+
onClick: _[2] || (_[2] = PA(() => {
|
10239
10239
|
}, ["stop"])),
|
10240
10240
|
class: "hover:z-10 z-9 flex space-x-1 flex-none flex-nowrap overflow-visible absolute left-2 top-2 text-sm"
|
10241
10241
|
}, [
|
10242
|
-
|
10242
|
+
b("button", {
|
10243
10243
|
class: "flex-none content-center items-center p-1 bg-green-500/80 text-white rounded hover:bg-green-500",
|
10244
|
-
onClick:
|
10244
|
+
onClick: PA(P, ["stop"])
|
10245
10245
|
}, _[9] || (_[9] = [
|
10246
|
-
|
10246
|
+
b("svg", {
|
10247
10247
|
xmlns: "http://www.w3.org/2000/svg",
|
10248
10248
|
width: "1em",
|
10249
10249
|
height: "1em",
|
10250
10250
|
viewBox: "0 0 512 512"
|
10251
10251
|
}, [
|
10252
|
-
|
10252
|
+
b("rect", {
|
10253
10253
|
width: "336",
|
10254
10254
|
height: "336",
|
10255
10255
|
x: "128",
|
@@ -10261,7 +10261,7 @@ const aE = ["onClick"], sE = {
|
|
10261
10261
|
rx: "57",
|
10262
10262
|
ry: "57"
|
10263
10263
|
}),
|
10264
|
-
|
10264
|
+
b("path", {
|
10265
10265
|
fill: "none",
|
10266
10266
|
stroke: "white",
|
10267
10267
|
"stroke-linecap": "round",
|
@@ -10271,17 +10271,17 @@ const aE = ["onClick"], sE = {
|
|
10271
10271
|
})
|
10272
10272
|
], -1)
|
10273
10273
|
])),
|
10274
|
-
|
10274
|
+
b("button", {
|
10275
10275
|
class: "flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded hover:bg-blue-500",
|
10276
|
-
onClick:
|
10276
|
+
onClick: PA(aA, ["stop"])
|
10277
10277
|
}, _[10] || (_[10] = [
|
10278
|
-
|
10278
|
+
b("svg", {
|
10279
10279
|
xmlns: "http://www.w3.org/2000/svg",
|
10280
10280
|
width: "1em",
|
10281
10281
|
height: "1em",
|
10282
10282
|
viewBox: "0 0 512 512"
|
10283
10283
|
}, [
|
10284
|
-
|
10284
|
+
b("path", {
|
10285
10285
|
fill: "none",
|
10286
10286
|
stroke: "white",
|
10287
10287
|
"stroke-linecap": "round",
|
@@ -10291,17 +10291,17 @@ const aE = ["onClick"], sE = {
|
|
10291
10291
|
})
|
10292
10292
|
], -1)
|
10293
10293
|
])),
|
10294
|
-
|
10294
|
+
b("button", {
|
10295
10295
|
class: "flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded hover:bg-blue-500",
|
10296
|
-
onClick:
|
10296
|
+
onClick: PA(EA, ["stop"])
|
10297
10297
|
}, _[11] || (_[11] = [
|
10298
|
-
|
10298
|
+
b("svg", {
|
10299
10299
|
xmlns: "http://www.w3.org/2000/svg",
|
10300
10300
|
width: "1em",
|
10301
10301
|
height: "1em",
|
10302
10302
|
viewBox: "0 0 512 512"
|
10303
10303
|
}, [
|
10304
|
-
|
10304
|
+
b("path", {
|
10305
10305
|
fill: "none",
|
10306
10306
|
stroke: "white",
|
10307
10307
|
"stroke-linecap": "round",
|
@@ -10311,17 +10311,17 @@ const aE = ["onClick"], sE = {
|
|
10311
10311
|
})
|
10312
10312
|
], -1)
|
10313
10313
|
])),
|
10314
|
-
|
10314
|
+
b("button", {
|
10315
10315
|
class: "flex-none content-center items-center p-1 bg-red-500/80 text-white rounded hover:bg-red-500",
|
10316
|
-
onClick:
|
10316
|
+
onClick: PA(Z, ["stop"])
|
10317
10317
|
}, _[12] || (_[12] = [
|
10318
|
-
|
10318
|
+
b("svg", {
|
10319
10319
|
xmlns: "http://www.w3.org/2000/svg",
|
10320
10320
|
width: "1em",
|
10321
10321
|
height: "1em",
|
10322
10322
|
viewBox: "0 0 512 512"
|
10323
10323
|
}, [
|
10324
|
-
|
10324
|
+
b("path", {
|
10325
10325
|
fill: "none",
|
10326
10326
|
stroke: "white",
|
10327
10327
|
"stroke-linecap": "round",
|
@@ -10332,36 +10332,36 @@ const aE = ["onClick"], sE = {
|
|
10332
10332
|
], -1)
|
10333
10333
|
]))
|
10334
10334
|
])) : q("", !0),
|
10335
|
-
t.element.children && t.element.children.length && t.element.children[0].type === CA(X).Block && t.element.children[0].rule && t.element.children[0].rule.flexColumns && t.element.children[0].rule.flexColumns.length > 0 ? (
|
10335
|
+
t.element.children && t.element.children.length && t.element.children[0].type === CA(X).Block && t.element.children[0].rule && t.element.children[0].rule.flexColumns && t.element.children[0].rule.flexColumns.length > 0 ? (M(), V("div", {
|
10336
10336
|
key: 1,
|
10337
10337
|
"date-action": "1",
|
10338
10338
|
contenteditable: "false",
|
10339
|
-
onClick: _[3] || (_[3] =
|
10339
|
+
onClick: _[3] || (_[3] = PA(() => {
|
10340
10340
|
}, ["stop"])),
|
10341
10341
|
class: "hover:z-10 z-9 flex space-x-1 flex-none flex-nowrap overflow-visible absolute right-0 -top-6 items-center"
|
10342
10342
|
}, [
|
10343
|
-
(
|
10343
|
+
(M(!0), V(Yt, null, kn(t.element.children[0].rule.flexColumns, (AA, wA) => (M(), V("button", {
|
10344
10344
|
class: ui([
|
10345
10345
|
"text-xs w-6 h-6 flex-none content-center items-center justify-center bg-purple-400/80 text-white rounded hover:bg-purple-600",
|
10346
10346
|
t.element.children[0].rule.flexColumn === AA ? "bg-purple-700" : ""
|
10347
10347
|
]),
|
10348
|
-
onClick:
|
10349
|
-
},
|
10348
|
+
onClick: PA(() => RA(AA, t.element), ["stop"])
|
10349
|
+
}, IA(AA), 11, aE))), 256))
|
10350
10350
|
])) : q("", !0)
|
10351
10351
|
], 64)) : q("", !0),
|
10352
|
-
t.element.type === CA(X).Icon ? (
|
10352
|
+
t.element.type === CA(X).Icon ? (M(), V("div", {
|
10353
10353
|
key: 1,
|
10354
10354
|
class: "cursor-pointer rounded-sm w-5 h-5 flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80 hover:bg-black",
|
10355
10355
|
contenteditable: "false",
|
10356
|
-
onClick: _[4] || (_[4] =
|
10356
|
+
onClick: _[4] || (_[4] = PA(() => gA(t.element), ["stop"]))
|
10357
10357
|
}, _[13] || (_[13] = [
|
10358
|
-
|
10358
|
+
b("svg", {
|
10359
10359
|
xmlns: "http://www.w3.org/2000/svg",
|
10360
10360
|
width: "1em",
|
10361
10361
|
height: "1em",
|
10362
10362
|
viewBox: "0 0 512 512"
|
10363
10363
|
}, [
|
10364
|
-
|
10364
|
+
b("path", {
|
10365
10365
|
fill: "none",
|
10366
10366
|
stroke: "white",
|
10367
10367
|
"stroke-linecap": "round",
|
@@ -10369,7 +10369,7 @@ const aE = ["onClick"], sE = {
|
|
10369
10369
|
"stroke-width": "32",
|
10370
10370
|
d: "M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"
|
10371
10371
|
}),
|
10372
|
-
|
10372
|
+
b("path", {
|
10373
10373
|
fill: "none",
|
10374
10374
|
stroke: "white",
|
10375
10375
|
"stroke-linecap": "round",
|
@@ -10382,25 +10382,25 @@ const aE = ["onClick"], sE = {
|
|
10382
10382
|
]),
|
10383
10383
|
_: 1
|
10384
10384
|
}, 16, ["class", "style"])),
|
10385
|
-
t.element.type == CA(X).Text && o.value ? (
|
10386
|
-
t.element.type === CA(X).Image ? (
|
10385
|
+
t.element.type == CA(X).Text && o.value ? (M(), V("div", sE, IA(c.value), 1)) : q("", !0),
|
10386
|
+
t.element.type === CA(X).Image ? (M(), V("div", {
|
10387
10387
|
key: 3,
|
10388
10388
|
class: "cursor-pointer rounded-sm flex justify-center items-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-sm text-gray-50 z-10 bg-black/80 hover:bg-black",
|
10389
|
-
onClick: _[8] || (_[8] =
|
10389
|
+
onClick: _[8] || (_[8] = PA(() => {
|
10390
10390
|
}, ["stop"])),
|
10391
10391
|
contenteditable: "false"
|
10392
10392
|
}, [
|
10393
|
-
|
10393
|
+
b("div", {
|
10394
10394
|
class: "p-1",
|
10395
|
-
onClick: _[7] || (_[7] =
|
10395
|
+
onClick: _[7] || (_[7] = PA(() => BA(t.element), ["stop"]))
|
10396
10396
|
}, _[14] || (_[14] = [
|
10397
|
-
|
10397
|
+
b("svg", {
|
10398
10398
|
xmlns: "http://www.w3.org/2000/svg",
|
10399
10399
|
width: "1em",
|
10400
10400
|
height: "1em",
|
10401
10401
|
viewBox: "0 0 512 512"
|
10402
10402
|
}, [
|
10403
|
-
|
10403
|
+
b("path", {
|
10404
10404
|
fill: "none",
|
10405
10405
|
stroke: "white",
|
10406
10406
|
"stroke-linecap": "round",
|
@@ -10408,7 +10408,7 @@ const aE = ["onClick"], sE = {
|
|
10408
10408
|
"stroke-width": "32",
|
10409
10409
|
d: "M320 367.79h76c55 0 100-29.21 100-83.6s-53-81.47-96-83.6c-8.89-85.06-71-136.8-144-136.8c-69 0-113.44 45.79-128 91.2c-60 5.7-112 43.88-112 106.4s54 106.4 120 106.4h56"
|
10410
10410
|
}),
|
10411
|
-
|
10411
|
+
b("path", {
|
10412
10412
|
fill: "none",
|
10413
10413
|
stroke: "white",
|
10414
10414
|
"stroke-linecap": "round",
|
@@ -10444,16 +10444,16 @@ const aE = ["onClick"], sE = {
|
|
10444
10444
|
}
|
10445
10445
|
}), cE = { class: "form-group" }, lE = { class: "flex items-center space-x-2 cursor-pointer" }, fE = ["checked", "aria-checked"], hE = { class: "checkbox-label text-sm text-gray-700" };
|
10446
10446
|
function dE(A, e, t, r, n, a) {
|
10447
|
-
return
|
10448
|
-
|
10449
|
-
|
10447
|
+
return M(), V("div", cE, [
|
10448
|
+
b("label", lE, [
|
10449
|
+
b("input", {
|
10450
10450
|
type: "checkbox",
|
10451
10451
|
checked: A.modelValue,
|
10452
10452
|
onChange: e[0] || (e[0] = (...s) => A.updateValue && A.updateValue(...s)),
|
10453
10453
|
class: "custom-checkbox",
|
10454
10454
|
"aria-checked": A.modelValue
|
10455
10455
|
}, null, 40, fE),
|
10456
|
-
|
10456
|
+
b("span", hE, IA(A.label), 1)
|
10457
10457
|
])
|
10458
10458
|
]);
|
10459
10459
|
}
|
@@ -10491,7 +10491,7 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10491
10491
|
return;
|
10492
10492
|
}
|
10493
10493
|
if (n.value.type === X.Text) {
|
10494
|
-
if (Number(n.value.rule.minText) > Number(n.value.rule.maxText)) {
|
10494
|
+
if (n.value.rule.maxText && Number(n.value.rule.minText) > Number(n.value.rule.maxText)) {
|
10495
10495
|
eA.error("最小文本长度不能大于最大文本长度");
|
10496
10496
|
return;
|
10497
10497
|
}
|
@@ -10501,7 +10501,7 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10501
10501
|
}
|
10502
10502
|
}
|
10503
10503
|
if (n.value.type === X.Block) {
|
10504
|
-
if (Number(n.value.rule.minBlock) > Number(n.value.rule.maxBlock)) {
|
10504
|
+
if (n.value.rule.maxBlock && Number(n.value.rule.minBlock) > Number(n.value.rule.maxBlock)) {
|
10505
10505
|
eA.error("最小块数量不能大于最大块数量");
|
10506
10506
|
return;
|
10507
10507
|
}
|
@@ -10519,54 +10519,54 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10519
10519
|
n.value.rule.mobileFlexColumn
|
10520
10520
|
) : n.value.rule.mobileFlexColumn = void 0, r("updateElement", n.value);
|
10521
10521
|
}
|
10522
|
-
return (s, u) => (
|
10523
|
-
n.value ? (
|
10524
|
-
n.value.text !== void 0 ? (
|
10525
|
-
u[16] || (u[16] =
|
10526
|
-
|
10522
|
+
return (s, u) => (M(), V("div", gE, [
|
10523
|
+
n.value ? (M(), V("div", BE, [
|
10524
|
+
n.value.text !== void 0 ? (M(), V("div", pE, [
|
10525
|
+
u[16] || (u[16] = b("label", { class: "block" }, "内容", -1)),
|
10526
|
+
b("div", EE, IA(n.value.text || "-"), 1)
|
10527
10527
|
])) : q("", !0),
|
10528
|
-
|
10529
|
-
u[17] || (u[17] =
|
10530
|
-
|
10528
|
+
b("div", null, [
|
10529
|
+
u[17] || (u[17] = b("label", { class: "block mt-4" }, "节点", -1)),
|
10530
|
+
b("div", mE, IA(n.value.xpath), 1)
|
10531
10531
|
]),
|
10532
|
-
|
10533
|
-
u[19] || (u[19] =
|
10534
|
-
|
10532
|
+
b("div", null, [
|
10533
|
+
u[19] || (u[19] = b("label", { class: "block mt-4" }, "类型", -1)),
|
10534
|
+
pe(b("select", {
|
10535
10535
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => n.value.type = o),
|
10536
10536
|
class: "border rounded p-1 w-full"
|
10537
10537
|
}, u[18] || (u[18] = [
|
10538
|
-
|
10539
|
-
|
10540
|
-
|
10541
|
-
|
10542
|
-
|
10543
|
-
|
10544
|
-
|
10545
|
-
|
10538
|
+
b("option", { value: 0 }, "无", -1),
|
10539
|
+
b("option", { value: 1 }, "文本", -1),
|
10540
|
+
b("option", { value: 2 }, "图片", -1),
|
10541
|
+
b("option", { value: 3 }, "视频", -1),
|
10542
|
+
b("option", { value: 4 }, "图标", -1),
|
10543
|
+
b("option", { value: 5 }, "链接", -1),
|
10544
|
+
b("option", { value: 6 }, "按钮", -1),
|
10545
|
+
b("option", { value: 10 }, "块", -1)
|
10546
10546
|
]), 512), [
|
10547
10547
|
[La, n.value.type]
|
10548
10548
|
])
|
10549
10549
|
]),
|
10550
|
-
n.value.type == CA(X).Text ? (
|
10551
|
-
u[20] || (u[20] =
|
10552
|
-
|
10550
|
+
n.value.type == CA(X).Text ? (M(), V("div", CE, [
|
10551
|
+
u[20] || (u[20] = b("label", { class: "block mt-4" }, "最小文本长度", -1)),
|
10552
|
+
pe(b("input", {
|
10553
10553
|
"onUpdate:modelValue": u[1] || (u[1] = (o) => n.value.rule.minText = o),
|
10554
10554
|
class: "border rounded p-1 w-full"
|
10555
10555
|
}, null, 512), [
|
10556
10556
|
[ze, n.value.rule.minText]
|
10557
10557
|
])
|
10558
10558
|
])) : q("", !0),
|
10559
|
-
n.value.type == CA(X).Text ? (
|
10560
|
-
u[21] || (u[21] =
|
10561
|
-
|
10559
|
+
n.value.type == CA(X).Text ? (M(), V("div", wE, [
|
10560
|
+
u[21] || (u[21] = b("label", { class: "block mt-4" }, "最大文本长度", -1)),
|
10561
|
+
pe(b("input", {
|
10562
10562
|
"onUpdate:modelValue": u[2] || (u[2] = (o) => n.value.rule.maxText = o),
|
10563
10563
|
class: "border rounded p-1 w-full"
|
10564
10564
|
}, null, 512), [
|
10565
10565
|
[ze, n.value.rule.maxText]
|
10566
10566
|
])
|
10567
10567
|
])) : q("", !0),
|
10568
|
-
n.value.type == CA(X).Image ? (
|
10569
|
-
u[22] || (u[22] =
|
10568
|
+
n.value.type == CA(X).Image ? (M(), V("div", bE, [
|
10569
|
+
u[22] || (u[22] = b("label", { class: "block mt-4" }, "是否裁剪", -1)),
|
10570
10570
|
xe(Nt, {
|
10571
10571
|
class: "py-2",
|
10572
10572
|
modelValue: n.value.rule.crop,
|
@@ -10574,84 +10574,84 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10574
10574
|
label: "是"
|
10575
10575
|
}, null, 8, ["modelValue"])
|
10576
10576
|
])) : q("", !0),
|
10577
|
-
n.value.type == CA(X).Image ? (
|
10578
|
-
u[23] || (u[23] =
|
10579
|
-
|
10577
|
+
n.value.type == CA(X).Image ? (M(), V("div", TE, [
|
10578
|
+
u[23] || (u[23] = b("label", { class: "block mt-4" }, "图片宽度", -1)),
|
10579
|
+
pe(b("input", {
|
10580
10580
|
"onUpdate:modelValue": u[4] || (u[4] = (o) => n.value.rule.minImageWidth = o),
|
10581
10581
|
class: "border rounded p-1 w-full"
|
10582
10582
|
}, null, 512), [
|
10583
10583
|
[ze, n.value.rule.minImageWidth]
|
10584
10584
|
])
|
10585
10585
|
])) : q("", !0),
|
10586
|
-
n.value.type == CA(X).Image ? (
|
10587
|
-
u[24] || (u[24] =
|
10588
|
-
|
10586
|
+
n.value.type == CA(X).Image ? (M(), V("div", UE, [
|
10587
|
+
u[24] || (u[24] = b("label", { class: "block mt-4" }, "图片高度", -1)),
|
10588
|
+
pe(b("input", {
|
10589
10589
|
"onUpdate:modelValue": u[5] || (u[5] = (o) => n.value.rule.maxImageHeight = o),
|
10590
10590
|
class: "border rounded p-1 w-full"
|
10591
10591
|
}, null, 512), [
|
10592
10592
|
[ze, n.value.rule.maxImageHeight]
|
10593
10593
|
])
|
10594
10594
|
])) : q("", !0),
|
10595
|
-
n.value.type == CA(X).Block ? (
|
10596
|
-
u[25] || (u[25] =
|
10597
|
-
|
10595
|
+
n.value.type == CA(X).Block ? (M(), V("div", QE, [
|
10596
|
+
u[25] || (u[25] = b("label", { class: "block mt-4" }, "块最小数量", -1)),
|
10597
|
+
pe(b("input", {
|
10598
10598
|
"onUpdate:modelValue": u[6] || (u[6] = (o) => n.value.rule.minBlock = o),
|
10599
10599
|
class: "border rounded p-1 w-full"
|
10600
10600
|
}, null, 512), [
|
10601
10601
|
[ze, n.value.rule.minBlock]
|
10602
10602
|
])
|
10603
10603
|
])) : q("", !0),
|
10604
|
-
n.value.type == CA(X).Block ? (
|
10605
|
-
u[26] || (u[26] =
|
10606
|
-
|
10604
|
+
n.value.type == CA(X).Block ? (M(), V("div", FE, [
|
10605
|
+
u[26] || (u[26] = b("label", { class: "block mt-4" }, "块最大数量", -1)),
|
10606
|
+
pe(b("input", {
|
10607
10607
|
"onUpdate:modelValue": u[7] || (u[7] = (o) => n.value.rule.maxBlock = o),
|
10608
10608
|
class: "border rounded p-1 w-full"
|
10609
10609
|
}, null, 512), [
|
10610
10610
|
[ze, n.value.rule.maxBlock]
|
10611
10611
|
])
|
10612
10612
|
])) : q("", !0),
|
10613
|
-
n.value.type == CA(X).Block ? (
|
10614
|
-
u[28] || (u[28] =
|
10615
|
-
|
10613
|
+
n.value.type == CA(X).Block ? (M(), V("div", vE, [
|
10614
|
+
u[28] || (u[28] = b("label", { class: "block mt-4" }, "PC端每行列数", -1)),
|
10615
|
+
pe(b("select", {
|
10616
10616
|
multiple: "",
|
10617
10617
|
"onUpdate:modelValue": u[8] || (u[8] = (o) => n.value.rule.flexColumns = o),
|
10618
10618
|
class: "border rounded p-1 w-full h-32"
|
10619
10619
|
}, u[27] || (u[27] = [
|
10620
|
-
|
10621
|
-
|
10622
|
-
|
10623
|
-
|
10624
|
-
|
10625
|
-
|
10626
|
-
|
10627
|
-
|
10628
|
-
|
10629
|
-
|
10630
|
-
|
10631
|
-
|
10620
|
+
b("option", { value: 1 }, "1", -1),
|
10621
|
+
b("option", { value: 2 }, "2", -1),
|
10622
|
+
b("option", { value: 3 }, "3", -1),
|
10623
|
+
b("option", { value: 4 }, "4", -1),
|
10624
|
+
b("option", { value: 5 }, "5", -1),
|
10625
|
+
b("option", { value: 6 }, "6", -1),
|
10626
|
+
b("option", { value: 7 }, "7", -1),
|
10627
|
+
b("option", { value: 8 }, "8", -1),
|
10628
|
+
b("option", { value: 9 }, "9", -1),
|
10629
|
+
b("option", { value: 10 }, "10", -1),
|
10630
|
+
b("option", { value: 11 }, "11", -1),
|
10631
|
+
b("option", { value: 12 }, "12", -1)
|
10632
10632
|
]), 512), [
|
10633
10633
|
[La, n.value.rule.flexColumns]
|
10634
10634
|
])
|
10635
10635
|
])) : q("", !0),
|
10636
|
-
n.value.type == CA(X).Block ? (
|
10637
|
-
u[30] || (u[30] =
|
10638
|
-
|
10636
|
+
n.value.type == CA(X).Block ? (M(), V("div", IE, [
|
10637
|
+
u[30] || (u[30] = b("label", { class: "block mt-4" }, "移动端每行列数", -1)),
|
10638
|
+
pe(b("select", {
|
10639
10639
|
"onUpdate:modelValue": u[9] || (u[9] = (o) => n.value.rule.mobileFlexColumn = o),
|
10640
10640
|
class: "border rounded p-1 w-full"
|
10641
10641
|
}, u[29] || (u[29] = [
|
10642
|
-
|
10643
|
-
|
10644
|
-
|
10645
|
-
|
10646
|
-
|
10647
|
-
|
10648
|
-
|
10642
|
+
b("option", { value: void 0 }, "无(轮播)", -1),
|
10643
|
+
b("option", { value: 1 }, "1", -1),
|
10644
|
+
b("option", { value: 2 }, "2", -1),
|
10645
|
+
b("option", { value: 3 }, "3", -1),
|
10646
|
+
b("option", { value: 4 }, "4", -1),
|
10647
|
+
b("option", { value: 5 }, "5", -1),
|
10648
|
+
b("option", { value: 6 }, "6", -1)
|
10649
10649
|
]), 512), [
|
10650
10650
|
[La, n.value.rule.mobileFlexColumn]
|
10651
10651
|
])
|
10652
10652
|
])) : q("", !0),
|
10653
|
-
n.value.type == CA(X).Text || n.value.type == CA(X).Icon || n.value.type == CA(X).Button ? (
|
10654
|
-
u[31] || (u[31] =
|
10653
|
+
n.value.type == CA(X).Text || n.value.type == CA(X).Icon || n.value.type == CA(X).Button ? (M(), V("div", yE, [
|
10654
|
+
u[31] || (u[31] = b("label", { class: "block mt-4" }, "主题色", -1)),
|
10655
10655
|
xe(Nt, {
|
10656
10656
|
class: "py-2",
|
10657
10657
|
modelValue: n.value.rule.isThemeColor,
|
@@ -10659,8 +10659,8 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10659
10659
|
label: "是"
|
10660
10660
|
}, null, 8, ["modelValue"])
|
10661
10661
|
])) : q("", !0),
|
10662
|
-
|
10663
|
-
u[32] || (u[32] =
|
10662
|
+
b("div", null, [
|
10663
|
+
u[32] || (u[32] = b("label", { class: "block mt-4" }, "是否必填", -1)),
|
10664
10664
|
xe(Nt, {
|
10665
10665
|
class: "py-2",
|
10666
10666
|
modelValue: n.value.rule.isRequired,
|
@@ -10668,8 +10668,8 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10668
10668
|
label: "是"
|
10669
10669
|
}, null, 8, ["modelValue"])
|
10670
10670
|
]),
|
10671
|
-
|
10672
|
-
u[33] || (u[33] =
|
10671
|
+
b("div", null, [
|
10672
|
+
u[33] || (u[33] = b("label", { class: "block mt-4" }, "是否只读", -1)),
|
10673
10673
|
xe(Nt, {
|
10674
10674
|
class: "py-2",
|
10675
10675
|
modelValue: n.value.rule.isReadOnly,
|
@@ -10677,8 +10677,8 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10677
10677
|
label: "是"
|
10678
10678
|
}, null, 8, ["modelValue"])
|
10679
10679
|
]),
|
10680
|
-
n.value.type == CA(X).Link || n.value.type == CA(X).Button ? (
|
10681
|
-
u[34] || (u[34] =
|
10680
|
+
n.value.type == CA(X).Link || n.value.type == CA(X).Button ? (M(), V("div", xE, [
|
10681
|
+
u[34] || (u[34] = b("label", { class: "block mt-4" }, "打开美洽", -1)),
|
10682
10682
|
xe(Nt, {
|
10683
10683
|
class: "py-2",
|
10684
10684
|
modelValue: n.value.rule.openMeiqia,
|
@@ -10686,17 +10686,17 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10686
10686
|
label: "是"
|
10687
10687
|
}, null, 8, ["modelValue"])
|
10688
10688
|
])) : q("", !0),
|
10689
|
-
n.value.type == CA(X).Link || n.value.type == CA(X).Button ? (
|
10690
|
-
u[35] || (u[35] =
|
10691
|
-
|
10689
|
+
n.value.type == CA(X).Link || n.value.type == CA(X).Button ? (M(), V("div", _E, [
|
10690
|
+
u[35] || (u[35] = b("label", { class: "block mt-4" }, "链接", -1)),
|
10691
|
+
pe(b("input", {
|
10692
10692
|
"onUpdate:modelValue": u[14] || (u[14] = (o) => n.value.rule.linkUrl = o),
|
10693
10693
|
class: "border rounded p-1 w-full"
|
10694
10694
|
}, null, 512), [
|
10695
10695
|
[ze, n.value.rule.linkUrl]
|
10696
10696
|
])
|
10697
10697
|
])) : q("", !0),
|
10698
|
-
n.value.type == CA(X).Text ? (
|
10699
|
-
u[36] || (u[36] =
|
10698
|
+
n.value.type == CA(X).Text ? (M(), V("div", SE, [
|
10699
|
+
u[36] || (u[36] = b("label", { class: "block mt-4" }, "允许换行(回车/粘贴多段文本等)", -1)),
|
10700
10700
|
xe(Nt, {
|
10701
10701
|
class: "py-2",
|
10702
10702
|
modelValue: n.value.rule.allowWrap,
|
@@ -10705,13 +10705,13 @@ const Nt = /* @__PURE__ */ gt(oE, [["render", dE], ["__scopeId", "data-v-68b8f27
|
|
10705
10705
|
}, null, 8, ["modelValue"])
|
10706
10706
|
])) : q("", !0)
|
10707
10707
|
])) : q("", !0),
|
10708
|
-
|
10708
|
+
b("button", {
|
10709
10709
|
onClick: a,
|
10710
10710
|
class: "mt-4 p-2 bg-green-500 text-white rounded"
|
10711
10711
|
}, " 保存 ")
|
10712
10712
|
]));
|
10713
10713
|
}
|
10714
|
-
}), HE = /* @__PURE__ */ gt(LE, [["__scopeId", "data-v-
|
10714
|
+
}), HE = /* @__PURE__ */ gt(LE, [["__scopeId", "data-v-298a9b70"]]);
|
10715
10715
|
/*!
|
10716
10716
|
* Cropper.js v1.6.2
|
10717
10717
|
* https://fengyuanchen.github.io/cropperjs
|
@@ -10915,7 +10915,7 @@ var Am = Array.prototype.slice;
|
|
10915
10915
|
function El(A) {
|
10916
10916
|
return Array.from ? Array.from(A) : Am.call(A);
|
10917
10917
|
}
|
10918
|
-
function
|
10918
|
+
function HA(A, e) {
|
10919
10919
|
return A && se(e) && (Array.isArray(A) || nA(A.length) ? El(A).forEach(function(t, r) {
|
10920
10920
|
e.call(A, t, r, A);
|
10921
10921
|
}) : It(A) && Object.keys(A).forEach(function(t) {
|
@@ -10938,18 +10938,18 @@ function zt(A) {
|
|
10938
10938
|
var tm = /^width|height|left|top|marginLeft|marginTop$/;
|
10939
10939
|
function at(A, e) {
|
10940
10940
|
var t = A.style;
|
10941
|
-
|
10941
|
+
HA(e, function(r, n) {
|
10942
10942
|
tm.test(n) && nA(r) && (r = "".concat(r, "px")), t[n] = r;
|
10943
10943
|
});
|
10944
10944
|
}
|
10945
10945
|
function rm(A, e) {
|
10946
10946
|
return A.classList ? A.classList.contains(e) : A.className.indexOf(e) > -1;
|
10947
10947
|
}
|
10948
|
-
function
|
10948
|
+
function KA(A, e) {
|
10949
10949
|
if (e) {
|
10950
10950
|
if (nA(A.length)) {
|
10951
|
-
|
10952
|
-
|
10951
|
+
HA(A, function(r) {
|
10952
|
+
KA(r, e);
|
10953
10953
|
});
|
10954
10954
|
return;
|
10955
10955
|
}
|
@@ -10964,7 +10964,7 @@ function PA(A, e) {
|
|
10964
10964
|
function He(A, e) {
|
10965
10965
|
if (e) {
|
10966
10966
|
if (nA(A.length)) {
|
10967
|
-
|
10967
|
+
HA(A, function(t) {
|
10968
10968
|
He(t, e);
|
10969
10969
|
});
|
10970
10970
|
return;
|
@@ -10979,12 +10979,12 @@ function He(A, e) {
|
|
10979
10979
|
function Wt(A, e, t) {
|
10980
10980
|
if (e) {
|
10981
10981
|
if (nA(A.length)) {
|
10982
|
-
|
10982
|
+
HA(A, function(r) {
|
10983
10983
|
Wt(r, e, t);
|
10984
10984
|
});
|
10985
10985
|
return;
|
10986
10986
|
}
|
10987
|
-
t ?
|
10987
|
+
t ? KA(A, e) : He(A, e);
|
10988
10988
|
}
|
10989
10989
|
}
|
10990
10990
|
var nm = /([a-z\d])([A-Z])/g;
|
@@ -11044,7 +11044,7 @@ function Ue(A, e, t) {
|
|
11044
11044
|
A.removeEventListener(a, n, r);
|
11045
11045
|
});
|
11046
11046
|
}
|
11047
|
-
function
|
11047
|
+
function Be(A, e, t) {
|
11048
11048
|
var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, n = t;
|
11049
11049
|
e.trim().split(ml).forEach(function(a) {
|
11050
11050
|
if (r.once && !Cl) {
|
@@ -11095,8 +11095,8 @@ function Hr(A) {
|
|
11095
11095
|
}
|
11096
11096
|
function im(A) {
|
11097
11097
|
var e = ul({}, A), t = 0;
|
11098
|
-
return
|
11099
|
-
delete e[n],
|
11098
|
+
return HA(A, function(r, n) {
|
11099
|
+
delete e[n], HA(e, function(a) {
|
11100
11100
|
var s = Math.abs(r.startX - a.startX), u = Math.abs(r.startY - a.startY), o = Math.abs(r.endX - a.endX), c = Math.abs(r.endY - a.endY), l = Math.sqrt(s * s + u * u), f = Math.sqrt(o * o + c * c), h = (f - l) / l;
|
11101
11101
|
Math.abs(h) > Math.abs(t) && (t = h);
|
11102
11102
|
});
|
@@ -11114,7 +11114,7 @@ function cn(A, e) {
|
|
11114
11114
|
}
|
11115
11115
|
function um(A) {
|
11116
11116
|
var e = 0, t = 0, r = 0;
|
11117
|
-
return
|
11117
|
+
return HA(A, function(n) {
|
11118
11118
|
var a = n.startX, s = n.startY;
|
11119
11119
|
e += a, t += s, r += 1;
|
11120
11120
|
}), e /= r, t /= r, {
|
@@ -11150,24 +11150,24 @@ function om(A) {
|
|
11150
11150
|
};
|
11151
11151
|
}
|
11152
11152
|
function cm(A, e, t, r) {
|
11153
|
-
var n = e.aspectRatio, a = e.naturalWidth, s = e.naturalHeight, u = e.rotate, o = u === void 0 ? 0 : u, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, m = t.aspectRatio, E = t.naturalWidth, T = t.naturalHeight, Q = r.fillColor,
|
11153
|
+
var n = e.aspectRatio, a = e.naturalWidth, s = e.naturalHeight, u = e.rotate, o = u === void 0 ? 0 : u, c = e.scaleX, l = c === void 0 ? 1 : c, f = e.scaleY, h = f === void 0 ? 1 : f, m = t.aspectRatio, E = t.naturalWidth, T = t.naturalHeight, Q = r.fillColor, w = Q === void 0 ? "transparent" : Q, x = r.imageSmoothingEnabled, N = x === void 0 ? !0 : x, K = r.imageSmoothingQuality, H = K === void 0 ? "low" : K, p = r.maxWidth, O = p === void 0 ? 1 / 0 : p, R = r.maxHeight, P = R === void 0 ? 1 / 0 : R, aA = r.minWidth, fA = aA === void 0 ? 0 : aA, EA = r.minHeight, Z = EA === void 0 ? 0 : EA, iA = document.createElement("canvas"), gA = iA.getContext("2d"), BA = st({
|
11154
11154
|
aspectRatio: m,
|
11155
|
-
width:
|
11156
|
-
height:
|
11155
|
+
width: O,
|
11156
|
+
height: P
|
11157
11157
|
}), vA = st({
|
11158
11158
|
aspectRatio: m,
|
11159
11159
|
width: fA,
|
11160
11160
|
height: Z
|
11161
|
-
}, "cover"), ee = Math.min(BA.width, Math.max(vA.width, E)),
|
11161
|
+
}, "cover"), ee = Math.min(BA.width, Math.max(vA.width, E)), NA = Math.min(BA.height, Math.max(vA.height, T)), zA = st({
|
11162
11162
|
aspectRatio: n,
|
11163
|
-
width:
|
11164
|
-
height:
|
11163
|
+
width: O,
|
11164
|
+
height: P
|
11165
11165
|
}), te = st({
|
11166
11166
|
aspectRatio: n,
|
11167
11167
|
width: fA,
|
11168
11168
|
height: Z
|
11169
|
-
}, "cover"),
|
11170
|
-
return iA.width = zt(ee), iA.height = zt(
|
11169
|
+
}, "cover"), RA = Math.min(zA.width, Math.max(te.width, a)), YA = Math.min(zA.height, Math.max(te.height, s)), XA = [-RA / 2, -YA / 2, RA, YA];
|
11170
|
+
return iA.width = zt(ee), iA.height = zt(NA), gA.fillStyle = w, gA.fillRect(0, 0, ee, NA), gA.save(), gA.translate(ee / 2, NA / 2), gA.rotate(o * Math.PI / 180), gA.scale(l, h), gA.imageSmoothingEnabled = N, gA.imageSmoothingQuality = H, gA.drawImage.apply(gA, [A].concat(cl(XA.map(function(I) {
|
11171
11171
|
return Math.floor(zt(I));
|
11172
11172
|
})))), gA.restore(), iA;
|
11173
11173
|
}
|
@@ -11182,7 +11182,7 @@ function lm(A, e, t) {
|
|
11182
11182
|
var fm = /^data:.*,/;
|
11183
11183
|
function hm(A) {
|
11184
11184
|
var e = A.replace(fm, ""), t = atob(e), r = new ArrayBuffer(t.length), n = new Uint8Array(r);
|
11185
|
-
return
|
11185
|
+
return HA(n, function(a, s) {
|
11186
11186
|
n[s] = t.charCodeAt(s);
|
11187
11187
|
}), r;
|
11188
11188
|
}
|
@@ -11263,7 +11263,7 @@ var pm = {
|
|
11263
11263
|
},
|
11264
11264
|
initContainer: function() {
|
11265
11265
|
var e = this.element, t = this.options, r = this.container, n = this.cropper, a = Number(t.minContainerWidth), s = Number(t.minContainerHeight);
|
11266
|
-
|
11266
|
+
KA(n, ue), He(e, ue);
|
11267
11267
|
var u = {
|
11268
11268
|
width: Math.max(r.offsetWidth, a >= 0 ? a : Bl),
|
11269
11269
|
height: Math.max(r.offsetHeight, s >= 0 ? s : pl)
|
@@ -11271,7 +11271,7 @@ var pm = {
|
|
11271
11271
|
this.containerData = u, at(n, {
|
11272
11272
|
width: u.width,
|
11273
11273
|
height: u.height
|
11274
|
-
}),
|
11274
|
+
}), KA(e, ue), He(n, ue);
|
11275
11275
|
},
|
11276
11276
|
// Canvas (image wrapper)
|
11277
11277
|
initCanvas: function() {
|
@@ -11371,7 +11371,7 @@ var pm = {
|
|
11371
11371
|
var e = this.element, t = this.crossOrigin, r = this.options.preview, n = t ? this.crossOriginUrl : this.url, a = e.alt || "The image to preview", s = document.createElement("img");
|
11372
11372
|
if (t && (s.crossOrigin = t), s.src = n, s.alt = a, this.viewBox.appendChild(s), this.viewBoxImage = s, !!r) {
|
11373
11373
|
var u = r;
|
11374
|
-
typeof r == "string" ? u = e.ownerDocument.querySelectorAll(r) : r.querySelector && (u = [r]), this.previews = u,
|
11374
|
+
typeof r == "string" ? u = e.ownerDocument.querySelectorAll(r) : r.querySelector && (u = [r]), this.previews = u, HA(u, function(o) {
|
11375
11375
|
var c = document.createElement("img");
|
11376
11376
|
Jr(o, on, {
|
11377
11377
|
width: o.offsetWidth,
|
@@ -11382,7 +11382,7 @@ var pm = {
|
|
11382
11382
|
}
|
11383
11383
|
},
|
11384
11384
|
resetPreview: function() {
|
11385
|
-
|
11385
|
+
HA(this.previews, function(e) {
|
11386
11386
|
var t = Rs(e, on);
|
11387
11387
|
at(e, {
|
11388
11388
|
width: t.width,
|
@@ -11398,7 +11398,7 @@ var pm = {
|
|
11398
11398
|
}, Hr(FA({
|
11399
11399
|
translateX: -o,
|
11400
11400
|
translateY: -c
|
11401
|
-
}, e)))),
|
11401
|
+
}, e)))), HA(this.previews, function(l) {
|
11402
11402
|
var f = Rs(l, on), h = f.width, m = f.height, E = h, T = m, Q = 1;
|
11403
11403
|
n && (Q = h / n, T = a * Q), a && T > m && (Q = m / a, E = n * Q, T = m), at(l, {
|
11404
11404
|
width: E,
|
@@ -11415,10 +11415,10 @@ var pm = {
|
|
11415
11415
|
}, mm = {
|
11416
11416
|
bind: function() {
|
11417
11417
|
var e = this.element, t = this.options, r = this.cropper;
|
11418
|
-
se(t.cropstart) &&
|
11418
|
+
se(t.cropstart) && Be(e, Ds, t.cropstart), se(t.cropmove) && Be(e, Ns, t.cropmove), se(t.cropend) && Be(e, Hs, t.cropend), se(t.crop) && Be(e, Ls, t.crop), se(t.zoom) && Be(e, Os, t.zoom), Be(r, _u, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && Be(r, Du, this.onWheel = this.wheel.bind(this), {
|
11419
11419
|
passive: !1,
|
11420
11420
|
capture: !0
|
11421
|
-
}), t.toggleDragModeOnDblclick &&
|
11421
|
+
}), t.toggleDragModeOnDblclick && Be(r, xu, this.onDblclick = this.dblclick.bind(this)), Be(e.ownerDocument, Su, this.onCropMove = this.cropMove.bind(this)), Be(e.ownerDocument, Lu, this.onCropEnd = this.cropEnd.bind(this)), t.responsive && Be(window, Nu, this.onResize = this.resize.bind(this));
|
11422
11422
|
},
|
11423
11423
|
unbind: function() {
|
11424
11424
|
var e = this.element, t = this.options, r = this.cropper;
|
@@ -11433,9 +11433,9 @@ var pm = {
|
|
11433
11433
|
var e = this.options, t = this.container, r = this.containerData, n = t.offsetWidth / r.width, a = t.offsetHeight / r.height, s = Math.abs(n - 1) > Math.abs(a - 1) ? n : a;
|
11434
11434
|
if (s !== 1) {
|
11435
11435
|
var u, o;
|
11436
|
-
e.restore && (u = this.getCanvasData(), o = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(
|
11436
|
+
e.restore && (u = this.getCanvasData(), o = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(HA(u, function(c, l) {
|
11437
11437
|
u[l] = c * s;
|
11438
|
-
})), this.setCropBoxData(
|
11438
|
+
})), this.setCropBoxData(HA(o, function(c, l) {
|
11439
11439
|
o[l] = c * s;
|
11440
11440
|
})));
|
11441
11441
|
}
|
@@ -11455,12 +11455,12 @@ var pm = {
|
|
11455
11455
|
if (!(this.disabled || (e.type === "mousedown" || e.type === "pointerdown" && e.pointerType === "mouse") && // No primary button (Usually the left button)
|
11456
11456
|
(nA(t) && t !== 1 || nA(r) && r !== 0 || e.ctrlKey))) {
|
11457
11457
|
var n = this.options, a = this.pointers, s;
|
11458
|
-
e.changedTouches ?
|
11458
|
+
e.changedTouches ? HA(e.changedTouches, function(u) {
|
11459
11459
|
a[u.identifier] = cn(u);
|
11460
11460
|
}) : a[e.pointerId || 0] = cn(e), Object.keys(a).length > 1 && n.zoomable && n.zoomOnTouch ? s = hl : s = Rs(e.target, Wr), WE.test(s) && $t(this.element, Ds, {
|
11461
11461
|
originalEvent: e,
|
11462
11462
|
action: s
|
11463
|
-
}) !== !1 && (e.preventDefault(), this.action = s, this.cropping = !1, s === ll && (this.cropping = !0,
|
11463
|
+
}) !== !1 && (e.preventDefault(), this.action = s, this.cropping = !1, s === ll && (this.cropping = !0, KA(this.dragBox, $n)));
|
11464
11464
|
}
|
11465
11465
|
},
|
11466
11466
|
cropMove: function(e) {
|
@@ -11470,7 +11470,7 @@ var pm = {
|
|
11470
11470
|
e.preventDefault(), $t(this.element, Ns, {
|
11471
11471
|
originalEvent: e,
|
11472
11472
|
action: t
|
11473
|
-
}) !== !1 && (e.changedTouches ?
|
11473
|
+
}) !== !1 && (e.changedTouches ? HA(e.changedTouches, function(n) {
|
11474
11474
|
FA(r[n.identifier] || {}, cn(n, !0));
|
11475
11475
|
}) : FA(r[e.pointerId || 0] || {}, cn(e, !0)), this.change(e));
|
11476
11476
|
}
|
@@ -11478,7 +11478,7 @@ var pm = {
|
|
11478
11478
|
cropEnd: function(e) {
|
11479
11479
|
if (!this.disabled) {
|
11480
11480
|
var t = this.action, r = this.pointers;
|
11481
|
-
e.changedTouches ?
|
11481
|
+
e.changedTouches ? HA(e.changedTouches, function(n) {
|
11482
11482
|
delete r[n.identifier];
|
11483
11483
|
}) : delete r[e.pointerId || 0], t && (e.preventDefault(), Object.keys(r).length || (this.action = ""), this.cropping && (this.cropping = !1, Wt(this.dragBox, $n, this.cropped && this.options.modal)), $t(this.element, Hs, {
|
11484
11484
|
originalEvent: e,
|
@@ -11488,15 +11488,15 @@ var pm = {
|
|
11488
11488
|
}
|
11489
11489
|
}, wm = {
|
11490
11490
|
change: function(e) {
|
11491
|
-
var t = this.options, r = this.canvasData, n = this.containerData, a = this.cropBoxData, s = this.pointers, u = this.action, o = t.aspectRatio, c = a.left, l = a.top, f = a.width, h = a.height, m = c + f, E = l + h, T = 0, Q = 0,
|
11492
|
-
!o && e.shiftKey && (o = f && h ? f / h : 1), this.limited && (T = a.minLeft, Q = a.minTop,
|
11491
|
+
var t = this.options, r = this.canvasData, n = this.containerData, a = this.cropBoxData, s = this.pointers, u = this.action, o = t.aspectRatio, c = a.left, l = a.top, f = a.width, h = a.height, m = c + f, E = l + h, T = 0, Q = 0, w = n.width, x = n.height, N = !0, K;
|
11492
|
+
!o && e.shiftKey && (o = f && h ? f / h : 1), this.limited && (T = a.minLeft, Q = a.minTop, w = T + Math.min(n.width, r.width, r.left + r.width), x = Q + Math.min(n.height, r.height, r.top + r.height));
|
11493
11493
|
var H = s[Object.keys(s)[0]], p = {
|
11494
11494
|
x: H.endX - H.startX,
|
11495
11495
|
y: H.endY - H.startY
|
11496
|
-
},
|
11497
|
-
switch (
|
11496
|
+
}, O = function(P) {
|
11497
|
+
switch (P) {
|
11498
11498
|
case pt:
|
11499
|
-
m + p.x >
|
11499
|
+
m + p.x > w && (p.x = w - m);
|
11500
11500
|
break;
|
11501
11501
|
case Et:
|
11502
11502
|
c + p.x < T && (p.x = T - c);
|
@@ -11514,42 +11514,42 @@ var pm = {
|
|
11514
11514
|
c += p.x, l += p.y;
|
11515
11515
|
break;
|
11516
11516
|
case pt:
|
11517
|
-
if (p.x >= 0 && (m >=
|
11517
|
+
if (p.x >= 0 && (m >= w || o && (l <= Q || E >= x))) {
|
11518
11518
|
N = !1;
|
11519
11519
|
break;
|
11520
11520
|
}
|
11521
|
-
|
11521
|
+
O(pt), f += p.x, f < 0 && (u = Et, f = -f, c -= f), o && (h = f / o, l += (a.height - h) / 2);
|
11522
11522
|
break;
|
11523
11523
|
case je:
|
11524
|
-
if (p.y <= 0 && (l <= Q || o && (c <= T || m >=
|
11524
|
+
if (p.y <= 0 && (l <= Q || o && (c <= T || m >= w))) {
|
11525
11525
|
N = !1;
|
11526
11526
|
break;
|
11527
11527
|
}
|
11528
|
-
|
11528
|
+
O(je), h -= p.y, l += p.y, h < 0 && (u = Dt, h = -h, l -= h), o && (f = h * o, c += (a.width - f) / 2);
|
11529
11529
|
break;
|
11530
11530
|
case Et:
|
11531
11531
|
if (p.x <= 0 && (c <= T || o && (l <= Q || E >= x))) {
|
11532
11532
|
N = !1;
|
11533
11533
|
break;
|
11534
11534
|
}
|
11535
|
-
|
11535
|
+
O(Et), f -= p.x, c += p.x, f < 0 && (u = pt, f = -f, c -= f), o && (h = f / o, l += (a.height - h) / 2);
|
11536
11536
|
break;
|
11537
11537
|
case Dt:
|
11538
|
-
if (p.y >= 0 && (E >= x || o && (c <= T || m >=
|
11538
|
+
if (p.y >= 0 && (E >= x || o && (c <= T || m >= w))) {
|
11539
11539
|
N = !1;
|
11540
11540
|
break;
|
11541
11541
|
}
|
11542
|
-
|
11542
|
+
O(Dt), h += p.y, h < 0 && (u = je, h = -h, l -= h), o && (f = h * o, c += (a.width - f) / 2);
|
11543
11543
|
break;
|
11544
11544
|
case lr:
|
11545
11545
|
if (o) {
|
11546
|
-
if (p.y <= 0 && (l <= Q || m >=
|
11546
|
+
if (p.y <= 0 && (l <= Q || m >= w)) {
|
11547
11547
|
N = !1;
|
11548
11548
|
break;
|
11549
11549
|
}
|
11550
|
-
|
11550
|
+
O(je), h -= p.y, l += p.y, f = h * o;
|
11551
11551
|
} else
|
11552
|
-
|
11552
|
+
O(je), O(pt), p.x >= 0 ? m < w ? f += p.x : p.y <= 0 && l <= Q && (N = !1) : f += p.x, p.y <= 0 ? l > Q && (h -= p.y, l += p.y) : (h -= p.y, l += p.y);
|
11553
11553
|
f < 0 && h < 0 ? (u = dr, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (u = fr, f = -f, c -= f) : h < 0 && (u = hr, h = -h, l -= h);
|
11554
11554
|
break;
|
11555
11555
|
case fr:
|
@@ -11558,9 +11558,9 @@ var pm = {
|
|
11558
11558
|
N = !1;
|
11559
11559
|
break;
|
11560
11560
|
}
|
11561
|
-
|
11561
|
+
O(je), h -= p.y, l += p.y, f = h * o, c += a.width - f;
|
11562
11562
|
} else
|
11563
|
-
|
11563
|
+
O(je), O(Et), p.x <= 0 ? c > T ? (f -= p.x, c += p.x) : p.y <= 0 && l <= Q && (N = !1) : (f -= p.x, c += p.x), p.y <= 0 ? l > Q && (h -= p.y, l += p.y) : (h -= p.y, l += p.y);
|
11564
11564
|
f < 0 && h < 0 ? (u = hr, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (u = lr, f = -f, c -= f) : h < 0 && (u = dr, h = -h, l -= h);
|
11565
11565
|
break;
|
11566
11566
|
case dr:
|
@@ -11569,20 +11569,20 @@ var pm = {
|
|
11569
11569
|
N = !1;
|
11570
11570
|
break;
|
11571
11571
|
}
|
11572
|
-
|
11572
|
+
O(Et), f -= p.x, c += p.x, h = f / o;
|
11573
11573
|
} else
|
11574
|
-
|
11574
|
+
O(Dt), O(Et), p.x <= 0 ? c > T ? (f -= p.x, c += p.x) : p.y >= 0 && E >= x && (N = !1) : (f -= p.x, c += p.x), p.y >= 0 ? E < x && (h += p.y) : h += p.y;
|
11575
11575
|
f < 0 && h < 0 ? (u = lr, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (u = hr, f = -f, c -= f) : h < 0 && (u = fr, h = -h, l -= h);
|
11576
11576
|
break;
|
11577
11577
|
case hr:
|
11578
11578
|
if (o) {
|
11579
|
-
if (p.x >= 0 && (m >=
|
11579
|
+
if (p.x >= 0 && (m >= w || E >= x)) {
|
11580
11580
|
N = !1;
|
11581
11581
|
break;
|
11582
11582
|
}
|
11583
|
-
|
11583
|
+
O(pt), f += p.x, h = f / o;
|
11584
11584
|
} else
|
11585
|
-
|
11585
|
+
O(Dt), O(pt), p.x >= 0 ? m < w ? f += p.x : p.y >= 0 && E >= x && (N = !1) : f += p.x, p.y >= 0 ? E < x && (h += p.y) : h += p.y;
|
11586
11586
|
f < 0 && h < 0 ? (u = fr, h = -h, f = -f, l -= h, c -= f) : f < 0 ? (u = dr, f = -f, c -= f) : h < 0 && (u = lr, h = -h, l -= h);
|
11587
11587
|
break;
|
11588
11588
|
case fl:
|
@@ -11599,14 +11599,14 @@ var pm = {
|
|
11599
11599
|
K = wl(this.cropper), c = H.startX - K.left, l = H.startY - K.top, f = a.minWidth, h = a.minHeight, p.x > 0 ? u = p.y > 0 ? hr : lr : p.x < 0 && (c -= f, u = p.y > 0 ? dr : fr), p.y < 0 && (l -= h), this.cropped || (He(this.cropBox, ue), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
11600
11600
|
break;
|
11601
11601
|
}
|
11602
|
-
N && (a.width = f, a.height = h, a.left = c, a.top = l, this.action = u, this.renderCropBox()),
|
11602
|
+
N && (a.width = f, a.height = h, a.left = c, a.top = l, this.action = u, this.renderCropBox()), HA(s, function(R) {
|
11603
11603
|
R.startX = R.endX, R.startY = R.endY;
|
11604
11604
|
});
|
11605
11605
|
}
|
11606
11606
|
}, bm = {
|
11607
11607
|
// Show the crop box manually
|
11608
11608
|
crop: function() {
|
11609
|
-
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal &&
|
11609
|
+
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && KA(this.dragBox, $n), He(this.cropBox, ue), this.setCropBoxData(this.initialCropBoxData)), this;
|
11610
11610
|
},
|
11611
11611
|
// Reset the image and crop box to their initial states
|
11612
11612
|
reset: function() {
|
@@ -11619,7 +11619,7 @@ var pm = {
|
|
11619
11619
|
top: 0,
|
11620
11620
|
width: 0,
|
11621
11621
|
height: 0
|
11622
|
-
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), He(this.dragBox, $n),
|
11622
|
+
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), He(this.dragBox, $n), KA(this.cropBox, ue)), this;
|
11623
11623
|
},
|
11624
11624
|
/**
|
11625
11625
|
* Replace the image's src and rebuild the cropper
|
@@ -11629,7 +11629,7 @@ var pm = {
|
|
11629
11629
|
*/
|
11630
11630
|
replace: function(e) {
|
11631
11631
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
11632
|
-
return !this.disabled && e && (this.isImg && (this.element.src = e), t ? (this.url = e, this.image.src = e, this.ready && (this.viewBoxImage.src = e,
|
11632
|
+
return !this.disabled && e && (this.isImg && (this.element.src = e), t ? (this.url = e, this.image.src = e, this.ready && (this.viewBoxImage.src = e, HA(this.previews, function(r) {
|
11633
11633
|
r.getElementsByTagName("img")[0].src = e;
|
11634
11634
|
}))) : (this.isImg && (this.replaced = !0), this.options.data = null, this.uncreate(), this.load(e))), this;
|
11635
11635
|
},
|
@@ -11639,7 +11639,7 @@ var pm = {
|
|
11639
11639
|
},
|
11640
11640
|
// Disable (freeze) the cropper
|
11641
11641
|
disable: function() {
|
11642
|
-
return this.ready && !this.disabled && (this.disabled = !0,
|
11642
|
+
return this.ready && !this.disabled && (this.disabled = !0, KA(this.cropper, Iu)), this;
|
11643
11643
|
},
|
11644
11644
|
/**
|
11645
11645
|
* Destroy the cropper and remove the instance from the image
|
@@ -11766,7 +11766,7 @@ var pm = {
|
|
11766
11766
|
height: a.height
|
11767
11767
|
};
|
11768
11768
|
var u = r.width / r.naturalWidth;
|
11769
|
-
if (
|
11769
|
+
if (HA(s, function(l, f) {
|
11770
11770
|
s[f] = l / u;
|
11771
11771
|
}), e) {
|
11772
11772
|
var o = Math.round(s.y + s.height), c = Math.round(s.x + s.width);
|
@@ -11816,7 +11816,7 @@ var pm = {
|
|
11816
11816
|
*/
|
11817
11817
|
getCanvasData: function() {
|
11818
11818
|
var e = this.canvasData, t = {};
|
11819
|
-
return this.ready &&
|
11819
|
+
return this.ready && HA(["left", "top", "width", "height", "naturalWidth", "naturalHeight"], function(r) {
|
11820
11820
|
t[r] = e[r];
|
11821
11821
|
}), t;
|
11822
11822
|
},
|
@@ -11879,18 +11879,18 @@ var pm = {
|
|
11879
11879
|
height: e.height || (c !== 1 ? r.height : o)
|
11880
11880
|
}), E = m.width, T = m.height;
|
11881
11881
|
E = Math.min(f.width, Math.max(h.width, E)), T = Math.min(f.height, Math.max(h.height, T));
|
11882
|
-
var Q = document.createElement("canvas"),
|
11883
|
-
Q.width = zt(E), Q.height = zt(T),
|
11882
|
+
var Q = document.createElement("canvas"), w = Q.getContext("2d");
|
11883
|
+
Q.width = zt(E), Q.height = zt(T), w.fillStyle = e.fillColor || "transparent", w.fillRect(0, 0, E, T);
|
11884
11884
|
var x = e.imageSmoothingEnabled, N = x === void 0 ? !0 : x, K = e.imageSmoothingQuality;
|
11885
|
-
|
11886
|
-
var H = r.width, p = r.height,
|
11887
|
-
|
11888
|
-
var gA = [
|
11885
|
+
w.imageSmoothingEnabled = N, K && (w.imageSmoothingQuality = K);
|
11886
|
+
var H = r.width, p = r.height, O = a, R = s, P, aA, fA, EA, Z, iA;
|
11887
|
+
O <= -u || O > H ? (O = 0, P = 0, fA = 0, Z = 0) : O <= 0 ? (fA = -O, O = 0, P = Math.min(H, u + O), Z = P) : O <= H && (fA = 0, P = Math.min(u, H - O), Z = P), P <= 0 || R <= -o || R > p ? (R = 0, aA = 0, EA = 0, iA = 0) : R <= 0 ? (EA = -R, R = 0, aA = Math.min(p, o + R), iA = aA) : R <= p && (EA = 0, aA = Math.min(o, p - R), iA = aA);
|
11888
|
+
var gA = [O, R, P, aA];
|
11889
11889
|
if (Z > 0 && iA > 0) {
|
11890
11890
|
var BA = E / u;
|
11891
11891
|
gA.push(fA * BA, EA * BA, Z * BA, iA * BA);
|
11892
11892
|
}
|
11893
|
-
return
|
11893
|
+
return w.drawImage.apply(w, [r].concat(cl(gA.map(function(vA) {
|
11894
11894
|
return Math.floor(zt(vA));
|
11895
11895
|
})))), Q;
|
11896
11896
|
},
|
@@ -11978,7 +11978,7 @@ var pm = {
|
|
11978
11978
|
var t = this.element, r = this.url, n = t.crossOrigin, a = r;
|
11979
11979
|
this.options.checkCrossOrigin && ku(r) && (n || (n = "anonymous"), a = Pu(r)), this.crossOrigin = n, this.crossOriginUrl = a;
|
11980
11980
|
var s = document.createElement("img");
|
11981
|
-
n && (s.crossOrigin = n), s.src = a || r, s.alt = t.alt || "The image to crop", this.image = s, s.onload = this.start.bind(this), s.onerror = this.stop.bind(this),
|
11981
|
+
n && (s.crossOrigin = n), s.src = a || r, s.alt = t.alt || "The image to crop", this.image = s, s.onload = this.start.bind(this), s.onerror = this.stop.bind(this), KA(s, yu), t.parentNode.insertBefore(s, t.nextSibling);
|
11982
11982
|
}
|
11983
11983
|
}, {
|
11984
11984
|
key: "start",
|
@@ -12014,7 +12014,7 @@ var pm = {
|
|
12014
12014
|
var t = this.element, r = this.options, n = this.image, a = t.parentNode, s = document.createElement("div");
|
12015
12015
|
s.innerHTML = zE;
|
12016
12016
|
var u = s.querySelector(".".concat(QA, "-container")), o = u.querySelector(".".concat(QA, "-canvas")), c = u.querySelector(".".concat(QA, "-drag-box")), l = u.querySelector(".".concat(QA, "-crop-box")), f = l.querySelector(".".concat(QA, "-face"));
|
12017
|
-
this.container = a, this.cropper = u, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = u.querySelector(".".concat(QA, "-view-box")), this.face = f, o.appendChild(n),
|
12017
|
+
this.container = a, this.cropper = u, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = u.querySelector(".".concat(QA, "-view-box")), this.face = f, o.appendChild(n), KA(t, ue), a.insertBefore(u, t.nextSibling), He(n, yu), this.initPreview(), this.bind(), r.initialAspectRatio = Math.max(0, r.initialAspectRatio) || NaN, r.aspectRatio = Math.max(0, r.aspectRatio) || NaN, r.viewMode = Math.max(0, Math.min(3, Math.round(r.viewMode))) || 0, KA(l, ue), r.guides || KA(l.getElementsByClassName("".concat(QA, "-dashed")), ue), r.center || KA(l.getElementsByClassName("".concat(QA, "-center")), ue), r.background && KA(u, "".concat(QA, "-bg")), r.highlight || KA(f, GE), r.cropBoxMovable && (KA(f, Ss), Jr(f, Wr, Hi)), r.cropBoxResizable || (KA(l.getElementsByClassName("".concat(QA, "-line")), ue), KA(l.getElementsByClassName("".concat(QA, "-point")), ue)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), se(r.ready) && Be(t, Hu, r.ready, {
|
12018
12018
|
once: !0
|
12019
12019
|
}), $t(t, Hu);
|
12020
12020
|
}
|
@@ -12147,14 +12147,14 @@ const Qm = {
|
|
12147
12147
|
});
|
12148
12148
|
}
|
12149
12149
|
const m = z(!1), E = z();
|
12150
|
-
function T(H, p,
|
12151
|
-
E.value = R, a.value = H, H && H.aspectRatio && (s.value.aspectRatio = H.aspectRatio),
|
12150
|
+
function T(H, p, O, R) {
|
12151
|
+
E.value = R, a.value = H, H && H.aspectRatio && (s.value.aspectRatio = H.aspectRatio), O && (n.value.inputValue = O), m.value = !0, p && f(p);
|
12152
12152
|
}
|
12153
12153
|
function Q() {
|
12154
12154
|
m.value = !1;
|
12155
12155
|
}
|
12156
|
-
const
|
12157
|
-
var R,
|
12156
|
+
const w = () => {
|
12157
|
+
var R, P;
|
12158
12158
|
if (!c.value.myCropper)
|
12159
12159
|
return;
|
12160
12160
|
u.value = !0;
|
@@ -12163,15 +12163,15 @@ const Qm = {
|
|
12163
12163
|
// 高
|
12164
12164
|
imageSmoothingQuality: "high",
|
12165
12165
|
// 图片质量
|
12166
|
-
width: (
|
12166
|
+
width: (P = a.value) == null ? void 0 : P.width
|
12167
12167
|
// 输出图片的宽
|
12168
12168
|
}).toDataURL(o.value);
|
12169
12169
|
c.value.afterImg = p;
|
12170
|
-
const
|
12170
|
+
const O = Um(
|
12171
12171
|
c.value.afterImg,
|
12172
12172
|
n.value.inputValue
|
12173
12173
|
);
|
12174
|
-
r("ok", { file:
|
12174
|
+
r("ok", { file: O, element: E.value }), u.value = !1, K(), N(), Q();
|
12175
12175
|
};
|
12176
12176
|
function x() {
|
12177
12177
|
K(), N(), Q(), r("cancel");
|
@@ -12183,68 +12183,68 @@ const Qm = {
|
|
12183
12183
|
c.value.image = "";
|
12184
12184
|
}
|
12185
12185
|
return e({ handleCloseCropper: Q, handleOpenCropper: T }), (H, p) => {
|
12186
|
-
var
|
12187
|
-
return m.value ? (
|
12188
|
-
|
12189
|
-
|
12190
|
-
p[1] || (p[1] =
|
12191
|
-
|
12186
|
+
var O, R, P;
|
12187
|
+
return m.value ? (M(), V("div", Qm, [
|
12188
|
+
b("div", Fm, [
|
12189
|
+
b("div", vm, [
|
12190
|
+
p[1] || (p[1] = b("span", { class: "text-base font-semibold text-[#333]" }, "图片裁剪", -1)),
|
12191
|
+
b("span", {
|
12192
12192
|
class: "text-lg cursor-pointer text-[#999] iconfont icon-shanchu2",
|
12193
|
-
onClick:
|
12193
|
+
onClick: PA(x, ["stop"])
|
12194
12194
|
})
|
12195
12195
|
]),
|
12196
|
-
|
12197
|
-
|
12198
|
-
|
12199
|
-
|
12200
|
-
|
12201
|
-
|
12202
|
-
|
12203
|
-
|
12196
|
+
b("div", Im, [
|
12197
|
+
b("div", ym, [
|
12198
|
+
b("div", xm, [
|
12199
|
+
b("div", _m, [
|
12200
|
+
b("div", Sm, [
|
12201
|
+
b("div", Lm, [
|
12202
|
+
b("div", Hm, [
|
12203
|
+
b("input", {
|
12204
12204
|
type: "file",
|
12205
12205
|
accept: "image/*",
|
12206
|
-
onClick: p[0] || (p[0] =
|
12206
|
+
onClick: p[0] || (p[0] = PA(() => {
|
12207
12207
|
}, ["stop"])),
|
12208
12208
|
contenteditable: "false",
|
12209
12209
|
ref: "fileInput",
|
12210
12210
|
onChange: l,
|
12211
12211
|
class: "absolute top-0 left-0 w-[110px] h-[40px] opacity-0 cursor-pointer"
|
12212
12212
|
}, null, 544),
|
12213
|
-
p[2] || (p[2] =
|
12213
|
+
p[2] || (p[2] = b("span", {
|
12214
12214
|
id: "uploadHandler",
|
12215
12215
|
class: "cursor-pointer"
|
12216
12216
|
}, " 选择/更换图片 ", -1))
|
12217
12217
|
]),
|
12218
|
-
p[3] || (p[3] =
|
12218
|
+
p[3] || (p[3] = b("span", { class: "text-sm text-[#999] ml-3" }, "滚动鼠标放大或缩小图片", -1))
|
12219
12219
|
]),
|
12220
|
-
|
12221
|
-
|
12222
|
-
|
12223
|
-
c.value.image ? q("", !0) : (
|
12224
|
-
|
12220
|
+
b("div", Nm, [
|
12221
|
+
b("div", Dm, [
|
12222
|
+
b("div", Om, [
|
12223
|
+
c.value.image ? q("", !0) : (M(), V("div", Rm, " 请上传图片 ")),
|
12224
|
+
b("img", {
|
12225
12225
|
id: "imgId",
|
12226
12226
|
src: c.value.image,
|
12227
12227
|
style: { width: "300px" }
|
12228
12228
|
}, null, 8, Mm)
|
12229
12229
|
])
|
12230
12230
|
]),
|
12231
|
-
|
12232
|
-
p[4] || (p[4] =
|
12233
|
-
|
12231
|
+
b("div", km, [
|
12232
|
+
p[4] || (p[4] = b("div", { class: "before w-[270px] h-[200px] pr-[70px] border" }, null, -1)),
|
12233
|
+
b("div", Pm, " 预览画像 " + IA(((O = a.value) == null ? void 0 : O.width) || "") + " " + IA((R = a.value) != null && R.width ? "x" : "") + " " + IA(((P = a.value) == null ? void 0 : P.height) || ""), 1)
|
12234
12234
|
])
|
12235
12235
|
])
|
12236
12236
|
])
|
12237
12237
|
])
|
12238
12238
|
])
|
12239
12239
|
]),
|
12240
|
-
|
12241
|
-
|
12240
|
+
b("div", Km, [
|
12241
|
+
b("span", {
|
12242
12242
|
loading: u.value,
|
12243
12243
|
class: "!w-22 bg-[#474AFF] text-white rounded py-2 px-6 cursor-pointer",
|
12244
12244
|
type: "primary",
|
12245
|
-
onClick:
|
12245
|
+
onClick: w
|
12246
12246
|
}, " 确认 ", 8, Gm),
|
12247
|
-
|
12247
|
+
b("span", {
|
12248
12248
|
class: "!w-22 border border-[#DEDEDE] text-[#666] rounded py-2 px-6 cursor-pointer",
|
12249
12249
|
onClick: x
|
12250
12250
|
}, "取消")
|
@@ -12321,28 +12321,28 @@ const Qm = {
|
|
12321
12321
|
class: "p-4 border-t border-gray-200 flex justify-end space-x-2"
|
12322
12322
|
};
|
12323
12323
|
function zm(A, e, t, r, n, a) {
|
12324
|
-
return A.visible ? (
|
12324
|
+
return A.visible ? (M(), V("div", {
|
12325
12325
|
key: 0,
|
12326
12326
|
class: "fixed inset-0 z-[99999] flex items-center justify-center bg-gray-900 bg-opacity-50",
|
12327
|
-
onClick: e[3] || (e[3] =
|
12327
|
+
onClick: e[3] || (e[3] = PA((...s) => A.onMaskClosable && A.onMaskClosable(...s), ["self"]))
|
12328
12328
|
}, [
|
12329
|
-
|
12330
|
-
|
12331
|
-
A.title ? (
|
12329
|
+
b("div", Xm, [
|
12330
|
+
b("div", Wm, [
|
12331
|
+
A.title ? (M(), V("h3", Jm, IA(A.title), 1)) : q("", !0),
|
12332
12332
|
vr(A.$slots, "header"),
|
12333
|
-
A.showCloseButton ? (
|
12333
|
+
A.showCloseButton ? (M(), V("button", {
|
12334
12334
|
key: 1,
|
12335
12335
|
class: "text-gray-400 hover:text-gray-600",
|
12336
12336
|
onClick: e[0] || (e[0] = (...s) => A.onClose && A.onClose(...s)),
|
12337
12337
|
"aria-label": "Close"
|
12338
12338
|
}, e[4] || (e[4] = [
|
12339
|
-
|
12339
|
+
b("svg", {
|
12340
12340
|
xmlns: "http://www.w3.org/2000/svg",
|
12341
12341
|
class: "h-5 w-5",
|
12342
12342
|
viewBox: "0 0 20 20",
|
12343
12343
|
fill: "currentColor"
|
12344
12344
|
}, [
|
12345
|
-
|
12345
|
+
b("path", {
|
12346
12346
|
"fill-rule": "evenodd",
|
12347
12347
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
12348
12348
|
"clip-rule": "evenodd"
|
@@ -12350,21 +12350,21 @@ function zm(A, e, t, r, n, a) {
|
|
12350
12350
|
], -1)
|
12351
12351
|
]))) : q("", !0)
|
12352
12352
|
]),
|
12353
|
-
|
12353
|
+
b("div", qm, [
|
12354
12354
|
vr(A.$slots, "default")
|
12355
12355
|
]),
|
12356
|
-
A.showCancelButton || A.showOkButton ? (
|
12356
|
+
A.showCancelButton || A.showOkButton ? (M(), V("div", jm, [
|
12357
12357
|
vr(A.$slots, "footer", {}, () => [
|
12358
|
-
A.showCancelButton ? (
|
12358
|
+
A.showCancelButton ? (M(), V("button", {
|
12359
12359
|
key: 0,
|
12360
12360
|
class: "px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded hover:bg-gray-200",
|
12361
12361
|
onClick: e[1] || (e[1] = (...s) => A.onCancel && A.onCancel(...s))
|
12362
|
-
},
|
12363
|
-
A.showOkButton ? (
|
12362
|
+
}, IA(A.cancelText), 1)) : q("", !0),
|
12363
|
+
A.showOkButton ? (M(), V("button", {
|
12364
12364
|
key: 1,
|
12365
12365
|
class: "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded hover:bg-blue-700",
|
12366
12366
|
onClick: e[2] || (e[2] = (...s) => A.onOk && A.onOk(...s))
|
12367
|
-
},
|
12367
|
+
}, IA(A.okText), 1)) : q("", !0)
|
12368
12368
|
])
|
12369
12369
|
])) : q("", !0)
|
12370
12370
|
])
|
@@ -12401,7 +12401,7 @@ const Ul = /* @__PURE__ */ gt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
|
|
12401
12401
|
function l() {
|
12402
12402
|
s.value = !1;
|
12403
12403
|
}
|
12404
|
-
return e({ openModal: o, closeModal: l }), (f, h) => (
|
12404
|
+
return e({ openModal: o, closeModal: l }), (f, h) => (M(), Ve(Ul, {
|
12405
12405
|
visible: s.value,
|
12406
12406
|
"onUpdate:visible": h[0] || (h[0] = (m) => s.value = m),
|
12407
12407
|
title: "选择图标",
|
@@ -12411,10 +12411,10 @@ const Ul = /* @__PURE__ */ gt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
|
|
12411
12411
|
showOkButton: !1
|
12412
12412
|
}, {
|
12413
12413
|
default: kr(() => [
|
12414
|
-
|
12415
|
-
(
|
12414
|
+
b("div", $m, [
|
12415
|
+
(M(!0), V(Yt, null, kn(a.value, (m) => (M(), V("span", {
|
12416
12416
|
key: m,
|
12417
|
-
onClick:
|
12417
|
+
onClick: PA((E) => c(m), ["stop"]),
|
12418
12418
|
style: { position: "unset", color: "unset", top: "unset", left: "unset", right: "unset", transform: "unset", "font-size": "unset" },
|
12419
12419
|
class: ui(["w-12 h-12 mx-1 mb-2 border cursor-pointer hover:border-gray-400 hover:bg-gray-200", `iconfont icon-${m} !text-4xl overflow-hidden flex justify-center items-center`])
|
12420
12420
|
}, null, 10, Zm))), 128))
|
@@ -12473,13 +12473,13 @@ const Ul = /* @__PURE__ */ gt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
|
|
12473
12473
|
const Q = h[T];
|
12474
12474
|
if (A.beforeUpload && await A.beforeUpload(Q) === !1)
|
12475
12475
|
continue;
|
12476
|
-
const
|
12476
|
+
const w = `${Date.now()}-${Q.name}`, x = URL.createObjectURL(Q), N = document.createElement("img");
|
12477
12477
|
N.src = x, document.body.appendChild(N), await new Promise((p) => {
|
12478
12478
|
N.onload = p;
|
12479
12479
|
});
|
12480
12480
|
const K = N.width, H = N.height;
|
12481
12481
|
document.body.removeChild(N), m.push({
|
12482
|
-
uid:
|
12482
|
+
uid: w,
|
12483
12483
|
name: Q.name,
|
12484
12484
|
status: "uploading",
|
12485
12485
|
thumbUrl: x,
|
@@ -12511,19 +12511,19 @@ const Ul = /* @__PURE__ */ gt(Ym, [["render", zm]]), $m = { class: "p-4 flex fle
|
|
12511
12511
|
class: "file-list mt-4"
|
12512
12512
|
}, a1 = { class: "flex items-center space-x-4" }, s1 = ["src"], i1 = ["onClick"];
|
12513
12513
|
function u1(A, e, t, r, n, a) {
|
12514
|
-
return
|
12515
|
-
A.isShow ? (
|
12514
|
+
return M(), V("div", t1, [
|
12515
|
+
A.isShow ? (M(), V("div", {
|
12516
12516
|
key: 0,
|
12517
12517
|
class: "",
|
12518
12518
|
onClick: e[0] || (e[0] = (...s) => A.triggerInput && A.triggerInput(...s))
|
12519
12519
|
}, [
|
12520
12520
|
vr(A.$slots, "upload-icon", {}, () => [
|
12521
|
-
e[2] || (e[2] =
|
12522
|
-
|
12521
|
+
e[2] || (e[2] = b("div", { class: "upload-area border-dashed border-2 p-6 rounded cursor-pointer hover:border-blue-500" }, [
|
12522
|
+
b("div", { class: "text-gray-400 text-lg text-center" }, " 点击或拖拽上传图片 ")
|
12523
12523
|
], -1))
|
12524
12524
|
], !0)
|
12525
12525
|
])) : q("", !0),
|
12526
|
-
|
12526
|
+
b("input", {
|
12527
12527
|
type: "file",
|
12528
12528
|
ref: "inputRef",
|
12529
12529
|
class: "hidden",
|
@@ -12531,22 +12531,22 @@ function u1(A, e, t, r, n, a) {
|
|
12531
12531
|
multiple: A.multiple,
|
12532
12532
|
onChange: e[1] || (e[1] = (...s) => A.handleChange && A.handleChange(...s))
|
12533
12533
|
}, null, 40, r1),
|
12534
|
-
A.showList ? (
|
12535
|
-
(
|
12534
|
+
A.showList ? (M(), V("div", n1, [
|
12535
|
+
(M(!0), V(Yt, null, kn(A.fileList, (s) => (M(), V("div", {
|
12536
12536
|
key: s.uid,
|
12537
12537
|
class: "file-item flex items-center justify-between p-2 border rounded mb-2"
|
12538
12538
|
}, [
|
12539
|
-
|
12540
|
-
s.thumbUrl ? (
|
12539
|
+
b("div", a1, [
|
12540
|
+
s.thumbUrl ? (M(), V("img", {
|
12541
12541
|
key: 0,
|
12542
12542
|
src: s.thumbUrl,
|
12543
12543
|
alt: "preview",
|
12544
12544
|
class: "w-12 h-12 object-cover rounded"
|
12545
12545
|
}, null, 8, s1)) : q("", !0),
|
12546
|
-
|
12546
|
+
b("span", null, IA(s.name), 1)
|
12547
12547
|
]),
|
12548
|
-
|
12549
|
-
|
12548
|
+
b("div", null, [
|
12549
|
+
b("button", {
|
12550
12550
|
onClick: (u) => A.removeFile(s.uid),
|
12551
12551
|
class: "text-red-500 hover:underline"
|
12552
12552
|
}, " 删除 ", 8, i1)
|
@@ -12727,7 +12727,7 @@ var We = (
|
|
12727
12727
|
e.push(n);
|
12728
12728
|
}
|
12729
12729
|
return e;
|
12730
|
-
},
|
12730
|
+
}, _A = function() {
|
12731
12731
|
for (var A = [], e = 0; e < arguments.length; e++)
|
12732
12732
|
A[e] = arguments[e];
|
12733
12733
|
if (String.fromCodePoint)
|
@@ -12924,7 +12924,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
12924
12924
|
this.codePoints = e, this.required = t === xl, this.start = r, this.end = n;
|
12925
12925
|
}
|
12926
12926
|
return A.prototype.slice = function() {
|
12927
|
-
return
|
12927
|
+
return _A.apply(void 0, this.codePoints.slice(this.start, this.end));
|
12928
12928
|
}, A;
|
12929
12929
|
}()
|
12930
12930
|
), Y1 = function(A, e) {
|
@@ -12975,17 +12975,17 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
12975
12975
|
(A[e] === bt || A[e] === oe) && (A[e] === oe && (t = -1), e++);
|
12976
12976
|
for (var r = []; ZA(A[e]); )
|
12977
12977
|
r.push(A[e++]);
|
12978
|
-
var n = r.length ? parseInt(
|
12978
|
+
var n = r.length ? parseInt(_A.apply(void 0, r), 10) : 0;
|
12979
12979
|
A[e] === jr && e++;
|
12980
12980
|
for (var a = []; ZA(A[e]); )
|
12981
12981
|
a.push(A[e++]);
|
12982
|
-
var s = a.length, u = s ? parseInt(
|
12982
|
+
var s = a.length, u = s ? parseInt(_A.apply(void 0, a), 10) : 0;
|
12983
12983
|
(A[e] === Dl || A[e] === Hl) && e++;
|
12984
12984
|
var o = 1;
|
12985
12985
|
(A[e] === bt || A[e] === oe) && (A[e] === oe && (o = -1), e++);
|
12986
12986
|
for (var c = []; ZA(A[e]); )
|
12987
12987
|
c.push(A[e++]);
|
12988
|
-
var l = c.length ? parseInt(
|
12988
|
+
var l = c.length ? parseInt(_A.apply(void 0, c), 10) : 0;
|
12989
12989
|
return t * (n + u * Math.pow(10, -s)) * Math.pow(10, o * l);
|
12990
12990
|
}, SC = {
|
12991
12991
|
type: 2
|
@@ -13165,7 +13165,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13165
13165
|
case ye:
|
13166
13166
|
return zs;
|
13167
13167
|
}
|
13168
|
-
return Tn(e) ? (this.consumeWhiteSpace(), jC) : ZA(e) ? (this.reconsumeCodePoint(e), this.consumeNumericToken()) : Aa(e) ? (this.reconsumeCodePoint(e), this.consumeIdentLikeToken()) : { type: 6, value:
|
13168
|
+
return Tn(e) ? (this.consumeWhiteSpace(), jC) : ZA(e) ? (this.reconsumeCodePoint(e), this.consumeNumericToken()) : Aa(e) ? (this.reconsumeCodePoint(e), this.consumeIdentLikeToken()) : { type: 6, value: _A(e) };
|
13169
13169
|
}, A.prototype.consumeCodePoint = function() {
|
13170
13170
|
var e = this._value.shift();
|
13171
13171
|
return typeof e > "u" ? -1 : e;
|
@@ -13179,19 +13179,19 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13179
13179
|
for (var r = !1; t === bn && e.length < 6; )
|
13180
13180
|
e.push(t), t = this.consumeCodePoint(), r = !0;
|
13181
13181
|
if (r) {
|
13182
|
-
var n = parseInt(
|
13182
|
+
var n = parseInt(_A.apply(void 0, e.map(function(o) {
|
13183
13183
|
return o === bn ? Sl : o;
|
13184
|
-
})), 16), a = parseInt(
|
13184
|
+
})), 16), a = parseInt(_A.apply(void 0, e.map(function(o) {
|
13185
13185
|
return o === bn ? Ol : o;
|
13186
13186
|
})), 16);
|
13187
13187
|
return { type: 30, start: n, end: a };
|
13188
13188
|
}
|
13189
|
-
var s = parseInt(
|
13189
|
+
var s = parseInt(_A.apply(void 0, e), 16);
|
13190
13190
|
if (this.peekCodePoint(0) === oe && Mt(this.peekCodePoint(1))) {
|
13191
13191
|
this.consumeCodePoint(), t = this.consumeCodePoint();
|
13192
13192
|
for (var u = []; Mt(t) && u.length < 6; )
|
13193
13193
|
u.push(t), t = this.consumeCodePoint();
|
13194
|
-
var a = parseInt(
|
13194
|
+
var a = parseInt(_A.apply(void 0, u), 16);
|
13195
13195
|
return { type: 30, start: s, end: a };
|
13196
13196
|
} else
|
13197
13197
|
return { type: 30, start: s, end: s };
|
@@ -13210,9 +13210,9 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13210
13210
|
for (; ; ) {
|
13211
13211
|
var n = this.consumeCodePoint();
|
13212
13212
|
if (n === ye || n === Er)
|
13213
|
-
return { type: 22, value:
|
13213
|
+
return { type: 22, value: _A.apply(void 0, e) };
|
13214
13214
|
if (Tn(n))
|
13215
|
-
return this.consumeWhiteSpace(), this.peekCodePoint(0) === ye || this.peekCodePoint(0) === Er ? (this.consumeCodePoint(), { type: 22, value:
|
13215
|
+
return this.consumeWhiteSpace(), this.peekCodePoint(0) === ye || this.peekCodePoint(0) === Er ? (this.consumeCodePoint(), { type: 22, value: _A.apply(void 0, e) }) : (this.consumeBadUrlRemnants(), Qn);
|
13216
13216
|
if (n === mn || n === Cn || n === wn || xC(n))
|
13217
13217
|
return this.consumeBadUrlRemnants(), Qn;
|
13218
13218
|
if (n === Nr)
|
@@ -13236,7 +13236,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13236
13236
|
}, A.prototype.consumeStringSlice = function(e) {
|
13237
13237
|
for (var t = 5e4, r = ""; e > 0; ) {
|
13238
13238
|
var n = Math.min(t, e);
|
13239
|
-
r +=
|
13239
|
+
r += _A.apply(void 0, this._value.splice(0, n)), e -= n;
|
13240
13240
|
}
|
13241
13241
|
return this._value.shift(), r;
|
13242
13242
|
}, A.prototype.consumeStringToken = function(e) {
|
@@ -13249,7 +13249,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13249
13249
|
return this._value.splice(0, r), GC;
|
13250
13250
|
if (n === Nr) {
|
13251
13251
|
var a = this._value[r + 1];
|
13252
|
-
a !== ye && a !== void 0 && (a === Zn ? (t += this.consumeStringSlice(r), r = -1, this._value.shift()) : tt(n, a) && (t += this.consumeStringSlice(r), t +=
|
13252
|
+
a !== ye && a !== void 0 && (a === Zn ? (t += this.consumeStringSlice(r), r = -1, this._value.shift()) : tt(n, a) && (t += this.consumeStringSlice(r), t += _A(this.consumeEscapedCodePoint()), r = -1));
|
13253
13253
|
}
|
13254
13254
|
r++;
|
13255
13255
|
} while (!0);
|
@@ -13278,8 +13278,8 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13278
13278
|
}, A.prototype.consumeEscapedCodePoint = function() {
|
13279
13279
|
var e = this.consumeCodePoint();
|
13280
13280
|
if (Mt(e)) {
|
13281
|
-
for (var t =
|
13282
|
-
t +=
|
13281
|
+
for (var t = _A(e); Mt(this.peekCodePoint(0)) && t.length < 6; )
|
13282
|
+
t += _A(this.consumeCodePoint());
|
13283
13283
|
Tn(this.peekCodePoint(0)) && this.consumeCodePoint();
|
13284
13284
|
var r = parseInt(t, 16);
|
13285
13285
|
return r === 0 || QC(r) || r > 1114111 ? ro : r;
|
@@ -13289,9 +13289,9 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13289
13289
|
for (var e = ""; ; ) {
|
13290
13290
|
var t = this.consumeCodePoint();
|
13291
13291
|
if (no(t))
|
13292
|
-
e +=
|
13292
|
+
e += _A(t);
|
13293
13293
|
else if (tt(t, this.peekCodePoint(0)))
|
13294
|
-
e +=
|
13294
|
+
e += _A(this.consumeEscapedCodePoint());
|
13295
13295
|
else
|
13296
13296
|
return this.reconsumeCodePoint(t), e;
|
13297
13297
|
}
|
@@ -13395,7 +13395,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13395
13395
|
return e === 11 && A.type === 12 || e === 28 && A.type === 29 ? !0 : e === 2 && A.type === 3;
|
13396
13396
|
}, ft = function(A) {
|
13397
13397
|
return A.type === 17 || A.type === 15;
|
13398
|
-
},
|
13398
|
+
}, LA = function(A) {
|
13399
13399
|
return A.type === 16 || ft(A);
|
13400
13400
|
}, Pl = function(A) {
|
13401
13401
|
return A.length > 1 ? [A[0], A[1]] : [A[0]];
|
@@ -13457,7 +13457,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13457
13457
|
return [jA, jA];
|
13458
13458
|
case "to top":
|
13459
13459
|
case "bottom":
|
13460
|
-
return
|
13460
|
+
return be(0);
|
13461
13461
|
case "to bottom left":
|
13462
13462
|
case "to left bottom":
|
13463
13463
|
case "right top":
|
@@ -13465,7 +13465,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13465
13465
|
return [jA, ut];
|
13466
13466
|
case "to right":
|
13467
13467
|
case "left":
|
13468
|
-
return
|
13468
|
+
return be(90);
|
13469
13469
|
case "to top left":
|
13470
13470
|
case "to left top":
|
13471
13471
|
case "right bottom":
|
@@ -13473,7 +13473,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13473
13473
|
return [ut, ut];
|
13474
13474
|
case "to bottom":
|
13475
13475
|
case "top":
|
13476
|
-
return
|
13476
|
+
return be(180);
|
13477
13477
|
case "to top right":
|
13478
13478
|
case "to right top":
|
13479
13479
|
case "left bottom":
|
@@ -13481,10 +13481,10 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13481
13481
|
return [ut, jA];
|
13482
13482
|
case "to left":
|
13483
13483
|
case "right":
|
13484
|
-
return
|
13484
|
+
return be(270);
|
13485
13485
|
}
|
13486
13486
|
return 0;
|
13487
|
-
},
|
13487
|
+
}, be = function(A) {
|
13488
13488
|
return Math.PI * A / 180;
|
13489
13489
|
}, ct = {
|
13490
13490
|
name: "color",
|
@@ -13522,7 +13522,7 @@ var y1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
13522
13522
|
}
|
13523
13523
|
}, lt = function(A) {
|
13524
13524
|
return (255 & A) === 0;
|
13525
|
-
},
|
13525
|
+
}, MA = function(A) {
|
13526
13526
|
var e = 255 & A, t = 255 & A >> 8, r = 255 & A >> 16, n = 255 & A >> 24;
|
13527
13527
|
return e < 255 ? "rgba(" + n + "," + r + "," + t + "," + e / 255 + ")" : "rgb(" + n + "," + r + "," + t + ")";
|
13528
13528
|
}, ot = function(A, e, t, r) {
|
@@ -13551,7 +13551,7 @@ function As(A, e, t) {
|
|
13551
13551
|
return t < 0 && (t += 1), t >= 1 && (t -= 1), t < 1 / 6 ? (e - A) * t * 6 + A : t < 1 / 2 ? e : t < 2 / 3 ? (e - A) * 6 * (2 / 3 - t) + A : A;
|
13552
13552
|
}
|
13553
13553
|
var io = function(A, e) {
|
13554
|
-
var t = e.filter(tr), r = t[0], n = t[1], a = t[2], s = t[3], u = (r.type === 17 ?
|
13554
|
+
var t = e.filter(tr), r = t[0], n = t[1], a = t[2], s = t[3], u = (r.type === 17 ? be(r.number) : Ua.parse(A, r)) / (Math.PI * 2), o = LA(n) ? n.number / 100 : 0, c = LA(a) ? a.number / 100 : 0, l = typeof s < "u" && LA(s) ? pA(s, 1) : 1;
|
13555
13555
|
if (o === 0)
|
13556
13556
|
return ot(c * 255, c * 255, c * 255, 1);
|
13557
13557
|
var f = c <= 0.5 ? c * (o + 1) : c + o - c * o, h = c * 2 - f, m = As(h, f, u + 1 / 3), E = As(h, f, u), T = As(h, f, u - 1 / 3);
|
@@ -13738,7 +13738,7 @@ var io = function(A, e) {
|
|
13738
13738
|
format: "color"
|
13739
13739
|
}, Qa = function(A, e) {
|
13740
13740
|
var t = ct.parse(A, e[0]), r = e[1];
|
13741
|
-
return r &&
|
13741
|
+
return r && LA(r) ? { color: t, stop: r } : { color: t, stop: null };
|
13742
13742
|
}, uo = function(A, e) {
|
13743
13743
|
var t = A[0], r = A[A.length - 1];
|
13744
13744
|
t.stop === null && (t.stop = jA), r.stop === null && (r.stop = ut);
|
@@ -13761,8 +13761,8 @@ var io = function(A, e) {
|
|
13761
13761
|
}
|
13762
13762
|
}
|
13763
13763
|
return A.map(function(T, Q) {
|
13764
|
-
var
|
13765
|
-
return { color:
|
13764
|
+
var w = T.color;
|
13765
|
+
return { color: w, stop: Math.max(Math.min(1, n[Q] / e), 0) };
|
13766
13766
|
});
|
13767
13767
|
}, tw = function(A, e, t) {
|
13768
13768
|
var r = e / 2, n = t / 2, a = pA(A[0], e) - r, s = n - pA(A[1], t);
|
@@ -13817,7 +13817,7 @@ var io = function(A, e) {
|
|
13817
13817
|
}
|
13818
13818
|
return Array.isArray(A.size) && (a = pA(A.size[0], r), s = A.size.length === 2 ? pA(A.size[1], n) : a), [a, s];
|
13819
13819
|
}, aw = function(A, e) {
|
13820
|
-
var t =
|
13820
|
+
var t = be(180), r = [];
|
13821
13821
|
return Oe(e).forEach(function(n, a) {
|
13822
13822
|
if (a === 0) {
|
13823
13823
|
var s = n[0];
|
@@ -13838,7 +13838,7 @@ var io = function(A, e) {
|
|
13838
13838
|
/* LINEAR_GRADIENT */
|
13839
13839
|
};
|
13840
13840
|
}, Fn = function(A, e) {
|
13841
|
-
var t =
|
13841
|
+
var t = be(180), r = [];
|
13842
13842
|
return Oe(e).forEach(function(n, a) {
|
13843
13843
|
if (a === 0) {
|
13844
13844
|
var s = n[0];
|
@@ -13846,7 +13846,7 @@ var io = function(A, e) {
|
|
13846
13846
|
t = Wl(n);
|
13847
13847
|
return;
|
13848
13848
|
} else if (Xl(s)) {
|
13849
|
-
t = (Ua.parse(A, s) +
|
13849
|
+
t = (Ua.parse(A, s) + be(270)) % be(360);
|
13850
13850
|
return;
|
13851
13851
|
}
|
13852
13852
|
}
|
@@ -13859,7 +13859,7 @@ var io = function(A, e) {
|
|
13859
13859
|
/* LINEAR_GRADIENT */
|
13860
13860
|
};
|
13861
13861
|
}, sw = function(A, e) {
|
13862
|
-
var t =
|
13862
|
+
var t = be(180), r = [], n = 1, a = 0, s = 3, u = [];
|
13863
13863
|
return Oe(e).forEach(function(o, c) {
|
13864
13864
|
var l = o[0];
|
13865
13865
|
if (c === 0) {
|
@@ -13890,7 +13890,7 @@ var io = function(A, e) {
|
|
13890
13890
|
}
|
13891
13891
|
}
|
13892
13892
|
}), n === 1 ? {
|
13893
|
-
angle: (t +
|
13893
|
+
angle: (t + be(180)) % be(360),
|
13894
13894
|
stops: r,
|
13895
13895
|
type: n
|
13896
13896
|
} : { size: s, shape: a, stops: r, position: u, type: n };
|
@@ -13913,7 +13913,7 @@ var io = function(A, e) {
|
|
13913
13913
|
case "bottom":
|
13914
13914
|
return a.push(ut), f;
|
13915
13915
|
}
|
13916
|
-
else (
|
13916
|
+
else (LA(h) || ft(h)) && a.push(h);
|
13917
13917
|
else if (dA(h))
|
13918
13918
|
switch (h.value) {
|
13919
13919
|
case $l:
|
@@ -13933,7 +13933,7 @@ var io = function(A, e) {
|
|
13933
13933
|
case zl:
|
13934
13934
|
return r = 3, !1;
|
13935
13935
|
}
|
13936
|
-
else if (ft(h) ||
|
13936
|
+
else if (ft(h) || LA(h))
|
13937
13937
|
return Array.isArray(r) || (r = []), r.push(h), !1;
|
13938
13938
|
return f;
|
13939
13939
|
}, o);
|
@@ -13966,7 +13966,7 @@ var io = function(A, e) {
|
|
13966
13966
|
case "bottom":
|
13967
13967
|
return a.push(ut), !1;
|
13968
13968
|
}
|
13969
|
-
else if (
|
13969
|
+
else if (LA(f) || ft(f))
|
13970
13970
|
return a.push(f), !1;
|
13971
13971
|
return l;
|
13972
13972
|
}, o) : u === 1 && (o = s.reduce(function(l, f) {
|
@@ -13987,7 +13987,7 @@ var io = function(A, e) {
|
|
13987
13987
|
case zl:
|
13988
13988
|
return r = 3, !1;
|
13989
13989
|
}
|
13990
|
-
else if (ft(f) ||
|
13990
|
+
else if (ft(f) || LA(f))
|
13991
13991
|
return Array.isArray(r) || (r = []), r.push(f), !1;
|
13992
13992
|
return l;
|
13993
13993
|
}, o)), o) {
|
@@ -14080,7 +14080,7 @@ var t0 = {
|
|
14080
14080
|
prefix: !1,
|
14081
14081
|
parse: function(A, e) {
|
14082
14082
|
return Oe(e).map(function(t) {
|
14083
|
-
return t.filter(
|
14083
|
+
return t.filter(LA);
|
14084
14084
|
}).map(Pl);
|
14085
14085
|
}
|
14086
14086
|
}, dw = {
|
@@ -14124,7 +14124,7 @@ var Bw = {
|
|
14124
14124
|
});
|
14125
14125
|
}
|
14126
14126
|
}, pw = function(A) {
|
14127
|
-
return dA(A) ||
|
14127
|
+
return dA(A) || LA(A);
|
14128
14128
|
}, Fa = function(A) {
|
14129
14129
|
return {
|
14130
14130
|
name: "border-" + A + "-color",
|
@@ -14140,7 +14140,7 @@ var Bw = {
|
|
14140
14140
|
prefix: !1,
|
14141
14141
|
type: 1,
|
14142
14142
|
parse: function(e, t) {
|
14143
|
-
return Pl(t.filter(
|
14143
|
+
return Pl(t.filter(LA));
|
14144
14144
|
}
|
14145
14145
|
};
|
14146
14146
|
}, bw = va("top-left"), Tw = va("top-right"), Uw = va("bottom-right"), Qw = va("bottom-left"), Ia = function(A) {
|
@@ -14323,7 +14323,7 @@ var kw = {
|
|
14323
14323
|
type: 4
|
14324
14324
|
/* TOKEN_VALUE */
|
14325
14325
|
}, co = function(A, e) {
|
14326
|
-
return dA(A) && A.value === "normal" ? 1.2 * e : A.type === 17 ? e * A.number :
|
14326
|
+
return dA(A) && A.value === "normal" ? 1.2 * e : A.type === 17 ? e * A.number : LA(A) ? pA(A, e) : e;
|
14327
14327
|
}, Kw = {
|
14328
14328
|
name: "list-style-image",
|
14329
14329
|
initialValue: "none",
|
@@ -14633,7 +14633,7 @@ var kw = {
|
|
14633
14633
|
prefix: !0,
|
14634
14634
|
type: 1,
|
14635
14635
|
parse: function(A, e) {
|
14636
|
-
var t = e.filter(
|
14636
|
+
var t = e.filter(LA);
|
14637
14637
|
return t.length !== 2 ? ub : [t[0], t[1]];
|
14638
14638
|
}
|
14639
14639
|
}, cb = {
|
@@ -14806,7 +14806,7 @@ var lb = {
|
|
14806
14806
|
return "normal";
|
14807
14807
|
}
|
14808
14808
|
}
|
14809
|
-
},
|
14809
|
+
}, OA = function(A, e) {
|
14810
14810
|
return (A & e) !== 0;
|
14811
14811
|
}, wb = {
|
14812
14812
|
name: "content",
|
@@ -14985,27 +14985,27 @@ var lb = {
|
|
14985
14985
|
}, A.prototype.isFloating = function() {
|
14986
14986
|
return this.float !== 0;
|
14987
14987
|
}, A.prototype.isInlineLevel = function() {
|
14988
|
-
return
|
14988
|
+
return OA(
|
14989
14989
|
this.display,
|
14990
14990
|
4
|
14991
14991
|
/* INLINE */
|
14992
|
-
) ||
|
14992
|
+
) || OA(
|
14993
14993
|
this.display,
|
14994
14994
|
33554432
|
14995
14995
|
/* INLINE_BLOCK */
|
14996
|
-
) ||
|
14996
|
+
) || OA(
|
14997
14997
|
this.display,
|
14998
14998
|
268435456
|
14999
14999
|
/* INLINE_FLEX */
|
15000
|
-
) ||
|
15000
|
+
) || OA(
|
15001
15001
|
this.display,
|
15002
15002
|
536870912
|
15003
15003
|
/* INLINE_GRID */
|
15004
|
-
) ||
|
15004
|
+
) || OA(
|
15005
15005
|
this.display,
|
15006
15006
|
67108864
|
15007
15007
|
/* INLINE_LIST_ITEM */
|
15008
|
-
) ||
|
15008
|
+
) || OA(
|
15009
15009
|
this.display,
|
15010
15010
|
134217728
|
15011
15011
|
/* INLINE_TABLE */
|
@@ -15055,7 +15055,7 @@ var lb = {
|
|
15055
15055
|
return ft(u) ? u : jA;
|
15056
15056
|
case "length-percentage":
|
15057
15057
|
var o = a.parseComponentValue();
|
15058
|
-
return
|
15058
|
+
return LA(o) ? o : jA;
|
15059
15059
|
case "time":
|
15060
15060
|
return r0.parse(A, a.parseComponentValue());
|
15061
15061
|
}
|
@@ -15170,27 +15170,27 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15170
15170
|
s <= 65535 ? r.push(s) : (s -= 65536, r.push((s >> 10) + 55296, s % 1024 + 56320)), (n + 1 === t || r.length > 16384) && (a += String.fromCharCode.apply(String, r), r.length = 0);
|
15171
15171
|
}
|
15172
15172
|
return a;
|
15173
|
-
}, tT = qb(Hb),
|
15173
|
+
}, tT = qb(Hb), Ee = "×", us = "÷", rT = function(A) {
|
15174
15174
|
return tT.get(A);
|
15175
15175
|
}, nT = function(A, e, t) {
|
15176
15176
|
var r = t - 2, n = e[r], a = e[t - 1], s = e[t];
|
15177
15177
|
if (a === rs && s === ns)
|
15178
|
-
return
|
15178
|
+
return Ee;
|
15179
15179
|
if (a === rs || a === ns || a === Eo || s === rs || s === ns || s === Eo)
|
15180
15180
|
return us;
|
15181
15181
|
if (a === Co && [Co, as, wo, bo].indexOf(s) !== -1 || (a === wo || a === as) && (s === as || s === ss) || (a === bo || a === ss) && s === ss || s === To || s === mo || s === Zb || a === $b)
|
15182
|
-
return
|
15182
|
+
return Ee;
|
15183
15183
|
if (a === To && s === Uo) {
|
15184
15184
|
for (; n === mo; )
|
15185
15185
|
n = e[--r];
|
15186
15186
|
if (n === Uo)
|
15187
|
-
return
|
15187
|
+
return Ee;
|
15188
15188
|
}
|
15189
15189
|
if (a === is && s === is) {
|
15190
15190
|
for (var u = 0; n === is; )
|
15191
15191
|
u++, n = e[--r];
|
15192
15192
|
if (u % 2 === 0)
|
15193
|
-
return
|
15193
|
+
return Ee;
|
15194
15194
|
}
|
15195
15195
|
return us;
|
15196
15196
|
}, aT = function(A) {
|
@@ -15199,9 +15199,9 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15199
15199
|
next: function() {
|
15200
15200
|
if (r >= t)
|
15201
15201
|
return { done: !0, value: null };
|
15202
|
-
for (var s =
|
15202
|
+
for (var s = Ee; r < t && (s = nT(e, a, ++r)) === Ee; )
|
15203
15203
|
;
|
15204
|
-
if (s !==
|
15204
|
+
if (s !== Ee || r === t) {
|
15205
15205
|
var u = eT.apply(null, e.slice(n, r));
|
15206
15206
|
return n = r, { value: u, done: !1 };
|
15207
15207
|
}
|
@@ -15231,7 +15231,7 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15231
15231
|
var t = A.createRange();
|
15232
15232
|
e.innerHTML = typeof "".repeat == "function" ? "👨".repeat(10) : "";
|
15233
15233
|
var r = e.firstChild, n = Ta(r.data).map(function(o) {
|
15234
|
-
return
|
15234
|
+
return _A(o);
|
15235
15235
|
}), a = 0, s = {}, u = n.every(function(o, c) {
|
15236
15236
|
t.setStart(r, a), t.setEnd(r, a + o.length);
|
15237
15237
|
var l = t.getBoundingClientRect();
|
@@ -15396,7 +15396,7 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15396
15396
|
if (n.value) {
|
15397
15397
|
var s = n.value.slice(), u = Ta(s), o = "";
|
15398
15398
|
u.forEach(function(c) {
|
15399
|
-
pT.indexOf(c) === -1 ? o +=
|
15399
|
+
pT.indexOf(c) === -1 ? o += _A(c) : (o.length && r.push(o), r.push(_A(c)), o = "");
|
15400
15400
|
}), o.length && r.push(o);
|
15401
15401
|
}
|
15402
15402
|
}; !(n = t.next()).done; )
|
@@ -15896,10 +15896,10 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15896
15896
|
t || A--, n = r(A) + n, A /= e;
|
15897
15897
|
while (A * e >= e);
|
15898
15898
|
return n;
|
15899
|
-
},
|
15899
|
+
}, xA = function(A, e, t, r, n) {
|
15900
15900
|
var a = t - e + 1;
|
15901
15901
|
return (A < 0 ? "-" : "") + (m0(Math.abs(A), a, r, function(s) {
|
15902
|
-
return
|
15902
|
+
return _A(Math.floor(s % a) + e);
|
15903
15903
|
}) + n);
|
15904
15904
|
}, mt = function(A, e, t) {
|
15905
15905
|
t === void 0 && (t = ". ");
|
@@ -15915,7 +15915,7 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15915
15915
|
return e[0] + u;
|
15916
15916
|
for (var o = 0; s > 0 && o <= 4; o++) {
|
15917
15917
|
var c = s % 10;
|
15918
|
-
c === 0 &&
|
15918
|
+
c === 0 && OA(a, Gt) && u !== "" ? u = e[c] + u : c > 1 || c === 1 && o === 0 || c === 1 && o === 1 && OA(a, Ze) || c === 1 && o === 1 && OA(a, At) && A > 100 || c === 1 && o > 1 && OA(a, Fr) ? u = e[c] + (o > 0 ? t[o - 1] : "") + u : c === 1 && o > 0 && (u = t[o - 1] + u), s = Math.floor(s / 10);
|
15919
15919
|
}
|
15920
15920
|
return (A < 0 ? r : "") + u;
|
15921
15921
|
}, Ho = "十百千萬", No = "拾佰仟萬", Do = "マイナス", os = "마이너스", zr = function(A, e, t) {
|
@@ -15928,7 +15928,7 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15928
15928
|
case 2:
|
15929
15929
|
return "◾" + s;
|
15930
15930
|
case 5:
|
15931
|
-
var u =
|
15931
|
+
var u = xA(A, 48, 57, !0, r);
|
15932
15932
|
return u.length < 4 ? "0" + u : u;
|
15933
15933
|
case 4:
|
15934
15934
|
return mt(A, "〇一二三四五六七八九", n);
|
@@ -15937,23 +15937,23 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15937
15937
|
case 7:
|
15938
15938
|
return kt(A, 1, 3999, So, 3, r);
|
15939
15939
|
case 8:
|
15940
|
-
return
|
15940
|
+
return xA(A, 945, 969, !1, r);
|
15941
15941
|
case 9:
|
15942
|
-
return
|
15942
|
+
return xA(A, 97, 122, !1, r);
|
15943
15943
|
case 10:
|
15944
|
-
return
|
15944
|
+
return xA(A, 65, 90, !1, r);
|
15945
15945
|
case 11:
|
15946
|
-
return
|
15946
|
+
return xA(A, 1632, 1641, !0, r);
|
15947
15947
|
case 12:
|
15948
15948
|
case 49:
|
15949
15949
|
return kt(A, 1, 9999, Lo, 3, r);
|
15950
15950
|
case 35:
|
15951
15951
|
return kt(A, 1, 9999, Lo, 3, r).toLowerCase();
|
15952
15952
|
case 13:
|
15953
|
-
return
|
15953
|
+
return xA(A, 2534, 2543, !0, r);
|
15954
15954
|
case 14:
|
15955
15955
|
case 30:
|
15956
|
-
return
|
15956
|
+
return xA(A, 6112, 6121, !0, r);
|
15957
15957
|
case 15:
|
15958
15958
|
return mt(A, "子丑寅卯辰巳午未申酉戌亥", n);
|
15959
15959
|
case 16:
|
@@ -15978,13 +15978,13 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15978
15978
|
case 32:
|
15979
15979
|
return ke(A, "零壹貳參四五六七八九", "拾百千", os, a, Gt | Ze | At);
|
15980
15980
|
case 18:
|
15981
|
-
return
|
15981
|
+
return xA(A, 2406, 2415, !0, r);
|
15982
15982
|
case 20:
|
15983
15983
|
return kt(A, 1, 19999, RT, 3, r);
|
15984
15984
|
case 21:
|
15985
|
-
return
|
15985
|
+
return xA(A, 2790, 2799, !0, r);
|
15986
15986
|
case 22:
|
15987
|
-
return
|
15987
|
+
return xA(A, 2662, 2671, !0, r);
|
15988
15988
|
case 22:
|
15989
15989
|
return kt(A, 1, 10999, OT, 3, r);
|
15990
15990
|
case 23:
|
@@ -15992,32 +15992,32 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
15992
15992
|
case 24:
|
15993
15993
|
return mt(A, "いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");
|
15994
15994
|
case 27:
|
15995
|
-
return
|
15995
|
+
return xA(A, 3302, 3311, !0, r);
|
15996
15996
|
case 28:
|
15997
15997
|
return mt(A, "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン", n);
|
15998
15998
|
case 29:
|
15999
15999
|
return mt(A, "イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス", n);
|
16000
16000
|
case 34:
|
16001
|
-
return
|
16001
|
+
return xA(A, 3792, 3801, !0, r);
|
16002
16002
|
case 37:
|
16003
|
-
return
|
16003
|
+
return xA(A, 6160, 6169, !0, r);
|
16004
16004
|
case 38:
|
16005
|
-
return
|
16005
|
+
return xA(A, 4160, 4169, !0, r);
|
16006
16006
|
case 39:
|
16007
|
-
return
|
16007
|
+
return xA(A, 2918, 2927, !0, r);
|
16008
16008
|
case 40:
|
16009
|
-
return
|
16009
|
+
return xA(A, 1776, 1785, !0, r);
|
16010
16010
|
case 43:
|
16011
|
-
return
|
16011
|
+
return xA(A, 3046, 3055, !0, r);
|
16012
16012
|
case 44:
|
16013
|
-
return
|
16013
|
+
return xA(A, 3174, 3183, !0, r);
|
16014
16014
|
case 45:
|
16015
|
-
return
|
16015
|
+
return xA(A, 3664, 3673, !0, r);
|
16016
16016
|
case 46:
|
16017
|
-
return
|
16017
|
+
return xA(A, 3872, 3881, !0, r);
|
16018
16018
|
case 3:
|
16019
16019
|
default:
|
16020
|
-
return
|
16020
|
+
return xA(A, 48, 57, !0, r);
|
16021
16021
|
}
|
16022
16022
|
}, C0 = "data-html2canvas-ignore", Oo = (
|
16023
16023
|
/** @class */
|
@@ -16176,15 +16176,15 @@ var $b = 1, rs = 2, ns = 3, Eo = 4, mo = 5, Zb = 7, Co = 8, as = 9, ss = 10, wo
|
|
16176
16176
|
} else if (f.name === "counter") {
|
16177
16177
|
var E = f.values.filter(tr), T = E[0], Q = E[1];
|
16178
16178
|
if (T && dA(T)) {
|
16179
|
-
var
|
16180
|
-
c.appendChild(u.createTextNode(zr(
|
16179
|
+
var w = a.counters.getCounterValue(T.value), x = Q && dA(Q) ? Zs.parse(a.context, Q.value) : 3;
|
16180
|
+
c.appendChild(u.createTextNode(zr(w, x, !1)));
|
16181
16181
|
}
|
16182
16182
|
} else if (f.name === "counters") {
|
16183
16183
|
var N = f.values.filter(tr), T = N[0], K = N[1], Q = N[2];
|
16184
16184
|
if (T && dA(T)) {
|
16185
|
-
var H = a.counters.getCounterValues(T.value), p = Q && dA(Q) ? Zs.parse(a.context, Q.value) : 3,
|
16185
|
+
var H = a.counters.getCounterValues(T.value), p = Q && dA(Q) ? Zs.parse(a.context, Q.value) : 3, O = K && K.type === 0 ? K.value : "", R = H.map(function(fA) {
|
16186
16186
|
return zr(fA, p, !1);
|
16187
|
-
}).join(
|
16187
|
+
}).join(O);
|
16188
16188
|
c.appendChild(u.createTextNode(R));
|
16189
16189
|
}
|
16190
16190
|
}
|
@@ -16374,7 +16374,7 @@ var MT = function(A, e) {
|
|
16374
16374
|
return A.substr(0, 4) === "blob";
|
16375
16375
|
}, rU = function(A) {
|
16376
16376
|
return A.substr(-3).toLowerCase() === "svg" || $T.test(A);
|
16377
|
-
},
|
16377
|
+
}, k = (
|
16378
16378
|
/** @class */
|
16379
16379
|
function() {
|
16380
16380
|
function A(e, t) {
|
@@ -16385,7 +16385,7 @@ var MT = function(A, e) {
|
|
16385
16385
|
}, A;
|
16386
16386
|
}()
|
16387
16387
|
), Pt = function(A, e, t) {
|
16388
|
-
return new
|
16388
|
+
return new k(A.x + (e.x - A.x) * t, A.y + (e.y - A.y) * t);
|
16389
16389
|
}, xn = (
|
16390
16390
|
/** @class */
|
16391
16391
|
function() {
|
@@ -16401,7 +16401,7 @@ var MT = function(A, e) {
|
|
16401
16401
|
return new A(this.end, this.endControl, this.startControl, this.start);
|
16402
16402
|
}, A;
|
16403
16403
|
}()
|
16404
|
-
),
|
16404
|
+
), Ce = function(A) {
|
16405
16405
|
return A.type === 1;
|
16406
16406
|
}, nU = (
|
16407
16407
|
/** @class */
|
@@ -16409,10 +16409,10 @@ var MT = function(A, e) {
|
|
16409
16409
|
function A(e) {
|
16410
16410
|
var t = e.styles, r = e.bounds, n = Ur(t.borderTopLeftRadius, r.width, r.height), a = n[0], s = n[1], u = Ur(t.borderTopRightRadius, r.width, r.height), o = u[0], c = u[1], l = Ur(t.borderBottomRightRadius, r.width, r.height), f = l[0], h = l[1], m = Ur(t.borderBottomLeftRadius, r.width, r.height), E = m[0], T = m[1], Q = [];
|
16411
16411
|
Q.push((a + o) / r.width), Q.push((E + f) / r.width), Q.push((s + T) / r.height), Q.push((c + h) / r.height);
|
16412
|
-
var
|
16413
|
-
|
16414
|
-
var x = r.width - o, N = r.height - h, K = r.width - f, H = r.height - T, p = t.borderTopWidth,
|
16415
|
-
this.topLeftBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left +
|
16412
|
+
var w = Math.max.apply(Math, Q);
|
16413
|
+
w > 1 && (a /= w, s /= w, o /= w, c /= w, f /= w, h /= w, E /= w, T /= w);
|
16414
|
+
var x = r.width - o, N = r.height - h, K = r.width - f, H = r.height - T, p = t.borderTopWidth, O = t.borderRightWidth, R = t.borderBottomWidth, P = t.borderLeftWidth, aA = pA(t.paddingTop, e.bounds.width), fA = pA(t.paddingRight, e.bounds.width), EA = pA(t.paddingBottom, e.bounds.width), Z = pA(t.paddingLeft, e.bounds.width);
|
16415
|
+
this.topLeftBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + P / 3, r.top + p / 3, a - P / 3, s - p / 3, lA.TOP_LEFT) : new k(r.left + P / 3, r.top + p / 3), this.topRightBorderDoubleOuterBox = a > 0 || s > 0 ? TA(r.left + x, r.top + p / 3, o - O / 3, c - p / 3, lA.TOP_RIGHT) : new k(r.left + r.width - O / 3, r.top + p / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O / 3, h - R / 3, lA.BOTTOM_RIGHT) : new k(r.left + r.width - O / 3, r.top + r.height - R / 3), this.bottomLeftBorderDoubleOuterBox = E > 0 || T > 0 ? TA(r.left + P / 3, r.top + H, E - P / 3, T - R / 3, lA.BOTTOM_LEFT) : new k(r.left + P / 3, r.top + r.height - R / 3), this.topLeftBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + P * 2 / 3, r.top + p * 2 / 3, a - P * 2 / 3, s - p * 2 / 3, lA.TOP_LEFT) : new k(r.left + P * 2 / 3, r.top + p * 2 / 3), this.topRightBorderDoubleInnerBox = a > 0 || s > 0 ? TA(r.left + x, r.top + p * 2 / 3, o - O * 2 / 3, c - p * 2 / 3, lA.TOP_RIGHT) : new k(r.left + r.width - O * 2 / 3, r.top + p * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O * 2 / 3, h - R * 2 / 3, lA.BOTTOM_RIGHT) : new k(r.left + r.width - O * 2 / 3, r.top + r.height - R * 2 / 3), this.bottomLeftBorderDoubleInnerBox = E > 0 || T > 0 ? TA(r.left + P * 2 / 3, r.top + H, E - P * 2 / 3, T - R * 2 / 3, lA.BOTTOM_LEFT) : new k(r.left + P * 2 / 3, r.top + r.height - R * 2 / 3), this.topLeftBorderStroke = a > 0 || s > 0 ? TA(r.left + P / 2, r.top + p / 2, a - P / 2, s - p / 2, lA.TOP_LEFT) : new k(r.left + P / 2, r.top + p / 2), this.topRightBorderStroke = a > 0 || s > 0 ? TA(r.left + x, r.top + p / 2, o - O / 2, c - p / 2, lA.TOP_RIGHT) : new k(r.left + r.width - O / 2, r.top + p / 2), this.bottomRightBorderStroke = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f - O / 2, h - R / 2, lA.BOTTOM_RIGHT) : new k(r.left + r.width - O / 2, r.top + r.height - R / 2), this.bottomLeftBorderStroke = E > 0 || T > 0 ? TA(r.left + P / 2, r.top + H, E - P / 2, T - R / 2, lA.BOTTOM_LEFT) : new k(r.left + P / 2, r.top + r.height - R / 2), this.topLeftBorderBox = a > 0 || s > 0 ? TA(r.left, r.top, a, s, lA.TOP_LEFT) : new k(r.left, r.top), this.topRightBorderBox = o > 0 || c > 0 ? TA(r.left + x, r.top, o, c, lA.TOP_RIGHT) : new k(r.left + r.width, r.top), this.bottomRightBorderBox = f > 0 || h > 0 ? TA(r.left + K, r.top + N, f, h, lA.BOTTOM_RIGHT) : new k(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = E > 0 || T > 0 ? TA(r.left, r.top + H, E, T, lA.BOTTOM_LEFT) : new k(r.left, r.top + r.height), this.topLeftPaddingBox = a > 0 || s > 0 ? TA(r.left + P, r.top + p, Math.max(0, a - P), Math.max(0, s - p), lA.TOP_LEFT) : new k(r.left + P, r.top + p), this.topRightPaddingBox = o > 0 || c > 0 ? TA(r.left + Math.min(x, r.width - O), r.top + p, x > r.width + O ? 0 : Math.max(0, o - O), Math.max(0, c - p), lA.TOP_RIGHT) : new k(r.left + r.width - O, r.top + p), this.bottomRightPaddingBox = f > 0 || h > 0 ? TA(r.left + Math.min(K, r.width - P), r.top + Math.min(N, r.height - R), Math.max(0, f - O), Math.max(0, h - R), lA.BOTTOM_RIGHT) : new k(r.left + r.width - O, r.top + r.height - R), this.bottomLeftPaddingBox = E > 0 || T > 0 ? TA(r.left + P, r.top + Math.min(H, r.height - R), Math.max(0, E - P), Math.max(0, T - R), lA.BOTTOM_LEFT) : new k(r.left + P, r.top + r.height - R), this.topLeftContentBox = a > 0 || s > 0 ? TA(r.left + P + Z, r.top + p + aA, Math.max(0, a - (P + Z)), Math.max(0, s - (p + aA)), lA.TOP_LEFT) : new k(r.left + P + Z, r.top + p + aA), this.topRightContentBox = o > 0 || c > 0 ? TA(r.left + Math.min(x, r.width + P + Z), r.top + p + aA, x > r.width + P + Z ? 0 : o - P + Z, c - (p + aA), lA.TOP_RIGHT) : new k(r.left + r.width - (O + fA), r.top + p + aA), this.bottomRightContentBox = f > 0 || h > 0 ? TA(r.left + Math.min(K, r.width - (P + Z)), r.top + Math.min(N, r.height + p + aA), Math.max(0, f - (O + fA)), h - (R + EA), lA.BOTTOM_RIGHT) : new k(r.left + r.width - (O + fA), r.top + r.height - (R + EA)), this.bottomLeftContentBox = E > 0 || T > 0 ? TA(r.left + P + Z, r.top + H, Math.max(0, E - (P + Z)), T - (R + EA), lA.BOTTOM_LEFT) : new k(r.left + P + Z, r.top + r.height - (R + EA));
|
16416
16416
|
}
|
16417
16417
|
return A;
|
16418
16418
|
}()
|
@@ -16424,14 +16424,14 @@ var TA = function(A, e, t, r, n) {
|
|
16424
16424
|
var a = 4 * ((Math.sqrt(2) - 1) / 3), s = t * a, u = r * a, o = A + t, c = e + r;
|
16425
16425
|
switch (n) {
|
16426
16426
|
case lA.TOP_LEFT:
|
16427
|
-
return new xn(new
|
16427
|
+
return new xn(new k(A, c), new k(A, c - u), new k(o - s, e), new k(o, e));
|
16428
16428
|
case lA.TOP_RIGHT:
|
16429
|
-
return new xn(new
|
16429
|
+
return new xn(new k(A, e), new k(A + s, e), new k(o, c - u), new k(o, c));
|
16430
16430
|
case lA.BOTTOM_RIGHT:
|
16431
|
-
return new xn(new
|
16431
|
+
return new xn(new k(o, e), new k(o, e + u), new k(A + s, c), new k(A, c));
|
16432
16432
|
case lA.BOTTOM_LEFT:
|
16433
16433
|
default:
|
16434
|
-
return new xn(new
|
16434
|
+
return new xn(new k(o, c), new k(o - s, c), new k(A, e + u), new k(A, e));
|
16435
16435
|
}
|
16436
16436
|
}, sa = function(A) {
|
16437
16437
|
return [A.topLeftBorderBox, A.topRightBorderBox, A.bottomRightBorderBox, A.bottomLeftBorderBox];
|
@@ -16557,27 +16557,27 @@ var TA = function(A, e, t, r, n) {
|
|
16557
16557
|
r = r.parent;
|
16558
16558
|
}
|
16559
16559
|
return n.filter(function(o) {
|
16560
|
-
return
|
16560
|
+
return OA(o.target, e);
|
16561
16561
|
});
|
16562
16562
|
}, A;
|
16563
16563
|
}()
|
16564
16564
|
), ii = function(A, e, t, r) {
|
16565
16565
|
A.container.elements.forEach(function(n) {
|
16566
|
-
var a =
|
16566
|
+
var a = OA(
|
16567
16567
|
n.flags,
|
16568
16568
|
4
|
16569
16569
|
/* CREATES_REAL_STACKING_CONTEXT */
|
16570
|
-
), s =
|
16570
|
+
), s = OA(
|
16571
16571
|
n.flags,
|
16572
16572
|
2
|
16573
16573
|
/* CREATES_STACKING_CONTEXT */
|
16574
16574
|
), u = new U0(n, A);
|
16575
|
-
|
16575
|
+
OA(
|
16576
16576
|
n.styles.display,
|
16577
16577
|
2048
|
16578
16578
|
/* LIST_ITEM */
|
16579
16579
|
) && r.push(u);
|
16580
|
-
var o =
|
16580
|
+
var o = OA(
|
16581
16581
|
n.flags,
|
16582
16582
|
8
|
16583
16583
|
/* IS_LIST_OWNER */
|
@@ -16603,7 +16603,7 @@ var TA = function(A, e, t, r, n) {
|
|
16603
16603
|
ii(u, l, a ? l : t, o);
|
16604
16604
|
} else
|
16605
16605
|
n.styles.isInlineLevel() ? e.inlineLevel.push(u) : e.nonInlineLevel.push(u), ii(u, e, t, o);
|
16606
|
-
|
16606
|
+
OA(
|
16607
16607
|
n.flags,
|
16608
16608
|
8
|
16609
16609
|
/* IS_LIST_OWNER */
|
@@ -16620,38 +16620,38 @@ var TA = function(A, e, t, r, n) {
|
|
16620
16620
|
}, ko = function(A, e) {
|
16621
16621
|
switch (e) {
|
16622
16622
|
case 0:
|
16623
|
-
return
|
16623
|
+
return Te(A.topLeftBorderBox, A.topLeftPaddingBox, A.topRightBorderBox, A.topRightPaddingBox);
|
16624
16624
|
case 1:
|
16625
|
-
return
|
16625
|
+
return Te(A.topRightBorderBox, A.topRightPaddingBox, A.bottomRightBorderBox, A.bottomRightPaddingBox);
|
16626
16626
|
case 2:
|
16627
|
-
return
|
16627
|
+
return Te(A.bottomRightBorderBox, A.bottomRightPaddingBox, A.bottomLeftBorderBox, A.bottomLeftPaddingBox);
|
16628
16628
|
case 3:
|
16629
16629
|
default:
|
16630
|
-
return
|
16630
|
+
return Te(A.bottomLeftBorderBox, A.bottomLeftPaddingBox, A.topLeftBorderBox, A.topLeftPaddingBox);
|
16631
16631
|
}
|
16632
16632
|
}, fU = function(A, e) {
|
16633
16633
|
switch (e) {
|
16634
16634
|
case 0:
|
16635
|
-
return
|
16635
|
+
return Te(A.topLeftBorderBox, A.topLeftBorderDoubleOuterBox, A.topRightBorderBox, A.topRightBorderDoubleOuterBox);
|
16636
16636
|
case 1:
|
16637
|
-
return
|
16637
|
+
return Te(A.topRightBorderBox, A.topRightBorderDoubleOuterBox, A.bottomRightBorderBox, A.bottomRightBorderDoubleOuterBox);
|
16638
16638
|
case 2:
|
16639
|
-
return
|
16639
|
+
return Te(A.bottomRightBorderBox, A.bottomRightBorderDoubleOuterBox, A.bottomLeftBorderBox, A.bottomLeftBorderDoubleOuterBox);
|
16640
16640
|
case 3:
|
16641
16641
|
default:
|
16642
|
-
return
|
16642
|
+
return Te(A.bottomLeftBorderBox, A.bottomLeftBorderDoubleOuterBox, A.topLeftBorderBox, A.topLeftBorderDoubleOuterBox);
|
16643
16643
|
}
|
16644
16644
|
}, hU = function(A, e) {
|
16645
16645
|
switch (e) {
|
16646
16646
|
case 0:
|
16647
|
-
return
|
16647
|
+
return Te(A.topLeftBorderDoubleInnerBox, A.topLeftPaddingBox, A.topRightBorderDoubleInnerBox, A.topRightPaddingBox);
|
16648
16648
|
case 1:
|
16649
|
-
return
|
16649
|
+
return Te(A.topRightBorderDoubleInnerBox, A.topRightPaddingBox, A.bottomRightBorderDoubleInnerBox, A.bottomRightPaddingBox);
|
16650
16650
|
case 2:
|
16651
|
-
return
|
16651
|
+
return Te(A.bottomRightBorderDoubleInnerBox, A.bottomRightPaddingBox, A.bottomLeftBorderDoubleInnerBox, A.bottomLeftPaddingBox);
|
16652
16652
|
case 3:
|
16653
16653
|
default:
|
16654
|
-
return
|
16654
|
+
return Te(A.bottomLeftBorderDoubleInnerBox, A.bottomLeftPaddingBox, A.topLeftBorderDoubleInnerBox, A.topLeftPaddingBox);
|
16655
16655
|
}
|
16656
16656
|
}, dU = function(A, e) {
|
16657
16657
|
switch (e) {
|
@@ -16667,10 +16667,10 @@ var TA = function(A, e, t, r, n) {
|
|
16667
16667
|
}
|
16668
16668
|
}, Sn = function(A, e) {
|
16669
16669
|
var t = [];
|
16670
|
-
return
|
16671
|
-
},
|
16670
|
+
return Ce(A) ? t.push(A.subdivide(0.5, !1)) : t.push(A), Ce(e) ? t.push(e.subdivide(0.5, !0)) : t.push(e), t;
|
16671
|
+
}, Te = function(A, e, t, r) {
|
16672
16672
|
var n = [];
|
16673
|
-
return
|
16673
|
+
return Ce(A) ? n.push(A.subdivide(0.5, !1)) : n.push(A), Ce(t) ? n.push(t.subdivide(0.5, !0)) : n.push(t), Ce(r) ? n.push(r.subdivide(0.5, !0).reverse()) : n.push(r), Ce(e) ? n.push(e.subdivide(0.5, !1).reverse()) : n.push(e), n;
|
16674
16674
|
}, F0 = function(A) {
|
16675
16675
|
var e = A.bounds, t = A.styles;
|
16676
16676
|
return e.add(t.borderLeftWidth, t.borderTopWidth, -(t.borderRightWidth + t.borderLeftWidth), -(t.borderTopWidth + t.borderBottomWidth));
|
@@ -16692,7 +16692,7 @@ var TA = function(A, e, t, r, n) {
|
|
16692
16692
|
var r = e[0], n = e[1], a = e[2], s = A[0], u = A[1];
|
16693
16693
|
if (!s)
|
16694
16694
|
return [0, 0];
|
16695
|
-
if (
|
16695
|
+
if (LA(s) && u && LA(u))
|
16696
16696
|
return [pA(s, t.width), pA(u, t.height)];
|
16697
16697
|
var o = Ln(a);
|
16698
16698
|
if (dA(s) && (s.value === Zt.CONTAIN || s.value === Zt.COVER)) {
|
@@ -16716,11 +16716,11 @@ var TA = function(A, e, t, r, n) {
|
|
16716
16716
|
return [T, Q];
|
16717
16717
|
}
|
16718
16718
|
if (o) {
|
16719
|
-
var
|
16720
|
-
return
|
16719
|
+
var w = 0, x = 0;
|
16720
|
+
return LA(s) ? w = pA(s, t.width) : LA(u) && (x = pA(u, t.height)), Kt(s) ? w = x * a : (!u || Kt(u)) && (x = w / a), [w, x];
|
16721
16721
|
}
|
16722
16722
|
var N = null, K = null;
|
16723
|
-
if (
|
16723
|
+
if (LA(s) ? N = pA(s, t.width) : u && LA(u) && (K = pA(u, t.height)), N !== null && (!u || Kt(u)) && (K = l && f ? N / r * n : t.height), K !== null && Kt(s) && (N = l && f ? K / n * r : t.width), N !== null && K !== null)
|
16724
16724
|
return [N, K];
|
16725
16725
|
throw new Error("Unable to calculate background-size for element");
|
16726
16726
|
}, Vt = function(A, e) {
|
@@ -16731,31 +16731,31 @@ var TA = function(A, e, t, r, n) {
|
|
16731
16731
|
switch (A) {
|
16732
16732
|
case 2:
|
16733
16733
|
return [
|
16734
|
-
new
|
16735
|
-
new
|
16736
|
-
new
|
16737
|
-
new
|
16734
|
+
new k(Math.round(r.left), Math.round(r.top + s)),
|
16735
|
+
new k(Math.round(r.left + r.width), Math.round(r.top + s)),
|
16736
|
+
new k(Math.round(r.left + r.width), Math.round(o + r.top + s)),
|
16737
|
+
new k(Math.round(r.left), Math.round(o + r.top + s))
|
16738
16738
|
];
|
16739
16739
|
case 3:
|
16740
16740
|
return [
|
16741
|
-
new
|
16742
|
-
new
|
16743
|
-
new
|
16744
|
-
new
|
16741
|
+
new k(Math.round(r.left + a), Math.round(r.top)),
|
16742
|
+
new k(Math.round(r.left + a + u), Math.round(r.top)),
|
16743
|
+
new k(Math.round(r.left + a + u), Math.round(r.height + r.top)),
|
16744
|
+
new k(Math.round(r.left + a), Math.round(r.height + r.top))
|
16745
16745
|
];
|
16746
16746
|
case 1:
|
16747
16747
|
return [
|
16748
|
-
new
|
16749
|
-
new
|
16750
|
-
new
|
16751
|
-
new
|
16748
|
+
new k(Math.round(r.left + a), Math.round(r.top + s)),
|
16749
|
+
new k(Math.round(r.left + a + u), Math.round(r.top + s)),
|
16750
|
+
new k(Math.round(r.left + a + u), Math.round(r.top + s + o)),
|
16751
|
+
new k(Math.round(r.left + a), Math.round(r.top + s + o))
|
16752
16752
|
];
|
16753
16753
|
default:
|
16754
16754
|
return [
|
16755
|
-
new
|
16756
|
-
new
|
16757
|
-
new
|
16758
|
-
new
|
16755
|
+
new k(Math.round(n.left), Math.round(n.top)),
|
16756
|
+
new k(Math.round(n.left + n.width), Math.round(n.top)),
|
16757
|
+
new k(Math.round(n.left + n.width), Math.round(n.height + n.top)),
|
16758
|
+
new k(Math.round(n.left), Math.round(n.height + n.top))
|
16759
16759
|
];
|
16760
16760
|
}
|
16761
16761
|
}, mU = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Po = "Hidden Text", CU = (
|
@@ -16824,7 +16824,7 @@ var TA = function(A, e, t, r, n) {
|
|
16824
16824
|
return $A(this, function(r) {
|
16825
16825
|
switch (r.label) {
|
16826
16826
|
case 0:
|
16827
|
-
if (
|
16827
|
+
if (OA(
|
16828
16828
|
t.container.flags,
|
16829
16829
|
16
|
16830
16830
|
/* DEBUG_RENDER */
|
@@ -16870,12 +16870,12 @@ var TA = function(A, e, t, r, n) {
|
|
16870
16870
|
f.forEach(function(T) {
|
16871
16871
|
switch (T) {
|
16872
16872
|
case 0:
|
16873
|
-
h.ctx.fillStyle =
|
16873
|
+
h.ctx.fillStyle = MA(r.color), h.renderTextWithLetterSpacing(E, r.letterSpacing, c);
|
16874
16874
|
var Q = r.textShadow;
|
16875
|
-
Q.length && E.text.trim().length && (Q.slice(0).reverse().forEach(function(
|
16876
|
-
h.ctx.shadowColor =
|
16877
|
-
}), h.ctx.shadowColor = "", h.ctx.shadowOffsetX = 0, h.ctx.shadowOffsetY = 0, h.ctx.shadowBlur = 0), r.textDecorationLine.length && (h.ctx.fillStyle =
|
16878
|
-
switch (
|
16875
|
+
Q.length && E.text.trim().length && (Q.slice(0).reverse().forEach(function(w) {
|
16876
|
+
h.ctx.shadowColor = MA(w.color), h.ctx.shadowOffsetX = w.offsetX.number * h.options.scale, h.ctx.shadowOffsetY = w.offsetY.number * h.options.scale, h.ctx.shadowBlur = w.blur.number, h.renderTextWithLetterSpacing(E, r.letterSpacing, c);
|
16877
|
+
}), h.ctx.shadowColor = "", h.ctx.shadowOffsetX = 0, h.ctx.shadowOffsetY = 0, h.ctx.shadowBlur = 0), r.textDecorationLine.length && (h.ctx.fillStyle = MA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(w) {
|
16878
|
+
switch (w) {
|
16879
16879
|
case 1:
|
16880
16880
|
h.ctx.fillRect(E.bounds.left, Math.round(E.bounds.top + c), E.bounds.width, 1);
|
16881
16881
|
break;
|
@@ -16889,7 +16889,7 @@ var TA = function(A, e, t, r, n) {
|
|
16889
16889
|
}));
|
16890
16890
|
break;
|
16891
16891
|
case 1:
|
16892
|
-
r.webkitTextStrokeWidth && E.text.trim().length && (h.ctx.strokeStyle =
|
16892
|
+
r.webkitTextStrokeWidth && E.text.trim().length && (h.ctx.strokeStyle = MA(r.webkitTextStrokeColor), h.ctx.lineWidth = r.webkitTextStrokeWidth, h.ctx.lineJoin = window.chrome ? "miter" : "round", h.ctx.strokeText(E.text, E.bounds.left, E.bounds.top + c)), h.ctx.strokeStyle = "", h.ctx.lineWidth = 0, h.ctx.lineJoin = "miter";
|
16893
16893
|
break;
|
16894
16894
|
}
|
16895
16895
|
});
|
@@ -16906,7 +16906,7 @@ var TA = function(A, e, t, r, n) {
|
|
16906
16906
|
}
|
16907
16907
|
}, e.prototype.renderNodeContent = function(t) {
|
16908
16908
|
return re(this, void 0, void 0, function() {
|
16909
|
-
var r, n, a, s, u, o, x, x, c, l, f, h, K, m, E, H, T, Q,
|
16909
|
+
var r, n, a, s, u, o, x, x, c, l, f, h, K, m, E, H, T, Q, w, x, N, K, H;
|
16910
16910
|
return $A(this, function(p) {
|
16911
16911
|
switch (p.label) {
|
16912
16912
|
case 0:
|
@@ -16951,15 +16951,15 @@ var TA = function(A, e, t, r, n) {
|
|
16951
16951
|
l = p.sent(), r.width && r.height && this.ctx.drawImage(l, 0, 0, r.width, r.height, r.bounds.left, r.bounds.top, r.bounds.width, r.bounds.height), p.label = 14;
|
16952
16952
|
case 14:
|
16953
16953
|
if (r instanceof Ki && (f = Math.min(r.bounds.width, r.bounds.height), r.type === ta ? r.checked && (this.ctx.save(), this.path([
|
16954
|
-
new
|
16955
|
-
new
|
16956
|
-
new
|
16957
|
-
new
|
16958
|
-
new
|
16959
|
-
new
|
16960
|
-
new
|
16961
|
-
]), this.ctx.fillStyle =
|
16962
|
-
switch (h = this.createFontStyle(a), K = h[0], m = h[1], E = this.fontMetrics.getMetrics(K, m).baseline, this.ctx.font = K, this.ctx.fillStyle =
|
16954
|
+
new k(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79),
|
16955
|
+
new k(r.bounds.left + f * 0.16, r.bounds.top + f * 0.5549),
|
16956
|
+
new k(r.bounds.left + f * 0.27347, r.bounds.top + f * 0.44071),
|
16957
|
+
new k(r.bounds.left + f * 0.39694, r.bounds.top + f * 0.5649),
|
16958
|
+
new k(r.bounds.left + f * 0.72983, r.bounds.top + f * 0.23),
|
16959
|
+
new k(r.bounds.left + f * 0.84, r.bounds.top + f * 0.34085),
|
16960
|
+
new k(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79)
|
16961
|
+
]), this.ctx.fillStyle = MA(Io), this.ctx.fill(), this.ctx.restore()) : r.type === ra && r.checked && (this.ctx.save(), this.ctx.beginPath(), this.ctx.arc(r.bounds.left + f / 2, r.bounds.top + f / 2, f / 4, 0, Math.PI * 2, !0), this.ctx.fillStyle = MA(Io), this.ctx.fill(), this.ctx.restore())), TU(r) && r.value.length) {
|
16962
|
+
switch (h = this.createFontStyle(a), K = h[0], m = h[1], E = this.fontMetrics.getMetrics(K, m).baseline, this.ctx.font = K, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = QU(r.styles.textAlign), H = ua(r), T = 0, r.styles.textAlign) {
|
16963
16963
|
case 1:
|
16964
16964
|
T += H.width / 2;
|
16965
16965
|
break;
|
@@ -16968,20 +16968,20 @@ var TA = function(A, e, t, r, n) {
|
|
16968
16968
|
break;
|
16969
16969
|
}
|
16970
16970
|
Q = H.add(T, 0, 0, -H.height / 2 + 1), this.ctx.save(), this.path([
|
16971
|
-
new
|
16972
|
-
new
|
16973
|
-
new
|
16974
|
-
new
|
16971
|
+
new k(H.left, H.top),
|
16972
|
+
new k(H.left + H.width, H.top),
|
16973
|
+
new k(H.left + H.width, H.top + H.height),
|
16974
|
+
new k(H.left, H.top + H.height)
|
16975
16975
|
]), this.ctx.clip(), this.renderTextWithLetterSpacing(new Rr(r.value, Q), a.letterSpacing, E), this.ctx.restore(), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = "left";
|
16976
16976
|
}
|
16977
|
-
if (!
|
16977
|
+
if (!OA(
|
16978
16978
|
r.styles.display,
|
16979
16979
|
2048
|
16980
16980
|
/* LIST_ITEM */
|
16981
16981
|
)) return [3, 20];
|
16982
16982
|
if (r.styles.listStyleImage === null) return [3, 19];
|
16983
|
-
if (
|
16984
|
-
x = void 0, N =
|
16983
|
+
if (w = r.styles.listStyleImage, w.type !== 0) return [3, 18];
|
16984
|
+
x = void 0, N = w.url, p.label = 15;
|
16985
16985
|
case 15:
|
16986
16986
|
return p.trys.push([15, 17, , 18]), [4, this.context.cache.match(N)];
|
16987
16987
|
case 16:
|
@@ -16991,7 +16991,7 @@ var TA = function(A, e, t, r, n) {
|
|
16991
16991
|
case 18:
|
16992
16992
|
return [3, 20];
|
16993
16993
|
case 19:
|
16994
|
-
t.listValue && r.styles.listStyleType !== -1 && (K = this.createFontStyle(a)[0], this.ctx.font = K, this.ctx.fillStyle =
|
16994
|
+
t.listValue && r.styles.listStyleType !== -1 && (K = this.createFontStyle(a)[0], this.ctx.font = K, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", H = new We(r.bounds.left, r.bounds.top + pA(r.styles.paddingTop, r.bounds.width), r.bounds.width, co(a.lineHeight, a.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Rr(t.listValue, H), a.letterSpacing, co(a.lineHeight, a.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), p.label = 20;
|
16995
16995
|
case 20:
|
16996
16996
|
return [
|
16997
16997
|
2
|
@@ -17002,11 +17002,11 @@ var TA = function(A, e, t, r, n) {
|
|
17002
17002
|
});
|
17003
17003
|
}, e.prototype.renderStackContent = function(t) {
|
17004
17004
|
return re(this, void 0, void 0, function() {
|
17005
|
-
var r, n,
|
17005
|
+
var r, n, w, a, s, w, u, o, w, c, l, w, f, h, w, m, E, w, T, Q, w;
|
17006
17006
|
return $A(this, function(x) {
|
17007
17007
|
switch (x.label) {
|
17008
17008
|
case 0:
|
17009
|
-
if (
|
17009
|
+
if (OA(
|
17010
17010
|
t.element.container.flags,
|
17011
17011
|
16
|
17012
17012
|
/* DEBUG_RENDER */
|
@@ -17016,7 +17016,7 @@ var TA = function(A, e, t, r, n) {
|
|
17016
17016
|
case 1:
|
17017
17017
|
x.sent(), r = 0, n = t.negativeZIndex, x.label = 2;
|
17018
17018
|
case 2:
|
17019
|
-
return r < n.length ? (
|
17019
|
+
return r < n.length ? (w = n[r], [4, this.renderStack(w)]) : [3, 5];
|
17020
17020
|
case 3:
|
17021
17021
|
x.sent(), x.label = 4;
|
17022
17022
|
case 4:
|
@@ -17026,7 +17026,7 @@ var TA = function(A, e, t, r, n) {
|
|
17026
17026
|
case 6:
|
17027
17027
|
x.sent(), a = 0, s = t.nonInlineLevel, x.label = 7;
|
17028
17028
|
case 7:
|
17029
|
-
return a < s.length ? (
|
17029
|
+
return a < s.length ? (w = s[a], [4, this.renderNode(w)]) : [3, 10];
|
17030
17030
|
case 8:
|
17031
17031
|
x.sent(), x.label = 9;
|
17032
17032
|
case 9:
|
@@ -17034,7 +17034,7 @@ var TA = function(A, e, t, r, n) {
|
|
17034
17034
|
case 10:
|
17035
17035
|
u = 0, o = t.nonPositionedFloats, x.label = 11;
|
17036
17036
|
case 11:
|
17037
|
-
return u < o.length ? (
|
17037
|
+
return u < o.length ? (w = o[u], [4, this.renderStack(w)]) : [3, 14];
|
17038
17038
|
case 12:
|
17039
17039
|
x.sent(), x.label = 13;
|
17040
17040
|
case 13:
|
@@ -17042,7 +17042,7 @@ var TA = function(A, e, t, r, n) {
|
|
17042
17042
|
case 14:
|
17043
17043
|
c = 0, l = t.nonPositionedInlineLevel, x.label = 15;
|
17044
17044
|
case 15:
|
17045
|
-
return c < l.length ? (
|
17045
|
+
return c < l.length ? (w = l[c], [4, this.renderStack(w)]) : [3, 18];
|
17046
17046
|
case 16:
|
17047
17047
|
x.sent(), x.label = 17;
|
17048
17048
|
case 17:
|
@@ -17050,7 +17050,7 @@ var TA = function(A, e, t, r, n) {
|
|
17050
17050
|
case 18:
|
17051
17051
|
f = 0, h = t.inlineLevel, x.label = 19;
|
17052
17052
|
case 19:
|
17053
|
-
return f < h.length ? (
|
17053
|
+
return f < h.length ? (w = h[f], [4, this.renderNode(w)]) : [3, 22];
|
17054
17054
|
case 20:
|
17055
17055
|
x.sent(), x.label = 21;
|
17056
17056
|
case 21:
|
@@ -17058,7 +17058,7 @@ var TA = function(A, e, t, r, n) {
|
|
17058
17058
|
case 22:
|
17059
17059
|
m = 0, E = t.zeroOrAutoZIndexOrTransformedOrOpacity, x.label = 23;
|
17060
17060
|
case 23:
|
17061
|
-
return m < E.length ? (
|
17061
|
+
return m < E.length ? (w = E[m], [4, this.renderStack(w)]) : [3, 26];
|
17062
17062
|
case 24:
|
17063
17063
|
x.sent(), x.label = 25;
|
17064
17064
|
case 25:
|
@@ -17066,7 +17066,7 @@ var TA = function(A, e, t, r, n) {
|
|
17066
17066
|
case 26:
|
17067
17067
|
T = 0, Q = t.positiveZIndex, x.label = 27;
|
17068
17068
|
case 27:
|
17069
|
-
return T < Q.length ? (
|
17069
|
+
return T < Q.length ? (w = Q[T], [4, this.renderStack(w)]) : [3, 30];
|
17070
17070
|
case 28:
|
17071
17071
|
x.sent(), x.label = 29;
|
17072
17072
|
case 29:
|
@@ -17086,8 +17086,8 @@ var TA = function(A, e, t, r, n) {
|
|
17086
17086
|
}, e.prototype.formatPath = function(t) {
|
17087
17087
|
var r = this;
|
17088
17088
|
t.forEach(function(n, a) {
|
17089
|
-
var s =
|
17090
|
-
a === 0 ? r.ctx.moveTo(s.x, s.y) : r.ctx.lineTo(s.x, s.y),
|
17089
|
+
var s = Ce(n) ? n.start : n;
|
17090
|
+
a === 0 ? r.ctx.moveTo(s.x, s.y) : r.ctx.lineTo(s.x, s.y), Ce(n) && r.ctx.bezierCurveTo(n.startControl.x, n.startControl.y, n.endControl.x, n.endControl.y, n.end.x, n.end.y);
|
17091
17091
|
});
|
17092
17092
|
}, e.prototype.renderRepeat = function(t, r, n, a) {
|
17093
17093
|
this.path(t), this.ctx.fillStyle = r, this.ctx.translate(n, a), this.ctx.fill(), this.ctx.translate(-n, -a);
|
@@ -17106,7 +17106,7 @@ var TA = function(A, e, t, r, n) {
|
|
17106
17106
|
switch (c.label) {
|
17107
17107
|
case 0:
|
17108
17108
|
r = t.styles.backgroundImage.length - 1, n = function(l) {
|
17109
|
-
var f, h, m, aA, BA, vA, Z, iA, R, E, aA, BA, vA, Z, iA, T, Q,
|
17109
|
+
var f, h, m, aA, BA, vA, Z, iA, R, E, aA, BA, vA, Z, iA, T, Q, w, x, N, K, H, p, O, R, P, aA, fA, EA, Z, iA, gA, BA, vA, ee, NA, zA, te, RA, YA, XA, I;
|
17110
17110
|
return $A(this, function(_) {
|
17111
17111
|
switch (_.label) {
|
17112
17112
|
case 0:
|
@@ -17125,15 +17125,15 @@ var TA = function(A, e, t, r, n) {
|
|
17125
17125
|
f.width / f.height
|
17126
17126
|
]), aA = m[0], BA = m[1], vA = m[2], Z = m[3], iA = m[4], R = a.ctx.createPattern(a.resizeImage(f, Z, iA), "repeat"), a.renderRepeat(aA, R, BA, vA)), [3, 6];
|
17127
17127
|
case 5:
|
17128
|
-
uw(l) ? (E = hs(t, r, [null, null, null]), aA = E[0], BA = E[1], vA = E[2], Z = E[3], iA = E[4], T = rw(l.angle, Z, iA), Q = T[0],
|
17129
|
-
return
|
17130
|
-
}), p.fillStyle =
|
17128
|
+
uw(l) ? (E = hs(t, r, [null, null, null]), aA = E[0], BA = E[1], vA = E[2], Z = E[3], iA = E[4], T = rw(l.angle, Z, iA), Q = T[0], w = T[1], x = T[2], N = T[3], K = T[4], H = document.createElement("canvas"), H.width = Z, H.height = iA, p = H.getContext("2d"), O = p.createLinearGradient(w, N, x, K), uo(l.stops, Q).forEach(function(sA) {
|
17129
|
+
return O.addColorStop(sA.stop, MA(sA.color));
|
17130
|
+
}), p.fillStyle = O, p.fillRect(0, 0, Z, iA), Z > 0 && iA > 0 && (R = a.ctx.createPattern(H, "repeat"), a.renderRepeat(aA, R, BA, vA))) : ow(l) && (P = hs(t, r, [
|
17131
17131
|
null,
|
17132
17132
|
null,
|
17133
17133
|
null
|
17134
|
-
]), aA =
|
17135
|
-
return te.addColorStop(sA.stop,
|
17136
|
-
}), a.path(aA), a.ctx.fillStyle = te,
|
17134
|
+
]), aA = P[0], fA = P[1], EA = P[2], Z = P[3], iA = P[4], gA = l.position.length === 0 ? [Ri] : l.position, BA = pA(gA[0], Z), vA = pA(gA[gA.length - 1], iA), ee = nw(l, BA, vA, Z, iA), NA = ee[0], zA = ee[1], NA > 0 && zA > 0 && (te = a.ctx.createRadialGradient(fA + BA, EA + vA, 0, fA + BA, EA + vA, NA), uo(l.stops, NA * 2).forEach(function(sA) {
|
17135
|
+
return te.addColorStop(sA.stop, MA(sA.color));
|
17136
|
+
}), a.path(aA), a.ctx.fillStyle = te, NA !== zA ? (RA = t.bounds.left + 0.5 * t.bounds.width, YA = t.bounds.top + 0.5 * t.bounds.height, XA = zA / NA, I = 1 / XA, a.ctx.save(), a.ctx.translate(RA, YA), a.ctx.transform(1, 0, 0, XA, 0, 0), a.ctx.translate(-RA, -YA), a.ctx.fillRect(fA, I * (EA - YA) + YA, Z, iA * I), a.ctx.restore()) : a.ctx.fill())), _.label = 6;
|
17137
17137
|
case 6:
|
17138
17138
|
return r--, [
|
17139
17139
|
2
|
@@ -17159,7 +17159,7 @@ var TA = function(A, e, t, r, n) {
|
|
17159
17159
|
}, e.prototype.renderSolidBorder = function(t, r, n) {
|
17160
17160
|
return re(this, void 0, void 0, function() {
|
17161
17161
|
return $A(this, function(a) {
|
17162
|
-
return this.path(ko(n, r)), this.ctx.fillStyle =
|
17162
|
+
return this.path(ko(n, r)), this.ctx.fillStyle = MA(t), this.ctx.fill(), [
|
17163
17163
|
2
|
17164
17164
|
/*return*/
|
17165
17165
|
];
|
@@ -17178,7 +17178,7 @@ var TA = function(A, e, t, r, n) {
|
|
17178
17178
|
/*return*/
|
17179
17179
|
];
|
17180
17180
|
case 2:
|
17181
|
-
return s = fU(a, n), this.path(s), this.ctx.fillStyle =
|
17181
|
+
return s = fU(a, n), this.path(s), this.ctx.fillStyle = MA(t), this.ctx.fill(), u = hU(a, n), this.path(u), this.ctx.fill(), [
|
17182
17182
|
2
|
17183
17183
|
/*return*/
|
17184
17184
|
];
|
@@ -17199,12 +17199,12 @@ var TA = function(A, e, t, r, n) {
|
|
17199
17199
|
{ style: r.borderRightStyle, color: r.borderRightColor, width: r.borderRightWidth },
|
17200
17200
|
{ style: r.borderBottomStyle, color: r.borderBottomColor, width: r.borderBottomWidth },
|
17201
17201
|
{ style: r.borderLeftStyle, color: r.borderLeftColor, width: r.borderLeftWidth }
|
17202
|
-
], s = UU(Vt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(s), this.ctx.clip(), lt(r.backgroundColor) || (this.ctx.fillStyle =
|
17202
|
+
], s = UU(Vt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(s), this.ctx.clip(), lt(r.backgroundColor) || (this.ctx.fillStyle = MA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
|
17203
17203
|
case 1:
|
17204
17204
|
h.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(m) {
|
17205
17205
|
f.ctx.save();
|
17206
17206
|
var E = sa(t.curves), T = m.inset ? 0 : wU, Q = cU(E, -T + (m.inset ? 1 : -1) * m.spread.number, (m.inset ? 1 : -1) * m.spread.number, m.spread.number * (m.inset ? -2 : 2), m.spread.number * (m.inset ? -2 : 2));
|
17207
|
-
m.inset ? (f.path(E), f.ctx.clip(), f.mask(Q)) : (f.mask(E), f.ctx.clip(), f.path(Q)), f.ctx.shadowOffsetX = m.offsetX.number + T, f.ctx.shadowOffsetY = m.offsetY.number, f.ctx.shadowColor =
|
17207
|
+
m.inset ? (f.path(E), f.ctx.clip(), f.mask(Q)) : (f.mask(E), f.ctx.clip(), f.path(Q)), f.ctx.shadowOffsetX = m.offsetX.number + T, f.ctx.shadowOffsetY = m.offsetY.number, f.ctx.shadowColor = MA(m.color), f.ctx.shadowBlur = m.blur.number, f.ctx.fillStyle = m.inset ? MA(m.color) : "rgba(0,0,0,1)", f.ctx.fill(), f.ctx.restore();
|
17208
17208
|
}), h.label = 2;
|
17209
17209
|
case 2:
|
17210
17210
|
u = 0, o = 0, c = a, h.label = 3;
|
@@ -17252,9 +17252,9 @@ var TA = function(A, e, t, r, n) {
|
|
17252
17252
|
});
|
17253
17253
|
}, e.prototype.renderDashedDottedBorder = function(t, r, n, a, s) {
|
17254
17254
|
return re(this, void 0, void 0, function() {
|
17255
|
-
var u, o, c, l, f, h, m, E, T, Q,
|
17256
|
-
return $A(this, function(
|
17257
|
-
return this.ctx.save(), u = dU(a, n), o = ko(a, n), s === 2 && (this.path(o), this.ctx.clip()),
|
17255
|
+
var u, o, c, l, f, h, m, E, T, Q, w, x, N, K, H, p, H, p;
|
17256
|
+
return $A(this, function(O) {
|
17257
|
+
return this.ctx.save(), u = dU(a, n), o = ko(a, n), s === 2 && (this.path(o), this.ctx.clip()), Ce(o[0]) ? (c = o[0].start.x, l = o[0].start.y) : (c = o[0].x, l = o[0].y), Ce(o[1]) ? (f = o[1].end.x, h = o[1].end.y) : (f = o[1].x, h = o[1].y), n === 0 || n === 2 ? m = Math.abs(c - f) : m = Math.abs(l - h), this.ctx.beginPath(), s === 3 ? this.formatPath(u) : this.formatPath(o.slice(0, 2)), E = r < 3 ? r * 3 : r * 2, T = r < 3 ? r * 2 : r, s === 3 && (E = r, T = r), Q = !0, m <= E * 2 ? Q = !1 : m <= E * 2 + T ? (w = m / (2 * E + T), E *= w, T *= w) : (x = Math.floor((m + T) / (E + T)), N = (m - x * E) / (x - 1), K = (m - (x + 1) * E) / x, T = K <= 0 || Math.abs(T - N) < Math.abs(T - K) ? N : K), Q && (s === 3 ? this.ctx.setLineDash([0, E + T]) : this.ctx.setLineDash([E, T])), s === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = MA(t), this.ctx.stroke(), this.ctx.setLineDash([]), s === 2 && (Ce(o[0]) && (H = o[3], p = o[0], this.ctx.beginPath(), this.formatPath([new k(H.end.x, H.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke()), Ce(o[1]) && (H = o[1], p = o[2], this.ctx.beginPath(), this.formatPath([new k(H.end.x, H.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
17258
17258
|
2
|
17259
17259
|
/*return*/
|
17260
17260
|
];
|
@@ -17266,7 +17266,7 @@ var TA = function(A, e, t, r, n) {
|
|
17266
17266
|
return $A(this, function(n) {
|
17267
17267
|
switch (n.label) {
|
17268
17268
|
case 0:
|
17269
|
-
return this.options.backgroundColor && (this.ctx.fillStyle =
|
17269
|
+
return this.options.backgroundColor && (this.ctx.fillStyle = MA(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), r = lU(t), [4, this.renderStack(r)];
|
17270
17270
|
case 1:
|
17271
17271
|
return n.sent(), this.applyEffects([]), [2, this.canvas];
|
17272
17272
|
}
|
@@ -17316,7 +17316,7 @@ var TA = function(A, e, t, r, n) {
|
|
17316
17316
|
case 0:
|
17317
17317
|
return r = ei(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, t), [4, yU(r)];
|
17318
17318
|
case 1:
|
17319
|
-
return n = a.sent(), this.options.backgroundColor && (this.ctx.fillStyle =
|
17319
|
+
return n = a.sent(), this.options.backgroundColor && (this.ctx.fillStyle = MA(this.options.backgroundColor), this.ctx.fillRect(0, 0, this.options.width * this.options.scale, this.options.height * this.options.scale)), this.ctx.drawImage(n, -this.options.x * this.options.scale, -this.options.y * this.options.scale), [2, this.canvas];
|
17320
17320
|
}
|
17321
17321
|
});
|
17322
17322
|
});
|
@@ -17371,7 +17371,7 @@ var TA = function(A, e, t, r, n) {
|
|
17371
17371
|
typeof window < "u" && w0.setContext(window);
|
17372
17372
|
var LU = function(A, e) {
|
17373
17373
|
return re(void 0, void 0, void 0, function() {
|
17374
|
-
var t, r, n, a, s, u, o, c, l, f, h, m, E, T, Q,
|
17374
|
+
var t, r, n, a, s, u, o, c, l, f, h, m, E, T, Q, w, x, N, K, H, O, p, O, R, P, aA, fA, EA, Z, iA, gA, BA, vA, ee, NA, zA, te, RA, YA, XA;
|
17375
17375
|
return $A(this, function(I) {
|
17376
17376
|
switch (I.label) {
|
17377
17377
|
case 0:
|
@@ -17383,7 +17383,7 @@ var LU = function(A, e) {
|
|
17383
17383
|
throw new Error("Document is not attached to a Window");
|
17384
17384
|
return n = {
|
17385
17385
|
allowTaint: (R = e.allowTaint) !== null && R !== void 0 ? R : !1,
|
17386
|
-
imageTimeout: (
|
17386
|
+
imageTimeout: (P = e.imageTimeout) !== null && P !== void 0 ? P : 15e3,
|
17387
17387
|
proxy: e.proxy,
|
17388
17388
|
useCORS: (aA = e.useCORS) !== null && aA !== void 0 ? aA : !1
|
17389
17389
|
}, a = ks({ logging: (fA = e.logging) !== null && fA !== void 0 ? fA : !0, cache: e.cache }, n), s = {
|
@@ -17399,19 +17399,19 @@ var LU = function(A, e) {
|
|
17399
17399
|
copyStyles: c
|
17400
17400
|
}, o.logger.debug("Starting document clone with size " + u.width + "x" + u.height + " scrolled to " + -u.left + "," + -u.top), f = new Oo(o, A, l), h = f.clonedReferenceElement, h ? [4, f.toIFrame(t, u)] : [2, Promise.reject("Unable to find element in cloned iframe")];
|
17401
17401
|
case 1:
|
17402
|
-
return m = I.sent(), E = Gi(h) || HT(h) ? c1(h.ownerDocument) : ba(o, h), T = E.width, Q = E.height,
|
17402
|
+
return m = I.sent(), E = Gi(h) || HT(h) ? c1(h.ownerDocument) : ba(o, h), T = E.width, Q = E.height, w = E.left, x = E.top, N = HU(o, h, e.backgroundColor), K = {
|
17403
17403
|
canvas: e.canvas,
|
17404
17404
|
backgroundColor: N,
|
17405
|
-
scale: (
|
17406
|
-
x: ((zA = e.x) !== null && zA !== void 0 ? zA : 0) +
|
17405
|
+
scale: (NA = (ee = e.scale) !== null && ee !== void 0 ? ee : r.devicePixelRatio) !== null && NA !== void 0 ? NA : 1,
|
17406
|
+
x: ((zA = e.x) !== null && zA !== void 0 ? zA : 0) + w,
|
17407
17407
|
y: ((te = e.y) !== null && te !== void 0 ? te : 0) + x,
|
17408
|
-
width: (
|
17408
|
+
width: (RA = e.width) !== null && RA !== void 0 ? RA : Math.ceil(T),
|
17409
17409
|
height: (YA = e.height) !== null && YA !== void 0 ? YA : Math.ceil(Q)
|
17410
|
-
}, c ? (o.logger.debug("Document cloned, using foreign object rendering"),
|
17410
|
+
}, c ? (o.logger.debug("Document cloned, using foreign object rendering"), O = new IU(o, K), [4, O.render(h)]) : [3, 3];
|
17411
17411
|
case 2:
|
17412
17412
|
return H = I.sent(), [3, 5];
|
17413
17413
|
case 3:
|
17414
|
-
return o.logger.debug("Document cloned, element located at " +
|
17414
|
+
return o.logger.debug("Document cloned, element located at " + w + "," + x + " with size " + T + "x" + Q + " using computed rendering"), o.logger.debug("Starting DOM parsing"), p = h0(o, h), N === p.styles.backgroundColor && (p.styles.backgroundColor = Xe.TRANSPARENT), o.logger.debug("Starting renderer for element at " + K.x + "," + K.y + " with size " + K.width + "x" + K.height), O = new bU(o, K), [4, O.render(p)];
|
17415
17415
|
case 4:
|
17416
17416
|
H = I.sent(), I.label = 5;
|
17417
17417
|
case 5:
|
@@ -17431,7 +17431,7 @@ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
|
|
17431
17431
|
* Released under the MIT license
|
17432
17432
|
*
|
17433
17433
|
* Date: 2024-04-21T07:43:02.731Z
|
17434
|
-
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-7f27dfdd]{font-family:微软雅黑}.resize-area[data-v-7f27dfdd]{transition:width .1s ease}.resizer[data-v-7f27dfdd]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-7f27dfdd]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\\[99999\\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\\[100vh\\]{height:100vh}.h-\\[200px\\]{height:200px}.h-\\[300px\\]{height:300px}.h-\\[360px\\]{height:360px}.h-\\[40px\\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[500px\\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[100vw\\]{width:100vw}.w-\\[110px\\]{width:110px}.w-\\[270px\\]{width:270px}.w-\\[300px\\]{width:300px}.w-\\[640px\\]{width:640px}.w-\\[700px\\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\\/10{flex-basis:10%}.basis-1\\/11{flex-basis:9.09090909%}.basis-1\\/12{flex-basis:8.33333333%}.basis-1\\/2{flex-basis:50%}.basis-1\\/3{flex-basis:33.333333%}.basis-1\\/4{flex-basis:25%}.basis-1\\/5{flex-basis:20%}.basis-1\\/6{flex-basis:16.666667%}.basis-1\\/7{flex-basis:14.2857143%}.basis-1\\/8{flex-basis:12.5%}.basis-1\\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#DEDEDE\\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\\[\\#474AFF\\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\\[\\#f4f8ff\\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.7\\)\\]{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\\/80{background-color:#22c55ecc}.bg-purple-400\\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\\[70px\\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\\[\\#333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\\[\\#666\\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\\[\\#999\\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-10:hover{z-index:10}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\\:box-border{box-sizing:border-box}.pc\\:basis-1\\/10{flex-basis:10%}.pc\\:basis-1\\/11{flex-basis:9.09090909%}.pc\\:basis-1\\/12{flex-basis:8.33333333%}.pc\\:basis-1\\/2{flex-basis:50%}.pc\\:basis-1\\/3{flex-basis:33.333333%}.pc\\:basis-1\\/4{flex-basis:25%}.pc\\:basis-1\\/5{flex-basis:20%}.pc\\:basis-1\\/6{flex-basis:16.666667%}.pc\\:basis-1\\/7{flex-basis:14.2857143%}.pc\\:basis-1\\/8{flex-basis:12.5%}.pc\\:basis-1\\/9{flex-basis:11.1111111%}.pc\\:basis-full{flex-basis:100%}.pc\\:justify-normal{justify-content:normal}.pc\\:justify-center{justify-content:center}}
|
17434
|
+
*/.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.cropper-container img{backface-visibility:hidden;display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-wrap-box,.cropper-canvas,.cropper-drag-box,.cropper-crop-box,.cropper-modal{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-wrap-box,.cropper-canvas{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:#3399ffbf;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:calc(100% / 3);left:0;top:calc(100% / 3);width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:calc(100% / 3);top:0;width:calc(100% / 3)}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:before,.cropper-center:after{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width: 768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width: 992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width: 1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}.before{position:relative;overflow:hidden}.before img{position:absolute}.upload-wrapper[data-v-08babff9]{max-width:500px}.file-list[data-v-08babff9]{max-height:300px;overflow-y:auto}.gp-dsigner[data-v-af92f944]{font-family:微软雅黑}.resize-area[data-v-af92f944]{transition:width .1s ease}.resizer[data-v-af92f944]{width:6px;background:#f0f0f0;cursor:col-resize;display:flex;justify-content:center;align-items:center;position:relative;z-index:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}textarea[data-v-af92f944]{resize:none;border:none;outline:none;background:transparent}.gp-dsigner{width:100%}:root{--gp-designer-theme-color: #3574e6}.gp-designer-theme-text,.gp-designer-theme-icon{color:var(--gp-designer-theme-color)!important}.gp-designer-theme-button{background-color:var(--gp-designer-theme-color)!important}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.container{width:100%}@media (min-width: 1200px){.container{max-width:1200px}}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-top-6{top:-1.5rem}.bottom-4{bottom:1rem}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-\\[99999\\]{z-index:99999}.m-1{margin:.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-2{margin-bottom:.5rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-12{height:3rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-\\[100vh\\]{height:100vh}.h-\\[200px\\]{height:200px}.h-\\[300px\\]{height:300px}.h-\\[360px\\]{height:360px}.h-\\[40px\\]{height:40px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\\[500px\\]{max-height:500px}.w-10{width:2.5rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\\[100vw\\]{width:100vw}.w-\\[110px\\]{width:110px}.w-\\[270px\\]{width:270px}.w-\\[300px\\]{width:300px}.w-\\[640px\\]{width:640px}.w-\\[700px\\]{width:700px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.flex-none{flex:none}.basis-1\\/10{flex-basis:10%}.basis-1\\/11{flex-basis:9.09090909%}.basis-1\\/12{flex-basis:8.33333333%}.basis-1\\/2{flex-basis:50%}.basis-1\\/3{flex-basis:33.333333%}.basis-1\\/4{flex-basis:25%}.basis-1\\/5{flex-basis:20%}.basis-1\\/6{flex-basis:16.666667%}.basis-1\\/7{flex-basis:14.2857143%}.basis-1\\/8{flex-basis:12.5%}.basis-1\\/9{flex-basis:11.1111111%}.basis-full{flex-basis:100%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-normal{justify-content:normal}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#DEDEDE\\]{--tw-border-opacity: 1;border-color:rgb(222 222 222 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-\\[\\#474AFF\\]{--tw-bg-opacity: 1;background-color:rgb(71 74 255 / var(--tw-bg-opacity))}.bg-\\[\\#f4f8ff\\]{--tw-bg-opacity: 1;background-color:rgb(244 248 255 / var(--tw-bg-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.7\\)\\]{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-blue-500\\/80{background-color:#3b82f6cc}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-green-500\\/80{background-color:#22c55ecc}.bg-purple-400\\/80{background-color:#c084fccc}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500\\/80{background-color:#ef4444cc}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pr-\\[70px\\]{padding-right:70px}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\\!text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.text-\\[\\#333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.text-\\[\\#666\\]{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}.text-\\[\\#999\\]{--tw-text-opacity: 1;color:rgb(153 153 153 / var(--tw-text-opacity))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-10:hover{z-index:10}.hover\\:border-blue-500:hover{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.hover\\:border-gray-400:hover{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.hover\\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.hover\\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.hover\\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.hover\\:underline:hover{text-decoration-line:underline}@media (min-width: 1200px){.pc\\:box-border{box-sizing:border-box}.pc\\:basis-1\\/10{flex-basis:10%}.pc\\:basis-1\\/11{flex-basis:9.09090909%}.pc\\:basis-1\\/12{flex-basis:8.33333333%}.pc\\:basis-1\\/2{flex-basis:50%}.pc\\:basis-1\\/3{flex-basis:33.333333%}.pc\\:basis-1\\/4{flex-basis:25%}.pc\\:basis-1\\/5{flex-basis:20%}.pc\\:basis-1\\/6{flex-basis:16.666667%}.pc\\:basis-1\\/7{flex-basis:14.2857143%}.pc\\:basis-1\\/8{flex-basis:12.5%}.pc\\:basis-1\\/9{flex-basis:11.1111111%}.pc\\:basis-full{flex-basis:100%}.pc\\:justify-normal{justify-content:normal}.pc\\:justify-center{justify-content:center}}
|
17435
17435
|
`, DU = De({
|
17436
17436
|
name: "GpIframe",
|
17437
17437
|
props: {
|
@@ -17550,8 +17550,8 @@ const NU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
|
|
17550
17550
|
}
|
17551
17551
|
});
|
17552
17552
|
function OU(A, e, t, r, n, a) {
|
17553
|
-
return
|
17554
|
-
|
17553
|
+
return M(), V("div", null, [
|
17554
|
+
b("iframe", {
|
17555
17555
|
ref: "iframeRef",
|
17556
17556
|
style: gs([{ "min-height": "600px" }, A.iframeStyle])
|
17557
17557
|
}, null, 4)
|
@@ -17571,11 +17571,14 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17571
17571
|
class: "max-h-[500px] overflow-hidden w-[640px] h-[360px] bg-light-100"
|
17572
17572
|
}, zU = {
|
17573
17573
|
key: 1,
|
17574
|
+
class: "text-gray-500 text-xs mt-2"
|
17575
|
+
}, $U = { key: 0 }, ZU = { key: 1 }, AQ = { key: 2 }, eQ = {
|
17576
|
+
key: 0,
|
17574
17577
|
class: "text-red-500 text-xs mt-2"
|
17575
|
-
},
|
17576
|
-
key:
|
17578
|
+
}, tQ = {
|
17579
|
+
key: 1,
|
17577
17580
|
class: "text-red-500 text-xs mt-2"
|
17578
|
-
},
|
17581
|
+
}, rQ = /* @__PURE__ */ De({
|
17579
17582
|
__name: "Designer",
|
17580
17583
|
props: {
|
17581
17584
|
mode: { default: "design" },
|
@@ -17611,8 +17614,8 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17611
17614
|
(F) => {
|
17612
17615
|
F.forEach((y) => {
|
17613
17616
|
if (document.querySelector(`link[href="${y}"]`) || document.querySelector(`link[id="${y}"]`)) return;
|
17614
|
-
const
|
17615
|
-
|
17617
|
+
const D = document.createElement("link");
|
17618
|
+
D.rel = "stylesheet", D.href = y + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = y, document.head.appendChild(D);
|
17616
17619
|
});
|
17617
17620
|
},
|
17618
17621
|
{ immediate: !0 }
|
@@ -17621,8 +17624,8 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17621
17624
|
(F) => {
|
17622
17625
|
!F || F.length === 0 || F.forEach((y) => {
|
17623
17626
|
if (document.querySelector(`script[src="${y}"]`) || document.querySelector(`script[id="${y}"]`)) return;
|
17624
|
-
const
|
17625
|
-
|
17627
|
+
const D = document.createElement("script");
|
17628
|
+
D.src = y + "?t=" + (/* @__PURE__ */ new Date()).getTime(), D.id = y, document.body.appendChild(D);
|
17626
17629
|
});
|
17627
17630
|
},
|
17628
17631
|
{ immediate: !0 }
|
@@ -17641,14 +17644,14 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17641
17644
|
(F) => {
|
17642
17645
|
const y = getComputedStyle(document.documentElement).getPropertyValue(
|
17643
17646
|
"--main-color"
|
17644
|
-
),
|
17647
|
+
), D = getComputedStyle(document.documentElement).getPropertyValue(
|
17645
17648
|
"--gp-designer-theme-color"
|
17646
17649
|
);
|
17647
|
-
h.value =
|
17650
|
+
h.value = D || y, n("update:modelValue", F);
|
17648
17651
|
},
|
17649
17652
|
{ immediate: !0 }
|
17650
17653
|
);
|
17651
|
-
const m = z(), E = z(), T = z(), Q = z(),
|
17654
|
+
const m = z(), E = z(), T = z(), Q = z(), w = z(), x = z(), N = z(""), K = z(r.mode === "design");
|
17652
17655
|
ne(
|
17653
17656
|
() => r.rules,
|
17654
17657
|
(F) => {
|
@@ -17660,18 +17663,18 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17660
17663
|
Q.value && Q.value.generateCover(F);
|
17661
17664
|
}
|
17662
17665
|
function p(F) {
|
17663
|
-
var y,
|
17664
|
-
|
17665
|
-
`)) == null ? void 0 :
|
17666
|
+
var y, D, Y, oA, mA, le, bA, SA, j, ge, WA;
|
17667
|
+
w.value = F, F.type === X.Text && F.rule.allowWrap && (St.value = !0, de.value = (WA = (ge = (j = (SA = (bA = (le = (mA = (oA = (Y = (D = (y = F.text) == null ? void 0 : y.replace(/<br>/g, `
|
17668
|
+
`)) == null ? void 0 : D.replace(/<br\/>/g, `
|
17666
17669
|
`)) == null ? void 0 : Y.replace(/<br \/>/g, `
|
17667
17670
|
`)) == null ? void 0 : oA.replace(/<br \s*\/>/g, `
|
17668
17671
|
`)) == null ? void 0 : mA.replace(/<br\s*\/>/g, `
|
17669
|
-
`)) == null ? void 0 : le.replace(/ /g, " ")) == null ? void 0 : bA.replace(/</g, "<")) == null ? void 0 :
|
17672
|
+
`)) == null ? void 0 : le.replace(/ /g, " ")) == null ? void 0 : bA.replace(/</g, "<")) == null ? void 0 : SA.replace(/>/g, ">")) == null ? void 0 : j.replace(/&/g, "&")) == null ? void 0 : ge.replace(/"/g, '"')) == null ? void 0 : WA.replace(/'/g, "'"));
|
17670
17673
|
}
|
17671
|
-
function
|
17674
|
+
function O(F, y = "") {
|
17672
17675
|
if (y) {
|
17673
|
-
const
|
17674
|
-
|
17676
|
+
const D = R(u.value, y);
|
17677
|
+
D ? x.value = D : x.value = F;
|
17675
17678
|
} else
|
17676
17679
|
x.value = F;
|
17677
17680
|
}
|
@@ -17679,29 +17682,29 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17679
17682
|
if (F.xpath === y)
|
17680
17683
|
return F;
|
17681
17684
|
if (F.children && F.children.length)
|
17682
|
-
for (const
|
17683
|
-
const Y = R(
|
17685
|
+
for (const D of F.children) {
|
17686
|
+
const Y = R(D, y);
|
17684
17687
|
if (Y)
|
17685
17688
|
return Y;
|
17686
17689
|
}
|
17687
17690
|
}
|
17688
|
-
function
|
17689
|
-
var
|
17691
|
+
function P(F, y) {
|
17692
|
+
var D, Y;
|
17690
17693
|
return F.tag === y.tag && // 标签一致
|
17691
|
-
((
|
17694
|
+
((D = F.children) == null ? void 0 : D.length) === ((Y = y.children) == null ? void 0 : Y.length);
|
17692
17695
|
}
|
17693
17696
|
function aA(F) {
|
17694
|
-
if (
|
17695
|
-
if (
|
17697
|
+
if (w.value.xpath == F.xpath) {
|
17698
|
+
if (w.value) {
|
17696
17699
|
if (F.type === X.Block) {
|
17697
17700
|
var y = !0;
|
17698
|
-
const
|
17701
|
+
const D = R(
|
17699
17702
|
u.value,
|
17700
|
-
|
17703
|
+
w.value.parentxpath || ""
|
17701
17704
|
);
|
17702
|
-
if (
|
17703
|
-
if (Y.tag !=
|
17704
|
-
!
|
17705
|
+
if (D && D.children && D.children.forEach((Y) => {
|
17706
|
+
if (Y.tag != w.value.tag || // 检查标签一致
|
17707
|
+
!P(Y, w.value)) {
|
17705
17708
|
y = !1;
|
17706
17709
|
return;
|
17707
17710
|
}
|
@@ -17710,19 +17713,19 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17710
17713
|
return;
|
17711
17714
|
}
|
17712
17715
|
}
|
17713
|
-
if (
|
17714
|
-
const
|
17716
|
+
if (w.value.rule = F.rule, w.value.type = F.type, w.value.type === X.Block) {
|
17717
|
+
const D = R(
|
17715
17718
|
u.value,
|
17716
|
-
|
17719
|
+
w.value.parentxpath || ""
|
17717
17720
|
);
|
17718
|
-
|
17719
|
-
if (Y.tag !=
|
17720
|
-
!
|
17721
|
+
D && D.children && (D.children.forEach((Y) => {
|
17722
|
+
if (Y.tag != w.value.tag || // 检查标签一致
|
17723
|
+
!P(Y, w.value)) {
|
17721
17724
|
eA.error("同级结构不一致,无法配置为块类型");
|
17722
17725
|
return;
|
17723
17726
|
}
|
17724
|
-
}),
|
17725
|
-
Y.tag ===
|
17727
|
+
}), D.children.forEach((Y) => {
|
17728
|
+
Y.tag === w.value.tag && (Y.rule = F.rule, Y.type = F.type);
|
17726
17729
|
}));
|
17727
17730
|
}
|
17728
17731
|
}
|
@@ -17731,9 +17734,9 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17731
17734
|
}
|
17732
17735
|
function fA(F) {
|
17733
17736
|
const y = R(u.value, F.xpath || "");
|
17734
|
-
y && (y.rule = F.rule, y.type = F.type, y.children && F.children && y.children.forEach((
|
17735
|
-
const Y = F.children.find((oA) => oA.xpath ===
|
17736
|
-
Y && (
|
17737
|
+
y && (y.rule = F.rule, y.type = F.type, y.children && F.children && y.children.forEach((D) => {
|
17738
|
+
const Y = F.children.find((oA) => oA.xpath === D.xpath);
|
17739
|
+
Y && (D.rule = Y.rule, D.type = Y.type);
|
17737
17740
|
})), eA.success("操作成功"), f.value = (/* @__PURE__ */ new Date()).getTime().toString(), n("update:element", u.value);
|
17738
17741
|
}
|
17739
17742
|
function EA(F) {
|
@@ -17743,56 +17746,56 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17743
17746
|
o = Qu(F);
|
17744
17747
|
const y = o("body").children().toArray().map((mA) => iA(o(mA)));
|
17745
17748
|
c.value = o("body").html() || "";
|
17746
|
-
const
|
17747
|
-
if (
|
17748
|
-
let mA = function(bA,
|
17749
|
+
const D = y[0];
|
17750
|
+
if (D) {
|
17751
|
+
let mA = function(bA, SA, j) {
|
17749
17752
|
var qe;
|
17750
|
-
const
|
17751
|
-
|
17753
|
+
const ge = bA.xpath.replace(
|
17754
|
+
SA.xpath,
|
17752
17755
|
j.xpath
|
17753
|
-
), WA = (qe = a.value) == null ? void 0 : qe.find((Lt) => Lt.xpath ===
|
17756
|
+
), WA = (qe = a.value) == null ? void 0 : qe.find((Lt) => Lt.xpath === ge);
|
17754
17757
|
WA && (bA.rule = WA.rule, bA.type = WA.type), bA.children && bA.children.length > 0 && bA.children.forEach((Lt) => {
|
17755
|
-
mA(Lt,
|
17758
|
+
mA(Lt, SA, j);
|
17756
17759
|
});
|
17757
17760
|
}, le = function(bA) {
|
17758
17761
|
if (bA.children && bA.children.length > 0) {
|
17759
|
-
const
|
17762
|
+
const SA = bA.children.find(
|
17760
17763
|
(j) => j.type === X.Block
|
17761
17764
|
);
|
17762
|
-
|
17763
|
-
var
|
17764
|
-
j.tag ===
|
17765
|
-
mA(Lt, j,
|
17765
|
+
SA && bA.children.forEach((j) => {
|
17766
|
+
var ge, WA, qe;
|
17767
|
+
j.tag === SA.tag && (j.rule = SA.rule, j.type = SA.type, j.attrs.class = (qe = (WA = (ge = j.attrs) == null ? void 0 : ge.class) == null ? void 0 : WA.replace(/pc:basis-\d\/\d/g, "")) == null ? void 0 : qe.replace(/basis-\d\/\d/g, ""), j.children && j.children.length > 0 && j.children.forEach((Lt) => {
|
17768
|
+
mA(Lt, j, SA);
|
17766
17769
|
}));
|
17767
17770
|
}), bA.children.forEach((j) => {
|
17768
17771
|
le(j);
|
17769
17772
|
});
|
17770
17773
|
}
|
17771
17774
|
};
|
17772
|
-
le(
|
17775
|
+
le(D);
|
17773
17776
|
}
|
17774
17777
|
const Y = getComputedStyle(document.documentElement).getPropertyValue(
|
17775
17778
|
"--main-color"
|
17776
17779
|
), oA = getComputedStyle(document.documentElement).getPropertyValue(
|
17777
17780
|
"--gp-designer-theme-color"
|
17778
17781
|
);
|
17779
|
-
return h.value = oA || Y,
|
17782
|
+
return h.value = oA || Y, D;
|
17780
17783
|
}
|
17781
17784
|
function iA(F, y = "") {
|
17782
|
-
var bA,
|
17783
|
-
function
|
17785
|
+
var bA, SA;
|
17786
|
+
function D(j) {
|
17784
17787
|
if (!j || !j[0]) return "";
|
17785
|
-
const
|
17788
|
+
const ge = [];
|
17786
17789
|
let WA = j;
|
17787
17790
|
for (; WA.length && WA[0].tagName !== "html"; ) {
|
17788
17791
|
const qe = WA[0].tagName, I0 = WA.parent().children(qe).index(WA) + 1;
|
17789
|
-
|
17792
|
+
ge.unshift(`${qe}[${I0}]`), WA = WA.parent();
|
17790
17793
|
}
|
17791
|
-
return "/html/" +
|
17794
|
+
return "/html/" + ge.join("/");
|
17792
17795
|
}
|
17793
|
-
const Y =
|
17796
|
+
const Y = D(F).replace("/html/body[1]", ""), oA = F.children().toArray().map((j) => iA(o(j), Y)).filter((j) => j.tag !== "br");
|
17794
17797
|
let mA = (bA = a.value) == null ? void 0 : bA.find((j) => j.xpath === Y), le = F.contents().not(F.children()).text().trim();
|
17795
|
-
return mA && ((
|
17798
|
+
return mA && ((SA = mA.rule) != null && SA.allowWrap) && (le = F.html()), {
|
17796
17799
|
tag: F[0].tagName,
|
17797
17800
|
text: le,
|
17798
17801
|
attrs: F[0].attribs,
|
@@ -17806,24 +17809,24 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17806
17809
|
function gA(F) {
|
17807
17810
|
const y = R(u.value, F.element.xpath);
|
17808
17811
|
if (y) {
|
17809
|
-
const
|
17810
|
-
|
17812
|
+
const D = Go(y);
|
17813
|
+
D.editText = F.newText;
|
17811
17814
|
}
|
17812
17815
|
}
|
17813
17816
|
function BA(F, y = "") {
|
17814
|
-
function
|
17817
|
+
function D(Y, oA) {
|
17815
17818
|
var bA;
|
17816
|
-
const le = (oA ? ((bA = R(u.value, oA)) == null ? void 0 : bA.children) || [] : [u.value]).filter((
|
17819
|
+
const le = (oA ? ((bA = R(u.value, oA)) == null ? void 0 : bA.children) || [] : [u.value]).filter((SA) => SA.tag === Y.tag).indexOf(Y) + 1;
|
17817
17820
|
return `${oA}/${Y.tag}[${le}]`;
|
17818
17821
|
}
|
17819
|
-
F.xpath =
|
17822
|
+
F.xpath = D(F, y), F.parentxpath = y, (F.children || []).forEach(
|
17820
17823
|
(Y) => BA(Y, F.xpath)
|
17821
17824
|
);
|
17822
17825
|
}
|
17823
17826
|
function vA({
|
17824
17827
|
action: F,
|
17825
17828
|
element: y,
|
17826
|
-
newBlock:
|
17829
|
+
newBlock: D
|
17827
17830
|
}) {
|
17828
17831
|
const Y = R(
|
17829
17832
|
u.value,
|
@@ -17843,28 +17846,28 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17843
17846
|
N.value = `无法添加更多块。最大块数量为 ${bA}`, eA.error(N.value);
|
17844
17847
|
return;
|
17845
17848
|
}
|
17846
|
-
function
|
17847
|
-
j.xpath = "", j.parentxpath = "", j.text = j.editText || j.text, j.editText = "", j.children.forEach((
|
17848
|
-
|
17849
|
+
function SA(j) {
|
17850
|
+
j.xpath = "", j.parentxpath = "", j.text = j.editText || j.text, j.editText = "", j.children.forEach((ge) => {
|
17851
|
+
SA(ge);
|
17849
17852
|
});
|
17850
17853
|
}
|
17851
17854
|
switch (F) {
|
17852
17855
|
case "add":
|
17853
|
-
if (
|
17856
|
+
if (D) {
|
17854
17857
|
const j = {
|
17855
|
-
...
|
17856
|
-
children: JSON.parse(JSON.stringify(
|
17858
|
+
...D,
|
17859
|
+
children: JSON.parse(JSON.stringify(D.children))
|
17857
17860
|
};
|
17858
|
-
|
17861
|
+
SA(j), Y.children.splice(oA + 1, 0, j), eA.success("添加成功");
|
17859
17862
|
}
|
17860
17863
|
break;
|
17861
17864
|
case "copy":
|
17862
|
-
if (
|
17865
|
+
if (D) {
|
17863
17866
|
const j = {
|
17864
|
-
...
|
17865
|
-
children: JSON.parse(JSON.stringify(
|
17867
|
+
...D,
|
17868
|
+
children: JSON.parse(JSON.stringify(D.children))
|
17866
17869
|
};
|
17867
|
-
|
17870
|
+
SA(j), Y.children.splice(oA + 1, 0, j), eA.success("复制成功");
|
17868
17871
|
}
|
17869
17872
|
break;
|
17870
17873
|
case "moveUp":
|
@@ -17892,49 +17895,49 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17892
17895
|
N.value = "", BA(u.value);
|
17893
17896
|
}
|
17894
17897
|
function ee(F, y) {
|
17895
|
-
let
|
17896
|
-
y.attrs.class =
|
17898
|
+
let D = y.attrs.class.replace(/icon-\S+/g, `icon-${F}`);
|
17899
|
+
y.attrs.class = D;
|
17897
17900
|
}
|
17898
|
-
function
|
17899
|
-
const y = F.file,
|
17901
|
+
function NA(F) {
|
17902
|
+
const y = F.file, D = R(u.value, F.element.xpath);
|
17900
17903
|
if (r.uploadByFile)
|
17901
17904
|
r.uploadByFile(y).then((Y) => {
|
17902
|
-
Y.success && (
|
17905
|
+
Y.success && (D.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
|
17903
17906
|
});
|
17904
17907
|
else {
|
17905
|
-
|
17908
|
+
D.attrs.alt = y.name;
|
17906
17909
|
const Y = URL.createObjectURL(y);
|
17907
|
-
|
17910
|
+
D.attrs.src = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
|
17908
17911
|
}
|
17909
17912
|
}
|
17910
17913
|
function zA(F) {
|
17911
|
-
const { icon: y } = F,
|
17912
|
-
let Y =
|
17913
|
-
|
17914
|
+
const { icon: y } = F, D = R(u.value, F.element.xpath);
|
17915
|
+
let Y = D.attrs.class.replace(/icon-\S+/g, `icon-${y}`);
|
17916
|
+
D.attrs.class = Y, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
|
17914
17917
|
}
|
17915
|
-
const te = (F) => F.type.startsWith("image/") ? !0 : (eA.error("只能上传图片文件"), !1),
|
17918
|
+
const te = (F) => F.type.startsWith("image/") ? !0 : (eA.error("只能上传图片文件"), !1), RA = z({});
|
17916
17919
|
function YA(F, y) {
|
17917
17920
|
if (!F || F.length === 0)
|
17918
17921
|
return;
|
17919
|
-
const
|
17922
|
+
const D = F[0];
|
17920
17923
|
if (y.rule && (y.rule.minImageWidth || y.rule.maxImageHeight)) {
|
17921
|
-
if (y.rule.minImageWidth &&
|
17924
|
+
if (y.rule.minImageWidth && D.width < y.rule.minImageWidth) {
|
17922
17925
|
eA.error(`图片宽度不能小于 ${y.rule.minImageWidth}px`);
|
17923
17926
|
return;
|
17924
17927
|
}
|
17925
|
-
if (y.rule.maxImageHeight &&
|
17928
|
+
if (y.rule.maxImageHeight && D.height < y.rule.maxImageHeight) {
|
17926
17929
|
eA.error(`图片高度不能小于 ${y.rule.maxImageHeight}px`);
|
17927
17930
|
return;
|
17928
17931
|
}
|
17929
17932
|
}
|
17930
|
-
y.rule.minImageWidth && y.rule.maxImageHeight ? (
|
17931
|
-
|
17932
|
-
|
17933
|
-
|
17933
|
+
y.rule.minImageWidth && y.rule.maxImageHeight ? (RA.value.width = y.rule.minImageWidth, RA.value.height = y.rule.maxImageHeight, RA.value.aspectRatio = y.rule.minImageWidth / y.rule.maxImageHeight) : RA.value = {}, D && (y.rule.crop ? (D.thumbUrl, m.value.handleOpenCropper(
|
17934
|
+
RA.value,
|
17935
|
+
D.file,
|
17936
|
+
D.name,
|
17934
17937
|
y
|
17935
|
-
)) : r.uploadByFile ? r.uploadByFile(
|
17938
|
+
)) : r.uploadByFile ? r.uploadByFile(D.file).then((Y) => {
|
17936
17939
|
Y.success && (y.attrs.src = Y.file.url, f.value = (/* @__PURE__ */ new Date()).getTime().toString());
|
17937
|
-
}) : (y.attrs.src =
|
17940
|
+
}) : (y.attrs.src = D.thumbUrl, f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
|
17938
17941
|
}
|
17939
17942
|
const XA = z(r.previewWidth), I = z(360);
|
17940
17943
|
let _ = z(!1), sA = z(""), AA = 0, wA = 0;
|
@@ -17949,44 +17952,44 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17949
17952
|
function _t() {
|
17950
17953
|
_.value = !1, sA.value = "", window.removeEventListener("mousemove", ir), window.removeEventListener("mouseup", _t);
|
17951
17954
|
}
|
17952
|
-
const St = z(!1),
|
17955
|
+
const St = z(!1), de = z("");
|
17953
17956
|
function Sa() {
|
17954
|
-
if (
|
17955
|
-
if (
|
17957
|
+
if (w.value) {
|
17958
|
+
if (w.value && w.value.rule && w.value.rule.maxText && de.value.length > w.value.rule.maxText) {
|
17956
17959
|
eA.error(
|
17957
|
-
`文本内容超出最大字数 ${
|
17960
|
+
`文本内容超出最大字数 ${w.value.rule.maxText} 个`
|
17958
17961
|
);
|
17959
17962
|
return;
|
17960
17963
|
}
|
17961
|
-
if (
|
17964
|
+
if (w.value && w.value.rule && w.value.rule.minText && de.value.length < w.value.rule.minText) {
|
17962
17965
|
eA.error(
|
17963
|
-
`文本内容不能少于最小字数 ${
|
17966
|
+
`文本内容不能少于最小字数 ${w.value.rule.minText} 个`
|
17964
17967
|
);
|
17965
17968
|
return;
|
17966
17969
|
}
|
17967
|
-
f.value = (/* @__PURE__ */ new Date()).getTime().toString(),
|
17970
|
+
f.value = (/* @__PURE__ */ new Date()).getTime().toString(), w.value && w.value.type === X.Text && (w.value.text = de.value, w.value.editText = de.value), St.value = !1;
|
17968
17971
|
}
|
17969
17972
|
}
|
17970
17973
|
return e({
|
17971
17974
|
generateCover: H
|
17972
|
-
}), (F, y) => (
|
17973
|
-
F.preview ? (
|
17975
|
+
}), (F, y) => (M(), V("div", RU, [
|
17976
|
+
F.preview ? (M(), V("div", {
|
17974
17977
|
key: 0,
|
17975
17978
|
class: "border-l overflow-auto resize-area",
|
17976
17979
|
style: gs({ width: XA.value + "px" })
|
17977
17980
|
}, [
|
17978
|
-
F.showTitle ? (
|
17979
|
-
|
17981
|
+
F.showTitle ? (M(), V("div", MU, [
|
17982
|
+
b("h2", kU, [
|
17980
17983
|
y[6] || (y[6] = ds(" 实时预览 ")),
|
17981
|
-
|
17984
|
+
b("span", PU, IA(XA.value) + "px", 1)
|
17982
17985
|
]),
|
17983
|
-
|
17986
|
+
b("div", {
|
17984
17987
|
onClick: y[0] || (y[0] = () => H()),
|
17985
17988
|
class: "p-2 cursor-pointer text-blue-500"
|
17986
17989
|
}, " 封面 ")
|
17987
17990
|
])) : q("", !0),
|
17988
|
-
|
17989
|
-
c.value ? (
|
17991
|
+
b("div", null, [
|
17992
|
+
c.value ? (M(), Ve(Ko, {
|
17990
17993
|
key: 0,
|
17991
17994
|
"css-files": F.css,
|
17992
17995
|
"js-files": F.js,
|
@@ -17995,7 +17998,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
17995
17998
|
ref_key: "previewRef",
|
17996
17999
|
ref: Q,
|
17997
18000
|
"theme-color": h.value
|
17998
|
-
}, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (
|
18001
|
+
}, null, 8, ["css-files", "js-files", "html-content", "theme-color"])) : (M(), Ve(Ko, {
|
17999
18002
|
key: 1,
|
18000
18003
|
"css-files": F.css,
|
18001
18004
|
"js-files": F.js,
|
@@ -18007,28 +18010,28 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
18007
18010
|
}, null, 8, ["css-files", "js-files", "html-content", "theme-color"]))
|
18008
18011
|
])
|
18009
18012
|
], 4)) : q("", !0),
|
18010
|
-
F.preview ? (
|
18013
|
+
F.preview ? (M(), V("div", {
|
18011
18014
|
key: 1,
|
18012
18015
|
class: "resizer",
|
18013
|
-
onMousedown: y[1] || (y[1] = (
|
18016
|
+
onMousedown: y[1] || (y[1] = (D) => Je("preview"))
|
18014
18017
|
}, null, 32)) : q("", !0),
|
18015
|
-
|
18016
|
-
F.showTitle ? (
|
18017
|
-
y[8] || (y[8] =
|
18018
|
-
|
18019
|
-
|
18020
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
18018
|
+
b("div", KU, [
|
18019
|
+
F.showTitle ? (M(), V("div", GU, [
|
18020
|
+
y[8] || (y[8] = b("h2", { class: "text-lg font-bold" }, "结构渲染", -1)),
|
18021
|
+
b("div", VU, [
|
18022
|
+
pe(b("input", {
|
18023
|
+
"onUpdate:modelValue": y[2] || (y[2] = (D) => K.value = D),
|
18021
18024
|
type: "checkbox",
|
18022
18025
|
id: "showMargin",
|
18023
18026
|
class: "mr-2"
|
18024
18027
|
}, null, 512), [
|
18025
18028
|
[N0, K.value]
|
18026
18029
|
]),
|
18027
|
-
y[7] || (y[7] =
|
18030
|
+
y[7] || (y[7] = b("label", { for: "showMargin" }, "间距", -1))
|
18028
18031
|
])
|
18029
18032
|
])) : q("", !0),
|
18030
|
-
|
18031
|
-
u.value ? (
|
18033
|
+
b("div", YU, [
|
18034
|
+
u.value ? (M(), Ve(uE, {
|
18032
18035
|
key: 0,
|
18033
18036
|
"upload-by-file": F.uploadByFile,
|
18034
18037
|
cropper: m.value,
|
@@ -18039,10 +18042,10 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
18039
18042
|
r: f.value,
|
18040
18043
|
"show-margin": K.value,
|
18041
18044
|
element: u.value,
|
18042
|
-
selectedElement:
|
18045
|
+
selectedElement: w.value,
|
18043
18046
|
hoveredElement: x.value,
|
18044
18047
|
onSelectElement: p,
|
18045
|
-
onHoverElement:
|
18048
|
+
onHoverElement: O,
|
18046
18049
|
onContentUpdated: EA,
|
18047
18050
|
onUpdateText: gA,
|
18048
18051
|
onBlockAction: vA,
|
@@ -18051,25 +18054,25 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
18051
18054
|
}, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "show-margin", "element", "selectedElement", "hoveredElement"])) : q("", !0)
|
18052
18055
|
])
|
18053
18056
|
]),
|
18054
|
-
l.value == "design" ? (
|
18057
|
+
l.value == "design" ? (M(), V("div", {
|
18055
18058
|
key: 2,
|
18056
18059
|
class: "resizer",
|
18057
|
-
onMousedown: y[3] || (y[3] = (
|
18060
|
+
onMousedown: y[3] || (y[3] = (D) => Je("structure"))
|
18058
18061
|
}, null, 32)) : q("", !0),
|
18059
|
-
l.value == "design" ? (
|
18062
|
+
l.value == "design" ? (M(), V("div", {
|
18060
18063
|
key: 3,
|
18061
18064
|
class: "resize-area",
|
18062
18065
|
style: gs({ width: I.value + "px" })
|
18063
18066
|
}, [
|
18064
|
-
|
18065
|
-
F.showTitle ? (
|
18067
|
+
b("div", XU, [
|
18068
|
+
F.showTitle ? (M(), V("h2", WU, [
|
18066
18069
|
y[9] || (y[9] = ds(" 节点属性 ")),
|
18067
|
-
|
18070
|
+
b("span", JU, IA(I.value) + "px", 1)
|
18068
18071
|
])) : q("", !0),
|
18069
|
-
|
18070
|
-
|
18072
|
+
b("div", qU, [
|
18073
|
+
w.value ? (M(), Ve(HE, {
|
18071
18074
|
key: 0,
|
18072
|
-
element:
|
18075
|
+
element: w.value,
|
18073
18076
|
onUpdateElement: aA
|
18074
18077
|
}, null, 8, ["element"])) : q("", !0)
|
18075
18078
|
])
|
@@ -18078,7 +18081,7 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
18078
18081
|
xe(Vm, {
|
18079
18082
|
ref_key: "cropperRef",
|
18080
18083
|
ref: m,
|
18081
|
-
onOk:
|
18084
|
+
onOk: NA
|
18082
18085
|
}, null, 512),
|
18083
18086
|
xe(A1, {
|
18084
18087
|
icons: F.icons,
|
@@ -18095,39 +18098,49 @@ const Ko = /* @__PURE__ */ gt(DU, [["render", OU], ["__scopeId", "data-v-75c23f3
|
|
18095
18098
|
onChange: YA
|
18096
18099
|
}, {
|
18097
18100
|
"upload-icon": kr(() => y[10] || (y[10] = [
|
18098
|
-
|
18101
|
+
b("div", { class: "p-2" }, "上传", -1)
|
18099
18102
|
])),
|
18100
18103
|
_: 1
|
18101
18104
|
}, 512),
|
18102
18105
|
xe(Ul, {
|
18103
18106
|
title: "多行文本编辑",
|
18104
18107
|
visible: St.value,
|
18105
|
-
"onUpdate:visible": y[5] || (y[5] = (
|
18108
|
+
"onUpdate:visible": y[5] || (y[5] = (D) => St.value = D),
|
18106
18109
|
onOk: Sa,
|
18107
18110
|
"mask-closable": !1
|
18108
18111
|
}, {
|
18109
|
-
default: kr(() =>
|
18110
|
-
|
18111
|
-
|
18112
|
-
|
18113
|
-
|
18114
|
-
|
18115
|
-
|
18116
|
-
|
18117
|
-
|
18118
|
-
|
18119
|
-
|
18120
|
-
|
18112
|
+
default: kr(() => {
|
18113
|
+
var D;
|
18114
|
+
return [
|
18115
|
+
w.value ? (M(), V("div", jU, [
|
18116
|
+
pe(b("textarea", {
|
18117
|
+
"onUpdate:modelValue": y[4] || (y[4] = (Y) => de.value = Y),
|
18118
|
+
class: "w-full h-full text-sm"
|
18119
|
+
}, null, 512), [
|
18120
|
+
[ze, de.value]
|
18121
|
+
])
|
18122
|
+
])) : q("", !0),
|
18123
|
+
w.value && w.value.rule ? (M(), V("div", zU, [
|
18124
|
+
b("div", null, [
|
18125
|
+
b("span", null, IA(((D = de.value) == null ? void 0 : D.length) || 0) + " 字", 1),
|
18126
|
+
w.value.rule.minText && w.value.rule.maxText ? (M(), V("span", $U, " / " + IA(w.value.rule.minText || 0) + " ~ " + IA(w.value.rule.maxText || 0) + " 字 ", 1)) : w.value.rule.minText ? (M(), V("span", ZU, " / 最少 " + IA(w.value.rule.minText) + " 字", 1)) : w.value.rule.maxText ? (M(), V("span", AQ, " / 最多 " + IA(w.value.rule.maxText) + " 字", 1)) : q("", !0)
|
18127
|
+
]),
|
18128
|
+
b("div", null, [
|
18129
|
+
w.value.rule.maxText && de.value.length > w.value.rule.maxText ? (M(), V("span", eQ, " 超出最大字数 " + IA(w.value.rule.maxText) + " 字 ", 1)) : w.value.rule.minText && de.value.length < w.value.rule.minText ? (M(), V("span", tQ, " 不能少于最小字数 " + IA(w.value.rule.minText) + " 字 ", 1)) : q("", !0)
|
18130
|
+
])
|
18131
|
+
])) : q("", !0)
|
18132
|
+
];
|
18133
|
+
}),
|
18121
18134
|
_: 1
|
18122
18135
|
}, 8, ["visible"])
|
18123
18136
|
]));
|
18124
18137
|
}
|
18125
|
-
}),
|
18138
|
+
}), nQ = /* @__PURE__ */ gt(rQ, [["__scopeId", "data-v-af92f944"]]), lQ = {
|
18126
18139
|
install(A) {
|
18127
|
-
A.component("Designer",
|
18140
|
+
A.component("Designer", nQ);
|
18128
18141
|
}
|
18129
18142
|
};
|
18130
18143
|
export {
|
18131
|
-
|
18132
|
-
|
18144
|
+
nQ as Designer,
|
18145
|
+
lQ as default
|
18133
18146
|
};
|