gp-designer 1.0.114 → 1.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as Re, ref as j, computed as Ve, openBlock as M, createBlock as Xe, Transition as H0, withCtx as kr, createElementBlock as Y, createElementVNode as b, normalizeClass as fs, renderSlot as vr, createCommentVNode as W, toDisplayString as IA, reactive as N0, createApp as D0, h as qs, watch as ee, resolveComponent as O0, Fragment as Xt, unref as EA, resolveDynamicComponent as js, mergeProps as zs, withModifiers as kA, createTextVNode as pi, renderList as Vn, toRaw as Wo, withDirectives as me, vModelSelect as Da, vModelText as $e, createVNode as ye, toRefs as R0, onMounted as M0, nextTick as Ei, normalizeStyle as mi, vModelCheckbox as k0 } from "vue";
1
+ import { defineComponent as Re, ref as j, computed as Ve, openBlock as M, createBlock as Xe, Transition as H0, withCtx as kr, createElementBlock as Y, createElementVNode as b, normalizeClass as fs, renderSlot as vr, createCommentVNode as W, toDisplayString as IA, reactive as N0, createApp as D0, h as qs, watch as te, resolveComponent as O0, Fragment as Xt, unref as EA, resolveDynamicComponent as js, mergeProps as zs, withModifiers as PA, createTextVNode as pi, renderList as Vn, toRaw as Wo, withDirectives as me, vModelSelect as Da, vModelText as $e, createVNode as ye, toRefs as R0, onMounted as M0, nextTick as Ei, normalizeStyle as mi, vModelCheckbox as k0 } 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";
@@ -191,7 +191,7 @@ function Ci(A) {
191
191
  function dt(A) {
192
192
  return A.type === cA.Root;
193
193
  }
194
- function GA(A) {
194
+ function VA(A) {
195
195
  return Object.prototype.hasOwnProperty.call(A, "children");
196
196
  }
197
197
  function Kr(A, e = !1) {
@@ -350,42 +350,42 @@ function Z0(A) {
350
350
  var e;
351
351
  return A >= 55296 && A <= 57343 || A > 1114111 ? 65533 : (e = $0.get(A)) !== null && e !== void 0 ? e : A;
352
352
  }
353
- var KA;
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
- })(KA || (KA = {}));
356
+ })(GA || (GA = {}));
357
357
  const Af = 32;
358
358
  var nt;
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
  })(nt || (nt = {}));
362
362
  function bi(A) {
363
- return A >= KA.ZERO && A <= KA.NINE;
363
+ return A >= GA.ZERO && A <= GA.NINE;
364
364
  }
365
365
  function ef(A) {
366
- return A >= KA.UPPER_A && A <= KA.UPPER_F || A >= KA.LOWER_A && A <= KA.LOWER_F;
366
+ return A >= GA.UPPER_A && A <= GA.UPPER_F || A >= GA.LOWER_A && A <= GA.LOWER_F;
367
367
  }
368
368
  function tf(A) {
369
- return A >= KA.UPPER_A && A <= KA.UPPER_Z || A >= KA.LOWER_A && A <= KA.LOWER_Z || bi(A);
369
+ return A >= GA.UPPER_A && A <= GA.UPPER_Z || A >= GA.LOWER_A && A <= GA.LOWER_Z || bi(A);
370
370
  }
371
371
  function rf(A) {
372
- return A === KA.EQUALS || tf(A);
372
+ return A === GA.EQUALS || tf(A);
373
373
  }
374
- var MA;
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
- })(MA || (MA = {}));
377
+ })(kA || (kA = {}));
378
378
  var Te;
379
379
  (function(A) {
380
380
  A[A.Legacy = 0] = "Legacy", A[A.Strict = 1] = "Strict", A[A.Attribute = 2] = "Attribute";
381
381
  })(Te || (Te = {}));
382
382
  class ms {
383
383
  constructor(e, t, r) {
384
- this.decodeTree = e, this.emitCodePoint = t, this.errors = r, this.state = MA.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Te.Strict;
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 = Te.Strict;
385
385
  }
386
386
  /** Resets the instance to make it reusable. */
387
387
  startEntity(e) {
388
- this.decodeMode = e, this.state = MA.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
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 ms {
400
400
  */
401
401
  write(e, t) {
402
402
  switch (this.state) {
403
- case MA.EntityStart:
404
- return e.charCodeAt(t) === KA.NUM ? (this.state = MA.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = MA.NamedEntity, this.stateNamedEntity(e, t));
405
- case MA.NumericStart:
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 MA.NumericDecimal:
407
+ case kA.NumericDecimal:
408
408
  return this.stateNumericDecimal(e, t);
409
- case MA.NumericHex:
409
+ case kA.NumericHex:
410
410
  return this.stateNumericHex(e, t);
411
- case MA.NamedEntity:
411
+ case kA.NamedEntity:
412
412
  return this.stateNamedEntity(e, t);
413
413
  }
414
414
  }
@@ -422,7 +422,7 @@ class ms {
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) | Af) === KA.LOWER_X ? (this.state = MA.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = MA.NumericDecimal, this.stateNumericDecimal(e, t));
425
+ return t >= e.length ? -1 : (e.charCodeAt(t) | Af) === 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 ms {
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 === KA.SEMI)
490
+ if (e === GA.SEMI)
491
491
  this.consumed += 1;
492
492
  else if (this.decodeMode === Te.Strict)
493
493
  return 0;
494
- return this.emitCodePoint(Z0(this.result), this.consumed), this.errors && (e !== KA.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
494
+ return this.emitCodePoint(Z0(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.
@@ -513,7 +513,7 @@ class ms {
513
513
  (a === 0 || // And there should be no invalid characters.
514
514
  rf(i)) ? 0 : this.emitNotTerminatedNamedEntity();
515
515
  if (n = r[this.treeIndex], a = (n & nt.VALUE_LENGTH) >> 14, a !== 0) {
516
- if (i === KA.SEMI)
516
+ if (i === GA.SEMI)
517
517
  return this.emitNamedEntityData(this.treeIndex, a, this.consumed + this.excess);
518
518
  this.decodeMode !== Te.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
519
519
  }
@@ -553,15 +553,15 @@ class ms {
553
553
  end() {
554
554
  var e;
555
555
  switch (this.state) {
556
- case MA.NamedEntity:
556
+ case kA.NamedEntity:
557
557
  return this.result !== 0 && (this.decodeMode !== Te.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
558
- case MA.NumericDecimal:
558
+ case kA.NumericDecimal:
559
559
  return this.emitNumericEntity(0, 2);
560
- case MA.NumericHex:
560
+ case kA.NumericHex:
561
561
  return this.emitNumericEntity(0, 3);
562
- case MA.NumericStart:
562
+ case kA.NumericStart:
563
563
  return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
564
- case MA.EntityStart:
564
+ case kA.EntityStart:
565
565
  return 0;
566
566
  }
567
567
  }
@@ -859,20 +859,20 @@ function tc(A, e) {
859
859
  return ga(A, e);
860
860
  }
861
861
  function wf(A, e) {
862
- return GA(A) ? A.children.map((t) => tc(t, e)).join("") : "";
862
+ return VA(A) ? A.children.map((t) => tc(t, e)).join("") : "";
863
863
  }
864
864
  function Rn(A) {
865
865
  return Array.isArray(A) ? A.map(Rn).join("") : Z(A) ? A.name === "br" ? `
866
866
  ` : Rn(A.children) : ha(A) ? Rn(A.children) : Ne(A) ? A.data : "";
867
867
  }
868
868
  function er(A) {
869
- return Array.isArray(A) ? A.map(er).join("") : GA(A) && !da(A) ? er(A.children) : Ne(A) ? A.data : "";
869
+ return Array.isArray(A) ? A.map(er).join("") : VA(A) && !da(A) ? er(A.children) : Ne(A) ? A.data : "";
870
870
  }
871
871
  function Yn(A) {
872
- return Array.isArray(A) ? A.map(Yn).join("") : GA(A) && (A.type === cA.Tag || ha(A)) ? Yn(A.children) : Ne(A) ? A.data : "";
872
+ return Array.isArray(A) ? A.map(Yn).join("") : VA(A) && (A.type === cA.Tag || ha(A)) ? Yn(A.children) : Ne(A) ? A.data : "";
873
873
  }
874
874
  function Ba(A) {
875
- return GA(A) ? A.children : [];
875
+ return VA(A) ? A.children : [];
876
876
  }
877
877
  function rc(A) {
878
878
  return A.parent || null;
@@ -977,7 +977,7 @@ function bs(A, e, t, r) {
977
977
  const s = a[0][i[0]++];
978
978
  if (A(s) && (n.push(s), --r <= 0))
979
979
  return n;
980
- t && GA(s) && s.children.length > 0 && (i.unshift(0), a.unshift(s.children));
980
+ t && VA(s) && s.children.length > 0 && (i.unshift(0), a.unshift(s.children));
981
981
  }
982
982
  }
983
983
  function xf(A, e) {
@@ -1074,10 +1074,10 @@ function uc(A, e) {
1074
1074
  const t = [], r = [];
1075
1075
  if (A === e)
1076
1076
  return 0;
1077
- let n = GA(A) ? A : A.parent;
1077
+ let n = VA(A) ? A : A.parent;
1078
1078
  for (; n; )
1079
1079
  t.unshift(n), n = n.parent;
1080
- for (n = GA(e) ? e : e.parent; n; )
1080
+ for (n = VA(e) ? e : e.parent; n; )
1081
1081
  r.unshift(n), n = n.parent;
1082
1082
  const a = Math.min(t.length, r.length);
1083
1083
  let i = 0;
@@ -1105,7 +1105,7 @@ function Mf(A) {
1105
1105
  items: nr("entry", t).map((i) => {
1106
1106
  var s;
1107
1107
  const { children: o } = i, c = { media: oc(o) };
1108
- ce(c, "id", "id", o), ce(c, "title", "title", o);
1108
+ le(c, "id", "id", o), le(c, "title", "title", o);
1109
1109
  const l = (s = Wn("link", o)) === null || s === void 0 ? void 0 : s.attribs.href;
1110
1110
  l && (c.link = l);
1111
1111
  const f = at("summary", o) || at("content", o);
@@ -1114,11 +1114,11 @@ function Mf(A) {
1114
1114
  return h && (c.pubDate = new Date(h)), c;
1115
1115
  })
1116
1116
  };
1117
- ce(r, "id", "id", t), ce(r, "title", "title", t);
1117
+ le(r, "id", "id", t), le(r, "title", "title", t);
1118
1118
  const n = (e = Wn("link", t)) === null || e === void 0 ? void 0 : e.attribs.href;
1119
- n && (r.link = n), ce(r, "description", "subtitle", t);
1119
+ n && (r.link = n), le(r, "description", "subtitle", t);
1120
1120
  const a = at("updated", t);
1121
- return a && (r.updated = new Date(a)), ce(r, "author", "email", t, !0), r;
1121
+ return a && (r.updated = new Date(a)), le(r, "author", "email", t, !0), r;
1122
1122
  }
1123
1123
  function kf(A) {
1124
1124
  var e, t;
@@ -1127,14 +1127,14 @@ function kf(A) {
1127
1127
  id: "",
1128
1128
  items: nr("item", A.children).map((i) => {
1129
1129
  const { children: s } = i, o = { media: oc(s) };
1130
- ce(o, "id", "guid", s), ce(o, "title", "title", s), ce(o, "link", "link", s), ce(o, "description", "description", s);
1130
+ le(o, "id", "guid", s), le(o, "title", "title", s), le(o, "link", "link", s), le(o, "description", "description", s);
1131
1131
  const c = at("pubDate", s) || at("dc:date", s);
1132
1132
  return c && (o.pubDate = new Date(c)), o;
1133
1133
  })
1134
1134
  };
1135
- ce(n, "title", "title", r), ce(n, "link", "link", r), ce(n, "description", "description", r);
1135
+ le(n, "title", "title", r), le(n, "link", "link", r), le(n, "description", "description", r);
1136
1136
  const a = at("lastBuildDate", r);
1137
- return a && (n.updated = new Date(a)), ce(n, "author", "managingEditor", r, !0), n;
1137
+ return a && (n.updated = new Date(a)), le(n, "author", "managingEditor", r, !0), n;
1138
1138
  }
1139
1139
  const Pf = ["url", "type", "lang"], Kf = [
1140
1140
  "fileSize",
@@ -1165,7 +1165,7 @@ function Wn(A, e) {
1165
1165
  function at(A, e, t = !1) {
1166
1166
  return er(nr(A, e, t, 1)).trim();
1167
1167
  }
1168
- function ce(A, e, t, r, n = !1) {
1168
+ function le(A, e, t, r, n = !1) {
1169
1169
  const a = at(t, r, n);
1170
1170
  a && (A[e] = a);
1171
1171
  }
@@ -1200,7 +1200,7 @@ const Ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1200
1200
  getSiblings: nc,
1201
1201
  getText: Rn,
1202
1202
  hasAttrib: Tf,
1203
- hasChildren: GA,
1203
+ hasChildren: VA,
1204
1204
  innerText: Yn,
1205
1205
  isCDATA: ha,
1206
1206
  isComment: da,
@@ -2821,7 +2821,7 @@ const Ad = ys((A) => Cs(A)), ed = $r((A) => {
2821
2821
  return e;
2822
2822
  }, ir), ad = xs((A) => ws(A), ir), id = $r((A) => nc(A).filter((e) => Z(e) && e !== A), ar), sd = $r((A) => Ba(A).filter(Z), ir);
2823
2823
  function ud() {
2824
- const A = this.toArray().reduce((e, t) => GA(t) ? e.concat(t.children) : e, []);
2824
+ const A = this.toArray().reduce((e, t) => VA(t) ? e.concat(t.children) : e, []);
2825
2825
  return this._make(A);
2826
2826
  }
2827
2827
  function od(A) {
@@ -2990,7 +2990,7 @@ function Sc(A) {
2990
2990
  return function(...e) {
2991
2991
  const t = this.length - 1;
2992
2992
  return yA(this, (r, n) => {
2993
- if (!GA(r))
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, i = this._makeDomArray(a, n < t);
2996
2996
  A(i, r.children, r);
@@ -3030,7 +3030,7 @@ function Lc(A) {
3030
3030
  const t = this.length - 1, r = this.parents().last();
3031
3031
  for (let n = 0; n < this.length; n++) {
3032
3032
  const a = this[n], i = typeof e == "function" ? e.call(a, n, a) : typeof e == "string" && !Ui(e) ? r.find(e).clone() : e, [s] = this._makeDomArray(i, n < t);
3033
- if (!s || !GA(s))
3033
+ if (!s || !VA(s))
3034
3034
  continue;
3035
3035
  let o = s, c = 0;
3036
3036
  for (; c < o.children.length; ) {
@@ -3049,7 +3049,7 @@ const Sd = Lc((A, e, t) => {
3049
3049
  const n = r.children, a = n.indexOf(A);
3050
3050
  xt([A], e), gt(n, a, 0, t, r);
3051
3051
  }), Ld = Lc((A, e, t) => {
3052
- GA(A) && (xt(A.children, e), xt(t, A));
3052
+ VA(A) && (xt(A.children, e), xt(t, A));
3053
3053
  });
3054
3054
  function Hd(A) {
3055
3055
  return this.parent(A).not("body").each((e, t) => {
@@ -3075,7 +3075,7 @@ function Nd(A) {
3075
3075
  function Dd(...A) {
3076
3076
  const e = this.length - 1;
3077
3077
  return yA(this, (t, r) => {
3078
- if (!GA(t) || !t.parent)
3078
+ if (!VA(t) || !t.parent)
3079
3079
  return;
3080
3080
  const n = t.parent.children, a = n.indexOf(t);
3081
3081
  if (a < 0)
@@ -3099,7 +3099,7 @@ function Od(A) {
3099
3099
  function Rd(...A) {
3100
3100
  const e = this.length - 1;
3101
3101
  return yA(this, (t, r) => {
3102
- if (!GA(t) || !t.parent)
3102
+ if (!VA(t) || !t.parent)
3103
3103
  return;
3104
3104
  const n = t.parent.children, a = n.indexOf(t);
3105
3105
  if (a < 0)
@@ -3139,7 +3139,7 @@ function Pd(A) {
3139
3139
  }
3140
3140
  function Kd() {
3141
3141
  return yA(this, (A) => {
3142
- if (GA(A)) {
3142
+ if (VA(A)) {
3143
3143
  for (const e of A.children)
3144
3144
  e.next = e.prev = e.parent = null;
3145
3145
  A.children.length = 0;
@@ -3149,10 +3149,10 @@ function Kd() {
3149
3149
  function Gd(A) {
3150
3150
  if (A === void 0) {
3151
3151
  const e = this[0];
3152
- return !e || !GA(e) ? null : this._render(e.children);
3152
+ return !e || !VA(e) ? null : this._render(e.children);
3153
3153
  }
3154
3154
  return yA(this, (e) => {
3155
- if (!GA(e))
3155
+ if (!VA(e))
3156
3156
  return;
3157
3157
  for (const r of e.children)
3158
3158
  r.next = r.prev = r.parent = null;
@@ -3165,7 +3165,7 @@ function Vd() {
3165
3165
  }
3166
3166
  function Yd(A) {
3167
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
- if (!GA(e))
3168
+ if (!VA(e))
3169
3169
  return;
3170
3170
  for (const r of e.children)
3171
3171
  r.next = r.prev = r.parent = null;
@@ -3445,7 +3445,7 @@ var d;
3445
3445
  (function(A) {
3446
3446
  A[A.EOF = -1] = "EOF", A[A.NULL = 0] = "NULL", A[A.TABULATION = 9] = "TABULATION", A[A.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", A[A.LINE_FEED = 10] = "LINE_FEED", A[A.FORM_FEED = 12] = "FORM_FEED", A[A.SPACE = 32] = "SPACE", A[A.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", A[A.QUOTATION_MARK = 34] = "QUOTATION_MARK", A[A.AMPERSAND = 38] = "AMPERSAND", A[A.APOSTROPHE = 39] = "APOSTROPHE", A[A.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", A[A.SOLIDUS = 47] = "SOLIDUS", A[A.DIGIT_0 = 48] = "DIGIT_0", A[A.DIGIT_9 = 57] = "DIGIT_9", A[A.SEMICOLON = 59] = "SEMICOLON", A[A.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", A[A.EQUALS_SIGN = 61] = "EQUALS_SIGN", A[A.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", A[A.QUESTION_MARK = 63] = "QUESTION_MARK", A[A.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", A[A.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", A[A.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", A[A.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", A[A.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", A[A.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
3447
3447
  })(d || (d = {}));
3448
- const ue = {
3448
+ const oe = {
3449
3449
  DASH_DASH: "--",
3450
3450
  CDATA_START: "[CDATA[",
3451
3451
  DOCTYPE: "doctype",
@@ -3819,7 +3819,7 @@ var g;
3819
3819
  (function(A) {
3820
3820
  A[A.DATA = 0] = "DATA", A[A.RCDATA = 1] = "RCDATA", A[A.RAWTEXT = 2] = "RAWTEXT", A[A.SCRIPT_DATA = 3] = "SCRIPT_DATA", A[A.PLAINTEXT = 4] = "PLAINTEXT", A[A.TAG_OPEN = 5] = "TAG_OPEN", A[A.END_TAG_OPEN = 6] = "END_TAG_OPEN", A[A.TAG_NAME = 7] = "TAG_NAME", A[A.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", A[A.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", A[A.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", A[A.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", A[A.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", A[A.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", A[A.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", A[A.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", A[A.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", A[A.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", A[A.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", A[A.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", A[A.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", A[A.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", A[A.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", A[A.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", A[A.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", A[A.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", A[A.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", A[A.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", A[A.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", A[A.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", A[A.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", A[A.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", A[A.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", A[A.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", A[A.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", A[A.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", A[A.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", A[A.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", A[A.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", A[A.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", A[A.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", A[A.COMMENT_START = 42] = "COMMENT_START", A[A.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", A[A.COMMENT = 44] = "COMMENT", A[A.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", A[A.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", A[A.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", A[A.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", A[A.COMMENT_END = 50] = "COMMENT_END", A[A.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", A[A.DOCTYPE = 52] = "DOCTYPE", A[A.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", A[A.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", A[A.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", A[A.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", A[A.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", A[A.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", A[A.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", A[A.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", A[A.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", A[A.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", A[A.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", A[A.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", A[A.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", A[A.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", A[A.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", A[A.CDATA_SECTION = 68] = "CDATA_SECTION", A[A.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", A[A.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", A[A.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", A[A.AMBIGUOUS_AMPERSAND = 72] = "AMBIGUOUS_AMPERSAND";
3821
3821
  })(g || (g = {}));
3822
- const he = {
3822
+ const de = {
3823
3823
  DATA: g.DATA,
3824
3824
  RCDATA: g.RCDATA,
3825
3825
  RAWTEXT: g.RAWTEXT,
@@ -4731,9 +4731,9 @@ let mg = class {
4731
4731
  // Script data double escape start state
4732
4732
  //------------------------------------------------------------------
4733
4733
  _stateScriptDataDoubleEscapeStart(e) {
4734
- if (this.preprocessor.startsWith(ue.SCRIPT, !1) && hu(this.preprocessor.peek(ue.SCRIPT.length))) {
4734
+ if (this.preprocessor.startsWith(oe.SCRIPT, !1) && hu(this.preprocessor.peek(oe.SCRIPT.length))) {
4735
4735
  this._emitCodePoint(e);
4736
- for (let t = 0; t < ue.SCRIPT.length; t++)
4736
+ for (let t = 0; t < oe.SCRIPT.length; t++)
4737
4737
  this._emitCodePoint(this._consume());
4738
4738
  this.state = g.SCRIPT_DATA_DOUBLE_ESCAPED;
4739
4739
  } else this._ensureHibernation() || (this.state = g.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e));
@@ -4822,9 +4822,9 @@ let mg = class {
4822
4822
  // Script data double escape end state
4823
4823
  //------------------------------------------------------------------
4824
4824
  _stateScriptDataDoubleEscapeEnd(e) {
4825
- if (this.preprocessor.startsWith(ue.SCRIPT, !1) && hu(this.preprocessor.peek(ue.SCRIPT.length))) {
4825
+ if (this.preprocessor.startsWith(oe.SCRIPT, !1) && hu(this.preprocessor.peek(oe.SCRIPT.length))) {
4826
4826
  this._emitCodePoint(e);
4827
- for (let t = 0; t < ue.SCRIPT.length; t++)
4827
+ for (let t = 0; t < oe.SCRIPT.length; t++)
4828
4828
  this._emitCodePoint(this._consume());
4829
4829
  this.state = g.SCRIPT_DATA_ESCAPED;
4830
4830
  } else this._ensureHibernation() || (this.state = g.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e));
@@ -5093,7 +5093,7 @@ let mg = class {
5093
5093
  // Markup declaration open state
5094
5094
  //------------------------------------------------------------------
5095
5095
  _stateMarkupDeclarationOpen(e) {
5096
- this._consumeSequenceIfMatch(ue.DASH_DASH, !0) ? (this._createCommentToken(ue.DASH_DASH.length + 1), this.state = g.COMMENT_START) : this._consumeSequenceIfMatch(ue.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(ue.DOCTYPE.length + 1), this.state = g.DOCTYPE) : this._consumeSequenceIfMatch(ue.CDATA_START, !0) ? this.inForeignNode ? this.state = g.CDATA_SECTION : (this._err(U.cdataInHtmlContent), this._createCommentToken(ue.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = g.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(U.incorrectlyOpenedComment), this._createCommentToken(2), this.state = g.BOGUS_COMMENT, this._stateBogusComment(e));
5096
+ this._consumeSequenceIfMatch(oe.DASH_DASH, !0) ? (this._createCommentToken(oe.DASH_DASH.length + 1), this.state = g.COMMENT_START) : this._consumeSequenceIfMatch(oe.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(oe.DOCTYPE.length + 1), this.state = g.DOCTYPE) : this._consumeSequenceIfMatch(oe.CDATA_START, !0) ? this.inForeignNode ? this.state = g.CDATA_SECTION : (this._err(U.cdataInHtmlContent), this._createCommentToken(oe.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = g.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(U.incorrectlyOpenedComment), this._createCommentToken(2), this.state = g.BOGUS_COMMENT, this._stateBogusComment(e));
5097
5097
  }
5098
5098
  // Comment start state
5099
5099
  //------------------------------------------------------------------
@@ -5358,7 +5358,7 @@ let mg = class {
5358
5358
  break;
5359
5359
  }
5360
5360
  default:
5361
- this._consumeSequenceIfMatch(ue.PUBLIC, !1) ? this.state = g.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(ue.SYSTEM, !1) ? this.state = g.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(U.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = g.BOGUS_DOCTYPE, this._stateBogusDoctype(e));
5361
+ this._consumeSequenceIfMatch(oe.PUBLIC, !1) ? this.state = g.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(oe.SYSTEM, !1) ? this.state = g.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(U.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = g.BOGUS_DOCTYPE, this._stateBogusDoctype(e));
5362
5362
  }
5363
5363
  }
5364
5364
  // After DOCTYPE public keyword state
@@ -6594,7 +6594,7 @@ let Jc = class {
6594
6594
  this._insertElement(e, v.HTML), this.tokenizer.state = t, this.originalInsertionMode = this.insertionMode, this.insertionMode = B.TEXT;
6595
6595
  }
6596
6596
  switchToPlaintextParsing() {
6597
- this.insertionMode = B.TEXT, this.originalInsertionMode = B.IN_BODY, this.tokenizer.state = he.PLAINTEXT;
6597
+ this.insertionMode = B.TEXT, this.originalInsertionMode = B.IN_BODY, this.tokenizer.state = de.PLAINTEXT;
6598
6598
  }
6599
6599
  //Fragment parsing
6600
6600
  /** @protected */
@@ -6617,7 +6617,7 @@ let Jc = class {
6617
6617
  switch (this.fragmentContextID) {
6618
6618
  case u.TITLE:
6619
6619
  case u.TEXTAREA: {
6620
- this.tokenizer.state = he.RCDATA;
6620
+ this.tokenizer.state = de.RCDATA;
6621
6621
  break;
6622
6622
  }
6623
6623
  case u.STYLE:
@@ -6626,15 +6626,15 @@ let Jc = class {
6626
6626
  case u.NOEMBED:
6627
6627
  case u.NOFRAMES:
6628
6628
  case u.NOSCRIPT: {
6629
- this.tokenizer.state = he.RAWTEXT;
6629
+ this.tokenizer.state = de.RAWTEXT;
6630
6630
  break;
6631
6631
  }
6632
6632
  case u.SCRIPT: {
6633
- this.tokenizer.state = he.SCRIPT_DATA;
6633
+ this.tokenizer.state = de.SCRIPT_DATA;
6634
6634
  break;
6635
6635
  }
6636
6636
  case u.PLAINTEXT: {
6637
- this.tokenizer.state = he.PLAINTEXT;
6637
+ this.tokenizer.state = de.PLAINTEXT;
6638
6638
  break;
6639
6639
  }
6640
6640
  }
@@ -7159,7 +7159,7 @@ let Jc = class {
7159
7159
  break;
7160
7160
  }
7161
7161
  case B.IN_BODY: {
7162
- re(this, e);
7162
+ ne(this, e);
7163
7163
  break;
7164
7164
  }
7165
7165
  case B.IN_TABLE: {
@@ -7526,7 +7526,7 @@ function yr(A, e) {
7526
7526
  function sB(A, e) {
7527
7527
  switch (e.tagID) {
7528
7528
  case u.HTML: {
7529
- re(A, e);
7529
+ ne(A, e);
7530
7530
  break;
7531
7531
  }
7532
7532
  case u.HEAD: {
@@ -7547,7 +7547,7 @@ function xr(A, e) {
7547
7547
  function xe(A, e) {
7548
7548
  switch (e.tagID) {
7549
7549
  case u.HTML: {
7550
- re(A, e);
7550
+ ne(A, e);
7551
7551
  break;
7552
7552
  }
7553
7553
  case u.BASE:
@@ -7559,20 +7559,20 @@ function xe(A, e) {
7559
7559
  break;
7560
7560
  }
7561
7561
  case u.TITLE: {
7562
- A._switchToTextParsing(e, he.RCDATA);
7562
+ A._switchToTextParsing(e, de.RCDATA);
7563
7563
  break;
7564
7564
  }
7565
7565
  case u.NOSCRIPT: {
7566
- A.options.scriptingEnabled ? A._switchToTextParsing(e, he.RAWTEXT) : (A._insertElement(e, v.HTML), A.insertionMode = B.IN_HEAD_NO_SCRIPT);
7566
+ A.options.scriptingEnabled ? A._switchToTextParsing(e, de.RAWTEXT) : (A._insertElement(e, v.HTML), A.insertionMode = B.IN_HEAD_NO_SCRIPT);
7567
7567
  break;
7568
7568
  }
7569
7569
  case u.NOFRAMES:
7570
7570
  case u.STYLE: {
7571
- A._switchToTextParsing(e, he.RAWTEXT);
7571
+ A._switchToTextParsing(e, de.RAWTEXT);
7572
7572
  break;
7573
7573
  }
7574
7574
  case u.SCRIPT: {
7575
- A._switchToTextParsing(e, he.SCRIPT_DATA);
7575
+ A._switchToTextParsing(e, de.SCRIPT_DATA);
7576
7576
  break;
7577
7577
  }
7578
7578
  case u.TEMPLATE: {
@@ -7616,7 +7616,7 @@ function _r(A, e) {
7616
7616
  function cB(A, e) {
7617
7617
  switch (e.tagID) {
7618
7618
  case u.HTML: {
7619
- re(A, e);
7619
+ ne(A, e);
7620
7620
  break;
7621
7621
  }
7622
7622
  case u.BASEFONT:
@@ -7658,7 +7658,7 @@ function Sr(A, e) {
7658
7658
  function fB(A, e) {
7659
7659
  switch (e.tagID) {
7660
7660
  case u.HTML: {
7661
- re(A, e);
7661
+ ne(A, e);
7662
7662
  break;
7663
7663
  }
7664
7664
  case u.BODY: {
@@ -7724,7 +7724,7 @@ function wa(A, e) {
7724
7724
  break;
7725
7725
  }
7726
7726
  case sA.START_TAG: {
7727
- re(A, e);
7727
+ ne(A, e);
7728
7728
  break;
7729
7729
  }
7730
7730
  case sA.END_TAG: {
@@ -7782,7 +7782,7 @@ function wB(A, e) {
7782
7782
  A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML);
7783
7783
  }
7784
7784
  function bB(A, e) {
7785
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), A.tokenizer.state = he.PLAINTEXT;
7785
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._insertElement(e, v.HTML), A.tokenizer.state = de.PLAINTEXT;
7786
7786
  }
7787
7787
  function TB(A, e) {
7788
7788
  A.openElements.hasInScope(u.BUTTON) && (A.openElements.generateImpliedEndTags(), A.openElements.popUntilTagNamePopped(u.BUTTON)), A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.framesetOk = !1;
@@ -7823,16 +7823,16 @@ function SB(A, e) {
7823
7823
  e.tagName = C.IMG, e.tagID = u.IMG, zc(A, e);
7824
7824
  }
7825
7825
  function LB(A, e) {
7826
- A._insertElement(e, v.HTML), A.skipNextNewLine = !0, A.tokenizer.state = he.RCDATA, A.originalInsertionMode = A.insertionMode, A.framesetOk = !1, A.insertionMode = B.TEXT;
7826
+ A._insertElement(e, v.HTML), A.skipNextNewLine = !0, A.tokenizer.state = de.RCDATA, A.originalInsertionMode = A.insertionMode, A.framesetOk = !1, A.insertionMode = B.TEXT;
7827
7827
  }
7828
7828
  function HB(A, e) {
7829
- A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._reconstructActiveFormattingElements(), A.framesetOk = !1, A._switchToTextParsing(e, he.RAWTEXT);
7829
+ A.openElements.hasInButtonScope(u.P) && A._closePElement(), A._reconstructActiveFormattingElements(), A.framesetOk = !1, A._switchToTextParsing(e, de.RAWTEXT);
7830
7830
  }
7831
7831
  function NB(A, e) {
7832
- A.framesetOk = !1, A._switchToTextParsing(e, he.RAWTEXT);
7832
+ A.framesetOk = !1, A._switchToTextParsing(e, de.RAWTEXT);
7833
7833
  }
7834
7834
  function wu(A, e) {
7835
- A._switchToTextParsing(e, he.RAWTEXT);
7835
+ A._switchToTextParsing(e, de.RAWTEXT);
7836
7836
  }
7837
7837
  function DB(A, e) {
7838
7838
  A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML), A.framesetOk = !1, A.insertionMode = A.insertionMode === B.IN_TABLE || A.insertionMode === B.IN_CAPTION || A.insertionMode === B.IN_TABLE_BODY || A.insertionMode === B.IN_ROW || A.insertionMode === B.IN_CELL ? B.IN_SELECT_IN_TABLE : B.IN_SELECT;
@@ -7855,7 +7855,7 @@ function PB(A, e) {
7855
7855
  function bu(A, e) {
7856
7856
  A._reconstructActiveFormattingElements(), A._insertElement(e, v.HTML);
7857
7857
  }
7858
- function re(A, e) {
7858
+ function ne(A, e) {
7859
7859
  switch (e.tagID) {
7860
7860
  case u.I:
7861
7861
  case u.S:
@@ -8361,7 +8361,7 @@ function cr(A, e) {
8361
8361
  const rl = /* @__PURE__ */ new Set([u.CAPTION, u.COL, u.COLGROUP, u.TBODY, u.TD, u.TFOOT, u.TH, u.THEAD, u.TR]);
8362
8362
  function up(A, e) {
8363
8363
  const t = e.tagID;
8364
- rl.has(t) ? A.openElements.hasInTableScope(u.CAPTION) && (A.openElements.generateImpliedEndTags(), A.openElements.popUntilTagNamePopped(u.CAPTION), A.activeFormattingElements.clearToLastMarker(), A.insertionMode = B.IN_TABLE, tr(A, e)) : re(A, e);
8364
+ rl.has(t) ? A.openElements.hasInTableScope(u.CAPTION) && (A.openElements.generateImpliedEndTags(), A.openElements.popUntilTagNamePopped(u.CAPTION), A.activeFormattingElements.clearToLastMarker(), A.insertionMode = B.IN_TABLE, tr(A, e)) : ne(A, e);
8365
8365
  }
8366
8366
  function op(A, e) {
8367
8367
  const t = e.tagID;
@@ -8389,7 +8389,7 @@ function op(A, e) {
8389
8389
  function Ns(A, e) {
8390
8390
  switch (e.tagID) {
8391
8391
  case u.HTML: {
8392
- re(A, e);
8392
+ ne(A, e);
8393
8393
  break;
8394
8394
  }
8395
8395
  case u.COL: {
@@ -8524,7 +8524,7 @@ function nl(A, e) {
8524
8524
  }
8525
8525
  function lp(A, e) {
8526
8526
  const t = e.tagID;
8527
- rl.has(t) ? (A.openElements.hasInTableScope(u.TD) || A.openElements.hasInTableScope(u.TH)) && (A._closeTableCell(), Ua(A, e)) : re(A, e);
8527
+ rl.has(t) ? (A.openElements.hasInTableScope(u.TD) || A.openElements.hasInTableScope(u.TH)) && (A._closeTableCell(), Ua(A, e)) : ne(A, e);
8528
8528
  }
8529
8529
  function fp(A, e) {
8530
8530
  const t = e.tagID;
@@ -8555,7 +8555,7 @@ function fp(A, e) {
8555
8555
  function al(A, e) {
8556
8556
  switch (e.tagID) {
8557
8557
  case u.HTML: {
8558
- re(A, e);
8558
+ ne(A, e);
8559
8559
  break;
8560
8560
  }
8561
8561
  case u.OPTION: {
@@ -8649,7 +8649,7 @@ function gp(A, e) {
8649
8649
  break;
8650
8650
  }
8651
8651
  default:
8652
- A.tmplInsertionModeStack[0] = B.IN_BODY, A.insertionMode = B.IN_BODY, re(A, e);
8652
+ A.tmplInsertionModeStack[0] = B.IN_BODY, A.insertionMode = B.IN_BODY, ne(A, e);
8653
8653
  }
8654
8654
  }
8655
8655
  function Bp(A, e) {
@@ -8659,7 +8659,7 @@ function sl(A, e) {
8659
8659
  A.openElements.tmplCount > 0 ? (A.openElements.popUntilTagNamePopped(u.TEMPLATE), A.activeFormattingElements.clearToLastMarker(), A.tmplInsertionModeStack.shift(), A._resetInsertionMode(), A.onEof(e)) : Hs(A, e);
8660
8660
  }
8661
8661
  function pp(A, e) {
8662
- e.tagID === u.HTML ? re(A, e) : ea(A, e);
8662
+ e.tagID === u.HTML ? ne(A, e) : ea(A, e);
8663
8663
  }
8664
8664
  function ul(A, e) {
8665
8665
  var t;
@@ -8678,7 +8678,7 @@ function ea(A, e) {
8678
8678
  function Ep(A, e) {
8679
8679
  switch (e.tagID) {
8680
8680
  case u.HTML: {
8681
- re(A, e);
8681
+ ne(A, e);
8682
8682
  break;
8683
8683
  }
8684
8684
  case u.FRAMESET: {
@@ -8701,7 +8701,7 @@ function mp(A, e) {
8701
8701
  function Cp(A, e) {
8702
8702
  switch (e.tagID) {
8703
8703
  case u.HTML: {
8704
- re(A, e);
8704
+ ne(A, e);
8705
8705
  break;
8706
8706
  }
8707
8707
  case u.NOFRAMES: {
@@ -8714,7 +8714,7 @@ function wp(A, e) {
8714
8714
  e.tagID === u.HTML && (A.insertionMode = B.AFTER_AFTER_FRAMESET);
8715
8715
  }
8716
8716
  function bp(A, e) {
8717
- e.tagID === u.HTML ? re(A, e) : Mn(A, e);
8717
+ e.tagID === u.HTML ? ne(A, e) : Mn(A, e);
8718
8718
  }
8719
8719
  function Mn(A, e) {
8720
8720
  A.insertionMode = B.IN_BODY, wa(A, e);
@@ -8722,7 +8722,7 @@ function Mn(A, e) {
8722
8722
  function Tp(A, e) {
8723
8723
  switch (e.tagID) {
8724
8724
  case u.HTML: {
8725
- re(A, e);
8725
+ ne(A, e);
8726
8726
  break;
8727
8727
  }
8728
8728
  case u.NOFRAMES: {
@@ -9031,7 +9031,7 @@ var He;
9031
9031
  (function(A) {
9032
9032
  A[A.NoValue = 0] = "NoValue", A[A.Unquoted = 1] = "Unquoted", A[A.Single = 2] = "Single", A[A.Double = 3] = "Double";
9033
9033
  })(He || (He = {}));
9034
- const YA = {
9034
+ const XA = {
9035
9035
  Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
9036
9036
  // CDATA[
9037
9037
  CdataEnd: new Uint8Array([93, 93, 62]),
@@ -9110,10 +9110,10 @@ let Yp = class {
9110
9110
  }
9111
9111
  this.sequenceIndex = 0;
9112
9112
  }
9113
- (e | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === YA.TitleEnd ? this.decodeEntities && e === q.Amp && this.startEntity() : this.fastForwardTo(q.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(e === q.Lt);
9113
+ (e | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === XA.TitleEnd ? this.decodeEntities && e === q.Amp && this.startEntity() : this.fastForwardTo(q.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(e === q.Lt);
9114
9114
  }
9115
9115
  stateCDATASequence(e) {
9116
- e === YA.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === YA.Cdata.length && (this.state = S.InCommentLike, this.currentSequence = YA.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = S.InDeclaration, this.stateInDeclaration(e));
9116
+ e === XA.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === XA.Cdata.length && (this.state = S.InCommentLike, this.currentSequence = XA.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = S.InDeclaration, this.stateInDeclaration(e));
9117
9117
  }
9118
9118
  /**
9119
9119
  * When we wait for one specific character, we can speed things up
@@ -9136,7 +9136,7 @@ let Yp = class {
9136
9136
  * - All characters but the start character of the sequence can be skipped.
9137
9137
  */
9138
9138
  stateInCommentLike(e) {
9139
- e === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === YA.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = S.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : e !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
9139
+ e === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === XA.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = S.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : e !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
9140
9140
  }
9141
9141
  /**
9142
9142
  * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
@@ -9157,7 +9157,7 @@ let Yp = class {
9157
9157
  this.state = S.InProcessingInstruction, this.sectionStart = this.index + 1;
9158
9158
  else if (this.isTagStartChar(e)) {
9159
9159
  const t = e | 32;
9160
- this.sectionStart = this.index, this.xmlMode ? this.state = S.InTagName : t === YA.ScriptEnd[2] ? this.state = S.BeforeSpecialS : t === YA.TitleEnd[2] ? this.state = S.BeforeSpecialT : this.state = S.InTagName;
9160
+ this.sectionStart = this.index, this.xmlMode ? this.state = S.InTagName : t === XA.ScriptEnd[2] ? this.state = S.BeforeSpecialS : t === XA.TitleEnd[2] ? this.state = S.BeforeSpecialT : this.state = S.InTagName;
9161
9161
  } else e === q.Slash ? this.state = S.BeforeClosingTagName : (this.state = S.Text, this.stateText(e));
9162
9162
  }
9163
9163
  stateInTagName(e) {
@@ -9209,18 +9209,18 @@ let Yp = class {
9209
9209
  (e === q.Gt || this.fastForwardTo(q.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = S.Text, this.sectionStart = this.index + 1);
9210
9210
  }
9211
9211
  stateBeforeComment(e) {
9212
- e === q.Dash ? (this.state = S.InCommentLike, this.currentSequence = YA.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = S.InDeclaration;
9212
+ e === q.Dash ? (this.state = S.InCommentLike, this.currentSequence = XA.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = S.InDeclaration;
9213
9213
  }
9214
9214
  stateInSpecialComment(e) {
9215
9215
  (e === q.Gt || this.fastForwardTo(q.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = S.Text, this.sectionStart = this.index + 1);
9216
9216
  }
9217
9217
  stateBeforeSpecialS(e) {
9218
9218
  const t = e | 32;
9219
- t === YA.ScriptEnd[3] ? this.startSpecial(YA.ScriptEnd, 4) : t === YA.StyleEnd[3] ? this.startSpecial(YA.StyleEnd, 4) : (this.state = S.InTagName, this.stateInTagName(e));
9219
+ t === XA.ScriptEnd[3] ? this.startSpecial(XA.ScriptEnd, 4) : t === XA.StyleEnd[3] ? this.startSpecial(XA.StyleEnd, 4) : (this.state = S.InTagName, this.stateInTagName(e));
9220
9220
  }
9221
9221
  stateBeforeSpecialT(e) {
9222
9222
  const t = e | 32;
9223
- t === YA.TitleEnd[3] ? this.startSpecial(YA.TitleEnd, 4) : t === YA.TextareaEnd[3] ? this.startSpecial(YA.TextareaEnd, 4) : (this.state = S.InTagName, this.stateInTagName(e));
9223
+ t === XA.TitleEnd[3] ? this.startSpecial(XA.TitleEnd, 4) : t === XA.TextareaEnd[3] ? this.startSpecial(XA.TextareaEnd, 4) : (this.state = S.InTagName, this.stateInTagName(e));
9224
9224
  }
9225
9225
  startEntity() {
9226
9226
  this.baseState = this.state, this.state = S.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? Te.Strict : this.baseState === S.Text || this.baseState === S.InSpecialTag ? Te.Legacy : Te.Attribute);
@@ -9362,7 +9362,7 @@ let Yp = class {
9362
9362
  /** Handle any trailing data. */
9363
9363
  handleTrailingData() {
9364
9364
  const e = this.buffer.length + this.offset;
9365
- this.sectionStart >= e || (this.state === S.InCommentLike ? this.currentSequence === YA.CdataEnd ? this.cbs.oncdata(this.sectionStart, e, 0) : this.cbs.oncomment(this.sectionStart, e, 0) : this.state === S.InTagName || this.state === S.BeforeAttributeName || this.state === S.BeforeAttributeValue || this.state === S.AfterAttributeName || this.state === S.InAttributeName || this.state === S.InAttributeValueSq || this.state === S.InAttributeValueDq || this.state === S.InAttributeValueNq || this.state === S.InClosingTagName || this.cbs.ontext(this.sectionStart, e));
9365
+ this.sectionStart >= e || (this.state === S.InCommentLike ? this.currentSequence === XA.CdataEnd ? this.cbs.oncdata(this.sectionStart, e, 0) : this.cbs.oncomment(this.sectionStart, e, 0) : this.state === S.InTagName || this.state === S.BeforeAttributeName || this.state === S.BeforeAttributeValue || this.state === S.AfterAttributeName || this.state === S.InAttributeName || this.state === S.InAttributeValueSq || this.state === S.InAttributeValueDq || this.state === S.InAttributeValueNq || this.state === S.InClosingTagName || this.cbs.ontext(this.sectionStart, e));
9366
9366
  }
9367
9367
  emitCodePoint(e, t) {
9368
9368
  this.baseState !== S.Text && this.baseState !== S.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.onattribentity(e)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.ontextentity(e, this.sectionStart));
@@ -9688,10 +9688,10 @@ function jp(A, e) {
9688
9688
  return new qp(t, e).end(A), t.root;
9689
9689
  }
9690
9690
  const zp = Fd((A, e, t, r) => e._useHtmlParser2 ? jp(A, e) : Pp(A, e, t, r)), yu = ag(zp, (A, e) => e._useHtmlParser2 ? ga(A, e) : Gp(A));
9691
- var X = /* @__PURE__ */ ((A) => (A[A.None = 0] = "None", A[A.Text = 1] = "Text", A[A.Image = 2] = "Image", A[A.Video = 3] = "Video", A[A.Icon = 4] = "Icon", A[A.Link = 5] = "Link", A[A.Button = 6] = "Button", A[A.Block = 10] = "Block", A))(X || {}), ae;
9691
+ var X = /* @__PURE__ */ ((A) => (A[A.None = 0] = "None", A[A.Text = 1] = "Text", A[A.Image = 2] = "Image", A[A.Video = 3] = "Video", A[A.Icon = 4] = "Icon", A[A.Link = 5] = "Link", A[A.Button = 6] = "Button", A[A.Block = 10] = "Block", A))(X || {}), ie;
9692
9692
  ((A) => {
9693
9693
  A.THEME_TEXT_COLOR_CLASS = "gp-designer-theme-text", A.THEME_BUTTON_COLOR_CLASS = "gp-designer-theme-button", A.THEME_ICON_COLOR_CLASS = "gp-designer-theme-icon", A.THEME_COLOR = "#3574e6", A.IMAGE_PREVIEW_CLASS = "gp-designer-image-preview";
9694
- })(ae || (ae = {}));
9694
+ })(ie || (ie = {}));
9695
9695
  const $p = Re({
9696
9696
  name: "GpMessage",
9697
9697
  props: {
@@ -9989,20 +9989,20 @@ const cE = ["onClick"], lE = {
9989
9989
  }
9990
9990
  if (I.children[0].rule.mobileFlexColumn !== -1) {
9991
9991
  const $ = I.children[0].rule.mobileFlexColumn;
9992
- ($ >= 1 || !$) && (_ += " mobile:flex mobile:justify-normal mobile:flex-wrap", $ || (_ += " gp-designer-m-swiper swiper-wrapper "));
9992
+ $ >= 1 ? _ += " mobile:flex mobile:justify-normal mobile:flex-wrap" : $ || (_ += " mobile:flex mobile:justify-normal mobile:flex-nowrap gp-designer-m-swiper swiper-wrapper ");
9993
9993
  }
9994
9994
  }
9995
9995
  if (I.type === X.Block) {
9996
9996
  const $ = I.rule.flexColumn, bA = I.rule.mobileFlexColumn;
9997
9997
  (bA >= 1 || $ >= 1) && (_ += " box-border "), bA > 1 && bA <= 12 ? _ += ` mobile:basis-1/${bA} ` : bA == 1 ? _ += " mobile:basis-full " : bA || (_ += " gp-designer-m-swiper-slide swiper-slide "), $ > 1 && $ <= 12 ? _ += ` pc:basis-1/${$} ` : $ == 1 && (_ += " pc:basis-full ");
9998
9998
  }
9999
- if ((I.type == X.Button || I.type == X.Link) && I.rule.openMeiqia && (_ += " gp-designer-meiqia "), I.rule.isThemeColor && t.element.type === X.Text ? _ += " " + ae.THEME_TEXT_COLOR_CLASS + " " : I.rule.isThemeColor && t.element.type === X.Button ? _ += " " + ae.THEME_BUTTON_COLOR_CLASS + " " : I.rule.isThemeColor && t.element.type === X.Icon && (_ += " " + ae.THEME_ICON_COLOR_CLASS + " "), I.attrs.class) {
9999
+ if ((I.type == X.Button || I.type == X.Link) && I.rule.openMeiqia && (_ += " gp-designer-meiqia "), I.rule.isThemeColor && t.element.type === X.Text ? _ += " " + ie.THEME_TEXT_COLOR_CLASS + " " : I.rule.isThemeColor && t.element.type === X.Button ? _ += " " + ie.THEME_BUTTON_COLOR_CLASS + " " : I.rule.isThemeColor && t.element.type === X.Icon && (_ += " " + ie.THEME_ICON_COLOR_CLASS + " "), I.attrs.class) {
10000
10000
  var wA = I.attrs.class.split(" ").filter(($) => $);
10001
10001
  wA.length && (_ = _.split(" ").filter(($) => !wA.includes($)).join(" "));
10002
10002
  }
10003
- return I.type === X.Image && I.rule.preview && (_ += " " + ae.IMAGE_PREVIEW_CLASS + " "), _;
10003
+ return I.type === X.Image && I.rule.preview && (_ += " " + ie.IMAGE_PREVIEW_CLASS + " "), _;
10004
10004
  };
10005
- ee(
10005
+ te(
10006
10006
  () => t.r,
10007
10007
  () => {
10008
10008
  r("contentUpdated", D());
@@ -10033,23 +10033,25 @@ const cE = ["onClick"], lE = {
10033
10033
  const $ = wA;
10034
10034
  if ($.tag === "br")
10035
10035
  return "";
10036
- const bA = $.rule.isThemeColor && $.type == X.Text ? ae.THEME_TEXT_COLOR_CLASS : $.rule.isThemeColor && $.type == X.Button ? ae.THEME_BUTTON_COLOR_CLASS : $.rule.isThemeColor && $.type == X.Icon ? ae.THEME_ICON_COLOR_CLASS : "";
10036
+ const bA = $.rule.isThemeColor && $.type == X.Text ? ie.THEME_TEXT_COLOR_CLASS : $.rule.isThemeColor && $.type == X.Button ? ie.THEME_BUTTON_COLOR_CLASS : $.rule.isThemeColor && $.type == X.Icon ? ie.THEME_ICON_COLOR_CLASS : "";
10037
10037
  bA ? $.attrs.class && !$.attrs.class.includes(bA) ? $.attrs.class = $.attrs.class ? $.attrs.class + " " + bA : bA : $.attrs.class || ($.attrs.class = bA) : $.attrs.class = (un = $.attrs.class) == null ? void 0 : un.replace(
10038
10038
  new RegExp(
10039
- `${ae.THEME_TEXT_COLOR_CLASS}|${ae.THEME_BUTTON_COLOR_CLASS}|${ae.THEME_ICON_COLOR_CLASS}`,
10039
+ `${ie.THEME_TEXT_COLOR_CLASS}|${ie.THEME_BUTTON_COLOR_CLASS}|${ie.THEME_ICON_COLOR_CLASS}`,
10040
10040
  "g"
10041
10041
  ),
10042
10042
  ""
10043
10043
  );
10044
- const de = {
10044
+ const RA = {
10045
10045
  class: $.attrs.class || ""
10046
- }, pt = h($);
10047
- pt && (de.class += " " + pt), $.type === X.Image && ($.rule.preview ? de.class.includes(ae.IMAGE_PREVIEW_CLASS) || (de.class += " " + ae.IMAGE_PREVIEW_CLASS + " ") : de.class = de.class.replace(
10048
- ae.IMAGE_PREVIEW_CLASS,
10046
+ };
10047
+ RA.class && (RA.class = RA.class.replace(/pc:\S+/g, "").replace(/mobile:\S+/g, ""), RA.class = RA.class.replace(/gp-designer-m-swiper/g, "").replace(/gp-designer-m-swiper-slide/g, "").replace(/swiper-wrapper/g, "").replace(/swiper-slide/g, "").replace(/gp-designer-meiqia/g, ""));
10048
+ const pt = h($);
10049
+ pt && (RA.class += " " + pt), $.type === X.Image && ($.rule.preview ? RA.class.includes(ie.IMAGE_PREVIEW_CLASS) || (RA.class += " " + ie.IMAGE_PREVIEW_CLASS + " ") : RA.class = RA.class.replace(
10050
+ ie.IMAGE_PREVIEW_CLASS,
10049
10051
  ""
10050
10052
  ));
10051
10053
  let Ht = Object.entries(wA.attrs || {}).filter(([Q, F]) => Q !== "class").map(([Q, F]) => `${Q}="${F}"`).join(" ");
10052
- const Nt = Object.entries(de || {}).map(([Q, F]) => `${Q}="${F.trim()}"`).join(" ");
10054
+ const Nt = Object.entries(RA || {}).map(([Q, F]) => `${Q}="${F.trim()}"`).join(" ");
10053
10055
  Ht += Nt;
10054
10056
  const nn = `<${wA.tag}${Ht ? " " + Ht : ""}>`, an = `</${wA.tag}>`, sn = (wA.children || []).map((Q) => I(Q)).join("");
10055
10057
  let je = wA.editText || wA.text || "";
@@ -10059,10 +10061,10 @@ const cE = ["onClick"], lE = {
10059
10061
  return I(t.element);
10060
10062
  }
10061
10063
  function R(I) {
10062
- var bA, de;
10064
+ var bA, RA;
10063
10065
  I.preventDefault(), I.stopPropagation();
10064
10066
  let _ = ((bA = I.clipboardData) == null ? void 0 : bA.getData("text/plain")) || "";
10065
- (de = t.element.rule) != null && de.allowWrap ? (_ = _ == null ? void 0 : _.replace(/\n/g, "<br>"), document.execCommand("insertHTML", !1, _)) : (_ = _ == null ? void 0 : _.replace(/\n/g, " "), document.execCommand("insertText", !1, _));
10067
+ (RA = t.element.rule) != null && RA.allowWrap ? (_ = _ == null ? void 0 : _.replace(/\n/g, "<br>"), document.execCommand("insertHTML", !1, _)) : (_ = _ == null ? void 0 : _.replace(/\n/g, " "), document.execCommand("insertText", !1, _));
10066
10068
  const wA = I.target, $ = wA.innerText || wA.textContent || "";
10067
10069
  H($);
10068
10070
  }
@@ -10116,38 +10118,38 @@ const cE = ["onClick"], lE = {
10116
10118
  SA.value.openModal(I);
10117
10119
  }
10118
10120
  function mA(I) {
10119
- qA.value.openModal(I);
10121
+ jA.value.openModal(I);
10120
10122
  }
10121
10123
  function vA(I, _) {
10122
10124
  r("addIcon", I, _), r("contentUpdated", D());
10123
10125
  }
10124
- function JA(I) {
10126
+ function qA(I) {
10125
10127
  r("updateElementRule", I);
10126
10128
  }
10127
10129
  const SA = j(t.icon);
10128
- ee(
10130
+ te(
10129
10131
  () => t.icon,
10130
10132
  (I) => {
10131
10133
  SA.value = I;
10132
10134
  },
10133
10135
  { immediate: !0 }
10134
10136
  );
10135
- const qA = j(t.upload);
10136
- ee(
10137
+ const jA = j(t.upload);
10138
+ te(
10137
10139
  () => t.upload,
10138
10140
  (I) => {
10139
- qA.value = I;
10141
+ jA.value = I;
10140
10142
  },
10141
10143
  { immediate: !0 }
10142
10144
  );
10143
- const jA = Ve(() => {
10145
+ const zA = Ve(() => {
10144
10146
  const I = h(t.element);
10145
10147
  return t.element.css = I, I;
10146
- }), se = (I, _) => {
10148
+ }), ue = (I, _) => {
10147
10149
  _.children && _.children.length && _.children[0].type === X.Block && _.children.map((wA) => {
10148
10150
  wA.rule.flexColumn = I;
10149
10151
  }), r("updateElementRule", _);
10150
- }, VA = Ve(() => {
10152
+ }, YA = Ve(() => {
10151
10153
  let I = "";
10152
10154
  if (t.mode === "design") {
10153
10155
  const _ = t.element;
@@ -10157,13 +10159,13 @@ const cE = ["onClick"], lE = {
10157
10159
  }
10158
10160
  }
10159
10161
  return I;
10160
- }), zA = j(null), ne = async () => {
10161
- zA.value && r("getCoverHtml", zA.value);
10162
+ }), $A = j(null), ae = async () => {
10163
+ $A.value && r("getCoverHtml", $A.value);
10162
10164
  };
10163
- return ee(
10165
+ return te(
10164
10166
  () => t.isCover,
10165
10167
  (I) => {
10166
- I && ne();
10168
+ I && ae();
10167
10169
  },
10168
10170
  { immediate: !0 }
10169
10171
  ), (I, _) => {
@@ -10186,20 +10188,20 @@ const cE = ["onClick"], lE = {
10186
10188
  // 鼠标悬停、选中或超出文字限制时显示手型
10187
10189
  t.element.rule && t.element.rule.isReadOnly ? "cursor-not-allowed" : "",
10188
10190
  // 只读
10189
- jA.value
10191
+ zA.value
10190
10192
  ],
10191
- style: VA.value
10193
+ style: YA.value
10192
10194
  }, t.element.attrs, {
10193
10195
  contenteditable: s.value && t.element.type == EA(X).Text && a.value && !t.element.rule.isReadOnly && !t.element.rule.allowWrap,
10194
- onClick: _[0] || (_[0] = kA(() => m(t.element), ["stop"])),
10196
+ onClick: _[0] || (_[0] = PA(() => m(t.element), ["stop"])),
10195
10197
  onMouseenter: _[1] || (_[1] = () => x(t.element)),
10196
10198
  onMouseleave: w,
10197
10199
  onBlur: y,
10198
10200
  onInput: p,
10199
10201
  onPaste: R,
10200
- onKeydown: kA(O, ["stop"]),
10202
+ onKeydown: PA(O, ["stop"]),
10201
10203
  ref_key: "elementRef",
10202
- ref: zA,
10204
+ ref: $A,
10203
10205
  innerHTML: n.value
10204
10206
  }), null, 16, ["class", "style", "contenteditable", "innerHTML"])) : (M(), Xe(js(t.element.tag), zs({
10205
10207
  key: 1,
@@ -10220,20 +10222,20 @@ const cE = ["onClick"], lE = {
10220
10222
  // 只读
10221
10223
  t.element.type === EA(X).Icon ? "icon-upload-box" : "",
10222
10224
  // 图标类型, 添加图标上传父级判断类名
10223
- jA.value
10225
+ zA.value
10224
10226
  ],
10225
- style: VA.value
10227
+ style: YA.value
10226
10228
  }, t.element.attrs, {
10227
10229
  contenteditable: !1,
10228
- onClick: _[5] || (_[5] = kA(() => m(t.element), ["stop"])),
10230
+ onClick: _[5] || (_[5] = PA(() => m(t.element), ["stop"])),
10229
10231
  onMouseenter: _[6] || (_[6] = () => x(t.element)),
10230
10232
  onMouseleave: w,
10231
10233
  onBlur: y,
10232
10234
  onInput: p,
10233
10235
  onPaste: R,
10234
- onKeydown: kA(O, ["stop"]),
10236
+ onKeydown: PA(O, ["stop"]),
10235
10237
  ref_key: "elementRef",
10236
- ref: zA
10238
+ ref: $A
10237
10239
  }), {
10238
10240
  default: kr(() => [
10239
10241
  pi(IA(n.value) + " ", 1),
@@ -10256,19 +10258,19 @@ const cE = ["onClick"], lE = {
10256
10258
  onUpdateText: V,
10257
10259
  onBlockAction: iA,
10258
10260
  onAddIcon: vA,
10259
- onUpdateElementRule: () => JA($)
10261
+ onUpdateElementRule: () => qA($)
10260
10262
  }, null, 8, ["show-margin", "r", "mode", "icons", "element", "selectedElement", "hoveredElement", "cropper", "icon", "upload", "upload-by-file", "onUpdateElementRule"]))), 128)),
10261
10263
  t.element.type === EA(X).Block ? (M(), Y("div", {
10262
10264
  key: 0,
10263
10265
  "date-action": "1",
10264
10266
  contenteditable: "false",
10265
- onClick: _[2] || (_[2] = kA(() => {
10267
+ onClick: _[2] || (_[2] = PA(() => {
10266
10268
  }, ["stop"])),
10267
10269
  class: "hover:z-10 z-9 flex space-x-1 flex-none flex-nowrap overflow-visible absolute left-2 top-2 text-sm"
10268
10270
  }, [
10269
10271
  b("button", {
10270
10272
  class: "flex-none content-center items-center p-1 bg-green-500/80 text-white rounded hover:bg-green-500",
10271
- onClick: kA(P, ["stop"])
10273
+ onClick: PA(P, ["stop"])
10272
10274
  }, _[9] || (_[9] = [
10273
10275
  b("svg", {
10274
10276
  xmlns: "http://www.w3.org/2000/svg",
@@ -10300,7 +10302,7 @@ const cE = ["onClick"], lE = {
10300
10302
  ])),
10301
10303
  b("button", {
10302
10304
  class: "flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded hover:bg-blue-500",
10303
- onClick: kA(eA, ["stop"])
10305
+ onClick: PA(eA, ["stop"])
10304
10306
  }, _[10] || (_[10] = [
10305
10307
  b("svg", {
10306
10308
  xmlns: "http://www.w3.org/2000/svg",
@@ -10320,7 +10322,7 @@ const cE = ["onClick"], lE = {
10320
10322
  ])),
10321
10323
  b("button", {
10322
10324
  class: "flex-none content-center items-center p-1 bg-blue-500/80 text-white rounded hover:bg-blue-500",
10323
- onClick: kA(fA, ["stop"])
10325
+ onClick: PA(fA, ["stop"])
10324
10326
  }, _[11] || (_[11] = [
10325
10327
  b("svg", {
10326
10328
  xmlns: "http://www.w3.org/2000/svg",
@@ -10340,7 +10342,7 @@ const cE = ["onClick"], lE = {
10340
10342
  ])),
10341
10343
  b("button", {
10342
10344
  class: "flex-none content-center items-center p-1 bg-red-500/80 text-white rounded hover:bg-red-500",
10343
- onClick: kA(z, ["stop"])
10345
+ onClick: PA(z, ["stop"])
10344
10346
  }, _[12] || (_[12] = [
10345
10347
  b("svg", {
10346
10348
  xmlns: "http://www.w3.org/2000/svg",
@@ -10363,7 +10365,7 @@ const cE = ["onClick"], lE = {
10363
10365
  key: 1,
10364
10366
  "date-action": "1",
10365
10367
  contenteditable: "false",
10366
- onClick: _[3] || (_[3] = kA(() => {
10368
+ onClick: _[3] || (_[3] = PA(() => {
10367
10369
  }, ["stop"])),
10368
10370
  class: "hover:z-10 z-9 flex space-x-1 flex-none flex-nowrap overflow-visible absolute right-0 -top-6 items-center"
10369
10371
  }, [
@@ -10372,7 +10374,7 @@ const cE = ["onClick"], lE = {
10372
10374
  "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",
10373
10375
  t.element.children[0].rule.flexColumn === $ ? "bg-purple-700" : ""
10374
10376
  ]),
10375
- onClick: kA(() => se($, t.element), ["stop"])
10377
+ onClick: PA(() => ue($, t.element), ["stop"])
10376
10378
  }, IA($), 11, cE))), 256))
10377
10379
  ])) : W("", !0)
10378
10380
  ], 64)) : W("", !0),
@@ -10380,7 +10382,7 @@ const cE = ["onClick"], lE = {
10380
10382
  key: 1,
10381
10383
  class: "icon-upload cursor-pointer rounded-sm w-5 h-5 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",
10382
10384
  contenteditable: "false",
10383
- onClick: _[4] || (_[4] = kA(() => pA(t.element), ["stop"]))
10385
+ onClick: _[4] || (_[4] = PA(() => pA(t.element), ["stop"]))
10384
10386
  }, _[13] || (_[13] = [
10385
10387
  b("svg", {
10386
10388
  xmlns: "http://www.w3.org/2000/svg",
@@ -10413,13 +10415,13 @@ const cE = ["onClick"], lE = {
10413
10415
  t.element.type === EA(X).Image ? (M(), Y("div", {
10414
10416
  key: 3,
10415
10417
  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",
10416
- onClick: _[8] || (_[8] = kA(() => {
10418
+ onClick: _[8] || (_[8] = PA(() => {
10417
10419
  }, ["stop"])),
10418
10420
  contenteditable: "false"
10419
10421
  }, [
10420
10422
  b("div", {
10421
10423
  class: "p-1",
10422
- onClick: _[7] || (_[7] = kA(() => mA(t.element), ["stop"]))
10424
+ onClick: _[7] || (_[7] = PA(() => mA(t.element), ["stop"]))
10423
10425
  }, _[14] || (_[14] = [
10424
10426
  b("svg", {
10425
10427
  xmlns: "http://www.w3.org/2000/svg",
@@ -10449,7 +10451,7 @@ const cE = ["onClick"], lE = {
10449
10451
  ], 64);
10450
10452
  };
10451
10453
  }
10452
- }), hE = /* @__PURE__ */ Bt(fE, [["__scopeId", "data-v-e0b66297"]]), dE = Re({
10454
+ }), hE = /* @__PURE__ */ Bt(fE, [["__scopeId", "data-v-0d982615"]]), dE = Re({
10453
10455
  name: "GpCheckbox",
10454
10456
  props: {
10455
10457
  modelValue: {
@@ -10492,7 +10494,7 @@ const mt = /* @__PURE__ */ Bt(dE, [["render", mE], ["__scopeId", "data-v-68b8f27
10492
10494
  emits: ["updateElement"],
10493
10495
  setup(A, { emit: e }) {
10494
10496
  const t = A, r = e, n = j({ rule: {}, ...t.element });
10495
- ee(
10497
+ te(
10496
10498
  () => t.element,
10497
10499
  (i) => {
10498
10500
  n.value = { rule: {}, ...i };
@@ -10851,7 +10853,7 @@ function JE() {
10851
10853
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
10852
10854
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
10853
10855
  }
10854
- var Qa = typeof window < "u" && typeof window.document < "u", Oe = Qa ? window : {}, Ds = Qa && Oe.document.documentElement ? "ontouchstart" in Oe.document.documentElement : !1, Os = Qa ? "PointerEvent" in Oe : !1, QA = "cropper", Rs = "all", gl = "crop", Bl = "move", pl = "zoom", Ct = "e", wt = "w", Ot = "s", ze = "n", lr = "ne", fr = "nw", hr = "se", dr = "sw", Ni = "".concat(QA, "-crop"), Su = "".concat(QA, "-disabled"), le = "".concat(QA, "-hidden"), Lu = "".concat(QA, "-hide"), qE = "".concat(QA, "-invisible"), ta = "".concat(QA, "-modal"), Di = "".concat(QA, "-move"), Wr = "".concat(QA, "Action"), hn = "".concat(QA, "Preview"), Ms = "crop", El = "move", ml = "none", Oi = "crop", Ri = "cropend", Mi = "cropmove", ki = "cropstart", Hu = "dblclick", jE = Ds ? "touchstart" : "mousedown", zE = Ds ? "touchmove" : "mousemove", $E = Ds ? "touchend touchcancel" : "mouseup", Nu = Os ? "pointerdown" : jE, Du = Os ? "pointermove" : zE, Ou = Os ? "pointerup pointercancel" : $E, Ru = "ready", Mu = "resize", ku = "wheel", Pi = "zoom", Pu = "image/jpeg", ZE = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Am = /^data:/, em = /^data:image\/jpeg;base64,/, tm = /^img|canvas$/i, Cl = 200, wl = 100, Ku = {
10856
+ var Qa = typeof window < "u" && typeof window.document < "u", Oe = Qa ? window : {}, Ds = Qa && Oe.document.documentElement ? "ontouchstart" in Oe.document.documentElement : !1, Os = Qa ? "PointerEvent" in Oe : !1, QA = "cropper", Rs = "all", gl = "crop", Bl = "move", pl = "zoom", Ct = "e", wt = "w", Ot = "s", ze = "n", lr = "ne", fr = "nw", hr = "se", dr = "sw", Ni = "".concat(QA, "-crop"), Su = "".concat(QA, "-disabled"), fe = "".concat(QA, "-hidden"), Lu = "".concat(QA, "-hide"), qE = "".concat(QA, "-invisible"), ta = "".concat(QA, "-modal"), Di = "".concat(QA, "-move"), Wr = "".concat(QA, "Action"), hn = "".concat(QA, "Preview"), Ms = "crop", El = "move", ml = "none", Oi = "crop", Ri = "cropend", Mi = "cropmove", ki = "cropstart", Hu = "dblclick", jE = Ds ? "touchstart" : "mousedown", zE = Ds ? "touchmove" : "mousemove", $E = Ds ? "touchend touchcancel" : "mouseup", Nu = Os ? "pointerdown" : jE, Du = Os ? "pointermove" : zE, Ou = Os ? "pointerup pointercancel" : $E, Ru = "ready", Mu = "resize", ku = "wheel", Pi = "zoom", Pu = "image/jpeg", ZE = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Am = /^data:/, em = /^data:image\/jpeg;base64,/, tm = /^img|canvas$/i, Cl = 200, wl = 100, Ku = {
10855
10857
  // Define the view mode of the cropper
10856
10858
  viewMode: 0,
10857
10859
  // 0, 1, 2, 3
@@ -10946,7 +10948,7 @@ function Wt(A) {
10946
10948
  return !1;
10947
10949
  }
10948
10950
  }
10949
- function oe(A) {
10951
+ function ce(A) {
10950
10952
  return typeof A == "function";
10951
10953
  }
10952
10954
  var im = Array.prototype.slice;
@@ -10954,7 +10956,7 @@ function bl(A) {
10954
10956
  return Array.from ? Array.from(A) : im.call(A);
10955
10957
  }
10956
10958
  function HA(A, e) {
10957
- return A && oe(e) && (Array.isArray(A) || aA(A.length) ? bl(A).forEach(function(t, r) {
10959
+ return A && ce(e) && (Array.isArray(A) || aA(A.length) ? bl(A).forEach(function(t, r) {
10958
10960
  e.call(A, t, r, A);
10959
10961
  }) : _t(A) && Object.keys(A).forEach(function(t) {
10960
10962
  e.call(A, A[t], t, A);
@@ -10983,11 +10985,11 @@ function it(A, e) {
10983
10985
  function om(A, e) {
10984
10986
  return A.classList ? A.classList.contains(e) : A.className.indexOf(e) > -1;
10985
10987
  }
10986
- function PA(A, e) {
10988
+ function KA(A, e) {
10987
10989
  if (e) {
10988
10990
  if (aA(A.length)) {
10989
10991
  HA(A, function(r) {
10990
- PA(r, e);
10992
+ KA(r, e);
10991
10993
  });
10992
10994
  return;
10993
10995
  }
@@ -11022,7 +11024,7 @@ function Jt(A, e, t) {
11022
11024
  });
11023
11025
  return;
11024
11026
  }
11025
- t ? PA(A, e) : De(A, e);
11027
+ t ? KA(A, e) : De(A, e);
11026
11028
  }
11027
11029
  }
11028
11030
  var cm = /([a-z\d])([A-Z])/g;
@@ -11099,7 +11101,7 @@ function Ee(A, e, t) {
11099
11101
  }
11100
11102
  function Zt(A, e, t) {
11101
11103
  var r;
11102
- return oe(Event) && oe(CustomEvent) ? r = new CustomEvent(e, {
11104
+ return ce(Event) && ce(CustomEvent) ? r = new CustomEvent(e, {
11103
11105
  detail: t,
11104
11106
  bubbles: !0,
11105
11107
  cancelable: !0
@@ -11196,17 +11198,17 @@ function Bm(A, e, t, r) {
11196
11198
  aspectRatio: m,
11197
11199
  width: uA,
11198
11200
  height: z
11199
- }, "cover"), JA = Math.min(mA.width, Math.max(vA.width, E)), SA = Math.min(mA.height, Math.max(vA.height, T)), qA = st({
11201
+ }, "cover"), qA = Math.min(mA.width, Math.max(vA.width, E)), SA = Math.min(mA.height, Math.max(vA.height, T)), jA = st({
11200
11202
  aspectRatio: n,
11201
11203
  width: H,
11202
11204
  height: P
11203
- }), jA = st({
11205
+ }), zA = st({
11204
11206
  aspectRatio: n,
11205
11207
  width: uA,
11206
11208
  height: z
11207
- }, "cover"), se = Math.min(qA.width, Math.max(jA.width, a)), VA = Math.min(qA.height, Math.max(jA.height, i)), zA = [-se / 2, -VA / 2, se, VA];
11208
- return iA.width = $t(JA), iA.height = $t(SA), pA.fillStyle = w, pA.fillRect(0, 0, JA, SA), pA.save(), pA.translate(JA / 2, SA / 2), pA.rotate(o * Math.PI / 180), pA.scale(l, h), pA.imageSmoothingEnabled = D, pA.imageSmoothingQuality = O, pA.drawImage.apply(pA, [A].concat(dl(zA.map(function(ne) {
11209
- return Math.floor($t(ne));
11209
+ }, "cover"), ue = Math.min(jA.width, Math.max(zA.width, a)), YA = Math.min(jA.height, Math.max(zA.height, i)), $A = [-ue / 2, -YA / 2, ue, YA];
11210
+ return iA.width = $t(qA), iA.height = $t(SA), pA.fillStyle = w, pA.fillRect(0, 0, qA, SA), pA.save(), pA.translate(qA / 2, SA / 2), pA.rotate(o * Math.PI / 180), pA.scale(l, h), pA.imageSmoothingEnabled = D, pA.imageSmoothingQuality = O, pA.drawImage.apply(pA, [A].concat(dl($A.map(function(ae) {
11211
+ return Math.floor($t(ae));
11210
11212
  })))), pA.restore(), iA;
11211
11213
  }
11212
11214
  var Fl = String.fromCharCode;
@@ -11301,7 +11303,7 @@ var Tm = {
11301
11303
  },
11302
11304
  initContainer: function() {
11303
11305
  var e = this.element, t = this.options, r = this.container, n = this.cropper, a = Number(t.minContainerWidth), i = Number(t.minContainerHeight);
11304
- PA(n, le), De(e, le);
11306
+ KA(n, fe), De(e, fe);
11305
11307
  var s = {
11306
11308
  width: Math.max(r.offsetWidth, a >= 0 ? a : Cl),
11307
11309
  height: Math.max(r.offsetHeight, i >= 0 ? i : wl)
@@ -11309,7 +11311,7 @@ var Tm = {
11309
11311
  this.containerData = s, it(n, {
11310
11312
  width: s.width,
11311
11313
  height: s.height
11312
- }), PA(e, le), De(n, le);
11314
+ }), KA(e, fe), De(n, fe);
11313
11315
  },
11314
11316
  // Canvas (image wrapper)
11315
11317
  initCanvas: function() {
@@ -11453,14 +11455,14 @@ var Tm = {
11453
11455
  }, Qm = {
11454
11456
  bind: function() {
11455
11457
  var e = this.element, t = this.options, r = this.cropper;
11456
- oe(t.cropstart) && Ee(e, ki, t.cropstart), oe(t.cropmove) && Ee(e, Mi, t.cropmove), oe(t.cropend) && Ee(e, Ri, t.cropend), oe(t.crop) && Ee(e, Oi, t.crop), oe(t.zoom) && Ee(e, Pi, t.zoom), Ee(r, Nu, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && Ee(r, ku, this.onWheel = this.wheel.bind(this), {
11458
+ ce(t.cropstart) && Ee(e, ki, t.cropstart), ce(t.cropmove) && Ee(e, Mi, t.cropmove), ce(t.cropend) && Ee(e, Ri, t.cropend), ce(t.crop) && Ee(e, Oi, t.crop), ce(t.zoom) && Ee(e, Pi, t.zoom), Ee(r, Nu, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && Ee(r, ku, this.onWheel = this.wheel.bind(this), {
11457
11459
  passive: !1,
11458
11460
  capture: !0
11459
11461
  }), t.toggleDragModeOnDblclick && Ee(r, Hu, this.onDblclick = this.dblclick.bind(this)), Ee(e.ownerDocument, Du, this.onCropMove = this.cropMove.bind(this)), Ee(e.ownerDocument, Ou, this.onCropEnd = this.cropEnd.bind(this)), t.responsive && Ee(window, Mu, this.onResize = this.resize.bind(this));
11460
11462
  },
11461
11463
  unbind: function() {
11462
11464
  var e = this.element, t = this.options, r = this.cropper;
11463
- oe(t.cropstart) && ve(e, ki, t.cropstart), oe(t.cropmove) && ve(e, Mi, t.cropmove), oe(t.cropend) && ve(e, Ri, t.cropend), oe(t.crop) && ve(e, Oi, t.crop), oe(t.zoom) && ve(e, Pi, t.zoom), ve(r, Nu, this.onCropStart), t.zoomable && t.zoomOnWheel && ve(r, ku, this.onWheel, {
11465
+ ce(t.cropstart) && ve(e, ki, t.cropstart), ce(t.cropmove) && ve(e, Mi, t.cropmove), ce(t.cropend) && ve(e, Ri, t.cropend), ce(t.crop) && ve(e, Oi, t.crop), ce(t.zoom) && ve(e, Pi, t.zoom), ve(r, Nu, this.onCropStart), t.zoomable && t.zoomOnWheel && ve(r, ku, this.onWheel, {
11464
11466
  passive: !1,
11465
11467
  capture: !0
11466
11468
  }), t.toggleDragModeOnDblclick && ve(r, Hu, this.onDblclick), ve(e.ownerDocument, Du, this.onCropMove), ve(e.ownerDocument, Ou, this.onCropEnd), t.responsive && ve(window, Mu, this.onResize);
@@ -11498,7 +11500,7 @@ var Tm = {
11498
11500
  }) : a[e.pointerId || 0] = dn(e), Object.keys(a).length > 1 && n.zoomable && n.zoomOnTouch ? i = pl : i = Ki(e.target, Wr), ZE.test(i) && Zt(this.element, ki, {
11499
11501
  originalEvent: e,
11500
11502
  action: i
11501
- }) !== !1 && (e.preventDefault(), this.action = i, this.cropping = !1, i === gl && (this.cropping = !0, PA(this.dragBox, ta)));
11503
+ }) !== !1 && (e.preventDefault(), this.action = i, this.cropping = !1, i === gl && (this.cropping = !0, KA(this.dragBox, ta)));
11502
11504
  }
11503
11505
  },
11504
11506
  cropMove: function(e) {
@@ -11634,7 +11636,7 @@ var Tm = {
11634
11636
  D = !1;
11635
11637
  break;
11636
11638
  }
11637
- R = Ql(this.cropper), c = O.startX - R.left, l = O.startY - R.top, f = a.minWidth, h = a.minHeight, p.x > 0 ? s = p.y > 0 ? hr : lr : p.x < 0 && (c -= f, s = p.y > 0 ? dr : fr), p.y < 0 && (l -= h), this.cropped || (De(this.cropBox, le), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
11639
+ R = Ql(this.cropper), c = O.startX - R.left, l = O.startY - R.top, f = a.minWidth, h = a.minHeight, p.x > 0 ? s = p.y > 0 ? hr : lr : p.x < 0 && (c -= f, s = p.y > 0 ? dr : fr), p.y < 0 && (l -= h), this.cropped || (De(this.cropBox, fe), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
11638
11640
  break;
11639
11641
  }
11640
11642
  D && (a.width = f, a.height = h, a.left = c, a.top = l, this.action = s, this.renderCropBox()), HA(i, function(V) {
@@ -11644,7 +11646,7 @@ var Tm = {
11644
11646
  }, Im = {
11645
11647
  // Show the crop box manually
11646
11648
  crop: function() {
11647
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && PA(this.dragBox, ta), De(this.cropBox, le), this.setCropBoxData(this.initialCropBoxData)), this;
11649
+ return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && KA(this.dragBox, ta), De(this.cropBox, fe), this.setCropBoxData(this.initialCropBoxData)), this;
11648
11650
  },
11649
11651
  // Reset the image and crop box to their initial states
11650
11652
  reset: function() {
@@ -11657,7 +11659,7 @@ var Tm = {
11657
11659
  top: 0,
11658
11660
  width: 0,
11659
11661
  height: 0
11660
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), De(this.dragBox, ta), PA(this.cropBox, le)), this;
11662
+ }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), De(this.dragBox, ta), KA(this.cropBox, fe)), this;
11661
11663
  },
11662
11664
  /**
11663
11665
  * Replace the image's src and rebuild the cropper
@@ -11677,7 +11679,7 @@ var Tm = {
11677
11679
  },
11678
11680
  // Disable (freeze) the cropper
11679
11681
  disable: function() {
11680
- return this.ready && !this.disabled && (this.disabled = !0, PA(this.cropper, Su)), this;
11682
+ return this.ready && !this.disabled && (this.disabled = !0, KA(this.cropper, Su)), this;
11681
11683
  },
11682
11684
  /**
11683
11685
  * Destroy the cropper and remove the instance from the image
@@ -12016,7 +12018,7 @@ var Tm = {
12016
12018
  var t = this.element, r = this.url, n = t.crossOrigin, a = r;
12017
12019
  this.options.checkCrossOrigin && Vu(r) && (n || (n = "anonymous"), a = Yu(r)), this.crossOrigin = n, this.crossOriginUrl = a;
12018
12020
  var i = document.createElement("img");
12019
- n && (i.crossOrigin = n), i.src = a || r, i.alt = t.alt || "The image to crop", this.image = i, i.onload = this.start.bind(this), i.onerror = this.stop.bind(this), PA(i, Lu), t.parentNode.insertBefore(i, t.nextSibling);
12021
+ n && (i.crossOrigin = n), i.src = a || r, i.alt = t.alt || "The image to crop", this.image = i, i.onload = this.start.bind(this), i.onerror = this.stop.bind(this), KA(i, Lu), t.parentNode.insertBefore(i, t.nextSibling);
12020
12022
  }
12021
12023
  }, {
12022
12024
  key: "start",
@@ -12052,7 +12054,7 @@ var Tm = {
12052
12054
  var t = this.element, r = this.options, n = this.image, a = t.parentNode, i = document.createElement("div");
12053
12055
  i.innerHTML = rm;
12054
12056
  var s = i.querySelector(".".concat(QA, "-container")), o = s.querySelector(".".concat(QA, "-canvas")), c = s.querySelector(".".concat(QA, "-drag-box")), l = s.querySelector(".".concat(QA, "-crop-box")), f = l.querySelector(".".concat(QA, "-face"));
12055
- this.container = a, this.cropper = s, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = s.querySelector(".".concat(QA, "-view-box")), this.face = f, o.appendChild(n), PA(t, le), a.insertBefore(s, t.nextSibling), De(n, Lu), 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, PA(l, le), r.guides || PA(l.getElementsByClassName("".concat(QA, "-dashed")), le), r.center || PA(l.getElementsByClassName("".concat(QA, "-center")), le), r.background && PA(s, "".concat(QA, "-bg")), r.highlight || PA(f, qE), r.cropBoxMovable && (PA(f, Di), Jr(f, Wr, Rs)), r.cropBoxResizable || (PA(l.getElementsByClassName("".concat(QA, "-line")), le), PA(l.getElementsByClassName("".concat(QA, "-point")), le)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), oe(r.ready) && Ee(t, Ru, r.ready, {
12057
+ this.container = a, this.cropper = s, this.canvas = o, this.dragBox = c, this.cropBox = l, this.viewBox = s.querySelector(".".concat(QA, "-view-box")), this.face = f, o.appendChild(n), KA(t, fe), a.insertBefore(s, t.nextSibling), De(n, Lu), 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, fe), r.guides || KA(l.getElementsByClassName("".concat(QA, "-dashed")), fe), r.center || KA(l.getElementsByClassName("".concat(QA, "-center")), fe), r.background && KA(s, "".concat(QA, "-bg")), r.highlight || KA(f, qE), r.cropBoxMovable && (KA(f, Di), Jr(f, Wr, Rs)), r.cropBoxResizable || (KA(l.getElementsByClassName("".concat(QA, "-line")), fe), KA(l.getElementsByClassName("".concat(QA, "-point")), fe)), this.render(), this.ready = !0, this.setDragMode(r.dragMode), r.autoCrop && this.crop(), this.setData(r.data), ce(r.ready) && Ee(t, Ru, r.ready, {
12056
12058
  once: !0
12057
12059
  }), Zt(t, Ru);
12058
12060
  }
@@ -12063,7 +12065,7 @@ var Tm = {
12063
12065
  if (this.ready) {
12064
12066
  this.ready = !1, this.unbind(), this.resetPreview();
12065
12067
  var t = this.cropper.parentNode;
12066
- t && t.removeChild(this.cropper), De(this.element, le);
12068
+ t && t.removeChild(this.cropper), De(this.element, fe);
12067
12069
  }
12068
12070
  }
12069
12071
  }, {
@@ -12238,7 +12240,7 @@ const _m = {
12238
12240
  H[1] || (H[1] = b("span", { class: "text-base font-semibold text-[#333]" }, "图片裁剪", -1)),
12239
12241
  b("span", {
12240
12242
  class: "text-lg cursor-pointer text-[#999] iconfont icon-shanchu2",
12241
- onClick: kA(D, ["stop"])
12243
+ onClick: PA(D, ["stop"])
12242
12244
  })
12243
12245
  ]),
12244
12246
  b("div", Hm, [
@@ -12251,7 +12253,7 @@ const _m = {
12251
12253
  b("input", {
12252
12254
  type: "file",
12253
12255
  accept: "image/*",
12254
- onClick: H[0] || (H[0] = kA(() => {
12256
+ onClick: H[0] || (H[0] = PA(() => {
12255
12257
  }, ["stop"])),
12256
12258
  contenteditable: "false",
12257
12259
  ref: "fileInput",
@@ -12372,7 +12374,7 @@ function r1(A, e, t, r, n, a) {
12372
12374
  return A.visible ? (M(), Y("div", {
12373
12375
  key: 0,
12374
12376
  class: "fixed inset-0 z-[99999] flex items-center justify-center bg-gray-900 bg-opacity-50",
12375
- onClick: e[3] || (e[3] = kA((...i) => A.onMaskClosable && A.onMaskClosable(...i), ["self"]))
12377
+ onClick: e[3] || (e[3] = PA((...i) => A.onMaskClosable && A.onMaskClosable(...i), ["self"]))
12376
12378
  }, [
12377
12379
  b("div", $m, [
12378
12380
  b("div", Zm, [
@@ -12432,7 +12434,7 @@ const Il = /* @__PURE__ */ Bt(zm, [["render", r1]]), n1 = { class: "p-4 flex fle
12432
12434
  emits: ["ok"],
12433
12435
  setup(A, { expose: e, emit: t }) {
12434
12436
  const r = A, n = t, a = j(r.icons || []);
12435
- ee(
12437
+ te(
12436
12438
  () => r.icons,
12437
12439
  (f) => {
12438
12440
  a.value = f || [];
@@ -12462,7 +12464,7 @@ const Il = /* @__PURE__ */ Bt(zm, [["render", r1]]), n1 = { class: "p-4 flex fle
12462
12464
  b("div", n1, [
12463
12465
  (M(!0), Y(Xt, null, Vn(a.value, (m) => (M(), Y("span", {
12464
12466
  key: m,
12465
- onClick: kA((E) => c(m), ["stop"]),
12467
+ onClick: PA((E) => c(m), ["stop"]),
12466
12468
  style: { position: "unset", color: "unset", top: "unset", left: "unset", right: "unset", transform: "unset", "font-size": "unset" },
12467
12469
  class: fs(["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`])
12468
12470
  }, null, 10, a1))), 128))
@@ -12502,7 +12504,7 @@ const Il = /* @__PURE__ */ Bt(zm, [["render", r1]]), n1 = { class: "p-4 flex fle
12502
12504
  },
12503
12505
  setup(A, { emit: e }) {
12504
12506
  const t = j(null), r = j([]), n = j(), a = j(A.show);
12505
- ee(
12507
+ te(
12506
12508
  () => A.show,
12507
12509
  (l) => {
12508
12510
  a.value = l;
@@ -12648,7 +12650,7 @@ var Vi = function() {
12648
12650
  return e;
12649
12651
  }, Vi.apply(this, arguments);
12650
12652
  };
12651
- function ie(A, e, t, r) {
12653
+ function se(A, e, t, r) {
12652
12654
  function n(a) {
12653
12655
  return a instanceof t ? a : new t(function(i) {
12654
12656
  i(a);
@@ -12675,7 +12677,7 @@ function ie(A, e, t, r) {
12675
12677
  c((r = r.apply(A, [])).next());
12676
12678
  });
12677
12679
  }
12678
- function Ae(A, e) {
12680
+ function ee(A, e) {
12679
12681
  var t = { label: 0, sent: function() {
12680
12682
  if (a[0] & 1) throw a[1];
12681
12683
  return a[1];
@@ -12990,12 +12992,12 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
12990
12992
  return { done: !0, value: null };
12991
12993
  }
12992
12994
  };
12993
- }, $1 = 1, Z1 = 2, tn = 4, no = 8, ra = 10, ao = 47, Nr = 92, AC = 9, eC = 32, Tn = 34, pr = 61, tC = 35, rC = 36, nC = 37, Un = 39, Qn = 40, Er = 41, aC = 95, fe = 45, iC = 33, sC = 60, uC = 62, oC = 64, cC = 91, lC = 93, fC = 61, hC = 123, Fn = 63, dC = 125, io = 124, gC = 126, BC = 128, so = 65533, ei = 42, Qt = 43, pC = 44, EC = 58, mC = 59, jr = 46, CC = 0, wC = 8, bC = 11, TC = 14, UC = 31, QC = 127, Se = -1, Dl = 48, Ol = 97, Rl = 101, FC = 102, vC = 117, IC = 122, Ml = 65, kl = 69, Pl = 70, yC = 85, xC = 90, te = function(A) {
12995
+ }, $1 = 1, Z1 = 2, tn = 4, no = 8, ra = 10, ao = 47, Nr = 92, AC = 9, eC = 32, Tn = 34, pr = 61, tC = 35, rC = 36, nC = 37, Un = 39, Qn = 40, Er = 41, aC = 95, he = 45, iC = 33, sC = 60, uC = 62, oC = 64, cC = 91, lC = 93, fC = 61, hC = 123, Fn = 63, dC = 125, io = 124, gC = 126, BC = 128, so = 65533, ei = 42, Qt = 43, pC = 44, EC = 58, mC = 59, jr = 46, CC = 0, wC = 8, bC = 11, TC = 14, UC = 31, QC = 127, Se = -1, Dl = 48, Ol = 97, Rl = 101, FC = 102, vC = 117, IC = 122, Ml = 65, kl = 69, Pl = 70, yC = 85, xC = 90, re = function(A) {
12994
12996
  return A >= Dl && A <= 57;
12995
12997
  }, _C = function(A) {
12996
12998
  return A >= 55296 && A <= 57343;
12997
12999
  }, kt = function(A) {
12998
- return te(A) || A >= Ml && A <= Pl || A >= Ol && A <= FC;
13000
+ return re(A) || A >= Ml && A <= Pl || A >= Ol && A <= FC;
12999
13001
  }, SC = function(A) {
13000
13002
  return A >= Ol && A <= IC;
13001
13003
  }, LC = function(A) {
@@ -13009,29 +13011,29 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13009
13011
  }, na = function(A) {
13010
13012
  return HC(A) || NC(A) || A === aC;
13011
13013
  }, uo = function(A) {
13012
- return na(A) || te(A) || A === fe;
13014
+ return na(A) || re(A) || A === he;
13013
13015
  }, DC = function(A) {
13014
13016
  return A >= CC && A <= wC || A === bC || A >= TC && A <= UC || A === QC;
13015
13017
  }, rt = function(A, e) {
13016
13018
  return A !== Nr ? !1 : e !== ra;
13017
13019
  }, In = function(A, e, t) {
13018
- return A === fe ? na(e) || rt(e, t) : na(A) ? !0 : !!(A === Nr && rt(A, e));
13020
+ return A === he ? na(e) || rt(e, t) : na(A) ? !0 : !!(A === Nr && rt(A, e));
13019
13021
  }, ti = function(A, e, t) {
13020
- return A === Qt || A === fe ? te(e) ? !0 : e === jr && te(t) : te(A === jr ? e : A);
13022
+ return A === Qt || A === he ? re(e) ? !0 : e === jr && re(t) : re(A === jr ? e : A);
13021
13023
  }, OC = function(A) {
13022
13024
  var e = 0, t = 1;
13023
- (A[e] === Qt || A[e] === fe) && (A[e] === fe && (t = -1), e++);
13024
- for (var r = []; te(A[e]); )
13025
+ (A[e] === Qt || A[e] === he) && (A[e] === he && (t = -1), e++);
13026
+ for (var r = []; re(A[e]); )
13025
13027
  r.push(A[e++]);
13026
13028
  var n = r.length ? parseInt(_A.apply(void 0, r), 10) : 0;
13027
13029
  A[e] === jr && e++;
13028
- for (var a = []; te(A[e]); )
13030
+ for (var a = []; re(A[e]); )
13029
13031
  a.push(A[e++]);
13030
13032
  var i = a.length, s = i ? parseInt(_A.apply(void 0, a), 10) : 0;
13031
13033
  (A[e] === kl || A[e] === Rl) && e++;
13032
13034
  var o = 1;
13033
- (A[e] === Qt || A[e] === fe) && (A[e] === fe && (o = -1), e++);
13034
- for (var c = []; te(A[e]); )
13035
+ (A[e] === Qt || A[e] === he) && (A[e] === he && (o = -1), e++);
13036
+ for (var c = []; re(A[e]); )
13035
13037
  c.push(A[e++]);
13036
13038
  var l = c.length ? parseInt(_A.apply(void 0, c), 10) : 0;
13037
13039
  return t * (n + s * Math.pow(10, -i)) * Math.pow(10, o * l);
@@ -13142,13 +13144,13 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13142
13144
  break;
13143
13145
  case pC:
13144
13146
  return kC;
13145
- case fe:
13147
+ case he:
13146
13148
  var s = e, o = this.peekCodePoint(0), c = this.peekCodePoint(1);
13147
13149
  if (ti(s, o, c))
13148
13150
  return this.reconsumeCodePoint(e), this.consumeNumericToken();
13149
13151
  if (In(s, o, c))
13150
13152
  return this.reconsumeCodePoint(e), this.consumeIdentLikeToken();
13151
- if (o === fe && c === uC)
13153
+ if (o === he && c === uC)
13152
13154
  return this.consumeCodePoint(), this.consumeCodePoint(), zC;
13153
13155
  break;
13154
13156
  case jr:
@@ -13170,7 +13172,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13170
13172
  case mC:
13171
13173
  return ZC;
13172
13174
  case sC:
13173
- if (this.peekCodePoint(0) === iC && this.peekCodePoint(1) === fe && this.peekCodePoint(2) === fe)
13175
+ if (this.peekCodePoint(0) === iC && this.peekCodePoint(1) === he && this.peekCodePoint(2) === he)
13174
13176
  return this.consumeCodePoint(), this.consumeCodePoint(), jC;
13175
13177
  break;
13176
13178
  case oC:
@@ -13213,7 +13215,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13213
13215
  case Se:
13214
13216
  return es;
13215
13217
  }
13216
- return vn(e) ? (this.consumeWhiteSpace(), tw) : te(e) ? (this.reconsumeCodePoint(e), this.consumeNumericToken()) : na(e) ? (this.reconsumeCodePoint(e), this.consumeIdentLikeToken()) : { type: 6, value: _A(e) };
13218
+ return vn(e) ? (this.consumeWhiteSpace(), tw) : re(e) ? (this.reconsumeCodePoint(e), this.consumeNumericToken()) : na(e) ? (this.reconsumeCodePoint(e), this.consumeIdentLikeToken()) : { type: 6, value: _A(e) };
13217
13219
  }, A.prototype.consumeCodePoint = function() {
13218
13220
  var e = this._value.shift();
13219
13221
  return typeof e > "u" ? -1 : e;
@@ -13235,7 +13237,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13235
13237
  return { type: 30, start: n, end: a };
13236
13238
  }
13237
13239
  var i = parseInt(_A.apply(void 0, e), 16);
13238
- if (this.peekCodePoint(0) === fe && kt(this.peekCodePoint(1))) {
13240
+ if (this.peekCodePoint(0) === he && kt(this.peekCodePoint(1))) {
13239
13241
  this.consumeCodePoint(), t = this.consumeCodePoint();
13240
13242
  for (var s = []; kt(t) && s.length < 6; )
13241
13243
  s.push(t), t = this.consumeCodePoint();
@@ -13303,17 +13305,17 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13303
13305
  } while (!0);
13304
13306
  }, A.prototype.consumeNumber = function() {
13305
13307
  var e = [], t = tn, r = this.peekCodePoint(0);
13306
- for ((r === Qt || r === fe) && e.push(this.consumeCodePoint()); te(this.peekCodePoint(0)); )
13308
+ for ((r === Qt || r === he) && e.push(this.consumeCodePoint()); re(this.peekCodePoint(0)); )
13307
13309
  e.push(this.consumeCodePoint());
13308
13310
  r = this.peekCodePoint(0);
13309
13311
  var n = this.peekCodePoint(1);
13310
- if (r === jr && te(n))
13311
- for (e.push(this.consumeCodePoint(), this.consumeCodePoint()), t = no; te(this.peekCodePoint(0)); )
13312
+ if (r === jr && re(n))
13313
+ for (e.push(this.consumeCodePoint(), this.consumeCodePoint()), t = no; re(this.peekCodePoint(0)); )
13312
13314
  e.push(this.consumeCodePoint());
13313
13315
  r = this.peekCodePoint(0), n = this.peekCodePoint(1);
13314
13316
  var a = this.peekCodePoint(2);
13315
- if ((r === kl || r === Rl) && ((n === Qt || n === fe) && te(a) || te(n)))
13316
- for (e.push(this.consumeCodePoint(), this.consumeCodePoint()), t = no; te(this.peekCodePoint(0)); )
13317
+ if ((r === kl || r === Rl) && ((n === Qt || n === he) && re(a) || re(n)))
13318
+ for (e.push(this.consumeCodePoint(), this.consumeCodePoint()), t = no; re(this.peekCodePoint(0)); )
13317
13319
  e.push(this.consumeCodePoint());
13318
13320
  return [OC(e), t];
13319
13321
  }, A.prototype.consumeNumericToken = function() {
@@ -13447,7 +13449,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13447
13449
  return A.type === 16 || ht(A);
13448
13450
  }, Yl = function(A) {
13449
13451
  return A.length > 1 ? [A[0], A[1]] : [A[0]];
13450
- }, WA = {
13452
+ }, JA = {
13451
13453
  type: 17,
13452
13454
  number: 0,
13453
13455
  flags: tn
@@ -13502,7 +13504,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13502
13504
  case "to right bottom":
13503
13505
  case "left top":
13504
13506
  case "top left":
13505
- return [WA, WA];
13507
+ return [JA, JA];
13506
13508
  case "to top":
13507
13509
  case "bottom":
13508
13510
  return Ue(0);
@@ -13510,7 +13512,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13510
13512
  case "to left bottom":
13511
13513
  case "right top":
13512
13514
  case "top right":
13513
- return [WA, ot];
13515
+ return [JA, ot];
13514
13516
  case "to right":
13515
13517
  case "left":
13516
13518
  return Ue(90);
@@ -13526,7 +13528,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13526
13528
  case "to right top":
13527
13529
  case "left bottom":
13528
13530
  case "bottom left":
13529
- return [ot, WA];
13531
+ return [ot, JA];
13530
13532
  case "to left":
13531
13533
  case "right":
13532
13534
  return Ue(270);
@@ -13570,7 +13572,7 @@ var N1 = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
13570
13572
  }
13571
13573
  }, ft = function(A) {
13572
13574
  return (255 & A) === 0;
13573
- }, RA = function(A) {
13575
+ }, MA = function(A) {
13574
13576
  var e = 255 & A, t = 255 & A >> 8, r = 255 & A >> 16, n = 255 & A >> 24;
13575
13577
  return e < 255 ? "rgba(" + n + "," + r + "," + t + "," + e / 255 + ")" : "rgb(" + n + "," + r + "," + t + ")";
13576
13578
  }, ct = function(A, e, t, r) {
@@ -13789,7 +13791,7 @@ var lo = function(A, e) {
13789
13791
  return r && LA(r) ? { color: t, stop: r } : { color: t, stop: null };
13790
13792
  }, fo = function(A, e) {
13791
13793
  var t = A[0], r = A[A.length - 1];
13792
- t.stop === null && (t.stop = WA), r.stop === null && (r.stop = ot);
13794
+ t.stop === null && (t.stop = JA), r.stop === null && (r.stop = ot);
13793
13795
  for (var n = [], a = 0, i = 0; i < A.length; i++) {
13794
13796
  var s = A[i].stop;
13795
13797
  if (s !== null) {
@@ -13922,7 +13924,7 @@ var lo = function(A, e) {
13922
13924
  if (l.type === 18) {
13923
13925
  if (l.name === "from") {
13924
13926
  var f = lt.parse(A, l.values[0]);
13925
- r.push({ stop: WA, color: f });
13927
+ r.push({ stop: JA, color: f });
13926
13928
  } else if (l.name === "to") {
13927
13929
  var f = lt.parse(A, l.values[0]);
13928
13930
  r.push({ stop: ot, color: f });
@@ -13956,7 +13958,7 @@ var lo = function(A, e) {
13956
13958
  return a.push(Ks), f;
13957
13959
  case "top":
13958
13960
  case "left":
13959
- return a.push(WA), f;
13961
+ return a.push(JA), f;
13960
13962
  case "right":
13961
13963
  case "bottom":
13962
13964
  return a.push(ot), f;
@@ -14009,7 +14011,7 @@ var lo = function(A, e) {
14009
14011
  return a.push(Ks), !1;
14010
14012
  case "top":
14011
14013
  case "left":
14012
- return a.push(WA), !1;
14014
+ return a.push(JA), !1;
14013
14015
  case "right":
14014
14016
  case "bottom":
14015
14017
  return a.push(ot), !1;
@@ -14608,9 +14610,9 @@ var Xw = {
14608
14610
  return e.length === 1 && ts(e[0], "none") ? [] : Me(e).map(function(t) {
14609
14611
  for (var r = {
14610
14612
  color: Je.TRANSPARENT,
14611
- offsetX: WA,
14612
- offsetY: WA,
14613
- blur: WA
14613
+ offsetX: JA,
14614
+ offsetY: JA,
14615
+ blur: JA
14614
14616
  }, n = 0, a = 0; a < t.length; a++) {
14615
14617
  var i = t[a];
14616
14618
  ht(i) ? (n === 0 ? r.offsetX = i : n === 1 ? r.offsetY = i : r.blur = i, n++) : r.color = lt.parse(A, i);
@@ -14948,10 +14950,10 @@ var pb = {
14948
14950
  return e.length === 1 && ts(e[0], "none") ? [] : Me(e).map(function(t) {
14949
14951
  for (var r = {
14950
14952
  color: 255,
14951
- offsetX: WA,
14952
- offsetY: WA,
14953
- blur: WA,
14954
- spread: WA,
14953
+ offsetX: JA,
14954
+ offsetY: JA,
14955
+ blur: JA,
14956
+ spread: JA,
14955
14957
  inset: !1
14956
14958
  }, n = 0, a = 0; a < t.length; a++) {
14957
14959
  var i = t[a];
@@ -15100,10 +15102,10 @@ var pb = {
15100
15102
  return Gs.parse(A, a.parseComponentValue());
15101
15103
  case "length":
15102
15104
  var s = a.parseComponentValue();
15103
- return ht(s) ? s : WA;
15105
+ return ht(s) ? s : JA;
15104
15106
  case "length-percentage":
15105
15107
  var o = a.parseComponentValue();
15106
- return LA(o) ? o : WA;
15108
+ return LA(o) ? o : JA;
15107
15109
  case "time":
15108
15110
  return s0.parse(A, a.parseComponentValue());
15109
15111
  }
@@ -15336,38 +15338,38 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
15336
15338
  return e(r);
15337
15339
  }, r.onerror = t, r.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(new XMLSerializer().serializeToString(A));
15338
15340
  });
15339
- }, XA = {
15341
+ }, WA = {
15340
15342
  get SUPPORT_RANGE_BOUNDS() {
15341
15343
  var A = hT(document);
15342
- return Object.defineProperty(XA, "SUPPORT_RANGE_BOUNDS", { value: A }), A;
15344
+ return Object.defineProperty(WA, "SUPPORT_RANGE_BOUNDS", { value: A }), A;
15343
15345
  },
15344
15346
  get SUPPORT_WORD_BREAKING() {
15345
- var A = XA.SUPPORT_RANGE_BOUNDS && dT(document);
15346
- return Object.defineProperty(XA, "SUPPORT_WORD_BREAKING", { value: A }), A;
15347
+ var A = WA.SUPPORT_RANGE_BOUNDS && dT(document);
15348
+ return Object.defineProperty(WA, "SUPPORT_WORD_BREAKING", { value: A }), A;
15347
15349
  },
15348
15350
  get SUPPORT_SVG_DRAWING() {
15349
15351
  var A = pT(document);
15350
- return Object.defineProperty(XA, "SUPPORT_SVG_DRAWING", { value: A }), A;
15352
+ return Object.defineProperty(WA, "SUPPORT_SVG_DRAWING", { value: A }), A;
15351
15353
  },
15352
15354
  get SUPPORT_FOREIGNOBJECT_DRAWING() {
15353
15355
  var A = typeof Array.from == "function" && typeof window.fetch == "function" ? ET(document) : Promise.resolve(!1);
15354
- return Object.defineProperty(XA, "SUPPORT_FOREIGNOBJECT_DRAWING", { value: A }), A;
15356
+ return Object.defineProperty(WA, "SUPPORT_FOREIGNOBJECT_DRAWING", { value: A }), A;
15355
15357
  },
15356
15358
  get SUPPORT_CORS_IMAGES() {
15357
15359
  var A = gT();
15358
- return Object.defineProperty(XA, "SUPPORT_CORS_IMAGES", { value: A }), A;
15360
+ return Object.defineProperty(WA, "SUPPORT_CORS_IMAGES", { value: A }), A;
15359
15361
  },
15360
15362
  get SUPPORT_RESPONSE_TYPE() {
15361
15363
  var A = BT();
15362
- return Object.defineProperty(XA, "SUPPORT_RESPONSE_TYPE", { value: A }), A;
15364
+ return Object.defineProperty(WA, "SUPPORT_RESPONSE_TYPE", { value: A }), A;
15363
15365
  },
15364
15366
  get SUPPORT_CORS_XHR() {
15365
15367
  var A = "withCredentials" in new XMLHttpRequest();
15366
- return Object.defineProperty(XA, "SUPPORT_CORS_XHR", { value: A }), A;
15368
+ return Object.defineProperty(WA, "SUPPORT_CORS_XHR", { value: A }), A;
15367
15369
  },
15368
15370
  get SUPPORT_NATIVE_TEXT_SEGMENTATION() {
15369
15371
  var A = !!(typeof Intl < "u" && Intl.Segmenter);
15370
- return Object.defineProperty(XA, "SUPPORT_NATIVE_TEXT_SEGMENTATION", { value: A }), A;
15372
+ return Object.defineProperty(WA, "SUPPORT_NATIVE_TEXT_SEGMENTATION", { value: A }), A;
15371
15373
  }
15372
15374
  }, Rr = (
15373
15375
  /** @class */
@@ -15381,7 +15383,7 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
15381
15383
  var n = bT(e, t), a = [], i = 0;
15382
15384
  return n.forEach(function(s) {
15383
15385
  if (t.textDecorationLine.length || s.trim().length > 0)
15384
- if (XA.SUPPORT_RANGE_BOUNDS) {
15386
+ if (WA.SUPPORT_RANGE_BOUNDS) {
15385
15387
  var o = _o(r, i, s.length).getClientRects();
15386
15388
  if (o.length > 1) {
15387
15389
  var c = Ys(s), l = 0;
@@ -15394,7 +15396,7 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
15394
15396
  var f = r.splitText(s.length);
15395
15397
  a.push(new Rr(s, CT(A, r))), r = f;
15396
15398
  }
15397
- else XA.SUPPORT_RANGE_BOUNDS || (r = r.splitText(s.length));
15399
+ else WA.SUPPORT_RANGE_BOUNDS || (r = r.splitText(s.length));
15398
15400
  i += s.length;
15399
15401
  }), a;
15400
15402
  }, CT = function(A, e) {
@@ -15417,7 +15419,7 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
15417
15419
  var n = r.createRange();
15418
15420
  return n.setStart(A, e), n.setEnd(A, e + t), n;
15419
15421
  }, Ys = function(A) {
15420
- if (XA.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
15422
+ if (WA.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
15421
15423
  var e = new Intl.Segmenter(void 0, { granularity: "grapheme" });
15422
15424
  return Array.from(e.segment(A)).map(function(t) {
15423
15425
  return t.segment;
@@ -15425,7 +15427,7 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
15425
15427
  }
15426
15428
  return fT(A);
15427
15429
  }, wT = function(A, e) {
15428
- if (XA.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
15430
+ if (WA.SUPPORT_NATIVE_TEXT_SEGMENTATION) {
15429
15431
  var t = new Intl.Segmenter(void 0, {
15430
15432
  granularity: "word"
15431
15433
  });
@@ -16080,9 +16082,9 @@ var nT = 1, ii = 2, si = 3, bo = 4, To = 5, aT = 7, Uo = 8, ui = 9, oi = 10, Qo
16080
16082
  if (!n.contentWindow)
16081
16083
  return Promise.reject("Unable to find iframe window");
16082
16084
  var a = e.defaultView.pageXOffset, i = e.defaultView.pageYOffset, s = n.contentWindow, o = s.document, c = JT(n).then(function() {
16083
- return ie(r, void 0, void 0, function() {
16085
+ return se(r, void 0, void 0, function() {
16084
16086
  var l, f;
16085
- return Ae(this, function(h) {
16087
+ return ee(this, function(h) {
16086
16088
  switch (h.label) {
16087
16089
  case 0:
16088
16090
  return this.scrolledElements.forEach($T), s && (s.scrollTo(t.left, t.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (s.scrollY !== t.top || s.scrollX !== t.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(s.scrollX - t.left, s.scrollY - t.top, 0, 0))), l = this.options.onclone, f = this.clonedReferenceElement, typeof f > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : o.fonts && o.fonts.ready ? [4, o.fonts.ready] : [3, 2];
@@ -16348,12 +16350,12 @@ var YT = function(A, e) {
16348
16350
  }, A.prototype.match = function(e) {
16349
16351
  return this._cache[e];
16350
16352
  }, A.prototype.loadImage = function(e) {
16351
- return ie(this, void 0, void 0, function() {
16353
+ return se(this, void 0, void 0, function() {
16352
16354
  var t, r, n, a, i = this;
16353
- return Ae(this, function(s) {
16355
+ return ee(this, function(s) {
16354
16356
  switch (s.label) {
16355
16357
  case 0:
16356
- return t = Q0.isSameOrigin(e), r = !di(e) && this._options.useCORS === !0 && XA.SUPPORT_CORS_IMAGES && !t, n = !di(e) && !t && !gi(e) && typeof this._options.proxy == "string" && XA.SUPPORT_CORS_XHR && !r, !t && this._options.allowTaint === !1 && !di(e) && !gi(e) && !n && !r ? [
16358
+ return t = Q0.isSameOrigin(e), r = !di(e) && this._options.useCORS === !0 && WA.SUPPORT_CORS_IMAGES && !t, n = !di(e) && !t && !gi(e) && typeof this._options.proxy == "string" && WA.SUPPORT_CORS_XHR && !r, !t && this._options.allowTaint === !1 && !di(e) && !gi(e) && !n && !r ? [
16357
16359
  2
16358
16360
  /*return*/
16359
16361
  ] : (a = e, n ? [4, this.proxy(a)] : [3, 2]);
@@ -16385,7 +16387,7 @@ var YT = function(A, e) {
16385
16387
  throw new Error("No proxy defined");
16386
16388
  var n = e.substring(0, 256);
16387
16389
  return new Promise(function(a, i) {
16388
- var s = XA.SUPPORT_RESPONSE_TYPE ? "blob" : "text", o = new XMLHttpRequest();
16390
+ var s = WA.SUPPORT_RESPONSE_TYPE ? "blob" : "text", o = new XMLHttpRequest();
16389
16391
  o.onload = function() {
16390
16392
  if (o.status === 200)
16391
16393
  if (s === "text")
@@ -16413,7 +16415,7 @@ var YT = function(A, e) {
16413
16415
  }, A;
16414
16416
  }()
16415
16417
  ), nU = /^data:image\/svg\+xml/i, aU = /^data:image\/.*;base64,/i, iU = /^data:image\/.*/i, sU = function(A) {
16416
- return XA.SUPPORT_SVG_DRAWING || !oU(A);
16418
+ return WA.SUPPORT_SVG_DRAWING || !oU(A);
16417
16419
  }, di = function(A) {
16418
16420
  return iU.test(A);
16419
16421
  }, uU = function(A) {
@@ -16851,9 +16853,9 @@ var TA = function(A, e, t, r, n) {
16851
16853
  }, e.prototype.popEffect = function() {
16852
16854
  this._activeEffects.pop(), this.ctx.restore();
16853
16855
  }, e.prototype.renderStack = function(t) {
16854
- return ie(this, void 0, void 0, function() {
16856
+ return se(this, void 0, void 0, function() {
16855
16857
  var r;
16856
- return Ae(this, function(n) {
16858
+ return ee(this, function(n) {
16857
16859
  switch (n.label) {
16858
16860
  case 0:
16859
16861
  return r = t.element.container.styles, r.isVisible() ? [4, this.renderStackContent(t)] : [3, 2];
@@ -16868,8 +16870,8 @@ var TA = function(A, e, t, r, n) {
16868
16870
  });
16869
16871
  });
16870
16872
  }, e.prototype.renderNode = function(t) {
16871
- return ie(this, void 0, void 0, function() {
16872
- return Ae(this, function(r) {
16873
+ return se(this, void 0, void 0, function() {
16874
+ return ee(this, function(r) {
16873
16875
  switch (r.label) {
16874
16876
  case 0:
16875
16877
  if (OA(
@@ -16911,18 +16913,18 @@ var TA = function(A, e, t, r, n) {
16911
16913
  a
16912
16914
  ];
16913
16915
  }, e.prototype.renderTextNode = function(t, r) {
16914
- return ie(this, void 0, void 0, function() {
16916
+ return se(this, void 0, void 0, function() {
16915
16917
  var n, a, i, s, o, c, l, f, h = this;
16916
- return Ae(this, function(m) {
16918
+ return ee(this, function(m) {
16917
16919
  return n = this.createFontStyle(r), a = n[0], i = n[1], s = n[2], this.ctx.font = a, this.ctx.direction = r.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", o = this.fontMetrics.getMetrics(i, s), c = o.baseline, l = o.middle, f = r.paintOrder, t.textBounds.forEach(function(E) {
16918
16920
  f.forEach(function(T) {
16919
16921
  switch (T) {
16920
16922
  case 0:
16921
- h.ctx.fillStyle = RA(r.color), h.renderTextWithLetterSpacing(E, r.letterSpacing, c);
16923
+ h.ctx.fillStyle = MA(r.color), h.renderTextWithLetterSpacing(E, r.letterSpacing, c);
16922
16924
  var x = r.textShadow;
16923
16925
  x.length && E.text.trim().length && (x.slice(0).reverse().forEach(function(w) {
16924
- h.ctx.shadowColor = RA(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);
16925
- }), h.ctx.shadowColor = "", h.ctx.shadowOffsetX = 0, h.ctx.shadowOffsetY = 0, h.ctx.shadowBlur = 0), r.textDecorationLine.length && (h.ctx.fillStyle = RA(r.textDecorationColor || r.color), r.textDecorationLine.forEach(function(w) {
16926
+ 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);
16927
+ }), 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) {
16926
16928
  switch (w) {
16927
16929
  case 1:
16928
16930
  h.ctx.fillRect(E.bounds.left, Math.round(E.bounds.top + c), E.bounds.width, 1);
@@ -16937,7 +16939,7 @@ var TA = function(A, e, t, r, n) {
16937
16939
  }));
16938
16940
  break;
16939
16941
  case 1:
16940
- r.webkitTextStrokeWidth && E.text.trim().length && (h.ctx.strokeStyle = RA(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";
16942
+ 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";
16941
16943
  break;
16942
16944
  }
16943
16945
  });
@@ -16953,9 +16955,9 @@ var TA = function(A, e, t, r, n) {
16953
16955
  this.path(i), this.ctx.save(), this.ctx.clip(), this.ctx.drawImage(n, 0, 0, t.intrinsicWidth, t.intrinsicHeight, a.left, a.top, a.width, a.height), this.ctx.restore();
16954
16956
  }
16955
16957
  }, e.prototype.renderNodeContent = function(t) {
16956
- return ie(this, void 0, void 0, function() {
16958
+ return se(this, void 0, void 0, function() {
16957
16959
  var r, n, a, i, s, o, y, y, c, l, f, h, R, m, E, O, T, x, w, y, D, R, O;
16958
- return Ae(this, function(p) {
16960
+ return ee(this, function(p) {
16959
16961
  switch (p.label) {
16960
16962
  case 0:
16961
16963
  this.applyEffects(t.getEffects(
@@ -17006,8 +17008,8 @@ var TA = function(A, e, t, r, n) {
17006
17008
  new k(r.bounds.left + f * 0.72983, r.bounds.top + f * 0.23),
17007
17009
  new k(r.bounds.left + f * 0.84, r.bounds.top + f * 0.34085),
17008
17010
  new k(r.bounds.left + f * 0.39363, r.bounds.top + f * 0.79)
17009
- ]), this.ctx.fillStyle = RA(So), this.ctx.fill(), this.ctx.restore()) : r.type === sa && 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 = RA(So), this.ctx.fill(), this.ctx.restore())), yU(r) && r.value.length) {
17010
- switch (h = this.createFontStyle(a), R = h[0], m = h[1], E = this.fontMetrics.getMetrics(R, m).baseline, this.ctx.font = R, this.ctx.fillStyle = RA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = _U(r.styles.textAlign), O = fa(r), T = 0, r.styles.textAlign) {
17011
+ ]), this.ctx.fillStyle = MA(So), this.ctx.fill(), this.ctx.restore()) : r.type === sa && 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(So), this.ctx.fill(), this.ctx.restore())), yU(r) && r.value.length) {
17012
+ switch (h = this.createFontStyle(a), R = h[0], m = h[1], E = this.fontMetrics.getMetrics(R, m).baseline, this.ctx.font = R, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "alphabetic", this.ctx.textAlign = _U(r.styles.textAlign), O = fa(r), T = 0, r.styles.textAlign) {
17011
17013
  case 1:
17012
17014
  T += O.width / 2;
17013
17015
  break;
@@ -17039,7 +17041,7 @@ var TA = function(A, e, t, r, n) {
17039
17041
  case 18:
17040
17042
  return [3, 20];
17041
17043
  case 19:
17042
- t.listValue && r.styles.listStyleType !== -1 && (R = this.createFontStyle(a)[0], this.ctx.font = R, this.ctx.fillStyle = RA(a.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", O = new qe(r.bounds.left, r.bounds.top + CA(r.styles.paddingTop, r.bounds.width), r.bounds.width, go(a.lineHeight, a.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Rr(t.listValue, O), a.letterSpacing, go(a.lineHeight, a.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), p.label = 20;
17044
+ t.listValue && r.styles.listStyleType !== -1 && (R = this.createFontStyle(a)[0], this.ctx.font = R, this.ctx.fillStyle = MA(a.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", O = new qe(r.bounds.left, r.bounds.top + CA(r.styles.paddingTop, r.bounds.width), r.bounds.width, go(a.lineHeight, a.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Rr(t.listValue, O), a.letterSpacing, go(a.lineHeight, a.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), p.label = 20;
17043
17045
  case 20:
17044
17046
  return [
17045
17047
  2
@@ -17049,9 +17051,9 @@ var TA = function(A, e, t, r, n) {
17049
17051
  });
17050
17052
  });
17051
17053
  }, e.prototype.renderStackContent = function(t) {
17052
- return ie(this, void 0, void 0, function() {
17054
+ return se(this, void 0, void 0, function() {
17053
17055
  var r, n, w, a, i, w, s, o, w, c, l, w, f, h, w, m, E, w, T, x, w;
17054
- return Ae(this, function(y) {
17056
+ return ee(this, function(y) {
17055
17057
  switch (y.label) {
17056
17058
  case 0:
17057
17059
  if (OA(
@@ -17148,14 +17150,14 @@ var TA = function(A, e, t, r, n) {
17148
17150
  var o = s.getContext("2d");
17149
17151
  return o.drawImage(t, 0, 0, t.width, t.height, 0, 0, r, n), s;
17150
17152
  }, e.prototype.renderBackgroundImage = function(t) {
17151
- return ie(this, void 0, void 0, function() {
17153
+ return se(this, void 0, void 0, function() {
17152
17154
  var r, n, a, i, s, o;
17153
- return Ae(this, function(c) {
17155
+ return ee(this, function(c) {
17154
17156
  switch (c.label) {
17155
17157
  case 0:
17156
17158
  r = t.styles.backgroundImage.length - 1, n = function(l) {
17157
- var f, h, m, eA, mA, vA, z, iA, V, E, eA, mA, vA, z, iA, T, x, w, y, D, R, O, p, H, V, P, eA, uA, fA, z, iA, pA, mA, vA, JA, SA, qA, jA, se, VA, zA, ne;
17158
- return Ae(this, function(I) {
17159
+ var f, h, m, eA, mA, vA, z, iA, V, E, eA, mA, vA, z, iA, T, x, w, y, D, R, O, p, H, V, P, eA, uA, fA, z, iA, pA, mA, vA, qA, SA, jA, zA, ue, YA, $A, ae;
17160
+ return ee(this, function(I) {
17159
17161
  switch (I.label) {
17160
17162
  case 0:
17161
17163
  if (l.type !== 0) return [3, 5];
@@ -17174,14 +17176,14 @@ var TA = function(A, e, t, r, n) {
17174
17176
  ]), eA = m[0], mA = m[1], vA = m[2], z = m[3], iA = m[4], V = a.ctx.createPattern(a.resizeImage(f, z, iA), "repeat"), a.renderRepeat(eA, V, mA, vA)), [3, 6];
17175
17177
  case 5:
17176
17178
  dw(l) ? (E = Bi(t, r, [null, null, null]), eA = E[0], mA = E[1], vA = E[2], z = E[3], iA = E[4], T = ow(l.angle, z, iA), x = T[0], w = T[1], y = T[2], D = T[3], R = T[4], O = document.createElement("canvas"), O.width = z, O.height = iA, p = O.getContext("2d"), H = p.createLinearGradient(w, D, y, R), fo(l.stops, x).forEach(function(_) {
17177
- return H.addColorStop(_.stop, RA(_.color));
17179
+ return H.addColorStop(_.stop, MA(_.color));
17178
17180
  }), p.fillStyle = H, p.fillRect(0, 0, z, iA), z > 0 && iA > 0 && (V = a.ctx.createPattern(O, "repeat"), a.renderRepeat(eA, V, mA, vA))) : gw(l) && (P = Bi(t, r, [
17179
17181
  null,
17180
17182
  null,
17181
17183
  null
17182
- ]), eA = P[0], uA = P[1], fA = P[2], z = P[3], iA = P[4], pA = l.position.length === 0 ? [Ks] : l.position, mA = CA(pA[0], z), vA = CA(pA[pA.length - 1], iA), JA = cw(l, mA, vA, z, iA), SA = JA[0], qA = JA[1], SA > 0 && qA > 0 && (jA = a.ctx.createRadialGradient(uA + mA, fA + vA, 0, uA + mA, fA + vA, SA), fo(l.stops, SA * 2).forEach(function(_) {
17183
- return jA.addColorStop(_.stop, RA(_.color));
17184
- }), a.path(eA), a.ctx.fillStyle = jA, SA !== qA ? (se = t.bounds.left + 0.5 * t.bounds.width, VA = t.bounds.top + 0.5 * t.bounds.height, zA = qA / SA, ne = 1 / zA, a.ctx.save(), a.ctx.translate(se, VA), a.ctx.transform(1, 0, 0, zA, 0, 0), a.ctx.translate(-se, -VA), a.ctx.fillRect(uA, ne * (fA - VA) + VA, z, iA * ne), a.ctx.restore()) : a.ctx.fill())), I.label = 6;
17184
+ ]), eA = P[0], uA = P[1], fA = P[2], z = P[3], iA = P[4], pA = l.position.length === 0 ? [Ks] : l.position, mA = CA(pA[0], z), vA = CA(pA[pA.length - 1], iA), qA = cw(l, mA, vA, z, iA), SA = qA[0], jA = qA[1], SA > 0 && jA > 0 && (zA = a.ctx.createRadialGradient(uA + mA, fA + vA, 0, uA + mA, fA + vA, SA), fo(l.stops, SA * 2).forEach(function(_) {
17185
+ return zA.addColorStop(_.stop, MA(_.color));
17186
+ }), a.path(eA), a.ctx.fillStyle = zA, SA !== jA ? (ue = t.bounds.left + 0.5 * t.bounds.width, YA = t.bounds.top + 0.5 * t.bounds.height, $A = jA / SA, ae = 1 / $A, a.ctx.save(), a.ctx.translate(ue, YA), a.ctx.transform(1, 0, 0, $A, 0, 0), a.ctx.translate(-ue, -YA), a.ctx.fillRect(uA, ae * (fA - YA) + YA, z, iA * ae), a.ctx.restore()) : a.ctx.fill())), I.label = 6;
17185
17187
  case 6:
17186
17188
  return r--, [
17187
17189
  2
@@ -17205,18 +17207,18 @@ var TA = function(A, e, t, r, n) {
17205
17207
  });
17206
17208
  });
17207
17209
  }, e.prototype.renderSolidBorder = function(t, r, n) {
17208
- return ie(this, void 0, void 0, function() {
17209
- return Ae(this, function(a) {
17210
- return this.path(Vo(n, r)), this.ctx.fillStyle = RA(t), this.ctx.fill(), [
17210
+ return se(this, void 0, void 0, function() {
17211
+ return ee(this, function(a) {
17212
+ return this.path(Vo(n, r)), this.ctx.fillStyle = MA(t), this.ctx.fill(), [
17211
17213
  2
17212
17214
  /*return*/
17213
17215
  ];
17214
17216
  });
17215
17217
  });
17216
17218
  }, e.prototype.renderDoubleBorder = function(t, r, n, a) {
17217
- return ie(this, void 0, void 0, function() {
17219
+ return se(this, void 0, void 0, function() {
17218
17220
  var i, s;
17219
- return Ae(this, function(o) {
17221
+ return ee(this, function(o) {
17220
17222
  switch (o.label) {
17221
17223
  case 0:
17222
17224
  return r < 3 ? [4, this.renderSolidBorder(t, n, a)] : [3, 2];
@@ -17226,7 +17228,7 @@ var TA = function(A, e, t, r, n) {
17226
17228
  /*return*/
17227
17229
  ];
17228
17230
  case 2:
17229
- return i = EU(a, n), this.path(i), this.ctx.fillStyle = RA(t), this.ctx.fill(), s = mU(a, n), this.path(s), this.ctx.fill(), [
17231
+ return i = EU(a, n), this.path(i), this.ctx.fillStyle = MA(t), this.ctx.fill(), s = mU(a, n), this.path(s), this.ctx.fill(), [
17230
17232
  2
17231
17233
  /*return*/
17232
17234
  ];
@@ -17234,9 +17236,9 @@ var TA = function(A, e, t, r, n) {
17234
17236
  });
17235
17237
  });
17236
17238
  }, e.prototype.renderNodeBackgroundAndBorders = function(t) {
17237
- return ie(this, void 0, void 0, function() {
17239
+ return se(this, void 0, void 0, function() {
17238
17240
  var r, n, a, i, s, o, c, l, f = this;
17239
- return Ae(this, function(h) {
17241
+ return ee(this, function(h) {
17240
17242
  switch (h.label) {
17241
17243
  case 0:
17242
17244
  return this.applyEffects(t.getEffects(
@@ -17247,12 +17249,12 @@ var TA = function(A, e, t, r, n) {
17247
17249
  { style: r.borderRightStyle, color: r.borderRightColor, width: r.borderRightWidth },
17248
17250
  { style: r.borderBottomStyle, color: r.borderBottomColor, width: r.borderBottomWidth },
17249
17251
  { style: r.borderLeftStyle, color: r.borderLeftColor, width: r.borderLeftWidth }
17250
- ], i = xU(Yt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(i), this.ctx.clip(), ft(r.backgroundColor) || (this.ctx.fillStyle = RA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
17252
+ ], i = xU(Yt(r.backgroundClip, 0), t.curves), n || r.boxShadow.length ? (this.ctx.save(), this.path(i), this.ctx.clip(), ft(r.backgroundColor) || (this.ctx.fillStyle = MA(r.backgroundColor), this.ctx.fill()), [4, this.renderBackgroundImage(t.container)]) : [3, 2];
17251
17253
  case 1:
17252
17254
  h.sent(), this.ctx.restore(), r.boxShadow.slice(0).reverse().forEach(function(m) {
17253
17255
  f.ctx.save();
17254
17256
  var E = ca(t.curves), T = m.inset ? 0 : vU, x = BU(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));
17255
- m.inset ? (f.path(E), f.ctx.clip(), f.mask(x)) : (f.mask(E), f.ctx.clip(), f.path(x)), f.ctx.shadowOffsetX = m.offsetX.number + T, f.ctx.shadowOffsetY = m.offsetY.number, f.ctx.shadowColor = RA(m.color), f.ctx.shadowBlur = m.blur.number, f.ctx.fillStyle = m.inset ? RA(m.color) : "rgba(0,0,0,1)", f.ctx.fill(), f.ctx.restore();
17257
+ m.inset ? (f.path(E), f.ctx.clip(), f.mask(x)) : (f.mask(E), f.ctx.clip(), f.path(x)), 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();
17256
17258
  }), h.label = 2;
17257
17259
  case 2:
17258
17260
  s = 0, o = 0, c = a, h.label = 3;
@@ -17299,22 +17301,22 @@ var TA = function(A, e, t, r, n) {
17299
17301
  });
17300
17302
  });
17301
17303
  }, e.prototype.renderDashedDottedBorder = function(t, r, n, a, i) {
17302
- return ie(this, void 0, void 0, function() {
17304
+ return se(this, void 0, void 0, function() {
17303
17305
  var s, o, c, l, f, h, m, E, T, x, w, y, D, R, O, p, O, p;
17304
- return Ae(this, function(H) {
17305
- return this.ctx.save(), s = CU(a, n), o = Vo(a, n), i === 2 && (this.path(o), this.ctx.clip()), be(o[0]) ? (c = o[0].start.x, l = o[0].start.y) : (c = o[0].x, l = o[0].y), be(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(), i === 3 ? this.formatPath(s) : this.formatPath(o.slice(0, 2)), E = r < 3 ? r * 3 : r * 2, T = r < 3 ? r * 2 : r, i === 3 && (E = r, T = r), x = !0, m <= E * 2 ? x = !1 : m <= E * 2 + T ? (w = m / (2 * E + T), E *= w, T *= w) : (y = Math.floor((m + T) / (E + T)), D = (m - y * E) / (y - 1), R = (m - (y + 1) * E) / y, T = R <= 0 || Math.abs(T - D) < Math.abs(T - R) ? D : R), x && (i === 3 ? this.ctx.setLineDash([0, E + T]) : this.ctx.setLineDash([E, T])), i === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = RA(t), this.ctx.stroke(), this.ctx.setLineDash([]), i === 2 && (be(o[0]) && (O = o[3], p = o[0], this.ctx.beginPath(), this.formatPath([new k(O.end.x, O.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke()), be(o[1]) && (O = o[1], p = o[2], this.ctx.beginPath(), this.formatPath([new k(O.end.x, O.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
17306
+ return ee(this, function(H) {
17307
+ return this.ctx.save(), s = CU(a, n), o = Vo(a, n), i === 2 && (this.path(o), this.ctx.clip()), be(o[0]) ? (c = o[0].start.x, l = o[0].start.y) : (c = o[0].x, l = o[0].y), be(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(), i === 3 ? this.formatPath(s) : this.formatPath(o.slice(0, 2)), E = r < 3 ? r * 3 : r * 2, T = r < 3 ? r * 2 : r, i === 3 && (E = r, T = r), x = !0, m <= E * 2 ? x = !1 : m <= E * 2 + T ? (w = m / (2 * E + T), E *= w, T *= w) : (y = Math.floor((m + T) / (E + T)), D = (m - y * E) / (y - 1), R = (m - (y + 1) * E) / y, T = R <= 0 || Math.abs(T - D) < Math.abs(T - R) ? D : R), x && (i === 3 ? this.ctx.setLineDash([0, E + T]) : this.ctx.setLineDash([E, T])), i === 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([]), i === 2 && (be(o[0]) && (O = o[3], p = o[0], this.ctx.beginPath(), this.formatPath([new k(O.end.x, O.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke()), be(o[1]) && (O = o[1], p = o[2], this.ctx.beginPath(), this.formatPath([new k(O.end.x, O.end.y), new k(p.start.x, p.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
17306
17308
  2
17307
17309
  /*return*/
17308
17310
  ];
17309
17311
  });
17310
17312
  });
17311
17313
  }, e.prototype.render = function(t) {
17312
- return ie(this, void 0, void 0, function() {
17314
+ return se(this, void 0, void 0, function() {
17313
17315
  var r;
17314
- return Ae(this, function(n) {
17316
+ return ee(this, function(n) {
17315
17317
  switch (n.label) {
17316
17318
  case 0:
17317
- return this.options.backgroundColor && (this.ctx.fillStyle = RA(this.options.backgroundColor), this.ctx.fillRect(this.options.x, this.options.y, this.options.width, this.options.height)), r = pU(t), [4, this.renderStack(r)];
17319
+ 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 = pU(t), [4, this.renderStack(r)];
17318
17320
  case 1:
17319
17321
  return n.sent(), this.applyEffects([]), [2, this.canvas];
17320
17322
  }
@@ -17357,14 +17359,14 @@ var TA = function(A, e, t, r, n) {
17357
17359
  return n.canvas = r.canvas ? r.canvas : document.createElement("canvas"), n.ctx = n.canvas.getContext("2d"), n.options = r, n.canvas.width = Math.floor(r.width * r.scale), n.canvas.height = Math.floor(r.height * r.scale), n.canvas.style.width = r.width + "px", n.canvas.style.height = r.height + "px", n.ctx.scale(n.options.scale, n.options.scale), n.ctx.translate(-r.x, -r.y), n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized (" + r.width + "x" + r.height + " at " + r.x + "," + r.y + ") with scale " + r.scale), n;
17358
17360
  }
17359
17361
  return e.prototype.render = function(t) {
17360
- return ie(this, void 0, void 0, function() {
17362
+ return se(this, void 0, void 0, function() {
17361
17363
  var r, n;
17362
- return Ae(this, function(a) {
17364
+ return ee(this, function(a) {
17363
17365
  switch (a.label) {
17364
17366
  case 0:
17365
17367
  return r = as(this.options.width * this.options.scale, this.options.height * this.options.scale, this.options.scale, this.options.scale, t), [4, NU(r)];
17366
17368
  case 1:
17367
- return n = a.sent(), this.options.backgroundColor && (this.ctx.fillStyle = RA(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];
17369
+ 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];
17368
17370
  }
17369
17371
  });
17370
17372
  });
@@ -17418,10 +17420,10 @@ var TA = function(A, e, t, r, n) {
17418
17420
  };
17419
17421
  typeof window < "u" && Q0.setContext(window);
17420
17422
  var RU = function(A, e) {
17421
- return ie(void 0, void 0, void 0, function() {
17422
- var t, r, n, a, i, s, o, c, l, f, h, m, E, T, x, w, y, D, R, O, H, p, H, V, P, eA, uA, fA, z, iA, pA, mA, vA, JA, SA, qA, jA, se, VA, zA;
17423
- return Ae(this, function(ne) {
17424
- switch (ne.label) {
17423
+ return se(void 0, void 0, void 0, function() {
17424
+ var t, r, n, a, i, s, o, c, l, f, h, m, E, T, x, w, y, D, R, O, H, p, H, V, P, eA, uA, fA, z, iA, pA, mA, vA, qA, SA, jA, zA, ue, YA, $A;
17425
+ return ee(this, function(ae) {
17426
+ switch (ae.label) {
17425
17427
  case 0:
17426
17428
  if (!A || typeof A != "object")
17427
17429
  return [2, Promise.reject("Invalid element provided as first argument")];
@@ -17447,23 +17449,23 @@ var RU = function(A, e) {
17447
17449
  copyStyles: c
17448
17450
  }, o.logger.debug("Starting document clone with size " + s.width + "x" + s.height + " scrolled to " + -s.left + "," + -s.top), f = new Po(o, A, l), h = f.clonedReferenceElement, h ? [4, f.toIFrame(t, s)] : [2, Promise.reject("Unable to find element in cloned iframe")];
17449
17451
  case 1:
17450
- return m = ne.sent(), E = Ws(h) || kT(h) ? B1(h.ownerDocument) : Fa(o, h), T = E.width, x = E.height, w = E.left, y = E.top, D = MU(o, h, e.backgroundColor), R = {
17452
+ return m = ae.sent(), E = Ws(h) || kT(h) ? B1(h.ownerDocument) : Fa(o, h), T = E.width, x = E.height, w = E.left, y = E.top, D = MU(o, h, e.backgroundColor), R = {
17451
17453
  canvas: e.canvas,
17452
17454
  backgroundColor: D,
17453
- scale: (SA = (JA = e.scale) !== null && JA !== void 0 ? JA : r.devicePixelRatio) !== null && SA !== void 0 ? SA : 1,
17454
- x: ((qA = e.x) !== null && qA !== void 0 ? qA : 0) + w,
17455
- y: ((jA = e.y) !== null && jA !== void 0 ? jA : 0) + y,
17456
- width: (se = e.width) !== null && se !== void 0 ? se : Math.ceil(T),
17457
- height: (VA = e.height) !== null && VA !== void 0 ? VA : Math.ceil(x)
17455
+ scale: (SA = (qA = e.scale) !== null && qA !== void 0 ? qA : r.devicePixelRatio) !== null && SA !== void 0 ? SA : 1,
17456
+ x: ((jA = e.x) !== null && jA !== void 0 ? jA : 0) + w,
17457
+ y: ((zA = e.y) !== null && zA !== void 0 ? zA : 0) + y,
17458
+ width: (ue = e.width) !== null && ue !== void 0 ? ue : Math.ceil(T),
17459
+ height: (YA = e.height) !== null && YA !== void 0 ? YA : Math.ceil(x)
17458
17460
  }, c ? (o.logger.debug("Document cloned, using foreign object rendering"), H = new HU(o, R), [4, H.render(h)]) : [3, 3];
17459
17461
  case 2:
17460
- return O = ne.sent(), [3, 5];
17462
+ return O = ae.sent(), [3, 5];
17461
17463
  case 3:
17462
17464
  return o.logger.debug("Document cloned, element located at " + w + "," + y + " with size " + T + "x" + x + " using computed rendering"), o.logger.debug("Starting DOM parsing"), p = p0(o, h), D === p.styles.backgroundColor && (p.styles.backgroundColor = Je.TRANSPARENT), o.logger.debug("Starting renderer for element at " + R.x + "," + R.y + " with size " + R.width + "x" + R.height), H = new IU(o, R), [4, H.render(p)];
17463
17465
  case 4:
17464
- O = ne.sent(), ne.label = 5;
17466
+ O = ae.sent(), ae.label = 5;
17465
17467
  case 5:
17466
- return (!((zA = e.removeContainer) !== null && zA !== void 0) || zA) && (Po.destroy(m) || o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), o.logger.debug("Finished rendering"), [2, O];
17468
+ return (!(($A = e.removeContainer) !== null && $A !== void 0) || $A) && (Po.destroy(m) || o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), o.logger.debug("Finished rendering"), [2, O];
17467
17469
  }
17468
17470
  });
17469
17471
  });
@@ -17471,7 +17473,7 @@ var RU = function(A, e) {
17471
17473
  var r = e.ownerDocument, n = r.documentElement ? Dr(A, getComputedStyle(r.documentElement).backgroundColor) : Je.TRANSPARENT, a = r.body ? Dr(A, getComputedStyle(r.body).backgroundColor) : Je.TRANSPARENT, i = typeof t == "string" ? Dr(A, t) : t === null ? Je.TRANSPARENT : 4294967295;
17472
17474
  return e === r.documentElement ? ft(n) ? ft(a) ? i : a : n : i;
17473
17475
  };
17474
- const kU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-4d752e2b]:focus{outline:none}[contenteditable=true][data-v-4d752e2b]{outline:none}textarea[data-v-4d752e2b]{resize:none;border:none;outline:none;background:transparent}.icon-upload[data-v-4d752e2b]{display:none}.icon-upload-box:hover .icon-upload[data-v-4d752e2b]{display:flex}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-c53c9169]{border:1px solid #ccc}.custom-checkbox[data-v-c53c9169]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-c53c9169]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-c53c9169]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17476
+ const kU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;max-width:300px;font-family:微软雅黑}.message-content[data-v-a234b03c]{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;border-radius:4px;box-shadow:0 2px 8px #00000026;font-size:14px}.close-btn[data-v-a234b03c]{background:none;border:none;color:#4b5563;cursor:pointer;margin-left:10px;line-height:1;padding:0}.fade-enter-active[data-v-a234b03c],.fade-leave-active[data-v-a234b03c]{transition:opacity .3s}.fade-enter-from[data-v-a234b03c],.fade-leave-to[data-v-a234b03c]{opacity:0}[contenteditable=true][data-v-de48901b]:focus{outline:none}[contenteditable=true][data-v-de48901b]{outline:none}textarea[data-v-de48901b]{resize:none;border:none;outline:none;background:transparent}.icon-upload[data-v-de48901b]{display:none}.icon-upload-box:hover .icon-upload[data-v-de48901b]{display:flex}.custom-checkbox[data-v-68b8f276]{width:16px;height:16px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-68b8f276]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-68b8f276]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label[data-v-68b8f276]{line-height:1.2;font-size:14px;color:#4b5563}.border[data-v-c53c9169]{border:1px solid #ccc}.custom-checkbox[data-v-c53c9169]{width:18px;height:18px;border:2px solid #d1d5db;border-radius:4px;background-color:#fff;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;cursor:pointer;transition:all .2s ease}.custom-checkbox[data-v-c53c9169]:checked{border-color:#3b82f6;background-color:#3b82f6}.custom-checkbox[data-v-c53c9169]:checked:after{content:"✓";color:#fff;font-size:12px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}/*!
17475
17477
  * Cropper.js v1.6.2
17476
17478
  * https://fengyuanchen.github.io/cropperjs
17477
17479
  *
@@ -17559,7 +17561,7 @@ const kU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
17559
17561
  }), t.value = w, Ei(() => {
17560
17562
  });
17561
17563
  };
17562
- ee(t, (i) => {
17564
+ te(t, (i) => {
17563
17565
  if (!i) return;
17564
17566
  new MutationObserver(() => {
17565
17567
  const o = e.value;
@@ -17600,7 +17602,7 @@ const kU = `.gp-message[data-v-a234b03c]{z-index:999999;transition:all .3s ease;
17600
17602
  console.error("截图生成失败:", f);
17601
17603
  }
17602
17604
  };
17603
- return ee(
17605
+ return te(
17604
17606
  () => [A.htmlContent, A.jsFiles, A.cssFiles],
17605
17607
  n,
17606
17608
  { deep: !0 }
@@ -17660,19 +17662,19 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17660
17662
  const r = A, n = t, a = j(r.rules || []), i = j(r.template), s = j();
17661
17663
  let o = yu("", {}, !1);
17662
17664
  const c = j(""), l = j("#3574e6"), f = j(""), h = j(r.mode);
17663
- ee(
17665
+ te(
17664
17666
  () => r.template,
17665
17667
  (Q) => {
17666
17668
  i.value = Q;
17667
17669
  },
17668
17670
  { immediate: !0 }
17669
- ), ee(
17671
+ ), te(
17670
17672
  () => i.value,
17671
17673
  (Q) => {
17672
- Q && (s.value = JA(Q));
17674
+ Q && (s.value = qA(Q));
17673
17675
  },
17674
17676
  { immediate: !0 }
17675
- ), ee(
17677
+ ), te(
17676
17678
  () => r.css,
17677
17679
  (Q) => {
17678
17680
  Q.forEach((F) => {
@@ -17682,7 +17684,7 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17682
17684
  });
17683
17685
  },
17684
17686
  { immediate: !0 }
17685
- ), ee(
17687
+ ), te(
17686
17688
  () => r.js,
17687
17689
  (Q) => {
17688
17690
  !Q || Q.length === 0 || Q.forEach((F) => {
@@ -17692,13 +17694,13 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17692
17694
  });
17693
17695
  },
17694
17696
  { immediate: !0 }
17695
- ), ee(
17697
+ ), te(
17696
17698
  () => s.value,
17697
17699
  (Q) => {
17698
17700
  Q && n("update:element", Q);
17699
17701
  },
17700
17702
  { immediate: !0 }
17701
- ), ee(
17703
+ ), te(
17702
17704
  () => c.value,
17703
17705
  (Q) => {
17704
17706
  if (document && document.documentElement) {
@@ -17716,10 +17718,10 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17716
17718
  const m = j(), E = j(), T = j(), x = j();
17717
17719
  j();
17718
17720
  const w = j(), y = j(), D = j(""), R = j(r.mode === "design");
17719
- ee(
17721
+ te(
17720
17722
  () => r.rules,
17721
17723
  (Q) => {
17722
- a.value = Q, i.value && (s.value = JA(i.value));
17724
+ a.value = Q, i.value && (s.value = qA(i.value));
17723
17725
  },
17724
17726
  { immediate: !0 }
17725
17727
  );
@@ -17759,13 +17761,13 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17759
17761
  }
17760
17762
  };
17761
17763
  function uA(Q) {
17762
- var F, N, K, oA, hA, NA, dA, $A, tA, ge, ZA;
17763
- w.value = Q, Q.type === X.Text && Q.rule.allowWrap && (je.value = !0, Fe.value = (ZA = (ge = (tA = ($A = (dA = (NA = (hA = (oA = (K = (N = (F = Q.text) == null ? void 0 : F.replace(/<br>/g, `
17764
+ var F, N, K, oA, hA, NA, dA, ZA, tA, ge, Ae;
17765
+ w.value = Q, Q.type === X.Text && Q.rule.allowWrap && (je.value = !0, Fe.value = (Ae = (ge = (tA = (ZA = (dA = (NA = (hA = (oA = (K = (N = (F = Q.text) == null ? void 0 : F.replace(/<br>/g, `
17764
17766
  `)) == null ? void 0 : N.replace(/<br\/>/g, `
17765
17767
  `)) == null ? void 0 : K.replace(/<br \/>/g, `
17766
17768
  `)) == null ? void 0 : oA.replace(/<br \s*\/>/g, `
17767
17769
  `)) == null ? void 0 : hA.replace(/<br\s*\/>/g, `
17768
- `)) == null ? void 0 : NA.replace(/&nbsp;/g, " ")) == null ? void 0 : dA.replace(/&lt;/g, "<")) == null ? void 0 : $A.replace(/&gt;/g, ">")) == null ? void 0 : tA.replace(/&amp;/g, "&")) == null ? void 0 : ge.replace(/&quot;/g, '"')) == null ? void 0 : ZA.replace(/&apos;/g, "'"));
17770
+ `)) == null ? void 0 : NA.replace(/&nbsp;/g, " ")) == null ? void 0 : dA.replace(/&lt;/g, "<")) == null ? void 0 : ZA.replace(/&gt;/g, ">")) == null ? void 0 : tA.replace(/&amp;/g, "&")) == null ? void 0 : ge.replace(/&quot;/g, '"')) == null ? void 0 : Ae.replace(/&apos;/g, "'"));
17769
17771
  }
17770
17772
  function fA(Q, F = "") {
17771
17773
  if (F) {
@@ -17838,7 +17840,7 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17838
17840
  function vA(Q) {
17839
17841
  c.value = Q;
17840
17842
  }
17841
- function JA(Q) {
17843
+ function qA(Q) {
17842
17844
  o = yu(Q);
17843
17845
  const F = o("body").children().toArray().map((K) => SA(o(K)));
17844
17846
  c.value = o("body").html() || "";
@@ -17846,12 +17848,12 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17846
17848
  if (N) {
17847
17849
  let K = function(hA, NA, dA) {
17848
17850
  var ge;
17849
- const $A = hA.xpath.replace(
17851
+ const ZA = hA.xpath.replace(
17850
17852
  NA.xpath,
17851
17853
  dA.xpath
17852
- ), tA = (ge = a.value) == null ? void 0 : ge.find((ZA) => ZA.xpath === $A);
17853
- tA && (hA.rule = tA.rule, hA.type = tA.type), hA.children && hA.children.length > 0 && hA.children.forEach((ZA) => {
17854
- K(ZA, NA, dA);
17854
+ ), tA = (ge = a.value) == null ? void 0 : ge.find((Ae) => Ae.xpath === ZA);
17855
+ tA && (hA.rule = tA.rule, hA.type = tA.type), hA.children && hA.children.length > 0 && hA.children.forEach((Ae) => {
17856
+ K(Ae, NA, dA);
17855
17857
  });
17856
17858
  }, oA = function(hA) {
17857
17859
  if (hA.children && hA.children.length > 0) {
@@ -17859,9 +17861,9 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17859
17861
  (dA) => dA.type === X.Block
17860
17862
  );
17861
17863
  NA && hA.children.forEach((dA) => {
17862
- var $A, tA, ge;
17863
- dA.tag === NA.tag && (dA.rule = NA.rule, dA.type = NA.type, dA.attrs.class = (ge = (tA = ($A = dA.attrs) == null ? void 0 : $A.class) == null ? void 0 : tA.replace(/pc:basis-\d\/\d/g, "")) == null ? void 0 : ge.replace(/basis-\d\/\d/g, ""), dA.children && dA.children.length > 0 && dA.children.forEach((ZA) => {
17864
- K(ZA, dA, NA);
17864
+ var ZA, tA, ge;
17865
+ dA.tag === NA.tag && (dA.rule = NA.rule, dA.type = NA.type, dA.attrs.class = (ge = (tA = (ZA = dA.attrs) == null ? void 0 : ZA.class) == null ? void 0 : tA.replace(/pc:basis-\d\/\d/g, "")) == null ? void 0 : ge.replace(/basis-\d\/\d/g, ""), dA.children && dA.children.length > 0 && dA.children.forEach((Ae) => {
17866
+ K(Ae, dA, NA);
17865
17867
  }));
17866
17868
  }), hA.children.forEach((dA) => {
17867
17869
  oA(dA);
@@ -17881,20 +17883,20 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17881
17883
  return N;
17882
17884
  }
17883
17885
  function SA(Q, F = "") {
17884
- var dA, $A;
17886
+ var dA, ZA;
17885
17887
  function N(tA) {
17886
17888
  if (!tA || !tA[0]) return "";
17887
17889
  const ge = [];
17888
- let ZA = tA;
17889
- for (; ZA.length && ZA[0].tagName !== "html"; ) {
17890
- const Js = ZA[0].tagName, L0 = ZA.parent().children(Js).index(ZA) + 1;
17891
- ge.unshift(`${Js}[${L0}]`), ZA = ZA.parent();
17890
+ let Ae = tA;
17891
+ for (; Ae.length && Ae[0].tagName !== "html"; ) {
17892
+ const Js = Ae[0].tagName, L0 = Ae.parent().children(Js).index(Ae) + 1;
17893
+ ge.unshift(`${Js}[${L0}]`), Ae = Ae.parent();
17892
17894
  }
17893
17895
  return "/html/" + ge.join("/");
17894
17896
  }
17895
17897
  const K = N(Q).replace("/html/body[1]", ""), oA = Q.children().toArray().map((tA) => SA(o(tA), K)).filter((tA) => tA.tag !== "br");
17896
17898
  let hA = (dA = a.value) == null ? void 0 : dA.find((tA) => tA.xpath === K), NA = Q.contents().not(Q.children()).text().trim();
17897
- return hA && (($A = hA.rule) != null && $A.allowWrap) && (NA = Q.html()), {
17899
+ return hA && ((ZA = hA.rule) != null && ZA.allowWrap) && (NA = Q.html()), {
17898
17900
  tag: Q[0].tagName,
17899
17901
  text: NA,
17900
17902
  attrs: Q[0].attribs,
@@ -17905,24 +17907,24 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17905
17907
  rule: (hA == null ? void 0 : hA.rule) || {}
17906
17908
  };
17907
17909
  }
17908
- function qA(Q) {
17910
+ function jA(Q) {
17909
17911
  const F = z(s.value, Q.element.xpath);
17910
17912
  if (F) {
17911
17913
  const N = Wo(F);
17912
17914
  N.editText = Q.newText;
17913
17915
  }
17914
17916
  }
17915
- function jA(Q, F = "") {
17917
+ function zA(Q, F = "") {
17916
17918
  function N(K, oA) {
17917
17919
  var dA;
17918
- const NA = (oA ? ((dA = z(s.value, oA)) == null ? void 0 : dA.children) || [] : [s.value]).filter(($A) => $A.tag === K.tag).indexOf(K) + 1;
17920
+ const NA = (oA ? ((dA = z(s.value, oA)) == null ? void 0 : dA.children) || [] : [s.value]).filter((ZA) => ZA.tag === K.tag).indexOf(K) + 1;
17919
17921
  return `${oA}/${K.tag}[${NA}]`;
17920
17922
  }
17921
17923
  Q.xpath = N(Q, F), Q.parentxpath = F, (Q.children || []).forEach(
17922
- (K) => jA(K, Q.xpath)
17924
+ (K) => zA(K, Q.xpath)
17923
17925
  );
17924
17926
  }
17925
- function se({
17927
+ function ue({
17926
17928
  action: Q,
17927
17929
  element: F,
17928
17930
  newBlock: N
@@ -17945,9 +17947,9 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17945
17947
  D.value = `无法添加更多块。最大块数量为 ${dA}`, AA.error(D.value);
17946
17948
  return;
17947
17949
  }
17948
- function $A(tA) {
17950
+ function ZA(tA) {
17949
17951
  tA.xpath = "", tA.parentxpath = "", tA.text = tA.editText || tA.text, tA.editText = "", tA.children.forEach((ge) => {
17950
- $A(ge);
17952
+ ZA(ge);
17951
17953
  });
17952
17954
  }
17953
17955
  switch (Q) {
@@ -17957,7 +17959,7 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17957
17959
  ...N,
17958
17960
  children: JSON.parse(JSON.stringify(N.children))
17959
17961
  };
17960
- $A(tA), K.children.splice(oA + 1, 0, tA), AA.success("添加成功");
17962
+ ZA(tA), K.children.splice(oA + 1, 0, tA), AA.success("添加成功");
17961
17963
  }
17962
17964
  break;
17963
17965
  case "copy":
@@ -17966,7 +17968,7 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17966
17968
  ...N,
17967
17969
  children: JSON.parse(JSON.stringify(N.children))
17968
17970
  };
17969
- $A(tA), K.children.splice(oA + 1, 0, tA), AA.success("复制成功");
17971
+ ZA(tA), K.children.splice(oA + 1, 0, tA), AA.success("复制成功");
17970
17972
  }
17971
17973
  break;
17972
17974
  case "moveUp":
@@ -17991,13 +17993,13 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
17991
17993
  K.children.splice(oA, 1), AA.success("删除成功");
17992
17994
  break;
17993
17995
  }
17994
- D.value = "", jA(s.value);
17996
+ D.value = "", zA(s.value);
17995
17997
  }
17996
- function VA(Q, F) {
17998
+ function YA(Q, F) {
17997
17999
  let N = F.attrs.class.replace(/icon-\S+/g, `icon-${Q}`);
17998
18000
  F.attrs.class = N;
17999
18001
  }
18000
- function zA(Q) {
18002
+ function $A(Q) {
18001
18003
  const F = Q.file, N = z(s.value, Q.element.xpath);
18002
18004
  if (r.uploadByFile)
18003
18005
  r.uploadByFile(F, Q.crop).then((K) => {
@@ -18009,7 +18011,7 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
18009
18011
  N.attrs.src = K, N.rule.preview ? N.attrs["data-preview"] = K : delete N.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString();
18010
18012
  }
18011
18013
  }
18012
- function ne(Q) {
18014
+ function ae(Q) {
18013
18015
  const { icon: F } = Q, N = z(s.value, Q.element.xpath);
18014
18016
  let K = N.attrs.class.replace(/icon-\S+/g, `icon-${F}`);
18015
18017
  N.attrs.class = K, f.value = (/* @__PURE__ */ new Date()).getTime().toString();
@@ -18042,17 +18044,17 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
18042
18044
  }) : (F.attrs.src = N.thumbUrl, F.rule.preview ? F.attrs["data-preview"] = N.url || N.thumbUrl : delete F.attrs["data-preview"], f.value = (/* @__PURE__ */ new Date()).getTime().toString()));
18043
18045
  }
18044
18046
  const $ = j(r.previewWidth), bA = j(360);
18045
- let de = j(!1), pt = j(""), Ht = 0, Nt = 0;
18047
+ let RA = j(!1), pt = j(""), Ht = 0, Nt = 0;
18046
18048
  function nn(Q) {
18047
- pt.value = Q, de.value = !0, Ht = event.clientX, Q === "preview" ? Nt = $.value : Q === "structure" && (Nt = bA.value), window.addEventListener("mousemove", an), window.addEventListener("mouseup", sn);
18049
+ pt.value = Q, RA.value = !0, Ht = event.clientX, Q === "preview" ? Nt = $.value : Q === "structure" && (Nt = bA.value), window.addEventListener("mousemove", an), window.addEventListener("mouseup", sn);
18048
18050
  }
18049
18051
  function an(Q) {
18050
- if (!de.value) return;
18052
+ if (!RA.value) return;
18051
18053
  const F = Q.clientX - Ht;
18052
18054
  pt.value === "preview" ? $.value = Math.max(200, Nt + F) : pt.value === "structure" && (bA.value = Math.max(200, Nt - F));
18053
18055
  }
18054
18056
  function sn() {
18055
- de.value = !1, pt.value = "", window.removeEventListener("mousemove", an), window.removeEventListener("mouseup", sn);
18057
+ RA.value = !1, pt.value = "", window.removeEventListener("mousemove", an), window.removeEventListener("mouseup", sn);
18056
18058
  }
18057
18059
  const je = j(!1), Fe = j("");
18058
18060
  function un() {
@@ -18152,9 +18154,9 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
18152
18154
  onSelectElement: uA,
18153
18155
  onHoverElement: fA,
18154
18156
  onContentUpdated: vA,
18155
- onUpdateText: qA,
18156
- onBlockAction: se,
18157
- onAddIcon: VA,
18157
+ onUpdateText: jA,
18158
+ onBlockAction: ue,
18159
+ onAddIcon: YA,
18158
18160
  onUpdateElementRule: mA,
18159
18161
  onGetCoverHtml: P
18160
18162
  }, null, 8, ["upload-by-file", "cropper", "icon", "upload", "mode", "icons", "r", "isCover", "show-margin", "element", "selectedElement", "hoveredElement"])) : W("", !0)
@@ -18187,13 +18189,13 @@ const Xo = /* @__PURE__ */ Bt(PU, [["render", KU], ["__scopeId", "data-v-ebcf213
18187
18189
  ye(jm, {
18188
18190
  ref_key: "cropperRef",
18189
18191
  ref: m,
18190
- onOk: zA
18192
+ onOk: $A
18191
18193
  }, null, 512),
18192
18194
  ye(i1, {
18193
18195
  icons: Q.icons,
18194
18196
  ref_key: "iconRef",
18195
18197
  ref: E,
18196
- onOk: ne
18198
+ onOk: ae
18197
18199
  }, null, 8, ["icons"]),
18198
18200
  ye(g1, {
18199
18201
  ref_key: "uploadRef",